From c2c9f4b614512fe0b5a129e237f9697f0b9f7528 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 19 Aug 2026 10:08:26 +0000 Subject: [PATCH 001/272] SDK regeneration --- .fern/metadata.json | 8 ++++---- pyproject.toml | 2 +- src/speechify/core/client_wrapper.py | 4 ++-- src/speechify/types/error_code.py | 4 ++++ 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 0468154..79b5881 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,9 +9,9 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "469722e153faa1a1c50aa63ea9cdca853f588721", + "originGitCommit": "cd9527ba61b3dd9af668b75ad5806f1774d6e7ee", "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/pyproject.toml b/pyproject.toml index b7bc5e3..e2b57eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ dynamic = ["version"] [tool.poetry] name = "speechify-api" -version = "4.0.0" +version = "4.0.1" description = "Official Speechify API SDK" readme = "README.md" authors = [ diff --git a/src/speechify/core/client_wrapper.py b/src/speechify/core/client_wrapper.py index bd4a8a6..a594e0b 100644 --- a/src/speechify/core/client_wrapper.py +++ b/src/speechify/core/client_wrapper.py @@ -31,12 +31,12 @@ def get_headers(self) -> 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: diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 1a66e34..8ec1820 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -22,6 +22,10 @@ "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", From 56b5649a0b25f26a64c061316d9d9b17849ad8a4 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 19 Aug 2026 13:44:37 +0000 Subject: [PATCH 002/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 79b5881..fe186df 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "cd9527ba61b3dd9af668b75ad5806f1774d6e7ee", + "originGitCommit": "5bad5fd56908ff01eecc7c80b8a1dc7a95ede569", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 8ec1820..903ee83 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -43,6 +43,7 @@ "agent_test_not_found", "workspace_not_found", "invite_not_found", + "project_not_found", "insufficient_scope", "purchased_numbers_not_included", "phone_number_quota_reached", From 7ea88f025cd037b0ed45d2695a4d149cfc3d1283 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 19 Aug 2026 13:50:17 +0000 Subject: [PATCH 003/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index fe186df..90d87b8 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "5bad5fd56908ff01eecc7c80b8a1dc7a95ede569", + "originGitCommit": "d18d0fff37ec3446bf44071a930fcad840b961e6", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 903ee83..7bff78c 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -44,6 +44,7 @@ "workspace_not_found", "invite_not_found", "project_not_found", + "cross_project_reference", "insufficient_scope", "purchased_numbers_not_included", "phone_number_quota_reached", From af472c96a03e6db2cc3eb65b25b0a4945ef719da Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 20 Aug 2026 08:10:51 +0000 Subject: [PATCH 004/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 90d87b8..03824bd 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "d18d0fff37ec3446bf44071a930fcad840b961e6", + "originGitCommit": "f8303828d8701675d03c6308f7dd0bbb4966dcf2", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 7bff78c..61ba723 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -45,6 +45,8 @@ "invite_not_found", "project_not_found", "cross_project_reference", + "project_has_scoped_credentials", + "project_limit_reached", "insufficient_scope", "purchased_numbers_not_included", "phone_number_quota_reached", From 7802ef61b7eb7b3f2456366fac23a6bccb9a0302 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 20 Aug 2026 09:02:23 +0000 Subject: [PATCH 005/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 03824bd..abb51e6 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "f8303828d8701675d03c6308f7dd0bbb4966dcf2", + "originGitCommit": "8d8e19658539f2749fd005621cc22904df2675d4", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 74509b40bd7d03acd4f18b4f74ad41cbc496fc68 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 20 Aug 2026 12:39:45 +0000 Subject: [PATCH 006/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index abb51e6..0593f86 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "8d8e19658539f2749fd005621cc22904df2675d4", + "originGitCommit": "432706298b65e177d8f457ed0ea14d196c282c5c", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 27c4a40ddcb94f6ef23b4f0d590741397d6b6eaa Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 20 Aug 2026 12:40:59 +0000 Subject: [PATCH 007/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 0593f86..4ac4d9c 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "432706298b65e177d8f457ed0ea14d196c282c5c", + "originGitCommit": "8fba9f47eda883cb170a3344c2f1a0fcbfa1d652", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From a61c260017ccf9f2dc00371783046cf03199839a Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 21 Aug 2026 11:31:14 +0000 Subject: [PATCH 008/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 4ac4d9c..ec7daac 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "8fba9f47eda883cb170a3344c2f1a0fcbfa1d652", + "originGitCommit": "8bedb84345ed2544456956dea6fd21ea96de0907", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 61ba723..02f7229 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -76,6 +76,7 @@ "tool_config_shared", "spend_cap_exceeded", "spend_budget_exceeded", + "project_spend_limit_exceeded", "share_link_not_found", "share_link_exhausted", "share_link_limit_reached", From 411b22dea0fca7903196c3092b88e9451a2f60c6 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 21 Aug 2026 11:47:27 +0000 Subject: [PATCH 009/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 17 ++++-- src/speechify/audio/client.py | 54 ++++++++++++------- src/speechify/audio/raw_client.py | 42 ++++++++++----- .../audio/types/get_speech_request_model.py | 4 +- src/speechify/client.py | 8 +-- src/speechify/models/client.py | 4 +- src/speechify/types/error_code.py | 1 + src/speechify/types/get_stream_request.py | 4 +- .../types/get_stream_request_model.py | 4 +- src/speechify/types/get_voices_model.py | 9 +++- src/speechify/types/model.py | 32 +++++++++-- src/speechify/types/models_response.py | 9 +++- src/speechify/voices/client.py | 24 ++++----- .../voices/consent_challenges/client.py | 4 +- src/speechify/voices/raw_client.py | 4 +- 16 files changed, 151 insertions(+), 71 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index ec7daac..46ae239 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "8bedb84345ed2544456956dea6fd21ea96de0907", + "originGitCommit": "9543bb4e85bab2fd769f2ea388aa6a6e75a59b0a", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index e5c8377..edc9167 100644 --- a/reference.md +++ b/reference.md @@ -99,7 +99,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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. + +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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today.
@@ -263,9 +267,12 @@ delivery detail and carries no meaning. Times stay correct for every 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. +`simba-3.0` and `simba-3.2` both serve this route. The legacy +`simba-english` and `simba-multilingual` models never could: on a +workspace pinned before API version `2026-09-21` they return 400 +`speech_marks_unsupported` here, and from that version on they return +400 `model_retired` on every synthesis route. Both are switched off +entirely on 2026-11-21. For Base64-encoded audio and speech marks in one non-streamed JSON response, on any model, use POST /v1/audio/speech. @@ -563,7 +570,7 @@ 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` until they are switched off on 2026-11-21). `simba-3.2` also serves cloned voices, currently as a limited release enabled per workspace; contact Speechify to have it enabled for yours. 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. diff --git a/src/speechify/audio/client.py b/src/speechify/audio/client.py index 93631b4..8e92c40 100644 --- a/src/speechify/audio/client.py +++ b/src/speechify/audio/client.py @@ -73,7 +73,9 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. + + 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetSpeechOptionsRequest] @@ -93,7 +95,7 @@ def speech( from speechify import Speechify client = Speechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) client.audio.speech( @@ -160,7 +162,9 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. + + 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetStreamOptionsRequest] @@ -184,7 +188,7 @@ def stream( from speechify import Speechify client = Speechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) client.audio.stream( @@ -237,9 +241,12 @@ def stream_with_timestamps( 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. + `simba-3.0` and `simba-3.2` both serve this route. The legacy + `simba-english` and `simba-multilingual` models never could: on a + workspace pinned before API version `2026-09-21` they return 400 + `speech_marks_unsupported` here, and from that version on they return + 400 `model_retired` on every synthesis route. Both are switched off + entirely on 2026-11-21. For Base64-encoded audio and speech marks in one non-streamed JSON response, on any model, use POST /v1/audio/speech. @@ -264,7 +271,9 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. + + 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetStreamOptionsRequest] @@ -293,7 +302,7 @@ def stream_with_timestamps( from speechify import Speechify client = Speechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) response = client.audio.stream_with_timestamps( @@ -369,7 +378,9 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. + + 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetSpeechOptionsRequest] @@ -391,7 +402,7 @@ async def speech( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) @@ -464,7 +475,9 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. + + 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetStreamOptionsRequest] @@ -490,7 +503,7 @@ async def stream( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) @@ -550,9 +563,12 @@ async def stream_with_timestamps( 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. + `simba-3.0` and `simba-3.2` both serve this route. The legacy + `simba-english` and `simba-multilingual` models never could: on a + workspace pinned before API version `2026-09-21` they return 400 + `speech_marks_unsupported` here, and from that version on they return + 400 `model_retired` on every synthesis route. Both are switched off + entirely on 2026-11-21. For Base64-encoded audio and speech marks in one non-streamed JSON response, on any model, use POST /v1/audio/speech. @@ -577,7 +593,9 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. + + 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetStreamOptionsRequest] @@ -608,7 +626,7 @@ async def stream_with_timestamps( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) diff --git a/src/speechify/audio/raw_client.py b/src/speechify/audio/raw_client.py index 9c964f8..4d404eb 100644 --- a/src/speechify/audio/raw_client.py +++ b/src/speechify/audio/raw_client.py @@ -81,7 +81,9 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. + + 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetSpeechOptionsRequest] @@ -280,7 +282,9 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. + + 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetStreamOptionsRequest] @@ -477,9 +481,12 @@ def stream_with_timestamps( 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. + `simba-3.0` and `simba-3.2` both serve this route. The legacy + `simba-english` and `simba-multilingual` models never could: on a + workspace pinned before API version `2026-09-21` they return 400 + `speech_marks_unsupported` here, and from that version on they return + 400 `model_retired` on every synthesis route. Both are switched off + entirely on 2026-11-21. For Base64-encoded audio and speech marks in one non-streamed JSON response, on any model, use POST /v1/audio/speech. @@ -504,7 +511,9 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. + + 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetStreamOptionsRequest] @@ -737,7 +746,9 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. + + 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetSpeechOptionsRequest] @@ -936,7 +947,9 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. + + 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetStreamOptionsRequest] @@ -1134,9 +1147,12 @@ async def stream_with_timestamps( 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. + `simba-3.0` and `simba-3.2` both serve this route. The legacy + `simba-english` and `simba-multilingual` models never could: on a + workspace pinned before API version `2026-09-21` they return 400 + `speech_marks_unsupported` here, and from that version on they return + 400 `model_retired` on every synthesis route. Both are switched off + entirely on 2026-11-21. For Base64-encoded audio and speech marks in one non-streamed JSON response, on any model, use POST /v1/audio/speech. @@ -1161,7 +1177,9 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. + + 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetStreamOptionsRequest] diff --git a/src/speechify/audio/types/get_speech_request_model.py b/src/speechify/audio/types/get_speech_request_model.py index cd9a92d..9ff7031 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"], typing.Any] diff --git a/src/speechify/client.py b/src/speechify/client.py index 4c47cb4..0010194 100644 --- a/src/speechify/client.py +++ b/src/speechify/client.py @@ -60,7 +60,7 @@ class Speechify: from speechify import Speechify client = Speechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) """ @@ -70,7 +70,7 @@ def __init__( *, base_url: typing.Optional[str] = None, environment: SpeechifyEnvironment = SpeechifyEnvironment.DEFAULT, - version: typing.Optional[str] = "2026-09-13", + version: typing.Optional[str] = "2026-09-21", token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("SPEECHIFY_API_KEY"), headers: typing.Optional[typing.Dict[str, str]] = None, timeout: typing.Optional[float] = None, @@ -194,7 +194,7 @@ class AsyncSpeechify: from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) """ @@ -204,7 +204,7 @@ def __init__( *, base_url: typing.Optional[str] = None, environment: SpeechifyEnvironment = SpeechifyEnvironment.DEFAULT, - version: typing.Optional[str] = "2026-09-13", + version: typing.Optional[str] = "2026-09-21", token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("SPEECHIFY_API_KEY"), headers: typing.Optional[typing.Dict[str, str]] = None, async_token: typing.Optional[typing.Callable[[], typing.Awaitable[str]]] = None, diff --git a/src/speechify/models/client.py b/src/speechify/models/client.py index b4c204f..4aab9e8 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", + "2026-09-21", 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", + "2026-09-21", token="YOUR_TOKEN", ) diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 02f7229..740f17f 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -69,6 +69,7 @@ "service_account_limit_reached", "service_accounts_not_in_plan", "speech_marks_unsupported", + "model_retired", "too_many_voices", "content_policy_violation", "topup_not_in_plan", diff --git a/src/speechify/types/get_stream_request.py b/src/speechify/types/get_stream_request.py index 83b0b16..8431a05 100644 --- a/src/speechify/types/get_stream_request.py +++ b/src/speechify/types/get_stream_request.py @@ -29,7 +29,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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. + + 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. """ options: typing.Optional[GetStreamOptionsRequest] = None diff --git a/src/speechify/types/get_stream_request_model.py b/src/speechify/types/get_stream_request_model.py index d7fa1c4..f156391 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"], typing.Any] 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/model.py b/src/speechify/types/model.py index b8aad5f..22d19de 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 @@ -39,10 +40,33 @@ 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 is switched off, as `YYYY-MM-DD`. Absent when no + shutdown is scheduled. + + This is the deadline `retired_at`'s version pin runs out against: + from `sunset_at` the model is unreachable on EVERY API version, + including a workspace pinned below its retirement. Read the two + together - a pin buys time to migrate, not a permanent exemption. """ description: str = pydantic.Field() 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/voices/client.py b/src/speechify/voices/client.py index 80b21fc..eb60dd3 100644 --- a/src/speechify/voices/client.py +++ b/src/speechify/voices/client.py @@ -96,7 +96,7 @@ def list( from speechify import Speechify client = Speechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) response = client.voices.list( @@ -137,7 +137,7 @@ 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` until they are switched off on 2026-11-21). `simba-3.2` also serves cloned voices, currently as a limited release enabled per workspace; contact Speechify to have it enabled for yours. 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. @@ -191,7 +191,7 @@ def create( from speechify import Speechify client = Speechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) client.voices.create( @@ -239,7 +239,7 @@ def get(self, voice_id: str, *, request_options: typing.Optional[RequestOptions] from speechify import Speechify client = Speechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) client.voices.get( @@ -272,7 +272,7 @@ def delete(self, voice_id: str, *, request_options: typing.Optional[RequestOptio from speechify import Speechify client = Speechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) client.voices.delete( @@ -306,7 +306,7 @@ def download_sample( from speechify import Speechify client = Speechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) client.voices.download_sample( @@ -402,7 +402,7 @@ async def list( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) @@ -450,7 +450,7 @@ 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` until they are switched off on 2026-11-21). `simba-3.2` also serves cloned voices, currently as a limited release enabled per workspace; contact Speechify to have it enabled for yours. 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. @@ -506,7 +506,7 @@ async def create( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) @@ -562,7 +562,7 @@ async def get(self, voice_id: str, *, request_options: typing.Optional[RequestOp from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) @@ -603,7 +603,7 @@ async def delete(self, voice_id: str, *, request_options: typing.Optional[Reques from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) @@ -645,7 +645,7 @@ async def download_sample( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) diff --git a/src/speechify/voices/consent_challenges/client.py b/src/speechify/voices/consent_challenges/client.py index 754faa9..64d93ed 100644 --- a/src/speechify/voices/consent_challenges/client.py +++ b/src/speechify/voices/consent_challenges/client.py @@ -78,7 +78,7 @@ def create( from speechify import Speechify client = Speechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) client.voices.consent_challenges.create( @@ -161,7 +161,7 @@ async def create( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + "2026-09-21", token="YOUR_TOKEN", ) diff --git a/src/speechify/voices/raw_client.py b/src/speechify/voices/raw_client.py index a977bff..8aeb750 100644 --- a/src/speechify/voices/raw_client.py +++ b/src/speechify/voices/raw_client.py @@ -211,7 +211,7 @@ 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` until they are switched off on 2026-11-21). `simba-3.2` also serves cloned voices, currently as a limited release enabled per workspace; contact Speechify to have it enabled for yours. 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. @@ -984,7 +984,7 @@ 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` until they are switched off on 2026-11-21). `simba-3.2` also serves cloned voices, currently as a limited release enabled per workspace; contact Speechify to have it enabled for yours. 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. From c31331de0a0fb5771aeb48952d8d8c32858e55d1 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 21 Aug 2026 12:06:45 +0000 Subject: [PATCH 010/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 46ae239..6e79441 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "9543bb4e85bab2fd769f2ea388aa6a6e75a59b0a", + "originGitCommit": "2708953aa3374e783b3c8d7c0b085d964ab1ed06", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From e036471923288093b1c09369dba7af18bb45cd7f Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 21 Aug 2026 14:58:35 +0000 Subject: [PATCH 011/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 6e79441..24f7c25 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "2708953aa3374e783b3c8d7c0b085d964ab1ed06", + "originGitCommit": "d4d1962ede5bac64d0b9e08a5b4c132787ed139b", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 1770df9f92cfb6d57f6c313879c69ddf63a16251 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 21 Aug 2026 15:16:20 +0000 Subject: [PATCH 012/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 24f7c25..c01d6e2 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "d4d1962ede5bac64d0b9e08a5b4c132787ed139b", + "originGitCommit": "754629541e7c87500c95c0741f145c3442b00e29", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 2f5566744888c9f2b923373f7f3e34bb3d337013 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 21 Aug 2026 15:29:28 +0000 Subject: [PATCH 013/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index c01d6e2..820635b 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "754629541e7c87500c95c0741f145c3442b00e29", + "originGitCommit": "caf4bf8111abccf17b236acf17e34ddd12b76fd3", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 4fe3f6559d9a422f4b18ed388091128643a804c2 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 21 Aug 2026 15:42:49 +0000 Subject: [PATCH 014/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 820635b..8a3476a 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "caf4bf8111abccf17b236acf17e34ddd12b76fd3", + "originGitCommit": "21fc3f3c55380a3420c90190362115d3735371f8", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 0e0cf42a7115696227dd4fb6c04c9b1169c49f62 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 24 Aug 2026 10:17:16 +0000 Subject: [PATCH 015/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 8a3476a..0b87d8f 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "21fc3f3c55380a3420c90190362115d3735371f8", + "originGitCommit": "d4973137319ce7ffec9986920e30ca5a08b63559", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From b9bcbe3e0c4531a25d6dd27beb6aeb641cbd4ffb Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 24 Aug 2026 10:20:10 +0000 Subject: [PATCH 016/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 0b87d8f..b6b476a 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "d4973137319ce7ffec9986920e30ca5a08b63559", + "originGitCommit": "58e6fb76248983991a1803d8931bbdfbbfdb3cce", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 4b3b9408456d4e2c8dd922d57b8e5fe8b217ebd6 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 24 Aug 2026 16:51:57 +0000 Subject: [PATCH 017/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index b6b476a..54532f7 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "58e6fb76248983991a1803d8931bbdfbbfdb3cce", + "originGitCommit": "bb06e8a26b791f1ea528d26a6b6d46c2fb28d3ed", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From bfed9f2219f284a3cab252eb9fd800a664c9458f Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 24 Aug 2026 19:04:27 +0000 Subject: [PATCH 018/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 54532f7..a56dca5 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "bb06e8a26b791f1ea528d26a6b6d46c2fb28d3ed", + "originGitCommit": "d5c70c5d10c3cf0450c62fa3b86a29aa798874b6", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From aa853530fa6cccd3bf6773a106868dc735d41fef Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 24 Aug 2026 20:14:04 +0000 Subject: [PATCH 019/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index a56dca5..6b712b2 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "d5c70c5d10c3cf0450c62fa3b86a29aa798874b6", + "originGitCommit": "d2dce02bb9500ef20efd94277edf11fe7f4a8495", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From d8d99df9beb0e7e3f488e47943683e6d3f519ff3 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 06:30:59 +0000 Subject: [PATCH 020/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 6b712b2..a29f297 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "d2dce02bb9500ef20efd94277edf11fe7f4a8495", + "originGitCommit": "94e141c9e7355b7ffe10f8374bac242ec6d26a32", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 53f21f2888e1fb1c898955896d9c11563ea674f2 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 06:49:27 +0000 Subject: [PATCH 021/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index a29f297..0630a9c 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "94e141c9e7355b7ffe10f8374bac242ec6d26a32", + "originGitCommit": "da01b4e6ce3a128e96434167ebdbb798da8d9fbd", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 067050aa94f14c0479f50db4d66d26edff430b15 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 06:59:28 +0000 Subject: [PATCH 022/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 0630a9c..61c0b8e 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "da01b4e6ce3a128e96434167ebdbb798da8d9fbd", + "originGitCommit": "caf53e824cd8f14fdb706096ef2384946918d95f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 012379a5cb5ce6d85eb25bd4a641c75a3f272b23 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 07:41:55 +0000 Subject: [PATCH 023/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/audio/raw_client.py | 67 +++++++++++++++++++++++++++++++ src/speechify/types/error_code.py | 1 + 3 files changed, 69 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 61c0b8e..85f448a 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "caf53e824cd8f14fdb706096ef2384946918d95f", + "originGitCommit": "ce65fb68fdc2706c3c46cbb10d60dea5d107cf66", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/audio/raw_client.py b/src/speechify/audio/raw_client.py index 4d404eb..ff80665 100644 --- a/src/speechify/audio/raw_client.py +++ b/src/speechify/audio/raw_client.py @@ -15,6 +15,7 @@ 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.forbidden_error import ForbiddenError from ..errors.internal_server_error import InternalServerError from ..errors.not_found_error import NotFoundError @@ -183,6 +184,17 @@ 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 == 429: raise TooManyRequestsError( headers=dict(_response.headers), @@ -387,6 +399,17 @@ 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 == 429: raise TooManyRequestsError( headers=dict(_response.headers), @@ -644,6 +667,17 @@ 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 == 429: raise TooManyRequestsError( headers=dict(_response.headers), @@ -848,6 +882,17 @@ 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 == 429: raise TooManyRequestsError( headers=dict(_response.headers), @@ -1053,6 +1098,17 @@ 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 == 429: raise TooManyRequestsError( headers=dict(_response.headers), @@ -1310,6 +1366,17 @@ 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 == 429: raise TooManyRequestsError( headers=dict(_response.headers), diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 740f17f..65ba9e6 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -78,6 +78,7 @@ "spend_cap_exceeded", "spend_budget_exceeded", "project_spend_limit_exceeded", + "project_archived", "share_link_not_found", "share_link_exhausted", "share_link_limit_reached", From b916ec6825dda6442ad6b503d37005e2a90021d6 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 08:05:23 +0000 Subject: [PATCH 024/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 85f448a..8177434 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "ce65fb68fdc2706c3c46cbb10d60dea5d107cf66", + "originGitCommit": "62ea74a529c20bf0df614b82fad1842116ef8d08", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 65ba9e6..e99dc09 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -47,6 +47,7 @@ "cross_project_reference", "project_has_scoped_credentials", "project_limit_reached", + "project_too_large_to_promote", "insufficient_scope", "purchased_numbers_not_included", "phone_number_quota_reached", From 8744ef1be807c7861455542f4d2ff916f04a4e0d Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 08:17:47 +0000 Subject: [PATCH 025/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 8177434..0a0371b 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "62ea74a529c20bf0df614b82fad1842116ef8d08", + "originGitCommit": "2f304034676b1e19cd0a563191815a4d574763c5", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 697cfbc26339182c558a22112d23909051e3094d Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 09:24:19 +0000 Subject: [PATCH 026/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 0a0371b..0c972e2 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "2f304034676b1e19cd0a563191815a4d574763c5", + "originGitCommit": "a65474034cc76dab24c75412130250ae335cf492", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index e99dc09..4923d10 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -80,6 +80,7 @@ "spend_budget_exceeded", "project_spend_limit_exceeded", "project_archived", + "project_not_archived", "share_link_not_found", "share_link_exhausted", "share_link_limit_reached", From b762cf98553dd9ca767c118bebd00582b4eedbaf Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 09:47:01 +0000 Subject: [PATCH 027/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 0c972e2..106cb06 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "a65474034cc76dab24c75412130250ae335cf492", + "originGitCommit": "b001c9bc89ec48658d383db0a93dc2b1f556e768", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From d1f4a25ec4f8b82d208cb0dedbf0b0a59525e551 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 11:47:29 +0000 Subject: [PATCH 028/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 106cb06..43c16ea 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "b001c9bc89ec48658d383db0a93dc2b1f556e768", + "originGitCommit": "3374fc90f31f1b13e31bd96d9564e5a6a91630e7", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 257715a7b77f63f12736175890b5caed5fcf5f1b Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 12:28:50 +0000 Subject: [PATCH 029/272] SDK regeneration --- .fern/metadata.json | 2 +- README.md | 1 + reference.md | 23 +++++++++++++++++++ src/speechify/types/get_voice.py | 12 ++++++++++ src/speechify/voices/client.py | 36 ++++++++++++++++++++++++++++++ src/speechify/voices/raw_client.py | 36 ++++++++++++++++++++++++++++++ 6 files changed, 109 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 43c16ea..3172bed 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "3374fc90f31f1b13e31bd96d9564e5a6a91630e7", + "originGitCommit": "c763346c08251d1f301c4e0d0ce8de6d87ceec20", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/README.md b/README.md index 41fb863..0dc6bbc 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", ) ``` diff --git a/reference.md b/reference.md index edc9167..1ebcb51 100644 --- a/reference.md +++ b/reference.md @@ -468,6 +468,7 @@ client = Speechify( client.voices.list( locale="en", model="simba-3.2", + project_id="proj_01arz3ndektsv4rrffq69g5fav", ) ``` @@ -542,6 +543,28 @@ 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, or pass a `proj_...` id to list 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 belongs to the workspace at large, so +there is no `default` literal here - passing one 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. + +
+
+ +
+
+ **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
diff --git a/src/speechify/types/get_voice.py b/src/speechify/types/get_voice.py index 63e3322..38357a0 100644 --- a/src/speechify/types/get_voice.py +++ b/src/speechify/types/get_voice.py @@ -17,6 +17,18 @@ 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 on a single-voice read, + on the create response, and on a list narrowed with the + `project_id` parameter. + + Omitted for a shared-catalog voice, for a cloned voice the + workspace holds at large, and on an unnarrowed list, where the + catalog read does not carry each voice's project. + """ + tags: typing.Optional[typing.List[str]] = None type: GetVoiceType diff --git a/src/speechify/voices/client.py b/src/speechify/voices/client.py index eb60dd3..48ad13b 100644 --- a/src/speechify/voices/client.py +++ b/src/speechify/voices/client.py @@ -47,6 +47,7 @@ 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]: """ @@ -83,6 +84,21 @@ 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, or pass a `proj_...` id to list 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 belongs to the workspace at large, so + there is no `default` literal here - passing one 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. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -102,6 +118,7 @@ def list( response = client.voices.list( locale="en", model="simba-3.2", + project_id="proj_01arz3ndektsv4rrffq69g5fav", ) for item in response: yield item @@ -116,6 +133,7 @@ def list( locale=locale, gender=gender, model=model, + project_id=project_id, request_options=request_options, ) @@ -351,6 +369,7 @@ 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]: """ @@ -387,6 +406,21 @@ 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, or pass a `proj_...` id to list 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 belongs to the workspace at large, so + there is no `default` literal here - passing one 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. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -411,6 +445,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 +464,7 @@ async def main() -> None: locale=locale, gender=gender, model=model, + project_id=project_id, request_options=request_options, ) diff --git a/src/speechify/voices/raw_client.py b/src/speechify/voices/raw_client.py index 8aeb750..fa931ee 100644 --- a/src/speechify/voices/raw_client.py +++ b/src/speechify/voices/raw_client.py @@ -50,6 +50,7 @@ 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]: """ @@ -86,6 +87,21 @@ 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, or pass a `proj_...` id to list 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 belongs to the workspace at large, so + there is no `default` literal here - passing one 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. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -104,6 +120,7 @@ def list( "locale": locale, "gender": gender, "model": model, + "project_id": project_id, }, request_options=request_options, ) @@ -126,6 +143,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) @@ -820,6 +838,7 @@ 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]: """ @@ -856,6 +875,21 @@ 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, or pass a `proj_...` id to list 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 belongs to the workspace at large, so + there is no `default` literal here - passing one 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. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -874,6 +908,7 @@ async def list( "locale": locale, "gender": gender, "model": model, + "project_id": project_id, }, request_options=request_options, ) @@ -898,6 +933,7 @@ async def _get_next(): locale=locale, gender=gender, model=model, + project_id=project_id, request_options=request_options, ) From f88e9d3fec963842622fd5a0debc57187edb0388 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 14:04:42 +0000 Subject: [PATCH 030/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 28 +++++++++------ src/speechify/types/get_voice.py | 11 +++--- src/speechify/voices/client.py | 56 +++++++++++++++++++----------- src/speechify/voices/raw_client.py | 56 +++++++++++++++++++----------- 5 files changed, 96 insertions(+), 57 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 3172bed..cd8718a 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "c763346c08251d1f301c4e0d0ce8de6d87ceec20", + "originGitCommit": "97bd0f62d641ad0a350139af1377b539352b8bc8", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index 1ebcb51..cdd3501 100644 --- a/reference.md +++ b/reference.md @@ -436,13 +436,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 +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. 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). +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.
@@ -546,18 +553,19 @@ 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, or pass a `proj_...` id to list the clones filed under -that project. The shared catalog carries no project and is returned -either way. +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 belongs to the workspace at large, so -there is no `default` literal here - passing one is a 400. Returns -404 project_not_found for a malformed id and for any project outside +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. +a project exists. `shared` is always inside your reach. diff --git a/src/speechify/types/get_voice.py b/src/speechify/types/get_voice.py index 38357a0..d634308 100644 --- a/src/speechify/types/get_voice.py +++ b/src/speechify/types/get_voice.py @@ -20,13 +20,12 @@ class GetVoice(UniversalBaseModel): 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 on a single-voice read, - on the create response, and on a list narrowed with the - `project_id` parameter. + 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, for a cloned voice the - workspace holds at large, and on an unnarrowed list, where the - catalog read does not carry each voice's project. + 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. """ tags: typing.Optional[typing.List[str]] = None diff --git a/src/speechify/voices/client.py b/src/speechify/voices/client.py index 48ad13b..5884578 100644 --- a/src/speechify/voices/client.py +++ b/src/speechify/voices/client.py @@ -52,13 +52,20 @@ def list( ) -> 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 + 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. 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). + 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,18 +93,19 @@ def list( project_id : typing.Optional[str] Filter cloned voices by workspace project: omit for every voice you - can reach, or pass a `proj_...` id to list the clones filed under - that project. The shared catalog carries no project and is returned - either way. + 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 belongs to the workspace at large, so - there is no `default` literal here - passing one is a 400. Returns - 404 project_not_found for a malformed id and for any project outside + 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. + a project exists. `shared` is always inside your reach. request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -374,13 +382,20 @@ async def list( ) -> 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 + 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. 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). + 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 ---------- @@ -408,18 +423,19 @@ async def list( project_id : typing.Optional[str] Filter cloned voices by workspace project: omit for every voice you - can reach, or pass a `proj_...` id to list the clones filed under - that project. The shared catalog carries no project and is returned - either way. + 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 belongs to the workspace at large, so - there is no `default` literal here - passing one is a 400. Returns - 404 project_not_found for a malformed id and for any project outside + 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. + a project exists. `shared` is always inside your reach. request_options : typing.Optional[RequestOptions] Request-specific configuration. diff --git a/src/speechify/voices/raw_client.py b/src/speechify/voices/raw_client.py index fa931ee..f44b218 100644 --- a/src/speechify/voices/raw_client.py +++ b/src/speechify/voices/raw_client.py @@ -55,13 +55,20 @@ def list( ) -> 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 + 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. 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). + 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 ---------- @@ -89,18 +96,19 @@ def list( project_id : typing.Optional[str] Filter cloned voices by workspace project: omit for every voice you - can reach, or pass a `proj_...` id to list the clones filed under - that project. The shared catalog carries no project and is returned - either way. + 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 belongs to the workspace at large, so - there is no `default` literal here - passing one is a 400. Returns - 404 project_not_found for a malformed id and for any project outside + 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. + a project exists. `shared` is always inside your reach. request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -843,13 +851,20 @@ async def list( ) -> 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 + 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. 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). + 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 ---------- @@ -877,18 +892,19 @@ async def list( project_id : typing.Optional[str] Filter cloned voices by workspace project: omit for every voice you - can reach, or pass a `proj_...` id to list the clones filed under - that project. The shared catalog carries no project and is returned - either way. + 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 belongs to the workspace at large, so - there is no `default` literal here - passing one is a 400. Returns - 404 project_not_found for a malformed id and for any project outside + 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. + a project exists. `shared` is always inside your reach. request_options : typing.Optional[RequestOptions] Request-specific configuration. From 34ce6534934acf473986ff063ec5af8a44b3cddf Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 14:27:06 +0000 Subject: [PATCH 031/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index cd8718a..bd67dab 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "97bd0f62d641ad0a350139af1377b539352b8bc8", + "originGitCommit": "864413a593af5a10ccce05f3a106277f38465ca0", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 9e3b2fa14d8304c6bf79d6107720f7a493adbdbe Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 16:00:01 +0000 Subject: [PATCH 032/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index bd67dab..bb199b3 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "864413a593af5a10ccce05f3a106277f38465ca0", + "originGitCommit": "5b341d4e921a115e925a17b6c943678b6e063e5f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 4923d10..6958a99 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -81,6 +81,9 @@ "project_spend_limit_exceeded", "project_archived", "project_not_archived", + "project_not_purged", + "project_restore_window_expired", + "project_name_taken", "share_link_not_found", "share_link_exhausted", "share_link_limit_reached", From 2348f37910894939397bd3ac65a026a61f808b75 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 17:17:30 +0000 Subject: [PATCH 033/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index bb199b3..03e9992 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "5b341d4e921a115e925a17b6c943678b6e063e5f", + "originGitCommit": "b66eca5d513944aad28cac282f6ed616366a1f5b", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 86217473cbce09802b7be35ec76e2657a17414ca Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 18:07:21 +0000 Subject: [PATCH 034/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 03e9992..4f96eb1 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "b66eca5d513944aad28cac282f6ed616366a1f5b", + "originGitCommit": "b8817e6d7522529c8094c302397c402ee7c5a53f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From b22578d55e32c8b5fbe5917bd6c7cad1de04059b Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 12:00:36 +0000 Subject: [PATCH 035/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 4f96eb1..1851448 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "b8817e6d7522529c8094c302397c402ee7c5a53f", + "originGitCommit": "2b284e7dd6838cc2cba9bab03ca91e720b4f8337", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From c7c00bec8c5ff159ef85669926ae257a40be0ec8 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 16:22:49 +0000 Subject: [PATCH 036/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 1851448..9acda2c 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "2b284e7dd6838cc2cba9bab03ca91e720b4f8337", + "originGitCommit": "faa8f25745bba33e67644358a814f72b8cd8d222", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From a4dad78690b1b40e1049a15126e00a09e4e8e282 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 17:14:38 +0000 Subject: [PATCH 037/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 2 +- src/speechify/voices/client.py | 4 ++-- src/speechify/voices/raw_client.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 9acda2c..30e3912 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "faa8f25745bba33e67644358a814f72b8cd8d222", + "originGitCommit": "fd6196ab4dd98f409e8963d320646ab61f391040", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index cdd3501..eaf3291 100644 --- a/reference.md +++ b/reference.md @@ -601,7 +601,7 @@ 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` (and, on a workspace pinned before API version `2026-09-21`, on the retired `simba-english` and `simba-multilingual` until they are switched off on 2026-11-21). `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` until they are switched off on 2026-11-21). `simba-3.2` also serves 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. diff --git a/src/speechify/voices/client.py b/src/speechify/voices/client.py index 5884578..1cdeef5 100644 --- a/src/speechify/voices/client.py +++ b/src/speechify/voices/client.py @@ -163,7 +163,7 @@ 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` (and, on a workspace pinned before API version `2026-09-21`, on the retired `simba-english` and `simba-multilingual` until they are switched off on 2026-11-21). `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` until they are switched off on 2026-11-21). `simba-3.2` also serves 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. @@ -502,7 +502,7 @@ 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` (and, on a workspace pinned before API version `2026-09-21`, on the retired `simba-english` and `simba-multilingual` until they are switched off on 2026-11-21). `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` until they are switched off on 2026-11-21). `simba-3.2` also serves 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. diff --git a/src/speechify/voices/raw_client.py b/src/speechify/voices/raw_client.py index f44b218..f7cd462 100644 --- a/src/speechify/voices/raw_client.py +++ b/src/speechify/voices/raw_client.py @@ -237,7 +237,7 @@ 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` (and, on a workspace pinned before API version `2026-09-21`, on the retired `simba-english` and `simba-multilingual` until they are switched off on 2026-11-21). `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` until they are switched off on 2026-11-21). `simba-3.2` also serves 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. @@ -1036,7 +1036,7 @@ 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` (and, on a workspace pinned before API version `2026-09-21`, on the retired `simba-english` and `simba-multilingual` until they are switched off on 2026-11-21). `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` until they are switched off on 2026-11-21). `simba-3.2` also serves 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. From 2908d440ab5fc7813e9a91364cd680b751d52ea9 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 27 Aug 2026 11:55:34 +0000 Subject: [PATCH 038/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/audio/client.py | 12 +++++------ src/speechify/client.py | 8 ++++---- src/speechify/models/client.py | 4 ++-- src/speechify/types/error_code.py | 9 +++++++++ src/speechify/voices/client.py | 20 +++++++++---------- .../voices/consent_challenges/client.py | 4 ++-- 7 files changed, 34 insertions(+), 25 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 30e3912..005c582 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "fd6196ab4dd98f409e8963d320646ab61f391040", + "originGitCommit": "79eb1db805db1b9ada84dc9aef42a4daef35d85d", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/audio/client.py b/src/speechify/audio/client.py index 8e92c40..c76d8b3 100644 --- a/src/speechify/audio/client.py +++ b/src/speechify/audio/client.py @@ -95,7 +95,7 @@ def speech( from speechify import Speechify client = Speechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) client.audio.speech( @@ -188,7 +188,7 @@ def stream( from speechify import Speechify client = Speechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) client.audio.stream( @@ -302,7 +302,7 @@ def stream_with_timestamps( from speechify import Speechify client = Speechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) response = client.audio.stream_with_timestamps( @@ -402,7 +402,7 @@ async def speech( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) @@ -503,7 +503,7 @@ async def stream( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) @@ -626,7 +626,7 @@ async def stream_with_timestamps( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) diff --git a/src/speechify/client.py b/src/speechify/client.py index 0010194..a9edef4 100644 --- a/src/speechify/client.py +++ b/src/speechify/client.py @@ -60,7 +60,7 @@ class Speechify: from speechify import Speechify client = Speechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) """ @@ -70,7 +70,7 @@ def __init__( *, base_url: typing.Optional[str] = None, environment: SpeechifyEnvironment = SpeechifyEnvironment.DEFAULT, - version: typing.Optional[str] = "2026-09-21", + version: typing.Optional[str] = "2026-09-27", token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("SPEECHIFY_API_KEY"), headers: typing.Optional[typing.Dict[str, str]] = None, timeout: typing.Optional[float] = None, @@ -194,7 +194,7 @@ class AsyncSpeechify: from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) """ @@ -204,7 +204,7 @@ def __init__( *, base_url: typing.Optional[str] = None, environment: SpeechifyEnvironment = SpeechifyEnvironment.DEFAULT, - version: typing.Optional[str] = "2026-09-21", + version: typing.Optional[str] = "2026-09-27", token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("SPEECHIFY_API_KEY"), headers: typing.Optional[typing.Dict[str, str]] = None, async_token: typing.Optional[typing.Callable[[], typing.Awaitable[str]]] = None, diff --git a/src/speechify/models/client.py b/src/speechify/models/client.py index 4aab9e8..aea5705 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-21", + "2026-09-27", 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-21", + "2026-09-27", token="YOUR_TOKEN", ) diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 6958a99..41cdd42 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -29,6 +29,7 @@ "credential_not_found", "credential_in_use", "agent_not_found", + "agent_in_use", "kb_not_found", "kb_document_not_found", "kb_folder_not_found", @@ -48,6 +49,11 @@ "project_has_scoped_credentials", "project_limit_reached", "project_too_large_to_promote", + "call_not_found", + "message_not_found", + "thread_not_found", + "call_not_active", + "relay_displaces_agent", "insufficient_scope", "purchased_numbers_not_included", "phone_number_quota_reached", @@ -89,6 +95,9 @@ "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/voices/client.py b/src/speechify/voices/client.py index 1cdeef5..a2e5c39 100644 --- a/src/speechify/voices/client.py +++ b/src/speechify/voices/client.py @@ -120,7 +120,7 @@ def list( from speechify import Speechify client = Speechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) response = client.voices.list( @@ -217,7 +217,7 @@ def create( from speechify import Speechify client = Speechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) client.voices.create( @@ -265,7 +265,7 @@ def get(self, voice_id: str, *, request_options: typing.Optional[RequestOptions] from speechify import Speechify client = Speechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) client.voices.get( @@ -298,7 +298,7 @@ def delete(self, voice_id: str, *, request_options: typing.Optional[RequestOptio from speechify import Speechify client = Speechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) client.voices.delete( @@ -332,7 +332,7 @@ def download_sample( from speechify import Speechify client = Speechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) client.voices.download_sample( @@ -452,7 +452,7 @@ async def list( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) @@ -558,7 +558,7 @@ async def create( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) @@ -614,7 +614,7 @@ async def get(self, voice_id: str, *, request_options: typing.Optional[RequestOp from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) @@ -655,7 +655,7 @@ async def delete(self, voice_id: str, *, request_options: typing.Optional[Reques from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) @@ -697,7 +697,7 @@ async def download_sample( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) diff --git a/src/speechify/voices/consent_challenges/client.py b/src/speechify/voices/consent_challenges/client.py index 64d93ed..bddc4eb 100644 --- a/src/speechify/voices/consent_challenges/client.py +++ b/src/speechify/voices/consent_challenges/client.py @@ -78,7 +78,7 @@ def create( from speechify import Speechify client = Speechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) client.voices.consent_challenges.create( @@ -161,7 +161,7 @@ async def create( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-21", + "2026-09-27", token="YOUR_TOKEN", ) From af3896cca705470c7410150d3a3f93ba010a4547 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 27 Aug 2026 12:32:49 +0000 Subject: [PATCH 039/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 005c582..18ea12a 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "79eb1db805db1b9ada84dc9aef42a4daef35d85d", + "originGitCommit": "48c787a8270e07e4dd5d3d88eee2ccd35a6cbe7a", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 3649743ad2a45cdc341ca23c03d23372e18ab4ff Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 27 Aug 2026 12:45:56 +0000 Subject: [PATCH 040/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 18ea12a..26afb93 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "48c787a8270e07e4dd5d3d88eee2ccd35a6cbe7a", + "originGitCommit": "ba58d9d31c3da7734f1fa79bee31db2a4ffb1212", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 04ffa2eb6cbcc311b42c0275d2cb9a34e8ccdbea Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 27 Aug 2026 12:59:55 +0000 Subject: [PATCH 041/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 26afb93..6bb8e22 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "ba58d9d31c3da7734f1fa79bee31db2a4ffb1212", + "originGitCommit": "ca3092f1444f6884f50e98377257106286adf4eb", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 775360402031524080da185d7b3282f8b20be7e8 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 27 Aug 2026 17:24:37 +0000 Subject: [PATCH 042/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 6bb8e22..b4e3bd7 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "ca3092f1444f6884f50e98377257106286adf4eb", + "originGitCommit": "79c84faa26edf696bc7c11f6ad041c57af7bfc9a", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 5421075ef5e5506233c0a575e6b0bba004fde220 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 27 Aug 2026 18:35:38 +0000 Subject: [PATCH 043/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index b4e3bd7..a337bea 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "79c84faa26edf696bc7c11f6ad041c57af7bfc9a", + "originGitCommit": "899475b4a808efe38e598290c4cac26495f54be6", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 72699c9d328987bf85e7700cce8094fa7679cc0f Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 27 Aug 2026 18:59:05 +0000 Subject: [PATCH 044/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index a337bea..8af1480 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "899475b4a808efe38e598290c4cac26495f54be6", + "originGitCommit": "0bfc710a60cb2d27bda8c69d5b50c9f6f0d72a46", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From b7da229c19739b6e8db63fe111b1d4f013caa9e0 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 28 Aug 2026 09:36:08 +0000 Subject: [PATCH 045/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 8af1480..f83c881 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "0bfc710a60cb2d27bda8c69d5b50c9f6f0d72a46", + "originGitCommit": "5203b918e4b7b96c932cf69e5bd1709ed3548eb4", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 30b2076e14bb9eb811e6acf4fb7132c8dc65606c Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 28 Aug 2026 10:53:33 +0000 Subject: [PATCH 046/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 92 +++++ src/speechify/__init__.py | 3 + src/speechify/audio/__init__.py | 3 + src/speechify/audio/client.py | 24 ++ src/speechify/audio/watermark/__init__.py | 4 + src/speechify/audio/watermark/client.py | 142 ++++++++ src/speechify/audio/watermark/raw_client.py | 336 ++++++++++++++++++ src/speechify/types/__init__.py | 3 + src/speechify/types/error_code.py | 2 + .../types/watermark_detection_response.py | 38 ++ 11 files changed, 648 insertions(+), 1 deletion(-) 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/types/watermark_detection_response.py diff --git a/.fern/metadata.json b/.fern/metadata.json index f83c881..5ffee75 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "5203b918e4b7b96c932cf69e5bd1709ed3548eb4", + "originGitCommit": "d2814116718df9e204e32be2c89bce794a3d65b1", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index eaf3291..cee46f5 100644 --- a/reference.md +++ b/reference.md @@ -969,6 +969,98 @@ client.voices.download_sample( + + + + +## 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. + +
+
+
+
+ +
diff --git a/src/speechify/__init__.py b/src/speechify/__init__.py index df38d30..ca7c8f6 100644 --- a/src/speechify/__init__.py +++ b/src/speechify/__init__.py @@ -38,6 +38,7 @@ SpeechStreamEvent_SpeechChunk, SpeechStreamEvent_SpeechDone, SpeechStreamEvent_SpeechError, + WatermarkDetectionResponse, ) from .errors import ( BadGatewayError, @@ -121,6 +122,7 @@ "TooManyRequestsError": ".errors", "UnauthorizedError": ".errors", "UnprocessableEntityError": ".errors", + "WatermarkDetectionResponse": ".types", "__version__": ".version", "audio": ".audio", "models": ".models", @@ -205,6 +207,7 @@ def __dir__(): "TooManyRequestsError", "UnauthorizedError", "UnprocessableEntityError", + "WatermarkDetectionResponse", "__version__", "audio", "models", diff --git a/src/speechify/audio/__init__.py b/src/speechify/audio/__init__.py index ebbb090..0fac588 100644 --- a/src/speechify/audio/__init__.py +++ b/src/speechify/audio/__init__.py @@ -12,11 +12,13 @@ StreamAudioRequestAccept, StreamWithTimestampsAudioRequestAccept, ) + from . import watermark _dynamic_imports: typing.Dict[str, str] = { "GetSpeechRequestAudioFormat": ".types", "GetSpeechRequestModel": ".types", "StreamAudioRequestAccept": ".types", "StreamWithTimestampsAudioRequestAccept": ".types", + "watermark": ".watermark", } @@ -46,4 +48,5 @@ def __dir__(): "GetSpeechRequestModel", "StreamAudioRequestAccept", "StreamWithTimestampsAudioRequestAccept", + "watermark", ] diff --git a/src/speechify/audio/client.py b/src/speechify/audio/client.py index c76d8b3..08551cc 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 @@ -17,6 +19,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 +28,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: @@ -325,10 +331,20 @@ def stream_with_timestamps( ) 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: @@ -655,3 +671,11 @@ async def main() -> None: ) 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/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..ee9641e --- /dev/null +++ b/src/speechify/audio/watermark/client.py @@ -0,0 +1,142 @@ +# 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 .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( + "2026-09-27", + token="YOUR_TOKEN", + ) + client.audio.watermark.detect() + """ + _response = self._raw_client.detect(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( + "2026-09-27", + 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 diff --git a/src/speechify/audio/watermark/raw_client.py b/src/speechify/audio/watermark/raw_client.py new file mode 100644 index 0000000..66cc732 --- /dev/null +++ b/src/speechify/audio/watermark/raw_client.py @@ -0,0 +1,336 @@ +# 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.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 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", + 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) + + +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", + 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) diff --git a/src/speechify/types/__init__.py b/src/speechify/types/__init__.py index a59e35e..19cb16b 100644 --- a/src/speechify/types/__init__.py +++ b/src/speechify/types/__init__.py @@ -39,6 +39,7 @@ SpeechStreamEvent_SpeechDone, SpeechStreamEvent_SpeechError, ) + from .watermark_detection_response import WatermarkDetectionResponse _dynamic_imports: typing.Dict[str, str] = { "AudioOutputFormat": ".audio_output_format", "AudioStreamOutputFormat": ".audio_stream_output_format", @@ -71,6 +72,7 @@ "SpeechStreamEvent_SpeechChunk": ".speech_stream_event", "SpeechStreamEvent_SpeechDone": ".speech_stream_event", "SpeechStreamEvent_SpeechError": ".speech_stream_event", + "WatermarkDetectionResponse": ".watermark_detection_response", } @@ -127,4 +129,5 @@ def __dir__(): "SpeechStreamEvent_SpeechChunk", "SpeechStreamEvent_SpeechDone", "SpeechStreamEvent_SpeechError", + "WatermarkDetectionResponse", ] diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 41cdd42..7b79269 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -66,6 +66,8 @@ "consent_speaker_mismatch", "consent_recording_unusable", "consent_verification_unavailable", + "watermark_audio_unusable", + "watermark_detection_unavailable", "workspace_last_owner", "workspace_last_workspace", "account_deletion_blocked", 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 From 8d75d7c5114e5ab65245a5ddde0966675b1486ee Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 28 Aug 2026 18:49:28 +0000 Subject: [PATCH 047/272] SDK regeneration --- .fern/metadata.json | 2 +- LICENSE | 21 ++++ poetry.lock | 250 ++++++++++++++++++++++---------------------- pyproject.toml | 5 +- 4 files changed, 150 insertions(+), 128 deletions(-) create mode 100644 LICENSE diff --git a/.fern/metadata.json b/.fern/metadata.json index 5ffee75..9126e67 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "d2814116718df9e204e32be2c89bce794a3d65b1", + "originGitCommit": "c778e8f40175edad299f7b32db95105d0f59df80", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..1fc2ac2 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Speechify. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/poetry.lock b/poetry.lock index 232059d..bde195c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -936,19 +936,19 @@ files = [ [[package]] name = "pydantic" -version = "2.13.4" +version = "2.13.5" description = "Data validation using Python type hints" optional = false python-versions = ">=3.9" 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.13.5-py3-none-any.whl", hash = "sha256:346a034f080da3755d8e9cb5e00e8b07de1d39e4f6e2c87d8ab7cafa0b269a73"}, + {file = "pydantic-2.13.5.tar.gz", hash = "sha256:51a9c5f7b2f8e636f04c6cada605d9b6a3bf1348fdf945a3d8869b19bba0ee08"}, ] [package.dependencies] annotated-types = ">=0.6.0" -pydantic-core = "2.46.4" +pydantic-core = "2.46.5" typing-extensions = ">=4.14.1" typing-inspection = ">=0.4.2" @@ -958,132 +958,132 @@ timezone = ["tzdata ; python_version >= \"3.9\" and platform_system == \"Windows [[package]] name = "pydantic-core" -version = "2.46.4" +version = "2.46.5" description = "Core functionality for Pydantic validation and serialization" optional = false python-versions = ">=3.9" 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.46.5-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:657b40d6240c0a7b6a64b30f22d1e3aa631c7e846c621b0c0f6d1d75e2e15ea6"}, + {file = "pydantic_core-2.46.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ecb42011e12ee19cafbc312887cbf3546959fe02fbad44f272d4be5baa997615"}, + {file = "pydantic_core-2.46.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4dedce55295becb61921e386b99d4f2706045306e7fa52249a33004c837379fb"}, + {file = "pydantic_core-2.46.5-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:9f47b8a949e60f027f0aa0a6f6c7b7e9c55cbf4380d10b344e282fa4e7ab1e1b"}, + {file = "pydantic_core-2.46.5-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:200aa3dc9f8d54f0754f43247c0bad0999fdcfbfd2488384dd44f37279271fe6"}, + {file = "pydantic_core-2.46.5-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6d30e1a4f138b8951063e9a394752a9179b51da288ffa507b1e659222f4c1793"}, + {file = "pydantic_core-2.46.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:850a08d167dde16db8702c274f320c7be9d7da6f6dff2b58b18f9e815bd94f5b"}, + {file = "pydantic_core-2.46.5-cp310-cp310-manylinux_2_31_riscv64.whl", hash = "sha256:c3471e5c4a949c26ec00a77f01df59096aa9495877de76fd60a980f8ee6be461"}, + {file = "pydantic_core-2.46.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:3a3e26b6a8274211bddee2d0e4d0d42778f17a34510f49d2ec44b58abfc41736"}, + {file = "pydantic_core-2.46.5-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:fc5d783bd4a2387e97b8a2d5ec781cfb92b3d893bf82370548e99db5915935d3"}, + {file = "pydantic_core-2.46.5-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:356c8368cbc321050b169595683a2e1d63413b1e0e2868b330af9fc14c616d3f"}, + {file = "pydantic_core-2.46.5-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:eb7d8d0e5886a89a55d2eef490e272fa965a9d57c6b29a5b5088a7997ec2cad1"}, + {file = "pydantic_core-2.46.5-cp310-cp310-win32.whl", hash = "sha256:4d44cf99ddebf875f9b68cc267aa684c99b7b44fe63ee1cac4ec163807290069"}, + {file = "pydantic_core-2.46.5-cp310-cp310-win_amd64.whl", hash = "sha256:1e5aad1220a1192c42341c8fd4a8686657e73ab2a920c970bdc4de334fe3193d"}, + {file = "pydantic_core-2.46.5-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:a1dee1b804ff4d11c663636cf15d2ea47e9f79cd56c033fb1cbf08924842a48f"}, + {file = "pydantic_core-2.46.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:d625a186a65201c23a9e3b8ed9c47e90a026e03256608cc91851c6709096844f"}, + {file = "pydantic_core-2.46.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4f8507560a9284e1370bb048ed4282012fbef4e8d109875b95e884d228552061"}, + {file = "pydantic_core-2.46.5-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5f93c5fe914d75fbec9a49209b00da5f08e9e467d69da2b1510c81940cfd10be"}, + {file = "pydantic_core-2.46.5-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:aca6c767f552b21b10f774aeac128e828eafb796adfa1b666a18bf6321453c3a"}, + {file = "pydantic_core-2.46.5-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:701b2e04b560eeb4bddf7a25ab8ca476176e34fdbd9a0e18196f0d12d4685f0b"}, + {file = "pydantic_core-2.46.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:49776eab08766a08dfff7012f8b422dcd7e25e43b316eedf0477c24fcfa84b7c"}, + {file = "pydantic_core-2.46.5-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:a2468d93d181667a7abd66e1b64bb9f76f361b0fef8faddf687456453576f5ee"}, + {file = "pydantic_core-2.46.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:53feb344243bb9510a9dec7bf3cf1b64d88a98af5dc7872a5160465f8b198c8e"}, + {file = "pydantic_core-2.46.5-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:cd5214352ae68f3b5e9af7768bdc5253695ee069675db3480518420b3be881f2"}, + {file = "pydantic_core-2.46.5-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:9432f3598db432cb51c5b37fdbf29a60fcccc79e30d37a05022776a6bc4ab689"}, + {file = "pydantic_core-2.46.5-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:8feeac04b5794e513e710af2f9c87d49f31a6dc47967bb264a1fed61a8989bec"}, + {file = "pydantic_core-2.46.5-cp311-cp311-win32.whl", hash = "sha256:892a881d5f68c2b9ea304b7a6c2c60d9343df578a311b0f86b94bc8f1ffe8129"}, + {file = "pydantic_core-2.46.5-cp311-cp311-win_amd64.whl", hash = "sha256:40375c2d05acec10323e45dfe2077ac44bc74659008614af5069034e2cfc781c"}, + {file = "pydantic_core-2.46.5-cp311-cp311-win_arm64.whl", hash = "sha256:28a6a556cd3b6066bea827857f9d9cce027c96f776e512f544a581f9e42161f8"}, + {file = "pydantic_core-2.46.5-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:b9fe6fb92520e3fd61f2e49000b6911b188824f089b75973ea06d6267f0b476d"}, + {file = "pydantic_core-2.46.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a39ac25a9a2fa4072efdb429833c4a4c8009a51ff9eea3eeae131713cd27991e"}, + {file = "pydantic_core-2.46.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4fdc8b93a41521988916eeaa271173fcca7fa0803d62f87675aac8dcec1c8e29"}, + {file = "pydantic_core-2.46.5-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b98134087d9de723658d17a42c7d0da8d6e2ef08015dee7dc93889047315f5e4"}, + {file = "pydantic_core-2.46.5-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e652ab17569c94bff5475520f907b7148b8c24036a8ebbe5cf7cf7493d28579a"}, + {file = "pydantic_core-2.46.5-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d925f3d9afd05a8c0fb3a1031463a8d59ebe5e2afad297e29c78be19e13b4e62"}, + {file = "pydantic_core-2.46.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0fc5be0abd4a407e200d844b404e33639a554e7bd0d448e7b9ae181be4789ac2"}, + {file = "pydantic_core-2.46.5-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:816ff0a6550ffc06c098ccd2e0698600f9aa7da192a79eaa6f9af504a35db869"}, + {file = "pydantic_core-2.46.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c7ea57fc63aa7da93a1bd2d644e6577befae10c52c4e36377635eea1056a74f5"}, + {file = "pydantic_core-2.46.5-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:efd62a42486f1bda5d24cb4f63d15a3c7768375fe83d36f9417b4ad7a2fb20b3"}, + {file = "pydantic_core-2.46.5-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:2bc9419666990c06d7397831f2126a1ecc3594aaa3ff7de5bf2d066802f4e07b"}, + {file = "pydantic_core-2.46.5-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:18a09e1e1011b462f2e32774f25859ef1223d5c2b0546a633cf56654710721e0"}, + {file = "pydantic_core-2.46.5-cp312-cp312-win32.whl", hash = "sha256:5cb482e9e84c851f4e623fe4acc1ced89168cf1fe18f7089db4548c8f5bbb65b"}, + {file = "pydantic_core-2.46.5-cp312-cp312-win_amd64.whl", hash = "sha256:5e81740c09e310f5aa5cbd3e434a01c154d4bef93241c7877b39f211d2b78ba8"}, + {file = "pydantic_core-2.46.5-cp312-cp312-win_arm64.whl", hash = "sha256:f7b0ec93a2893de856652154d73b7ba622f26fa97726487dcac373de5f4c6084"}, + {file = "pydantic_core-2.46.5-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:b7ca9034437b6022f941f4857459562ee00a560b97e7cce8a0ec5a74fc6766e0"}, + {file = "pydantic_core-2.46.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f332f0e72a5a0400141f830744e141bf9f97917878dbe968669e8a7fefea78ff"}, + {file = "pydantic_core-2.46.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:193375f3548919d3f0b60936ca113ada3e38f264f91b9b8e0508efaad57be931"}, + {file = "pydantic_core-2.46.5-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:79bdfa52f843137045b2d081cc05c120ba6665d29b7559c2c47690906f39279f"}, + {file = "pydantic_core-2.46.5-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:24922243639cbdac66c75fcb6fd6495a9cb52b213d62f9a0d16f0310b1ff8038"}, + {file = "pydantic_core-2.46.5-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c76fe65e607be28c7fd4d56fc3c42b1583aa058ce3408b7ad0fd540171d31f9f"}, + {file = "pydantic_core-2.46.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6f7b393a8b3da82f5c1fc0751e6d01ac6c55b93c18226a60bdfba4a724efafd1"}, + {file = "pydantic_core-2.46.5-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:7ac031912d54f3d83ef3b3eb98dfabc1608802e2202263d25957eeed40b94761"}, + {file = "pydantic_core-2.46.5-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:837b396ca3d7b74091ca623f6cbd8351bd42d670a79c2683e79fb089f06a2de5"}, + {file = "pydantic_core-2.46.5-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:5ee239d575f80b08eca11f6e20f90c4c695de7825c67eefe6091fbf20dda648e"}, + {file = "pydantic_core-2.46.5-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:e80675d75ae2cd14372cb65cad5400d9347a3d3f6c13000183f22dfd027283ed"}, + {file = "pydantic_core-2.46.5-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:9c4b71f10dd532fb7a5cbc8f58707779e64f03a258c2bf8bfbaecfcd9970b519"}, + {file = "pydantic_core-2.46.5-cp313-cp313-win32.whl", hash = "sha256:97bf8de4d541598c94a59344eeb988a94c08ff76b5723c41f6567ec18c7892ea"}, + {file = "pydantic_core-2.46.5-cp313-cp313-win_amd64.whl", hash = "sha256:15f4a94963c95accac15b7b657bb177d3ad82bb90b0d0526d9a9b85079925db5"}, + {file = "pydantic_core-2.46.5-cp313-cp313-win_arm64.whl", hash = "sha256:d22a945598fb91236b4dd793a6e42e4f3dd7740bb5aace5ebd7d4c08d13bb575"}, + {file = "pydantic_core-2.46.5-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:c1c43ad4339643d70ebb8124e1305a7dab423001eff58bb41a0f731adbc98355"}, + {file = "pydantic_core-2.46.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1a353f84de772f423b5ffb11d7ae352fbbef0f446f3c0b0af0f8236d7233606e"}, + {file = "pydantic_core-2.46.5-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5086029a57366b8cf81b130a43908738095c270c21a8d7f0e8bdfdb89718e2f3"}, + {file = "pydantic_core-2.46.5-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:46c25dda9d092a06c08db76ffe0a197107904d0dfac653f7d5306bbcd6d6119c"}, + {file = "pydantic_core-2.46.5-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:37ea7b83c935e5b0d68c9449b82651accf78a10828b2c02b2f2d9e9496446c21"}, + {file = "pydantic_core-2.46.5-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e64e88d5585bea9ce95861079de72006c7fa6d3df4e3a3b65ba31eb979c15c9f"}, + {file = "pydantic_core-2.46.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:54d510bac3ee52247af28ed4bb18a1e799f040ac60fd2bf5ccd4c92f1fbe786f"}, + {file = "pydantic_core-2.46.5-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:a2a5e1d0ff29adddc9f6d6821a66302e4493f8ca898b715b6b1182c2c201ea0a"}, + {file = "pydantic_core-2.46.5-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:03b9666e41e35d8909852ba191a0607520f81b74eaf12ccf8737005dbb313821"}, + {file = "pydantic_core-2.46.5-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:a91c17edf6eea2402cb5457b4c89e99bc5ed1004aa34c4adf1d4258c1a5c22c2"}, + {file = "pydantic_core-2.46.5-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:b49924c73a235e969511bf2aabdff3beebf9820931f646c80274d5d780010c47"}, + {file = "pydantic_core-2.46.5-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:2cbd9a5eff05e51c447c34dfa4632145b26b09120cf04bd0c871e44c1a5e1c9a"}, + {file = "pydantic_core-2.46.5-cp314-cp314-win32.whl", hash = "sha256:2d5d76654becf5efd62c9e51c3756c67b49498b0c9a40884934c40807adbd074"}, + {file = "pydantic_core-2.46.5-cp314-cp314-win_amd64.whl", hash = "sha256:fa10ef4112775900e7a0661068635eb67b2ab824fbde764de6e0e21982a93db0"}, + {file = "pydantic_core-2.46.5-cp314-cp314-win_arm64.whl", hash = "sha256:045ab3b6d308439e32b81cc173bba5b9018bc6ed896afd0c65b3b009b1699af5"}, + {file = "pydantic_core-2.46.5-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:8816f3d218beb4b787de5c9759c259b8fa61f9dec42dc7811f320a33771778b7"}, + {file = "pydantic_core-2.46.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:bce57638e08ac148e5778cce7feb968307a727d66f8e2274a543d0cf0c9ad6a3"}, + {file = "pydantic_core-2.46.5-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:976e1128455aa595ea04c79ccfedff1aaeab96ee013fcc916bed120c4f0ad94f"}, + {file = "pydantic_core-2.46.5-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e7b891faeedeafba41b2983e5001a81b6a915b69544c7e7570d1989ce1c36ac7"}, + {file = "pydantic_core-2.46.5-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5f194189415698233dd1114a093a9b56e61e2c57e11b469be3b0506f46f0771c"}, + {file = "pydantic_core-2.46.5-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:82a36973cf8a2ef5406f4fe2edbf8ed0c99629535d959e0b100c76a32535a111"}, + {file = "pydantic_core-2.46.5-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cdbb78909f52b981d3b2d56b97328d71eb0b974c36bd77c920123a7ebb192829"}, + {file = "pydantic_core-2.46.5-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:52e24eacdb536cade636aa90fb851835222becff8484b7001fdc78cb0290f2aa"}, + {file = "pydantic_core-2.46.5-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:37ae34309d7bd8c0d61ab839668058f2a7962ea1fc51d105d2db228fe0618034"}, + {file = "pydantic_core-2.46.5-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:0cdbada856a1c69a7624a64d3d9aefe79300bd6ef827b43a4f265010b9b55184"}, + {file = "pydantic_core-2.46.5-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:545f26c504b27c3758439a5e6d9349931f0a04f855668d5fe323c89e82300a38"}, + {file = "pydantic_core-2.46.5-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:ff218293c9c806138dca139765e3b067621be52bcd93cdc14c7711be7ddc90a9"}, + {file = "pydantic_core-2.46.5-cp314-cp314t-win32.whl", hash = "sha256:97cf3eb53a8cccacf9d46686a0926186c9bfb5574f2ed66d3639d5fe117cd3a9"}, + {file = "pydantic_core-2.46.5-cp314-cp314t-win_amd64.whl", hash = "sha256:d2f9fc07a8042a8f95925b35c4f04f469707c981fc33245b6ca187cf5d2dd290"}, + {file = "pydantic_core-2.46.5-cp314-cp314t-win_arm64.whl", hash = "sha256:acf8a67ba51f4ca9ddbd0e6b3000a65ac51ab734661778b3e7ba64d99a710f2f"}, + {file = "pydantic_core-2.46.5-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:c583b927a8838dab890706a6fa7573fbb8b70e24000ef9f7238e2d6f6435a5ed"}, + {file = "pydantic_core-2.46.5-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:cdc8b74ecc48c0cb1e9607a05ec4e9e88db60a19ffcc9a1d5f9088ede40c8dc0"}, + {file = "pydantic_core-2.46.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8b10e3e8fd7ddc2bd915848a2768e44c15b22936f1cc54c462ad1164deb02655"}, + {file = "pydantic_core-2.46.5-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f077d0b97ab11fa7dcc633fca53515f290bca8a8a633e966d5b6d1879d9ed01a"}, + {file = "pydantic_core-2.46.5-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7b0fc826b16c55e561e5d2a0c5c77b051ba1d92808118c4e4b5390f5e0cf191d"}, + {file = "pydantic_core-2.46.5-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ef3fbbf161dc9351a2fe0422e51b129f9e97e42385bd0320b309c15f7d287dd8"}, + {file = "pydantic_core-2.46.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:978e7b97d4824b5be09c69fb70507cbde3b0323fc147332ca40a94d9a6a0ebbf"}, + {file = "pydantic_core-2.46.5-cp39-cp39-manylinux_2_31_riscv64.whl", hash = "sha256:9b68938dd5b0c783d88ff8e2dcc69451b5eb936fe212d516b21b9d5567f6d464"}, + {file = "pydantic_core-2.46.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:771cf63ae0b1b50dd22e5f3e3549fab5f3f4ff1635d352a9e1a97fe01c7b2e64"}, + {file = "pydantic_core-2.46.5-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:7c6be839a5a8312626b32029a415644a0846b420bc8b52b95b28cd92da162168"}, + {file = "pydantic_core-2.46.5-cp39-cp39-musllinux_1_1_armv7l.whl", hash = "sha256:895395f8918627b04efb1ad2a4cf605387143300ba03304cd1dfa6d03f5e095e"}, + {file = "pydantic_core-2.46.5-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:fc8515076c11f3cfdf4fb142dcca0fe384b1230a3b5415458ac84f3e0903ec13"}, + {file = "pydantic_core-2.46.5-cp39-cp39-win32.whl", hash = "sha256:3d2652072b2d774947ba5cf78a9e59644ac62ee572daf6dd2e1dfe905e15b2b7"}, + {file = "pydantic_core-2.46.5-cp39-cp39-win_amd64.whl", hash = "sha256:3aa166e99c4f2985407fb8714aebede877ecb5455cf321b606adca926d30d5a0"}, + {file = "pydantic_core-2.46.5-graalpy311-graalpy242_311_native-macosx_10_12_x86_64.whl", hash = "sha256:c14ad3bdc85ee7f318742c457ca3968a92126d144b15721c759033bfb06296c2"}, + {file = "pydantic_core-2.46.5-graalpy311-graalpy242_311_native-macosx_11_0_arm64.whl", hash = "sha256:0bddb4020d8f04175865ccd17eff3040874fc11fb593f424edb452653b4b947c"}, + {file = "pydantic_core-2.46.5-graalpy311-graalpy242_311_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2471fd51c61c610e1dcf7de44d7299283661654d11264ab4802b303368d69c47"}, + {file = "pydantic_core-2.46.5-graalpy311-graalpy242_311_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b10ec717381bdbfafef34607824db4c91de69ff085e4fca3b2af91b4fa17e68a"}, + {file = "pydantic_core-2.46.5-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:013d6f3483d81e02e7c328831808f336c8596ee33b4bd4026b9ffb1e960b8942"}, + {file = "pydantic_core-2.46.5-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:e9c134bb666dd54b778b9fc0d2b50cbb7f979b9e3716f26a88c9ab3b6fc1dd0f"}, + {file = "pydantic_core-2.46.5-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:347ec774390c87326a2e4929d58d3f7e8763a104d5d35f4cd595a4c952366433"}, + {file = "pydantic_core-2.46.5-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8e24d8f05fa2d28513d94e877e9c75ad66175376209b3977f916e240e623193c"}, + {file = "pydantic_core-2.46.5-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:ab4b66edffb32d9e951efb3814bd104b8367a7501b81b955cacb5726d897389f"}, + {file = "pydantic_core-2.46.5-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:337639ba62a11acde6ef3aeb08c8ea755f8ef1fe5e513356c0f36a2b0d7568b0"}, + {file = "pydantic_core-2.46.5-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:413a717a410d0c817ef5b786a059415550b3794e1d0c2abffd9efb93a3d9f7b4"}, + {file = "pydantic_core-2.46.5-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1e449def1945a462c464331254e5a44fca7c3b4f9aedf59ec2f50f8066dd8e25"}, + {file = "pydantic_core-2.46.5-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:a445486499897b88a7d6c310c88ed64dd37b1b59bfd7ae9107490bbb362f47d6"}, + {file = "pydantic_core-2.46.5-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:2d330aaba8621b1edcec8ae2c4050f63b84ccf6d98723a8f212e9684713abf0e"}, + {file = "pydantic_core-2.46.5-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:b6acfb46a814762367fb7ba0828b0a17d441b92ce249a0e007474c9072662dda"}, + {file = "pydantic_core-2.46.5-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:d0a24b40877af2de4950252be9d21eaf7fb07660f3c2cae1f56c6b599ada5266"}, + {file = "pydantic_core-2.46.5.tar.gz", hash = "sha256:10416c15b8839ecc4ef4d0885da76da6fd0f67333a0eb8aff6d93c4b8f2910fc"}, ] [package.dependencies] diff --git a/pyproject.toml b/pyproject.toml index e2b57eb..f18cb4d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ keywords = [ "text-to-speech", "tts" ] - +license = "MIT" classifiers = [ "Intended Audience :: Developers", "Programming Language :: Python", @@ -35,7 +35,8 @@ classifiers = [ "Operating System :: POSIX :: Linux", "Operating System :: Microsoft :: Windows", "Topic :: Software Development :: Libraries :: Python Modules", - "Typing :: Typed" + "Typing :: Typed", + "License :: OSI Approved :: MIT License" ] packages = [ { include = "speechify", from = "src"} From 518ed594470746a33064f8ff5580fb8201d0a30c Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 29 Aug 2026 15:11:33 +0000 Subject: [PATCH 048/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 104 +++++++ src/speechify/__init__.py | 3 + src/speechify/audio/watermark/client.py | 127 ++++++++ src/speechify/audio/watermark/raw_client.py | 285 ++++++++++++++++++ src/speechify/client.py | 9 - src/speechify/core/client_wrapper.py | 14 +- src/speechify/types/__init__.py | 3 + .../types/watermark_verification_response.py | 34 +++ 9 files changed, 565 insertions(+), 16 deletions(-) create mode 100644 src/speechify/types/watermark_verification_response.py diff --git a/.fern/metadata.json b/.fern/metadata.json index 9126e67..9a817ac 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "c778e8f40175edad299f7b32db95105d0f59df80", + "originGitCommit": "3eef4ed667e4efc5be2211dd06aa24996d991557", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index cee46f5..a4a3aca 100644 --- a/reference.md +++ b/reference.md @@ -1061,6 +1061,110 @@ reports zero. + + + + +
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. + +
+
+
+
+ +
diff --git a/src/speechify/__init__.py b/src/speechify/__init__.py index ca7c8f6..30b6a3d 100644 --- a/src/speechify/__init__.py +++ b/src/speechify/__init__.py @@ -39,6 +39,7 @@ SpeechStreamEvent_SpeechDone, SpeechStreamEvent_SpeechError, WatermarkDetectionResponse, + WatermarkVerificationResponse, ) from .errors import ( BadGatewayError, @@ -123,6 +124,7 @@ "UnauthorizedError": ".errors", "UnprocessableEntityError": ".errors", "WatermarkDetectionResponse": ".types", + "WatermarkVerificationResponse": ".types", "__version__": ".version", "audio": ".audio", "models": ".models", @@ -208,6 +210,7 @@ def __dir__(): "UnauthorizedError", "UnprocessableEntityError", "WatermarkDetectionResponse", + "WatermarkVerificationResponse", "__version__", "audio", "models", diff --git a/src/speechify/audio/watermark/client.py b/src/speechify/audio/watermark/client.py index ee9641e..274c1c4 100644 --- a/src/speechify/audio/watermark/client.py +++ b/src/speechify/audio/watermark/client.py @@ -6,6 +6,7 @@ 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 @@ -72,6 +73,65 @@ def 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( + "2026-09-27", + 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): @@ -140,3 +200,70 @@ async def main() -> None: """ _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( + "2026-09-27", + 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 index 66cc732..bed341a 100644 --- a/src/speechify/audio/watermark/raw_client.py +++ b/src/speechify/audio/watermark/raw_client.py @@ -20,6 +20,7 @@ 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 @@ -180,6 +181,148 @@ def detect( ) 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", + 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(), + ), + ), + ) + _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): @@ -334,3 +477,145 @@ async def detect( 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", + 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(), + ), + ), + ) + _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 a9edef4..bd286dc 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 @@ -83,10 +82,6 @@ def __init__( timeout if timeout is not None else 60 if httpx_client is None else httpx_client.timeout.read ) _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" - ) self._client_wrapper = SyncClientWrapper( base_url=_get_base_url(base_url=base_url, environment=environment), version=version, @@ -218,10 +213,6 @@ def __init__( timeout if timeout is not None else 60 if httpx_client is None else httpx_client.timeout.read ) _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" - ) self._client_wrapper = AsyncClientWrapper( base_url=_get_base_url(base_url=base_url, environment=environment), version=version, diff --git a/src/speechify/core/client_wrapper.py b/src/speechify/core/client_wrapper.py index a594e0b..697fea6 100644 --- a/src/speechify/core/client_wrapper.py +++ b/src/speechify/core/client_wrapper.py @@ -12,7 +12,7 @@ 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, timeout: typing.Optional[float] = None, @@ -41,11 +41,13 @@ def get_headers(self) -> typing.Dict[str, str]: } if self._version is not None: headers["Speechify-Version"] = self._version - headers["Authorization"] = f"Bearer {self._get_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() @@ -68,7 +70,7 @@ 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, timeout: typing.Optional[float] = None, @@ -100,7 +102,7 @@ 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, timeout: typing.Optional[float] = None, diff --git a/src/speechify/types/__init__.py b/src/speechify/types/__init__.py index 19cb16b..17191f7 100644 --- a/src/speechify/types/__init__.py +++ b/src/speechify/types/__init__.py @@ -40,6 +40,7 @@ SpeechStreamEvent_SpeechError, ) from .watermark_detection_response import WatermarkDetectionResponse + from .watermark_verification_response import WatermarkVerificationResponse _dynamic_imports: typing.Dict[str, str] = { "AudioOutputFormat": ".audio_output_format", "AudioStreamOutputFormat": ".audio_stream_output_format", @@ -73,6 +74,7 @@ "SpeechStreamEvent_SpeechDone": ".speech_stream_event", "SpeechStreamEvent_SpeechError": ".speech_stream_event", "WatermarkDetectionResponse": ".watermark_detection_response", + "WatermarkVerificationResponse": ".watermark_verification_response", } @@ -130,4 +132,5 @@ def __dir__(): "SpeechStreamEvent_SpeechDone", "SpeechStreamEvent_SpeechError", "WatermarkDetectionResponse", + "WatermarkVerificationResponse", ] 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 From 5b502aefaa880bf79160e94d1d9da79f8fec6e86 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 30 Aug 2026 10:15:30 +0000 Subject: [PATCH 049/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 9a817ac..47f2bf7 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "3eef4ed667e4efc5be2211dd06aa24996d991557", + "originGitCommit": "0627c88a751821d4044b1bd3948128944c68973e", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From b1794d76eaefa4bddb8507d4db4bffeba951204b Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 31 Aug 2026 07:35:18 +0000 Subject: [PATCH 050/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 47f2bf7..1e33c2b 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "0627c88a751821d4044b1bd3948128944c68973e", + "originGitCommit": "b8b1695334bfefe9340ab1a62dcc4e4aafc880ff", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 7b79269..c43ca78 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -54,6 +54,8 @@ "thread_not_found", "call_not_active", "relay_displaces_agent", + "brain_not_found", + "brain_in_use", "insufficient_scope", "purchased_numbers_not_included", "phone_number_quota_reached", From 421e231aa3dde25074fb94e09ec77ccf164909a9 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 31 Aug 2026 21:03:01 +0000 Subject: [PATCH 051/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 1e33c2b..6715108 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "b8b1695334bfefe9340ab1a62dcc4e4aafc880ff", + "originGitCommit": "f790c152de5b88131838594809593d550a4a5d85", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From f2741ae982f69f6b2990f597beb703678a66f8ca Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 1 Sep 2026 13:22:56 +0000 Subject: [PATCH 052/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 6715108..0843ed0 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "f790c152de5b88131838594809593d550a4a5d85", + "originGitCommit": "34355cd116869f9f66bc2ce8fe5bacc72586afeb", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 5cd3fdfdf0b318c7f9622ecf5cba4c50f5eb1f27 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 2 Sep 2026 12:39:01 +0000 Subject: [PATCH 053/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/audio/client.py | 12 +++++------ src/speechify/audio/watermark/client.py | 8 ++++---- src/speechify/client.py | 8 ++++---- src/speechify/models/client.py | 4 ++-- src/speechify/types/error_code.py | 13 ++++++++++++ src/speechify/voices/client.py | 20 +++++++++---------- .../voices/consent_challenges/client.py | 4 ++-- 8 files changed, 42 insertions(+), 29 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 0843ed0..58ccd42 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "34355cd116869f9f66bc2ce8fe5bacc72586afeb", + "originGitCommit": "abdf8e8e9221e4da258b203b2febc188a2305e05", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/audio/client.py b/src/speechify/audio/client.py index 08551cc..ee557ca 100644 --- a/src/speechify/audio/client.py +++ b/src/speechify/audio/client.py @@ -101,7 +101,7 @@ def speech( from speechify import Speechify client = Speechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) client.audio.speech( @@ -194,7 +194,7 @@ def stream( from speechify import Speechify client = Speechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) client.audio.stream( @@ -308,7 +308,7 @@ def stream_with_timestamps( from speechify import Speechify client = Speechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) response = client.audio.stream_with_timestamps( @@ -418,7 +418,7 @@ async def speech( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) @@ -519,7 +519,7 @@ async def stream( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) @@ -642,7 +642,7 @@ async def stream_with_timestamps( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) diff --git a/src/speechify/audio/watermark/client.py b/src/speechify/audio/watermark/client.py index 274c1c4..5dc507e 100644 --- a/src/speechify/audio/watermark/client.py +++ b/src/speechify/audio/watermark/client.py @@ -65,7 +65,7 @@ def detect( from speechify import Speechify client = Speechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) client.audio.watermark.detect() @@ -124,7 +124,7 @@ def verify( from speechify import Speechify client = Speechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) client.audio.watermark.verify() @@ -187,7 +187,7 @@ async def detect( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) @@ -254,7 +254,7 @@ async def verify( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) diff --git a/src/speechify/client.py b/src/speechify/client.py index bd286dc..3dfd751 100644 --- a/src/speechify/client.py +++ b/src/speechify/client.py @@ -59,7 +59,7 @@ class Speechify: from speechify import Speechify client = Speechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) """ @@ -69,7 +69,7 @@ def __init__( *, base_url: typing.Optional[str] = None, environment: SpeechifyEnvironment = SpeechifyEnvironment.DEFAULT, - version: typing.Optional[str] = "2026-09-27", + version: typing.Optional[str] = "2026-09-28", token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("SPEECHIFY_API_KEY"), headers: typing.Optional[typing.Dict[str, str]] = None, timeout: typing.Optional[float] = None, @@ -189,7 +189,7 @@ class AsyncSpeechify: from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) """ @@ -199,7 +199,7 @@ def __init__( *, base_url: typing.Optional[str] = None, environment: SpeechifyEnvironment = SpeechifyEnvironment.DEFAULT, - version: typing.Optional[str] = "2026-09-27", + version: typing.Optional[str] = "2026-09-28", token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("SPEECHIFY_API_KEY"), headers: typing.Optional[typing.Dict[str, str]] = None, async_token: typing.Optional[typing.Callable[[], typing.Awaitable[str]]] = None, diff --git a/src/speechify/models/client.py b/src/speechify/models/client.py index aea5705..bb9788f 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-27", + "2026-09-28", 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-27", + "2026-09-28", token="YOUR_TOKEN", ) diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index c43ca78..0407177 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -30,10 +30,14 @@ "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", + "channel_instance_not_found", + "team_not_found", + "trigger_not_found", "conversation_not_found", "phone_number_not_found", "sip_trunk_not_found", @@ -94,6 +98,15 @@ "project_not_purged", "project_restore_window_expired", "project_name_taken", + "funded_balance_required", + "agent_publish_gate_failed", + "agent_publish_gate_required", + "text_channel_not_in_plan", + "text_turn_failed", + "text_message_quota_exceeded", + "durable_runs_not_in_plan", + "agent_run_not_pending", + "agent_run_action_stale", "share_link_not_found", "share_link_exhausted", "share_link_limit_reached", diff --git a/src/speechify/voices/client.py b/src/speechify/voices/client.py index a2e5c39..b3d68d2 100644 --- a/src/speechify/voices/client.py +++ b/src/speechify/voices/client.py @@ -120,7 +120,7 @@ def list( from speechify import Speechify client = Speechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) response = client.voices.list( @@ -217,7 +217,7 @@ def create( from speechify import Speechify client = Speechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) client.voices.create( @@ -265,7 +265,7 @@ def get(self, voice_id: str, *, request_options: typing.Optional[RequestOptions] from speechify import Speechify client = Speechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) client.voices.get( @@ -298,7 +298,7 @@ def delete(self, voice_id: str, *, request_options: typing.Optional[RequestOptio from speechify import Speechify client = Speechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) client.voices.delete( @@ -332,7 +332,7 @@ def download_sample( from speechify import Speechify client = Speechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) client.voices.download_sample( @@ -452,7 +452,7 @@ async def list( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) @@ -558,7 +558,7 @@ async def create( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) @@ -614,7 +614,7 @@ async def get(self, voice_id: str, *, request_options: typing.Optional[RequestOp from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) @@ -655,7 +655,7 @@ async def delete(self, voice_id: str, *, request_options: typing.Optional[Reques from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) @@ -697,7 +697,7 @@ async def download_sample( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) diff --git a/src/speechify/voices/consent_challenges/client.py b/src/speechify/voices/consent_challenges/client.py index bddc4eb..5960e7f 100644 --- a/src/speechify/voices/consent_challenges/client.py +++ b/src/speechify/voices/consent_challenges/client.py @@ -78,7 +78,7 @@ def create( from speechify import Speechify client = Speechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) client.voices.consent_challenges.create( @@ -161,7 +161,7 @@ async def create( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-27", + "2026-09-28", token="YOUR_TOKEN", ) From dc9eb5a4e370d07363103549c317c156eadca50a Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 3 Sep 2026 11:02:44 +0000 Subject: [PATCH 054/272] SDK regeneration --- .fern/metadata.json | 2 +- poetry.lock | 8 ++++---- src/speechify/types/error_code.py | 15 +++++++++++++++ 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 58ccd42..06097d9 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "abdf8e8e9221e4da258b203b2febc188a2305e05", + "originGitCommit": "f15c27609f1707910db2f0f163a310457700d57b", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/poetry.lock b/poetry.lock index bde195c..9a8af5a 100644 --- a/poetry.lock +++ b/poetry.lock @@ -188,20 +188,20 @@ files = [ [[package]] name = "anyio" -version = "4.14.2" +version = "4.15.0" description = "High-level concurrency and networking framework on top of asyncio or Trio" optional = false python-versions = ">=3.10" groups = ["main"] files = [ - {file = "anyio-4.14.2-py3-none-any.whl", hash = "sha256:9f505dda5ac9f0c8309b5e8bd445a8c2bf7246f3ce950121e45ea15bc41d1494"}, - {file = "anyio-4.14.2.tar.gz", hash = "sha256:cfa139f3ed1a23ee8f88a145ddb5ac7605b8bbfd8592baacd7ce3d8bb4313c7f"}, + {file = "anyio-4.15.0-py3-none-any.whl", hash = "sha256:7ecd9937369ffce8bba0b5ccb9b3a9507b101b0ed50256aecfbab27e6c2acb99"}, + {file = "anyio-4.15.0.tar.gz", hash = "sha256:b5c620ed540725e2579c31b17bb995b3bf02c9281c9cace04c7d186380bab85e"}, ] [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)"] diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 0407177..315fad6 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -38,6 +38,21 @@ "channel_instance_not_found", "team_not_found", "trigger_not_found", + "store_not_found", + "store_document_not_found", + "store_asset_not_found", + "hosted_api_not_found", + "api_route_not_found", + "consumer_key_not_found", + "store_limit_reached", + "store_document_limit_reached", + "store_not_configured", + "hosted_apis_not_in_plan", + "hosted_api_slug_taken", + "api_route_conflict", + "route_output_unavailable", + "route_run_timeout", + "route_run_failed", "conversation_not_found", "phone_number_not_found", "sip_trunk_not_found", From 12be3c849aa2553ad9940ad3f332f69d2e13d491 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 3 Sep 2026 12:04:10 +0000 Subject: [PATCH 055/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 06097d9..4f2c846 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "f15c27609f1707910db2f0f163a310457700d57b", + "originGitCommit": "45b616e14598d6c729c4f5c154b7d66bfd86018b", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 0b1a9e99bd51847107c9e159fbe7e622891a3c70 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 3 Sep 2026 12:49:43 +0000 Subject: [PATCH 056/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 4f2c846..516752b 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "45b616e14598d6c729c4f5c154b7d66bfd86018b", + "originGitCommit": "ba5bee44627fd9d285c283f4af03941a04aae185", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 315fad6..d5486c0 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -46,6 +46,7 @@ "consumer_key_not_found", "store_limit_reached", "store_document_limit_reached", + "store_bytes_limit_reached", "store_not_configured", "hosted_apis_not_in_plan", "hosted_api_slug_taken", @@ -53,6 +54,7 @@ "route_output_unavailable", "route_run_timeout", "route_run_failed", + "route_run_limit_reached", "conversation_not_found", "phone_number_not_found", "sip_trunk_not_found", From 5f85c2a4db9692b2835543b4e6d4c9d812024f8a Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 3 Sep 2026 18:03:30 +0000 Subject: [PATCH 057/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 516752b..9d1c66e 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "ba5bee44627fd9d285c283f4af03941a04aae185", + "originGitCommit": "28918cb0254be16d0ba300f6334a5859424d8a8f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index d5486c0..1b3c489 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -122,6 +122,7 @@ "text_turn_failed", "text_message_quota_exceeded", "durable_runs_not_in_plan", + "tool_transport_unsupported", "agent_run_not_pending", "agent_run_action_stale", "share_link_not_found", From fd5c2319b20326c74c4decf6570e63caa24300b6 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 3 Sep 2026 18:04:15 +0000 Subject: [PATCH 058/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 9d1c66e..2992073 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "28918cb0254be16d0ba300f6334a5859424d8a8f", + "originGitCommit": "a431e39397198e7f26dc6f62f5cc317618ba3a61", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From ac81cf26a2b6d56de24818128c4ca37adca2aa5c Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 3 Sep 2026 19:04:40 +0000 Subject: [PATCH 059/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 2992073..923a03e 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "a431e39397198e7f26dc6f62f5cc317618ba3a61", + "originGitCommit": "cce44aac299914ef4651db92cd52c20840619380", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 0d302e564d92415c7dea887ac8784608adb59579 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 10:00:00 +0000 Subject: [PATCH 060/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 923a03e..b948065 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "cce44aac299914ef4651db92cd52c20840619380", + "originGitCommit": "cf63ee5f13199aae79f91ac127123d007d42a108", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 1b3c489..93ecb9f 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -44,11 +44,18 @@ "hosted_api_not_found", "api_route_not_found", "consumer_key_not_found", + "skill_not_found", + "skill_version_not_found", "store_limit_reached", "store_document_limit_reached", "store_bytes_limit_reached", "store_not_configured", "hosted_apis_not_in_plan", + "skills_not_in_plan", + "skill_in_use", + "skill_tool_name_conflict", + "skill_limit_reached", + "agent_skill_limit_reached", "hosted_api_slug_taken", "api_route_conflict", "route_output_unavailable", From be1a4318ce7ef7ec670831e649423337a3d077cd Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 10:04:14 +0000 Subject: [PATCH 061/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index b948065..e038360 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "cf63ee5f13199aae79f91ac127123d007d42a108", + "originGitCommit": "e03c5324d2f3cc9f62b7e343f5282b9a8d0cbf4d", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 77b7e6898e704211c30e8a172220d05138ecd4ec Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 10:07:36 +0000 Subject: [PATCH 062/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index e038360..7b67e96 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "e03c5324d2f3cc9f62b7e343f5282b9a8d0cbf4d", + "originGitCommit": "9f9ac4169b46ce89ab60b5139ace3c8b70121cac", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 3568ec90332d81ab5a0ec2b6c53c9a74ed218d0e Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 10:21:47 +0000 Subject: [PATCH 063/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 7b67e96..f1fa61b 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "9f9ac4169b46ce89ab60b5139ace3c8b70121cac", + "originGitCommit": "27ee8e45c154652430d89b723cc0c710e02a46b2", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 686e57fc1588b1106ef190261fef9ed9a5007028 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 11:48:12 +0000 Subject: [PATCH 064/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index f1fa61b..1143b2d 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "27ee8e45c154652430d89b723cc0c710e02a46b2", + "originGitCommit": "9b6e50bf380a7e91b11b370273e6ff88159b9ae6", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 9324c61f5e2a9747b65ede7cb24b51e58560cbd0 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 12:02:26 +0000 Subject: [PATCH 065/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 1143b2d..6bcc7a8 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "9b6e50bf380a7e91b11b370273e6ff88159b9ae6", + "originGitCommit": "02a2d04f13a2a9b6b7736e378d92afecf60f17c6", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 68a4eae52ca6b2901c489f91b3cb6c2819815178 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 14:26:56 +0000 Subject: [PATCH 066/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 6bcc7a8..cae8da4 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "02a2d04f13a2a9b6b7736e378d92afecf60f17c6", + "originGitCommit": "0c5bd09763d75b48d872408eb6a5b8f70cd3a892", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 1d90f2bcc212541d6a92ec9f597887733e6d4aab Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 14:27:29 +0000 Subject: [PATCH 067/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index cae8da4..620a98a 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "0c5bd09763d75b48d872408eb6a5b8f70cd3a892", + "originGitCommit": "1d35e51052b5b67d6481245a1c910ae72b9bb31b", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 02790e1b0ad4b3362ce5384929b768151a3c16ae Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 14:37:29 +0000 Subject: [PATCH 068/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 620a98a..18346ac 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "1d35e51052b5b67d6481245a1c910ae72b9bb31b", + "originGitCommit": "f45531e3f0ba65b630d584883abeb1a703b811ea", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 166207bec80852aabd3044513e9327aa49cffcea Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 14:48:01 +0000 Subject: [PATCH 069/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 18346ac..4779c14 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "f45531e3f0ba65b630d584883abeb1a703b811ea", + "originGitCommit": "19af92ee75061be5fa5e7059c3204bb496335c25", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 9e0d48067bf55714fe68a6dcc547bc796d263e26 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 15:05:28 +0000 Subject: [PATCH 070/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 4779c14..8eb86e8 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "19af92ee75061be5fa5e7059c3204bb496335c25", + "originGitCommit": "569fc63a5ebcbc176aecee4d23b6ee95b9ed455c", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From ac04cfa00303028a750d28bae5c30a3cf3a0d977 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 16:18:01 +0000 Subject: [PATCH 071/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 8eb86e8..f29ccfd 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "569fc63a5ebcbc176aecee4d23b6ee95b9ed455c", + "originGitCommit": "1fc2b22166b1da1bf201dc53a5361ecbbb8dde80", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 9f6b47312f9c55acd5e6a31093106fbdd679fe1b Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 16:30:19 +0000 Subject: [PATCH 072/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index f29ccfd..998f617 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "1fc2b22166b1da1bf201dc53a5361ecbbb8dde80", + "originGitCommit": "eace0c9bab544f7d909493b998a2a457a1a96a46", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From fc78ffff14a8465b91e092bb6bc8ffd63a882671 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 17:02:26 +0000 Subject: [PATCH 073/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 998f617..68c1b7f 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "eace0c9bab544f7d909493b998a2a457a1a96a46", + "originGitCommit": "ffd4a8906c94c2e779b8c4a3e34bb0a1f2eab739", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From b62e643b3a301c123f91d8ea48eede5b11905f1d Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 17:36:03 +0000 Subject: [PATCH 074/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 68c1b7f..d0a4106 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "ffd4a8906c94c2e779b8c4a3e34bb0a1f2eab739", + "originGitCommit": "220882d9524ce3d402838e47da0e68a25eb6db20", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 0a2d9d4a1a59096382d2ee4eae63e3844f0bb127 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 18:08:51 +0000 Subject: [PATCH 075/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index d0a4106..b776564 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "220882d9524ce3d402838e47da0e68a25eb6db20", + "originGitCommit": "7baa9b80dfcc96492817ec0023ccd52daa1e1c08", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From fbfaa4e62ddd58e6ed9106342b79e9e84e2a248d Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 09:20:21 +0000 Subject: [PATCH 076/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index b776564..e977144 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "7baa9b80dfcc96492817ec0023ccd52daa1e1c08", + "originGitCommit": "3418f1a48a944f87a6282d01fa81b622a40a43e9", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From b891344c334c5dd8bfbf54c44a37d9dfafb87109 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 11:39:04 +0000 Subject: [PATCH 077/272] SDK regeneration --- .fern/metadata.json | 2 +- poetry.lock | 6 +++--- src/speechify/types/error_code.py | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index e977144..3c0d839 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "3418f1a48a944f87a6282d01fa81b622a40a43e9", + "originGitCommit": "da4149db4f546771c8de05d01042f141b22324b6", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/poetry.lock b/poetry.lock index 9a8af5a..69eb874 100644 --- a/poetry.lock +++ b/poetry.lock @@ -188,14 +188,14 @@ files = [ [[package]] name = "anyio" -version = "4.15.0" +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.15.0-py3-none-any.whl", hash = "sha256:7ecd9937369ffce8bba0b5ccb9b3a9507b101b0ed50256aecfbab27e6c2acb99"}, - {file = "anyio-4.15.0.tar.gz", hash = "sha256:b5c620ed540725e2579c31b17bb995b3bf02c9281c9cace04c7d186380bab85e"}, + {file = "anyio-4.15.1-py3-none-any.whl", hash = "sha256:6152fdbbf9a77fdec97731721bebf7c4c44f7c29b424b0065826173efc7ed101"}, + {file = "anyio-4.15.1.tar.gz", hash = "sha256:9f28306018cbd6d329e64a36d58256edff76dd996fe423bc957326e578b82a94"}, ] [package.dependencies] diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 93ecb9f..85cf537 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -126,6 +126,7 @@ "agent_publish_gate_failed", "agent_publish_gate_required", "text_channel_not_in_plan", + "channel_not_in_plan", "text_turn_failed", "text_message_quota_exceeded", "durable_runs_not_in_plan", From 168fadea90b4ca0093aba19b815b9a9e0243b39d Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 13:41:47 +0000 Subject: [PATCH 078/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 3c0d839..e121407 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "da4149db4f546771c8de05d01042f141b22324b6", + "originGitCommit": "6cb3ccb9a60588130e09ea70e59d977086c88b5f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From f4010e389baf0168f791648f1a042c48a5f3e3ea Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 16:20:58 +0000 Subject: [PATCH 079/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index e121407..483d240 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "6cb3ccb9a60588130e09ea70e59d977086c88b5f", + "originGitCommit": "ec13909396d91055ad42ade3ebac5144e4dd3c7b", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From c9d33db8b0139ecd30766e73b5242ca23a89f8d0 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 16:36:19 +0000 Subject: [PATCH 080/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 483d240..6889d29 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "ec13909396d91055ad42ade3ebac5144e4dd3c7b", + "originGitCommit": "ab99c44fc77aa3b5f9112c30c40d1ff9126854f9", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 50b244252c0c98ef66e8da640a4ca5e95eeef20c Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 16:40:59 +0000 Subject: [PATCH 081/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 6889d29..ef4325b 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "ab99c44fc77aa3b5f9112c30c40d1ff9126854f9", + "originGitCommit": "870d3c7b745b9b854584196e3c56e994f00c1799", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 1aa00c04bceebd23acf5325503003e744f3891e6 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 16:44:14 +0000 Subject: [PATCH 082/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index ef4325b..33c4821 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "870d3c7b745b9b854584196e3c56e994f00c1799", + "originGitCommit": "5c17c03153aff64860136812cd7ef8825a2c04c8", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From c7f4ff359d741cb62d1073f7c33aa3dd7f93b727 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 16:47:12 +0000 Subject: [PATCH 083/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 33c4821..ecb3fb7 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "5c17c03153aff64860136812cd7ef8825a2c04c8", + "originGitCommit": "fe3910155838cb338ead221ec6535ed529207738", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 0cf10151964835bf898f33c89348066b15f05fd8 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 16:49:04 +0000 Subject: [PATCH 084/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index ecb3fb7..bc410ad 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "fe3910155838cb338ead221ec6535ed529207738", + "originGitCommit": "03af8668c2f2ffedd322f104069bb3b64e404c04", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From bebe638decbe4211924c0f65989655fa32c70f92 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 16:52:00 +0000 Subject: [PATCH 085/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index bc410ad..32cc0a2 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "03af8668c2f2ffedd322f104069bb3b64e404c04", + "originGitCommit": "d60b6c3dd2e91964a31a362fb70899519d6d375f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From bf75f85a2d4de80b575717efde28fc758961fccc Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 16:54:36 +0000 Subject: [PATCH 086/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 32cc0a2..7809443 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "d60b6c3dd2e91964a31a362fb70899519d6d375f", + "originGitCommit": "25049f325afe3d61c6f6580c8854e958003fb1d1", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 5ce49ce168f7211191e42ed4a94b2263b29f3113 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 17:15:48 +0000 Subject: [PATCH 087/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 7809443..928f3a7 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "25049f325afe3d61c6f6580c8854e958003fb1d1", + "originGitCommit": "25bc2bc764979780ca76e0cf7f54f1959f84d804", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From db87e08554883a67306456bb55259478d4b72ced Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 17:25:41 +0000 Subject: [PATCH 088/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 928f3a7..5c7e048 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "25bc2bc764979780ca76e0cf7f54f1959f84d804", + "originGitCommit": "8b900876a0a2ff0157fb3022e7c965123a652db0", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From e18df5bbb58fe102234e500ced35cd499fd05d7c Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 17:38:14 +0000 Subject: [PATCH 089/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 5c7e048..e5cb987 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "8b900876a0a2ff0157fb3022e7c965123a652db0", + "originGitCommit": "42fe986f3f12611dd36272d0d6c84c0babeec637", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 1d172fcda1550d1267fbd68b91c87a020db0ffe6 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 10:38:51 +0000 Subject: [PATCH 090/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index e5cb987..bbaf456 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "42fe986f3f12611dd36272d0d6c84c0babeec637", + "originGitCommit": "f708d18dc5b2a50e9076db145e15d5eb12a7dc6f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From a0c63eb4253ab6c76c0c39b89485823fd4a3364f Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 10:46:58 +0000 Subject: [PATCH 091/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index bbaf456..afd6f72 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "f708d18dc5b2a50e9076db145e15d5eb12a7dc6f", + "originGitCommit": "9dc27356b123f3e9ec8264ccc067df7cda71c5a4", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 85cf537..dc696ea 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -125,6 +125,7 @@ "funded_balance_required", "agent_publish_gate_failed", "agent_publish_gate_required", + "agent_publish_gate_unavailable", "text_channel_not_in_plan", "channel_not_in_plan", "text_turn_failed", From be20fc0c7f615bf8a5e0ecdc0390f72528b542c0 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 11:06:33 +0000 Subject: [PATCH 092/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index afd6f72..e79afda 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "9dc27356b123f3e9ec8264ccc067df7cda71c5a4", + "originGitCommit": "7e97f01cddc26b58f3f02b6f978351de92ab2b17", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 8bfacfadd63a7ce461c9c7c212936a066833b782 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 11:18:51 +0000 Subject: [PATCH 093/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index e79afda..d2cd1b3 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "7e97f01cddc26b58f3f02b6f978351de92ab2b17", + "originGitCommit": "e7a772caabbc75fd9d5d521aa5c500c8354c598c", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 3d7e730597536ee485a85b548aea69b20dae038c Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 11:33:39 +0000 Subject: [PATCH 094/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index d2cd1b3..76ff394 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "e7a772caabbc75fd9d5d521aa5c500c8354c598c", + "originGitCommit": "59485b67edc351426316e88dba5bc13391e75fb5", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From d48e65c3332ed90e15f59b4286c451957a3c41b2 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 11:58:28 +0000 Subject: [PATCH 095/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 76ff394..601e5b7 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "59485b67edc351426316e88dba5bc13391e75fb5", + "originGitCommit": "9a1375868be76d8046ff2380e279111fdb2dae8f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From b620c2b049847e412fbf8004711bc626fb0a54df Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 12:15:15 +0000 Subject: [PATCH 096/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 601e5b7..cf1e64a 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "9a1375868be76d8046ff2380e279111fdb2dae8f", + "originGitCommit": "b432c27bb2b492c8b6e164438de2178be322569d", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From b1cb874f17469a1a0699addbcb970a395230f795 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 12:23:28 +0000 Subject: [PATCH 097/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index cf1e64a..7ac54b0 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "b432c27bb2b492c8b6e164438de2178be322569d", + "originGitCommit": "6a597150c27267c9b4f5b79b7039847d5dbfe355", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 4f14e92bca6c529d0ae4c5c97f228ff524ab6509 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 12:57:22 +0000 Subject: [PATCH 098/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 7ac54b0..2930471 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "6a597150c27267c9b4f5b79b7039847d5dbfe355", + "originGitCommit": "f566162f429908a8ee9df4a82bdfe4a6098e0c29", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 13f6f9927a542e0dd01f75a1a88860db6820ee7b Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 14:15:39 +0000 Subject: [PATCH 099/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 2930471..a9ad7b2 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "f566162f429908a8ee9df4a82bdfe4a6098e0c29", + "originGitCommit": "3dd6c5301d43ad4730a415b41bddb996b08d6ad2", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From de4a18672e39e943d91f737826a1b12850c47003 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 14:17:50 +0000 Subject: [PATCH 100/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index a9ad7b2..efccab0 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "3dd6c5301d43ad4730a415b41bddb996b08d6ad2", + "originGitCommit": "28c4414d3bb38c961d645f20437995347590e81b", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From f2ca6118d918cefe35e8e1c0c2c0246a46305367 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 16:34:09 +0000 Subject: [PATCH 101/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index efccab0..946cd06 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "28c4414d3bb38c961d645f20437995347590e81b", + "originGitCommit": "6c355cb24c4ee3108f38613f891ebb5bec62de57", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 802e6bedd2ac727c07411a4e2ea1e40bccf2abe0 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 17:15:22 +0000 Subject: [PATCH 102/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 946cd06..82756ce 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "6c355cb24c4ee3108f38613f891ebb5bec62de57", + "originGitCommit": "a76a639510111c1e838a26fc7574f1a89e69fd48", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 7216158f087421921e558044e850d11b0d900ee0 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 17:33:16 +0000 Subject: [PATCH 103/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 82756ce..8a37982 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "a76a639510111c1e838a26fc7574f1a89e69fd48", + "originGitCommit": "9a5e804a9eb90a0a6261d18704a5dd329615092f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 821d5af735411849473f06a0406ff4e63fd9f510 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 21:04:21 +0000 Subject: [PATCH 104/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 8a37982..b62ce8a 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "9a5e804a9eb90a0a6261d18704a5dd329615092f", + "originGitCommit": "ce60db3bf4bb0600258669a5717f534d42c44aab", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 3a502bc1675b463627e167d1fa163011d1189458 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 21:15:00 +0000 Subject: [PATCH 105/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index b62ce8a..8e37eec 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "ce60db3bf4bb0600258669a5717f534d42c44aab", + "originGitCommit": "b3a4bc8b27b8b653aeb0af90bc123fef8284da21", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 77cd89b52c2362ef33a7df2a12c1f566560bf5af Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 21:22:31 +0000 Subject: [PATCH 106/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 8e37eec..f78126c 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "b3a4bc8b27b8b653aeb0af90bc123fef8284da21", + "originGitCommit": "b0966d9f4188d35fe81a7b1d4806459e6211818d", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From c280e7cdfde9ca28333101d27e49be26c88e8c29 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 08:52:30 +0000 Subject: [PATCH 107/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index f78126c..b35f2d4 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "b0966d9f4188d35fe81a7b1d4806459e6211818d", + "originGitCommit": "45358d9d434a26180d563d72f764309a8dc0a0ac", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 2a0ba6999dc515ba414b3516880baeb3dcedfcc2 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 09:24:43 +0000 Subject: [PATCH 108/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index b35f2d4..a715405 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "45358d9d434a26180d563d72f764309a8dc0a0ac", + "originGitCommit": "aa65f8e48092b77e424405296da7046da90a1e44", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 568b514d1442adbcd3eecbfb19cfd38ddf73bfb1 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 14:07:22 +0000 Subject: [PATCH 109/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/audio/client.py | 12 +++++------ src/speechify/audio/watermark/client.py | 8 ++++---- src/speechify/client.py | 8 ++++---- src/speechify/models/client.py | 4 ++-- src/speechify/voices/client.py | 20 +++++++++---------- .../voices/consent_challenges/client.py | 4 ++-- 7 files changed, 29 insertions(+), 29 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index a715405..70a7ad1 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "aa65f8e48092b77e424405296da7046da90a1e44", + "originGitCommit": "d3b4f0d12dd32bb15d33ac7e4c15b43d1c15b8f6", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/audio/client.py b/src/speechify/audio/client.py index ee557ca..ec33db2 100644 --- a/src/speechify/audio/client.py +++ b/src/speechify/audio/client.py @@ -101,7 +101,7 @@ def speech( from speechify import Speechify client = Speechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) client.audio.speech( @@ -194,7 +194,7 @@ def stream( from speechify import Speechify client = Speechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) client.audio.stream( @@ -308,7 +308,7 @@ def stream_with_timestamps( from speechify import Speechify client = Speechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) response = client.audio.stream_with_timestamps( @@ -418,7 +418,7 @@ async def speech( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) @@ -519,7 +519,7 @@ async def stream( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) @@ -642,7 +642,7 @@ async def stream_with_timestamps( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) diff --git a/src/speechify/audio/watermark/client.py b/src/speechify/audio/watermark/client.py index 5dc507e..1f75a17 100644 --- a/src/speechify/audio/watermark/client.py +++ b/src/speechify/audio/watermark/client.py @@ -65,7 +65,7 @@ def detect( from speechify import Speechify client = Speechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) client.audio.watermark.detect() @@ -124,7 +124,7 @@ def verify( from speechify import Speechify client = Speechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) client.audio.watermark.verify() @@ -187,7 +187,7 @@ async def detect( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) @@ -254,7 +254,7 @@ async def verify( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) diff --git a/src/speechify/client.py b/src/speechify/client.py index 3dfd751..25dbdd4 100644 --- a/src/speechify/client.py +++ b/src/speechify/client.py @@ -59,7 +59,7 @@ class Speechify: from speechify import Speechify client = Speechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) """ @@ -69,7 +69,7 @@ def __init__( *, base_url: typing.Optional[str] = None, environment: SpeechifyEnvironment = SpeechifyEnvironment.DEFAULT, - version: typing.Optional[str] = "2026-09-28", + version: typing.Optional[str] = "2026-09-29", token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("SPEECHIFY_API_KEY"), headers: typing.Optional[typing.Dict[str, str]] = None, timeout: typing.Optional[float] = None, @@ -189,7 +189,7 @@ class AsyncSpeechify: from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) """ @@ -199,7 +199,7 @@ def __init__( *, base_url: typing.Optional[str] = None, environment: SpeechifyEnvironment = SpeechifyEnvironment.DEFAULT, - version: typing.Optional[str] = "2026-09-28", + version: typing.Optional[str] = "2026-09-29", token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("SPEECHIFY_API_KEY"), headers: typing.Optional[typing.Dict[str, str]] = None, async_token: typing.Optional[typing.Callable[[], typing.Awaitable[str]]] = None, diff --git a/src/speechify/models/client.py b/src/speechify/models/client.py index bb9788f..d2d7963 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-28", + "2026-09-29", 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-28", + "2026-09-29", token="YOUR_TOKEN", ) diff --git a/src/speechify/voices/client.py b/src/speechify/voices/client.py index b3d68d2..c1894d7 100644 --- a/src/speechify/voices/client.py +++ b/src/speechify/voices/client.py @@ -120,7 +120,7 @@ def list( from speechify import Speechify client = Speechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) response = client.voices.list( @@ -217,7 +217,7 @@ def create( from speechify import Speechify client = Speechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) client.voices.create( @@ -265,7 +265,7 @@ def get(self, voice_id: str, *, request_options: typing.Optional[RequestOptions] from speechify import Speechify client = Speechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) client.voices.get( @@ -298,7 +298,7 @@ def delete(self, voice_id: str, *, request_options: typing.Optional[RequestOptio from speechify import Speechify client = Speechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) client.voices.delete( @@ -332,7 +332,7 @@ def download_sample( from speechify import Speechify client = Speechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) client.voices.download_sample( @@ -452,7 +452,7 @@ async def list( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) @@ -558,7 +558,7 @@ async def create( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) @@ -614,7 +614,7 @@ async def get(self, voice_id: str, *, request_options: typing.Optional[RequestOp from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) @@ -655,7 +655,7 @@ async def delete(self, voice_id: str, *, request_options: typing.Optional[Reques from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) @@ -697,7 +697,7 @@ async def download_sample( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) diff --git a/src/speechify/voices/consent_challenges/client.py b/src/speechify/voices/consent_challenges/client.py index 5960e7f..d6d2a37 100644 --- a/src/speechify/voices/consent_challenges/client.py +++ b/src/speechify/voices/consent_challenges/client.py @@ -78,7 +78,7 @@ def create( from speechify import Speechify client = Speechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) client.voices.consent_challenges.create( @@ -161,7 +161,7 @@ async def create( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-28", + "2026-09-29", token="YOUR_TOKEN", ) From a7b6b89bddc0bd38be6c215b4bae4b8497e250f2 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 14:31:05 +0000 Subject: [PATCH 110/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 70a7ad1..e9f59ff 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "d3b4f0d12dd32bb15d33ac7e4c15b43d1c15b8f6", + "originGitCommit": "602fb21f0afb65c6182238e788d71d8736af4838", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 497b9a4cfcf04d75414e86902cd16224ad03ef4e Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 15:34:17 +0000 Subject: [PATCH 111/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index e9f59ff..3335c97 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "602fb21f0afb65c6182238e788d71d8736af4838", + "originGitCommit": "ce9b36dabb5a8a4b62d486ab7b0d4ed082107c03", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From b917d3c53d7ccc4b8695fc51ac77dae4ee3282e5 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 17:28:36 +0000 Subject: [PATCH 112/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 3335c97..bca139d 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "ce9b36dabb5a8a4b62d486ab7b0d4ed082107c03", + "originGitCommit": "00578643c366f48e1725700af22bc978f4577b0c", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 6e2e76be0b54bd2bf6a56fd12460658ed8013213 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 17:48:09 +0000 Subject: [PATCH 113/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index bca139d..e7b3e32 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "00578643c366f48e1725700af22bc978f4577b0c", + "originGitCommit": "0d615d1dd3cf841123e136cdc7f91a8e03a27c0b", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 0560e18a18b6b13ff0f754b5c8ef6b597024d0b3 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 17:49:32 +0000 Subject: [PATCH 114/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index e7b3e32..f0b3fae 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "0d615d1dd3cf841123e136cdc7f91a8e03a27c0b", + "originGitCommit": "d798cd9e12a794bb62610ee687ad70b787a73b26", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 9bbab995fc3044cd6f3f12b027c124cfb7ce9373 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 19:48:55 +0000 Subject: [PATCH 115/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index f0b3fae..e0873d4 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "d798cd9e12a794bb62610ee687ad70b787a73b26", + "originGitCommit": "5af611534e61ff2a90c5b5f1a6a9d01f82570781", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From a59e83c2f91c5cb71def310a5a33e43ddf917aa8 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 20:24:58 +0000 Subject: [PATCH 116/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index e0873d4..5af0e44 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "5af611534e61ff2a90c5b5f1a6a9d01f82570781", + "originGitCommit": "36a8adf176b2ce305d060329788857554b8ec803", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index dc696ea..c6f11aa 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -76,6 +76,7 @@ "cross_project_reference", "project_has_scoped_credentials", "project_limit_reached", + "agent_limit_reached", "project_too_large_to_promote", "call_not_found", "message_not_found", From 76a363ca17a623b03b90495d7168cb9bd8ee7b2f Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 20:29:11 +0000 Subject: [PATCH 117/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 5af0e44..4298c3e 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "36a8adf176b2ce305d060329788857554b8ec803", + "originGitCommit": "c6e8a758261a9e8817a22ea8ecead3bee1321dc7", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 1f79a6ec2066371252b98978ecbdea78a109c287 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 12:09:31 +0000 Subject: [PATCH 118/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/model.py | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 4298c3e..6ba8c17 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "c6e8a758261a9e8817a22ea8ecead3bee1321dc7", + "originGitCommit": "eb3e756d94c875e943be79b55dbc452cef3b32e6", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/model.py b/src/speechify/types/model.py index 22d19de..8e10c95 100644 --- a/src/speechify/types/model.py +++ b/src/speechify/types/model.py @@ -27,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() @@ -92,13 +92,12 @@ class Model(UniversalBaseModel): 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() From cdfeb55ef86064173154650565addfe768503f24 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 12:27:54 +0000 Subject: [PATCH 119/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 6ba8c17..29d6aba 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "eb3e756d94c875e943be79b55dbc452cef3b32e6", + "originGitCommit": "412125ef22afe1ee8b378aca558eefa10e724c63", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 03f57ec8fdab1296fd577b9c0b3ec4f07c0aa75e Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 13:33:54 +0000 Subject: [PATCH 120/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 29d6aba..c864f4b 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "412125ef22afe1ee8b378aca558eefa10e724c63", + "originGitCommit": "edb57c57b2b44c80ea96d561218730fcb12ccde4", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index c6f11aa..bd3aa3f 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -46,6 +46,7 @@ "consumer_key_not_found", "skill_not_found", "skill_version_not_found", + "file_not_found", "store_limit_reached", "store_document_limit_reached", "store_bytes_limit_reached", From 9034d574a4827a38d7f93c93080c4e29d5774c79 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 13:39:53 +0000 Subject: [PATCH 121/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index c864f4b..a41b131 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "edb57c57b2b44c80ea96d561218730fcb12ccde4", + "originGitCommit": "ba840ee212344667c8af0e4875014b0a02edb91f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index bd3aa3f..601f314 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -47,6 +47,8 @@ "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", From 3d63820e3450502009cb015b1716a6ecf660d286 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 13:47:50 +0000 Subject: [PATCH 122/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index a41b131..2528d3c 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "ba840ee212344667c8af0e4875014b0a02edb91f", + "originGitCommit": "8cb544c6fecc2e03c33ba7e2a211352b258678e9", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From de6a69c63d2c2eaf544d581481e37ad25e10644b Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 13:54:58 +0000 Subject: [PATCH 123/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 2528d3c..9b5d212 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "8cb544c6fecc2e03c33ba7e2a211352b258678e9", + "originGitCommit": "fe0858baa0be1eddcfbbc2a2936bdff33688918f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 601f314..37335a6 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -40,7 +40,6 @@ "trigger_not_found", "store_not_found", "store_document_not_found", - "store_asset_not_found", "hosted_api_not_found", "api_route_not_found", "consumer_key_not_found", From bbb6348d7233eb3ee974439617354ad909d5d138 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 20:16:13 +0000 Subject: [PATCH 124/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 9b5d212..7c7cf58 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "fe0858baa0be1eddcfbbc2a2936bdff33688918f", + "originGitCommit": "ba6c456d8f33864c9be620d0222339dec4826b70", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From b308c62fe2598dd347fe563751124bea20041e46 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 21:27:22 +0000 Subject: [PATCH 125/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 7c7cf58..7ffc01c 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "ba6c456d8f33864c9be620d0222339dec4826b70", + "originGitCommit": "59b9fe11e6b943f697986ca7b1c495791b1cc2d6", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From f12d5a8b9c65e89393cd9aa910ac06bdde7e8453 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 21:33:08 +0000 Subject: [PATCH 126/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 7ffc01c..3f83253 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "59b9fe11e6b943f697986ca7b1c495791b1cc2d6", + "originGitCommit": "beb238f1fc31b317cf5ec06f965e883c0063b42a", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 4f6c25ab6bbf48323de9615041a23c6964586e81 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 21:37:41 +0000 Subject: [PATCH 127/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 3f83253..0f0f79a 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "beb238f1fc31b317cf5ec06f965e883c0063b42a", + "originGitCommit": "f2ee5a13ab3ec56e65808d5497d3ed0409d67dc5", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 3a312e8720d83cbae163701cb937d95bee73f75a Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 09:59:30 +0000 Subject: [PATCH 128/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 0f0f79a..a63025f 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "f2ee5a13ab3ec56e65808d5497d3ed0409d67dc5", + "originGitCommit": "0e7eb2d9974c1df729a07f6e697040ac0d3a5de5", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 51297846f0f443fc48c454693ac47eff203d25cf Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 14:09:37 +0000 Subject: [PATCH 129/272] SDK regeneration --- .fern/metadata.json | 2 +- poetry.lock | 321 ++++++++++++++++++++++++-------------------- 2 files changed, 174 insertions(+), 149 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index a63025f..9e7b780 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "0e7eb2d9974c1df729a07f6e697040ac0d3a5de5", + "originGitCommit": "469f90fe2b2e35ed0e382053022d9a4793dabee8", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/poetry.lock b/poetry.lock index 69eb874..42b00d6 100644 --- a/poetry.lock +++ b/poetry.lock @@ -550,159 +550,184 @@ files = [ [[package]] name = "multidict" -version = "6.7.1" +version = "6.8.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-6.8.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:c0fe437a6d2f36aac2b49517057776575b5bf359df314cca20d230a6e139c089"}, + {file = "multidict-6.8.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:f3a0a31189acf6703307397c6139ddabd734c20c5ef92649fc93e473df6615a3"}, + {file = "multidict-6.8.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c9c98d2f0126ba84cb45601eed97ff67ff767e19ae6eb3c31b02827b54d700e5"}, + {file = "multidict-6.8.0-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:7bc7003991ebd368a20d05228137a37b3d3066751f3ea1e4f7b8efe8e752f2f5"}, + {file = "multidict-6.8.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c2c5fd0fd39574ccd58e1a52565b341aff522c5c836f1b3eb7605c371e61f52c"}, + {file = "multidict-6.8.0-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b1cd4d66ce894a45482e1ac2837c31d0bd447df35065e542b60055aa2d00404b"}, + {file = "multidict-6.8.0-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7a2573d0fd34f361a4a14e54d8cda3a91ac4e55fbf0d719698024f3b09c5b147"}, + {file = "multidict-6.8.0-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:edda19aff836ec515caafc09ea53d2ab144a041f09ee9a7cefcbd3ae4e976256"}, + {file = "multidict-6.8.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e418ec99574ca24365ca96546af285c2b021a1a072478a79f0e3cc3b08837154"}, + {file = "multidict-6.8.0-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:11d71490bf4bbff1141b14b93af419ad68c56b60bea9277fcb3f94dcca4796eb"}, + {file = "multidict-6.8.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:e8e1e895e23818d343e4ae7dd95a0a556fdeaf8b471acf1c0a39b93c6f54d478"}, + {file = "multidict-6.8.0-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:15db8e6cab5f4cc9241bc56e69fdf3452cf49c10ee3c7977c742e68a275b3786"}, + {file = "multidict-6.8.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:8dc2d9c3a924ed14166e63650b2cf9f59e7821743bdd50b23802bd97ca09bde5"}, + {file = "multidict-6.8.0-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:f2fa3d3b1c933d4bcb8fd2018700d5e7235c52f2ab8c88d22286965c5c0f00f8"}, + {file = "multidict-6.8.0-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:d6dc7804c50fabd28644d4d18a4b20aad3681b3e64f3acd3182b330ca73f7a32"}, + {file = "multidict-6.8.0-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:0eca15d627e942ce186a935061f1568cc46c02e97c419c8da802df2be9f917d8"}, + {file = "multidict-6.8.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:d7e5ba0a0153e35fbce9c51df530c8b4cb0c3012b46a04ff9a048441a269c2ed"}, + {file = "multidict-6.8.0-cp310-cp310-win32.whl", hash = "sha256:b7e62b8fc7bd6cad007b9f2e0ad9c8d4854c06350d5f51e1a439dd18b510ecac"}, + {file = "multidict-6.8.0-cp310-cp310-win_amd64.whl", hash = "sha256:dc911ae6152e455b16a2a1a626aa6cd612fa01efb9d0a4ab3f5cf328b911483d"}, + {file = "multidict-6.8.0-cp310-cp310-win_arm64.whl", hash = "sha256:6300d5176647145ba1e22991c924fb29743e54b4d7b8bc85a0d3ec0e55e189cb"}, + {file = "multidict-6.8.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:1b8986d4313dcee7c932837d16a535f1840b827bac1ea7c5c4c80751d0423794"}, + {file = "multidict-6.8.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2622fe114c0bd66ca5c461859357587f5a5e35ee5ff49fc5643d1bc78dbb41c6"}, + {file = "multidict-6.8.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:26a7aafc992e78872e2c8c1f7248c0e01139cf9020a7781b0c064fa566832712"}, + {file = "multidict-6.8.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:05c2e90c5289c5f7436ba2c25812a5fbdaa1c1bc11c8d8d3bbf64f5cd7c633dd"}, + {file = "multidict-6.8.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7941ef106ca1f2c62314a13c7ed913bcf49641f3efdc12864d588e17870920ac"}, + {file = "multidict-6.8.0-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a5a7ee1217949ddd43c6b7bcf70d5c22193bb50e8c695386de5905325e93ce9f"}, + {file = "multidict-6.8.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6b62b7e0025aa48dec11e125e655d1157985a5fdcec04b1ad500101ad072b891"}, + {file = "multidict-6.8.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ea880d441be7c510106bc56064be39266d948aef94ad4955e8784690019a5d9f"}, + {file = "multidict-6.8.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ab83fdd8cf307353edba9c427c17a3a021c2522d690f5633dd9f72d28b48ccca"}, + {file = "multidict-6.8.0-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3d1f48582686a0a3b81e9b43234766cc96697df72081af3f48107bd3f34d34e5"}, + {file = "multidict-6.8.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:563661919f603374c40cf45ffcd25535c12b8954203569a2ab1cee5265871cf4"}, + {file = "multidict-6.8.0-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:2ba9933e8f35fe4a70f540b837254c4055da82dc3a9e500a8f95e61498083a15"}, + {file = "multidict-6.8.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:68d40b2bace413f3231f5729d3fcfb1837fd31c4907e241b5d43211bfd76f3c2"}, + {file = "multidict-6.8.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:a9e246f67ac038568b854ed7c5578e4c6af1f742359901a8fcc3603ff1358df6"}, + {file = "multidict-6.8.0-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:29b6e7bc4442a56cf8e0dc1cabf3fdc77cd533568d6829fc76a1effd2ce332ec"}, + {file = "multidict-6.8.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:82780eb8bf59e8fb25dd081fde6e058805045d6374a7f2f877effc826ca4434b"}, + {file = "multidict-6.8.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:2196ba6df392c3574acadd14ef87550f3611349c8618564de324b806a7a31cee"}, + {file = "multidict-6.8.0-cp311-cp311-win32.whl", hash = "sha256:b8b7aa75146266fd3e2a2437cf69ae188688c04ab8665b163d4257b46c1e0c83"}, + {file = "multidict-6.8.0-cp311-cp311-win_amd64.whl", hash = "sha256:b03ca066b47b18b205cc080dca6f76cbd159f8cdd33a02a0700164c13b37e463"}, + {file = "multidict-6.8.0-cp311-cp311-win_arm64.whl", hash = "sha256:54af1266710cb0f305127ae0b970aff8d208057f8a29cd6e1db99b0114947035"}, + {file = "multidict-6.8.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:22a310ad37672a261e55a8b5e28d0ae08cfb68abb1f46418ccd19835c3b8e836"}, + {file = "multidict-6.8.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:bb8c7da8c861391f7ae48e3593762be2dabe405109e01aec520fbe1a6d15d14b"}, + {file = "multidict-6.8.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:10456943903744ae1249728161c96bd9d2f7eb5ee17fcc2ffda2dc32e1bb36c7"}, + {file = "multidict-6.8.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:658f5a1895b804423d97b22d06fc0d0b171c7c01dcc3aa9c8faf0c0e26a249a5"}, + {file = "multidict-6.8.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:90c10b22860dbd09982d0b8993b66231a861bea2993d4a817ff35273f6ea285a"}, + {file = "multidict-6.8.0-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:088b04a66b3c1fce6fe4d771ec184a0426262d0b86709c908477b4ac7965df40"}, + {file = "multidict-6.8.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9caef53b20a105c0d66518a34be2f71b2783de8d091767575ef86f6ea422236d"}, + {file = "multidict-6.8.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a5e1583c14775580da05641240ce0d93f36ce3ddef3d5083a827468b0bcfe874"}, + {file = "multidict-6.8.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:003a3bddb32915c3f67096ea41d24e53edf710edb65a1f5d0c70ab40b0e4d20b"}, + {file = "multidict-6.8.0-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:35977263d9bf506dbc65349f63b3b8c91606d4abc110990945e3b94bc671319c"}, + {file = "multidict-6.8.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e9dc7b4ff6ef184504b49ef9a4113d49a646653b2ce89f5f48c1f57cdf6ba081"}, + {file = "multidict-6.8.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:887f9a975996032c686719eb7b3e1e7942fab5079c2b778bbd9afe9a9d78244f"}, + {file = "multidict-6.8.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:f3071e6515cc63714d014da8f738ae9fa3997c476203f3cd46de380c2376ed7b"}, + {file = "multidict-6.8.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:c5f3a2af441670d80ce5fdf13b6c1b421fc1fc7fc5182d58ac7486738bb2b742"}, + {file = "multidict-6.8.0-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:31e8901637e20ccb3cf8f8848b5d0f7a00462bf5b34f7cf3dcbb2753b18e8b39"}, + {file = "multidict-6.8.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:13967dca8b2f33230a1427b52438326bb1c9101a1df22a3309ed3fcbbb3c96f0"}, + {file = "multidict-6.8.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ad474c11d851b6fc97cb625e4822bc0cbd567fc07dc2602e28faec5a36b42bbb"}, + {file = "multidict-6.8.0-cp312-cp312-win32.whl", hash = "sha256:7bb0dad75068fee80fcb60f88569722c199d8656a16706702dc6e3b786819c90"}, + {file = "multidict-6.8.0-cp312-cp312-win_amd64.whl", hash = "sha256:7d26dc8f070c0ec5579e987fa615ffd6883086106eefdff9e10d160fc5630630"}, + {file = "multidict-6.8.0-cp312-cp312-win_arm64.whl", hash = "sha256:e6ec7d37841609a691b96a10b4fde386c7cd93ebbb939f59c9f23325ee788395"}, + {file = "multidict-6.8.0-cp313-cp313-android_24_x86_64.whl", hash = "sha256:ec0a4d066356054d569a66e0a94691a2058b680be5e710298f61db11a3c4609f"}, + {file = "multidict-6.8.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:714597cb5d5e15a8a449d2ae23c45b486a9e8fa33c462c7a33d7f35b65d92943"}, + {file = "multidict-6.8.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:e0db3a4d1e264e225037a6023888972c25206a96e016021a5bea41c9a939f2a9"}, + {file = "multidict-6.8.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:27747162712e85c84598d364425dbf1714ff335bdb6ba3171c4e5081196e8916"}, + {file = "multidict-6.8.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:847d6082ae694dc95e548acb201bc100e1cfa96513bc71fdcb86f709dad6c435"}, + {file = "multidict-6.8.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:88a6df88567680504ae28bfa7a1f2f64243d91e79a40b2c92ef42efc531e23da"}, + {file = "multidict-6.8.0-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:560b211fc3bd4a1e1c6de44f6d38113bf5b410dfc89a4c0d2a3c0edbf1a0dfb8"}, + {file = "multidict-6.8.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:202436df907c15adbb94360296c425ea53cf8968a5d2cff9b5b9790ae1972b33"}, + {file = "multidict-6.8.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c46a08bf070d6849fed483e9d9833f9d06aecb8382ed985be0b38508b3ae958e"}, + {file = "multidict-6.8.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2cd560498ae8e1bcc955643c1d78eb8e338226d07a983c656ea8c4443d3eec0f"}, + {file = "multidict-6.8.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:758233648ac47b07c575224c4eadd73c8929c3b4c31e2afcfea935fde1cda735"}, + {file = "multidict-6.8.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:122adc7c46ac1e31ecfc7f81b2530533dccafdba70f5d741649f87e336c63384"}, + {file = "multidict-6.8.0-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8125e60f3c70e323ac07dd8b3635f7b3bbc5c3a9ac04ae5988f668ff7ae28a18"}, + {file = "multidict-6.8.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:83ff054b04915be5c15680da6c6012474a2cc2bf534129a0e8c6a99f17ba7238"}, + {file = "multidict-6.8.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:930c6058047410e3edff445f5a6e4457f2e089042dede00e2d18ce06f3ceae2e"}, + {file = "multidict-6.8.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:13e26f59f0eecfc5f67c663ad550ffdaf62c0f657547cde387f6c86af1c9449e"}, + {file = "multidict-6.8.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:fd789a294d8e098528be29b2669b83005ce569339f8cef167fc0274c3115c34c"}, + {file = "multidict-6.8.0-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:3126f2a96704505aa4e92a72d6e8a5d7f29d40a987ced8bf69e29d71dfc71fbc"}, + {file = "multidict-6.8.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:23c9ee89967b6a9b4048acb3b93b660ed714ce9c8bf3bbe652959bc120dc02dc"}, + {file = "multidict-6.8.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:7a62e302fc8cd6aa8972207e7e951d1fdee7c1dda18568305041d19f0e2c00f5"}, + {file = "multidict-6.8.0-cp313-cp313-win32.whl", hash = "sha256:093167d22a8c95af30f597b8a5686f20a14512989942d4be804d119899caca20"}, + {file = "multidict-6.8.0-cp313-cp313-win_amd64.whl", hash = "sha256:f25b61a708bd276e8cbb6afcbbf1b8e793a3be70ba0a842d0b8692020f83b706"}, + {file = "multidict-6.8.0-cp313-cp313-win_arm64.whl", hash = "sha256:bb36381e1f9f9d06eba2f10bdd438e5d20c07d5b55e1a3eee30b9f44cbf52316"}, + {file = "multidict-6.8.0-cp314-cp314-android_24_x86_64.whl", hash = "sha256:f8b09b25e0f4dc2ea9e2adbb1cc3ba11a94d6fa3dd978ae659c8743052e1afbc"}, + {file = "multidict-6.8.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:1f57c414be82490bc0e0305fdb834186229b2d9b6a35fa0afd1eb1a772d125ab"}, + {file = "multidict-6.8.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:00be37bde741bf60871082cd347a093218c44886e99231b7516671c70f2c280d"}, + {file = "multidict-6.8.0-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:e37b744849fb631bb52e3dadde35ffeee365a6c41cf71257b5b7acc9cd83fd38"}, + {file = "multidict-6.8.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:c2b2a96cf1dd99fe7867be4c013314225f4d5786e6685906e29932d42aca6f11"}, + {file = "multidict-6.8.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:bea7df027015856ba5d0a88e3b4777ff8cb5c66b58fc108050fe79d4dd9d4d2d"}, + {file = "multidict-6.8.0-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:d3da668e903c934ed0b587ecacfed6901f6ae6384a6e975887592b61845e78bc"}, + {file = "multidict-6.8.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:64eaeda36ee8d88f9e8616a587a8c66a663283cf6e0dcf013c1ddd8c758e4aef"}, + {file = "multidict-6.8.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ac746cb365bac1c462da9e3e6ab8904a8efe2217a56b0b2e3d9480f41d2b2602"}, + {file = "multidict-6.8.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:18f0e06360c3e451a3ab800355773c8d125a758238d780c800b0ee5e90ee903c"}, + {file = "multidict-6.8.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:69708fecaa88bcb2341397b49fc95057a835b02a3670c551b37f95dd79e64e3a"}, + {file = "multidict-6.8.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9606f583e7acaf61e7b3f56074e14037b9af7cb194590edfc0114b3ae5931ff7"}, + {file = "multidict-6.8.0-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1f66fe6a021173d0d47968491791966b9f3e6d61115f2491744aa0c07a6e67af"}, + {file = "multidict-6.8.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:be007d1aee2cbd530347dcafedb400891a3b5f1bd7135f95cf5d5b330b5219ee"}, + {file = "multidict-6.8.0-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:8457aff3c12a89a8e1c4674de5c777857fbc429f40fe117a3d29538547cbc364"}, + {file = "multidict-6.8.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:95c27b4f3f04320fc44e338573f40c5c956b504a7fcf081a157fd0b02579311c"}, + {file = "multidict-6.8.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:d244cf6b52b5ba1c34c3832f4652a668ebb36d95949b96eed9a1c54d916a90dd"}, + {file = "multidict-6.8.0-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:5bbbb696c8024475b1877d14ce20d5f1cc05b8f6d786cea0fe3aa7fedc02e891"}, + {file = "multidict-6.8.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:cbd86f9787c5e2f5fd27d8b21458222f107347c6731c4e93dde68f554b466a2d"}, + {file = "multidict-6.8.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:2f8a4b0b4d639d525928c7f30de527bfdf9ead6e44a5e8cb9c50aced5e4590cb"}, + {file = "multidict-6.8.0-cp314-cp314-win32.whl", hash = "sha256:8890c89d662560e51c55ac1304d6f919b23942abe9ae1127cb1de9aa6132fa52"}, + {file = "multidict-6.8.0-cp314-cp314-win_amd64.whl", hash = "sha256:45cc39ba50fb0754a4359b90f8229ae08598fe2266abe3521b4e5a9ba916534a"}, + {file = "multidict-6.8.0-cp314-cp314-win_arm64.whl", hash = "sha256:d0264f8d5cb0a803f650a6a8572dfa0cd1e099a2234c588dc8fb220b415b865f"}, + {file = "multidict-6.8.0-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:1969971900b0871530f9b62280dcc2d75688e74d2a69262bc01faf2b96c78f04"}, + {file = "multidict-6.8.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:8180b635290a75af8478f1b3e9810135381ae24833293fe77b85c1c21ff842ab"}, + {file = "multidict-6.8.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:4261863fc8b5ab1b815ede94e592e94c6af5b04616014929057e61859e7382a9"}, + {file = "multidict-6.8.0-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:0b143d53590e89f43153d81d505a8448d4d57354354385aef8a51d67ffefa27e"}, + {file = "multidict-6.8.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:da1c112c5784ccd9d32cd90be6739fee32644e874eff6ae8f0497cba3e352e58"}, + {file = "multidict-6.8.0-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:f7eefd0233a7c33ca980a5cfef26f1e9b5e2137839e752a99963696729f12d91"}, + {file = "multidict-6.8.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:348bb85e2038b40c007383616d73f734869063772372519549ebd7da1723d1a4"}, + {file = "multidict-6.8.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:095f62ea4e7a3be2f6c567ab695ce10e950f2adb905c1bec82281593e0b2d2ad"}, + {file = "multidict-6.8.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:be569fff1d85cd29391c431c5641c8772acb75bbdc61e60a8e82fceb9023d385"}, + {file = "multidict-6.8.0-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3533a03e4e789baf6a286e7b0b1b6da3f3d7c3eab569686ee29ee1d8b52e2cb4"}, + {file = "multidict-6.8.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:1bdb9b8fba5a9aef673ec90db3f55b1ce743f2fbdea4d37dc04d14ccdfc153ff"}, + {file = "multidict-6.8.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:f8d7b66c9e09c0bb0add2b5895e646b62a0849e71155066f215523de6b95cbe6"}, + {file = "multidict-6.8.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:563d6500ca80dac7bba6f48a78e0ffd87e21a7d4d24642c6503a2ddccd70c110"}, + {file = "multidict-6.8.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:346ac52e56bcda320c0dcdfdd081947ed7cada33afea4e2284bef7b0733bff9b"}, + {file = "multidict-6.8.0-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:4ee953a5ebaeed38dc21cc032ed17a9d9782802e00042200497ab4b01b0bf7c0"}, + {file = "multidict-6.8.0-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:2f79cc3e8039a8cf5c77e0811b0807953fd52d0863b9b76970b20d696dc64a78"}, + {file = "multidict-6.8.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:43a4b56555bbcf8af161e7c7682bd93eec10f068c95844511864c018c8e5e13b"}, + {file = "multidict-6.8.0-cp314-cp314t-win32.whl", hash = "sha256:48ea524a25a1cd5972cf293bc95713918cba0bcd6fa9b992d906c857c546abe2"}, + {file = "multidict-6.8.0-cp314-cp314t-win_amd64.whl", hash = "sha256:d0be2b832435001bc623ca7f1499ca1a853d4f082fb61221a80ce71132f50b26"}, + {file = "multidict-6.8.0-cp314-cp314t-win_arm64.whl", hash = "sha256:62b8e291a4f7edbf7cde7a43d831d893ba443a1b627498b53581943b0e348feb"}, + {file = "multidict-6.8.0-cp315-cp315-android_24_x86_64.whl", hash = "sha256:e192018b732f7b168e6604cbdf40fa8e05c996693b9eb445a0d8a73f4b77c5d3"}, + {file = "multidict-6.8.0-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:b25426f9f6ed402835617c8f23609a47045f91ecff365eb6734817e039a8ed25"}, + {file = "multidict-6.8.0-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:fa6c2880709c84457de104385b704fc28860f27e442ad13966fc4af8e714fe9c"}, + {file = "multidict-6.8.0-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:eabb03dc3e4ed6333ecd1cc9826ec80e7a98b5506deeb832d7260c8e44166d23"}, + {file = "multidict-6.8.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:59e539c4eb4d3a53b0e630a6ba2b2f2824732b5e73f90e30a280f12fde157b15"}, + {file = "multidict-6.8.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:835d5a90b11d1f5f8200ff3cc8316bded76eebebc92436398947a27657e645e7"}, + {file = "multidict-6.8.0-cp315-cp315-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:d2d236b8a44ae91536a12ebcb996bdb31cf27425f36b4d05c87f2ba2716050ba"}, + {file = "multidict-6.8.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bb9a60b7faa5d37c426fa91cf4d6738182a1f2755b9fab7c9c64cd466c4ce51e"}, + {file = "multidict-6.8.0-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0ef606c15cac6c90279acf34120784b6f36662cbf382defd3955cd8f1115336b"}, + {file = "multidict-6.8.0-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:68186a2d4051c8ffd17be33553bea2ec9bbc8ef860fe2980a221d96126296f31"}, + {file = "multidict-6.8.0-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2cc66abb85e2108c9ff8a1c0d20fa260bf690bbb33caef4ff3ecb2c2cbdfff5d"}, + {file = "multidict-6.8.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:69b3e519a132bb943b0daae15fc8c2168706b17f826481d32a32a5e784b129e3"}, + {file = "multidict-6.8.0-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e41226ecf607f062fe34a2f4cf64ad3a89e3a0180dc800b463b6b14c06dd10dc"}, + {file = "multidict-6.8.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:610c7637bc36b90f39e6c66f710f93d57018f83d53e1e187caaa218c6892b95f"}, + {file = "multidict-6.8.0-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:65c85c79f5a2c04fbbc18f006c014674dc5fdf270cb978d8862c82c6f694e60c"}, + {file = "multidict-6.8.0-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:628ff11e6720f90acd0c305dfa3339f04a783a20de8cda6ac333ba46447261e8"}, + {file = "multidict-6.8.0-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:0935971bffd0b479fc90c4811ca787703e93fcb6afea939a375dfc80285ab368"}, + {file = "multidict-6.8.0-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:9442b14eec262a1f74369bbd07e75bc5155105164649a4b9fbc1ebc7b8fb0b14"}, + {file = "multidict-6.8.0-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:397599503b718f0137f26d3f6532d6955069cd2e5917c47ef581495bc2529ff8"}, + {file = "multidict-6.8.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:9e37024b41d7a7e7e9cce14b248d54707c21c2a2ea30a47b71bdcefcafec00f2"}, + {file = "multidict-6.8.0-cp315-cp315-win32.whl", hash = "sha256:071da134651b04a8507dfb331ac0988f376337c2aea59486bf20989fb5b5a64e"}, + {file = "multidict-6.8.0-cp315-cp315-win_amd64.whl", hash = "sha256:3bafff8598f0528017ddc74194e5451d5c22d046c98935f8f86247b0f286e4f8"}, + {file = "multidict-6.8.0-cp315-cp315-win_arm64.whl", hash = "sha256:e886ef8c9879105fe4fc99417447b3a5f35d1131412ce839470bd2089fe2043f"}, + {file = "multidict-6.8.0-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:883284137e25318ed9735b742ae46341a864888fae28e8b6314c4f84da080f08"}, + {file = "multidict-6.8.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:ca52b9ec80851366197577154c862c4c4c7036ca76ae94cef5cb59c5cfeab944"}, + {file = "multidict-6.8.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:91fa75d0a693832106d98f66c849f034f21c828d14437f1fb97d3784aab89e84"}, + {file = "multidict-6.8.0-cp315-cp315t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:307c1acd812fe897e7fbe10c6758822e8c04be4e7c60a9f54901cdf8b5ab8bc3"}, + {file = "multidict-6.8.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5caf684986a2490628f059a99dd107b566a2d34cf947f8eb8387e0500a1f90c5"}, + {file = "multidict-6.8.0-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:77745725125d01fd613b6db043362aa7c6bfbfdb23d45dbfc3d92bf58160af62"}, + {file = "multidict-6.8.0-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8daafaa0b2eb43f76898ced78b1e0fb91b38c4fa50da516c18067f2a2d578c20"}, + {file = "multidict-6.8.0-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c68e0c0649d17c2d0339e3674e86a4aeba4a7e6b21c1e394cf947a95433b31d0"}, + {file = "multidict-6.8.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d8a5ac357ac283490a8d1899b0383355fd1f8634b14ba0d59e4c0dd97db85556"}, + {file = "multidict-6.8.0-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:46029e6e27a3ec0dc55b53f58df82d10f04c5e111f78248279b530bedad2c30a"}, + {file = "multidict-6.8.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:8d1046b5427dcafe6e8a0e07527dd74f1ee694006160162f53f3a17f15aad3b4"}, + {file = "multidict-6.8.0-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:f1f4a220db6ed7c8fd16b6d644ffd1f082651693204daf3275e049fadc849e39"}, + {file = "multidict-6.8.0-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:029897732a9c798737457e382bf84e8c64237eff224a90aea2639f4413c45e4e"}, + {file = "multidict-6.8.0-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:29be9fd289e9ab8f480996ea2f686e1654b80242033843cb11691688329423f1"}, + {file = "multidict-6.8.0-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:29631224698de1e42abc8fa7658d830e0aed0029785144b5832b695da5adef2f"}, + {file = "multidict-6.8.0-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:962f18c59a000f30b084ea2e6b8001521bb315efd4e5f10acf9fb36f366b7882"}, + {file = "multidict-6.8.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:c60e50bc5b07faac92fd3a20fa21cc8cf3e3f7204d2867b206c73293ebc19101"}, + {file = "multidict-6.8.0-cp315-cp315t-win32.whl", hash = "sha256:fc5460940f50dff00731b4132366840ba9685286ea88ea104b661899084f3fea"}, + {file = "multidict-6.8.0-cp315-cp315t-win_amd64.whl", hash = "sha256:b367c342327717d644db4c0ddb37ceb655c84822215ea0773a3a36911b74b71d"}, + {file = "multidict-6.8.0-cp315-cp315t-win_arm64.whl", hash = "sha256:0c1c4debad7337627b86837abdf0237ca3cb3d7e17de7eab0177c263878546d4"}, + {file = "multidict-6.8.0-py3-none-any.whl", hash = "sha256:75daa15ca16d6285eb2e104b2f05ee6f8d9836c68da3ce5c85f615a0450eed0e"}, + {file = "multidict-6.8.0.tar.gz", hash = "sha256:5cd4637ce76312ba1e05eb9c5193fec231f64fee0944e135fa1e951242355b37"}, ] [package.dependencies] From 092d7de13cdfba2bde4110e3af4a031640e76b2d Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 14:46:43 +0000 Subject: [PATCH 130/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 9e7b780..bab2eb5 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "469f90fe2b2e35ed0e382053022d9a4793dabee8", + "originGitCommit": "f0c99669c5b112ec24a81bdde73c6c9c9884324b", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From d8c227711eb9d699ec0daf62fccefc95c70c85b3 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 14:49:08 +0000 Subject: [PATCH 131/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index bab2eb5..00a9e58 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "f0c99669c5b112ec24a81bdde73c6c9c9884324b", + "originGitCommit": "124bb32735672e109fe5d4f513b55efc5216ff2f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 37335a6..e30b0cd 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -135,6 +135,7 @@ "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", From e672006b3acf1dd28f7bd7741d30a5d1904b10cb Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 15:22:31 +0000 Subject: [PATCH 132/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 00a9e58..54e789a 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "124bb32735672e109fe5d4f513b55efc5216ff2f", + "originGitCommit": "4b24bfcf9db5102c1dccd16feaf3770b614b4c3e", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index e30b0cd..4e948b2 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -35,6 +35,7 @@ "kb_document_not_found", "kb_folder_not_found", "tool_not_found", + "tool_name_taken", "channel_instance_not_found", "team_not_found", "trigger_not_found", From 8da48edc272358cf5c23898d78a3f8188f117ddf Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 15:36:22 +0000 Subject: [PATCH 133/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 54e789a..33786d7 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "4b24bfcf9db5102c1dccd16feaf3770b614b4c3e", + "originGitCommit": "79cf16f7f88e0cc79cba9f50c7b40d4ed26c288c", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From f484b90f9874c731c6388bf9a66120427df16abd Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 15:40:42 +0000 Subject: [PATCH 134/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 33786d7..c641343 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "79cf16f7f88e0cc79cba9f50c7b40d4ed26c288c", + "originGitCommit": "4dbbd8238819793c796415bee3dfd7ba91cfe445", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From ca9810bc1dd725780f595c03a15e728065880938 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 17:18:13 +0000 Subject: [PATCH 135/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index c641343..66a4b13 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "4dbbd8238819793c796415bee3dfd7ba91cfe445", + "originGitCommit": "b195f27d19e4286e48f33334ed06be6cf6787698", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 338c5a67ff12a295987fa47e225899b6b78664a9 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 17:32:25 +0000 Subject: [PATCH 136/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 66a4b13..c21f534 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "b195f27d19e4286e48f33334ed06be6cf6787698", + "originGitCommit": "d49bdc9b6deeddc088e019953505e5b8f0f1faed", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 5bd7a26fde7519724abb3d54a2a72318b53ebc1a Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 20:22:54 +0000 Subject: [PATCH 137/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index c21f534..a4b2963 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "d49bdc9b6deeddc088e019953505e5b8f0f1faed", + "originGitCommit": "a552398111510cd10ecc1c7e0a7b54b838a04c2e", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 4e948b2..be7ada7 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -130,6 +130,7 @@ "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", From 9ebd68ba5a238200dc27cb7f3820d22ee62a6082 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 20:34:56 +0000 Subject: [PATCH 138/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index a4b2963..51e6dda 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "a552398111510cd10ecc1c7e0a7b54b838a04c2e", + "originGitCommit": "5fa2527431e9c6dc0aa16f1c28c7de006878f334", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index be7ada7..b9539b2 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -78,6 +78,7 @@ "project_not_found", "cross_project_reference", "project_has_scoped_credentials", + "project_not_empty", "project_limit_reached", "agent_limit_reached", "project_too_large_to_promote", From 375804bba089088b27cfefa21ac1cfc20e65c5ad Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 20:51:40 +0000 Subject: [PATCH 139/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 51e6dda..3a83ea6 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "5fa2527431e9c6dc0aa16f1c28c7de006878f334", + "originGitCommit": "8f0c866ce40b7d0c431454c50b098caefd2b6309", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 475be43b1f0eca191fddec486d8757723eb43297 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 06:27:53 +0000 Subject: [PATCH 140/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 3a83ea6..97e76a7 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "8f0c866ce40b7d0c431454c50b098caefd2b6309", + "originGitCommit": "f27268407e438649d5ec6177e4e60ef690702f3f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From c4bb65b7aceb0274a20648280cd461177f103c13 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 06:38:55 +0000 Subject: [PATCH 141/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 97e76a7..097c3c3 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "f27268407e438649d5ec6177e4e60ef690702f3f", + "originGitCommit": "7cf1d8e85fce5793a812283a58700770cbee8382", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index b9539b2..3cc0295 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -135,6 +135,7 @@ "text_channel_not_in_plan", "channel_not_in_plan", "text_turn_failed", + "conversation_turn_in_progress", "text_message_quota_exceeded", "durable_runs_not_in_plan", "tool_transport_unsupported", From 4fc30a82487ae3d2d39b71eb341e02361dc7238c Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 08:17:05 +0000 Subject: [PATCH 142/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 097c3c3..95d6b8a 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "7cf1d8e85fce5793a812283a58700770cbee8382", + "originGitCommit": "db023c15d20d1a6da94557b99b879ff7b611412d", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From e35c8129d8622a2fa752d15be0c336faeea3fb24 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 08:25:57 +0000 Subject: [PATCH 143/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 95d6b8a..4eda232 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "db023c15d20d1a6da94557b99b879ff7b611412d", + "originGitCommit": "b016a8ba8526a5a8158b1f0f4a02ef149dad5256", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 2d68d8d3212904df062407fe5e5fae202cc5f7c7 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 08:33:00 +0000 Subject: [PATCH 144/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 4eda232..404920d 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "b016a8ba8526a5a8158b1f0f4a02ef149dad5256", + "originGitCommit": "a359bd80a293fc65996cd6f40c83733a2395730e", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 3d9a79c892d87459f19ef7dbb1e0ad2d307d2037 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 09:12:51 +0000 Subject: [PATCH 145/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 404920d..e052bd2 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "a359bd80a293fc65996cd6f40c83733a2395730e", + "originGitCommit": "769f9551379e6b7f00689d636aabb23a4f3dbee4", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 0bd8f677ae2a5dca555206c815ed542ee3ef95a9 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 09:30:26 +0000 Subject: [PATCH 146/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index e052bd2..c570e0f 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "769f9551379e6b7f00689d636aabb23a4f3dbee4", + "originGitCommit": "a6a09e76f60f9a952cb2deb4d82e675cd90ffd41", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 50805d8d97378d08516a04bf7fb05448c8cc5243 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 09:44:00 +0000 Subject: [PATCH 147/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index c570e0f..805edf3 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "a6a09e76f60f9a952cb2deb4d82e675cd90ffd41", + "originGitCommit": "29d460feae6bf4c46ae0298300408793b0f5f937", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 5b050c5da188a858b9364b316f4b4e4261fb9066 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 10:02:59 +0000 Subject: [PATCH 148/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 805edf3..5fc1226 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "29d460feae6bf4c46ae0298300408793b0f5f937", + "originGitCommit": "2982a62b079b591ef6e55551ed3f81d1b669f36d", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From daf9f5848054a0912814383d7630cfc95b40ca49 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 10:42:03 +0000 Subject: [PATCH 149/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 5fc1226..1d413ac 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "2982a62b079b591ef6e55551ed3f81d1b669f36d", + "originGitCommit": "629313364e80fc3a1bbeeb455b94cfe494eb40e8", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From cb599b41ac51bad7b6c1725cbe965c97d7aa24d7 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 10:58:15 +0000 Subject: [PATCH 150/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 1d413ac..54810a5 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "629313364e80fc3a1bbeeb455b94cfe494eb40e8", + "originGitCommit": "da58e51cece19f4880502784e4a056a20590915d", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 3cc0295..b4f8c8c 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -65,6 +65,7 @@ "route_run_timeout", "route_run_failed", "route_run_limit_reached", + "route_read_limit_reached", "conversation_not_found", "phone_number_not_found", "sip_trunk_not_found", From b0a2b42d0b9e8533198240b570053fc967baa338 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 11:16:57 +0000 Subject: [PATCH 151/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 54810a5..83b875e 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "da58e51cece19f4880502784e4a056a20590915d", + "originGitCommit": "5d6bbac299f713b6432ff2b44fb4116c1e83f0b1", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From ab762f245bd60c95b9ca0c5ee64d7a5c92eaf6ba Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 11:53:29 +0000 Subject: [PATCH 152/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 83b875e..8b05e9b 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "5d6bbac299f713b6432ff2b44fb4116c1e83f0b1", + "originGitCommit": "e96710c2be34923db3021ae63b743f6dda236c23", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index b4f8c8c..3148133 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -53,6 +53,8 @@ "store_document_limit_reached", "store_bytes_limit_reached", "store_not_configured", + "store_document_version_conflict", + "store_document_deleted", "hosted_apis_not_in_plan", "skills_not_in_plan", "skill_in_use", From edaa19cee4adf474256bf11d1f371041787554c0 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 12:16:29 +0000 Subject: [PATCH 153/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 8b05e9b..a62a2ca 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "e96710c2be34923db3021ae63b743f6dda236c23", + "originGitCommit": "f9ec68bce8c1805a881c69462cfb015f99237d55", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 0439b5de00a328922cbbf0d7fad6a537a610b951 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 12:27:59 +0000 Subject: [PATCH 154/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index a62a2ca..3446fab 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "f9ec68bce8c1805a881c69462cfb015f99237d55", + "originGitCommit": "6726c03776791952c16da0c87b272ea07637aa6f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 051727dc44af8ce56c188e209d366c231c5e7f2e Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 12:50:03 +0000 Subject: [PATCH 155/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 3446fab..63542d0 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "6726c03776791952c16da0c87b272ea07637aa6f", + "originGitCommit": "8f0e253dae1ff7bb32f65ec5ae196a956c7829f1", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 4304f9f1fd754235fe01afedf2ad07b2b60dc002 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 13:45:22 +0000 Subject: [PATCH 156/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 63542d0..c4df702 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "8f0e253dae1ff7bb32f65ec5ae196a956c7829f1", + "originGitCommit": "29704766863b93c5dd08e785324d62e642ddc2d3", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 55ee993cbad07ec7d859dd3a81e27305c4f73534 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 14:00:25 +0000 Subject: [PATCH 157/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index c4df702..978846c 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "29704766863b93c5dd08e785324d62e642ddc2d3", + "originGitCommit": "608d3eed30a260cb79c6544af3302a0259a7505c", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 50a027c9cfc7933ea9c534d3744809e45070bf10 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 14:16:19 +0000 Subject: [PATCH 158/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 978846c..b92cc34 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "608d3eed30a260cb79c6544af3302a0259a7505c", + "originGitCommit": "ed59ada8aa73c405f2c882a0ef4a6ebe4d84f93f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 3148133..feaed10 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -68,6 +68,8 @@ "route_run_failed", "route_run_limit_reached", "route_read_limit_reached", + "route_write_limit_reached", + "hosted_api_public_refused", "conversation_not_found", "phone_number_not_found", "sip_trunk_not_found", From 558cde38c86a532c6dd18cbd782bb633ef139d28 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 14:35:24 +0000 Subject: [PATCH 159/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index b92cc34..8b5ef49 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "ed59ada8aa73c405f2c882a0ef4a6ebe4d84f93f", + "originGitCommit": "d7d80d3f3ad79a6efe584af000f617237dbbf9d9", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From be5aaa6eb15c02547ebf06e1370600346a58f3da Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 18:13:56 +0000 Subject: [PATCH 160/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 8b5ef49..aa690cd 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "d7d80d3f3ad79a6efe584af000f617237dbbf9d9", + "originGitCommit": "a31fdd539727fed61566b70d47702aba9c7d470f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 28f2a7400974fbb7a3ba04dd51314375728678cd Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 19:22:40 +0000 Subject: [PATCH 161/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index aa690cd..153a0d1 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "a31fdd539727fed61566b70d47702aba9c7d470f", + "originGitCommit": "8f8bf2cedc7d26370ba27ae2ac30e8fda49ba146", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From e6cb1d953ac948c1cfd9e106b74f54d52218d3d8 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 11 Sep 2026 10:23:14 +0000 Subject: [PATCH 162/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 153a0d1..94e9c86 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "8f8bf2cedc7d26370ba27ae2ac30e8fda49ba146", + "originGitCommit": "b9e4923b0e65dfc693ee526aea9b8995e9120830", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index feaed10..679b3d1 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -57,6 +57,7 @@ "store_document_deleted", "hosted_apis_not_in_plan", "skills_not_in_plan", + "voice_agents_not_in_plan", "skill_in_use", "skill_tool_name_conflict", "skill_limit_reached", From 6b3614782c914e3a67930fd816cfda90ac66a538 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 11 Sep 2026 11:38:05 +0000 Subject: [PATCH 163/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 94e9c86..96c17e3 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "b9e4923b0e65dfc693ee526aea9b8995e9120830", + "originGitCommit": "7f2e6557ce2023b3fd22404540c61a99d40f05e6", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 610b6d43e839f4ee5937d5bbdcf5a5b4ed2b035d Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 11 Sep 2026 12:24:51 +0000 Subject: [PATCH 164/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 96c17e3..f1b4bfa 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "7f2e6557ce2023b3fd22404540c61a99d40f05e6", + "originGitCommit": "3651d9fd048674c3559a3cb5897d6a039a36e662", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 71f5a6ddf8933b94063bd726809e413efbce91d5 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 11 Sep 2026 12:37:04 +0000 Subject: [PATCH 165/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index f1b4bfa..f48e52b 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "3651d9fd048674c3559a3cb5897d6a039a36e662", + "originGitCommit": "902af741d04bb36a8ee9296ad7031a35f728746d", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From f8493b3e752ad9f3cbca73f052dfcdbe86add398 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 11 Sep 2026 13:29:31 +0000 Subject: [PATCH 166/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index f48e52b..ee7b3e2 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "902af741d04bb36a8ee9296ad7031a35f728746d", + "originGitCommit": "ebb9bf83c254fa6317061117f8f9156fd9fa12c1", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 6f6eca5bc4ea7197729580b900b369ec085991f7 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 11 Sep 2026 13:44:38 +0000 Subject: [PATCH 167/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index ee7b3e2..6ed0399 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "ebb9bf83c254fa6317061117f8f9156fd9fa12c1", + "originGitCommit": "fd66bf433da0bf6915d289803b1d16790393d5e2", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 4187d672cea65a65c197585139beef147818f5c3 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 11 Sep 2026 13:56:03 +0000 Subject: [PATCH 168/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 6ed0399..e79f1de 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "fd66bf433da0bf6915d289803b1d16790393d5e2", + "originGitCommit": "35263bbc2c9ef5cf12a61aaabe819b281b8d2b7b", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From e7cfc70d38354ec43b7b0dc32cbd68cd5607811c Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 11 Sep 2026 14:04:30 +0000 Subject: [PATCH 169/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index e79f1de..4db1fbc 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "35263bbc2c9ef5cf12a61aaabe819b281b8d2b7b", + "originGitCommit": "72d3e117761b1957efe848fcc8fe0c4e14b5975c", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 4dbcf351d5dd003c15b6502931d212800641d8be Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 11 Sep 2026 15:21:37 +0000 Subject: [PATCH 170/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 4db1fbc..5517490 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "72d3e117761b1957efe848fcc8fe0c4e14b5975c", + "originGitCommit": "91fc6564004009ca060054d2603fed5587cc92bb", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From da62e84586cd9a089c408e90540805b6d4b9fd88 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 11 Sep 2026 16:56:07 +0000 Subject: [PATCH 171/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 5517490..3a775f5 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "91fc6564004009ca060054d2603fed5587cc92bb", + "originGitCommit": "ed25798eb3622789a06b04930a7417bf75307ed9", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 37cb4a838b646a3618f1a5e4c90640155ad40d83 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 12 Sep 2026 13:56:55 +0000 Subject: [PATCH 172/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 3a775f5..3a392be 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "ed25798eb3622789a06b04930a7417bf75307ed9", + "originGitCommit": "4d177831b6bd7b81c901ed641762139b202ad144", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 00623362bc3f905022dd9df9f42384eaf673c6e9 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 12 Sep 2026 14:20:56 +0000 Subject: [PATCH 173/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 3a392be..7ee351a 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "4d177831b6bd7b81c901ed641762139b202ad144", + "originGitCommit": "5b8de729c0bac5cb72b0f8bc37533b6e031637ea", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 679b3d1..9aaf69c 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -142,6 +142,10 @@ "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", From e5c1fc8fa74b704499ff2a17eb6d915d10174661 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 12 Sep 2026 14:57:46 +0000 Subject: [PATCH 174/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 7ee351a..f6e9c7c 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "5b8de729c0bac5cb72b0f8bc37533b6e031637ea", + "originGitCommit": "134ebc2e008cf54113f30041fe8b26516980fef6", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 9aaf69c..626ad37 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -95,6 +95,8 @@ "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", From f3826e5faf46345fbccadbca160bfed29aa27304 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 12 Sep 2026 18:27:17 +0000 Subject: [PATCH 175/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index f6e9c7c..96bf4ea 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "134ebc2e008cf54113f30041fe8b26516980fef6", + "originGitCommit": "28f5fd78f9bda2c6c76a7cfa7ae5ead3039d44e3", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From ff4d11488ac285f27f10e13a6884505a968aff33 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 13 Sep 2026 14:25:34 +0000 Subject: [PATCH 176/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 96bf4ea..82a4f1e 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "28f5fd78f9bda2c6c76a7cfa7ae5ead3039d44e3", + "originGitCommit": "414d6d430822f6b6c45621fe56b83fa188d2d680", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 443c51237ad6dd11909deccdd4dbe14a57ff5b4f Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 13 Sep 2026 15:29:29 +0000 Subject: [PATCH 177/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 82a4f1e..c47ad3d 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "414d6d430822f6b6c45621fe56b83fa188d2d680", + "originGitCommit": "9d1e4e3609aed60de0ef06d500813cbb2abd5b91", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 543abfdba96ce8a16cccec96c21fb722c8d9d079 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 13 Sep 2026 21:00:15 +0000 Subject: [PATCH 178/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index c47ad3d..aa7816c 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "9d1e4e3609aed60de0ef06d500813cbb2abd5b91", + "originGitCommit": "178e629047d80f1f9c17ae9e9a3e1e7d03554054", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 3fd953f4ab9fabf291480efd8c90756d78c06041 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 13 Sep 2026 21:12:18 +0000 Subject: [PATCH 179/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index aa7816c..c25cd68 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "178e629047d80f1f9c17ae9e9a3e1e7d03554054", + "originGitCommit": "15cbd4e8bcc2fb90ba9e2e9df7b1e80345e00089", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From bee20e483cbecebcbad032685c6a751ce4245ad0 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 07:33:53 +0000 Subject: [PATCH 180/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index c25cd68..b3caae1 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "15cbd4e8bcc2fb90ba9e2e9df7b1e80345e00089", + "originGitCommit": "878444f71630d82d3ce56bc119c6484bf8c862ce", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 35093177e595c0911dcd546172fa815f64424fc4 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 07:35:44 +0000 Subject: [PATCH 181/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index b3caae1..11f5927 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "878444f71630d82d3ce56bc119c6484bf8c862ce", + "originGitCommit": "d340142b4d121394b64608da46ae39ff4fc5257b", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 406e931f4230ae3804cc9b8dcef70ad1a78a1f12 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 10:41:22 +0000 Subject: [PATCH 182/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 11f5927..705245d 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "d340142b4d121394b64608da46ae39ff4fc5257b", + "originGitCommit": "c539010ead9c7f7e5f060e28cbc712ebfd9d5022", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 67d3d8dd4b3f63b206eb94570a891497d40699ca Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 15:58:24 +0000 Subject: [PATCH 183/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 705245d..8034986 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "c539010ead9c7f7e5f060e28cbc712ebfd9d5022", + "originGitCommit": "1bd2974253d7020bcb5cd61526645762624ac7da", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 5e10fe5f5ec451c149618f35eeab2a3fe58e3b4f Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 17:02:57 +0000 Subject: [PATCH 184/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 8034986..3d21f1d 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "1bd2974253d7020bcb5cd61526645762624ac7da", + "originGitCommit": "ebd472cbbc2c9d4fd1cfc27436309d2b41120329", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From da177c40ab458841e2fbda398186bf365427198d Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 18:01:11 +0000 Subject: [PATCH 185/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 3d21f1d..60f06ae 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "ebd472cbbc2c9d4fd1cfc27436309d2b41120329", + "originGitCommit": "7e1633c0cea3fdd77e43d949d1e469a989ff130e", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From be7cd1713960ea05857a26fc1e1981caeef154e7 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 18:10:32 +0000 Subject: [PATCH 186/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 60f06ae..50b1892 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "7e1633c0cea3fdd77e43d949d1e469a989ff130e", + "originGitCommit": "c30573ce46daac66d5f7a8e5c33b2753d3095bd8", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 626ad37..058a55b 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -71,6 +71,9 @@ "route_read_limit_reached", "route_write_limit_reached", "hosted_api_public_refused", + "route_tool_not_readable", + "route_upstream_rate_limited", + "route_upstream_error", "conversation_not_found", "phone_number_not_found", "sip_trunk_not_found", From 8c36fe8637322ceefdb8743b416bbd9e569dc408 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 18:16:26 +0000 Subject: [PATCH 187/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 50b1892..2935d52 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "c30573ce46daac66d5f7a8e5c33b2753d3095bd8", + "originGitCommit": "0d123904cd5a3cedbd5fc4af2ee0389a8c6c672d", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 058a55b..08e4dd6 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -74,6 +74,7 @@ "route_tool_not_readable", "route_upstream_rate_limited", "route_upstream_error", + "hosted_mcp_not_enabled", "conversation_not_found", "phone_number_not_found", "sip_trunk_not_found", From 84e0967debecda45e4caffd552edf097a35bc4f6 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 18:24:30 +0000 Subject: [PATCH 188/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 2935d52..48332d9 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "0d123904cd5a3cedbd5fc4af2ee0389a8c6c672d", + "originGitCommit": "3573fb769b79dca2d67b00c10a5c12f8e0583f85", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 7b0a4652c647f189aa9cf104432c58e5d9f7878b Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 19:25:58 +0000 Subject: [PATCH 189/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 48332d9..767107a 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "3573fb769b79dca2d67b00c10a5c12f8e0583f85", + "originGitCommit": "134df5af114ec1f9eaf21837718ceea8981571ab", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 2096a088fd8c1bc8ca6674644372a2ebf6fa04a4 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 19:29:06 +0000 Subject: [PATCH 190/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 767107a..36f95c3 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "134df5af114ec1f9eaf21837718ceea8981571ab", + "originGitCommit": "545cccc497dc02155ea40de289463da1d36e5ca5", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 865d9097c3ed187fac69fd6e3ebe9ed5a980d36d Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 21:01:47 +0000 Subject: [PATCH 191/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 36f95c3..425af91 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "545cccc497dc02155ea40de289463da1d36e5ca5", + "originGitCommit": "97b4aecb31b770b1c1b4b9b89d8a9b1ad4eaa276", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 08e4dd6..28c55ee 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -72,6 +72,7 @@ "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", From eff5b5ef7c8263d4f883e341ccde5f9f40b40bb4 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 21:12:11 +0000 Subject: [PATCH 192/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 425af91..a29a4c1 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "97b4aecb31b770b1c1b4b9b89d8a9b1ad4eaa276", + "originGitCommit": "9957b8dee82bf296cc84a68910d979b3a9af97bb", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From ebb6c7c5de93579f9d4f619f3d64c5114b40ef7e Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 21:15:17 +0000 Subject: [PATCH 193/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/audio/client.py | 12 +++++------ src/speechify/audio/watermark/client.py | 8 ++++---- src/speechify/client.py | 8 ++++---- src/speechify/models/client.py | 4 ++-- src/speechify/voices/client.py | 20 +++++++++---------- .../voices/consent_challenges/client.py | 4 ++-- 7 files changed, 29 insertions(+), 29 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index a29a4c1..73fceaa 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "9957b8dee82bf296cc84a68910d979b3a9af97bb", + "originGitCommit": "2d2826b272ac64d7bbca153b1c8a21b12f832e1b", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/audio/client.py b/src/speechify/audio/client.py index ec33db2..fcf7c11 100644 --- a/src/speechify/audio/client.py +++ b/src/speechify/audio/client.py @@ -101,7 +101,7 @@ def speech( from speechify import Speechify client = Speechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) client.audio.speech( @@ -194,7 +194,7 @@ def stream( from speechify import Speechify client = Speechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) client.audio.stream( @@ -308,7 +308,7 @@ def stream_with_timestamps( from speechify import Speechify client = Speechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) response = client.audio.stream_with_timestamps( @@ -418,7 +418,7 @@ async def speech( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) @@ -519,7 +519,7 @@ async def stream( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) @@ -642,7 +642,7 @@ async def stream_with_timestamps( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) diff --git a/src/speechify/audio/watermark/client.py b/src/speechify/audio/watermark/client.py index 1f75a17..e055fe1 100644 --- a/src/speechify/audio/watermark/client.py +++ b/src/speechify/audio/watermark/client.py @@ -65,7 +65,7 @@ def detect( from speechify import Speechify client = Speechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) client.audio.watermark.detect() @@ -124,7 +124,7 @@ def verify( from speechify import Speechify client = Speechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) client.audio.watermark.verify() @@ -187,7 +187,7 @@ async def detect( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) @@ -254,7 +254,7 @@ async def verify( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) diff --git a/src/speechify/client.py b/src/speechify/client.py index 25dbdd4..b2fa866 100644 --- a/src/speechify/client.py +++ b/src/speechify/client.py @@ -59,7 +59,7 @@ class Speechify: from speechify import Speechify client = Speechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) """ @@ -69,7 +69,7 @@ def __init__( *, base_url: typing.Optional[str] = None, environment: SpeechifyEnvironment = SpeechifyEnvironment.DEFAULT, - version: typing.Optional[str] = "2026-09-29", + version: typing.Optional[str] = "2026-09-30", token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("SPEECHIFY_API_KEY"), headers: typing.Optional[typing.Dict[str, str]] = None, timeout: typing.Optional[float] = None, @@ -189,7 +189,7 @@ class AsyncSpeechify: from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) """ @@ -199,7 +199,7 @@ def __init__( *, base_url: typing.Optional[str] = None, environment: SpeechifyEnvironment = SpeechifyEnvironment.DEFAULT, - version: typing.Optional[str] = "2026-09-29", + version: typing.Optional[str] = "2026-09-30", token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("SPEECHIFY_API_KEY"), headers: typing.Optional[typing.Dict[str, str]] = None, async_token: typing.Optional[typing.Callable[[], typing.Awaitable[str]]] = None, diff --git a/src/speechify/models/client.py b/src/speechify/models/client.py index d2d7963..543328b 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-29", + "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-29", + "2026-09-30", token="YOUR_TOKEN", ) diff --git a/src/speechify/voices/client.py b/src/speechify/voices/client.py index c1894d7..715af82 100644 --- a/src/speechify/voices/client.py +++ b/src/speechify/voices/client.py @@ -120,7 +120,7 @@ def list( from speechify import Speechify client = Speechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) response = client.voices.list( @@ -217,7 +217,7 @@ def create( from speechify import Speechify client = Speechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) client.voices.create( @@ -265,7 +265,7 @@ def get(self, voice_id: str, *, request_options: typing.Optional[RequestOptions] from speechify import Speechify client = Speechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) client.voices.get( @@ -298,7 +298,7 @@ def delete(self, voice_id: str, *, request_options: typing.Optional[RequestOptio from speechify import Speechify client = Speechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) client.voices.delete( @@ -332,7 +332,7 @@ def download_sample( from speechify import Speechify client = Speechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) client.voices.download_sample( @@ -452,7 +452,7 @@ async def list( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) @@ -558,7 +558,7 @@ async def create( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) @@ -614,7 +614,7 @@ async def get(self, voice_id: str, *, request_options: typing.Optional[RequestOp from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) @@ -655,7 +655,7 @@ async def delete(self, voice_id: str, *, request_options: typing.Optional[Reques from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) @@ -697,7 +697,7 @@ async def download_sample( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-29", + "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 d6d2a37..e4e897f 100644 --- a/src/speechify/voices/consent_challenges/client.py +++ b/src/speechify/voices/consent_challenges/client.py @@ -78,7 +78,7 @@ def create( from speechify import Speechify client = Speechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) client.voices.consent_challenges.create( @@ -161,7 +161,7 @@ async def create( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-29", + "2026-09-30", token="YOUR_TOKEN", ) From 7d7dfa771070b0aa153a1df5306c68c9ccf880cf Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 07:00:34 +0000 Subject: [PATCH 194/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 73fceaa..8e6aa29 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "2d2826b272ac64d7bbca153b1c8a21b12f832e1b", + "originGitCommit": "5ad0a5db144546d57e862e1d1d625f4790023c9d", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 6ff10fdeb5d66ec33eb0bfaaccaeb719b7097dea Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 07:01:47 +0000 Subject: [PATCH 195/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 8e6aa29..8808a35 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "5ad0a5db144546d57e862e1d1d625f4790023c9d", + "originGitCommit": "15daf66d342133e36d28949e85ed0af68bd669da", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From e55e09a081e91de3e065cf74e2f7ec26621a4b8f Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 07:02:27 +0000 Subject: [PATCH 196/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 8808a35..9857d46 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "15daf66d342133e36d28949e85ed0af68bd669da", + "originGitCommit": "960ff5641074a99e3583adada5a343e78dcf2597", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From f7af8e12cf159560082b888513002494a881e797 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 07:04:20 +0000 Subject: [PATCH 197/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 9857d46..6d0c2f9 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "960ff5641074a99e3583adada5a343e78dcf2597", + "originGitCommit": "e4de7468d59f473ad39d9027187a99335ef4f912", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 77b9fe583f94384eb3b16323a9aee61970f510ac Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 07:04:59 +0000 Subject: [PATCH 198/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 6d0c2f9..3d769c6 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "e4de7468d59f473ad39d9027187a99335ef4f912", + "originGitCommit": "222f83e1b91acd8fa00c61085aeba8b8870adb12", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 027897a2485e2b3cce5304c18fdd96c331d977a4 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 07:39:10 +0000 Subject: [PATCH 199/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 3d769c6..9ead456 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "222f83e1b91acd8fa00c61085aeba8b8870adb12", + "originGitCommit": "ea1787c7657aed9dd44965cad45980b9e87879b8", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 28c55ee..d1d3d64 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -76,6 +76,7 @@ "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", From 0efeac48f7d733d03a93f6ea8738bb4b9de93b97 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 09:29:46 +0000 Subject: [PATCH 200/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 9ead456..6ca1022 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "ea1787c7657aed9dd44965cad45980b9e87879b8", + "originGitCommit": "14ee9f665d7630afa05ac4842dd1b47626e86a6f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From eedfda815974800ffd24431c56b6ecbdc8205e17 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 09:52:21 +0000 Subject: [PATCH 201/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 6ca1022..6143aa7 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "14ee9f665d7630afa05ac4842dd1b47626e86a6f", + "originGitCommit": "4c1d701719452d9967ff9e601a5edbd52847081a", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 1cc0e7b1ca337dc2e006bb0c9313fab95682ac5b Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 10:03:43 +0000 Subject: [PATCH 202/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 6143aa7..c72a7d1 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "4c1d701719452d9967ff9e601a5edbd52847081a", + "originGitCommit": "9ba26cf2d225655e8809a74640781c5b3e843782", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 608208c9b20339234377fbfc5e8b515ec9d7c783 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 10:42:45 +0000 Subject: [PATCH 203/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index c72a7d1..e5d3bfd 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "9ba26cf2d225655e8809a74640781c5b3e843782", + "originGitCommit": "8747a22f450e0f758feb13f9e0895722d0698755", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 4e27f650510de713c0f3bef0944714e15adaa94e Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 11:38:29 +0000 Subject: [PATCH 204/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index e5d3bfd..deb4297 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "8747a22f450e0f758feb13f9e0895722d0698755", + "originGitCommit": "440ecd438805d120f2d45e60299d61b2ba8d8c5e", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 07e906b20638c519ba83ec09dc5ac2831a5363c8 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 14:03:38 +0000 Subject: [PATCH 205/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index deb4297..313bdb5 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "440ecd438805d120f2d45e60299d61b2ba8d8c5e", + "originGitCommit": "6667a18863127573b2e6dd4edfb6ea291a153207", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From e88be4083eb5bba83907e58001f9e8064eb82388 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 14:17:25 +0000 Subject: [PATCH 206/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 313bdb5..a72a16b 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "6667a18863127573b2e6dd4edfb6ea291a153207", + "originGitCommit": "17ba3f40d8772ad3c89af80406409b965cdad89e", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From c7f1825f7434c0f4e8187702e6c07aa31cce5c44 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 15:11:20 +0000 Subject: [PATCH 207/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index a72a16b..54eb7cb 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "17ba3f40d8772ad3c89af80406409b965cdad89e", + "originGitCommit": "bb2bf53e3f49cc2c291a05080791e5ac2bb77313", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index d1d3d64..979eb96 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -64,6 +64,7 @@ "agent_skill_limit_reached", "hosted_api_slug_taken", "api_route_conflict", + "mount_plan_changed", "route_output_unavailable", "route_run_timeout", "route_run_failed", From 54f9b75144345e39222dfe2edbac52e4a538d382 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 15:28:06 +0000 Subject: [PATCH 208/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 2220 +++++++++++++- src/speechify/__init__.py | 105 +- src/speechify/client.py | 19 + src/speechify/hosted_apis/__init__.py | 56 + src/speechify/hosted_apis/client.py | 1281 ++++++++ src/speechify/hosted_apis/keys/__init__.py | 4 + src/speechify/hosted_apis/keys/client.py | 376 +++ src/speechify/hosted_apis/keys/raw_client.py | 836 ++++++ src/speechify/hosted_apis/raw_client.py | 2590 +++++++++++++++++ src/speechify/hosted_apis/routes/__init__.py | 37 + src/speechify/hosted_apis/routes/client.py | 1130 +++++++ .../hosted_apis/routes/raw_client.py | 2027 +++++++++++++ .../hosted_apis/routes/types/__init__.py | 38 + .../create_hosted_api_route_request_method.py | 5 + .../update_hosted_api_route_request_method.py | 5 + src/speechify/hosted_apis/types/__init__.py | 44 + .../create_hosted_api_request_auth_mode.py | 7 + ...alytics_hosted_apis_request_granularity.py | 7 + .../update_hosted_api_request_auth_mode.py | 7 + src/speechify/types/__init__.py | 90 + src/speechify/types/hosted_api.py | 136 + src/speechify/types/hosted_api_auth_mode.py | 7 + src/speechify/types/hosted_api_key.py | 40 + src/speechify/types/hosted_api_mount.py | 40 + .../types/hosted_api_mount_operation.py | 65 + .../hosted_api_mount_operation_action.py | 7 + ...hosted_api_mount_operation_changes_item.py | 5 + .../types/hosted_api_mount_summary.py | 23 + .../types/hosted_api_mount_tool_kind.py | 5 + src/speechify/types/hosted_api_resolver.py | 214 ++ .../types/hosted_api_resolver_order_by.py | 21 + .../hosted_api_resolver_order_by_direction.py | 5 + .../types/hosted_api_resolver_type.py | 10 + .../types/hosted_api_resolver_where_item.py | 22 + .../hosted_api_resolver_where_item_op.py | 5 + .../types/hosted_api_resolver_write_mode.py | 5 + src/speechify/types/hosted_api_route.py | 68 + .../types/hosted_api_route_method.py | 5 + src/speechify/types/hosted_api_usage.py | 47 + .../types/hosted_api_usage_routes_item.py | 40 + .../types/hosted_api_user_token_secret.py | 27 + .../types/list_hosted_ap_is_response.py | 21 + .../types/list_hosted_api_keys_response.py | 21 + .../types/list_hosted_api_routes_response.py | 21 + .../types/request_analytics_bucket.py | 74 + .../types/request_analytics_response.py | 61 + .../types/request_analytics_totals.py | 46 + src/speechify/types/request_top_path.py | 32 + src/speechify/types/store_aggregate_metric.py | 32 + .../types/store_aggregate_metric_op.py | 5 + 51 files changed, 11943 insertions(+), 53 deletions(-) create mode 100644 src/speechify/hosted_apis/__init__.py create mode 100644 src/speechify/hosted_apis/client.py create mode 100644 src/speechify/hosted_apis/keys/__init__.py create mode 100644 src/speechify/hosted_apis/keys/client.py create mode 100644 src/speechify/hosted_apis/keys/raw_client.py create mode 100644 src/speechify/hosted_apis/raw_client.py create mode 100644 src/speechify/hosted_apis/routes/__init__.py create mode 100644 src/speechify/hosted_apis/routes/client.py create mode 100644 src/speechify/hosted_apis/routes/raw_client.py create mode 100644 src/speechify/hosted_apis/routes/types/__init__.py create mode 100644 src/speechify/hosted_apis/routes/types/create_hosted_api_route_request_method.py create mode 100644 src/speechify/hosted_apis/routes/types/update_hosted_api_route_request_method.py create mode 100644 src/speechify/hosted_apis/types/__init__.py create mode 100644 src/speechify/hosted_apis/types/create_hosted_api_request_auth_mode.py create mode 100644 src/speechify/hosted_apis/types/get_analytics_hosted_apis_request_granularity.py create mode 100644 src/speechify/hosted_apis/types/update_hosted_api_request_auth_mode.py create mode 100644 src/speechify/types/hosted_api.py create mode 100644 src/speechify/types/hosted_api_auth_mode.py create mode 100644 src/speechify/types/hosted_api_key.py create mode 100644 src/speechify/types/hosted_api_mount.py create mode 100644 src/speechify/types/hosted_api_mount_operation.py create mode 100644 src/speechify/types/hosted_api_mount_operation_action.py create mode 100644 src/speechify/types/hosted_api_mount_operation_changes_item.py create mode 100644 src/speechify/types/hosted_api_mount_summary.py create mode 100644 src/speechify/types/hosted_api_mount_tool_kind.py create mode 100644 src/speechify/types/hosted_api_resolver.py create mode 100644 src/speechify/types/hosted_api_resolver_order_by.py create mode 100644 src/speechify/types/hosted_api_resolver_order_by_direction.py create mode 100644 src/speechify/types/hosted_api_resolver_type.py create mode 100644 src/speechify/types/hosted_api_resolver_where_item.py create mode 100644 src/speechify/types/hosted_api_resolver_where_item_op.py create mode 100644 src/speechify/types/hosted_api_resolver_write_mode.py create mode 100644 src/speechify/types/hosted_api_route.py create mode 100644 src/speechify/types/hosted_api_route_method.py create mode 100644 src/speechify/types/hosted_api_usage.py create mode 100644 src/speechify/types/hosted_api_usage_routes_item.py create mode 100644 src/speechify/types/hosted_api_user_token_secret.py create mode 100644 src/speechify/types/list_hosted_ap_is_response.py create mode 100644 src/speechify/types/list_hosted_api_keys_response.py create mode 100644 src/speechify/types/list_hosted_api_routes_response.py create mode 100644 src/speechify/types/request_analytics_bucket.py create mode 100644 src/speechify/types/request_analytics_response.py create mode 100644 src/speechify/types/request_analytics_totals.py create mode 100644 src/speechify/types/request_top_path.py create mode 100644 src/speechify/types/store_aggregate_metric.py create mode 100644 src/speechify/types/store_aggregate_metric_op.py diff --git a/.fern/metadata.json b/.fern/metadata.json index 54eb7cb..d778241 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "bb2bf53e3f49cc2c291a05080791e5ac2bb77313", + "originGitCommit": "62a7020b6bbdd9960592d310ce550a17bc507016", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index a4a3aca..8e38685 100644 --- a/reference.md +++ b/reference.md @@ -969,6 +969,992 @@ client.voices.download_sample( + + + + +## HostedApis +
client.hosted_apis.list(...) -> ListHostedApIsResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +List the hosted APIs in the caller's workspace, most recently updated +first. A hosted API is the API you assemble: a slug that becomes +`https://.`, the routes it answers, and the +consumer keys your own callers present. +Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.hosted_apis.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 by workspace project: omit for every project you can reach, +pass the literal `default` for resources in the implicit Default +project only, or a `proj_...` id for that project's resources. +Returns 404 project_not_found for a malformed id and for any filter +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, so neither can name `default`. +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. Inside it, a well-formed id that +matches no project yields an empty page. + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.hosted_apis.create(...) -> HostedApi +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Create a hosted API. The slug is a DNS label, globally unique on the +shared domain (409 `hosted_api_slug_taken`) and immutable afterwards. +`auth_mode` names the audience, narrowest first: `owner`, `workspace` +(the platform's own credentials), `user_token` (a JWT your backend +signs per user), `consumer_key` (a `ck_` key you mint) or `public` +(anyone, reads only). A workspace can refuse `public` as policy (403 +`hosted_api_public_refused`). Reads, runs and writes are each bounded +per UTC day (`daily_read_cap`, `daily_run_cap`, `daily_write_cap`), +and an API holds only a share of a server's requests open at once, so +a slow upstream behind one API cannot take the capacity others need: +past it, a request answers 429 `hosted_api_busy` with `Retry-After`. + +`mcp_enabled: true` also serves the API's routes as an MCP server at +`POST /mcp`, so an MCP client (Claude Code, Cursor) attaches +to one address and gets them as tools, under the same audience, keys +and caps. It is refused with `auth_mode: public`. On that face the +API's `name` is the server's title and its `description` is the +instructions the client's model reads, so describe what the tools are +for. +Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.hosted_apis.create( + idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", + slug="acme-news", + name="Acme News", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**slug:** `str` — 3-40 lowercase letters, digits or hyphens; a DNS label, unique on the shared domain; immutable. + +
+
+ +
+
+ +**name:** `str` + +
+
+ +
+
+ +**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. + +
+
+ +
+
+ +**description:** `typing.Optional[str]` — What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. + +
+
+ +
+
+ +**auth_mode:** `typing.Optional[CreateHostedApiRequestAuthMode]` — consumer_key when omitted. `public` is refused with 403 `hosted_api_public_refused` where the workspace's policy does not allow internet-facing APIs. + +
+
+ +
+
+ +**cors_origins:** `typing.Optional[typing.List[str]]` + +
+
+ +
+
+ +**daily_run_cap:** `typing.Optional[int]` — Runs the API may start per UTC day through its run routes; 1000 when omitted. + +
+
+ +
+
+ +**daily_read_cap:** `typing.Optional[int]` — Reads the API's store, file, run_latest and tool routes may serve per UTC day; 100000 when omitted. + +
+
+ +
+
+ +**daily_write_cap:** `typing.Optional[int]` — Documents the API's write routes may land per UTC day; 10000 when omitted. + +
+
+ +
+
+ +**mcp_enabled:** `typing.Optional[bool]` + +Serve the routes as an MCP server at `POST /mcp` too; +false when omitted. Refused with `auth_mode: public` (400 +`validation_failed` naming `mcp_enabled`). + +
+
+ +
+
+ +**project_id:** `typing.Optional[str]` + +
+
+ +
+
+ +**user_token_jwks_url:** `typing.Optional[str]` — Register the key set end-user tokens are verified against (an `https` URL on a public host). + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.hosted_apis.get(...) -> HostedApi +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Retrieve one hosted API. +Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.hosted_apis.get( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.hosted_apis.delete(...) +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Delete a hosted API; its host stops answering at once. +Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.hosted_apis.delete( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.hosted_apis.update(...) -> HostedApi +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Update a hosted API (merge-patch). Switching to `public` is refused +while a `run` or `store_write` route exists: an anonymous caller must +not start runs that spend the workspace's budget or write to a store, +and it is refused outright where the workspace's policy does not allow +internet-facing APIs (403 `hosted_api_public_refused`). Switching to a +mode that names no caller (`consumer_key`, `public`) is refused while +a route binds `{{user.*}}`: only `user_token`, `workspace` and `owner` +supply a person. Switching to `public` is also refused while a `tool` +route exists (a vendor call spends the workspace's vendor budget) and +while `mcp_enabled` is on, and switching the MCP face on is refused on +a `public` API (400 `validation_failed` naming `mcp_enabled`). +Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.hosted_apis.update( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). + +
+
+ +
+
+ +**name:** `typing.Optional[str]` + +
+
+ +
+
+ +**description:** `typing.Optional[str]` — What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. + +
+
+ +
+
+ +**auth_mode:** `typing.Optional[UpdateHostedApiRequestAuthMode]` + +
+
+ +
+
+ +**cors_origins:** `typing.Optional[typing.List[str]]` + +
+
+ +
+
+ +**enabled:** `typing.Optional[bool]` — A paused API answers 503 to every consumer request. + +
+
+ +
+
+ +**daily_run_cap:** `typing.Optional[int]` + +
+
+ +
+
+ +**daily_read_cap:** `typing.Optional[int]` + +
+
+ +
+
+ +**daily_write_cap:** `typing.Optional[int]` + +
+
+ +
+
+ +**mcp_enabled:** `typing.Optional[bool]` + +Switch the MCP face at `POST /mcp` on or off. Refused with +400 `validation_failed` naming `mcp_enabled` when the API is, or is +being made, `public`. Allow up to 15 seconds for the switch, like +any route change, to reach every server. + +
+
+ +
+
+ +**user_token_jwks_url:** `typing.Optional[str]` — Replace the registered key set; an empty string removes it, after which the signing secret verifies tokens again. + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.hosted_apis.get_open_api(...) -> typing.Dict[str, typing.Any] +
+
+ +#### 📝 Description + +
+
+ +
+
+ +The OpenAPI 3.1 document describing the hosted API's routes - the same +document the API serves to its consumers at `/openapi.json`. A `tool` +route's request body is the operation's own argument schema. When +`mcp_enabled` is on, the document carries an `x-speechify-mcp` object +(`url`, `transport: streamable-http`, `description`) naming where an +MCP client attaches; the face speaks JSON-RPC, so it is an extension +rather than a path. +Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.hosted_apis.get_open_api( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.hosted_apis.get_usage(...) -> HostedApiUsage +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Today's reads, runs and writes against the API's daily caps, with each +route's share of the reads and writes. A read is a request a store, +file or run_latest route answered from storage; a response served from +the cache is not one. A write is a document a `store_write` route +landed; a replayed Idempotency-Key is not one. `counters_available` is false where nothing counts (no Redis), so +a zero is never mistaken for a quiet day. +Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.hosted_apis.get_usage( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.hosted_apis.get_analytics(...) -> RequestAnalyticsResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Requests the API served over time: volume split by status, success +rate, and p50/p95/p99 latency per time bucket, plus one `top_paths` +row per route, busiest first, naming the route by `route_id`. Every +request its host answered counts, including refusals such as a +missing key (401) or an exhausted rate limit (429); `top_paths` counts +only the requests that matched a route, including a route an MCP +client called by tool name. +The window defaults to the last 7 days and is capped at 30. + +History starts at `history_starts_at`, the first request in the last +30 days attributed to this API: requests before it cannot be +attributed, so a bucket before it is missing data, not a quiet period. +When `history_starts_at` is absent, no request to this API has been +attributed in the last 30 days, and no bucket is known to be complete. +Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment +import datetime + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.hosted_apis.get_analytics( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + start=datetime.datetime.fromisoformat("2026-06-23T00:00:00+00:00"), + end=datetime.datetime.fromisoformat("2026-06-30T00:00:00+00:00"), +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). + +
+
+ +
+
+ +**start:** `typing.Optional[datetime.datetime]` — Inclusive start of the window (RFC-3339). Defaults to 7 days ago; the window is capped at 30 days. + +
+
+ +
+
+ +**end:** `typing.Optional[datetime.datetime]` — Exclusive end of the window (RFC-3339). Defaults to now. + +
+
+ +
+
+ +**granularity:** `typing.Optional[GetAnalyticsHostedApisRequestGranularity]` — Time-bucket size for the analytics series. + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.hosted_apis.rotate_user_token_secret(...) -> HostedApiUserTokenSecret +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Mint the signing secret end-user tokens are verified against, replacing +any previous one at once: every token signed with the old secret stops +verifying. The plaintext is in this response and nowhere else; later +reads show `user_token_secret_hint`. Your backend signs a JWT with it +(HS256) carrying `sub` (the user, at most 256 characters) and `exp` +(within 24 hours), and the consumer presents it as +`Authorization: Bearer `. Register `user_token_jwks_url` +instead to verify with your own keys. +Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.hosted_apis.rotate_user_token_secret( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). + +
+
+ +
+
+ +**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. + +
+
+
+
+ +
@@ -978,28 +1964,1061 @@ client.voices.download_sample(
-#### 📝 Description +#### 📝 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. + +
+
+
+
+ + +
+
+
+ +## HostedApis Routes +
client.hosted_apis.routes.list_routes(...) -> ListHostedApiRoutesResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +List a hosted API's routes in creation order. +Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.hosted_apis.routes.list_routes( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). + +
+
+ +
+
+ +**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.hosted_apis.routes.create_route(...) -> HostedApiRoute +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Add a route: a method + path answered by a resolver. `store_query`, +`store_document` and `store_aggregate` serve a store; `store_write` +lands the POST body as a document (`write_mode` create / replace / +merge; POST only, never on a public API, counted against +`daily_write_cap`, deduplicated on `Idempotency-Key`); `run_latest` +serves the newest structured output of a schedule trigger's runs; +`run` starts a run through a webhook trigger per request (POST only, +never on a public API) and waits up to `wait_seconds` before answering +202 with a handle to poll at `/_runs/{run_id}`; `file` serves one +published file, or a whole published tree when the path ends in `*` +(`/app/*` with `file_root` and `file_index`); `tool` calls one read +operation of an `openapi` tool definition, or one tool of an `mcp` +tool definition's server, in the API's project whose `approval` is +null or `auto` (POST only, never on a public API, counted against +`daily_read_cap`): the consumer's JSON body is the arguments and the +connector's answer, after the tool's response mapping, is the +response. An `mcp` route pins the tool's input schema as +`resolver.input_schema` when it is written. +Where-clause values and +the document id may be `{{query.x}}`, `{{path.x}}` or `{{body.x}}` +templates bound from the consumer's request, or `{{user.x}}` claims of +the verified caller on a `user_token`, `workspace` or `owner` API; a +clause whose template is absent is skipped. On those three modes a +written document is stamped `user_identity` as the caller and only +they can replace or merge it. Two bindings are refused at write time: +`{{user.*}}` on an API that names no caller, and a clause on +`user_identity` bound from a request template, which would let any +caller read any user's rows. + +On an API with `mcp_enabled`, every enabled route except a `file` +route is also an MCP tool. The tool's name comes from the route's +`name`: every run of characters outside letters, digits, `_` and `-` +becomes `_`, leading and trailing `_` are dropped, and the result is +cut to 64 characters. A route with no name is listed under a name +built from its method and path (`post_issues_open`), and a name two +routes would share takes `_2`, `_3` in route order, so read the names +from the face's `tools/list` rather than deriving them. The route's +`description` is what the client's model reads to choose the tool, +falling back to the operation's summary on a `tool` route. Name and +describe a route for that reader. +Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify, HostedApiResolver, HostedApiResolverOrderBy +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.hosted_apis.routes.create_route( + api_id="api_01kc4q3r9s6t8v0w2x4y6z8a0b", + method="GET", + path="/leads", + name="list_leads", + description="List leads, highest value first.", + resolver=HostedApiResolver( + type="store_query", + store_id="store_01kc4q5t1v3w5x7y9z1a3b5c7d", + collection="leads", + order_by=HostedApiResolverOrderBy( + field="value", + direction="desc", + ), + ), + cache_ttl_seconds=30, +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). + +
+
+ +
+
+ +**method:** `CreateHostedApiRouteRequestMethod` + +
+
+ +
+
+ +**path:** `str` — Lowercase segments of letters, digits, `. _ -` or a `{param}`; `/openapi.json`, `/_runs` and `/mcp` are reserved. + +
+
+ +
+
+ +**resolver:** `HostedApiResolver` + +
+
+ +
+
+ +**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. + +
+
+ +
+
+ +**name:** `typing.Optional[str]` + +The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. +On an API with `mcp_enabled` the MCP tool's name comes from it: +each run of other characters (a space included) becomes `_`, +leading and trailing `_` are dropped, and the result is cut to 64 +characters. A route with no name is listed under a name built from +its method and path, and a name two routes would share takes `_2`, +`_3` in route order; the face's `tools/list` is the authority. Pick +a verb-first name a model can choose by. + +
+
+ +
+
+ +**description:** `typing.Optional[str]` + +What the route does. On an API with `mcp_enabled` it is the MCP +tool description a client's model reads to choose the tool, so say +what it returns and when to call it; a `tool` route with none falls +back to the operation's summary. + +
+
+ +
+
+ +**response_schema:** `typing.Optional[typing.Dict[str, typing.Any]]` + +
+
+ +
+
+ +**cache_ttl_seconds:** `typing.Optional[int]` + +
+
+ +
+
+ +**enabled:** `typing.Optional[bool]` — Enabled when omitted. + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.hosted_apis.routes.mount_routes(...) -> HostedApiMount +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Publish a connector's operations onto the API in one call: one `tool` +route per operation of an `openapi` tool definition, or per tool its +`mcp` server lists, named `__` at +`/`, so two connectors' tools stay apart on +the MCP face and inside its 64-character tool names. + +Send `dry_run: true` first. The answer lists every operation with +its effective `action_class` and `approval`, whether a route can serve +it, and the `action` a mount takes: `create`, `update` (an MCP tool +whose input schema changed since its route was written; `changes` +names what), `unchanged`, `skip` (with the `reason`: not selected, not +a read, not auto-approved, a name or path already taken, or the route +cap) or `stale` (a route whose operation the connector no longer +offers, or can no longer serve; it is reported and never deleted, +since a consumer may still call it). The same call without `dry_run` +writes every create and update in one transaction and returns the +written `route` on each. + +Every answer carries a `plan_digest`. Send the preview's digest with +the apply: the apply plans again inside its transaction and writes +only when that plan still has the digest, so a tool the server changed +or a route edited after you reviewed is never written unseen. When it +differs the apply writes nothing and answers 409 `mount_plan_changed` +with the current plan, as a dry run answers it, in +`error.details.plan`; review that and apply again with its digest, +under a new `Idempotency-Key` if you sent one, since a key replays its +first answer, this 409 included. The digest covers every operation the +connector offers and every route the API holds for it whatever +`operations` selects, so a preview of everything and an apply of a +selection share one. An apply without it writes whatever the mount +plans at that moment. + +Mounting again is the refresh. Every route the API holds for the +connector is compared with what it offers now, whatever its name, +path or the selection, so an upstream change is seen as a diff before +anyone's client sees it. `operations` selects what to create; omit it +to create a route for every operation a route can serve. A route an +owner renamed or moved keeps its name and path on refresh. + +The route write's rules apply to every operation: the connector must +be in the API's project (409 `cross_project_reference`), an MCP server +must be reachable with its credential to be listed (400 +`validation_failed` on `tool_id` with the server's reason), and a +public API mounts nothing. An API holds at most 200 routes; a mount +that would pass the cap skips what does not fit. Without a +`plan_digest`, a route changed while the mount was being planned +answers 409 `api_route_conflict`; mount again. +Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.hosted_apis.routes.mount_routes( + api_id="api_01kc4q3r9s6t8v0w2x4y6z8a0b", + tool_id="tool_01kc4n9s3v7w0y4a6c8e2g4j6m", + name_prefix="linear", + dry_run=True, +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). + +
+
+ +
+
+ +**tool_id:** `str` — The `openapi` or `mcp` tool definition to mount, in the API's project. + +
+
+ +
+
+ +**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. + +
+
+ +
+
+ +**operations:** `typing.Optional[typing.List[str]]` + +The operations to create routes for: openapi operation ids or the +MCP server's tool names. Omit to create a route for every operation +a route can serve. Naming one the connector does not offer is 400 +`validation_failed` on `operations[i]`. Existing routes are compared +whatever the selection. + +
+
+ +
+
+ +**name_prefix:** `typing.Optional[str]` — Prefix of each created route's name, `__`. Defaults to the tool's name with other characters as `_`. + +
+
+ +
+
+ +**path_prefix:** `typing.Optional[str]` — Path each created route sits under, `/`; lowercase segments of letters, digits, `.`, `_` or `-`, with no `{param}` or `*`, and not under `/mcp`, `/openapi.json` or `/_runs`. Defaults to `/` in lowercase. + +
+
+ +
+
+ +**dry_run:** `typing.Optional[bool]` — Answer what the mount would do and write nothing. + +
+
+ +
+
+ +**include_writes:** `typing.Optional[bool]` + +Create routes for operations that are not reads too, each with +`allow_write: true`. Only an API whose `auth_mode` names a person +takes them; the operation's `approval` must still be `auto`. +Without it a write is a `skip` that says so. + +
+
+ +
+
+ +**plan_digest:** `typing.Optional[str]` + +The `plan_digest` of the preview you reviewed. The apply writes +only while the plan it computes inside its transaction still has +this digest, and otherwise writes nothing and answers 409 +`mount_plan_changed` with the current plan. Omit it to apply what +the mount plans now. Refused with `dry_run`. + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.hosted_apis.routes.get_route(...) -> HostedApiRoute +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Retrieve one route. +Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.hosted_apis.routes.get_route( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + route_id="route_01jqr8x9zg5k2m3n4p5q6r7s8t", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). + +
+
+ +
+
+ +**route_id:** `str` — Route id (prefixed external id, `route_...`). + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.hosted_apis.routes.delete_route(...) +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Delete a route. +Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.hosted_apis.routes.delete_route( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + route_id="route_01jqr8x9zg5k2m3n4p5q6r7s8t", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). + +
+
+ +
+
+ +**route_id:** `str` — Route id (prefixed external id, `route_...`). + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.hosted_apis.routes.update_route(...) -> HostedApiRoute +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Update a route (merge-patch); a changed method or resolver is re-validated. +Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.hosted_apis.routes.update_route( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + route_id="route_01jqr8x9zg5k2m3n4p5q6r7s8t", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). + +
+
+**route_id:** `str` — Route id (prefixed external id, `route_...`). + +
+
+
-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. +**method:** `typing.Optional[UpdateHostedApiRouteRequestMethod]` + +
+
-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. +**path:** `typing.Optional[str]` + +
+
+ +
+
+ +**name:** `typing.Optional[str]` + +The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. +On an API with `mcp_enabled` the MCP tool's name comes from it: +each run of other characters (a space included) becomes `_`, +leading and trailing `_` are dropped, and the result is cut to 64 +characters. A route with no name is listed under a name built from +its method and path, and a name two routes would share takes `_2`, +`_3` in route order; the face's `tools/list` is the authority. Pick +a verb-first name a model can choose by. + +
+
+ +
+
+ +**description:** `typing.Optional[str]` + +What the route does. On an API with `mcp_enabled` it is the MCP +tool description a client's model reads to choose the tool, so say +what it returns and when to call it; a `tool` route with none falls +back to the operation's summary. + +
+
+ +
+
+ +**resolver:** `typing.Optional[HostedApiResolver]` + +
+
+ +
+
+ +**response_schema:** `typing.Optional[typing.Dict[str, typing.Any]]` + +
+
+ +
+
+ +**cache_ttl_seconds:** `typing.Optional[int]` + +
+
+ +
+
+ +**enabled:** `typing.Optional[bool]` + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +## HostedApis Keys +
client.hosted_apis.keys.list_keys(...) -> ListHostedApiKeysResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +List a hosted API's consumer keys, newest first, revoked ones included. +Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise).
@@ -1022,8 +3041,8 @@ client = Speechify( environment=SpeechifyEnvironment.DEFAULT, ) -client.audio.watermark.detect( - audio="example_audio", +client.hosted_apis.keys.list_keys( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", ) ``` @@ -1040,12 +3059,23 @@ client.audio.watermark.detect(
-**audio:** `core.File` +**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). + +
+
-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. +
+
+ +**cursor:** `typing.Optional[str]` — Opaque pagination cursor from a previous response. + +
+
+ +
+
+ +**limit:** `typing.Optional[int]` — Max items per page (default 50, max 200).
@@ -1065,7 +3095,7 @@ reports zero.
-
client.audio.watermark.verify(...) -> WatermarkVerificationResponse +
client.hosted_apis.keys.create_key(...) -> HostedApiKey
@@ -1077,34 +3107,117 @@ reports zero.
-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. +Mint a consumer key (`ck_...`) for the API's own callers. The plaintext +`secret` is present in this response only; every later read shows the +masked `key_hint`. +Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). +
+
+
+
-`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. +#### 🔌 Usage -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. +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.hosted_apis.keys.create_key( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", + name="name", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). + +
+
+ +
+
+ +**name:** `str` + +
+
+ +
+
+ +**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. + +
+
+ +
+
+ +**rate_per_minute:** `typing.Optional[int]` — Requests per minute; 60 when omitted, 0 for unlimited. + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + + + +
+ +
client.hosted_apis.keys.revoke_key(...) -> HostedApiKey +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Revoke a consumer key; idempotent. Requests carrying it are refused from now on. +Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise).
@@ -1127,8 +3240,9 @@ client = Speechify( environment=SpeechifyEnvironment.DEFAULT, ) -client.audio.watermark.verify( - audio="example_audio", +client.hosted_apis.keys.revoke_key( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + consumer_key_id="ckey_01jqr8x9zg5k2m3n4p5q6r7s8t", ) ``` @@ -1145,11 +3259,15 @@ client.audio.watermark.verify(
-**audio:** `core.File` +**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). + +
+
-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. +
+
+ +**consumer_key_id:** `str` — Consumer key id (prefixed external id, `ckey_...`).
diff --git a/src/speechify/__init__.py b/src/speechify/__init__.py index 30b6a3d..4487590 100644 --- a/src/speechify/__init__.py +++ b/src/speechify/__init__.py @@ -25,11 +25,39 @@ GetVoiceType, GetVoicesModel, GetVoicesModelName, + HostedApi, + HostedApiAuthMode, + HostedApiKey, + HostedApiMount, + HostedApiMountOperation, + HostedApiMountOperationAction, + HostedApiMountOperationChangesItem, + HostedApiMountSummary, + HostedApiMountToolKind, + HostedApiResolver, + HostedApiResolverOrderBy, + HostedApiResolverOrderByDirection, + HostedApiResolverType, + HostedApiResolverWhereItem, + HostedApiResolverWhereItemOp, + HostedApiResolverWriteMode, + HostedApiRoute, + HostedApiRouteMethod, + HostedApiUsage, + HostedApiUsageRoutesItem, + HostedApiUserTokenSecret, + ListHostedApIsResponse, + ListHostedApiKeysResponse, + ListHostedApiRoutesResponse, ListVoicesResponse, Model, ModelsResponse, NestedChunk, PaginationMeta, + RequestAnalyticsBucket, + RequestAnalyticsResponse, + RequestAnalyticsTotals, + RequestTopPath, SpeechChunkEvent, SpeechDoneEvent, SpeechErrorEvent, @@ -38,6 +66,8 @@ SpeechStreamEvent_SpeechChunk, SpeechStreamEvent_SpeechDone, SpeechStreamEvent_SpeechError, + StoreAggregateMetric, + StoreAggregateMetricOp, WatermarkDetectionResponse, WatermarkVerificationResponse, ) @@ -55,7 +85,7 @@ UnauthorizedError, UnprocessableEntityError, ) - from . import audio, models, voices + from . import audio, hosted_apis, models, voices from ._default_clients import DefaultAioHttpClient, DefaultAsyncHttpxClient from .audio import ( GetSpeechRequestAudioFormat, @@ -65,6 +95,11 @@ ) from .client import AsyncSpeechify, Speechify from .environment import SpeechifyEnvironment + from .hosted_apis import ( + CreateHostedApiRequestAuthMode, + GetAnalyticsHostedApisRequestGranularity, + UpdateHostedApiRequestAuthMode, + ) from .version import __version__ from .voices import CreateVoicesRequestGender, ListVoicesRequestGender, ListVoicesRequestType _dynamic_imports: typing.Dict[str, str] = { @@ -76,6 +111,7 @@ "ConflictError": ".errors", "ConsentChallenge": ".types", "ContentTooLargeError": ".errors", + "CreateHostedApiRequestAuthMode": ".hosted_apis", "CreateVoicesRequestGender": ".voices", "DefaultAioHttpClient": "._default_clients", "DefaultAsyncHttpxClient": "._default_clients", @@ -83,6 +119,7 @@ "ErrorCode": ".types", "ErrorDetail": ".types", "ForbiddenError": ".errors", + "GetAnalyticsHostedApisRequestGranularity": ".hosted_apis", "GetSpeechOptionsRequest": ".types", "GetSpeechRequestAudioFormat": ".audio", "GetSpeechRequestModel": ".audio", @@ -97,7 +134,31 @@ "GetVoiceType": ".types", "GetVoicesModel": ".types", "GetVoicesModelName": ".types", + "HostedApi": ".types", + "HostedApiAuthMode": ".types", + "HostedApiKey": ".types", + "HostedApiMount": ".types", + "HostedApiMountOperation": ".types", + "HostedApiMountOperationAction": ".types", + "HostedApiMountOperationChangesItem": ".types", + "HostedApiMountSummary": ".types", + "HostedApiMountToolKind": ".types", + "HostedApiResolver": ".types", + "HostedApiResolverOrderBy": ".types", + "HostedApiResolverOrderByDirection": ".types", + "HostedApiResolverType": ".types", + "HostedApiResolverWhereItem": ".types", + "HostedApiResolverWhereItemOp": ".types", + "HostedApiResolverWriteMode": ".types", + "HostedApiRoute": ".types", + "HostedApiRouteMethod": ".types", + "HostedApiUsage": ".types", + "HostedApiUsageRoutesItem": ".types", + "HostedApiUserTokenSecret": ".types", "InternalServerError": ".errors", + "ListHostedApIsResponse": ".types", + "ListHostedApiKeysResponse": ".types", + "ListHostedApiRoutesResponse": ".types", "ListVoicesRequestGender": ".voices", "ListVoicesRequestType": ".voices", "ListVoicesResponse": ".types", @@ -107,6 +168,10 @@ "NotFoundError": ".errors", "PaginationMeta": ".types", "PaymentRequiredError": ".errors", + "RequestAnalyticsBucket": ".types", + "RequestAnalyticsResponse": ".types", + "RequestAnalyticsTotals": ".types", + "RequestTopPath": ".types", "ServiceUnavailableError": ".errors", "SpeechChunkEvent": ".types", "SpeechDoneEvent": ".types", @@ -118,15 +183,19 @@ "SpeechStreamEvent_SpeechError": ".types", "Speechify": ".client", "SpeechifyEnvironment": ".environment", + "StoreAggregateMetric": ".types", + "StoreAggregateMetricOp": ".types", "StreamAudioRequestAccept": ".audio", "StreamWithTimestampsAudioRequestAccept": ".audio", "TooManyRequestsError": ".errors", "UnauthorizedError": ".errors", "UnprocessableEntityError": ".errors", + "UpdateHostedApiRequestAuthMode": ".hosted_apis", "WatermarkDetectionResponse": ".types", "WatermarkVerificationResponse": ".types", "__version__": ".version", "audio": ".audio", + "hosted_apis": ".hosted_apis", "models": ".models", "voices": ".voices", } @@ -162,6 +231,7 @@ def __dir__(): "ConflictError", "ConsentChallenge", "ContentTooLargeError", + "CreateHostedApiRequestAuthMode", "CreateVoicesRequestGender", "DefaultAioHttpClient", "DefaultAsyncHttpxClient", @@ -169,6 +239,7 @@ def __dir__(): "ErrorCode", "ErrorDetail", "ForbiddenError", + "GetAnalyticsHostedApisRequestGranularity", "GetSpeechOptionsRequest", "GetSpeechRequestAudioFormat", "GetSpeechRequestModel", @@ -183,7 +254,31 @@ def __dir__(): "GetVoiceType", "GetVoicesModel", "GetVoicesModelName", + "HostedApi", + "HostedApiAuthMode", + "HostedApiKey", + "HostedApiMount", + "HostedApiMountOperation", + "HostedApiMountOperationAction", + "HostedApiMountOperationChangesItem", + "HostedApiMountSummary", + "HostedApiMountToolKind", + "HostedApiResolver", + "HostedApiResolverOrderBy", + "HostedApiResolverOrderByDirection", + "HostedApiResolverType", + "HostedApiResolverWhereItem", + "HostedApiResolverWhereItemOp", + "HostedApiResolverWriteMode", + "HostedApiRoute", + "HostedApiRouteMethod", + "HostedApiUsage", + "HostedApiUsageRoutesItem", + "HostedApiUserTokenSecret", "InternalServerError", + "ListHostedApIsResponse", + "ListHostedApiKeysResponse", + "ListHostedApiRoutesResponse", "ListVoicesRequestGender", "ListVoicesRequestType", "ListVoicesResponse", @@ -193,6 +288,10 @@ def __dir__(): "NotFoundError", "PaginationMeta", "PaymentRequiredError", + "RequestAnalyticsBucket", + "RequestAnalyticsResponse", + "RequestAnalyticsTotals", + "RequestTopPath", "ServiceUnavailableError", "SpeechChunkEvent", "SpeechDoneEvent", @@ -204,15 +303,19 @@ def __dir__(): "SpeechStreamEvent_SpeechError", "Speechify", "SpeechifyEnvironment", + "StoreAggregateMetric", + "StoreAggregateMetricOp", "StreamAudioRequestAccept", "StreamWithTimestampsAudioRequestAccept", "TooManyRequestsError", "UnauthorizedError", "UnprocessableEntityError", + "UpdateHostedApiRequestAuthMode", "WatermarkDetectionResponse", "WatermarkVerificationResponse", "__version__", "audio", + "hosted_apis", "models", "voices", ] diff --git a/src/speechify/client.py b/src/speechify/client.py index b2fa866..c9a4d41 100644 --- a/src/speechify/client.py +++ b/src/speechify/client.py @@ -12,6 +12,7 @@ if typing.TYPE_CHECKING: from .audio.client import AsyncAudioClient, AudioClient + from .hosted_apis.client import AsyncHostedApisClient, HostedApisClient from .models.client import AsyncModelsClient, ModelsClient from .voices.client import AsyncVoicesClient, VoicesClient @@ -99,6 +100,7 @@ def __init__( self._audio: typing.Optional[AudioClient] = None self._models: typing.Optional[ModelsClient] = None self._voices: typing.Optional[VoicesClient] = None + self._hosted_apis: typing.Optional[HostedApisClient] = None @property def audio(self): @@ -124,6 +126,14 @@ def voices(self): self._voices = VoicesClient(client_wrapper=self._client_wrapper) return self._voices + @property + def hosted_apis(self): + if self._hosted_apis is None: + from .hosted_apis.client import HostedApisClient # noqa: E402 + + self._hosted_apis = HostedApisClient(client_wrapper=self._client_wrapper) + return self._hosted_apis + def _make_default_async_client( timeout: typing.Optional[float], @@ -229,6 +239,7 @@ def __init__( self._audio: typing.Optional[AsyncAudioClient] = None self._models: typing.Optional[AsyncModelsClient] = None self._voices: typing.Optional[AsyncVoicesClient] = None + self._hosted_apis: typing.Optional[AsyncHostedApisClient] = None @property def audio(self): @@ -254,6 +265,14 @@ def voices(self): self._voices = AsyncVoicesClient(client_wrapper=self._client_wrapper) return self._voices + @property + def hosted_apis(self): + if self._hosted_apis is None: + from .hosted_apis.client import AsyncHostedApisClient # noqa: E402 + + self._hosted_apis = AsyncHostedApisClient(client_wrapper=self._client_wrapper) + return self._hosted_apis + def _get_base_url(*, base_url: typing.Optional[str] = None, environment: SpeechifyEnvironment) -> str: if base_url is not None: diff --git a/src/speechify/hosted_apis/__init__.py b/src/speechify/hosted_apis/__init__.py new file mode 100644 index 0000000..f3f9b0d --- /dev/null +++ b/src/speechify/hosted_apis/__init__.py @@ -0,0 +1,56 @@ +# 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 ( + CreateHostedApiRequestAuthMode, + GetAnalyticsHostedApisRequestGranularity, + UpdateHostedApiRequestAuthMode, + ) + from . import keys, routes + from .routes import CreateHostedApiRouteRequestMethod, UpdateHostedApiRouteRequestMethod +_dynamic_imports: typing.Dict[str, str] = { + "CreateHostedApiRequestAuthMode": ".types", + "CreateHostedApiRouteRequestMethod": ".routes", + "GetAnalyticsHostedApisRequestGranularity": ".types", + "UpdateHostedApiRequestAuthMode": ".types", + "UpdateHostedApiRouteRequestMethod": ".routes", + "keys": ".keys", + "routes": ".routes", +} + + +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__ = [ + "CreateHostedApiRequestAuthMode", + "CreateHostedApiRouteRequestMethod", + "GetAnalyticsHostedApisRequestGranularity", + "UpdateHostedApiRequestAuthMode", + "UpdateHostedApiRouteRequestMethod", + "keys", + "routes", +] diff --git a/src/speechify/hosted_apis/client.py b/src/speechify/hosted_apis/client.py new file mode 100644 index 0000000..a3db5c6 --- /dev/null +++ b/src/speechify/hosted_apis/client.py @@ -0,0 +1,1281 @@ +# This file was auto-generated by Fern from our API Definition. + +from __future__ import annotations + +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.hosted_api import HostedApi +from ..types.hosted_api_usage import HostedApiUsage +from ..types.hosted_api_user_token_secret import HostedApiUserTokenSecret +from ..types.list_hosted_ap_is_response import ListHostedApIsResponse +from ..types.request_analytics_response import RequestAnalyticsResponse +from .raw_client import AsyncRawHostedApisClient, RawHostedApisClient +from .types.create_hosted_api_request_auth_mode import CreateHostedApiRequestAuthMode +from .types.get_analytics_hosted_apis_request_granularity import GetAnalyticsHostedApisRequestGranularity +from .types.update_hosted_api_request_auth_mode import UpdateHostedApiRequestAuthMode + +if typing.TYPE_CHECKING: + from .keys.client import AsyncKeysClient, KeysClient + from .routes.client import AsyncRoutesClient, RoutesClient +# this is used as the default value for optional parameters +OMIT = typing.cast(typing.Any, ...) + + +class HostedApisClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._raw_client = RawHostedApisClient(client_wrapper=client_wrapper) + self._client_wrapper = client_wrapper + self._routes: typing.Optional[RoutesClient] = None + self._keys: typing.Optional[KeysClient] = None + + @property + def with_raw_response(self) -> RawHostedApisClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + RawHostedApisClient + """ + 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[HostedApi, ListHostedApIsResponse]: + """ + List the hosted APIs in the caller's workspace, most recently updated + first. A hosted API is the API you assemble: a slug that becomes + `https://.`, the routes it answers, and the + consumer keys your own callers present. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + 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 by workspace project: omit for every project you can reach, + pass the literal `default` for resources in the implicit Default + project only, or a `proj_...` id for that project's resources. + Returns 404 project_not_found for a malformed id and for any filter + 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, so neither can name `default`. + 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. Inside it, a well-formed id that + matches no project yields an empty page. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + SyncPager[HostedApi, ListHostedApIsResponse] + OK + + Examples + -------- + from speechify import Speechify + + client = Speechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + response = client.hosted_apis.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, + *, + slug: str, + name: str, + idempotency_key: typing.Optional[str] = None, + description: typing.Optional[str] = OMIT, + auth_mode: typing.Optional[CreateHostedApiRequestAuthMode] = OMIT, + cors_origins: typing.Optional[typing.Sequence[str]] = OMIT, + daily_run_cap: typing.Optional[int] = OMIT, + daily_read_cap: typing.Optional[int] = OMIT, + daily_write_cap: typing.Optional[int] = OMIT, + mcp_enabled: typing.Optional[bool] = OMIT, + project_id: typing.Optional[str] = OMIT, + user_token_jwks_url: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HostedApi: + """ + Create a hosted API. The slug is a DNS label, globally unique on the + shared domain (409 `hosted_api_slug_taken`) and immutable afterwards. + `auth_mode` names the audience, narrowest first: `owner`, `workspace` + (the platform's own credentials), `user_token` (a JWT your backend + signs per user), `consumer_key` (a `ck_` key you mint) or `public` + (anyone, reads only). A workspace can refuse `public` as policy (403 + `hosted_api_public_refused`). Reads, runs and writes are each bounded + per UTC day (`daily_read_cap`, `daily_run_cap`, `daily_write_cap`), + and an API holds only a share of a server's requests open at once, so + a slow upstream behind one API cannot take the capacity others need: + past it, a request answers 429 `hosted_api_busy` with `Retry-After`. + + `mcp_enabled: true` also serves the API's routes as an MCP server at + `POST /mcp`, so an MCP client (Claude Code, Cursor) attaches + to one address and gets them as tools, under the same audience, keys + and caps. It is refused with `auth_mode: public`. On that face the + API's `name` is the server's title and its `description` is the + instructions the client's model reads, so describe what the tools are + for. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + slug : str + 3-40 lowercase letters, digits or hyphens; a DNS label, unique on the shared domain; immutable. + + name : str + + 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. + + description : typing.Optional[str] + What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. + + auth_mode : typing.Optional[CreateHostedApiRequestAuthMode] + consumer_key when omitted. `public` is refused with 403 `hosted_api_public_refused` where the workspace's policy does not allow internet-facing APIs. + + cors_origins : typing.Optional[typing.Sequence[str]] + + daily_run_cap : typing.Optional[int] + Runs the API may start per UTC day through its run routes; 1000 when omitted. + + daily_read_cap : typing.Optional[int] + Reads the API's store, file, run_latest and tool routes may serve per UTC day; 100000 when omitted. + + daily_write_cap : typing.Optional[int] + Documents the API's write routes may land per UTC day; 10000 when omitted. + + mcp_enabled : typing.Optional[bool] + Serve the routes as an MCP server at `POST /mcp` too; + false when omitted. Refused with `auth_mode: public` (400 + `validation_failed` naming `mcp_enabled`). + + project_id : typing.Optional[str] + + user_token_jwks_url : typing.Optional[str] + Register the key set end-user tokens are verified against (an `https` URL on a public host). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApi + The created API. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + client.hosted_apis.create( + idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", + slug="acme-news", + name="Acme News", + ) + """ + _response = self._raw_client.create( + slug=slug, + name=name, + idempotency_key=idempotency_key, + description=description, + auth_mode=auth_mode, + cors_origins=cors_origins, + daily_run_cap=daily_run_cap, + daily_read_cap=daily_read_cap, + daily_write_cap=daily_write_cap, + mcp_enabled=mcp_enabled, + project_id=project_id, + user_token_jwks_url=user_token_jwks_url, + request_options=request_options, + ) + return _response.data + + def get(self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HostedApi: + """ + Retrieve one hosted API. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApi + OK + + Examples + -------- + from speechify import Speechify + + client = Speechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + client.hosted_apis.get( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + """ + _response = self._raw_client.get(api_id, request_options=request_options) + return _response.data + + def delete(self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: + """ + Delete a hosted API; its host stops answering at once. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + None + + Examples + -------- + from speechify import Speechify + + client = Speechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + client.hosted_apis.delete( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + """ + _response = self._raw_client.delete(api_id, request_options=request_options) + return _response.data + + def update( + self, + api_id: str, + *, + name: typing.Optional[str] = OMIT, + description: typing.Optional[str] = OMIT, + auth_mode: typing.Optional[UpdateHostedApiRequestAuthMode] = OMIT, + cors_origins: typing.Optional[typing.Sequence[str]] = OMIT, + enabled: typing.Optional[bool] = OMIT, + daily_run_cap: typing.Optional[int] = OMIT, + daily_read_cap: typing.Optional[int] = OMIT, + daily_write_cap: typing.Optional[int] = OMIT, + mcp_enabled: typing.Optional[bool] = OMIT, + user_token_jwks_url: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HostedApi: + """ + Update a hosted API (merge-patch). Switching to `public` is refused + while a `run` or `store_write` route exists: an anonymous caller must + not start runs that spend the workspace's budget or write to a store, + and it is refused outright where the workspace's policy does not allow + internet-facing APIs (403 `hosted_api_public_refused`). Switching to a + mode that names no caller (`consumer_key`, `public`) is refused while + a route binds `{{user.*}}`: only `user_token`, `workspace` and `owner` + supply a person. Switching to `public` is also refused while a `tool` + route exists (a vendor call spends the workspace's vendor budget) and + while `mcp_enabled` is on, and switching the MCP face on is refused on + a `public` API (400 `validation_failed` naming `mcp_enabled`). + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + name : typing.Optional[str] + + description : typing.Optional[str] + What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. + + auth_mode : typing.Optional[UpdateHostedApiRequestAuthMode] + + cors_origins : typing.Optional[typing.Sequence[str]] + + enabled : typing.Optional[bool] + A paused API answers 503 to every consumer request. + + daily_run_cap : typing.Optional[int] + + daily_read_cap : typing.Optional[int] + + daily_write_cap : typing.Optional[int] + + mcp_enabled : typing.Optional[bool] + Switch the MCP face at `POST /mcp` on or off. Refused with + 400 `validation_failed` naming `mcp_enabled` when the API is, or is + being made, `public`. Allow up to 15 seconds for the switch, like + any route change, to reach every server. + + user_token_jwks_url : typing.Optional[str] + Replace the registered key set; an empty string removes it, after which the signing secret verifies tokens again. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApi + OK + + Examples + -------- + from speechify import Speechify + + client = Speechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + client.hosted_apis.update( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + """ + _response = self._raw_client.update( + api_id, + name=name, + description=description, + auth_mode=auth_mode, + cors_origins=cors_origins, + enabled=enabled, + daily_run_cap=daily_run_cap, + daily_read_cap=daily_read_cap, + daily_write_cap=daily_write_cap, + mcp_enabled=mcp_enabled, + user_token_jwks_url=user_token_jwks_url, + request_options=request_options, + ) + return _response.data + + def get_open_api( + self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> typing.Dict[str, typing.Any]: + """ + The OpenAPI 3.1 document describing the hosted API's routes - the same + document the API serves to its consumers at `/openapi.json`. A `tool` + route's request body is the operation's own argument schema. When + `mcp_enabled` is on, the document carries an `x-speechify-mcp` object + (`url`, `transport: streamable-http`, `description`) naming where an + MCP client attaches; the face speaks JSON-RPC, so it is an extension + rather than a path. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + typing.Dict[str, typing.Any] + The OpenAPI document. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + client.hosted_apis.get_open_api( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + """ + _response = self._raw_client.get_open_api(api_id, request_options=request_options) + return _response.data + + def get_usage(self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HostedApiUsage: + """ + Today's reads, runs and writes against the API's daily caps, with each + route's share of the reads and writes. A read is a request a store, + file or run_latest route answered from storage; a response served from + the cache is not one. A write is a document a `store_write` route + landed; a replayed Idempotency-Key is not one. `counters_available` is false where nothing counts (no Redis), so + a zero is never mistaken for a quiet day. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApiUsage + OK + + Examples + -------- + from speechify import Speechify + + client = Speechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + client.hosted_apis.get_usage( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + """ + _response = self._raw_client.get_usage(api_id, request_options=request_options) + return _response.data + + def get_analytics( + self, + api_id: str, + *, + start: typing.Optional[dt.datetime] = None, + end: typing.Optional[dt.datetime] = None, + granularity: typing.Optional[GetAnalyticsHostedApisRequestGranularity] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> RequestAnalyticsResponse: + """ + Requests the API served over time: volume split by status, success + rate, and p50/p95/p99 latency per time bucket, plus one `top_paths` + row per route, busiest first, naming the route by `route_id`. Every + request its host answered counts, including refusals such as a + missing key (401) or an exhausted rate limit (429); `top_paths` counts + only the requests that matched a route, including a route an MCP + client called by tool name. + The window defaults to the last 7 days and is capped at 30. + + History starts at `history_starts_at`, the first request in the last + 30 days attributed to this API: requests before it cannot be + attributed, so a bucket before it is missing data, not a quiet period. + When `history_starts_at` is absent, no request to this API has been + attributed in the last 30 days, and no bucket is known to be complete. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + start : typing.Optional[dt.datetime] + Inclusive start of the window (RFC-3339). Defaults to 7 days ago; the window is capped at 30 days. + + end : typing.Optional[dt.datetime] + Exclusive end of the window (RFC-3339). Defaults to now. + + granularity : typing.Optional[GetAnalyticsHostedApisRequestGranularity] + Time-bucket size for the analytics series. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + RequestAnalyticsResponse + OK + + Examples + -------- + import datetime + + from speechify import Speechify + + client = Speechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + client.hosted_apis.get_analytics( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + start=datetime.datetime.fromisoformat( + "2026-06-23 00:00:00+00:00", + ), + end=datetime.datetime.fromisoformat( + "2026-06-30 00:00:00+00:00", + ), + ) + """ + _response = self._raw_client.get_analytics( + api_id, start=start, end=end, granularity=granularity, request_options=request_options + ) + return _response.data + + def rotate_user_token_secret( + self, + api_id: str, + *, + idempotency_key: typing.Optional[str] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> HostedApiUserTokenSecret: + """ + Mint the signing secret end-user tokens are verified against, replacing + any previous one at once: every token signed with the old secret stops + verifying. The plaintext is in this response and nowhere else; later + reads show `user_token_secret_hint`. Your backend signs a JWT with it + (HS256) carrying `sub` (the user, at most 256 characters) and `exp` + (within 24 hours), and the consumer presents it as + `Authorization: Bearer `. Register `user_token_jwks_url` + instead to verify with your own keys. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + 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. + + Returns + ------- + HostedApiUserTokenSecret + OK + + Examples + -------- + from speechify import Speechify + + client = Speechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + client.hosted_apis.rotate_user_token_secret( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", + ) + """ + _response = self._raw_client.rotate_user_token_secret( + api_id, idempotency_key=idempotency_key, request_options=request_options + ) + return _response.data + + @property + def routes(self): + if self._routes is None: + from .routes.client import RoutesClient # noqa: E402 + + self._routes = RoutesClient(client_wrapper=self._client_wrapper) + return self._routes + + @property + def keys(self): + if self._keys is None: + from .keys.client import KeysClient # noqa: E402 + + self._keys = KeysClient(client_wrapper=self._client_wrapper) + return self._keys + + +class AsyncHostedApisClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._raw_client = AsyncRawHostedApisClient(client_wrapper=client_wrapper) + self._client_wrapper = client_wrapper + self._routes: typing.Optional[AsyncRoutesClient] = None + self._keys: typing.Optional[AsyncKeysClient] = None + + @property + def with_raw_response(self) -> AsyncRawHostedApisClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + AsyncRawHostedApisClient + """ + 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[HostedApi, ListHostedApIsResponse]: + """ + List the hosted APIs in the caller's workspace, most recently updated + first. A hosted API is the API you assemble: a slug that becomes + `https://.`, the routes it answers, and the + consumer keys your own callers present. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + 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 by workspace project: omit for every project you can reach, + pass the literal `default` for resources in the implicit Default + project only, or a `proj_...` id for that project's resources. + Returns 404 project_not_found for a malformed id and for any filter + 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, so neither can name `default`. + 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. Inside it, a well-formed id that + matches no project yields an empty page. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncPager[HostedApi, ListHostedApIsResponse] + OK + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + response = await client.hosted_apis.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, + *, + slug: str, + name: str, + idempotency_key: typing.Optional[str] = None, + description: typing.Optional[str] = OMIT, + auth_mode: typing.Optional[CreateHostedApiRequestAuthMode] = OMIT, + cors_origins: typing.Optional[typing.Sequence[str]] = OMIT, + daily_run_cap: typing.Optional[int] = OMIT, + daily_read_cap: typing.Optional[int] = OMIT, + daily_write_cap: typing.Optional[int] = OMIT, + mcp_enabled: typing.Optional[bool] = OMIT, + project_id: typing.Optional[str] = OMIT, + user_token_jwks_url: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HostedApi: + """ + Create a hosted API. The slug is a DNS label, globally unique on the + shared domain (409 `hosted_api_slug_taken`) and immutable afterwards. + `auth_mode` names the audience, narrowest first: `owner`, `workspace` + (the platform's own credentials), `user_token` (a JWT your backend + signs per user), `consumer_key` (a `ck_` key you mint) or `public` + (anyone, reads only). A workspace can refuse `public` as policy (403 + `hosted_api_public_refused`). Reads, runs and writes are each bounded + per UTC day (`daily_read_cap`, `daily_run_cap`, `daily_write_cap`), + and an API holds only a share of a server's requests open at once, so + a slow upstream behind one API cannot take the capacity others need: + past it, a request answers 429 `hosted_api_busy` with `Retry-After`. + + `mcp_enabled: true` also serves the API's routes as an MCP server at + `POST /mcp`, so an MCP client (Claude Code, Cursor) attaches + to one address and gets them as tools, under the same audience, keys + and caps. It is refused with `auth_mode: public`. On that face the + API's `name` is the server's title and its `description` is the + instructions the client's model reads, so describe what the tools are + for. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + slug : str + 3-40 lowercase letters, digits or hyphens; a DNS label, unique on the shared domain; immutable. + + name : str + + 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. + + description : typing.Optional[str] + What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. + + auth_mode : typing.Optional[CreateHostedApiRequestAuthMode] + consumer_key when omitted. `public` is refused with 403 `hosted_api_public_refused` where the workspace's policy does not allow internet-facing APIs. + + cors_origins : typing.Optional[typing.Sequence[str]] + + daily_run_cap : typing.Optional[int] + Runs the API may start per UTC day through its run routes; 1000 when omitted. + + daily_read_cap : typing.Optional[int] + Reads the API's store, file, run_latest and tool routes may serve per UTC day; 100000 when omitted. + + daily_write_cap : typing.Optional[int] + Documents the API's write routes may land per UTC day; 10000 when omitted. + + mcp_enabled : typing.Optional[bool] + Serve the routes as an MCP server at `POST /mcp` too; + false when omitted. Refused with `auth_mode: public` (400 + `validation_failed` naming `mcp_enabled`). + + project_id : typing.Optional[str] + + user_token_jwks_url : typing.Optional[str] + Register the key set end-user tokens are verified against (an `https` URL on a public host). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApi + The created API. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.hosted_apis.create( + idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", + slug="acme-news", + name="Acme News", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.create( + slug=slug, + name=name, + idempotency_key=idempotency_key, + description=description, + auth_mode=auth_mode, + cors_origins=cors_origins, + daily_run_cap=daily_run_cap, + daily_read_cap=daily_read_cap, + daily_write_cap=daily_write_cap, + mcp_enabled=mcp_enabled, + project_id=project_id, + user_token_jwks_url=user_token_jwks_url, + request_options=request_options, + ) + return _response.data + + async def get(self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HostedApi: + """ + Retrieve one hosted API. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApi + OK + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.hosted_apis.get( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.get(api_id, request_options=request_options) + return _response.data + + async def delete(self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: + """ + Delete a hosted API; its host stops answering at once. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + None + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.hosted_apis.delete( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.delete(api_id, request_options=request_options) + return _response.data + + async def update( + self, + api_id: str, + *, + name: typing.Optional[str] = OMIT, + description: typing.Optional[str] = OMIT, + auth_mode: typing.Optional[UpdateHostedApiRequestAuthMode] = OMIT, + cors_origins: typing.Optional[typing.Sequence[str]] = OMIT, + enabled: typing.Optional[bool] = OMIT, + daily_run_cap: typing.Optional[int] = OMIT, + daily_read_cap: typing.Optional[int] = OMIT, + daily_write_cap: typing.Optional[int] = OMIT, + mcp_enabled: typing.Optional[bool] = OMIT, + user_token_jwks_url: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HostedApi: + """ + Update a hosted API (merge-patch). Switching to `public` is refused + while a `run` or `store_write` route exists: an anonymous caller must + not start runs that spend the workspace's budget or write to a store, + and it is refused outright where the workspace's policy does not allow + internet-facing APIs (403 `hosted_api_public_refused`). Switching to a + mode that names no caller (`consumer_key`, `public`) is refused while + a route binds `{{user.*}}`: only `user_token`, `workspace` and `owner` + supply a person. Switching to `public` is also refused while a `tool` + route exists (a vendor call spends the workspace's vendor budget) and + while `mcp_enabled` is on, and switching the MCP face on is refused on + a `public` API (400 `validation_failed` naming `mcp_enabled`). + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + name : typing.Optional[str] + + description : typing.Optional[str] + What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. + + auth_mode : typing.Optional[UpdateHostedApiRequestAuthMode] + + cors_origins : typing.Optional[typing.Sequence[str]] + + enabled : typing.Optional[bool] + A paused API answers 503 to every consumer request. + + daily_run_cap : typing.Optional[int] + + daily_read_cap : typing.Optional[int] + + daily_write_cap : typing.Optional[int] + + mcp_enabled : typing.Optional[bool] + Switch the MCP face at `POST /mcp` on or off. Refused with + 400 `validation_failed` naming `mcp_enabled` when the API is, or is + being made, `public`. Allow up to 15 seconds for the switch, like + any route change, to reach every server. + + user_token_jwks_url : typing.Optional[str] + Replace the registered key set; an empty string removes it, after which the signing secret verifies tokens again. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApi + OK + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.hosted_apis.update( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.update( + api_id, + name=name, + description=description, + auth_mode=auth_mode, + cors_origins=cors_origins, + enabled=enabled, + daily_run_cap=daily_run_cap, + daily_read_cap=daily_read_cap, + daily_write_cap=daily_write_cap, + mcp_enabled=mcp_enabled, + user_token_jwks_url=user_token_jwks_url, + request_options=request_options, + ) + return _response.data + + async def get_open_api( + self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> typing.Dict[str, typing.Any]: + """ + The OpenAPI 3.1 document describing the hosted API's routes - the same + document the API serves to its consumers at `/openapi.json`. A `tool` + route's request body is the operation's own argument schema. When + `mcp_enabled` is on, the document carries an `x-speechify-mcp` object + (`url`, `transport: streamable-http`, `description`) naming where an + MCP client attaches; the face speaks JSON-RPC, so it is an extension + rather than a path. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + typing.Dict[str, typing.Any] + The OpenAPI document. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.hosted_apis.get_open_api( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.get_open_api(api_id, request_options=request_options) + return _response.data + + async def get_usage( + self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HostedApiUsage: + """ + Today's reads, runs and writes against the API's daily caps, with each + route's share of the reads and writes. A read is a request a store, + file or run_latest route answered from storage; a response served from + the cache is not one. A write is a document a `store_write` route + landed; a replayed Idempotency-Key is not one. `counters_available` is false where nothing counts (no Redis), so + a zero is never mistaken for a quiet day. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApiUsage + OK + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.hosted_apis.get_usage( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.get_usage(api_id, request_options=request_options) + return _response.data + + async def get_analytics( + self, + api_id: str, + *, + start: typing.Optional[dt.datetime] = None, + end: typing.Optional[dt.datetime] = None, + granularity: typing.Optional[GetAnalyticsHostedApisRequestGranularity] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> RequestAnalyticsResponse: + """ + Requests the API served over time: volume split by status, success + rate, and p50/p95/p99 latency per time bucket, plus one `top_paths` + row per route, busiest first, naming the route by `route_id`. Every + request its host answered counts, including refusals such as a + missing key (401) or an exhausted rate limit (429); `top_paths` counts + only the requests that matched a route, including a route an MCP + client called by tool name. + The window defaults to the last 7 days and is capped at 30. + + History starts at `history_starts_at`, the first request in the last + 30 days attributed to this API: requests before it cannot be + attributed, so a bucket before it is missing data, not a quiet period. + When `history_starts_at` is absent, no request to this API has been + attributed in the last 30 days, and no bucket is known to be complete. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + start : typing.Optional[dt.datetime] + Inclusive start of the window (RFC-3339). Defaults to 7 days ago; the window is capped at 30 days. + + end : typing.Optional[dt.datetime] + Exclusive end of the window (RFC-3339). Defaults to now. + + granularity : typing.Optional[GetAnalyticsHostedApisRequestGranularity] + Time-bucket size for the analytics series. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + RequestAnalyticsResponse + OK + + Examples + -------- + import asyncio + import datetime + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.hosted_apis.get_analytics( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + start=datetime.datetime.fromisoformat( + "2026-06-23 00:00:00+00:00", + ), + end=datetime.datetime.fromisoformat( + "2026-06-30 00:00:00+00:00", + ), + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.get_analytics( + api_id, start=start, end=end, granularity=granularity, request_options=request_options + ) + return _response.data + + async def rotate_user_token_secret( + self, + api_id: str, + *, + idempotency_key: typing.Optional[str] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> HostedApiUserTokenSecret: + """ + Mint the signing secret end-user tokens are verified against, replacing + any previous one at once: every token signed with the old secret stops + verifying. The plaintext is in this response and nowhere else; later + reads show `user_token_secret_hint`. Your backend signs a JWT with it + (HS256) carrying `sub` (the user, at most 256 characters) and `exp` + (within 24 hours), and the consumer presents it as + `Authorization: Bearer `. Register `user_token_jwks_url` + instead to verify with your own keys. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + 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. + + Returns + ------- + HostedApiUserTokenSecret + OK + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.hosted_apis.rotate_user_token_secret( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.rotate_user_token_secret( + api_id, idempotency_key=idempotency_key, request_options=request_options + ) + return _response.data + + @property + def routes(self): + if self._routes is None: + from .routes.client import AsyncRoutesClient # noqa: E402 + + self._routes = AsyncRoutesClient(client_wrapper=self._client_wrapper) + return self._routes + + @property + def keys(self): + if self._keys is None: + from .keys.client import AsyncKeysClient # noqa: E402 + + self._keys = AsyncKeysClient(client_wrapper=self._client_wrapper) + return self._keys diff --git a/src/speechify/hosted_apis/keys/__init__.py b/src/speechify/hosted_apis/keys/__init__.py new file mode 100644 index 0000000..5cde020 --- /dev/null +++ b/src/speechify/hosted_apis/keys/__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/hosted_apis/keys/client.py b/src/speechify/hosted_apis/keys/client.py new file mode 100644 index 0000000..0a3baf8 --- /dev/null +++ b/src/speechify/hosted_apis/keys/client.py @@ -0,0 +1,376 @@ +# 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.hosted_api_key import HostedApiKey +from ...types.list_hosted_api_keys_response import ListHostedApiKeysResponse +from .raw_client import AsyncRawKeysClient, RawKeysClient + +# this is used as the default value for optional parameters +OMIT = typing.cast(typing.Any, ...) + + +class KeysClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._raw_client = RawKeysClient(client_wrapper=client_wrapper) + + @property + def with_raw_response(self) -> RawKeysClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + RawKeysClient + """ + return self._raw_client + + def list_keys( + self, + api_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> SyncPager[HostedApiKey, ListHostedApiKeysResponse]: + """ + List a hosted API's consumer keys, newest first, revoked ones included. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + 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[HostedApiKey, ListHostedApiKeysResponse] + OK + + Examples + -------- + from speechify import Speechify + + client = Speechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + response = client.hosted_apis.keys.list_keys( + api_id="api_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_keys(api_id, cursor=cursor, limit=limit, request_options=request_options) + + def create_key( + self, + api_id: str, + *, + name: str, + idempotency_key: typing.Optional[str] = None, + rate_per_minute: typing.Optional[int] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HostedApiKey: + """ + Mint a consumer key (`ck_...`) for the API's own callers. The plaintext + `secret` is present in this response only; every later read shows the + masked `key_hint`. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + name : str + + 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. + + rate_per_minute : typing.Optional[int] + Requests per minute; 60 when omitted, 0 for unlimited. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApiKey + The created key, with its one-time secret. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + client.hosted_apis.keys.create_key( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", + name="name", + ) + """ + _response = self._raw_client.create_key( + api_id, + name=name, + idempotency_key=idempotency_key, + rate_per_minute=rate_per_minute, + request_options=request_options, + ) + return _response.data + + def revoke_key( + self, api_id: str, consumer_key_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HostedApiKey: + """ + Revoke a consumer key; idempotent. Requests carrying it are refused from now on. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + consumer_key_id : str + Consumer key id (prefixed external id, `ckey_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApiKey + OK + + Examples + -------- + from speechify import Speechify + + client = Speechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + client.hosted_apis.keys.revoke_key( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + consumer_key_id="ckey_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + """ + _response = self._raw_client.revoke_key(api_id, consumer_key_id, request_options=request_options) + return _response.data + + +class AsyncKeysClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._raw_client = AsyncRawKeysClient(client_wrapper=client_wrapper) + + @property + def with_raw_response(self) -> AsyncRawKeysClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + AsyncRawKeysClient + """ + return self._raw_client + + async def list_keys( + self, + api_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncPager[HostedApiKey, ListHostedApiKeysResponse]: + """ + List a hosted API's consumer keys, newest first, revoked ones included. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + 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[HostedApiKey, ListHostedApiKeysResponse] + OK + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + response = await client.hosted_apis.keys.list_keys( + api_id="api_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_keys(api_id, cursor=cursor, limit=limit, request_options=request_options) + + async def create_key( + self, + api_id: str, + *, + name: str, + idempotency_key: typing.Optional[str] = None, + rate_per_minute: typing.Optional[int] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HostedApiKey: + """ + Mint a consumer key (`ck_...`) for the API's own callers. The plaintext + `secret` is present in this response only; every later read shows the + masked `key_hint`. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + name : str + + 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. + + rate_per_minute : typing.Optional[int] + Requests per minute; 60 when omitted, 0 for unlimited. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApiKey + The created key, with its one-time secret. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.hosted_apis.keys.create_key( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", + name="name", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.create_key( + api_id, + name=name, + idempotency_key=idempotency_key, + rate_per_minute=rate_per_minute, + request_options=request_options, + ) + return _response.data + + async def revoke_key( + self, api_id: str, consumer_key_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HostedApiKey: + """ + Revoke a consumer key; idempotent. Requests carrying it are refused from now on. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + consumer_key_id : str + Consumer key id (prefixed external id, `ckey_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApiKey + OK + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.hosted_apis.keys.revoke_key( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + consumer_key_id="ckey_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.revoke_key(api_id, consumer_key_id, request_options=request_options) + return _response.data diff --git a/src/speechify/hosted_apis/keys/raw_client.py b/src/speechify/hosted_apis/keys/raw_client.py new file mode 100644 index 0000000..08f4be1 --- /dev/null +++ b/src/speechify/hosted_apis/keys/raw_client.py @@ -0,0 +1,836 @@ +# 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.internal_server_error import InternalServerError +from ...errors.not_found_error import NotFoundError +from ...errors.payment_required_error import PaymentRequiredError +from ...errors.too_many_requests_error import TooManyRequestsError +from ...errors.unauthorized_error import UnauthorizedError +from ...types.error import Error +from ...types.hosted_api_key import HostedApiKey +from ...types.list_hosted_api_keys_response import ListHostedApiKeysResponse +from pydantic import ValidationError + +# this is used as the default value for optional parameters +OMIT = typing.cast(typing.Any, ...) + + +class RawKeysClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._client_wrapper = client_wrapper + + def list_keys( + self, + api_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> SyncPager[HostedApiKey, ListHostedApiKeysResponse]: + """ + List a hosted API's consumer keys, newest first, revoked ones included. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + 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[HostedApiKey, ListHostedApiKeysResponse] + OK + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/keys", + method="GET", + params={ + "cursor": cursor, + "limit": limit, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _parsed_response = typing.cast( + ListHostedApiKeysResponse, + parse_obj_as( + type_=ListHostedApiKeysResponse, # type: ignore + object_=_response.json(), + ), + ) + _items = _parsed_response.keys + _parsed_next = _parsed_response.next_cursor + _has_next = _parsed_next is not None and _parsed_next != "" + _get_next = lambda: self.list_keys( + api_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 == 402: + raise PaymentRequiredError( + 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 create_key( + self, + api_id: str, + *, + name: str, + idempotency_key: typing.Optional[str] = None, + rate_per_minute: typing.Optional[int] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[HostedApiKey]: + """ + Mint a consumer key (`ck_...`) for the API's own callers. The plaintext + `secret` is present in this response only; every later read shows the + masked `key_hint`. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + name : str + + 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. + + rate_per_minute : typing.Optional[int] + Requests per minute; 60 when omitted, 0 for unlimited. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[HostedApiKey] + The created key, with its one-time secret. + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/keys", + method="POST", + json={ + "name": name, + "rate_per_minute": rate_per_minute, + }, + headers={ + "content-type": "application/json", + "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApiKey, + parse_obj_as( + type_=HostedApiKey, # 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 == 402: + raise PaymentRequiredError( + 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 revoke_key( + self, api_id: str, consumer_key_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[HostedApiKey]: + """ + Revoke a consumer key; idempotent. Requests carrying it are refused from now on. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + consumer_key_id : str + Consumer key id (prefixed external id, `ckey_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[HostedApiKey] + OK + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/keys/{encode_path_param(consumer_key_id)}/revoke", + method="POST", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApiKey, + parse_obj_as( + type_=HostedApiKey, # 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 == 402: + raise PaymentRequiredError( + 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 AsyncRawKeysClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._client_wrapper = client_wrapper + + async def list_keys( + self, + api_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncPager[HostedApiKey, ListHostedApiKeysResponse]: + """ + List a hosted API's consumer keys, newest first, revoked ones included. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + 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[HostedApiKey, ListHostedApiKeysResponse] + OK + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/keys", + method="GET", + params={ + "cursor": cursor, + "limit": limit, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _parsed_response = typing.cast( + ListHostedApiKeysResponse, + parse_obj_as( + type_=ListHostedApiKeysResponse, # type: ignore + object_=_response.json(), + ), + ) + _items = _parsed_response.keys + _parsed_next = _parsed_response.next_cursor + _has_next = _parsed_next is not None and _parsed_next != "" + + async def _get_next(): + return await self.list_keys( + api_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 == 402: + raise PaymentRequiredError( + 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 create_key( + self, + api_id: str, + *, + name: str, + idempotency_key: typing.Optional[str] = None, + rate_per_minute: typing.Optional[int] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[HostedApiKey]: + """ + Mint a consumer key (`ck_...`) for the API's own callers. The plaintext + `secret` is present in this response only; every later read shows the + masked `key_hint`. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + name : str + + 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. + + rate_per_minute : typing.Optional[int] + Requests per minute; 60 when omitted, 0 for unlimited. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[HostedApiKey] + The created key, with its one-time secret. + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/keys", + method="POST", + json={ + "name": name, + "rate_per_minute": rate_per_minute, + }, + headers={ + "content-type": "application/json", + "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApiKey, + parse_obj_as( + type_=HostedApiKey, # 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 == 402: + raise PaymentRequiredError( + 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 revoke_key( + self, api_id: str, consumer_key_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[HostedApiKey]: + """ + Revoke a consumer key; idempotent. Requests carrying it are refused from now on. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + consumer_key_id : str + Consumer key id (prefixed external id, `ckey_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[HostedApiKey] + OK + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/keys/{encode_path_param(consumer_key_id)}/revoke", + method="POST", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApiKey, + parse_obj_as( + type_=HostedApiKey, # 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 == 402: + raise PaymentRequiredError( + 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/hosted_apis/raw_client.py b/src/speechify/hosted_apis/raw_client.py new file mode 100644 index 0000000..d378537 --- /dev/null +++ b/src/speechify/hosted_apis/raw_client.py @@ -0,0 +1,2590 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing +from json.decoder import JSONDecodeError + +from ..core.api_error import ApiError +from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from ..core.datetime_utils import serialize_datetime +from ..core.http_response import AsyncHttpResponse, HttpResponse +from ..core.jsonable_encoder import 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_gateway_error import BadGatewayError +from ..errors.bad_request_error import BadRequestError +from ..errors.conflict_error import ConflictError +from ..errors.internal_server_error import InternalServerError +from ..errors.not_found_error import NotFoundError +from ..errors.payment_required_error import PaymentRequiredError +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.hosted_api import HostedApi +from ..types.hosted_api_usage import HostedApiUsage +from ..types.hosted_api_user_token_secret import HostedApiUserTokenSecret +from ..types.list_hosted_ap_is_response import ListHostedApIsResponse +from ..types.request_analytics_response import RequestAnalyticsResponse +from .types.create_hosted_api_request_auth_mode import CreateHostedApiRequestAuthMode +from .types.get_analytics_hosted_apis_request_granularity import GetAnalyticsHostedApisRequestGranularity +from .types.update_hosted_api_request_auth_mode import UpdateHostedApiRequestAuthMode +from pydantic import ValidationError + +# this is used as the default value for optional parameters +OMIT = typing.cast(typing.Any, ...) + + +class RawHostedApisClient: + 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[HostedApi, ListHostedApIsResponse]: + """ + List the hosted APIs in the caller's workspace, most recently updated + first. A hosted API is the API you assemble: a slug that becomes + `https://.`, the routes it answers, and the + consumer keys your own callers present. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + 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 by workspace project: omit for every project you can reach, + pass the literal `default` for resources in the implicit Default + project only, or a `proj_...` id for that project's resources. + Returns 404 project_not_found for a malformed id and for any filter + 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, so neither can name `default`. + 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. Inside it, a well-formed id that + matches no project yields an empty page. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + SyncPager[HostedApi, ListHostedApIsResponse] + OK + """ + _response = self._client_wrapper.httpx_client.request( + "v1/apis", + 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( + ListHostedApIsResponse, + parse_obj_as( + type_=ListHostedApIsResponse, # type: ignore + object_=_response.json(), + ), + ) + _items = _parsed_response.apis + _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 == 402: + raise PaymentRequiredError( + 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 create( + self, + *, + slug: str, + name: str, + idempotency_key: typing.Optional[str] = None, + description: typing.Optional[str] = OMIT, + auth_mode: typing.Optional[CreateHostedApiRequestAuthMode] = OMIT, + cors_origins: typing.Optional[typing.Sequence[str]] = OMIT, + daily_run_cap: typing.Optional[int] = OMIT, + daily_read_cap: typing.Optional[int] = OMIT, + daily_write_cap: typing.Optional[int] = OMIT, + mcp_enabled: typing.Optional[bool] = OMIT, + project_id: typing.Optional[str] = OMIT, + user_token_jwks_url: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[HostedApi]: + """ + Create a hosted API. The slug is a DNS label, globally unique on the + shared domain (409 `hosted_api_slug_taken`) and immutable afterwards. + `auth_mode` names the audience, narrowest first: `owner`, `workspace` + (the platform's own credentials), `user_token` (a JWT your backend + signs per user), `consumer_key` (a `ck_` key you mint) or `public` + (anyone, reads only). A workspace can refuse `public` as policy (403 + `hosted_api_public_refused`). Reads, runs and writes are each bounded + per UTC day (`daily_read_cap`, `daily_run_cap`, `daily_write_cap`), + and an API holds only a share of a server's requests open at once, so + a slow upstream behind one API cannot take the capacity others need: + past it, a request answers 429 `hosted_api_busy` with `Retry-After`. + + `mcp_enabled: true` also serves the API's routes as an MCP server at + `POST /mcp`, so an MCP client (Claude Code, Cursor) attaches + to one address and gets them as tools, under the same audience, keys + and caps. It is refused with `auth_mode: public`. On that face the + API's `name` is the server's title and its `description` is the + instructions the client's model reads, so describe what the tools are + for. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + slug : str + 3-40 lowercase letters, digits or hyphens; a DNS label, unique on the shared domain; immutable. + + name : str + + 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. + + description : typing.Optional[str] + What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. + + auth_mode : typing.Optional[CreateHostedApiRequestAuthMode] + consumer_key when omitted. `public` is refused with 403 `hosted_api_public_refused` where the workspace's policy does not allow internet-facing APIs. + + cors_origins : typing.Optional[typing.Sequence[str]] + + daily_run_cap : typing.Optional[int] + Runs the API may start per UTC day through its run routes; 1000 when omitted. + + daily_read_cap : typing.Optional[int] + Reads the API's store, file, run_latest and tool routes may serve per UTC day; 100000 when omitted. + + daily_write_cap : typing.Optional[int] + Documents the API's write routes may land per UTC day; 10000 when omitted. + + mcp_enabled : typing.Optional[bool] + Serve the routes as an MCP server at `POST /mcp` too; + false when omitted. Refused with `auth_mode: public` (400 + `validation_failed` naming `mcp_enabled`). + + project_id : typing.Optional[str] + + user_token_jwks_url : typing.Optional[str] + Register the key set end-user tokens are verified against (an `https` URL on a public host). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[HostedApi] + The created API. + """ + _response = self._client_wrapper.httpx_client.request( + "v1/apis", + method="POST", + json={ + "slug": slug, + "name": name, + "description": description, + "auth_mode": auth_mode, + "cors_origins": cors_origins, + "daily_run_cap": daily_run_cap, + "daily_read_cap": daily_read_cap, + "daily_write_cap": daily_write_cap, + "mcp_enabled": mcp_enabled, + "project_id": project_id, + "user_token_jwks_url": user_token_jwks_url, + }, + headers={ + "content-type": "application/json", + "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApi, + parse_obj_as( + type_=HostedApi, # 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 == 402: + raise PaymentRequiredError( + 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 get(self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[HostedApi]: + """ + Retrieve one hosted API. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[HostedApi] + OK + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}", + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApi, + parse_obj_as( + type_=HostedApi, # 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 == 402: + raise PaymentRequiredError( + 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 delete(self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: + """ + Delete a hosted API; its host stops answering at once. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[None] + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}", + method="DELETE", + request_options=request_options, + ) + 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 == 402: + raise PaymentRequiredError( + 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, + api_id: str, + *, + name: typing.Optional[str] = OMIT, + description: typing.Optional[str] = OMIT, + auth_mode: typing.Optional[UpdateHostedApiRequestAuthMode] = OMIT, + cors_origins: typing.Optional[typing.Sequence[str]] = OMIT, + enabled: typing.Optional[bool] = OMIT, + daily_run_cap: typing.Optional[int] = OMIT, + daily_read_cap: typing.Optional[int] = OMIT, + daily_write_cap: typing.Optional[int] = OMIT, + mcp_enabled: typing.Optional[bool] = OMIT, + user_token_jwks_url: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[HostedApi]: + """ + Update a hosted API (merge-patch). Switching to `public` is refused + while a `run` or `store_write` route exists: an anonymous caller must + not start runs that spend the workspace's budget or write to a store, + and it is refused outright where the workspace's policy does not allow + internet-facing APIs (403 `hosted_api_public_refused`). Switching to a + mode that names no caller (`consumer_key`, `public`) is refused while + a route binds `{{user.*}}`: only `user_token`, `workspace` and `owner` + supply a person. Switching to `public` is also refused while a `tool` + route exists (a vendor call spends the workspace's vendor budget) and + while `mcp_enabled` is on, and switching the MCP face on is refused on + a `public` API (400 `validation_failed` naming `mcp_enabled`). + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + name : typing.Optional[str] + + description : typing.Optional[str] + What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. + + auth_mode : typing.Optional[UpdateHostedApiRequestAuthMode] + + cors_origins : typing.Optional[typing.Sequence[str]] + + enabled : typing.Optional[bool] + A paused API answers 503 to every consumer request. + + daily_run_cap : typing.Optional[int] + + daily_read_cap : typing.Optional[int] + + daily_write_cap : typing.Optional[int] + + mcp_enabled : typing.Optional[bool] + Switch the MCP face at `POST /mcp` on or off. Refused with + 400 `validation_failed` naming `mcp_enabled` when the API is, or is + being made, `public`. Allow up to 15 seconds for the switch, like + any route change, to reach every server. + + user_token_jwks_url : typing.Optional[str] + Replace the registered key set; an empty string removes it, after which the signing secret verifies tokens again. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[HostedApi] + OK + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}", + method="PATCH", + json={ + "name": name, + "description": description, + "auth_mode": auth_mode, + "cors_origins": cors_origins, + "enabled": enabled, + "daily_run_cap": daily_run_cap, + "daily_read_cap": daily_read_cap, + "daily_write_cap": daily_write_cap, + "mcp_enabled": mcp_enabled, + "user_token_jwks_url": user_token_jwks_url, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApi, + parse_obj_as( + type_=HostedApi, # 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 == 402: + raise PaymentRequiredError( + 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 get_open_api( + self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[typing.Dict[str, typing.Any]]: + """ + The OpenAPI 3.1 document describing the hosted API's routes - the same + document the API serves to its consumers at `/openapi.json`. A `tool` + route's request body is the operation's own argument schema. When + `mcp_enabled` is on, the document carries an `x-speechify-mcp` object + (`url`, `transport: streamable-http`, `description`) naming where an + MCP client attaches; the face speaks JSON-RPC, so it is an extension + rather than a path. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[typing.Dict[str, typing.Any]] + The OpenAPI document. + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/openapi", + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + typing.Dict[str, typing.Any], + parse_obj_as( + type_=typing.Dict[str, typing.Any], # 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 == 402: + raise PaymentRequiredError( + 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 get_usage( + self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[HostedApiUsage]: + """ + Today's reads, runs and writes against the API's daily caps, with each + route's share of the reads and writes. A read is a request a store, + file or run_latest route answered from storage; a response served from + the cache is not one. A write is a document a `store_write` route + landed; a replayed Idempotency-Key is not one. `counters_available` is false where nothing counts (no Redis), so + a zero is never mistaken for a quiet day. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[HostedApiUsage] + OK + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/usage", + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApiUsage, + parse_obj_as( + type_=HostedApiUsage, # 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 == 402: + raise PaymentRequiredError( + 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 get_analytics( + self, + api_id: str, + *, + start: typing.Optional[dt.datetime] = None, + end: typing.Optional[dt.datetime] = None, + granularity: typing.Optional[GetAnalyticsHostedApisRequestGranularity] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[RequestAnalyticsResponse]: + """ + Requests the API served over time: volume split by status, success + rate, and p50/p95/p99 latency per time bucket, plus one `top_paths` + row per route, busiest first, naming the route by `route_id`. Every + request its host answered counts, including refusals such as a + missing key (401) or an exhausted rate limit (429); `top_paths` counts + only the requests that matched a route, including a route an MCP + client called by tool name. + The window defaults to the last 7 days and is capped at 30. + + History starts at `history_starts_at`, the first request in the last + 30 days attributed to this API: requests before it cannot be + attributed, so a bucket before it is missing data, not a quiet period. + When `history_starts_at` is absent, no request to this API has been + attributed in the last 30 days, and no bucket is known to be complete. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + start : typing.Optional[dt.datetime] + Inclusive start of the window (RFC-3339). Defaults to 7 days ago; the window is capped at 30 days. + + end : typing.Optional[dt.datetime] + Exclusive end of the window (RFC-3339). Defaults to now. + + granularity : typing.Optional[GetAnalyticsHostedApisRequestGranularity] + Time-bucket size for the analytics series. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[RequestAnalyticsResponse] + OK + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/analytics", + method="GET", + params={ + "start": serialize_datetime(start) if start is not None else None, + "end": serialize_datetime(end) if end is not None else None, + "granularity": granularity, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + RequestAnalyticsResponse, + parse_obj_as( + type_=RequestAnalyticsResponse, # 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 == 402: + raise PaymentRequiredError( + 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 == 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) + + def rotate_user_token_secret( + self, + api_id: str, + *, + idempotency_key: typing.Optional[str] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[HostedApiUserTokenSecret]: + """ + Mint the signing secret end-user tokens are verified against, replacing + any previous one at once: every token signed with the old secret stops + verifying. The plaintext is in this response and nowhere else; later + reads show `user_token_secret_hint`. Your backend signs a JWT with it + (HS256) carrying `sub` (the user, at most 256 characters) and `exp` + (within 24 hours), and the consumer presents it as + `Authorization: Bearer `. Register `user_token_jwks_url` + instead to verify with your own keys. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + 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. + + Returns + ------- + HttpResponse[HostedApiUserTokenSecret] + OK + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/rotate-user-token-secret", + method="POST", + headers={ + "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApiUserTokenSecret, + parse_obj_as( + type_=HostedApiUserTokenSecret, # 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 == 402: + raise PaymentRequiredError( + 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 AsyncRawHostedApisClient: + 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[HostedApi, ListHostedApIsResponse]: + """ + List the hosted APIs in the caller's workspace, most recently updated + first. A hosted API is the API you assemble: a slug that becomes + `https://.`, the routes it answers, and the + consumer keys your own callers present. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + 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 by workspace project: omit for every project you can reach, + pass the literal `default` for resources in the implicit Default + project only, or a `proj_...` id for that project's resources. + Returns 404 project_not_found for a malformed id and for any filter + 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, so neither can name `default`. + 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. Inside it, a well-formed id that + matches no project yields an empty page. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncPager[HostedApi, ListHostedApIsResponse] + OK + """ + _response = await self._client_wrapper.httpx_client.request( + "v1/apis", + 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( + ListHostedApIsResponse, + parse_obj_as( + type_=ListHostedApIsResponse, # type: ignore + object_=_response.json(), + ), + ) + _items = _parsed_response.apis + _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 == 402: + raise PaymentRequiredError( + 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 create( + self, + *, + slug: str, + name: str, + idempotency_key: typing.Optional[str] = None, + description: typing.Optional[str] = OMIT, + auth_mode: typing.Optional[CreateHostedApiRequestAuthMode] = OMIT, + cors_origins: typing.Optional[typing.Sequence[str]] = OMIT, + daily_run_cap: typing.Optional[int] = OMIT, + daily_read_cap: typing.Optional[int] = OMIT, + daily_write_cap: typing.Optional[int] = OMIT, + mcp_enabled: typing.Optional[bool] = OMIT, + project_id: typing.Optional[str] = OMIT, + user_token_jwks_url: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[HostedApi]: + """ + Create a hosted API. The slug is a DNS label, globally unique on the + shared domain (409 `hosted_api_slug_taken`) and immutable afterwards. + `auth_mode` names the audience, narrowest first: `owner`, `workspace` + (the platform's own credentials), `user_token` (a JWT your backend + signs per user), `consumer_key` (a `ck_` key you mint) or `public` + (anyone, reads only). A workspace can refuse `public` as policy (403 + `hosted_api_public_refused`). Reads, runs and writes are each bounded + per UTC day (`daily_read_cap`, `daily_run_cap`, `daily_write_cap`), + and an API holds only a share of a server's requests open at once, so + a slow upstream behind one API cannot take the capacity others need: + past it, a request answers 429 `hosted_api_busy` with `Retry-After`. + + `mcp_enabled: true` also serves the API's routes as an MCP server at + `POST /mcp`, so an MCP client (Claude Code, Cursor) attaches + to one address and gets them as tools, under the same audience, keys + and caps. It is refused with `auth_mode: public`. On that face the + API's `name` is the server's title and its `description` is the + instructions the client's model reads, so describe what the tools are + for. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + slug : str + 3-40 lowercase letters, digits or hyphens; a DNS label, unique on the shared domain; immutable. + + name : str + + 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. + + description : typing.Optional[str] + What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. + + auth_mode : typing.Optional[CreateHostedApiRequestAuthMode] + consumer_key when omitted. `public` is refused with 403 `hosted_api_public_refused` where the workspace's policy does not allow internet-facing APIs. + + cors_origins : typing.Optional[typing.Sequence[str]] + + daily_run_cap : typing.Optional[int] + Runs the API may start per UTC day through its run routes; 1000 when omitted. + + daily_read_cap : typing.Optional[int] + Reads the API's store, file, run_latest and tool routes may serve per UTC day; 100000 when omitted. + + daily_write_cap : typing.Optional[int] + Documents the API's write routes may land per UTC day; 10000 when omitted. + + mcp_enabled : typing.Optional[bool] + Serve the routes as an MCP server at `POST /mcp` too; + false when omitted. Refused with `auth_mode: public` (400 + `validation_failed` naming `mcp_enabled`). + + project_id : typing.Optional[str] + + user_token_jwks_url : typing.Optional[str] + Register the key set end-user tokens are verified against (an `https` URL on a public host). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[HostedApi] + The created API. + """ + _response = await self._client_wrapper.httpx_client.request( + "v1/apis", + method="POST", + json={ + "slug": slug, + "name": name, + "description": description, + "auth_mode": auth_mode, + "cors_origins": cors_origins, + "daily_run_cap": daily_run_cap, + "daily_read_cap": daily_read_cap, + "daily_write_cap": daily_write_cap, + "mcp_enabled": mcp_enabled, + "project_id": project_id, + "user_token_jwks_url": user_token_jwks_url, + }, + headers={ + "content-type": "application/json", + "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApi, + parse_obj_as( + type_=HostedApi, # 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 == 402: + raise PaymentRequiredError( + 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 get( + self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[HostedApi]: + """ + Retrieve one hosted API. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[HostedApi] + OK + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}", + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApi, + parse_obj_as( + type_=HostedApi, # 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 == 402: + raise PaymentRequiredError( + 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 delete( + self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[None]: + """ + Delete a hosted API; its host stops answering at once. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[None] + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}", + method="DELETE", + request_options=request_options, + ) + 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 == 402: + raise PaymentRequiredError( + 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, + api_id: str, + *, + name: typing.Optional[str] = OMIT, + description: typing.Optional[str] = OMIT, + auth_mode: typing.Optional[UpdateHostedApiRequestAuthMode] = OMIT, + cors_origins: typing.Optional[typing.Sequence[str]] = OMIT, + enabled: typing.Optional[bool] = OMIT, + daily_run_cap: typing.Optional[int] = OMIT, + daily_read_cap: typing.Optional[int] = OMIT, + daily_write_cap: typing.Optional[int] = OMIT, + mcp_enabled: typing.Optional[bool] = OMIT, + user_token_jwks_url: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[HostedApi]: + """ + Update a hosted API (merge-patch). Switching to `public` is refused + while a `run` or `store_write` route exists: an anonymous caller must + not start runs that spend the workspace's budget or write to a store, + and it is refused outright where the workspace's policy does not allow + internet-facing APIs (403 `hosted_api_public_refused`). Switching to a + mode that names no caller (`consumer_key`, `public`) is refused while + a route binds `{{user.*}}`: only `user_token`, `workspace` and `owner` + supply a person. Switching to `public` is also refused while a `tool` + route exists (a vendor call spends the workspace's vendor budget) and + while `mcp_enabled` is on, and switching the MCP face on is refused on + a `public` API (400 `validation_failed` naming `mcp_enabled`). + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + name : typing.Optional[str] + + description : typing.Optional[str] + What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. + + auth_mode : typing.Optional[UpdateHostedApiRequestAuthMode] + + cors_origins : typing.Optional[typing.Sequence[str]] + + enabled : typing.Optional[bool] + A paused API answers 503 to every consumer request. + + daily_run_cap : typing.Optional[int] + + daily_read_cap : typing.Optional[int] + + daily_write_cap : typing.Optional[int] + + mcp_enabled : typing.Optional[bool] + Switch the MCP face at `POST /mcp` on or off. Refused with + 400 `validation_failed` naming `mcp_enabled` when the API is, or is + being made, `public`. Allow up to 15 seconds for the switch, like + any route change, to reach every server. + + user_token_jwks_url : typing.Optional[str] + Replace the registered key set; an empty string removes it, after which the signing secret verifies tokens again. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[HostedApi] + OK + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}", + method="PATCH", + json={ + "name": name, + "description": description, + "auth_mode": auth_mode, + "cors_origins": cors_origins, + "enabled": enabled, + "daily_run_cap": daily_run_cap, + "daily_read_cap": daily_read_cap, + "daily_write_cap": daily_write_cap, + "mcp_enabled": mcp_enabled, + "user_token_jwks_url": user_token_jwks_url, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApi, + parse_obj_as( + type_=HostedApi, # 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 == 402: + raise PaymentRequiredError( + 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 get_open_api( + self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[typing.Dict[str, typing.Any]]: + """ + The OpenAPI 3.1 document describing the hosted API's routes - the same + document the API serves to its consumers at `/openapi.json`. A `tool` + route's request body is the operation's own argument schema. When + `mcp_enabled` is on, the document carries an `x-speechify-mcp` object + (`url`, `transport: streamable-http`, `description`) naming where an + MCP client attaches; the face speaks JSON-RPC, so it is an extension + rather than a path. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[typing.Dict[str, typing.Any]] + The OpenAPI document. + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/openapi", + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + typing.Dict[str, typing.Any], + parse_obj_as( + type_=typing.Dict[str, typing.Any], # 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 == 402: + raise PaymentRequiredError( + 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 get_usage( + self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[HostedApiUsage]: + """ + Today's reads, runs and writes against the API's daily caps, with each + route's share of the reads and writes. A read is a request a store, + file or run_latest route answered from storage; a response served from + the cache is not one. A write is a document a `store_write` route + landed; a replayed Idempotency-Key is not one. `counters_available` is false where nothing counts (no Redis), so + a zero is never mistaken for a quiet day. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[HostedApiUsage] + OK + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/usage", + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApiUsage, + parse_obj_as( + type_=HostedApiUsage, # 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 == 402: + raise PaymentRequiredError( + 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 get_analytics( + self, + api_id: str, + *, + start: typing.Optional[dt.datetime] = None, + end: typing.Optional[dt.datetime] = None, + granularity: typing.Optional[GetAnalyticsHostedApisRequestGranularity] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[RequestAnalyticsResponse]: + """ + Requests the API served over time: volume split by status, success + rate, and p50/p95/p99 latency per time bucket, plus one `top_paths` + row per route, busiest first, naming the route by `route_id`. Every + request its host answered counts, including refusals such as a + missing key (401) or an exhausted rate limit (429); `top_paths` counts + only the requests that matched a route, including a route an MCP + client called by tool name. + The window defaults to the last 7 days and is capped at 30. + + History starts at `history_starts_at`, the first request in the last + 30 days attributed to this API: requests before it cannot be + attributed, so a bucket before it is missing data, not a quiet period. + When `history_starts_at` is absent, no request to this API has been + attributed in the last 30 days, and no bucket is known to be complete. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + start : typing.Optional[dt.datetime] + Inclusive start of the window (RFC-3339). Defaults to 7 days ago; the window is capped at 30 days. + + end : typing.Optional[dt.datetime] + Exclusive end of the window (RFC-3339). Defaults to now. + + granularity : typing.Optional[GetAnalyticsHostedApisRequestGranularity] + Time-bucket size for the analytics series. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[RequestAnalyticsResponse] + OK + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/analytics", + method="GET", + params={ + "start": serialize_datetime(start) if start is not None else None, + "end": serialize_datetime(end) if end is not None else None, + "granularity": granularity, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + RequestAnalyticsResponse, + parse_obj_as( + type_=RequestAnalyticsResponse, # 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 == 402: + raise PaymentRequiredError( + 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 == 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) + + async def rotate_user_token_secret( + self, + api_id: str, + *, + idempotency_key: typing.Optional[str] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[HostedApiUserTokenSecret]: + """ + Mint the signing secret end-user tokens are verified against, replacing + any previous one at once: every token signed with the old secret stops + verifying. The plaintext is in this response and nowhere else; later + reads show `user_token_secret_hint`. Your backend signs a JWT with it + (HS256) carrying `sub` (the user, at most 256 characters) and `exp` + (within 24 hours), and the consumer presents it as + `Authorization: Bearer `. Register `user_token_jwks_url` + instead to verify with your own keys. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + 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. + + Returns + ------- + AsyncHttpResponse[HostedApiUserTokenSecret] + OK + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/rotate-user-token-secret", + method="POST", + headers={ + "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApiUserTokenSecret, + parse_obj_as( + type_=HostedApiUserTokenSecret, # 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 == 402: + raise PaymentRequiredError( + 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/hosted_apis/routes/__init__.py b/src/speechify/hosted_apis/routes/__init__.py new file mode 100644 index 0000000..57eb16c --- /dev/null +++ b/src/speechify/hosted_apis/routes/__init__.py @@ -0,0 +1,37 @@ +# This file was auto-generated by Fern from our API Definition. + +# isort: skip_file + +import typing +from importlib import import_module + +if typing.TYPE_CHECKING: + from .types import CreateHostedApiRouteRequestMethod, UpdateHostedApiRouteRequestMethod +_dynamic_imports: typing.Dict[str, str] = { + "CreateHostedApiRouteRequestMethod": ".types", + "UpdateHostedApiRouteRequestMethod": ".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__ = ["CreateHostedApiRouteRequestMethod", "UpdateHostedApiRouteRequestMethod"] diff --git a/src/speechify/hosted_apis/routes/client.py b/src/speechify/hosted_apis/routes/client.py new file mode 100644 index 0000000..b8d55f8 --- /dev/null +++ b/src/speechify/hosted_apis/routes/client.py @@ -0,0 +1,1130 @@ +# 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.hosted_api_mount import HostedApiMount +from ...types.hosted_api_resolver import HostedApiResolver +from ...types.hosted_api_route import HostedApiRoute +from ...types.list_hosted_api_routes_response import ListHostedApiRoutesResponse +from .raw_client import AsyncRawRoutesClient, RawRoutesClient +from .types.create_hosted_api_route_request_method import CreateHostedApiRouteRequestMethod +from .types.update_hosted_api_route_request_method import UpdateHostedApiRouteRequestMethod + +# this is used as the default value for optional parameters +OMIT = typing.cast(typing.Any, ...) + + +class RoutesClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._raw_client = RawRoutesClient(client_wrapper=client_wrapper) + + @property + def with_raw_response(self) -> RawRoutesClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + RawRoutesClient + """ + return self._raw_client + + def list_routes( + self, + api_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> SyncPager[HostedApiRoute, ListHostedApiRoutesResponse]: + """ + List a hosted API's routes in creation order. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + 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[HostedApiRoute, ListHostedApiRoutesResponse] + OK + + Examples + -------- + from speechify import Speechify + + client = Speechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + response = client.hosted_apis.routes.list_routes( + api_id="api_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_routes(api_id, cursor=cursor, limit=limit, request_options=request_options) + + def create_route( + self, + api_id: str, + *, + method: CreateHostedApiRouteRequestMethod, + path: str, + resolver: HostedApiResolver, + idempotency_key: typing.Optional[str] = None, + name: typing.Optional[str] = OMIT, + description: typing.Optional[str] = OMIT, + response_schema: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, + cache_ttl_seconds: typing.Optional[int] = OMIT, + enabled: typing.Optional[bool] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HostedApiRoute: + """ + Add a route: a method + path answered by a resolver. `store_query`, + `store_document` and `store_aggregate` serve a store; `store_write` + lands the POST body as a document (`write_mode` create / replace / + merge; POST only, never on a public API, counted against + `daily_write_cap`, deduplicated on `Idempotency-Key`); `run_latest` + serves the newest structured output of a schedule trigger's runs; + `run` starts a run through a webhook trigger per request (POST only, + never on a public API) and waits up to `wait_seconds` before answering + 202 with a handle to poll at `/_runs/{run_id}`; `file` serves one + published file, or a whole published tree when the path ends in `*` + (`/app/*` with `file_root` and `file_index`); `tool` calls one read + operation of an `openapi` tool definition, or one tool of an `mcp` + tool definition's server, in the API's project whose `approval` is + null or `auto` (POST only, never on a public API, counted against + `daily_read_cap`): the consumer's JSON body is the arguments and the + connector's answer, after the tool's response mapping, is the + response. An `mcp` route pins the tool's input schema as + `resolver.input_schema` when it is written. + Where-clause values and + the document id may be `{{query.x}}`, `{{path.x}}` or `{{body.x}}` + templates bound from the consumer's request, or `{{user.x}}` claims of + the verified caller on a `user_token`, `workspace` or `owner` API; a + clause whose template is absent is skipped. On those three modes a + written document is stamped `user_identity` as the caller and only + they can replace or merge it. Two bindings are refused at write time: + `{{user.*}}` on an API that names no caller, and a clause on + `user_identity` bound from a request template, which would let any + caller read any user's rows. + + On an API with `mcp_enabled`, every enabled route except a `file` + route is also an MCP tool. The tool's name comes from the route's + `name`: every run of characters outside letters, digits, `_` and `-` + becomes `_`, leading and trailing `_` are dropped, and the result is + cut to 64 characters. A route with no name is listed under a name + built from its method and path (`post_issues_open`), and a name two + routes would share takes `_2`, `_3` in route order, so read the names + from the face's `tools/list` rather than deriving them. The route's + `description` is what the client's model reads to choose the tool, + falling back to the operation's summary on a `tool` route. Name and + describe a route for that reader. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + method : CreateHostedApiRouteRequestMethod + + path : str + Lowercase segments of letters, digits, `. _ -` or a `{param}`; `/openapi.json`, `/_runs` and `/mcp` are reserved. + + resolver : HostedApiResolver + + 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. + + name : typing.Optional[str] + The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. + On an API with `mcp_enabled` the MCP tool's name comes from it: + each run of other characters (a space included) becomes `_`, + leading and trailing `_` are dropped, and the result is cut to 64 + characters. A route with no name is listed under a name built from + its method and path, and a name two routes would share takes `_2`, + `_3` in route order; the face's `tools/list` is the authority. Pick + a verb-first name a model can choose by. + + description : typing.Optional[str] + What the route does. On an API with `mcp_enabled` it is the MCP + tool description a client's model reads to choose the tool, so say + what it returns and when to call it; a `tool` route with none falls + back to the operation's summary. + + response_schema : typing.Optional[typing.Dict[str, typing.Any]] + + cache_ttl_seconds : typing.Optional[int] + + enabled : typing.Optional[bool] + Enabled when omitted. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApiRoute + The created route. + + Examples + -------- + from speechify import HostedApiResolver, HostedApiResolverOrderBy, Speechify + + client = Speechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + client.hosted_apis.routes.create_route( + api_id="api_01kc4q3r9s6t8v0w2x4y6z8a0b", + method="GET", + path="/leads", + name="list_leads", + description="List leads, highest value first.", + resolver=HostedApiResolver( + type="store_query", + store_id="store_01kc4q5t1v3w5x7y9z1a3b5c7d", + collection="leads", + order_by=HostedApiResolverOrderBy( + field="value", + direction="desc", + ), + ), + cache_ttl_seconds=30, + ) + """ + _response = self._raw_client.create_route( + api_id, + method=method, + path=path, + resolver=resolver, + idempotency_key=idempotency_key, + name=name, + description=description, + response_schema=response_schema, + cache_ttl_seconds=cache_ttl_seconds, + enabled=enabled, + request_options=request_options, + ) + return _response.data + + def mount_routes( + self, + api_id: str, + *, + tool_id: str, + idempotency_key: typing.Optional[str] = None, + operations: typing.Optional[typing.Sequence[str]] = OMIT, + name_prefix: typing.Optional[str] = OMIT, + path_prefix: typing.Optional[str] = OMIT, + dry_run: typing.Optional[bool] = OMIT, + include_writes: typing.Optional[bool] = OMIT, + plan_digest: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HostedApiMount: + """ + Publish a connector's operations onto the API in one call: one `tool` + route per operation of an `openapi` tool definition, or per tool its + `mcp` server lists, named `__` at + `/`, so two connectors' tools stay apart on + the MCP face and inside its 64-character tool names. + + Send `dry_run: true` first. The answer lists every operation with + its effective `action_class` and `approval`, whether a route can serve + it, and the `action` a mount takes: `create`, `update` (an MCP tool + whose input schema changed since its route was written; `changes` + names what), `unchanged`, `skip` (with the `reason`: not selected, not + a read, not auto-approved, a name or path already taken, or the route + cap) or `stale` (a route whose operation the connector no longer + offers, or can no longer serve; it is reported and never deleted, + since a consumer may still call it). The same call without `dry_run` + writes every create and update in one transaction and returns the + written `route` on each. + + Every answer carries a `plan_digest`. Send the preview's digest with + the apply: the apply plans again inside its transaction and writes + only when that plan still has the digest, so a tool the server changed + or a route edited after you reviewed is never written unseen. When it + differs the apply writes nothing and answers 409 `mount_plan_changed` + with the current plan, as a dry run answers it, in + `error.details.plan`; review that and apply again with its digest, + under a new `Idempotency-Key` if you sent one, since a key replays its + first answer, this 409 included. The digest covers every operation the + connector offers and every route the API holds for it whatever + `operations` selects, so a preview of everything and an apply of a + selection share one. An apply without it writes whatever the mount + plans at that moment. + + Mounting again is the refresh. Every route the API holds for the + connector is compared with what it offers now, whatever its name, + path or the selection, so an upstream change is seen as a diff before + anyone's client sees it. `operations` selects what to create; omit it + to create a route for every operation a route can serve. A route an + owner renamed or moved keeps its name and path on refresh. + + The route write's rules apply to every operation: the connector must + be in the API's project (409 `cross_project_reference`), an MCP server + must be reachable with its credential to be listed (400 + `validation_failed` on `tool_id` with the server's reason), and a + public API mounts nothing. An API holds at most 200 routes; a mount + that would pass the cap skips what does not fit. Without a + `plan_digest`, a route changed while the mount was being planned + answers 409 `api_route_conflict`; mount again. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + tool_id : str + The `openapi` or `mcp` tool definition to mount, in the API's project. + + 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. + + operations : typing.Optional[typing.Sequence[str]] + The operations to create routes for: openapi operation ids or the + MCP server's tool names. Omit to create a route for every operation + a route can serve. Naming one the connector does not offer is 400 + `validation_failed` on `operations[i]`. Existing routes are compared + whatever the selection. + + name_prefix : typing.Optional[str] + Prefix of each created route's name, `__`. Defaults to the tool's name with other characters as `_`. + + path_prefix : typing.Optional[str] + Path each created route sits under, `/`; lowercase segments of letters, digits, `.`, `_` or `-`, with no `{param}` or `*`, and not under `/mcp`, `/openapi.json` or `/_runs`. Defaults to `/` in lowercase. + + dry_run : typing.Optional[bool] + Answer what the mount would do and write nothing. + + include_writes : typing.Optional[bool] + Create routes for operations that are not reads too, each with + `allow_write: true`. Only an API whose `auth_mode` names a person + takes them; the operation's `approval` must still be `auto`. + Without it a write is a `skip` that says so. + + plan_digest : typing.Optional[str] + The `plan_digest` of the preview you reviewed. The apply writes + only while the plan it computes inside its transaction still has + this digest, and otherwise writes nothing and answers 409 + `mount_plan_changed` with the current plan. Omit it to apply what + the mount plans now. Refused with `dry_run`. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApiMount + What the mount did, or on a dry run would do. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + client.hosted_apis.routes.mount_routes( + api_id="api_01kc4q3r9s6t8v0w2x4y6z8a0b", + tool_id="tool_01kc4n9s3v7w0y4a6c8e2g4j6m", + name_prefix="linear", + dry_run=True, + ) + """ + _response = self._raw_client.mount_routes( + api_id, + tool_id=tool_id, + idempotency_key=idempotency_key, + operations=operations, + name_prefix=name_prefix, + path_prefix=path_prefix, + dry_run=dry_run, + include_writes=include_writes, + plan_digest=plan_digest, + request_options=request_options, + ) + return _response.data + + def get_route( + self, api_id: str, route_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HostedApiRoute: + """ + Retrieve one route. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + route_id : str + Route id (prefixed external id, `route_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApiRoute + OK + + Examples + -------- + from speechify import Speechify + + client = Speechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + client.hosted_apis.routes.get_route( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + route_id="route_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + """ + _response = self._raw_client.get_route(api_id, route_id, request_options=request_options) + return _response.data + + def delete_route( + self, api_id: str, route_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> None: + """ + Delete a route. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + route_id : str + Route id (prefixed external id, `route_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + None + + Examples + -------- + from speechify import Speechify + + client = Speechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + client.hosted_apis.routes.delete_route( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + route_id="route_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + """ + _response = self._raw_client.delete_route(api_id, route_id, request_options=request_options) + return _response.data + + def update_route( + self, + api_id: str, + route_id: str, + *, + method: typing.Optional[UpdateHostedApiRouteRequestMethod] = OMIT, + path: typing.Optional[str] = OMIT, + name: typing.Optional[str] = OMIT, + description: typing.Optional[str] = OMIT, + resolver: typing.Optional[HostedApiResolver] = OMIT, + response_schema: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, + cache_ttl_seconds: typing.Optional[int] = OMIT, + enabled: typing.Optional[bool] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HostedApiRoute: + """ + Update a route (merge-patch); a changed method or resolver is re-validated. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + route_id : str + Route id (prefixed external id, `route_...`). + + method : typing.Optional[UpdateHostedApiRouteRequestMethod] + + path : typing.Optional[str] + + name : typing.Optional[str] + The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. + On an API with `mcp_enabled` the MCP tool's name comes from it: + each run of other characters (a space included) becomes `_`, + leading and trailing `_` are dropped, and the result is cut to 64 + characters. A route with no name is listed under a name built from + its method and path, and a name two routes would share takes `_2`, + `_3` in route order; the face's `tools/list` is the authority. Pick + a verb-first name a model can choose by. + + description : typing.Optional[str] + What the route does. On an API with `mcp_enabled` it is the MCP + tool description a client's model reads to choose the tool, so say + what it returns and when to call it; a `tool` route with none falls + back to the operation's summary. + + resolver : typing.Optional[HostedApiResolver] + + response_schema : typing.Optional[typing.Dict[str, typing.Any]] + + cache_ttl_seconds : typing.Optional[int] + + enabled : typing.Optional[bool] + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApiRoute + OK + + Examples + -------- + from speechify import Speechify + + client = Speechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + client.hosted_apis.routes.update_route( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + route_id="route_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + """ + _response = self._raw_client.update_route( + api_id, + route_id, + method=method, + path=path, + name=name, + description=description, + resolver=resolver, + response_schema=response_schema, + cache_ttl_seconds=cache_ttl_seconds, + enabled=enabled, + request_options=request_options, + ) + return _response.data + + +class AsyncRoutesClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._raw_client = AsyncRawRoutesClient(client_wrapper=client_wrapper) + + @property + def with_raw_response(self) -> AsyncRawRoutesClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + AsyncRawRoutesClient + """ + return self._raw_client + + async def list_routes( + self, + api_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncPager[HostedApiRoute, ListHostedApiRoutesResponse]: + """ + List a hosted API's routes in creation order. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + 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[HostedApiRoute, ListHostedApiRoutesResponse] + OK + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + response = await client.hosted_apis.routes.list_routes( + api_id="api_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_routes(api_id, cursor=cursor, limit=limit, request_options=request_options) + + async def create_route( + self, + api_id: str, + *, + method: CreateHostedApiRouteRequestMethod, + path: str, + resolver: HostedApiResolver, + idempotency_key: typing.Optional[str] = None, + name: typing.Optional[str] = OMIT, + description: typing.Optional[str] = OMIT, + response_schema: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, + cache_ttl_seconds: typing.Optional[int] = OMIT, + enabled: typing.Optional[bool] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HostedApiRoute: + """ + Add a route: a method + path answered by a resolver. `store_query`, + `store_document` and `store_aggregate` serve a store; `store_write` + lands the POST body as a document (`write_mode` create / replace / + merge; POST only, never on a public API, counted against + `daily_write_cap`, deduplicated on `Idempotency-Key`); `run_latest` + serves the newest structured output of a schedule trigger's runs; + `run` starts a run through a webhook trigger per request (POST only, + never on a public API) and waits up to `wait_seconds` before answering + 202 with a handle to poll at `/_runs/{run_id}`; `file` serves one + published file, or a whole published tree when the path ends in `*` + (`/app/*` with `file_root` and `file_index`); `tool` calls one read + operation of an `openapi` tool definition, or one tool of an `mcp` + tool definition's server, in the API's project whose `approval` is + null or `auto` (POST only, never on a public API, counted against + `daily_read_cap`): the consumer's JSON body is the arguments and the + connector's answer, after the tool's response mapping, is the + response. An `mcp` route pins the tool's input schema as + `resolver.input_schema` when it is written. + Where-clause values and + the document id may be `{{query.x}}`, `{{path.x}}` or `{{body.x}}` + templates bound from the consumer's request, or `{{user.x}}` claims of + the verified caller on a `user_token`, `workspace` or `owner` API; a + clause whose template is absent is skipped. On those three modes a + written document is stamped `user_identity` as the caller and only + they can replace or merge it. Two bindings are refused at write time: + `{{user.*}}` on an API that names no caller, and a clause on + `user_identity` bound from a request template, which would let any + caller read any user's rows. + + On an API with `mcp_enabled`, every enabled route except a `file` + route is also an MCP tool. The tool's name comes from the route's + `name`: every run of characters outside letters, digits, `_` and `-` + becomes `_`, leading and trailing `_` are dropped, and the result is + cut to 64 characters. A route with no name is listed under a name + built from its method and path (`post_issues_open`), and a name two + routes would share takes `_2`, `_3` in route order, so read the names + from the face's `tools/list` rather than deriving them. The route's + `description` is what the client's model reads to choose the tool, + falling back to the operation's summary on a `tool` route. Name and + describe a route for that reader. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + method : CreateHostedApiRouteRequestMethod + + path : str + Lowercase segments of letters, digits, `. _ -` or a `{param}`; `/openapi.json`, `/_runs` and `/mcp` are reserved. + + resolver : HostedApiResolver + + 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. + + name : typing.Optional[str] + The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. + On an API with `mcp_enabled` the MCP tool's name comes from it: + each run of other characters (a space included) becomes `_`, + leading and trailing `_` are dropped, and the result is cut to 64 + characters. A route with no name is listed under a name built from + its method and path, and a name two routes would share takes `_2`, + `_3` in route order; the face's `tools/list` is the authority. Pick + a verb-first name a model can choose by. + + description : typing.Optional[str] + What the route does. On an API with `mcp_enabled` it is the MCP + tool description a client's model reads to choose the tool, so say + what it returns and when to call it; a `tool` route with none falls + back to the operation's summary. + + response_schema : typing.Optional[typing.Dict[str, typing.Any]] + + cache_ttl_seconds : typing.Optional[int] + + enabled : typing.Optional[bool] + Enabled when omitted. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApiRoute + The created route. + + Examples + -------- + import asyncio + + from speechify import ( + AsyncSpeechify, + HostedApiResolver, + HostedApiResolverOrderBy, + ) + + client = AsyncSpeechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.hosted_apis.routes.create_route( + api_id="api_01kc4q3r9s6t8v0w2x4y6z8a0b", + method="GET", + path="/leads", + name="list_leads", + description="List leads, highest value first.", + resolver=HostedApiResolver( + type="store_query", + store_id="store_01kc4q5t1v3w5x7y9z1a3b5c7d", + collection="leads", + order_by=HostedApiResolverOrderBy( + field="value", + direction="desc", + ), + ), + cache_ttl_seconds=30, + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.create_route( + api_id, + method=method, + path=path, + resolver=resolver, + idempotency_key=idempotency_key, + name=name, + description=description, + response_schema=response_schema, + cache_ttl_seconds=cache_ttl_seconds, + enabled=enabled, + request_options=request_options, + ) + return _response.data + + async def mount_routes( + self, + api_id: str, + *, + tool_id: str, + idempotency_key: typing.Optional[str] = None, + operations: typing.Optional[typing.Sequence[str]] = OMIT, + name_prefix: typing.Optional[str] = OMIT, + path_prefix: typing.Optional[str] = OMIT, + dry_run: typing.Optional[bool] = OMIT, + include_writes: typing.Optional[bool] = OMIT, + plan_digest: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HostedApiMount: + """ + Publish a connector's operations onto the API in one call: one `tool` + route per operation of an `openapi` tool definition, or per tool its + `mcp` server lists, named `__` at + `/`, so two connectors' tools stay apart on + the MCP face and inside its 64-character tool names. + + Send `dry_run: true` first. The answer lists every operation with + its effective `action_class` and `approval`, whether a route can serve + it, and the `action` a mount takes: `create`, `update` (an MCP tool + whose input schema changed since its route was written; `changes` + names what), `unchanged`, `skip` (with the `reason`: not selected, not + a read, not auto-approved, a name or path already taken, or the route + cap) or `stale` (a route whose operation the connector no longer + offers, or can no longer serve; it is reported and never deleted, + since a consumer may still call it). The same call without `dry_run` + writes every create and update in one transaction and returns the + written `route` on each. + + Every answer carries a `plan_digest`. Send the preview's digest with + the apply: the apply plans again inside its transaction and writes + only when that plan still has the digest, so a tool the server changed + or a route edited after you reviewed is never written unseen. When it + differs the apply writes nothing and answers 409 `mount_plan_changed` + with the current plan, as a dry run answers it, in + `error.details.plan`; review that and apply again with its digest, + under a new `Idempotency-Key` if you sent one, since a key replays its + first answer, this 409 included. The digest covers every operation the + connector offers and every route the API holds for it whatever + `operations` selects, so a preview of everything and an apply of a + selection share one. An apply without it writes whatever the mount + plans at that moment. + + Mounting again is the refresh. Every route the API holds for the + connector is compared with what it offers now, whatever its name, + path or the selection, so an upstream change is seen as a diff before + anyone's client sees it. `operations` selects what to create; omit it + to create a route for every operation a route can serve. A route an + owner renamed or moved keeps its name and path on refresh. + + The route write's rules apply to every operation: the connector must + be in the API's project (409 `cross_project_reference`), an MCP server + must be reachable with its credential to be listed (400 + `validation_failed` on `tool_id` with the server's reason), and a + public API mounts nothing. An API holds at most 200 routes; a mount + that would pass the cap skips what does not fit. Without a + `plan_digest`, a route changed while the mount was being planned + answers 409 `api_route_conflict`; mount again. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + tool_id : str + The `openapi` or `mcp` tool definition to mount, in the API's project. + + 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. + + operations : typing.Optional[typing.Sequence[str]] + The operations to create routes for: openapi operation ids or the + MCP server's tool names. Omit to create a route for every operation + a route can serve. Naming one the connector does not offer is 400 + `validation_failed` on `operations[i]`. Existing routes are compared + whatever the selection. + + name_prefix : typing.Optional[str] + Prefix of each created route's name, `__`. Defaults to the tool's name with other characters as `_`. + + path_prefix : typing.Optional[str] + Path each created route sits under, `/`; lowercase segments of letters, digits, `.`, `_` or `-`, with no `{param}` or `*`, and not under `/mcp`, `/openapi.json` or `/_runs`. Defaults to `/` in lowercase. + + dry_run : typing.Optional[bool] + Answer what the mount would do and write nothing. + + include_writes : typing.Optional[bool] + Create routes for operations that are not reads too, each with + `allow_write: true`. Only an API whose `auth_mode` names a person + takes them; the operation's `approval` must still be `auto`. + Without it a write is a `skip` that says so. + + plan_digest : typing.Optional[str] + The `plan_digest` of the preview you reviewed. The apply writes + only while the plan it computes inside its transaction still has + this digest, and otherwise writes nothing and answers 409 + `mount_plan_changed` with the current plan. Omit it to apply what + the mount plans now. Refused with `dry_run`. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApiMount + What the mount did, or on a dry run would do. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.hosted_apis.routes.mount_routes( + api_id="api_01kc4q3r9s6t8v0w2x4y6z8a0b", + tool_id="tool_01kc4n9s3v7w0y4a6c8e2g4j6m", + name_prefix="linear", + dry_run=True, + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.mount_routes( + api_id, + tool_id=tool_id, + idempotency_key=idempotency_key, + operations=operations, + name_prefix=name_prefix, + path_prefix=path_prefix, + dry_run=dry_run, + include_writes=include_writes, + plan_digest=plan_digest, + request_options=request_options, + ) + return _response.data + + async def get_route( + self, api_id: str, route_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HostedApiRoute: + """ + Retrieve one route. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + route_id : str + Route id (prefixed external id, `route_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApiRoute + OK + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.hosted_apis.routes.get_route( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + route_id="route_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.get_route(api_id, route_id, request_options=request_options) + return _response.data + + async def delete_route( + self, api_id: str, route_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> None: + """ + Delete a route. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + route_id : str + Route id (prefixed external id, `route_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + None + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.hosted_apis.routes.delete_route( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + route_id="route_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.delete_route(api_id, route_id, request_options=request_options) + return _response.data + + async def update_route( + self, + api_id: str, + route_id: str, + *, + method: typing.Optional[UpdateHostedApiRouteRequestMethod] = OMIT, + path: typing.Optional[str] = OMIT, + name: typing.Optional[str] = OMIT, + description: typing.Optional[str] = OMIT, + resolver: typing.Optional[HostedApiResolver] = OMIT, + response_schema: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, + cache_ttl_seconds: typing.Optional[int] = OMIT, + enabled: typing.Optional[bool] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HostedApiRoute: + """ + Update a route (merge-patch); a changed method or resolver is re-validated. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + route_id : str + Route id (prefixed external id, `route_...`). + + method : typing.Optional[UpdateHostedApiRouteRequestMethod] + + path : typing.Optional[str] + + name : typing.Optional[str] + The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. + On an API with `mcp_enabled` the MCP tool's name comes from it: + each run of other characters (a space included) becomes `_`, + leading and trailing `_` are dropped, and the result is cut to 64 + characters. A route with no name is listed under a name built from + its method and path, and a name two routes would share takes `_2`, + `_3` in route order; the face's `tools/list` is the authority. Pick + a verb-first name a model can choose by. + + description : typing.Optional[str] + What the route does. On an API with `mcp_enabled` it is the MCP + tool description a client's model reads to choose the tool, so say + what it returns and when to call it; a `tool` route with none falls + back to the operation's summary. + + resolver : typing.Optional[HostedApiResolver] + + response_schema : typing.Optional[typing.Dict[str, typing.Any]] + + cache_ttl_seconds : typing.Optional[int] + + enabled : typing.Optional[bool] + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HostedApiRoute + OK + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + "2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.hosted_apis.routes.update_route( + api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", + route_id="route_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.update_route( + api_id, + route_id, + method=method, + path=path, + name=name, + description=description, + resolver=resolver, + response_schema=response_schema, + cache_ttl_seconds=cache_ttl_seconds, + enabled=enabled, + request_options=request_options, + ) + return _response.data diff --git a/src/speechify/hosted_apis/routes/raw_client.py b/src/speechify/hosted_apis/routes/raw_client.py new file mode 100644 index 0000000..974615a --- /dev/null +++ b/src/speechify/hosted_apis/routes/raw_client.py @@ -0,0 +1,2027 @@ +# 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 ...core.serialization import convert_and_respect_annotation_metadata +from ...errors.bad_request_error import BadRequestError +from ...errors.conflict_error import ConflictError +from ...errors.internal_server_error import InternalServerError +from ...errors.not_found_error import NotFoundError +from ...errors.payment_required_error import PaymentRequiredError +from ...errors.too_many_requests_error import TooManyRequestsError +from ...errors.unauthorized_error import UnauthorizedError +from ...types.error import Error +from ...types.hosted_api_mount import HostedApiMount +from ...types.hosted_api_resolver import HostedApiResolver +from ...types.hosted_api_route import HostedApiRoute +from ...types.list_hosted_api_routes_response import ListHostedApiRoutesResponse +from .types.create_hosted_api_route_request_method import CreateHostedApiRouteRequestMethod +from .types.update_hosted_api_route_request_method import UpdateHostedApiRouteRequestMethod +from pydantic import ValidationError + +# this is used as the default value for optional parameters +OMIT = typing.cast(typing.Any, ...) + + +class RawRoutesClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._client_wrapper = client_wrapper + + def list_routes( + self, + api_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> SyncPager[HostedApiRoute, ListHostedApiRoutesResponse]: + """ + List a hosted API's routes in creation order. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + 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[HostedApiRoute, ListHostedApiRoutesResponse] + OK + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/routes", + method="GET", + params={ + "cursor": cursor, + "limit": limit, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _parsed_response = typing.cast( + ListHostedApiRoutesResponse, + parse_obj_as( + type_=ListHostedApiRoutesResponse, # type: ignore + object_=_response.json(), + ), + ) + _items = _parsed_response.routes + _parsed_next = _parsed_response.next_cursor + _has_next = _parsed_next is not None and _parsed_next != "" + _get_next = lambda: self.list_routes( + api_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 == 402: + raise PaymentRequiredError( + 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 create_route( + self, + api_id: str, + *, + method: CreateHostedApiRouteRequestMethod, + path: str, + resolver: HostedApiResolver, + idempotency_key: typing.Optional[str] = None, + name: typing.Optional[str] = OMIT, + description: typing.Optional[str] = OMIT, + response_schema: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, + cache_ttl_seconds: typing.Optional[int] = OMIT, + enabled: typing.Optional[bool] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[HostedApiRoute]: + """ + Add a route: a method + path answered by a resolver. `store_query`, + `store_document` and `store_aggregate` serve a store; `store_write` + lands the POST body as a document (`write_mode` create / replace / + merge; POST only, never on a public API, counted against + `daily_write_cap`, deduplicated on `Idempotency-Key`); `run_latest` + serves the newest structured output of a schedule trigger's runs; + `run` starts a run through a webhook trigger per request (POST only, + never on a public API) and waits up to `wait_seconds` before answering + 202 with a handle to poll at `/_runs/{run_id}`; `file` serves one + published file, or a whole published tree when the path ends in `*` + (`/app/*` with `file_root` and `file_index`); `tool` calls one read + operation of an `openapi` tool definition, or one tool of an `mcp` + tool definition's server, in the API's project whose `approval` is + null or `auto` (POST only, never on a public API, counted against + `daily_read_cap`): the consumer's JSON body is the arguments and the + connector's answer, after the tool's response mapping, is the + response. An `mcp` route pins the tool's input schema as + `resolver.input_schema` when it is written. + Where-clause values and + the document id may be `{{query.x}}`, `{{path.x}}` or `{{body.x}}` + templates bound from the consumer's request, or `{{user.x}}` claims of + the verified caller on a `user_token`, `workspace` or `owner` API; a + clause whose template is absent is skipped. On those three modes a + written document is stamped `user_identity` as the caller and only + they can replace or merge it. Two bindings are refused at write time: + `{{user.*}}` on an API that names no caller, and a clause on + `user_identity` bound from a request template, which would let any + caller read any user's rows. + + On an API with `mcp_enabled`, every enabled route except a `file` + route is also an MCP tool. The tool's name comes from the route's + `name`: every run of characters outside letters, digits, `_` and `-` + becomes `_`, leading and trailing `_` are dropped, and the result is + cut to 64 characters. A route with no name is listed under a name + built from its method and path (`post_issues_open`), and a name two + routes would share takes `_2`, `_3` in route order, so read the names + from the face's `tools/list` rather than deriving them. The route's + `description` is what the client's model reads to choose the tool, + falling back to the operation's summary on a `tool` route. Name and + describe a route for that reader. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + method : CreateHostedApiRouteRequestMethod + + path : str + Lowercase segments of letters, digits, `. _ -` or a `{param}`; `/openapi.json`, `/_runs` and `/mcp` are reserved. + + resolver : HostedApiResolver + + 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. + + name : typing.Optional[str] + The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. + On an API with `mcp_enabled` the MCP tool's name comes from it: + each run of other characters (a space included) becomes `_`, + leading and trailing `_` are dropped, and the result is cut to 64 + characters. A route with no name is listed under a name built from + its method and path, and a name two routes would share takes `_2`, + `_3` in route order; the face's `tools/list` is the authority. Pick + a verb-first name a model can choose by. + + description : typing.Optional[str] + What the route does. On an API with `mcp_enabled` it is the MCP + tool description a client's model reads to choose the tool, so say + what it returns and when to call it; a `tool` route with none falls + back to the operation's summary. + + response_schema : typing.Optional[typing.Dict[str, typing.Any]] + + cache_ttl_seconds : typing.Optional[int] + + enabled : typing.Optional[bool] + Enabled when omitted. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[HostedApiRoute] + The created route. + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/routes", + method="POST", + json={ + "method": method, + "path": path, + "name": name, + "description": description, + "resolver": convert_and_respect_annotation_metadata( + object_=resolver, annotation=HostedApiResolver, direction="write" + ), + "response_schema": response_schema, + "cache_ttl_seconds": cache_ttl_seconds, + "enabled": enabled, + }, + headers={ + "content-type": "application/json", + "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApiRoute, + parse_obj_as( + type_=HostedApiRoute, # 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 == 402: + raise PaymentRequiredError( + 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 mount_routes( + self, + api_id: str, + *, + tool_id: str, + idempotency_key: typing.Optional[str] = None, + operations: typing.Optional[typing.Sequence[str]] = OMIT, + name_prefix: typing.Optional[str] = OMIT, + path_prefix: typing.Optional[str] = OMIT, + dry_run: typing.Optional[bool] = OMIT, + include_writes: typing.Optional[bool] = OMIT, + plan_digest: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[HostedApiMount]: + """ + Publish a connector's operations onto the API in one call: one `tool` + route per operation of an `openapi` tool definition, or per tool its + `mcp` server lists, named `__` at + `/`, so two connectors' tools stay apart on + the MCP face and inside its 64-character tool names. + + Send `dry_run: true` first. The answer lists every operation with + its effective `action_class` and `approval`, whether a route can serve + it, and the `action` a mount takes: `create`, `update` (an MCP tool + whose input schema changed since its route was written; `changes` + names what), `unchanged`, `skip` (with the `reason`: not selected, not + a read, not auto-approved, a name or path already taken, or the route + cap) or `stale` (a route whose operation the connector no longer + offers, or can no longer serve; it is reported and never deleted, + since a consumer may still call it). The same call without `dry_run` + writes every create and update in one transaction and returns the + written `route` on each. + + Every answer carries a `plan_digest`. Send the preview's digest with + the apply: the apply plans again inside its transaction and writes + only when that plan still has the digest, so a tool the server changed + or a route edited after you reviewed is never written unseen. When it + differs the apply writes nothing and answers 409 `mount_plan_changed` + with the current plan, as a dry run answers it, in + `error.details.plan`; review that and apply again with its digest, + under a new `Idempotency-Key` if you sent one, since a key replays its + first answer, this 409 included. The digest covers every operation the + connector offers and every route the API holds for it whatever + `operations` selects, so a preview of everything and an apply of a + selection share one. An apply without it writes whatever the mount + plans at that moment. + + Mounting again is the refresh. Every route the API holds for the + connector is compared with what it offers now, whatever its name, + path or the selection, so an upstream change is seen as a diff before + anyone's client sees it. `operations` selects what to create; omit it + to create a route for every operation a route can serve. A route an + owner renamed or moved keeps its name and path on refresh. + + The route write's rules apply to every operation: the connector must + be in the API's project (409 `cross_project_reference`), an MCP server + must be reachable with its credential to be listed (400 + `validation_failed` on `tool_id` with the server's reason), and a + public API mounts nothing. An API holds at most 200 routes; a mount + that would pass the cap skips what does not fit. Without a + `plan_digest`, a route changed while the mount was being planned + answers 409 `api_route_conflict`; mount again. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + tool_id : str + The `openapi` or `mcp` tool definition to mount, in the API's project. + + 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. + + operations : typing.Optional[typing.Sequence[str]] + The operations to create routes for: openapi operation ids or the + MCP server's tool names. Omit to create a route for every operation + a route can serve. Naming one the connector does not offer is 400 + `validation_failed` on `operations[i]`. Existing routes are compared + whatever the selection. + + name_prefix : typing.Optional[str] + Prefix of each created route's name, `__`. Defaults to the tool's name with other characters as `_`. + + path_prefix : typing.Optional[str] + Path each created route sits under, `/`; lowercase segments of letters, digits, `.`, `_` or `-`, with no `{param}` or `*`, and not under `/mcp`, `/openapi.json` or `/_runs`. Defaults to `/` in lowercase. + + dry_run : typing.Optional[bool] + Answer what the mount would do and write nothing. + + include_writes : typing.Optional[bool] + Create routes for operations that are not reads too, each with + `allow_write: true`. Only an API whose `auth_mode` names a person + takes them; the operation's `approval` must still be `auto`. + Without it a write is a `skip` that says so. + + plan_digest : typing.Optional[str] + The `plan_digest` of the preview you reviewed. The apply writes + only while the plan it computes inside its transaction still has + this digest, and otherwise writes nothing and answers 409 + `mount_plan_changed` with the current plan. Omit it to apply what + the mount plans now. Refused with `dry_run`. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[HostedApiMount] + What the mount did, or on a dry run would do. + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/routes/mount", + method="POST", + json={ + "tool_id": tool_id, + "operations": operations, + "name_prefix": name_prefix, + "path_prefix": path_prefix, + "dry_run": dry_run, + "include_writes": include_writes, + "plan_digest": plan_digest, + }, + headers={ + "content-type": "application/json", + "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApiMount, + parse_obj_as( + type_=HostedApiMount, # 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 == 402: + raise PaymentRequiredError( + 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 get_route( + self, api_id: str, route_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[HostedApiRoute]: + """ + Retrieve one route. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + route_id : str + Route id (prefixed external id, `route_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[HostedApiRoute] + OK + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/routes/{encode_path_param(route_id)}", + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApiRoute, + parse_obj_as( + type_=HostedApiRoute, # 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 == 402: + raise PaymentRequiredError( + 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 delete_route( + self, api_id: str, route_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[None]: + """ + Delete a route. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + route_id : str + Route id (prefixed external id, `route_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[None] + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/routes/{encode_path_param(route_id)}", + method="DELETE", + request_options=request_options, + ) + 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 == 402: + raise PaymentRequiredError( + 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_route( + self, + api_id: str, + route_id: str, + *, + method: typing.Optional[UpdateHostedApiRouteRequestMethod] = OMIT, + path: typing.Optional[str] = OMIT, + name: typing.Optional[str] = OMIT, + description: typing.Optional[str] = OMIT, + resolver: typing.Optional[HostedApiResolver] = OMIT, + response_schema: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, + cache_ttl_seconds: typing.Optional[int] = OMIT, + enabled: typing.Optional[bool] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[HostedApiRoute]: + """ + Update a route (merge-patch); a changed method or resolver is re-validated. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + route_id : str + Route id (prefixed external id, `route_...`). + + method : typing.Optional[UpdateHostedApiRouteRequestMethod] + + path : typing.Optional[str] + + name : typing.Optional[str] + The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. + On an API with `mcp_enabled` the MCP tool's name comes from it: + each run of other characters (a space included) becomes `_`, + leading and trailing `_` are dropped, and the result is cut to 64 + characters. A route with no name is listed under a name built from + its method and path, and a name two routes would share takes `_2`, + `_3` in route order; the face's `tools/list` is the authority. Pick + a verb-first name a model can choose by. + + description : typing.Optional[str] + What the route does. On an API with `mcp_enabled` it is the MCP + tool description a client's model reads to choose the tool, so say + what it returns and when to call it; a `tool` route with none falls + back to the operation's summary. + + resolver : typing.Optional[HostedApiResolver] + + response_schema : typing.Optional[typing.Dict[str, typing.Any]] + + cache_ttl_seconds : typing.Optional[int] + + enabled : typing.Optional[bool] + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[HostedApiRoute] + OK + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/routes/{encode_path_param(route_id)}", + method="PATCH", + json={ + "method": method, + "path": path, + "name": name, + "description": description, + "resolver": convert_and_respect_annotation_metadata( + object_=resolver, annotation=HostedApiResolver, direction="write" + ), + "response_schema": response_schema, + "cache_ttl_seconds": cache_ttl_seconds, + "enabled": enabled, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApiRoute, + parse_obj_as( + type_=HostedApiRoute, # 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 == 402: + raise PaymentRequiredError( + 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) + + +class AsyncRawRoutesClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._client_wrapper = client_wrapper + + async def list_routes( + self, + api_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncPager[HostedApiRoute, ListHostedApiRoutesResponse]: + """ + List a hosted API's routes in creation order. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + 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[HostedApiRoute, ListHostedApiRoutesResponse] + OK + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/routes", + method="GET", + params={ + "cursor": cursor, + "limit": limit, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _parsed_response = typing.cast( + ListHostedApiRoutesResponse, + parse_obj_as( + type_=ListHostedApiRoutesResponse, # type: ignore + object_=_response.json(), + ), + ) + _items = _parsed_response.routes + _parsed_next = _parsed_response.next_cursor + _has_next = _parsed_next is not None and _parsed_next != "" + + async def _get_next(): + return await self.list_routes( + api_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 == 402: + raise PaymentRequiredError( + 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 create_route( + self, + api_id: str, + *, + method: CreateHostedApiRouteRequestMethod, + path: str, + resolver: HostedApiResolver, + idempotency_key: typing.Optional[str] = None, + name: typing.Optional[str] = OMIT, + description: typing.Optional[str] = OMIT, + response_schema: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, + cache_ttl_seconds: typing.Optional[int] = OMIT, + enabled: typing.Optional[bool] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[HostedApiRoute]: + """ + Add a route: a method + path answered by a resolver. `store_query`, + `store_document` and `store_aggregate` serve a store; `store_write` + lands the POST body as a document (`write_mode` create / replace / + merge; POST only, never on a public API, counted against + `daily_write_cap`, deduplicated on `Idempotency-Key`); `run_latest` + serves the newest structured output of a schedule trigger's runs; + `run` starts a run through a webhook trigger per request (POST only, + never on a public API) and waits up to `wait_seconds` before answering + 202 with a handle to poll at `/_runs/{run_id}`; `file` serves one + published file, or a whole published tree when the path ends in `*` + (`/app/*` with `file_root` and `file_index`); `tool` calls one read + operation of an `openapi` tool definition, or one tool of an `mcp` + tool definition's server, in the API's project whose `approval` is + null or `auto` (POST only, never on a public API, counted against + `daily_read_cap`): the consumer's JSON body is the arguments and the + connector's answer, after the tool's response mapping, is the + response. An `mcp` route pins the tool's input schema as + `resolver.input_schema` when it is written. + Where-clause values and + the document id may be `{{query.x}}`, `{{path.x}}` or `{{body.x}}` + templates bound from the consumer's request, or `{{user.x}}` claims of + the verified caller on a `user_token`, `workspace` or `owner` API; a + clause whose template is absent is skipped. On those three modes a + written document is stamped `user_identity` as the caller and only + they can replace or merge it. Two bindings are refused at write time: + `{{user.*}}` on an API that names no caller, and a clause on + `user_identity` bound from a request template, which would let any + caller read any user's rows. + + On an API with `mcp_enabled`, every enabled route except a `file` + route is also an MCP tool. The tool's name comes from the route's + `name`: every run of characters outside letters, digits, `_` and `-` + becomes `_`, leading and trailing `_` are dropped, and the result is + cut to 64 characters. A route with no name is listed under a name + built from its method and path (`post_issues_open`), and a name two + routes would share takes `_2`, `_3` in route order, so read the names + from the face's `tools/list` rather than deriving them. The route's + `description` is what the client's model reads to choose the tool, + falling back to the operation's summary on a `tool` route. Name and + describe a route for that reader. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + method : CreateHostedApiRouteRequestMethod + + path : str + Lowercase segments of letters, digits, `. _ -` or a `{param}`; `/openapi.json`, `/_runs` and `/mcp` are reserved. + + resolver : HostedApiResolver + + 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. + + name : typing.Optional[str] + The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. + On an API with `mcp_enabled` the MCP tool's name comes from it: + each run of other characters (a space included) becomes `_`, + leading and trailing `_` are dropped, and the result is cut to 64 + characters. A route with no name is listed under a name built from + its method and path, and a name two routes would share takes `_2`, + `_3` in route order; the face's `tools/list` is the authority. Pick + a verb-first name a model can choose by. + + description : typing.Optional[str] + What the route does. On an API with `mcp_enabled` it is the MCP + tool description a client's model reads to choose the tool, so say + what it returns and when to call it; a `tool` route with none falls + back to the operation's summary. + + response_schema : typing.Optional[typing.Dict[str, typing.Any]] + + cache_ttl_seconds : typing.Optional[int] + + enabled : typing.Optional[bool] + Enabled when omitted. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[HostedApiRoute] + The created route. + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/routes", + method="POST", + json={ + "method": method, + "path": path, + "name": name, + "description": description, + "resolver": convert_and_respect_annotation_metadata( + object_=resolver, annotation=HostedApiResolver, direction="write" + ), + "response_schema": response_schema, + "cache_ttl_seconds": cache_ttl_seconds, + "enabled": enabled, + }, + headers={ + "content-type": "application/json", + "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApiRoute, + parse_obj_as( + type_=HostedApiRoute, # 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 == 402: + raise PaymentRequiredError( + 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 mount_routes( + self, + api_id: str, + *, + tool_id: str, + idempotency_key: typing.Optional[str] = None, + operations: typing.Optional[typing.Sequence[str]] = OMIT, + name_prefix: typing.Optional[str] = OMIT, + path_prefix: typing.Optional[str] = OMIT, + dry_run: typing.Optional[bool] = OMIT, + include_writes: typing.Optional[bool] = OMIT, + plan_digest: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[HostedApiMount]: + """ + Publish a connector's operations onto the API in one call: one `tool` + route per operation of an `openapi` tool definition, or per tool its + `mcp` server lists, named `__` at + `/`, so two connectors' tools stay apart on + the MCP face and inside its 64-character tool names. + + Send `dry_run: true` first. The answer lists every operation with + its effective `action_class` and `approval`, whether a route can serve + it, and the `action` a mount takes: `create`, `update` (an MCP tool + whose input schema changed since its route was written; `changes` + names what), `unchanged`, `skip` (with the `reason`: not selected, not + a read, not auto-approved, a name or path already taken, or the route + cap) or `stale` (a route whose operation the connector no longer + offers, or can no longer serve; it is reported and never deleted, + since a consumer may still call it). The same call without `dry_run` + writes every create and update in one transaction and returns the + written `route` on each. + + Every answer carries a `plan_digest`. Send the preview's digest with + the apply: the apply plans again inside its transaction and writes + only when that plan still has the digest, so a tool the server changed + or a route edited after you reviewed is never written unseen. When it + differs the apply writes nothing and answers 409 `mount_plan_changed` + with the current plan, as a dry run answers it, in + `error.details.plan`; review that and apply again with its digest, + under a new `Idempotency-Key` if you sent one, since a key replays its + first answer, this 409 included. The digest covers every operation the + connector offers and every route the API holds for it whatever + `operations` selects, so a preview of everything and an apply of a + selection share one. An apply without it writes whatever the mount + plans at that moment. + + Mounting again is the refresh. Every route the API holds for the + connector is compared with what it offers now, whatever its name, + path or the selection, so an upstream change is seen as a diff before + anyone's client sees it. `operations` selects what to create; omit it + to create a route for every operation a route can serve. A route an + owner renamed or moved keeps its name and path on refresh. + + The route write's rules apply to every operation: the connector must + be in the API's project (409 `cross_project_reference`), an MCP server + must be reachable with its credential to be listed (400 + `validation_failed` on `tool_id` with the server's reason), and a + public API mounts nothing. An API holds at most 200 routes; a mount + that would pass the cap skips what does not fit. Without a + `plan_digest`, a route changed while the mount was being planned + answers 409 `api_route_conflict`; mount again. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + tool_id : str + The `openapi` or `mcp` tool definition to mount, in the API's project. + + 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. + + operations : typing.Optional[typing.Sequence[str]] + The operations to create routes for: openapi operation ids or the + MCP server's tool names. Omit to create a route for every operation + a route can serve. Naming one the connector does not offer is 400 + `validation_failed` on `operations[i]`. Existing routes are compared + whatever the selection. + + name_prefix : typing.Optional[str] + Prefix of each created route's name, `__`. Defaults to the tool's name with other characters as `_`. + + path_prefix : typing.Optional[str] + Path each created route sits under, `/`; lowercase segments of letters, digits, `.`, `_` or `-`, with no `{param}` or `*`, and not under `/mcp`, `/openapi.json` or `/_runs`. Defaults to `/` in lowercase. + + dry_run : typing.Optional[bool] + Answer what the mount would do and write nothing. + + include_writes : typing.Optional[bool] + Create routes for operations that are not reads too, each with + `allow_write: true`. Only an API whose `auth_mode` names a person + takes them; the operation's `approval` must still be `auto`. + Without it a write is a `skip` that says so. + + plan_digest : typing.Optional[str] + The `plan_digest` of the preview you reviewed. The apply writes + only while the plan it computes inside its transaction still has + this digest, and otherwise writes nothing and answers 409 + `mount_plan_changed` with the current plan. Omit it to apply what + the mount plans now. Refused with `dry_run`. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[HostedApiMount] + What the mount did, or on a dry run would do. + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/routes/mount", + method="POST", + json={ + "tool_id": tool_id, + "operations": operations, + "name_prefix": name_prefix, + "path_prefix": path_prefix, + "dry_run": dry_run, + "include_writes": include_writes, + "plan_digest": plan_digest, + }, + headers={ + "content-type": "application/json", + "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApiMount, + parse_obj_as( + type_=HostedApiMount, # 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 == 402: + raise PaymentRequiredError( + 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 get_route( + self, api_id: str, route_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[HostedApiRoute]: + """ + Retrieve one route. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + route_id : str + Route id (prefixed external id, `route_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[HostedApiRoute] + OK + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/routes/{encode_path_param(route_id)}", + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApiRoute, + parse_obj_as( + type_=HostedApiRoute, # 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 == 402: + raise PaymentRequiredError( + 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 delete_route( + self, api_id: str, route_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[None]: + """ + Delete a route. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + route_id : str + Route id (prefixed external id, `route_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[None] + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/routes/{encode_path_param(route_id)}", + method="DELETE", + request_options=request_options, + ) + 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 == 402: + raise PaymentRequiredError( + 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_route( + self, + api_id: str, + route_id: str, + *, + method: typing.Optional[UpdateHostedApiRouteRequestMethod] = OMIT, + path: typing.Optional[str] = OMIT, + name: typing.Optional[str] = OMIT, + description: typing.Optional[str] = OMIT, + resolver: typing.Optional[HostedApiResolver] = OMIT, + response_schema: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, + cache_ttl_seconds: typing.Optional[int] = OMIT, + enabled: typing.Optional[bool] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[HostedApiRoute]: + """ + Update a route (merge-patch); a changed method or resolver is re-validated. + Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). + + Parameters + ---------- + api_id : str + Hosted API id (prefixed external id, `api_...`). + + route_id : str + Route id (prefixed external id, `route_...`). + + method : typing.Optional[UpdateHostedApiRouteRequestMethod] + + path : typing.Optional[str] + + name : typing.Optional[str] + The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. + On an API with `mcp_enabled` the MCP tool's name comes from it: + each run of other characters (a space included) becomes `_`, + leading and trailing `_` are dropped, and the result is cut to 64 + characters. A route with no name is listed under a name built from + its method and path, and a name two routes would share takes `_2`, + `_3` in route order; the face's `tools/list` is the authority. Pick + a verb-first name a model can choose by. + + description : typing.Optional[str] + What the route does. On an API with `mcp_enabled` it is the MCP + tool description a client's model reads to choose the tool, so say + what it returns and when to call it; a `tool` route with none falls + back to the operation's summary. + + resolver : typing.Optional[HostedApiResolver] + + response_schema : typing.Optional[typing.Dict[str, typing.Any]] + + cache_ttl_seconds : typing.Optional[int] + + enabled : typing.Optional[bool] + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[HostedApiRoute] + OK + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/apis/{encode_path_param(api_id)}/routes/{encode_path_param(route_id)}", + method="PATCH", + json={ + "method": method, + "path": path, + "name": name, + "description": description, + "resolver": convert_and_respect_annotation_metadata( + object_=resolver, annotation=HostedApiResolver, direction="write" + ), + "response_schema": response_schema, + "cache_ttl_seconds": cache_ttl_seconds, + "enabled": enabled, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + HostedApiRoute, + parse_obj_as( + type_=HostedApiRoute, # 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 == 402: + raise PaymentRequiredError( + 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) diff --git a/src/speechify/hosted_apis/routes/types/__init__.py b/src/speechify/hosted_apis/routes/types/__init__.py new file mode 100644 index 0000000..ad79d65 --- /dev/null +++ b/src/speechify/hosted_apis/routes/types/__init__.py @@ -0,0 +1,38 @@ +# 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 .create_hosted_api_route_request_method import CreateHostedApiRouteRequestMethod + from .update_hosted_api_route_request_method import UpdateHostedApiRouteRequestMethod +_dynamic_imports: typing.Dict[str, str] = { + "CreateHostedApiRouteRequestMethod": ".create_hosted_api_route_request_method", + "UpdateHostedApiRouteRequestMethod": ".update_hosted_api_route_request_method", +} + + +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__ = ["CreateHostedApiRouteRequestMethod", "UpdateHostedApiRouteRequestMethod"] diff --git a/src/speechify/hosted_apis/routes/types/create_hosted_api_route_request_method.py b/src/speechify/hosted_apis/routes/types/create_hosted_api_route_request_method.py new file mode 100644 index 0000000..966d74e --- /dev/null +++ b/src/speechify/hosted_apis/routes/types/create_hosted_api_route_request_method.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +CreateHostedApiRouteRequestMethod = typing.Union[typing.Literal["GET", "POST"], typing.Any] diff --git a/src/speechify/hosted_apis/routes/types/update_hosted_api_route_request_method.py b/src/speechify/hosted_apis/routes/types/update_hosted_api_route_request_method.py new file mode 100644 index 0000000..e96c4d9 --- /dev/null +++ b/src/speechify/hosted_apis/routes/types/update_hosted_api_route_request_method.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +UpdateHostedApiRouteRequestMethod = typing.Union[typing.Literal["GET", "POST"], typing.Any] diff --git a/src/speechify/hosted_apis/types/__init__.py b/src/speechify/hosted_apis/types/__init__.py new file mode 100644 index 0000000..abadda3 --- /dev/null +++ b/src/speechify/hosted_apis/types/__init__.py @@ -0,0 +1,44 @@ +# 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 .create_hosted_api_request_auth_mode import CreateHostedApiRequestAuthMode + from .get_analytics_hosted_apis_request_granularity import GetAnalyticsHostedApisRequestGranularity + from .update_hosted_api_request_auth_mode import UpdateHostedApiRequestAuthMode +_dynamic_imports: typing.Dict[str, str] = { + "CreateHostedApiRequestAuthMode": ".create_hosted_api_request_auth_mode", + "GetAnalyticsHostedApisRequestGranularity": ".get_analytics_hosted_apis_request_granularity", + "UpdateHostedApiRequestAuthMode": ".update_hosted_api_request_auth_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__ = [ + "CreateHostedApiRequestAuthMode", + "GetAnalyticsHostedApisRequestGranularity", + "UpdateHostedApiRequestAuthMode", +] diff --git a/src/speechify/hosted_apis/types/create_hosted_api_request_auth_mode.py b/src/speechify/hosted_apis/types/create_hosted_api_request_auth_mode.py new file mode 100644 index 0000000..3745f8e --- /dev/null +++ b/src/speechify/hosted_apis/types/create_hosted_api_request_auth_mode.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +CreateHostedApiRequestAuthMode = typing.Union[ + typing.Literal["consumer_key", "public", "user_token", "workspace", "owner"], typing.Any +] diff --git a/src/speechify/hosted_apis/types/get_analytics_hosted_apis_request_granularity.py b/src/speechify/hosted_apis/types/get_analytics_hosted_apis_request_granularity.py new file mode 100644 index 0000000..19fbf3c --- /dev/null +++ b/src/speechify/hosted_apis/types/get_analytics_hosted_apis_request_granularity.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +GetAnalyticsHostedApisRequestGranularity = typing.Union[ + typing.Literal["1m", "5m", "15m", "30m", "1h", "6h", "12h", "1d"], typing.Any +] diff --git a/src/speechify/hosted_apis/types/update_hosted_api_request_auth_mode.py b/src/speechify/hosted_apis/types/update_hosted_api_request_auth_mode.py new file mode 100644 index 0000000..c719185 --- /dev/null +++ b/src/speechify/hosted_apis/types/update_hosted_api_request_auth_mode.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +UpdateHostedApiRequestAuthMode = typing.Union[ + typing.Literal["consumer_key", "public", "user_token", "workspace", "owner"], typing.Any +] diff --git a/src/speechify/types/__init__.py b/src/speechify/types/__init__.py index 17191f7..3f4de56 100644 --- a/src/speechify/types/__init__.py +++ b/src/speechify/types/__init__.py @@ -24,11 +24,39 @@ from .get_voice_type import GetVoiceType from .get_voices_model import GetVoicesModel from .get_voices_model_name import GetVoicesModelName + from .hosted_api import HostedApi + from .hosted_api_auth_mode import HostedApiAuthMode + from .hosted_api_key import HostedApiKey + from .hosted_api_mount import HostedApiMount + from .hosted_api_mount_operation import HostedApiMountOperation + from .hosted_api_mount_operation_action import HostedApiMountOperationAction + from .hosted_api_mount_operation_changes_item import HostedApiMountOperationChangesItem + from .hosted_api_mount_summary import HostedApiMountSummary + from .hosted_api_mount_tool_kind import HostedApiMountToolKind + from .hosted_api_resolver import HostedApiResolver + from .hosted_api_resolver_order_by import HostedApiResolverOrderBy + from .hosted_api_resolver_order_by_direction import HostedApiResolverOrderByDirection + from .hosted_api_resolver_type import HostedApiResolverType + from .hosted_api_resolver_where_item import HostedApiResolverWhereItem + from .hosted_api_resolver_where_item_op import HostedApiResolverWhereItemOp + from .hosted_api_resolver_write_mode import HostedApiResolverWriteMode + from .hosted_api_route import HostedApiRoute + from .hosted_api_route_method import HostedApiRouteMethod + from .hosted_api_usage import HostedApiUsage + from .hosted_api_usage_routes_item import HostedApiUsageRoutesItem + from .hosted_api_user_token_secret import HostedApiUserTokenSecret + from .list_hosted_ap_is_response import ListHostedApIsResponse + from .list_hosted_api_keys_response import ListHostedApiKeysResponse + from .list_hosted_api_routes_response import ListHostedApiRoutesResponse from .list_voices_response import ListVoicesResponse from .model import Model from .models_response import ModelsResponse from .nested_chunk import NestedChunk from .pagination_meta import PaginationMeta + from .request_analytics_bucket import RequestAnalyticsBucket + from .request_analytics_response import RequestAnalyticsResponse + from .request_analytics_totals import RequestAnalyticsTotals + from .request_top_path import RequestTopPath from .speech_chunk_event import SpeechChunkEvent from .speech_done_event import SpeechDoneEvent from .speech_error_event import SpeechErrorEvent @@ -39,6 +67,8 @@ SpeechStreamEvent_SpeechDone, SpeechStreamEvent_SpeechError, ) + from .store_aggregate_metric import StoreAggregateMetric + from .store_aggregate_metric_op import StoreAggregateMetricOp from .watermark_detection_response import WatermarkDetectionResponse from .watermark_verification_response import WatermarkVerificationResponse _dynamic_imports: typing.Dict[str, str] = { @@ -60,11 +90,39 @@ "GetVoiceType": ".get_voice_type", "GetVoicesModel": ".get_voices_model", "GetVoicesModelName": ".get_voices_model_name", + "HostedApi": ".hosted_api", + "HostedApiAuthMode": ".hosted_api_auth_mode", + "HostedApiKey": ".hosted_api_key", + "HostedApiMount": ".hosted_api_mount", + "HostedApiMountOperation": ".hosted_api_mount_operation", + "HostedApiMountOperationAction": ".hosted_api_mount_operation_action", + "HostedApiMountOperationChangesItem": ".hosted_api_mount_operation_changes_item", + "HostedApiMountSummary": ".hosted_api_mount_summary", + "HostedApiMountToolKind": ".hosted_api_mount_tool_kind", + "HostedApiResolver": ".hosted_api_resolver", + "HostedApiResolverOrderBy": ".hosted_api_resolver_order_by", + "HostedApiResolverOrderByDirection": ".hosted_api_resolver_order_by_direction", + "HostedApiResolverType": ".hosted_api_resolver_type", + "HostedApiResolverWhereItem": ".hosted_api_resolver_where_item", + "HostedApiResolverWhereItemOp": ".hosted_api_resolver_where_item_op", + "HostedApiResolverWriteMode": ".hosted_api_resolver_write_mode", + "HostedApiRoute": ".hosted_api_route", + "HostedApiRouteMethod": ".hosted_api_route_method", + "HostedApiUsage": ".hosted_api_usage", + "HostedApiUsageRoutesItem": ".hosted_api_usage_routes_item", + "HostedApiUserTokenSecret": ".hosted_api_user_token_secret", + "ListHostedApIsResponse": ".list_hosted_ap_is_response", + "ListHostedApiKeysResponse": ".list_hosted_api_keys_response", + "ListHostedApiRoutesResponse": ".list_hosted_api_routes_response", "ListVoicesResponse": ".list_voices_response", "Model": ".model", "ModelsResponse": ".models_response", "NestedChunk": ".nested_chunk", "PaginationMeta": ".pagination_meta", + "RequestAnalyticsBucket": ".request_analytics_bucket", + "RequestAnalyticsResponse": ".request_analytics_response", + "RequestAnalyticsTotals": ".request_analytics_totals", + "RequestTopPath": ".request_top_path", "SpeechChunkEvent": ".speech_chunk_event", "SpeechDoneEvent": ".speech_done_event", "SpeechErrorEvent": ".speech_error_event", @@ -73,6 +131,8 @@ "SpeechStreamEvent_SpeechChunk": ".speech_stream_event", "SpeechStreamEvent_SpeechDone": ".speech_stream_event", "SpeechStreamEvent_SpeechError": ".speech_stream_event", + "StoreAggregateMetric": ".store_aggregate_metric", + "StoreAggregateMetricOp": ".store_aggregate_metric_op", "WatermarkDetectionResponse": ".watermark_detection_response", "WatermarkVerificationResponse": ".watermark_verification_response", } @@ -118,11 +178,39 @@ def __dir__(): "GetVoiceType", "GetVoicesModel", "GetVoicesModelName", + "HostedApi", + "HostedApiAuthMode", + "HostedApiKey", + "HostedApiMount", + "HostedApiMountOperation", + "HostedApiMountOperationAction", + "HostedApiMountOperationChangesItem", + "HostedApiMountSummary", + "HostedApiMountToolKind", + "HostedApiResolver", + "HostedApiResolverOrderBy", + "HostedApiResolverOrderByDirection", + "HostedApiResolverType", + "HostedApiResolverWhereItem", + "HostedApiResolverWhereItemOp", + "HostedApiResolverWriteMode", + "HostedApiRoute", + "HostedApiRouteMethod", + "HostedApiUsage", + "HostedApiUsageRoutesItem", + "HostedApiUserTokenSecret", + "ListHostedApIsResponse", + "ListHostedApiKeysResponse", + "ListHostedApiRoutesResponse", "ListVoicesResponse", "Model", "ModelsResponse", "NestedChunk", "PaginationMeta", + "RequestAnalyticsBucket", + "RequestAnalyticsResponse", + "RequestAnalyticsTotals", + "RequestTopPath", "SpeechChunkEvent", "SpeechDoneEvent", "SpeechErrorEvent", @@ -131,6 +219,8 @@ def __dir__(): "SpeechStreamEvent_SpeechChunk", "SpeechStreamEvent_SpeechDone", "SpeechStreamEvent_SpeechError", + "StoreAggregateMetric", + "StoreAggregateMetricOp", "WatermarkDetectionResponse", "WatermarkVerificationResponse", ] diff --git a/src/speechify/types/hosted_api.py b/src/speechify/types/hosted_api.py new file mode 100644 index 0000000..d42ddfe --- /dev/null +++ b/src/speechify/types/hosted_api.py @@ -0,0 +1,136 @@ +# 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 .hosted_api_auth_mode import HostedApiAuthMode + + +class HostedApi(UniversalBaseModel): + """ + A customer-assembled API: a slug on the shared hosted-API + domain, routes answered by resolvers, and consumer keys. Build product; + the customer assembles it, Speechify hosts it. + """ + + id: str + slug: str + hostname: str = pydantic.Field() + """ + The public host, `.`; empty where no domain is configured. + """ + + base_url: str + name: str = pydantic.Field() + """ + The API's display name; the server title an MCP client shows when `mcp_enabled` is on. + """ + + description: str = pydantic.Field() + """ + What the API is for. When `mcp_enabled` is on it is also the + instructions an MCP client hands its model, so say what the tools + are for and when to use them. + """ + + auth_mode: HostedApiAuthMode = pydantic.Field() + """ + Who the API answers, narrowest first. `owner`: only the API's owner, + with their own Speechify API key or console session. `workspace`: + any member of the owning workspace, the same way. `user_token`: + every request presents a short-lived JWT your backend signed for the + calling user (`sub`, `exp` within 24 hours, optional `aud` naming + this API), verified against the API's signing secret (HS256) or its + registered JWKS URL (RS256 / ES256 / EdDSA). `consumer_key`: every + request presents a `ck_` bearer minted for this API. `public`: no + credential; only read resolvers may be served, the per-IP limiter is + the only bound, and a workspace can refuse it as policy + (`hosted_apis_public_allowed`). The three modes that name a person + (`owner`, `workspace`, `user_token`) let routes bind `{{user.sub}}`, + key the response cache per person, and stamp a written document as + that person's. + """ + + cors_origins: typing.List[str] = pydantic.Field() + """ + Browser origins allowed to call the API (`*` for any). Empty for server-to-server only. + """ + + enabled: bool + daily_run_cap: int = pydantic.Field() + """ + Runs the API's run routes may start per UTC day; the spend ceiling behind a leaked consumer key. + """ + + daily_read_cap: typing.Optional[int] = pydantic.Field(default=None) + """ + Reads the API's store, file, run_latest and tool routes may serve + per UTC day; the ceiling behind a hot path, and for a tool route + behind the vendor budget its calls draw on. Always present on a + current API; optional on the wire so a reader built + before it existed keeps parsing. A + response served from the cache is not a read. Past the cap a read + route answers 429 `route_read_limit_reached`. Without Redis nothing + counts: a public route is paused by the limiter in that state, a + keyed or tokened caller passes. + """ + + daily_write_cap: typing.Optional[int] = pydantic.Field(default=None) + """ + Documents the API's write routes may land per UTC day; the storage + ceiling behind a leaked key on a write route. Past the cap a write + route answers 429 `route_write_limit_reached`. Optional on the wire + for the same reason as `daily_read_cap`. + """ + + mcp_enabled: typing.Optional[bool] = pydantic.Field(default=None) + """ + Whether the API also serves its routes as an MCP server at + `POST /mcp` (streamable HTTP, stateless, POST only): every + enabled route except a file route is listed as a tool, named by the + route's `name` and described by its `description`, and a call runs + under the same audience, consumer keys, per-key limits, daily caps + and request log the route has. An MCP client authenticates with the + same bearer a plain consumer sends (a `ck_` consumer key, an + end-user token, or a Speechify API key on a `workspace` or `owner` + API); the API's OpenAPI document names the address under + `x-speechify-mcp.url`. Off for a new API, where `/mcp` answers 404 + `hosted_mcp_not_enabled`; never true on a `public` API (refused + with 400 on either switch). Optional on the wire for the same + reason as `daily_read_cap`. + """ + + mcp_url: typing.Optional[str] = pydantic.Field(default=None) + """ + The address an MCP client attaches to, `/mcp`, while + `mcp_enabled` is on; null while it is off. Read it here rather + than assembling it. + """ + + project_id: typing.Optional[str] = None + user_token_jwks_url: typing.Optional[str] = pydantic.Field(default=None) + """ + The key set end-user tokens are verified against when set (an + `https` URL on a public host, read on demand and cached briefly). + When null, tokens are verified against the API's signing secret. + """ + + user_token_secret_hint: typing.Optional[str] = pydantic.Field(default=None) + """ + The masked signing secret end-user tokens are verified against + (the rotate-user-token-secret verb mints it); null until minted. + """ + + 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/hosted_api_auth_mode.py b/src/speechify/types/hosted_api_auth_mode.py new file mode 100644 index 0000000..8ddb0d1 --- /dev/null +++ b/src/speechify/types/hosted_api_auth_mode.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +HostedApiAuthMode = typing.Union[ + typing.Literal["consumer_key", "public", "user_token", "workspace", "owner"], typing.Any +] diff --git a/src/speechify/types/hosted_api_key.py b/src/speechify/types/hosted_api_key.py new file mode 100644 index 0000000..9b0bb09 --- /dev/null +++ b/src/speechify/types/hosted_api_key.py @@ -0,0 +1,40 @@ +# 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 HostedApiKey(UniversalBaseModel): + id: str + api_id: str + name: str + key_hint: str = pydantic.Field() + """ + The masked secret shown on every read. + """ + + rate_per_minute: int = pydantic.Field() + """ + Requests per minute this key may make; 0 is unlimited. + """ + + secret: typing.Optional[str] = pydantic.Field(default=None) + """ + The plaintext key, present on the create response only. + """ + + revoked_at: typing.Optional[dt.datetime] = None + last_used_at: typing.Optional[dt.datetime] = None + created_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/hosted_api_mount.py b/src/speechify/types/hosted_api_mount.py new file mode 100644 index 0000000..2932c24 --- /dev/null +++ b/src/speechify/types/hosted_api_mount.py @@ -0,0 +1,40 @@ +# 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 .hosted_api_mount_operation import HostedApiMountOperation +from .hosted_api_mount_summary import HostedApiMountSummary +from .hosted_api_mount_tool_kind import HostedApiMountToolKind + + +class HostedApiMount(UniversalBaseModel): + tool_id: str + tool_name: str + tool_kind: HostedApiMountToolKind + name_prefix: str + path_prefix: str + dry_run: bool + operations: typing.List[HostedApiMountOperation] = pydantic.Field() + """ + One entry per operation the connector offers, in its order, then one per stale route whose operation it no longer offers. + """ + + summary: HostedApiMountSummary + plan_digest: str = pydantic.Field() + """ + Names this plan's content: every operation the connector offers and + every route the API holds for it, whatever `operations` selects, + and nothing that moves without the plan changing. Send it back as + the apply's `plan_digest` to write only this 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/hosted_api_mount_operation.py b/src/speechify/types/hosted_api_mount_operation.py new file mode 100644 index 0000000..a844999 --- /dev/null +++ b/src/speechify/types/hosted_api_mount_operation.py @@ -0,0 +1,65 @@ +# 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 .hosted_api_mount_operation_action import HostedApiMountOperationAction +from .hosted_api_mount_operation_changes_item import HostedApiMountOperationChangesItem +from .hosted_api_route import HostedApiRoute + + +class HostedApiMountOperation(UniversalBaseModel): + operation: str + description: str = pydantic.Field() + """ + The operation's summary or description; the created route's description. + """ + + action_class: str = pydantic.Field() + """ + The operation's effective action class, or empty for a stale route whose operation is gone. + """ + + approval: str = pydantic.Field() + """ + The operation's effective approval, or empty for a stale route whose operation is gone. + """ + + servable: bool = pydantic.Field() + """ + Whether a route can serve it now (approval `auto`, and a read, or a write on a route with `allow_write` on an API that names a person). + """ + + allow_write: bool = pydantic.Field() + """ + Whether the route serves a write: set on a create when the mount includes writes, and the existing route's own value otherwise. + """ + + action: HostedApiMountOperationAction + reason: typing.Optional[str] = pydantic.Field(default=None) + """ + Why a `skip` or a `stale` entry is one, and what fixes it. + """ + + changes: typing.Optional[typing.List[HostedApiMountOperationChangesItem]] = pydantic.Field(default=None) + """ + What an `update` rewrites. + """ + + name: str = pydantic.Field() + """ + The route's name, the MCP tool name the face lists. + """ + + path: str + route: typing.Optional[HostedApiRoute] = 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/hosted_api_mount_operation_action.py b/src/speechify/types/hosted_api_mount_operation_action.py new file mode 100644 index 0000000..0afd3ba --- /dev/null +++ b/src/speechify/types/hosted_api_mount_operation_action.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +HostedApiMountOperationAction = typing.Union[ + typing.Literal["create", "update", "unchanged", "skip", "stale"], typing.Any +] diff --git a/src/speechify/types/hosted_api_mount_operation_changes_item.py b/src/speechify/types/hosted_api_mount_operation_changes_item.py new file mode 100644 index 0000000..1c18e91 --- /dev/null +++ b/src/speechify/types/hosted_api_mount_operation_changes_item.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +HostedApiMountOperationChangesItem = typing.Union[typing.Literal["input_schema"], typing.Any] diff --git a/src/speechify/types/hosted_api_mount_summary.py b/src/speechify/types/hosted_api_mount_summary.py new file mode 100644 index 0000000..aa1ae12 --- /dev/null +++ b/src/speechify/types/hosted_api_mount_summary.py @@ -0,0 +1,23 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel + + +class HostedApiMountSummary(UniversalBaseModel): + create: int + update: int + unchanged: int + skip: int + stale: int + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/speechify/types/hosted_api_mount_tool_kind.py b/src/speechify/types/hosted_api_mount_tool_kind.py new file mode 100644 index 0000000..c7b07f5 --- /dev/null +++ b/src/speechify/types/hosted_api_mount_tool_kind.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +HostedApiMountToolKind = typing.Union[typing.Literal["openapi", "mcp"], typing.Any] diff --git a/src/speechify/types/hosted_api_resolver.py b/src/speechify/types/hosted_api_resolver.py new file mode 100644 index 0000000..725521a --- /dev/null +++ b/src/speechify/types/hosted_api_resolver.py @@ -0,0 +1,214 @@ +# 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 .hosted_api_resolver_order_by import HostedApiResolverOrderBy +from .hosted_api_resolver_type import HostedApiResolverType +from .hosted_api_resolver_where_item import HostedApiResolverWhereItem +from .hosted_api_resolver_write_mode import HostedApiResolverWriteMode +from .store_aggregate_metric import StoreAggregateMetric + + +class HostedApiResolver(UniversalBaseModel): + """ + What answers a route. `type` selects the fields that apply: + `store_query` (store_id, collection, where, order_by, limit), + `store_document` (store_id, collection, document_id), + `store_aggregate` (store_id, collection, where, group_by, metrics: + a summary in one request, from the same implementation as the + collection's `aggregate` operation), + `store_write` (store_id, collection, write_mode, document_id: the + request body lands as a document, the fast path past a run for the + one thing a read resolver cannot do; POST only, never on a public + API, and on an API that names its caller the document is that + person's), + `run_latest` (trigger_id of a schedule trigger), + `run` (trigger_id of a webhook trigger, wait_seconds), + `file` (file_path of one published file; or, on a route whose path + ends in `*`, file_root and file_index for a whole published tree), + `tool` (tool_id of an `openapi` or `mcp` tool definition and the + `operation` on it, an openapi operation's id or one of the MCP + server's tools by name: the POST body is the arguments, held to their + schema, and the connector's answer after the tool's response mapping + is the response. An openapi vendor's JSON comes back as it came, or + `{"text": ...}` when it answered text; an MCP tool answers its + structured content, its text when that text is JSON, `{"text": ...}` + for plain text, or `{"content": [...]}` with every block as the server + sent it when one is not text. For an `mcp` tool the route write lists + the server's tools and pins the chosen tool's input schema on the + route as `input_schema`, so the MCP face and every call use the pin + and an upstream change reaches no consumer until the route is written + again. An operation whose effective class is `read`, on a tool whose + `approval` is null or `auto`, may be served on any API but a public + one. An operation that is not a read is served only on a route with + `allow_write: true`, on an API whose `auth_mode` names a person + (`owner`, `workspace` or `user_token`), and still only with an + `approval` of null or `auto`: a write through a route acts for the + member or end user calling, who is sent to the connector as + `Speechify-User-Identity`, a service account is refused, every write + counts against `daily_write_cap` (429 `route_write_limit_reached`) and + claims the caller's `Idempotency-Key` so a retry replays the first + answer. A route write that breaks any of this is refused with 400 + `validation_failed` on `resolver.tool_id`, `resolver.operation` or + `resolver.allow_write`, as is an MCP server that cannot be listed. + Because a definition can change after its route is written, every call + re-checks it: an operation no longer classified `read` on a route not + switched to writes, or a tool whose `approval` is no longer null or + `auto`, answers 403 `route_tool_not_readable`; a tool + deleted, moved to another project, or without the operation (an MCP + server that no longer lists the tool) answers 409 + `route_tool_unavailable`, which no + retry clears until the route or the tool is fixed, and names which + of the three happened in `error.details.reason` (`tool_deleted`, + `tool_moved`, `operation_removed`). Both refusals carry what the API's + owner changes to fix the route in `error.details.fix`. Arguments that do + not fit the schema answer 400 `validation_failed`; the definition's + `max_requests_per_minute` and the vendor's own throttle both answer 429 + `route_upstream_rate_limited` with `Retry-After`; a vendor error + answers 502 `route_upstream_error` with the vendor's status in + `error.details.upstream_status`, an MCP tool that reports an error + answers it with the tool's own message in `error.details.tool_error`, + and an unreachable vendor or a credential that no longer resolves + answers 502 `route_upstream_error` without either). + """ + + type: HostedApiResolverType + store_id: typing.Optional[str] = None + collection: typing.Optional[str] = None + document_id: typing.Optional[str] = pydantic.Field(default=None) + """ + A literal id, a `{{path.x}}` / `{{query.x}}` / `{{body.x}}` template bound from the request, or a `{{user.x}}` claim of the verified caller. On a `store_write` route it names the document a replace or merge lands on, and is refused on a create. + """ + + write_mode: typing.Optional[HostedApiResolverWriteMode] = pydantic.Field(default=None) + """ + For a `store_write` route: `create` mints an id and answers 201 + with the document; `replace` and `merge` land on `document_id` + (a merge sets the fields sent and keeps the rest) and answer 200. + Omitted, a route with a document_id merges and one without + creates. On an API that names its caller, a replace or merge of + another person's document is not found. + """ + + where: typing.Optional[typing.List[HostedApiResolverWhereItem]] = None + order_by: typing.Optional[HostedApiResolverOrderBy] = None + limit: typing.Optional[int] = pydantic.Field(default=None) + """ + Default page size; the consumer's `limit` query parameter overrides it. + """ + + group_by: typing.Optional[str] = pydantic.Field(default=None) + """ + For a `store_aggregate` route, the projected field to group by. + """ + + metrics: typing.Optional[typing.List[StoreAggregateMetric]] = pydantic.Field(default=None) + """ + For a `store_aggregate` route, the reductions to answer with; the where clauses bind from the request as on a query. + """ + + file_path: typing.Optional[str] = pydantic.Field(default=None) + """ + The path a `kept` file was published under, for a `file` route on + a path without a wildcard. The route answers that file's bytes + under the file's own media type - the only route type that does + not return JSON - so a page renders and a spreadsheet downloads. + Must be a GET. + + A literal path, or a `{{path.x}}` template that replaces the whole + value and binds one segment of the URL. A template embedded in a + longer path (`a/{{path.x}}.html`) is refused - substitution here + replaces the value, it does not interpolate into it. To serve many + files, or a nested tree, mount a route ending in `*` and use + file_root instead. + + Only a `kept`, workspace-wide file is reachable: working material + handed to a run cannot be published by pointing a route at it, and + a file uploaded for one person is never served by a route, because + a route answers whoever holds the URL. A `{{user.x}}` template may + shape the path on a `user_token` API, but the file it reaches is + still one the workspace published. A path with nothing at it + answers `404`, so an artifact can be wired before it is uploaded + and replaced without touching the route. + """ + + file_root: typing.Optional[str] = pydantic.Field(default=None) + """ + For a `file` route whose path ends in `*`: the published-path + prefix the tree lives under (`dash` serves `dash/index.html` at + `/app/index.html` on a route at `/app/*`). Empty serves every + published file under the route. A rebuild that renames the tree's + assets touches no route. Refused on a route without the wildcard. + """ + + file_index: typing.Optional[str] = pydantic.Field(default=None) + """ + For a tree route: the entry document, relative to file_root, that + a bare prefix answers and that an unmatched path with no file + extension falls back to, so a client-routed application survives + a refresh and a deep link. A missing asset with an extension stays + a 404. Omit for a plain file tree. + """ + + trigger_id: typing.Optional[str] = None + wait_seconds: typing.Optional[int] = pydantic.Field(default=None) + """ + How long a `run` route waits for the run before answering 202 (default 20; 0 answers 202 at once). + """ + + tool_id: typing.Optional[str] = pydantic.Field(default=None) + """ + For a `tool` route: the `openapi` or `mcp` tool definition whose + operation the route calls, as `POST /v1/agents/tool-definitions` + returned it. It must live in the API's project (409 + `cross_project_reference` otherwise). The route refuses a definition + of another kind, an operation whose effective class is not `read`, + and a tool whose `approval` is set to anything but `auto`, since a + route has nobody to approve a call: set it to null or `auto` first. + """ + + operation: typing.Optional[str] = pydantic.Field(default=None) + """ + For a `tool` route: the operation to call. On an `openapi` tool it + is the definition's `operations[].id` (the same value + `POST /v1/agents/tool-definitions/test-openapi-call` takes as + `operation`); on an `mcp` tool it is the server's own tool name, + as `POST /v1/agents/tool-definitions/test-mcp-connection` lists + it. The route is a POST whose JSON body is the arguments, validated + against the definition's argument schema for an openapi operation + and against `input_schema` for an MCP tool. + """ + + allow_write: typing.Optional[bool] = pydantic.Field(default=None) + """ + For a `tool` route: serve an operation that is not a read (refused + on an operation that is one). Only on + an API whose `auth_mode` is `owner`, `workspace` or `user_token`, + and only for an operation whose effective `approval` is `auto`; + the API cannot then be switched to `consumer_key` or `public` + while the route serves writes. A write acts for the person + calling, counts against `daily_write_cap`, and claims + `Idempotency-Key`. On the MCP face the tool is not read-only. + """ + + input_schema: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None) + """ + For a `tool` route on an `mcp` tool: the MCP tool's input schema + as the server listed it when the route was last written, pinned so + the MCP face lists it and every call is checked against it without + reaching the server. Set by the platform on every write that + carries a resolver; a value you send is replaced. Absent on an + openapi route, whose schema the definition holds. Write the route + again to pick up a schema the server changed. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[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/hosted_api_resolver_order_by.py b/src/speechify/types/hosted_api_resolver_order_by.py new file mode 100644 index 0000000..e95603d --- /dev/null +++ b/src/speechify/types/hosted_api_resolver_order_by.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, UniversalBaseModel +from .hosted_api_resolver_order_by_direction import HostedApiResolverOrderByDirection + + +class HostedApiResolverOrderBy(UniversalBaseModel): + field: str + direction: typing.Optional[HostedApiResolverOrderByDirection] = 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/hosted_api_resolver_order_by_direction.py b/src/speechify/types/hosted_api_resolver_order_by_direction.py new file mode 100644 index 0000000..43d335e --- /dev/null +++ b/src/speechify/types/hosted_api_resolver_order_by_direction.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +HostedApiResolverOrderByDirection = typing.Union[typing.Literal["asc", "desc"], typing.Any] diff --git a/src/speechify/types/hosted_api_resolver_type.py b/src/speechify/types/hosted_api_resolver_type.py new file mode 100644 index 0000000..f50fd9f --- /dev/null +++ b/src/speechify/types/hosted_api_resolver_type.py @@ -0,0 +1,10 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +HostedApiResolverType = typing.Union[ + typing.Literal[ + "store_query", "store_document", "store_aggregate", "store_write", "run_latest", "run", "file", "tool" + ], + typing.Any, +] diff --git a/src/speechify/types/hosted_api_resolver_where_item.py b/src/speechify/types/hosted_api_resolver_where_item.py new file mode 100644 index 0000000..0b4880e --- /dev/null +++ b/src/speechify/types/hosted_api_resolver_where_item.py @@ -0,0 +1,22 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel +from .hosted_api_resolver_where_item_op import HostedApiResolverWhereItemOp + + +class HostedApiResolverWhereItem(UniversalBaseModel): + field: str + op: HostedApiResolverWhereItemOp + value: typing.Any + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[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/hosted_api_resolver_where_item_op.py b/src/speechify/types/hosted_api_resolver_where_item_op.py new file mode 100644 index 0000000..02a1010 --- /dev/null +++ b/src/speechify/types/hosted_api_resolver_where_item_op.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +HostedApiResolverWhereItemOp = typing.Union[typing.Literal["eq", "ne", "gt", "gte", "lt", "lte", "in"], typing.Any] diff --git a/src/speechify/types/hosted_api_resolver_write_mode.py b/src/speechify/types/hosted_api_resolver_write_mode.py new file mode 100644 index 0000000..be0f802 --- /dev/null +++ b/src/speechify/types/hosted_api_resolver_write_mode.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +HostedApiResolverWriteMode = typing.Union[typing.Literal["create", "replace", "merge"], typing.Any] diff --git a/src/speechify/types/hosted_api_route.py b/src/speechify/types/hosted_api_route.py new file mode 100644 index 0000000..fb3f605 --- /dev/null +++ b/src/speechify/types/hosted_api_route.py @@ -0,0 +1,68 @@ +# 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 .hosted_api_resolver import HostedApiResolver +from .hosted_api_route_method import HostedApiRouteMethod + + +class HostedApiRoute(UniversalBaseModel): + id: str + api_id: str + method: HostedApiRouteMethod + path: str = pydantic.Field() + """ + Lowercase segments, one-segment `{params}`, and optionally a trailing `*` that serves a published tree (file routes only). + """ + + name: str = pydantic.Field() + """ + The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. + On an API with `mcp_enabled` the MCP tool's name comes from it: + each run of other characters (a space included) becomes `_`, + leading and trailing `_` are dropped, and the result is cut to 64 + characters. A route with no name is listed under a name built from + its method and path, and a name two routes would share takes `_2`, + `_3` in route order; the face's `tools/list` is the authority. Pick + a verb-first name a model can choose by. + """ + + description: str = pydantic.Field() + """ + What the route does. On an API with `mcp_enabled` it is the MCP + tool description a client's model reads to choose the tool, so say + what it returns and when to call it; a `tool` route with none falls + back to the operation's summary. + """ + + resolver: HostedApiResolver + response_schema: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None) + """ + Optional JSON Schema of the response body, rendered into the OpenAPI document. + """ + + cache_ttl_seconds: int = pydantic.Field() + """ + Cache-Control max-age on GET responses, and the shared response + cache's lifetime for store and run_latest routes; 0 disables + caching, except on a public API, where a GET route with 0 is served + with the platform default of 60 seconds so an anonymous crawler + never reads storage per request. File routes are never in the + response cache; they carry the header for the edge. + """ + + enabled: bool + 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/hosted_api_route_method.py b/src/speechify/types/hosted_api_route_method.py new file mode 100644 index 0000000..10a23d4 --- /dev/null +++ b/src/speechify/types/hosted_api_route_method.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +HostedApiRouteMethod = typing.Union[typing.Literal["GET", "POST"], typing.Any] diff --git a/src/speechify/types/hosted_api_usage.py b/src/speechify/types/hosted_api_usage.py new file mode 100644 index 0000000..ec69ad9 --- /dev/null +++ b/src/speechify/types/hosted_api_usage.py @@ -0,0 +1,47 @@ +# 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 .hosted_api_usage_routes_item import HostedApiUsageRoutesItem + + +class HostedApiUsage(UniversalBaseModel): + day: str = pydantic.Field() + """ + The UTC day the counters cover, `YYYY-MM-DD`. + """ + + reads: int = pydantic.Field() + """ + Reads served today across the API's store, file, run_latest and tool routes. + """ + + daily_read_cap: int + runs: int = pydantic.Field() + """ + Runs started today through the API's run routes. + """ + + daily_run_cap: int + writes: int = pydantic.Field() + """ + Documents landed today through the API's write routes. + """ + + daily_write_cap: int + routes: typing.List[HostedApiUsageRoutesItem] + counters_available: bool = pydantic.Field() + """ + False where nothing counts (no Redis); the numbers are then zero, not quiet. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[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/hosted_api_usage_routes_item.py b/src/speechify/types/hosted_api_usage_routes_item.py new file mode 100644 index 0000000..e237a9f --- /dev/null +++ b/src/speechify/types/hosted_api_usage_routes_item.py @@ -0,0 +1,40 @@ +# 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 HostedApiUsageRoutesItem(UniversalBaseModel): + route_id: str + reads: int + writes: int + tool_calls: typing.Optional[int] = pydantic.Field(default=None) + """ + For a `tool` route, the calls its connector was asked to answer today, whatever the outcome. + """ + + upstream_errors: typing.Optional[int] = pydantic.Field(default=None) + """ + For a `tool` route, today's calls the connector answered with an error or never answered (502 `route_upstream_error`). + """ + + upstream_throttles: typing.Optional[int] = pydantic.Field(default=None) + """ + For a `tool` route, today's calls throttled by the tool's `max_requests_per_minute` or by the connector (429 `route_upstream_rate_limited`). + """ + + upstream_latency_ms_mean: typing.Optional[int] = pydantic.Field(default=None) + """ + For a `tool` route, the mean time today's calls took, in milliseconds, connector included; null before the first call. A slow or failing connector shows here rather than as a slow API. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[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/hosted_api_user_token_secret.py b/src/speechify/types/hosted_api_user_token_secret.py new file mode 100644 index 0000000..84e72b8 --- /dev/null +++ b/src/speechify/types/hosted_api_user_token_secret.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 HostedApiUserTokenSecret(UniversalBaseModel): + secret: str = pydantic.Field() + """ + The plaintext signing secret, present on this response only. Sign end-user tokens with it (HS256). + """ + + secret_hint: str = pydantic.Field() + """ + The masked form every later read shows as `user_token_secret_hint`. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[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_hosted_ap_is_response.py b/src/speechify/types/list_hosted_ap_is_response.py new file mode 100644 index 0000000..2489467 --- /dev/null +++ b/src/speechify/types/list_hosted_ap_is_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 .hosted_api import HostedApi +from .pagination_meta import PaginationMeta + + +class ListHostedApIsResponse(PaginationMeta): + apis: typing.List[HostedApi] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[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_hosted_api_keys_response.py b/src/speechify/types/list_hosted_api_keys_response.py new file mode 100644 index 0000000..bcbf81f --- /dev/null +++ b/src/speechify/types/list_hosted_api_keys_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 .hosted_api_key import HostedApiKey +from .pagination_meta import PaginationMeta + + +class ListHostedApiKeysResponse(PaginationMeta): + keys: typing.List[HostedApiKey] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[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_hosted_api_routes_response.py b/src/speechify/types/list_hosted_api_routes_response.py new file mode 100644 index 0000000..91c0c6e --- /dev/null +++ b/src/speechify/types/list_hosted_api_routes_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 .hosted_api_route import HostedApiRoute +from .pagination_meta import PaginationMeta + + +class ListHostedApiRoutesResponse(PaginationMeta): + routes: typing.List[HostedApiRoute] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[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/request_analytics_bucket.py b/src/speechify/types/request_analytics_bucket.py new file mode 100644 index 0000000..403c6cf --- /dev/null +++ b/src/speechify/types/request_analytics_bucket.py @@ -0,0 +1,74 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel +from ..core.serialization import FieldMetadata + + +class RequestAnalyticsBucket(UniversalBaseModel): + """ + One granularity bucket of the request analytics series. + """ + + time: dt.datetime = pydantic.Field() + """ + Start of the bucket. + """ + + requests: int + errors: int + server_errors: int + success_rate: float + avg_latency_ms: float + p50latency_ms: typing_extensions.Annotated[ + float, FieldMetadata(alias="p50_latency_ms"), pydantic.Field(alias="p50_latency_ms") + ] + p95latency_ms: typing_extensions.Annotated[ + float, FieldMetadata(alias="p95_latency_ms"), pydantic.Field(alias="p95_latency_ms") + ] + p99latency_ms: typing_extensions.Annotated[ + float, FieldMetadata(alias="p99_latency_ms"), pydantic.Field(alias="p99_latency_ms") + ] + ttfb_requests: int = pydantic.Field() + """ + How many of `requests` were streaming synthesis (`POST + /v1/audio/stream`) and so reported a time-to-first-byte. Every other + route leaves the `p*_ttfb_ms` fields meaningless; when this is 0, + render a gap rather than a zero. + """ + + p50ttfb_ms: typing_extensions.Annotated[ + float, + FieldMetadata(alias="p50_ttfb_ms"), + pydantic.Field( + alias="p50_ttfb_ms", description="Median time to first byte over the bucket's streaming requests." + ), + ] + p95ttfb_ms: typing_extensions.Annotated[ + float, + FieldMetadata(alias="p95_ttfb_ms"), + pydantic.Field( + alias="p95_ttfb_ms", + description="95th-percentile time to first byte over the bucket's streaming\nrequests. This is also time to first *audio*: the streaming response\nbody is raw audio, so the first byte is the first audio byte.\nScoped to streaming on purpose. `POST /v1/audio/speech` returns the\nwhole audio Base64-encoded in one JSON response, so its TTFB is its\ntotal latency (already reported as `p*_latency_ms`) and blending the\ntwo would describe neither.", + ), + ] + p99ttfb_ms: typing_extensions.Annotated[ + float, + FieldMetadata(alias="p99_ttfb_ms"), + pydantic.Field( + alias="p99_ttfb_ms", description="99th-percentile time to first byte over the bucket's streaming requests." + ), + ] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[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/request_analytics_response.py b/src/speechify/types/request_analytics_response.py new file mode 100644 index 0000000..ea2b98e --- /dev/null +++ b/src/speechify/types/request_analytics_response.py @@ -0,0 +1,61 @@ +# 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 .request_analytics_bucket import RequestAnalyticsBucket +from .request_analytics_totals import RequestAnalyticsTotals +from .request_top_path import RequestTopPath + + +class RequestAnalyticsResponse(UniversalBaseModel): + """ + Aggregate request analytics over a window of the request log. + """ + + granularity: str = pydantic.Field() + """ + The time-bucket size of the series. + """ + + start: dt.datetime = pydantic.Field() + """ + Inclusive start of the resolved window. + """ + + end: dt.datetime = pydantic.Field() + """ + Exclusive end of the resolved window. + """ + + totals: RequestAnalyticsTotals + series: typing.List[RequestAnalyticsBucket] = pydantic.Field() + """ + Per-bucket time series, oldest first. + """ + + top_paths: typing.List[RequestTopPath] = pydantic.Field() + """ + The most-called route patterns in the window, busiest first. + """ + + project_filter_truncated: typing.Optional[bool] = pydantic.Field(default=None) + """ + True when a `project_id` filter's pinned key set exceeded the cap this endpoint applies: the result reflects only the project's newest keys within the cap, not its full traffic. Omitted (false) when no project filter was requested or its key set fit under the cap. + """ + + history_starts_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) + """ + Hosted API analytics only: the first request in the last 30 days the request log attributes to this API. Requests before it cannot be attributed, so a bucket before it is missing data rather than zero traffic. Absent when no such request exists, in which case no bucket is known to be complete. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[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/request_analytics_totals.py b/src/speechify/types/request_analytics_totals.py new file mode 100644 index 0000000..88787b9 --- /dev/null +++ b/src/speechify/types/request_analytics_totals.py @@ -0,0 +1,46 @@ +# 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 RequestAnalyticsTotals(UniversalBaseModel): + """ + Window-wide rollups. + """ + + requests: int = pydantic.Field() + """ + Total requests in the window. + """ + + errors: int = pydantic.Field() + """ + Responses with a 4xx or 5xx status. + """ + + server_errors: int = pydantic.Field() + """ + Responses with a 5xx status. + """ + + success_rate: float = pydantic.Field() + """ + Share of non-error responses, 0..1. + """ + + sdk_requests: int = pydantic.Field() + """ + Requests in the window that carried a Speechify SDK identity header, a subset of `requests`. Zero means no SDK traffic, which is a real answer rather than missing data. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[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/request_top_path.py b/src/speechify/types/request_top_path.py new file mode 100644 index 0000000..30db354 --- /dev/null +++ b/src/speechify/types/request_top_path.py @@ -0,0 +1,32 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel + + +class RequestTopPath(UniversalBaseModel): + """ + A called route pattern and its request count in the window. + """ + + route: str = pydantic.Field() + """ + The route pattern as the request log labels it. On a hosted API's analytics, the label of the route `route_id` names, and empty for a route since deleted. + """ + + count: int + route_id: typing.Optional[str] = pydantic.Field(default=None) + """ + Hosted API analytics only - the route the row counts (`route_...`). + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[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/store_aggregate_metric.py b/src/speechify/types/store_aggregate_metric.py new file mode 100644 index 0000000..824b2ae --- /dev/null +++ b/src/speechify/types/store_aggregate_metric.py @@ -0,0 +1,32 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel +from ..core.serialization import FieldMetadata +from .store_aggregate_metric_op import StoreAggregateMetricOp + + +class StoreAggregateMetric(UniversalBaseModel): + op: StoreAggregateMetricOp + field: typing.Optional[str] = pydantic.Field(default=None) + """ + The projected numeric field to reduce; `count` takes none. A document whose field is absent or not a number is left out of that metric. + """ + + as_: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="as"), + pydantic.Field(alias="as", description="The key the metric answers under; `op` or `op_field` when omitted."), + ] = 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/store_aggregate_metric_op.py b/src/speechify/types/store_aggregate_metric_op.py new file mode 100644 index 0000000..2d1f870 --- /dev/null +++ b/src/speechify/types/store_aggregate_metric_op.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +StoreAggregateMetricOp = typing.Union[typing.Literal["count", "sum", "avg", "min", "max"], typing.Any] From fbd38bfde880d421f35df1ff03354903f023521d Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 16:07:21 +0000 Subject: [PATCH 209/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index d778241..3b232bb 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "62a7020b6bbdd9960592d310ce550a17bc507016", + "originGitCommit": "7e1db001d258b9594f9dadca8ef92b40adaf5fb1", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 9eae0142a6804c29d4080018eeb5fcc8c70c5457 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 16:26:30 +0000 Subject: [PATCH 210/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 3b232bb..da9ee9c 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "7e1db001d258b9594f9dadca8ef92b40adaf5fb1", + "originGitCommit": "5c3c441843a4c2b69f737e97036b97732fe19ad0", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 67be9f22d2d1d983eb15e2513fb79bca3835da7e Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 21:19:00 +0000 Subject: [PATCH 211/272] SDK regeneration --- .fern/metadata.json | 2 +- poetry.lock | 511 ++++++++++++---------- src/speechify/audio/client.py | 24 +- src/speechify/audio/raw_client.py | 24 +- src/speechify/types/speech_error_event.py | 3 +- 5 files changed, 316 insertions(+), 248 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index da9ee9c..9fbc826 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "5c3c441843a4c2b69f737e97036b97732fe19ad0", + "originGitCommit": "25b3a09d3df5b6f4962bb54fda1cdf9f78e325d7", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/poetry.lock b/poetry.lock index 42b00d6..14cf023 100644 --- a/poetry.lock +++ b/poetry.lock @@ -829,134 +829,151 @@ testing = ["coverage", "pytest", "pytest-benchmark"] [[package]] name = "propcache" -version = "0.5.2" +version = "0.5.3" 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.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:4e443bc079b57cb231ed45a8a55879a868bf56449ca7a719e58988375f828d8d"}, + {file = "propcache-0.5.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3ecda25c86ee7500b5348cb1e8831ee4324daa45ec7e24265808121537c85bbe"}, + {file = "propcache-0.5.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:31239c475a43568c0d64d5e10208f449e004ff4894458507fed5ce53403ac3a2"}, + {file = "propcache-0.5.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5867f7d672f239fe70569c947a4453ed44f82c166ff08d4abf6cf7350d9a4b12"}, + {file = "propcache-0.5.3-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:544f08889abce275a77b27add29cdaa87a36e6ce6abeffcb4e87b4e29c577711"}, + {file = "propcache-0.5.3-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:58515aacf6ba8ad47a0b072ff2a27ccb39d7691ed9101636e6b5e151758b11c0"}, + {file = "propcache-0.5.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e61294a7d9b07a79b3c670dbceaa4aca37542e68cdf9411e04ed81cabb2f62a5"}, + {file = "propcache-0.5.3-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1956d7e98f2150e4b0aae71dccf61fb5628208c63d57e2dafae68301fe8e1a36"}, + {file = "propcache-0.5.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:79af5bf10e5a631ba601c33f379e37e64f036c55e60a99254ec55ab4678d268b"}, + {file = "propcache-0.5.3-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:400db553b2a2af6ea41ff3b6d5972fe493180fd519c1d001c9581fd446bdc150"}, + {file = "propcache-0.5.3-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:0275013737080d5d113be6927ca6055a3e393a9d95f81667c4bdb927915aac2a"}, + {file = "propcache-0.5.3-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:c2fd56f3b358f07e4fefcf54942f20f64e905db63dff8fddf0c67730c748b3d1"}, + {file = "propcache-0.5.3-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:8e507119af1a2d417d75ebe202bc0a2a282ad0a3e6cf38f447a6cad0a2c5263e"}, + {file = "propcache-0.5.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:d8a41e6f549e8bc13dc7b4987f5e96097bc2fefc66b682b3947a8e959f75a9c7"}, + {file = "propcache-0.5.3-cp310-cp310-win32.whl", hash = "sha256:e8e6acf498ee3d0a5c2a8468e23af7acb017c5b219b29e302af2636818d3830e"}, + {file = "propcache-0.5.3-cp310-cp310-win_amd64.whl", hash = "sha256:09513990e2f33c9de838f0ab11b62660b3ea225000945d10143007e51539088c"}, + {file = "propcache-0.5.3-cp310-cp310-win_arm64.whl", hash = "sha256:5964c7e2f632facc552ab0e163cac05e1ce42acba20b4b24d445139629ed7625"}, + {file = "propcache-0.5.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:b7edbbf2d9ba5829663dbc83cdb6e2b13bc80cd36f0bf185419dcbbb4930af7e"}, + {file = "propcache-0.5.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:d2c6ccfcc810ac7f8782593934fa2215669a401ef43fcae5a8cab80ce4754a46"}, + {file = "propcache-0.5.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:2f1723f7a060a20eb1f9971fa69c9931b5ebd253bef8baaa48a1cbd1c01c7bb7"}, + {file = "propcache-0.5.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ba1ae9d55025434790882c2f1be727e725ccef83876a112af52247c7ed7ce321"}, + {file = "propcache-0.5.3-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:30f9d52fdd02a216601f588e5659dd39cb7d2a0ef59935d33c5077718201f8da"}, + {file = "propcache-0.5.3-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0fdd72f694faf2b34907484b53e5df7ae6b5dad6a6e03564c6b872ccebb80a7d"}, + {file = "propcache-0.5.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:35de8d67f6b6a3830f845ee7cd3ae47189d7dd66088aff9dfd1fe50f5bda5a60"}, + {file = "propcache-0.5.3-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:377011845a2b1a8b11ab2ca33547aea1320d6f70c015bafe26486f0882dc49fb"}, + {file = "propcache-0.5.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:2537fa4f56c12fa897f9371e4e5910417aa49ff916a7dc549a22061b46d33355"}, + {file = "propcache-0.5.3-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:3eb545ffc0db5c86e83ba1aec3616efbaac9c22f05daff095005472874c12e91"}, + {file = "propcache-0.5.3-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:023d4e58beeb0865cfc62e2e14bf4ed30e21dfc20ce16ac24fb05516a09e1d18"}, + {file = "propcache-0.5.3-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:d693b78ecb4df14b3aa636d9c2a40e5ab3b4f81a3bb569fddc2b28299f1ff0d1"}, + {file = "propcache-0.5.3-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:a5ea7cf6d6a0b67a64e6744219265bc5406d827ca3b46ae2d748c3aaa1d5e1d2"}, + {file = "propcache-0.5.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:66be2cef41263d823517ee617d19fd105a70ff58a0776e5e47cfde1196bfa2f2"}, + {file = "propcache-0.5.3-cp311-cp311-win32.whl", hash = "sha256:d8eed2e84204b4402407a5d1ca124cb653b9a6ba2fc01ce1ef1071a75ac9e176"}, + {file = "propcache-0.5.3-cp311-cp311-win_amd64.whl", hash = "sha256:e01abf74acc057c0ef8533d5688a2bed25923cf05c450a0d82229fa538cf83c1"}, + {file = "propcache-0.5.3-cp311-cp311-win_arm64.whl", hash = "sha256:ba7220f33a3df68245b09bc519e2c3f9f5c4123ea68f007c11529ecac8615200"}, + {file = "propcache-0.5.3-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:eeb4e5a10149960ed021b8e35fa22440e106db6322a9f5249ad8992f38855ceb"}, + {file = "propcache-0.5.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:b09edf2908fa5f0ba84fdb9c1bc6f346945b51541013ac29b12d20218f213279"}, + {file = "propcache-0.5.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2db81e15c4e0171ad26845b67a1e295ba446e717e47fefaf47f22ae0b2eca71e"}, + {file = "propcache-0.5.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:50079e8be4f1bc33e8265f35fbe6449017901db626bc6b735181568c4bfb5e73"}, + {file = "propcache-0.5.3-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a8ea844a859c3060a44485c4e842df3ead69ca98ca5550594757aac11dfef30d"}, + {file = "propcache-0.5.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:8ec76f86ec2de069358d896c468be3c1cb3b5ed049e3cec3ecb3015806313606"}, + {file = "propcache-0.5.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:27a36f13d838accaa887f9e54af4866ae344a51eb59b99dbd6cfeee701fc98ff"}, + {file = "propcache-0.5.3-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1a536910fbd2f4ea76acd6b1b50708ce602a27673ef5e5b2c8ba373c2f5127cf"}, + {file = "propcache-0.5.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:f95a390defc963a5543012685b57eb9cd47078f50c4a3bb5c5cd7719c4175112"}, + {file = "propcache-0.5.3-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:1d617a68a5f383855af3eec608ddd98dd3b964184011f20755a4e34acb194a5d"}, + {file = "propcache-0.5.3-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:28afdbaf9f1bf34bc719e0381a4699705990c59f412e43ff25f91a01ff6676af"}, + {file = "propcache-0.5.3-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:014cec8c711df6f22e0a50cfcb3e98d3d659856daa75e9dc2f1e206204027519"}, + {file = "propcache-0.5.3-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:ae72c39267ffc08bab9239fbdef5fb8bb0fc410f141b1ed283f0dd349b8bcdb0"}, + {file = "propcache-0.5.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:22e8849a90d46d920469eacc52cf28dbfce9d9dc7fb0ee36ba3aa4b117fc8311"}, + {file = "propcache-0.5.3-cp312-cp312-win32.whl", hash = "sha256:71dbe01ca877ca1c7d61f0f83b71f2c994554ef52983fe7c6400d9c483c477cb"}, + {file = "propcache-0.5.3-cp312-cp312-win_amd64.whl", hash = "sha256:2367fbfaf980a0ac082c64b53ae669ee704515134a28cd8c680642bd90a2ddd5"}, + {file = "propcache-0.5.3-cp312-cp312-win_arm64.whl", hash = "sha256:646d9d567fdc8f1f8ab3e785f8702175a9212ea3432af2506f2f914f21c3ae16"}, + {file = "propcache-0.5.3-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ef59cf75b4d63fed6308d933db810b05f0738925b1470b6caad88afed597c7b1"}, + {file = "propcache-0.5.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:9f10fce5b91adc67a566817365381279b6f4f3b19fbb58eacd2ab8d045e75492"}, + {file = "propcache-0.5.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:bc469f68cc978501b6ec69b49f67738ae099064002d0bea283c491d086e93a27"}, + {file = "propcache-0.5.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f683f8eac4e695c48a3e24a7347b392322219b6a99351d7b6bf70c9ef2262126"}, + {file = "propcache-0.5.3-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9fc1d60bc45efd3b1440a17e4a7eea268d34c22eb30ccec10246b5b6833a603c"}, + {file = "propcache-0.5.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:384ae10f8d6595595361566f9073578c131b1eb7c651bce5d78c2c0d411a221f"}, + {file = "propcache-0.5.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f18065f005006f20fde9c08d21b375d52908b72c493e9b2531dd25da89a8ef50"}, + {file = "propcache-0.5.3-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:2c73e4520974b55081770703be7066d3b346db16abe399148a154be0f9f92c81"}, + {file = "propcache-0.5.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:0e55ddb8404887d1bffb0937287cc27c98a0f1a4b91453b21b9d5c9df0743377"}, + {file = "propcache-0.5.3-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:5b90847530d99dfc9ab31a6b4432fe92ad9868630b45acac21bb08468ea82614"}, + {file = "propcache-0.5.3-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:c71593d15b601f785e4f0362822d3101b999e4a696210281e83e035abb8c33ba"}, + {file = "propcache-0.5.3-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:d3f6e1a3a0efc4ea71b8dd4310c4c5693686ad0c3b4c657beafea3aaf6a28428"}, + {file = "propcache-0.5.3-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:45115e5e32fcc253de3f14633ca1c982239c9ba37ba41ca45a7e30b3afeb3b77"}, + {file = "propcache-0.5.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:d7d377c2e8ddd7b7254c3ec6b23275bfb9d307a32bef017ba7dc94b94f45c509"}, + {file = "propcache-0.5.3-cp313-cp313-win32.whl", hash = "sha256:442d4a18df8be3ceff91bcd8eb850c263f36726287327499c68e72482ac07b48"}, + {file = "propcache-0.5.3-cp313-cp313-win_amd64.whl", hash = "sha256:a8e2d2bb4285a5fa8e5c01465b5379abf8f244d4978855558432987ef62672f1"}, + {file = "propcache-0.5.3-cp313-cp313-win_arm64.whl", hash = "sha256:82ff2cf7bcb0c207ad1d207e1a51ea1d53aff47628729c7368c5ead6924d3b7f"}, + {file = "propcache-0.5.3-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:7ee15901025c40b58ee5547a7c244841701c09758f3e98ddbb0b876d96d52ad4"}, + {file = "propcache-0.5.3-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:37e41cd6c1a27ddbbd0b556fb0c02ae8e55c41c8a122c83f1350a017f0bbc69c"}, + {file = "propcache-0.5.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:04e21d1eea62765ee0306c80c61937255a5cd99c9c56d6cb6100ca5794e8b2f3"}, + {file = "propcache-0.5.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f698081e39d0a63f44ae35da7c43c595f9f60d26ee08e575576fd7df3029e31b"}, + {file = "propcache-0.5.3-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:1a8588f64d4d5d6e65d7faa9e0d1dce9fdb25e50aca194cffc6106deaf9d320a"}, + {file = "propcache-0.5.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:69f226874a50eb2fdd0db47303b66b1084a545aa1d68d45ce2a1c9920cf2ea00"}, + {file = "propcache-0.5.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bfa60b1dbd3c7881730407df60d2be83058ed145701b5c51ff113b7a3ced2224"}, + {file = "propcache-0.5.3-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a78a241677f693485ee6c0165ab657341e7ecac93f8d53cd70771ed6f3eafb61"}, + {file = "propcache-0.5.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c5930611bf42350905ace62fc8306146cb644c5d43efba541e68f4d22383e459"}, + {file = "propcache-0.5.3-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:a7f485b78c7ab8e8b9c3375d32d25a077d530cfc676c665e89685fccfa2ecbbb"}, + {file = "propcache-0.5.3-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:1162ba1e960ea6dd0453ff3ae29328a37307486c260c93343782ea1d56eca6f2"}, + {file = "propcache-0.5.3-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:49f3c98e977785ea49a8b99463cd81f343c8307dc98fe485fb94288597d8c01a"}, + {file = "propcache-0.5.3-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:8ef15c7a41364b098c26458dc3b57b7a5db6e042661c5cbeb75ed78e503162cb"}, + {file = "propcache-0.5.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:54f06f17c66add28dc79e314e3b2ba7a9612564314d8b2c27b2a8c2f270d33c7"}, + {file = "propcache-0.5.3-cp314-cp314-win32.whl", hash = "sha256:37a99cf741523fa5406ef2c60925b7ad616afd772fb3364b431a921404853d46"}, + {file = "propcache-0.5.3-cp314-cp314-win_amd64.whl", hash = "sha256:10573db5b40f55728e0abd5fc47096db6162ff612af10430ae93377af09e2a4b"}, + {file = "propcache-0.5.3-cp314-cp314-win_arm64.whl", hash = "sha256:9e561c183c72665752cc2ede30d985a9e80534f43aaa16fa6e1224d151ad54c2"}, + {file = "propcache-0.5.3-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:622ae786b1e3d46684b8866cd7415c9eca26f341757c4bfdbdfad8ee129a7103"}, + {file = "propcache-0.5.3-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:0a3af1190a9c62a0da8d90a0a613d6b69029e86ee60b599e146c1e79a80c77d0"}, + {file = "propcache-0.5.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:dcc70083abd3374d7ec338c6dfd37030bc1e54ed2c71abe2c51f16c3d7af5531"}, + {file = "propcache-0.5.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:665451eaeb3e5e09129c4a789d63620502f50c16be25ebe9370f7dc05ed4d49b"}, + {file = "propcache-0.5.3-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c8c8e8b2dfe7d7bbca58b12170cd65b4f7ec701e67812a853b7da8023f681c9f"}, + {file = "propcache-0.5.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5b6239f0d6175da9d07084c74628af8baa258fe8929faf6a75ce425b0db6ec9f"}, + {file = "propcache-0.5.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:104e8d289159297822541566d60769b81af3bfac971509a91c8b94cb2554d7dc"}, + {file = "propcache-0.5.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:50eea49bd9c874378a015e8363befc05b3545a0bb1312ed44ba895cd7c5c9b3a"}, + {file = "propcache-0.5.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:0f0e69dcc0aa9bd4aa22c9cf3f52cd92ed2fd067f2df93e56dc1d1c98d0538e5"}, + {file = "propcache-0.5.3-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:9498e6b074f7e4c58fa518e8f87944f87e612ad910bedaabfdc07695d91efa8b"}, + {file = "propcache-0.5.3-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:b3541fae8294f9129e3ea393d146f28c035acf9106ee2025121dbd2b7bb2516e"}, + {file = "propcache-0.5.3-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:105ad7d80740aa4d44f025a7f7335599e0b26faa4d6c80918069c16e108d29db"}, + {file = "propcache-0.5.3-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:9851f8a7bd86a455ba5f32652b13dae69011d93e44d3433fed7eb54b10f3d9e2"}, + {file = "propcache-0.5.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:3745e60d95e52a782b1e99ecccc72d22ee61c86c1e368647fff0444b9ec4bb70"}, + {file = "propcache-0.5.3-cp314-cp314t-win32.whl", hash = "sha256:ec2e387ce38d9b73054a7e96d70d22c8471a83df6205019442394b079d26a84d"}, + {file = "propcache-0.5.3-cp314-cp314t-win_amd64.whl", hash = "sha256:8a3396b1822f0c5291a11bdf93877d3118d5cafca5905e185582beee039fa508"}, + {file = "propcache-0.5.3-cp314-cp314t-win_arm64.whl", hash = "sha256:0dd0ef45b87c5a59970b42dd70493b3c022be490a2268dfd391cdacdfb9a611b"}, + {file = "propcache-0.5.3-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:888624d71be1029609ad7f333be31b0fa3546caef67a5b17ca2fc7f5e07c8168"}, + {file = "propcache-0.5.3-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:fcf51bbb689ee4c15226ab80c96c1d7804cb1f5fdbbc828b7f75f6f6ee5a172a"}, + {file = "propcache-0.5.3-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:73b3e3cf2b6b6af3f407439b647c371452481d53b786b75e1fd0956e1d69b59f"}, + {file = "propcache-0.5.3-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:23788073f16c2e0706f5aeaae8489ba504027cc15b22f78bdd55df8e6b5f5b37"}, + {file = "propcache-0.5.3-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bb98bd17ad50a99f9f6962214608afdb92a0ebef681a5f4a5d38024578176df0"}, + {file = "propcache-0.5.3-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c95b48cda71997707271ec146e13450c8a27d57ee5d01622a0afb88a0f5a6b95"}, + {file = "propcache-0.5.3-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:50750f402638c9770e33e7e9ff8aa1d5115de8ea07ec29898c85abfa47b0f442"}, + {file = "propcache-0.5.3-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0506edf85bec8997f5084584f2b863a27528147c59aab9bdaca2cbee0e22bb76"}, + {file = "propcache-0.5.3-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:e9fa0ec1edaa4a9a95d8e0ba4676f43f187323cc5249d8217b3d75484d922f77"}, + {file = "propcache-0.5.3-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:1003b8557b64ce8c09f4c0193be582231805997d6e74ca0e9c79eb7b375789b3"}, + {file = "propcache-0.5.3-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:282cb412e862cfc23ab796addeeaeefe9ac85061349bf474249f7d77528135dd"}, + {file = "propcache-0.5.3-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:b6d618b5144fcd65ac04113cee9196525dc10c23c085f27f3c2c13de439d4853"}, + {file = "propcache-0.5.3-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:3c996ebbee2460fe77be155dd42ad4506fbcefed7a4b9b776b3894b0f52c1479"}, + {file = "propcache-0.5.3-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:95783c8fd4ec500c6afdcae87e9bb80c7379ef4dee5fcdf27c88e08f0c19621a"}, + {file = "propcache-0.5.3-cp315-cp315-win32.whl", hash = "sha256:55dca8dd42e5c12d9b7949a50df9a283e9720d26899f6ee53208f1919664812c"}, + {file = "propcache-0.5.3-cp315-cp315-win_amd64.whl", hash = "sha256:f15dd057a45bcf50a000d515ca5263d567c18ebe7de85c71687fe2d88fb0dde3"}, + {file = "propcache-0.5.3-cp315-cp315-win_arm64.whl", hash = "sha256:07478d53a45cd33a9c721cde42a1074dc7fed8fc5562bcfd83172d5b1f140ee8"}, + {file = "propcache-0.5.3-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:18ae303e7ae34fb2fdc21d190ffcdf025b8907e50da5393ff271b66fb08eb123"}, + {file = "propcache-0.5.3-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:fd0c772d8f7d0f0cbb73271c64f658622d7c143c5696462c918f73f3a7542c2a"}, + {file = "propcache-0.5.3-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:1864f5637f61cf3fb21d5351d494de0b896f9867c8b4f000b8301c7468c6a05b"}, + {file = "propcache-0.5.3-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:40cf37a31664e280fdbb6f8ea9ee5a16bcbe504c464f210d90f2e8cfac4c570c"}, + {file = "propcache-0.5.3-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e8f0583da2556ac23e8eec959c45c608d7b5dce3c5e7637a81af695355a57b6c"}, + {file = "propcache-0.5.3-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f49d1c07dea7235efc959b72ceb592cdeb44b0f60ce69828af318c40ada3503c"}, + {file = "propcache-0.5.3-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:67af78cf66472e82c8beb672930f6279d08c0007ba4cb675a70cee5cff1fac88"}, + {file = "propcache-0.5.3-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:bc601955fe451749386dc4d7f3e7f8f1d4db6846c8be4582c5ee21ee0acc7559"}, + {file = "propcache-0.5.3-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:bf82eea5664b0b1323d2304c68e84215a5b3a11bd9cc733df09edf7fbae7fcbb"}, + {file = "propcache-0.5.3-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:d9eb3b83d2c106e0a1bcc788dc4d375cf60d4f1a4bfb151858fb84d4baf184d8"}, + {file = "propcache-0.5.3-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:b8149edcd93da046f6f1e3dad1df51c6257bef13f8171aec5b8aebbcba840f2e"}, + {file = "propcache-0.5.3-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:02729b64fea4ae4d9a5a9a94ba56f360978b1538bd347a81df19c3e5520d1ecb"}, + {file = "propcache-0.5.3-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:98bf605793ff20856a4bbc8af2e5ddbbf6cfefdf6b5cdc01587627a3e7057004"}, + {file = "propcache-0.5.3-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:dc88c7b971999389dc5ceea90d8f346fb360888549e123644fc63b90dbd7f64f"}, + {file = "propcache-0.5.3-cp315-cp315t-win32.whl", hash = "sha256:1102c4f4390e6a50f1960b8cb494007f08f5a139b39fd278925330e622b03ab8"}, + {file = "propcache-0.5.3-cp315-cp315t-win_amd64.whl", hash = "sha256:09b5c52fec3f50ced0c5c810f02c1237d7c89a8f3f5345ad92c6a49faeafe6a9"}, + {file = "propcache-0.5.3-cp315-cp315t-win_arm64.whl", hash = "sha256:74f50a14ccc90bf5e544521783aafaf8081a21eeb24fbcb295ecb79d766a140e"}, + {file = "propcache-0.5.3-py3-none-any.whl", hash = "sha256:abcef8e75a2c324dabd46c842c17cb005ae968596a567e43dfd6ee074f9f907b"}, + {file = "propcache-0.5.3.tar.gz", hash = "sha256:5f283fde8fd8b1944fd1a1bd11db759b55c5f190795668d5187d3e3b1165d98b"}, ] [[package]] @@ -1349,14 +1366,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] @@ -1367,117 +1384,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] diff --git a/src/speechify/audio/client.py b/src/speechify/audio/client.py index fcf7c11..d3ec491 100644 --- a/src/speechify/audio/client.py +++ b/src/speechify/audio/client.py @@ -187,7 +187,10 @@ 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 -------- @@ -293,9 +296,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 @@ -510,7 +514,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 -------- @@ -625,9 +632,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 diff --git a/src/speechify/audio/raw_client.py b/src/speechify/audio/raw_client.py index ff80665..197d857 100644 --- a/src/speechify/audio/raw_client.py +++ b/src/speechify/audio/raw_client.py @@ -313,7 +313,10 @@ 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", @@ -550,9 +553,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 @@ -1011,7 +1015,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. """ async with self._client_wrapper.httpx_client.stream( "v1/audio/stream", @@ -1249,9 +1256,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 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 From ec30499b821e3fba4e4b9c4cfe98f01a7aa1408c Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 16 Sep 2026 11:33:27 +0000 Subject: [PATCH 212/272] SDK regeneration --- .fern/metadata.json | 2 +- poetry.lock | 278 ++++++++++++++++++++++---------------------- 2 files changed, 140 insertions(+), 140 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 9fbc826..60cae54 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "25b3a09d3df5b6f4962bb54fda1cdf9f78e325d7", + "originGitCommit": "93f9d1d7044516eae8cb6efe6f51596b25da57e7", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/poetry.lock b/poetry.lock index 14cf023..ae8a749 100644 --- a/poetry.lock +++ b/poetry.lock @@ -829,151 +829,151 @@ testing = ["coverage", "pytest", "pytest-benchmark"] [[package]] name = "propcache" -version = "0.5.3" +version = "0.5.4" description = "Accelerated property cache" optional = true python-versions = ">=3.10" groups = ["main"] markers = "extra == \"aiohttp\"" files = [ - {file = "propcache-0.5.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:4e443bc079b57cb231ed45a8a55879a868bf56449ca7a719e58988375f828d8d"}, - {file = "propcache-0.5.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3ecda25c86ee7500b5348cb1e8831ee4324daa45ec7e24265808121537c85bbe"}, - {file = "propcache-0.5.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:31239c475a43568c0d64d5e10208f449e004ff4894458507fed5ce53403ac3a2"}, - {file = "propcache-0.5.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5867f7d672f239fe70569c947a4453ed44f82c166ff08d4abf6cf7350d9a4b12"}, - {file = "propcache-0.5.3-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:544f08889abce275a77b27add29cdaa87a36e6ce6abeffcb4e87b4e29c577711"}, - {file = "propcache-0.5.3-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:58515aacf6ba8ad47a0b072ff2a27ccb39d7691ed9101636e6b5e151758b11c0"}, - {file = "propcache-0.5.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e61294a7d9b07a79b3c670dbceaa4aca37542e68cdf9411e04ed81cabb2f62a5"}, - {file = "propcache-0.5.3-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1956d7e98f2150e4b0aae71dccf61fb5628208c63d57e2dafae68301fe8e1a36"}, - {file = "propcache-0.5.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:79af5bf10e5a631ba601c33f379e37e64f036c55e60a99254ec55ab4678d268b"}, - {file = "propcache-0.5.3-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:400db553b2a2af6ea41ff3b6d5972fe493180fd519c1d001c9581fd446bdc150"}, - {file = "propcache-0.5.3-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:0275013737080d5d113be6927ca6055a3e393a9d95f81667c4bdb927915aac2a"}, - {file = "propcache-0.5.3-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:c2fd56f3b358f07e4fefcf54942f20f64e905db63dff8fddf0c67730c748b3d1"}, - {file = "propcache-0.5.3-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:8e507119af1a2d417d75ebe202bc0a2a282ad0a3e6cf38f447a6cad0a2c5263e"}, - {file = "propcache-0.5.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:d8a41e6f549e8bc13dc7b4987f5e96097bc2fefc66b682b3947a8e959f75a9c7"}, - {file = "propcache-0.5.3-cp310-cp310-win32.whl", hash = "sha256:e8e6acf498ee3d0a5c2a8468e23af7acb017c5b219b29e302af2636818d3830e"}, - {file = "propcache-0.5.3-cp310-cp310-win_amd64.whl", hash = "sha256:09513990e2f33c9de838f0ab11b62660b3ea225000945d10143007e51539088c"}, - {file = "propcache-0.5.3-cp310-cp310-win_arm64.whl", hash = "sha256:5964c7e2f632facc552ab0e163cac05e1ce42acba20b4b24d445139629ed7625"}, - {file = "propcache-0.5.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:b7edbbf2d9ba5829663dbc83cdb6e2b13bc80cd36f0bf185419dcbbb4930af7e"}, - {file = "propcache-0.5.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:d2c6ccfcc810ac7f8782593934fa2215669a401ef43fcae5a8cab80ce4754a46"}, - {file = "propcache-0.5.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:2f1723f7a060a20eb1f9971fa69c9931b5ebd253bef8baaa48a1cbd1c01c7bb7"}, - {file = "propcache-0.5.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ba1ae9d55025434790882c2f1be727e725ccef83876a112af52247c7ed7ce321"}, - {file = "propcache-0.5.3-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:30f9d52fdd02a216601f588e5659dd39cb7d2a0ef59935d33c5077718201f8da"}, - {file = "propcache-0.5.3-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0fdd72f694faf2b34907484b53e5df7ae6b5dad6a6e03564c6b872ccebb80a7d"}, - {file = "propcache-0.5.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:35de8d67f6b6a3830f845ee7cd3ae47189d7dd66088aff9dfd1fe50f5bda5a60"}, - {file = "propcache-0.5.3-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:377011845a2b1a8b11ab2ca33547aea1320d6f70c015bafe26486f0882dc49fb"}, - {file = "propcache-0.5.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:2537fa4f56c12fa897f9371e4e5910417aa49ff916a7dc549a22061b46d33355"}, - {file = "propcache-0.5.3-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:3eb545ffc0db5c86e83ba1aec3616efbaac9c22f05daff095005472874c12e91"}, - {file = "propcache-0.5.3-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:023d4e58beeb0865cfc62e2e14bf4ed30e21dfc20ce16ac24fb05516a09e1d18"}, - {file = "propcache-0.5.3-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:d693b78ecb4df14b3aa636d9c2a40e5ab3b4f81a3bb569fddc2b28299f1ff0d1"}, - {file = "propcache-0.5.3-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:a5ea7cf6d6a0b67a64e6744219265bc5406d827ca3b46ae2d748c3aaa1d5e1d2"}, - {file = "propcache-0.5.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:66be2cef41263d823517ee617d19fd105a70ff58a0776e5e47cfde1196bfa2f2"}, - {file = "propcache-0.5.3-cp311-cp311-win32.whl", hash = "sha256:d8eed2e84204b4402407a5d1ca124cb653b9a6ba2fc01ce1ef1071a75ac9e176"}, - {file = "propcache-0.5.3-cp311-cp311-win_amd64.whl", hash = "sha256:e01abf74acc057c0ef8533d5688a2bed25923cf05c450a0d82229fa538cf83c1"}, - {file = "propcache-0.5.3-cp311-cp311-win_arm64.whl", hash = "sha256:ba7220f33a3df68245b09bc519e2c3f9f5c4123ea68f007c11529ecac8615200"}, - {file = "propcache-0.5.3-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:eeb4e5a10149960ed021b8e35fa22440e106db6322a9f5249ad8992f38855ceb"}, - {file = "propcache-0.5.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:b09edf2908fa5f0ba84fdb9c1bc6f346945b51541013ac29b12d20218f213279"}, - {file = "propcache-0.5.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2db81e15c4e0171ad26845b67a1e295ba446e717e47fefaf47f22ae0b2eca71e"}, - {file = "propcache-0.5.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:50079e8be4f1bc33e8265f35fbe6449017901db626bc6b735181568c4bfb5e73"}, - {file = "propcache-0.5.3-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a8ea844a859c3060a44485c4e842df3ead69ca98ca5550594757aac11dfef30d"}, - {file = "propcache-0.5.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:8ec76f86ec2de069358d896c468be3c1cb3b5ed049e3cec3ecb3015806313606"}, - {file = "propcache-0.5.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:27a36f13d838accaa887f9e54af4866ae344a51eb59b99dbd6cfeee701fc98ff"}, - {file = "propcache-0.5.3-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1a536910fbd2f4ea76acd6b1b50708ce602a27673ef5e5b2c8ba373c2f5127cf"}, - {file = "propcache-0.5.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:f95a390defc963a5543012685b57eb9cd47078f50c4a3bb5c5cd7719c4175112"}, - {file = "propcache-0.5.3-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:1d617a68a5f383855af3eec608ddd98dd3b964184011f20755a4e34acb194a5d"}, - {file = "propcache-0.5.3-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:28afdbaf9f1bf34bc719e0381a4699705990c59f412e43ff25f91a01ff6676af"}, - {file = "propcache-0.5.3-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:014cec8c711df6f22e0a50cfcb3e98d3d659856daa75e9dc2f1e206204027519"}, - {file = "propcache-0.5.3-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:ae72c39267ffc08bab9239fbdef5fb8bb0fc410f141b1ed283f0dd349b8bcdb0"}, - {file = "propcache-0.5.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:22e8849a90d46d920469eacc52cf28dbfce9d9dc7fb0ee36ba3aa4b117fc8311"}, - {file = "propcache-0.5.3-cp312-cp312-win32.whl", hash = "sha256:71dbe01ca877ca1c7d61f0f83b71f2c994554ef52983fe7c6400d9c483c477cb"}, - {file = "propcache-0.5.3-cp312-cp312-win_amd64.whl", hash = "sha256:2367fbfaf980a0ac082c64b53ae669ee704515134a28cd8c680642bd90a2ddd5"}, - {file = "propcache-0.5.3-cp312-cp312-win_arm64.whl", hash = "sha256:646d9d567fdc8f1f8ab3e785f8702175a9212ea3432af2506f2f914f21c3ae16"}, - {file = "propcache-0.5.3-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ef59cf75b4d63fed6308d933db810b05f0738925b1470b6caad88afed597c7b1"}, - {file = "propcache-0.5.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:9f10fce5b91adc67a566817365381279b6f4f3b19fbb58eacd2ab8d045e75492"}, - {file = "propcache-0.5.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:bc469f68cc978501b6ec69b49f67738ae099064002d0bea283c491d086e93a27"}, - {file = "propcache-0.5.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f683f8eac4e695c48a3e24a7347b392322219b6a99351d7b6bf70c9ef2262126"}, - {file = "propcache-0.5.3-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9fc1d60bc45efd3b1440a17e4a7eea268d34c22eb30ccec10246b5b6833a603c"}, - {file = "propcache-0.5.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:384ae10f8d6595595361566f9073578c131b1eb7c651bce5d78c2c0d411a221f"}, - {file = "propcache-0.5.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f18065f005006f20fde9c08d21b375d52908b72c493e9b2531dd25da89a8ef50"}, - {file = "propcache-0.5.3-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:2c73e4520974b55081770703be7066d3b346db16abe399148a154be0f9f92c81"}, - {file = "propcache-0.5.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:0e55ddb8404887d1bffb0937287cc27c98a0f1a4b91453b21b9d5c9df0743377"}, - {file = "propcache-0.5.3-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:5b90847530d99dfc9ab31a6b4432fe92ad9868630b45acac21bb08468ea82614"}, - {file = "propcache-0.5.3-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:c71593d15b601f785e4f0362822d3101b999e4a696210281e83e035abb8c33ba"}, - {file = "propcache-0.5.3-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:d3f6e1a3a0efc4ea71b8dd4310c4c5693686ad0c3b4c657beafea3aaf6a28428"}, - {file = "propcache-0.5.3-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:45115e5e32fcc253de3f14633ca1c982239c9ba37ba41ca45a7e30b3afeb3b77"}, - {file = "propcache-0.5.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:d7d377c2e8ddd7b7254c3ec6b23275bfb9d307a32bef017ba7dc94b94f45c509"}, - {file = "propcache-0.5.3-cp313-cp313-win32.whl", hash = "sha256:442d4a18df8be3ceff91bcd8eb850c263f36726287327499c68e72482ac07b48"}, - {file = "propcache-0.5.3-cp313-cp313-win_amd64.whl", hash = "sha256:a8e2d2bb4285a5fa8e5c01465b5379abf8f244d4978855558432987ef62672f1"}, - {file = "propcache-0.5.3-cp313-cp313-win_arm64.whl", hash = "sha256:82ff2cf7bcb0c207ad1d207e1a51ea1d53aff47628729c7368c5ead6924d3b7f"}, - {file = "propcache-0.5.3-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:7ee15901025c40b58ee5547a7c244841701c09758f3e98ddbb0b876d96d52ad4"}, - {file = "propcache-0.5.3-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:37e41cd6c1a27ddbbd0b556fb0c02ae8e55c41c8a122c83f1350a017f0bbc69c"}, - {file = "propcache-0.5.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:04e21d1eea62765ee0306c80c61937255a5cd99c9c56d6cb6100ca5794e8b2f3"}, - {file = "propcache-0.5.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f698081e39d0a63f44ae35da7c43c595f9f60d26ee08e575576fd7df3029e31b"}, - {file = "propcache-0.5.3-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:1a8588f64d4d5d6e65d7faa9e0d1dce9fdb25e50aca194cffc6106deaf9d320a"}, - {file = "propcache-0.5.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:69f226874a50eb2fdd0db47303b66b1084a545aa1d68d45ce2a1c9920cf2ea00"}, - {file = "propcache-0.5.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bfa60b1dbd3c7881730407df60d2be83058ed145701b5c51ff113b7a3ced2224"}, - {file = "propcache-0.5.3-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a78a241677f693485ee6c0165ab657341e7ecac93f8d53cd70771ed6f3eafb61"}, - {file = "propcache-0.5.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c5930611bf42350905ace62fc8306146cb644c5d43efba541e68f4d22383e459"}, - {file = "propcache-0.5.3-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:a7f485b78c7ab8e8b9c3375d32d25a077d530cfc676c665e89685fccfa2ecbbb"}, - {file = "propcache-0.5.3-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:1162ba1e960ea6dd0453ff3ae29328a37307486c260c93343782ea1d56eca6f2"}, - {file = "propcache-0.5.3-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:49f3c98e977785ea49a8b99463cd81f343c8307dc98fe485fb94288597d8c01a"}, - {file = "propcache-0.5.3-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:8ef15c7a41364b098c26458dc3b57b7a5db6e042661c5cbeb75ed78e503162cb"}, - {file = "propcache-0.5.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:54f06f17c66add28dc79e314e3b2ba7a9612564314d8b2c27b2a8c2f270d33c7"}, - {file = "propcache-0.5.3-cp314-cp314-win32.whl", hash = "sha256:37a99cf741523fa5406ef2c60925b7ad616afd772fb3364b431a921404853d46"}, - {file = "propcache-0.5.3-cp314-cp314-win_amd64.whl", hash = "sha256:10573db5b40f55728e0abd5fc47096db6162ff612af10430ae93377af09e2a4b"}, - {file = "propcache-0.5.3-cp314-cp314-win_arm64.whl", hash = "sha256:9e561c183c72665752cc2ede30d985a9e80534f43aaa16fa6e1224d151ad54c2"}, - {file = "propcache-0.5.3-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:622ae786b1e3d46684b8866cd7415c9eca26f341757c4bfdbdfad8ee129a7103"}, - {file = "propcache-0.5.3-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:0a3af1190a9c62a0da8d90a0a613d6b69029e86ee60b599e146c1e79a80c77d0"}, - {file = "propcache-0.5.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:dcc70083abd3374d7ec338c6dfd37030bc1e54ed2c71abe2c51f16c3d7af5531"}, - {file = "propcache-0.5.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:665451eaeb3e5e09129c4a789d63620502f50c16be25ebe9370f7dc05ed4d49b"}, - {file = "propcache-0.5.3-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c8c8e8b2dfe7d7bbca58b12170cd65b4f7ec701e67812a853b7da8023f681c9f"}, - {file = "propcache-0.5.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5b6239f0d6175da9d07084c74628af8baa258fe8929faf6a75ce425b0db6ec9f"}, - {file = "propcache-0.5.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:104e8d289159297822541566d60769b81af3bfac971509a91c8b94cb2554d7dc"}, - {file = "propcache-0.5.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:50eea49bd9c874378a015e8363befc05b3545a0bb1312ed44ba895cd7c5c9b3a"}, - {file = "propcache-0.5.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:0f0e69dcc0aa9bd4aa22c9cf3f52cd92ed2fd067f2df93e56dc1d1c98d0538e5"}, - {file = "propcache-0.5.3-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:9498e6b074f7e4c58fa518e8f87944f87e612ad910bedaabfdc07695d91efa8b"}, - {file = "propcache-0.5.3-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:b3541fae8294f9129e3ea393d146f28c035acf9106ee2025121dbd2b7bb2516e"}, - {file = "propcache-0.5.3-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:105ad7d80740aa4d44f025a7f7335599e0b26faa4d6c80918069c16e108d29db"}, - {file = "propcache-0.5.3-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:9851f8a7bd86a455ba5f32652b13dae69011d93e44d3433fed7eb54b10f3d9e2"}, - {file = "propcache-0.5.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:3745e60d95e52a782b1e99ecccc72d22ee61c86c1e368647fff0444b9ec4bb70"}, - {file = "propcache-0.5.3-cp314-cp314t-win32.whl", hash = "sha256:ec2e387ce38d9b73054a7e96d70d22c8471a83df6205019442394b079d26a84d"}, - {file = "propcache-0.5.3-cp314-cp314t-win_amd64.whl", hash = "sha256:8a3396b1822f0c5291a11bdf93877d3118d5cafca5905e185582beee039fa508"}, - {file = "propcache-0.5.3-cp314-cp314t-win_arm64.whl", hash = "sha256:0dd0ef45b87c5a59970b42dd70493b3c022be490a2268dfd391cdacdfb9a611b"}, - {file = "propcache-0.5.3-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:888624d71be1029609ad7f333be31b0fa3546caef67a5b17ca2fc7f5e07c8168"}, - {file = "propcache-0.5.3-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:fcf51bbb689ee4c15226ab80c96c1d7804cb1f5fdbbc828b7f75f6f6ee5a172a"}, - {file = "propcache-0.5.3-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:73b3e3cf2b6b6af3f407439b647c371452481d53b786b75e1fd0956e1d69b59f"}, - {file = "propcache-0.5.3-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:23788073f16c2e0706f5aeaae8489ba504027cc15b22f78bdd55df8e6b5f5b37"}, - {file = "propcache-0.5.3-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bb98bd17ad50a99f9f6962214608afdb92a0ebef681a5f4a5d38024578176df0"}, - {file = "propcache-0.5.3-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c95b48cda71997707271ec146e13450c8a27d57ee5d01622a0afb88a0f5a6b95"}, - {file = "propcache-0.5.3-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:50750f402638c9770e33e7e9ff8aa1d5115de8ea07ec29898c85abfa47b0f442"}, - {file = "propcache-0.5.3-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0506edf85bec8997f5084584f2b863a27528147c59aab9bdaca2cbee0e22bb76"}, - {file = "propcache-0.5.3-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:e9fa0ec1edaa4a9a95d8e0ba4676f43f187323cc5249d8217b3d75484d922f77"}, - {file = "propcache-0.5.3-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:1003b8557b64ce8c09f4c0193be582231805997d6e74ca0e9c79eb7b375789b3"}, - {file = "propcache-0.5.3-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:282cb412e862cfc23ab796addeeaeefe9ac85061349bf474249f7d77528135dd"}, - {file = "propcache-0.5.3-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:b6d618b5144fcd65ac04113cee9196525dc10c23c085f27f3c2c13de439d4853"}, - {file = "propcache-0.5.3-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:3c996ebbee2460fe77be155dd42ad4506fbcefed7a4b9b776b3894b0f52c1479"}, - {file = "propcache-0.5.3-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:95783c8fd4ec500c6afdcae87e9bb80c7379ef4dee5fcdf27c88e08f0c19621a"}, - {file = "propcache-0.5.3-cp315-cp315-win32.whl", hash = "sha256:55dca8dd42e5c12d9b7949a50df9a283e9720d26899f6ee53208f1919664812c"}, - {file = "propcache-0.5.3-cp315-cp315-win_amd64.whl", hash = "sha256:f15dd057a45bcf50a000d515ca5263d567c18ebe7de85c71687fe2d88fb0dde3"}, - {file = "propcache-0.5.3-cp315-cp315-win_arm64.whl", hash = "sha256:07478d53a45cd33a9c721cde42a1074dc7fed8fc5562bcfd83172d5b1f140ee8"}, - {file = "propcache-0.5.3-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:18ae303e7ae34fb2fdc21d190ffcdf025b8907e50da5393ff271b66fb08eb123"}, - {file = "propcache-0.5.3-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:fd0c772d8f7d0f0cbb73271c64f658622d7c143c5696462c918f73f3a7542c2a"}, - {file = "propcache-0.5.3-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:1864f5637f61cf3fb21d5351d494de0b896f9867c8b4f000b8301c7468c6a05b"}, - {file = "propcache-0.5.3-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:40cf37a31664e280fdbb6f8ea9ee5a16bcbe504c464f210d90f2e8cfac4c570c"}, - {file = "propcache-0.5.3-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e8f0583da2556ac23e8eec959c45c608d7b5dce3c5e7637a81af695355a57b6c"}, - {file = "propcache-0.5.3-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f49d1c07dea7235efc959b72ceb592cdeb44b0f60ce69828af318c40ada3503c"}, - {file = "propcache-0.5.3-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:67af78cf66472e82c8beb672930f6279d08c0007ba4cb675a70cee5cff1fac88"}, - {file = "propcache-0.5.3-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:bc601955fe451749386dc4d7f3e7f8f1d4db6846c8be4582c5ee21ee0acc7559"}, - {file = "propcache-0.5.3-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:bf82eea5664b0b1323d2304c68e84215a5b3a11bd9cc733df09edf7fbae7fcbb"}, - {file = "propcache-0.5.3-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:d9eb3b83d2c106e0a1bcc788dc4d375cf60d4f1a4bfb151858fb84d4baf184d8"}, - {file = "propcache-0.5.3-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:b8149edcd93da046f6f1e3dad1df51c6257bef13f8171aec5b8aebbcba840f2e"}, - {file = "propcache-0.5.3-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:02729b64fea4ae4d9a5a9a94ba56f360978b1538bd347a81df19c3e5520d1ecb"}, - {file = "propcache-0.5.3-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:98bf605793ff20856a4bbc8af2e5ddbbf6cfefdf6b5cdc01587627a3e7057004"}, - {file = "propcache-0.5.3-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:dc88c7b971999389dc5ceea90d8f346fb360888549e123644fc63b90dbd7f64f"}, - {file = "propcache-0.5.3-cp315-cp315t-win32.whl", hash = "sha256:1102c4f4390e6a50f1960b8cb494007f08f5a139b39fd278925330e622b03ab8"}, - {file = "propcache-0.5.3-cp315-cp315t-win_amd64.whl", hash = "sha256:09b5c52fec3f50ced0c5c810f02c1237d7c89a8f3f5345ad92c6a49faeafe6a9"}, - {file = "propcache-0.5.3-cp315-cp315t-win_arm64.whl", hash = "sha256:74f50a14ccc90bf5e544521783aafaf8081a21eeb24fbcb295ecb79d766a140e"}, - {file = "propcache-0.5.3-py3-none-any.whl", hash = "sha256:abcef8e75a2c324dabd46c842c17cb005ae968596a567e43dfd6ee074f9f907b"}, - {file = "propcache-0.5.3.tar.gz", hash = "sha256:5f283fde8fd8b1944fd1a1bd11db759b55c5f190795668d5187d3e3b1165d98b"}, + {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]] From a77a1a33104ef7bee624a293f817d7eb38bca593 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 17 Sep 2026 11:30:50 +0000 Subject: [PATCH 213/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 60cae54..2080933 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "93f9d1d7044516eae8cb6efe6f51596b25da57e7", + "originGitCommit": "58e0a1e9bd70482e921e6693e4dda3af80a39d0d", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From d5e4becf0e73931597ad22d6a1810b63d593b368 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 17 Sep 2026 12:01:54 +0000 Subject: [PATCH 214/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 2080933..77d200c 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "58e0a1e9bd70482e921e6693e4dda3af80a39d0d", + "originGitCommit": "8db2d79a9c571df9106ad80efed56e5ed960704b", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 0dd308374f33e670b534b9ec74f064bcfb5ecdca Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 17 Sep 2026 18:43:49 +0000 Subject: [PATCH 215/272] SDK regeneration --- .fern/metadata.json | 4 ++-- poetry.lock | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 77d200c..a0be382 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "5.64.0", + "cliVersion": "5.128.0", "generatorName": "fernapi/fern-python-sdk", "generatorVersion": "5.14.20", "generatorConfig": { @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "8db2d79a9c571df9106ad80efed56e5ed960704b", + "originGitCommit": "59e13b3d976b0ce32fe6efcff4a683bab53d5902", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/poetry.lock b/poetry.lock index ae8a749..75784fc 100644 --- a/poetry.lock +++ b/poetry.lock @@ -523,14 +523,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] From 03d1b27fd0601d06933a3ba0053219f8d92d17ca Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 17 Sep 2026 19:58:11 +0000 Subject: [PATCH 216/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 2224 +------------- src/speechify/__init__.py | 105 +- src/speechify/client.py | 19 - src/speechify/hosted_apis/__init__.py | 56 - src/speechify/hosted_apis/client.py | 1281 -------- src/speechify/hosted_apis/keys/__init__.py | 4 - src/speechify/hosted_apis/keys/client.py | 376 --- src/speechify/hosted_apis/keys/raw_client.py | 836 ------ src/speechify/hosted_apis/raw_client.py | 2590 ----------------- src/speechify/hosted_apis/routes/__init__.py | 37 - src/speechify/hosted_apis/routes/client.py | 1130 ------- .../hosted_apis/routes/raw_client.py | 2027 ------------- .../hosted_apis/routes/types/__init__.py | 38 - .../create_hosted_api_route_request_method.py | 5 - .../update_hosted_api_route_request_method.py | 5 - src/speechify/hosted_apis/types/__init__.py | 44 - .../create_hosted_api_request_auth_mode.py | 7 - ...alytics_hosted_apis_request_granularity.py | 7 - .../update_hosted_api_request_auth_mode.py | 7 - src/speechify/types/__init__.py | 90 - src/speechify/types/hosted_api.py | 136 - src/speechify/types/hosted_api_auth_mode.py | 7 - src/speechify/types/hosted_api_key.py | 40 - src/speechify/types/hosted_api_mount.py | 40 - .../types/hosted_api_mount_operation.py | 65 - .../hosted_api_mount_operation_action.py | 7 - ...hosted_api_mount_operation_changes_item.py | 5 - .../types/hosted_api_mount_summary.py | 23 - .../types/hosted_api_mount_tool_kind.py | 5 - src/speechify/types/hosted_api_resolver.py | 214 -- .../types/hosted_api_resolver_order_by.py | 21 - .../hosted_api_resolver_order_by_direction.py | 5 - .../types/hosted_api_resolver_type.py | 10 - .../types/hosted_api_resolver_where_item.py | 22 - .../hosted_api_resolver_where_item_op.py | 5 - .../types/hosted_api_resolver_write_mode.py | 5 - src/speechify/types/hosted_api_route.py | 68 - .../types/hosted_api_route_method.py | 5 - src/speechify/types/hosted_api_usage.py | 47 - .../types/hosted_api_usage_routes_item.py | 40 - .../types/hosted_api_user_token_secret.py | 27 - .../types/list_hosted_ap_is_response.py | 21 - .../types/list_hosted_api_keys_response.py | 21 - .../types/list_hosted_api_routes_response.py | 21 - .../types/request_analytics_bucket.py | 74 - .../types/request_analytics_response.py | 61 - .../types/request_analytics_totals.py | 46 - src/speechify/types/request_top_path.py | 32 - src/speechify/types/store_aggregate_metric.py | 32 - .../types/store_aggregate_metric_op.py | 5 - 51 files changed, 55 insertions(+), 11945 deletions(-) delete mode 100644 src/speechify/hosted_apis/__init__.py delete mode 100644 src/speechify/hosted_apis/client.py delete mode 100644 src/speechify/hosted_apis/keys/__init__.py delete mode 100644 src/speechify/hosted_apis/keys/client.py delete mode 100644 src/speechify/hosted_apis/keys/raw_client.py delete mode 100644 src/speechify/hosted_apis/raw_client.py delete mode 100644 src/speechify/hosted_apis/routes/__init__.py delete mode 100644 src/speechify/hosted_apis/routes/client.py delete mode 100644 src/speechify/hosted_apis/routes/raw_client.py delete mode 100644 src/speechify/hosted_apis/routes/types/__init__.py delete mode 100644 src/speechify/hosted_apis/routes/types/create_hosted_api_route_request_method.py delete mode 100644 src/speechify/hosted_apis/routes/types/update_hosted_api_route_request_method.py delete mode 100644 src/speechify/hosted_apis/types/__init__.py delete mode 100644 src/speechify/hosted_apis/types/create_hosted_api_request_auth_mode.py delete mode 100644 src/speechify/hosted_apis/types/get_analytics_hosted_apis_request_granularity.py delete mode 100644 src/speechify/hosted_apis/types/update_hosted_api_request_auth_mode.py delete mode 100644 src/speechify/types/hosted_api.py delete mode 100644 src/speechify/types/hosted_api_auth_mode.py delete mode 100644 src/speechify/types/hosted_api_key.py delete mode 100644 src/speechify/types/hosted_api_mount.py delete mode 100644 src/speechify/types/hosted_api_mount_operation.py delete mode 100644 src/speechify/types/hosted_api_mount_operation_action.py delete mode 100644 src/speechify/types/hosted_api_mount_operation_changes_item.py delete mode 100644 src/speechify/types/hosted_api_mount_summary.py delete mode 100644 src/speechify/types/hosted_api_mount_tool_kind.py delete mode 100644 src/speechify/types/hosted_api_resolver.py delete mode 100644 src/speechify/types/hosted_api_resolver_order_by.py delete mode 100644 src/speechify/types/hosted_api_resolver_order_by_direction.py delete mode 100644 src/speechify/types/hosted_api_resolver_type.py delete mode 100644 src/speechify/types/hosted_api_resolver_where_item.py delete mode 100644 src/speechify/types/hosted_api_resolver_where_item_op.py delete mode 100644 src/speechify/types/hosted_api_resolver_write_mode.py delete mode 100644 src/speechify/types/hosted_api_route.py delete mode 100644 src/speechify/types/hosted_api_route_method.py delete mode 100644 src/speechify/types/hosted_api_usage.py delete mode 100644 src/speechify/types/hosted_api_usage_routes_item.py delete mode 100644 src/speechify/types/hosted_api_user_token_secret.py delete mode 100644 src/speechify/types/list_hosted_ap_is_response.py delete mode 100644 src/speechify/types/list_hosted_api_keys_response.py delete mode 100644 src/speechify/types/list_hosted_api_routes_response.py delete mode 100644 src/speechify/types/request_analytics_bucket.py delete mode 100644 src/speechify/types/request_analytics_response.py delete mode 100644 src/speechify/types/request_analytics_totals.py delete mode 100644 src/speechify/types/request_top_path.py delete mode 100644 src/speechify/types/store_aggregate_metric.py delete mode 100644 src/speechify/types/store_aggregate_metric_op.py diff --git a/.fern/metadata.json b/.fern/metadata.json index a0be382..6379636 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "59e13b3d976b0ce32fe6efcff4a683bab53d5902", + "originGitCommit": "57588c00bd36a394323d9a5067be57f2be72d58e", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index 8e38685..a4a3aca 100644 --- a/reference.md +++ b/reference.md @@ -973,2052 +973,33 @@ client.voices.download_sample(
-## HostedApis -
client.hosted_apis.list(...) -> ListHostedApIsResponse -
-
- -#### 📝 Description - -
-
- -
-
- -List the hosted APIs in the caller's workspace, most recently updated -first. A hosted API is the API you assemble: a slug that becomes -`https://.`, the routes it answers, and the -consumer keys your own callers present. -Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from speechify import Speechify -from speechify.environment import SpeechifyEnvironment - -client = Speechify( - token="", - environment=SpeechifyEnvironment.DEFAULT, -) - -client.hosted_apis.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 by workspace project: omit for every project you can reach, -pass the literal `default` for resources in the implicit Default -project only, or a `proj_...` id for that project's resources. -Returns 404 project_not_found for a malformed id and for any filter -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, so neither can name `default`. -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. Inside it, a well-formed id that -matches no project yields an empty page. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hosted_apis.create(...) -> HostedApi -
-
- -#### 📝 Description - -
-
- -
-
- -Create a hosted API. The slug is a DNS label, globally unique on the -shared domain (409 `hosted_api_slug_taken`) and immutable afterwards. -`auth_mode` names the audience, narrowest first: `owner`, `workspace` -(the platform's own credentials), `user_token` (a JWT your backend -signs per user), `consumer_key` (a `ck_` key you mint) or `public` -(anyone, reads only). A workspace can refuse `public` as policy (403 -`hosted_api_public_refused`). Reads, runs and writes are each bounded -per UTC day (`daily_read_cap`, `daily_run_cap`, `daily_write_cap`), -and an API holds only a share of a server's requests open at once, so -a slow upstream behind one API cannot take the capacity others need: -past it, a request answers 429 `hosted_api_busy` with `Retry-After`. - -`mcp_enabled: true` also serves the API's routes as an MCP server at -`POST /mcp`, so an MCP client (Claude Code, Cursor) attaches -to one address and gets them as tools, under the same audience, keys -and caps. It is refused with `auth_mode: public`. On that face the -API's `name` is the server's title and its `description` is the -instructions the client's model reads, so describe what the tools are -for. -Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from speechify import Speechify -from speechify.environment import SpeechifyEnvironment - -client = Speechify( - token="", - environment=SpeechifyEnvironment.DEFAULT, -) - -client.hosted_apis.create( - idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", - slug="acme-news", - name="Acme News", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**slug:** `str` — 3-40 lowercase letters, digits or hyphens; a DNS label, unique on the shared domain; immutable. - -
-
- -
-
- -**name:** `str` - -
-
- -
-
- -**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. - -
-
- -
-
- -**description:** `typing.Optional[str]` — What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. - -
-
- -
-
- -**auth_mode:** `typing.Optional[CreateHostedApiRequestAuthMode]` — consumer_key when omitted. `public` is refused with 403 `hosted_api_public_refused` where the workspace's policy does not allow internet-facing APIs. - -
-
- -
-
- -**cors_origins:** `typing.Optional[typing.List[str]]` - -
-
- -
-
- -**daily_run_cap:** `typing.Optional[int]` — Runs the API may start per UTC day through its run routes; 1000 when omitted. - -
-
- -
-
- -**daily_read_cap:** `typing.Optional[int]` — Reads the API's store, file, run_latest and tool routes may serve per UTC day; 100000 when omitted. - -
-
- -
-
- -**daily_write_cap:** `typing.Optional[int]` — Documents the API's write routes may land per UTC day; 10000 when omitted. - -
-
- -
-
- -**mcp_enabled:** `typing.Optional[bool]` - -Serve the routes as an MCP server at `POST /mcp` too; -false when omitted. Refused with `auth_mode: public` (400 -`validation_failed` naming `mcp_enabled`). - -
-
- -
-
- -**project_id:** `typing.Optional[str]` - -
-
- -
-
- -**user_token_jwks_url:** `typing.Optional[str]` — Register the key set end-user tokens are verified against (an `https` URL on a public host). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hosted_apis.get(...) -> HostedApi -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve one hosted API. -Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from speechify import Speechify -from speechify.environment import SpeechifyEnvironment - -client = Speechify( - token="", - environment=SpeechifyEnvironment.DEFAULT, -) - -client.hosted_apis.get( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hosted_apis.delete(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a hosted API; its host stops answering at once. -Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from speechify import Speechify -from speechify.environment import SpeechifyEnvironment - -client = Speechify( - token="", - environment=SpeechifyEnvironment.DEFAULT, -) - -client.hosted_apis.delete( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hosted_apis.update(...) -> HostedApi -
-
- -#### 📝 Description - -
-
- -
-
- -Update a hosted API (merge-patch). Switching to `public` is refused -while a `run` or `store_write` route exists: an anonymous caller must -not start runs that spend the workspace's budget or write to a store, -and it is refused outright where the workspace's policy does not allow -internet-facing APIs (403 `hosted_api_public_refused`). Switching to a -mode that names no caller (`consumer_key`, `public`) is refused while -a route binds `{{user.*}}`: only `user_token`, `workspace` and `owner` -supply a person. Switching to `public` is also refused while a `tool` -route exists (a vendor call spends the workspace's vendor budget) and -while `mcp_enabled` is on, and switching the MCP face on is refused on -a `public` API (400 `validation_failed` naming `mcp_enabled`). -Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from speechify import Speechify -from speechify.environment import SpeechifyEnvironment - -client = Speechify( - token="", - environment=SpeechifyEnvironment.DEFAULT, -) - -client.hosted_apis.update( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). - -
-
- -
-
- -**name:** `typing.Optional[str]` - -
-
- -
-
- -**description:** `typing.Optional[str]` — What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. - -
-
- -
-
- -**auth_mode:** `typing.Optional[UpdateHostedApiRequestAuthMode]` - -
-
- -
-
- -**cors_origins:** `typing.Optional[typing.List[str]]` - -
-
- -
-
- -**enabled:** `typing.Optional[bool]` — A paused API answers 503 to every consumer request. - -
-
- -
-
- -**daily_run_cap:** `typing.Optional[int]` - -
-
- -
-
- -**daily_read_cap:** `typing.Optional[int]` - -
-
- -
-
- -**daily_write_cap:** `typing.Optional[int]` - -
-
- -
-
- -**mcp_enabled:** `typing.Optional[bool]` - -Switch the MCP face at `POST /mcp` on or off. Refused with -400 `validation_failed` naming `mcp_enabled` when the API is, or is -being made, `public`. Allow up to 15 seconds for the switch, like -any route change, to reach every server. - -
-
- -
-
- -**user_token_jwks_url:** `typing.Optional[str]` — Replace the registered key set; an empty string removes it, after which the signing secret verifies tokens again. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hosted_apis.get_open_api(...) -> typing.Dict[str, typing.Any] -
-
- -#### 📝 Description - -
-
- -
-
- -The OpenAPI 3.1 document describing the hosted API's routes - the same -document the API serves to its consumers at `/openapi.json`. A `tool` -route's request body is the operation's own argument schema. When -`mcp_enabled` is on, the document carries an `x-speechify-mcp` object -(`url`, `transport: streamable-http`, `description`) naming where an -MCP client attaches; the face speaks JSON-RPC, so it is an extension -rather than a path. -Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from speechify import Speechify -from speechify.environment import SpeechifyEnvironment - -client = Speechify( - token="", - environment=SpeechifyEnvironment.DEFAULT, -) - -client.hosted_apis.get_open_api( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hosted_apis.get_usage(...) -> HostedApiUsage -
-
- -#### 📝 Description - -
-
- -
-
- -Today's reads, runs and writes against the API's daily caps, with each -route's share of the reads and writes. A read is a request a store, -file or run_latest route answered from storage; a response served from -the cache is not one. A write is a document a `store_write` route -landed; a replayed Idempotency-Key is not one. `counters_available` is false where nothing counts (no Redis), so -a zero is never mistaken for a quiet day. -Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from speechify import Speechify -from speechify.environment import SpeechifyEnvironment - -client = Speechify( - token="", - environment=SpeechifyEnvironment.DEFAULT, -) - -client.hosted_apis.get_usage( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hosted_apis.get_analytics(...) -> RequestAnalyticsResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Requests the API served over time: volume split by status, success -rate, and p50/p95/p99 latency per time bucket, plus one `top_paths` -row per route, busiest first, naming the route by `route_id`. Every -request its host answered counts, including refusals such as a -missing key (401) or an exhausted rate limit (429); `top_paths` counts -only the requests that matched a route, including a route an MCP -client called by tool name. -The window defaults to the last 7 days and is capped at 30. - -History starts at `history_starts_at`, the first request in the last -30 days attributed to this API: requests before it cannot be -attributed, so a bucket before it is missing data, not a quiet period. -When `history_starts_at` is absent, no request to this API has been -attributed in the last 30 days, and no bucket is known to be complete. -Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from speechify import Speechify -from speechify.environment import SpeechifyEnvironment -import datetime - -client = Speechify( - token="", - environment=SpeechifyEnvironment.DEFAULT, -) - -client.hosted_apis.get_analytics( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - start=datetime.datetime.fromisoformat("2026-06-23T00:00:00+00:00"), - end=datetime.datetime.fromisoformat("2026-06-30T00:00:00+00:00"), -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). - -
-
- -
-
- -**start:** `typing.Optional[datetime.datetime]` — Inclusive start of the window (RFC-3339). Defaults to 7 days ago; the window is capped at 30 days. - -
-
- -
-
- -**end:** `typing.Optional[datetime.datetime]` — Exclusive end of the window (RFC-3339). Defaults to now. - -
-
- -
-
- -**granularity:** `typing.Optional[GetAnalyticsHostedApisRequestGranularity]` — Time-bucket size for the analytics series. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hosted_apis.rotate_user_token_secret(...) -> HostedApiUserTokenSecret -
-
- -#### 📝 Description - -
-
- -
-
- -Mint the signing secret end-user tokens are verified against, replacing -any previous one at once: every token signed with the old secret stops -verifying. The plaintext is in this response and nowhere else; later -reads show `user_token_secret_hint`. Your backend signs a JWT with it -(HS256) carrying `sub` (the user, at most 256 characters) and `exp` -(within 24 hours), and the consumer presents it as -`Authorization: Bearer `. Register `user_token_jwks_url` -instead to verify with your own keys. -Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from speechify import Speechify -from speechify.environment import SpeechifyEnvironment - -client = Speechify( - token="", - environment=SpeechifyEnvironment.DEFAULT, -) - -client.hosted_apis.rotate_user_token_secret( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). - -
-
- -
-
- -**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. - -
-
-
-
- - -
-
-
- -## 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. - -
-
-
-
- - -
-
-
- -## HostedApis Routes -
client.hosted_apis.routes.list_routes(...) -> ListHostedApiRoutesResponse -
-
- -#### 📝 Description - -
-
- -
-
- -List a hosted API's routes in creation order. -Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from speechify import Speechify -from speechify.environment import SpeechifyEnvironment - -client = Speechify( - token="", - environment=SpeechifyEnvironment.DEFAULT, -) - -client.hosted_apis.routes.list_routes( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). - -
-
- -
-
- -**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.hosted_apis.routes.create_route(...) -> HostedApiRoute -
-
- -#### 📝 Description - -
-
- -
-
- -Add a route: a method + path answered by a resolver. `store_query`, -`store_document` and `store_aggregate` serve a store; `store_write` -lands the POST body as a document (`write_mode` create / replace / -merge; POST only, never on a public API, counted against -`daily_write_cap`, deduplicated on `Idempotency-Key`); `run_latest` -serves the newest structured output of a schedule trigger's runs; -`run` starts a run through a webhook trigger per request (POST only, -never on a public API) and waits up to `wait_seconds` before answering -202 with a handle to poll at `/_runs/{run_id}`; `file` serves one -published file, or a whole published tree when the path ends in `*` -(`/app/*` with `file_root` and `file_index`); `tool` calls one read -operation of an `openapi` tool definition, or one tool of an `mcp` -tool definition's server, in the API's project whose `approval` is -null or `auto` (POST only, never on a public API, counted against -`daily_read_cap`): the consumer's JSON body is the arguments and the -connector's answer, after the tool's response mapping, is the -response. An `mcp` route pins the tool's input schema as -`resolver.input_schema` when it is written. -Where-clause values and -the document id may be `{{query.x}}`, `{{path.x}}` or `{{body.x}}` -templates bound from the consumer's request, or `{{user.x}}` claims of -the verified caller on a `user_token`, `workspace` or `owner` API; a -clause whose template is absent is skipped. On those three modes a -written document is stamped `user_identity` as the caller and only -they can replace or merge it. Two bindings are refused at write time: -`{{user.*}}` on an API that names no caller, and a clause on -`user_identity` bound from a request template, which would let any -caller read any user's rows. - -On an API with `mcp_enabled`, every enabled route except a `file` -route is also an MCP tool. The tool's name comes from the route's -`name`: every run of characters outside letters, digits, `_` and `-` -becomes `_`, leading and trailing `_` are dropped, and the result is -cut to 64 characters. A route with no name is listed under a name -built from its method and path (`post_issues_open`), and a name two -routes would share takes `_2`, `_3` in route order, so read the names -from the face's `tools/list` rather than deriving them. The route's -`description` is what the client's model reads to choose the tool, -falling back to the operation's summary on a `tool` route. Name and -describe a route for that reader. -Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from speechify import Speechify, HostedApiResolver, HostedApiResolverOrderBy -from speechify.environment import SpeechifyEnvironment - -client = Speechify( - token="", - environment=SpeechifyEnvironment.DEFAULT, -) - -client.hosted_apis.routes.create_route( - api_id="api_01kc4q3r9s6t8v0w2x4y6z8a0b", - method="GET", - path="/leads", - name="list_leads", - description="List leads, highest value first.", - resolver=HostedApiResolver( - type="store_query", - store_id="store_01kc4q5t1v3w5x7y9z1a3b5c7d", - collection="leads", - order_by=HostedApiResolverOrderBy( - field="value", - direction="desc", - ), - ), - cache_ttl_seconds=30, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). - -
-
- -
-
- -**method:** `CreateHostedApiRouteRequestMethod` - -
-
- -
-
- -**path:** `str` — Lowercase segments of letters, digits, `. _ -` or a `{param}`; `/openapi.json`, `/_runs` and `/mcp` are reserved. - -
-
- -
-
- -**resolver:** `HostedApiResolver` - -
-
- -
-
- -**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. - -
-
- -
-
- -**name:** `typing.Optional[str]` - -The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. -On an API with `mcp_enabled` the MCP tool's name comes from it: -each run of other characters (a space included) becomes `_`, -leading and trailing `_` are dropped, and the result is cut to 64 -characters. A route with no name is listed under a name built from -its method and path, and a name two routes would share takes `_2`, -`_3` in route order; the face's `tools/list` is the authority. Pick -a verb-first name a model can choose by. - -
-
- -
-
- -**description:** `typing.Optional[str]` - -What the route does. On an API with `mcp_enabled` it is the MCP -tool description a client's model reads to choose the tool, so say -what it returns and when to call it; a `tool` route with none falls -back to the operation's summary. - -
-
- -
-
- -**response_schema:** `typing.Optional[typing.Dict[str, typing.Any]]` - -
-
- -
-
- -**cache_ttl_seconds:** `typing.Optional[int]` - -
-
- -
-
- -**enabled:** `typing.Optional[bool]` — Enabled when omitted. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hosted_apis.routes.mount_routes(...) -> HostedApiMount -
-
- -#### 📝 Description - -
-
- -
-
- -Publish a connector's operations onto the API in one call: one `tool` -route per operation of an `openapi` tool definition, or per tool its -`mcp` server lists, named `__` at -`/`, so two connectors' tools stay apart on -the MCP face and inside its 64-character tool names. - -Send `dry_run: true` first. The answer lists every operation with -its effective `action_class` and `approval`, whether a route can serve -it, and the `action` a mount takes: `create`, `update` (an MCP tool -whose input schema changed since its route was written; `changes` -names what), `unchanged`, `skip` (with the `reason`: not selected, not -a read, not auto-approved, a name or path already taken, or the route -cap) or `stale` (a route whose operation the connector no longer -offers, or can no longer serve; it is reported and never deleted, -since a consumer may still call it). The same call without `dry_run` -writes every create and update in one transaction and returns the -written `route` on each. - -Every answer carries a `plan_digest`. Send the preview's digest with -the apply: the apply plans again inside its transaction and writes -only when that plan still has the digest, so a tool the server changed -or a route edited after you reviewed is never written unseen. When it -differs the apply writes nothing and answers 409 `mount_plan_changed` -with the current plan, as a dry run answers it, in -`error.details.plan`; review that and apply again with its digest, -under a new `Idempotency-Key` if you sent one, since a key replays its -first answer, this 409 included. The digest covers every operation the -connector offers and every route the API holds for it whatever -`operations` selects, so a preview of everything and an apply of a -selection share one. An apply without it writes whatever the mount -plans at that moment. - -Mounting again is the refresh. Every route the API holds for the -connector is compared with what it offers now, whatever its name, -path or the selection, so an upstream change is seen as a diff before -anyone's client sees it. `operations` selects what to create; omit it -to create a route for every operation a route can serve. A route an -owner renamed or moved keeps its name and path on refresh. - -The route write's rules apply to every operation: the connector must -be in the API's project (409 `cross_project_reference`), an MCP server -must be reachable with its credential to be listed (400 -`validation_failed` on `tool_id` with the server's reason), and a -public API mounts nothing. An API holds at most 200 routes; a mount -that would pass the cap skips what does not fit. Without a -`plan_digest`, a route changed while the mount was being planned -answers 409 `api_route_conflict`; mount again. -Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from speechify import Speechify -from speechify.environment import SpeechifyEnvironment - -client = Speechify( - token="", - environment=SpeechifyEnvironment.DEFAULT, -) - -client.hosted_apis.routes.mount_routes( - api_id="api_01kc4q3r9s6t8v0w2x4y6z8a0b", - tool_id="tool_01kc4n9s3v7w0y4a6c8e2g4j6m", - name_prefix="linear", - dry_run=True, -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). - -
-
- -
-
- -**tool_id:** `str` — The `openapi` or `mcp` tool definition to mount, in the API's project. - -
-
- -
-
- -**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. - -
-
- -
-
- -**operations:** `typing.Optional[typing.List[str]]` - -The operations to create routes for: openapi operation ids or the -MCP server's tool names. Omit to create a route for every operation -a route can serve. Naming one the connector does not offer is 400 -`validation_failed` on `operations[i]`. Existing routes are compared -whatever the selection. - -
-
- -
-
- -**name_prefix:** `typing.Optional[str]` — Prefix of each created route's name, `__`. Defaults to the tool's name with other characters as `_`. - -
-
- -
-
- -**path_prefix:** `typing.Optional[str]` — Path each created route sits under, `/`; lowercase segments of letters, digits, `.`, `_` or `-`, with no `{param}` or `*`, and not under `/mcp`, `/openapi.json` or `/_runs`. Defaults to `/` in lowercase. - -
-
- -
-
- -**dry_run:** `typing.Optional[bool]` — Answer what the mount would do and write nothing. - -
-
- -
-
- -**include_writes:** `typing.Optional[bool]` - -Create routes for operations that are not reads too, each with -`allow_write: true`. Only an API whose `auth_mode` names a person -takes them; the operation's `approval` must still be `auto`. -Without it a write is a `skip` that says so. - -
-
- -
-
- -**plan_digest:** `typing.Optional[str]` - -The `plan_digest` of the preview you reviewed. The apply writes -only while the plan it computes inside its transaction still has -this digest, and otherwise writes nothing and answers 409 -`mount_plan_changed` with the current plan. Omit it to apply what -the mount plans now. Refused with `dry_run`. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hosted_apis.routes.get_route(...) -> HostedApiRoute -
-
- -#### 📝 Description - -
-
- -
-
- -Retrieve one route. -Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from speechify import Speechify -from speechify.environment import SpeechifyEnvironment - -client = Speechify( - token="", - environment=SpeechifyEnvironment.DEFAULT, -) - -client.hosted_apis.routes.get_route( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - route_id="route_01jqr8x9zg5k2m3n4p5q6r7s8t", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). - -
-
- -
-
- -**route_id:** `str` — Route id (prefixed external id, `route_...`). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hosted_apis.routes.delete_route(...) -
-
- -#### 📝 Description - -
-
- -
-
- -Delete a route. -Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from speechify import Speechify -from speechify.environment import SpeechifyEnvironment - -client = Speechify( - token="", - environment=SpeechifyEnvironment.DEFAULT, -) - -client.hosted_apis.routes.delete_route( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - route_id="route_01jqr8x9zg5k2m3n4p5q6r7s8t", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). - -
-
- -
-
- -**route_id:** `str` — Route id (prefixed external id, `route_...`). - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -
client.hosted_apis.routes.update_route(...) -> HostedApiRoute -
-
- -#### 📝 Description - -
-
- -
-
- -Update a route (merge-patch); a changed method or resolver is re-validated. -Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from speechify import Speechify -from speechify.environment import SpeechifyEnvironment - -client = Speechify( - token="", - environment=SpeechifyEnvironment.DEFAULT, -) - -client.hosted_apis.routes.update_route( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - route_id="route_01jqr8x9zg5k2m3n4p5q6r7s8t", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). - -
-
- -
-
- -**route_id:** `str` — Route id (prefixed external id, `route_...`). - -
-
- -
-
- -**method:** `typing.Optional[UpdateHostedApiRouteRequestMethod]` - -
-
- -
-
- -**path:** `typing.Optional[str]` - -
-
- -
-
- -**name:** `typing.Optional[str]` - -The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. -On an API with `mcp_enabled` the MCP tool's name comes from it: -each run of other characters (a space included) becomes `_`, -leading and trailing `_` are dropped, and the result is cut to 64 -characters. A route with no name is listed under a name built from -its method and path, and a name two routes would share takes `_2`, -`_3` in route order; the face's `tools/list` is the authority. Pick -a verb-first name a model can choose by. - -
-
- -
-
- -**description:** `typing.Optional[str]` - -What the route does. On an API with `mcp_enabled` it is the MCP -tool description a client's model reads to choose the tool, so say -what it returns and when to call it; a `tool` route with none falls -back to the operation's summary. - -
-
- -
-
- -**resolver:** `typing.Optional[HostedApiResolver]` - -
-
- -
-
- -**response_schema:** `typing.Optional[typing.Dict[str, typing.Any]]` - -
-
- -
-
- -**cache_ttl_seconds:** `typing.Optional[int]` - -
-
- +## Audio Watermark +
client.audio.watermark.detect(...) -> WatermarkDetectionResponse
-**enabled:** `typing.Optional[bool]` - -
-
+#### 📝 Description
-**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - -
-
-
- -## HostedApis Keys -
client.hosted_apis.keys.list_keys(...) -> ListHostedApiKeysResponse
-#### 📝 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. -List a hosted API's consumer keys, newest first, revoked ones included. -Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). +Checks are rate-limited well below the synthesis budget: this is a +forensic question, not a data-plane call.
@@ -3041,8 +1022,8 @@ client = Speechify( environment=SpeechifyEnvironment.DEFAULT, ) -client.hosted_apis.keys.list_keys( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", +client.audio.watermark.detect( + audio="example_audio", ) ``` @@ -3059,23 +1040,12 @@ client.hosted_apis.keys.list_keys(
-**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). - -
-
- -
-
- -**cursor:** `typing.Optional[str]` — Opaque pagination cursor from a previous response. - -
-
- -
-
+**audio:** `core.File` -**limit:** `typing.Optional[int]` — Max items per page (default 50, max 200). +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.
@@ -3095,7 +1065,7 @@ client.hosted_apis.keys.list_keys(
-
client.hosted_apis.keys.create_key(...) -> HostedApiKey +
client.audio.watermark.verify(...) -> WatermarkVerificationResponse
@@ -3107,117 +1077,34 @@ client.hosted_apis.keys.list_keys(
-Mint a consumer key (`ck_...`) for the API's own callers. The plaintext -`secret` is present in this response only; every later read shows the -masked `key_hint`. -Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from speechify import Speechify -from speechify.environment import SpeechifyEnvironment - -client = Speechify( - token="", - environment=SpeechifyEnvironment.DEFAULT, -) - -client.hosted_apis.keys.create_key( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", - name="name", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). - -
-
- -
-
- -**name:** `str` - -
-
- -
-
- -**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. - -
-
- -
-
- -**rate_per_minute:** `typing.Optional[int]` — Requests per minute; 60 when omitted, 0 for unlimited. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- - - - -
- -
client.hosted_apis.keys.revoke_key(...) -> HostedApiKey -
-
+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. -#### 📝 Description +`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. -Revoke a consumer key; idempotent. Requests carrying it are refused from now on. -Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). +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.
@@ -3240,9 +1127,8 @@ client = Speechify( environment=SpeechifyEnvironment.DEFAULT, ) -client.hosted_apis.keys.revoke_key( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - consumer_key_id="ckey_01jqr8x9zg5k2m3n4p5q6r7s8t", +client.audio.watermark.verify( + audio="example_audio", ) ``` @@ -3259,15 +1145,11 @@ client.hosted_apis.keys.revoke_key(
-**api_id:** `str` — Hosted API id (prefixed external id, `api_...`). - -
-
- -
-
+**audio:** `core.File` -**consumer_key_id:** `str` — Consumer key id (prefixed external id, `ckey_...`). +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.
diff --git a/src/speechify/__init__.py b/src/speechify/__init__.py index 4487590..30b6a3d 100644 --- a/src/speechify/__init__.py +++ b/src/speechify/__init__.py @@ -25,39 +25,11 @@ GetVoiceType, GetVoicesModel, GetVoicesModelName, - HostedApi, - HostedApiAuthMode, - HostedApiKey, - HostedApiMount, - HostedApiMountOperation, - HostedApiMountOperationAction, - HostedApiMountOperationChangesItem, - HostedApiMountSummary, - HostedApiMountToolKind, - HostedApiResolver, - HostedApiResolverOrderBy, - HostedApiResolverOrderByDirection, - HostedApiResolverType, - HostedApiResolverWhereItem, - HostedApiResolverWhereItemOp, - HostedApiResolverWriteMode, - HostedApiRoute, - HostedApiRouteMethod, - HostedApiUsage, - HostedApiUsageRoutesItem, - HostedApiUserTokenSecret, - ListHostedApIsResponse, - ListHostedApiKeysResponse, - ListHostedApiRoutesResponse, ListVoicesResponse, Model, ModelsResponse, NestedChunk, PaginationMeta, - RequestAnalyticsBucket, - RequestAnalyticsResponse, - RequestAnalyticsTotals, - RequestTopPath, SpeechChunkEvent, SpeechDoneEvent, SpeechErrorEvent, @@ -66,8 +38,6 @@ SpeechStreamEvent_SpeechChunk, SpeechStreamEvent_SpeechDone, SpeechStreamEvent_SpeechError, - StoreAggregateMetric, - StoreAggregateMetricOp, WatermarkDetectionResponse, WatermarkVerificationResponse, ) @@ -85,7 +55,7 @@ UnauthorizedError, UnprocessableEntityError, ) - from . import audio, hosted_apis, models, voices + from . import audio, models, voices from ._default_clients import DefaultAioHttpClient, DefaultAsyncHttpxClient from .audio import ( GetSpeechRequestAudioFormat, @@ -95,11 +65,6 @@ ) from .client import AsyncSpeechify, Speechify from .environment import SpeechifyEnvironment - from .hosted_apis import ( - CreateHostedApiRequestAuthMode, - GetAnalyticsHostedApisRequestGranularity, - UpdateHostedApiRequestAuthMode, - ) from .version import __version__ from .voices import CreateVoicesRequestGender, ListVoicesRequestGender, ListVoicesRequestType _dynamic_imports: typing.Dict[str, str] = { @@ -111,7 +76,6 @@ "ConflictError": ".errors", "ConsentChallenge": ".types", "ContentTooLargeError": ".errors", - "CreateHostedApiRequestAuthMode": ".hosted_apis", "CreateVoicesRequestGender": ".voices", "DefaultAioHttpClient": "._default_clients", "DefaultAsyncHttpxClient": "._default_clients", @@ -119,7 +83,6 @@ "ErrorCode": ".types", "ErrorDetail": ".types", "ForbiddenError": ".errors", - "GetAnalyticsHostedApisRequestGranularity": ".hosted_apis", "GetSpeechOptionsRequest": ".types", "GetSpeechRequestAudioFormat": ".audio", "GetSpeechRequestModel": ".audio", @@ -134,31 +97,7 @@ "GetVoiceType": ".types", "GetVoicesModel": ".types", "GetVoicesModelName": ".types", - "HostedApi": ".types", - "HostedApiAuthMode": ".types", - "HostedApiKey": ".types", - "HostedApiMount": ".types", - "HostedApiMountOperation": ".types", - "HostedApiMountOperationAction": ".types", - "HostedApiMountOperationChangesItem": ".types", - "HostedApiMountSummary": ".types", - "HostedApiMountToolKind": ".types", - "HostedApiResolver": ".types", - "HostedApiResolverOrderBy": ".types", - "HostedApiResolverOrderByDirection": ".types", - "HostedApiResolverType": ".types", - "HostedApiResolverWhereItem": ".types", - "HostedApiResolverWhereItemOp": ".types", - "HostedApiResolverWriteMode": ".types", - "HostedApiRoute": ".types", - "HostedApiRouteMethod": ".types", - "HostedApiUsage": ".types", - "HostedApiUsageRoutesItem": ".types", - "HostedApiUserTokenSecret": ".types", "InternalServerError": ".errors", - "ListHostedApIsResponse": ".types", - "ListHostedApiKeysResponse": ".types", - "ListHostedApiRoutesResponse": ".types", "ListVoicesRequestGender": ".voices", "ListVoicesRequestType": ".voices", "ListVoicesResponse": ".types", @@ -168,10 +107,6 @@ "NotFoundError": ".errors", "PaginationMeta": ".types", "PaymentRequiredError": ".errors", - "RequestAnalyticsBucket": ".types", - "RequestAnalyticsResponse": ".types", - "RequestAnalyticsTotals": ".types", - "RequestTopPath": ".types", "ServiceUnavailableError": ".errors", "SpeechChunkEvent": ".types", "SpeechDoneEvent": ".types", @@ -183,19 +118,15 @@ "SpeechStreamEvent_SpeechError": ".types", "Speechify": ".client", "SpeechifyEnvironment": ".environment", - "StoreAggregateMetric": ".types", - "StoreAggregateMetricOp": ".types", "StreamAudioRequestAccept": ".audio", "StreamWithTimestampsAudioRequestAccept": ".audio", "TooManyRequestsError": ".errors", "UnauthorizedError": ".errors", "UnprocessableEntityError": ".errors", - "UpdateHostedApiRequestAuthMode": ".hosted_apis", "WatermarkDetectionResponse": ".types", "WatermarkVerificationResponse": ".types", "__version__": ".version", "audio": ".audio", - "hosted_apis": ".hosted_apis", "models": ".models", "voices": ".voices", } @@ -231,7 +162,6 @@ def __dir__(): "ConflictError", "ConsentChallenge", "ContentTooLargeError", - "CreateHostedApiRequestAuthMode", "CreateVoicesRequestGender", "DefaultAioHttpClient", "DefaultAsyncHttpxClient", @@ -239,7 +169,6 @@ def __dir__(): "ErrorCode", "ErrorDetail", "ForbiddenError", - "GetAnalyticsHostedApisRequestGranularity", "GetSpeechOptionsRequest", "GetSpeechRequestAudioFormat", "GetSpeechRequestModel", @@ -254,31 +183,7 @@ def __dir__(): "GetVoiceType", "GetVoicesModel", "GetVoicesModelName", - "HostedApi", - "HostedApiAuthMode", - "HostedApiKey", - "HostedApiMount", - "HostedApiMountOperation", - "HostedApiMountOperationAction", - "HostedApiMountOperationChangesItem", - "HostedApiMountSummary", - "HostedApiMountToolKind", - "HostedApiResolver", - "HostedApiResolverOrderBy", - "HostedApiResolverOrderByDirection", - "HostedApiResolverType", - "HostedApiResolverWhereItem", - "HostedApiResolverWhereItemOp", - "HostedApiResolverWriteMode", - "HostedApiRoute", - "HostedApiRouteMethod", - "HostedApiUsage", - "HostedApiUsageRoutesItem", - "HostedApiUserTokenSecret", "InternalServerError", - "ListHostedApIsResponse", - "ListHostedApiKeysResponse", - "ListHostedApiRoutesResponse", "ListVoicesRequestGender", "ListVoicesRequestType", "ListVoicesResponse", @@ -288,10 +193,6 @@ def __dir__(): "NotFoundError", "PaginationMeta", "PaymentRequiredError", - "RequestAnalyticsBucket", - "RequestAnalyticsResponse", - "RequestAnalyticsTotals", - "RequestTopPath", "ServiceUnavailableError", "SpeechChunkEvent", "SpeechDoneEvent", @@ -303,19 +204,15 @@ def __dir__(): "SpeechStreamEvent_SpeechError", "Speechify", "SpeechifyEnvironment", - "StoreAggregateMetric", - "StoreAggregateMetricOp", "StreamAudioRequestAccept", "StreamWithTimestampsAudioRequestAccept", "TooManyRequestsError", "UnauthorizedError", "UnprocessableEntityError", - "UpdateHostedApiRequestAuthMode", "WatermarkDetectionResponse", "WatermarkVerificationResponse", "__version__", "audio", - "hosted_apis", "models", "voices", ] diff --git a/src/speechify/client.py b/src/speechify/client.py index c9a4d41..b2fa866 100644 --- a/src/speechify/client.py +++ b/src/speechify/client.py @@ -12,7 +12,6 @@ if typing.TYPE_CHECKING: from .audio.client import AsyncAudioClient, AudioClient - from .hosted_apis.client import AsyncHostedApisClient, HostedApisClient from .models.client import AsyncModelsClient, ModelsClient from .voices.client import AsyncVoicesClient, VoicesClient @@ -100,7 +99,6 @@ def __init__( self._audio: typing.Optional[AudioClient] = None self._models: typing.Optional[ModelsClient] = None self._voices: typing.Optional[VoicesClient] = None - self._hosted_apis: typing.Optional[HostedApisClient] = None @property def audio(self): @@ -126,14 +124,6 @@ def voices(self): self._voices = VoicesClient(client_wrapper=self._client_wrapper) return self._voices - @property - def hosted_apis(self): - if self._hosted_apis is None: - from .hosted_apis.client import HostedApisClient # noqa: E402 - - self._hosted_apis = HostedApisClient(client_wrapper=self._client_wrapper) - return self._hosted_apis - def _make_default_async_client( timeout: typing.Optional[float], @@ -239,7 +229,6 @@ def __init__( self._audio: typing.Optional[AsyncAudioClient] = None self._models: typing.Optional[AsyncModelsClient] = None self._voices: typing.Optional[AsyncVoicesClient] = None - self._hosted_apis: typing.Optional[AsyncHostedApisClient] = None @property def audio(self): @@ -265,14 +254,6 @@ def voices(self): self._voices = AsyncVoicesClient(client_wrapper=self._client_wrapper) return self._voices - @property - def hosted_apis(self): - if self._hosted_apis is None: - from .hosted_apis.client import AsyncHostedApisClient # noqa: E402 - - self._hosted_apis = AsyncHostedApisClient(client_wrapper=self._client_wrapper) - return self._hosted_apis - def _get_base_url(*, base_url: typing.Optional[str] = None, environment: SpeechifyEnvironment) -> str: if base_url is not None: diff --git a/src/speechify/hosted_apis/__init__.py b/src/speechify/hosted_apis/__init__.py deleted file mode 100644 index f3f9b0d..0000000 --- a/src/speechify/hosted_apis/__init__.py +++ /dev/null @@ -1,56 +0,0 @@ -# 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 ( - CreateHostedApiRequestAuthMode, - GetAnalyticsHostedApisRequestGranularity, - UpdateHostedApiRequestAuthMode, - ) - from . import keys, routes - from .routes import CreateHostedApiRouteRequestMethod, UpdateHostedApiRouteRequestMethod -_dynamic_imports: typing.Dict[str, str] = { - "CreateHostedApiRequestAuthMode": ".types", - "CreateHostedApiRouteRequestMethod": ".routes", - "GetAnalyticsHostedApisRequestGranularity": ".types", - "UpdateHostedApiRequestAuthMode": ".types", - "UpdateHostedApiRouteRequestMethod": ".routes", - "keys": ".keys", - "routes": ".routes", -} - - -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__ = [ - "CreateHostedApiRequestAuthMode", - "CreateHostedApiRouteRequestMethod", - "GetAnalyticsHostedApisRequestGranularity", - "UpdateHostedApiRequestAuthMode", - "UpdateHostedApiRouteRequestMethod", - "keys", - "routes", -] diff --git a/src/speechify/hosted_apis/client.py b/src/speechify/hosted_apis/client.py deleted file mode 100644 index a3db5c6..0000000 --- a/src/speechify/hosted_apis/client.py +++ /dev/null @@ -1,1281 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -from __future__ import annotations - -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.hosted_api import HostedApi -from ..types.hosted_api_usage import HostedApiUsage -from ..types.hosted_api_user_token_secret import HostedApiUserTokenSecret -from ..types.list_hosted_ap_is_response import ListHostedApIsResponse -from ..types.request_analytics_response import RequestAnalyticsResponse -from .raw_client import AsyncRawHostedApisClient, RawHostedApisClient -from .types.create_hosted_api_request_auth_mode import CreateHostedApiRequestAuthMode -from .types.get_analytics_hosted_apis_request_granularity import GetAnalyticsHostedApisRequestGranularity -from .types.update_hosted_api_request_auth_mode import UpdateHostedApiRequestAuthMode - -if typing.TYPE_CHECKING: - from .keys.client import AsyncKeysClient, KeysClient - from .routes.client import AsyncRoutesClient, RoutesClient -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class HostedApisClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawHostedApisClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._routes: typing.Optional[RoutesClient] = None - self._keys: typing.Optional[KeysClient] = None - - @property - def with_raw_response(self) -> RawHostedApisClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawHostedApisClient - """ - 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[HostedApi, ListHostedApIsResponse]: - """ - List the hosted APIs in the caller's workspace, most recently updated - first. A hosted API is the API you assemble: a slug that becomes - `https://.`, the routes it answers, and the - consumer keys your own callers present. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - 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 by workspace project: omit for every project you can reach, - pass the literal `default` for resources in the implicit Default - project only, or a `proj_...` id for that project's resources. - Returns 404 project_not_found for a malformed id and for any filter - 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, so neither can name `default`. - 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. Inside it, a well-formed id that - matches no project yields an empty page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[HostedApi, ListHostedApIsResponse] - OK - - Examples - -------- - from speechify import Speechify - - client = Speechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - response = client.hosted_apis.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, - *, - slug: str, - name: str, - idempotency_key: typing.Optional[str] = None, - description: typing.Optional[str] = OMIT, - auth_mode: typing.Optional[CreateHostedApiRequestAuthMode] = OMIT, - cors_origins: typing.Optional[typing.Sequence[str]] = OMIT, - daily_run_cap: typing.Optional[int] = OMIT, - daily_read_cap: typing.Optional[int] = OMIT, - daily_write_cap: typing.Optional[int] = OMIT, - mcp_enabled: typing.Optional[bool] = OMIT, - project_id: typing.Optional[str] = OMIT, - user_token_jwks_url: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HostedApi: - """ - Create a hosted API. The slug is a DNS label, globally unique on the - shared domain (409 `hosted_api_slug_taken`) and immutable afterwards. - `auth_mode` names the audience, narrowest first: `owner`, `workspace` - (the platform's own credentials), `user_token` (a JWT your backend - signs per user), `consumer_key` (a `ck_` key you mint) or `public` - (anyone, reads only). A workspace can refuse `public` as policy (403 - `hosted_api_public_refused`). Reads, runs and writes are each bounded - per UTC day (`daily_read_cap`, `daily_run_cap`, `daily_write_cap`), - and an API holds only a share of a server's requests open at once, so - a slow upstream behind one API cannot take the capacity others need: - past it, a request answers 429 `hosted_api_busy` with `Retry-After`. - - `mcp_enabled: true` also serves the API's routes as an MCP server at - `POST /mcp`, so an MCP client (Claude Code, Cursor) attaches - to one address and gets them as tools, under the same audience, keys - and caps. It is refused with `auth_mode: public`. On that face the - API's `name` is the server's title and its `description` is the - instructions the client's model reads, so describe what the tools are - for. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - slug : str - 3-40 lowercase letters, digits or hyphens; a DNS label, unique on the shared domain; immutable. - - name : str - - 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. - - description : typing.Optional[str] - What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. - - auth_mode : typing.Optional[CreateHostedApiRequestAuthMode] - consumer_key when omitted. `public` is refused with 403 `hosted_api_public_refused` where the workspace's policy does not allow internet-facing APIs. - - cors_origins : typing.Optional[typing.Sequence[str]] - - daily_run_cap : typing.Optional[int] - Runs the API may start per UTC day through its run routes; 1000 when omitted. - - daily_read_cap : typing.Optional[int] - Reads the API's store, file, run_latest and tool routes may serve per UTC day; 100000 when omitted. - - daily_write_cap : typing.Optional[int] - Documents the API's write routes may land per UTC day; 10000 when omitted. - - mcp_enabled : typing.Optional[bool] - Serve the routes as an MCP server at `POST /mcp` too; - false when omitted. Refused with `auth_mode: public` (400 - `validation_failed` naming `mcp_enabled`). - - project_id : typing.Optional[str] - - user_token_jwks_url : typing.Optional[str] - Register the key set end-user tokens are verified against (an `https` URL on a public host). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApi - The created API. - - Examples - -------- - from speechify import Speechify - - client = Speechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - client.hosted_apis.create( - idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", - slug="acme-news", - name="Acme News", - ) - """ - _response = self._raw_client.create( - slug=slug, - name=name, - idempotency_key=idempotency_key, - description=description, - auth_mode=auth_mode, - cors_origins=cors_origins, - daily_run_cap=daily_run_cap, - daily_read_cap=daily_read_cap, - daily_write_cap=daily_write_cap, - mcp_enabled=mcp_enabled, - project_id=project_id, - user_token_jwks_url=user_token_jwks_url, - request_options=request_options, - ) - return _response.data - - def get(self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HostedApi: - """ - Retrieve one hosted API. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApi - OK - - Examples - -------- - from speechify import Speechify - - client = Speechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - client.hosted_apis.get( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - ) - """ - _response = self._raw_client.get(api_id, request_options=request_options) - return _response.data - - def delete(self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a hosted API; its host stops answering at once. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from speechify import Speechify - - client = Speechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - client.hosted_apis.delete( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - ) - """ - _response = self._raw_client.delete(api_id, request_options=request_options) - return _response.data - - def update( - self, - api_id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - auth_mode: typing.Optional[UpdateHostedApiRequestAuthMode] = OMIT, - cors_origins: typing.Optional[typing.Sequence[str]] = OMIT, - enabled: typing.Optional[bool] = OMIT, - daily_run_cap: typing.Optional[int] = OMIT, - daily_read_cap: typing.Optional[int] = OMIT, - daily_write_cap: typing.Optional[int] = OMIT, - mcp_enabled: typing.Optional[bool] = OMIT, - user_token_jwks_url: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HostedApi: - """ - Update a hosted API (merge-patch). Switching to `public` is refused - while a `run` or `store_write` route exists: an anonymous caller must - not start runs that spend the workspace's budget or write to a store, - and it is refused outright where the workspace's policy does not allow - internet-facing APIs (403 `hosted_api_public_refused`). Switching to a - mode that names no caller (`consumer_key`, `public`) is refused while - a route binds `{{user.*}}`: only `user_token`, `workspace` and `owner` - supply a person. Switching to `public` is also refused while a `tool` - route exists (a vendor call spends the workspace's vendor budget) and - while `mcp_enabled` is on, and switching the MCP face on is refused on - a `public` API (400 `validation_failed` naming `mcp_enabled`). - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - name : typing.Optional[str] - - description : typing.Optional[str] - What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. - - auth_mode : typing.Optional[UpdateHostedApiRequestAuthMode] - - cors_origins : typing.Optional[typing.Sequence[str]] - - enabled : typing.Optional[bool] - A paused API answers 503 to every consumer request. - - daily_run_cap : typing.Optional[int] - - daily_read_cap : typing.Optional[int] - - daily_write_cap : typing.Optional[int] - - mcp_enabled : typing.Optional[bool] - Switch the MCP face at `POST /mcp` on or off. Refused with - 400 `validation_failed` naming `mcp_enabled` when the API is, or is - being made, `public`. Allow up to 15 seconds for the switch, like - any route change, to reach every server. - - user_token_jwks_url : typing.Optional[str] - Replace the registered key set; an empty string removes it, after which the signing secret verifies tokens again. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApi - OK - - Examples - -------- - from speechify import Speechify - - client = Speechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - client.hosted_apis.update( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - ) - """ - _response = self._raw_client.update( - api_id, - name=name, - description=description, - auth_mode=auth_mode, - cors_origins=cors_origins, - enabled=enabled, - daily_run_cap=daily_run_cap, - daily_read_cap=daily_read_cap, - daily_write_cap=daily_write_cap, - mcp_enabled=mcp_enabled, - user_token_jwks_url=user_token_jwks_url, - request_options=request_options, - ) - return _response.data - - def get_open_api( - self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.Dict[str, typing.Any]: - """ - The OpenAPI 3.1 document describing the hosted API's routes - the same - document the API serves to its consumers at `/openapi.json`. A `tool` - route's request body is the operation's own argument schema. When - `mcp_enabled` is on, the document carries an `x-speechify-mcp` object - (`url`, `transport: streamable-http`, `description`) naming where an - MCP client attaches; the face speaks JSON-RPC, so it is an extension - rather than a path. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.Dict[str, typing.Any] - The OpenAPI document. - - Examples - -------- - from speechify import Speechify - - client = Speechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - client.hosted_apis.get_open_api( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - ) - """ - _response = self._raw_client.get_open_api(api_id, request_options=request_options) - return _response.data - - def get_usage(self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HostedApiUsage: - """ - Today's reads, runs and writes against the API's daily caps, with each - route's share of the reads and writes. A read is a request a store, - file or run_latest route answered from storage; a response served from - the cache is not one. A write is a document a `store_write` route - landed; a replayed Idempotency-Key is not one. `counters_available` is false where nothing counts (no Redis), so - a zero is never mistaken for a quiet day. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApiUsage - OK - - Examples - -------- - from speechify import Speechify - - client = Speechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - client.hosted_apis.get_usage( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - ) - """ - _response = self._raw_client.get_usage(api_id, request_options=request_options) - return _response.data - - def get_analytics( - self, - api_id: str, - *, - start: typing.Optional[dt.datetime] = None, - end: typing.Optional[dt.datetime] = None, - granularity: typing.Optional[GetAnalyticsHostedApisRequestGranularity] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RequestAnalyticsResponse: - """ - Requests the API served over time: volume split by status, success - rate, and p50/p95/p99 latency per time bucket, plus one `top_paths` - row per route, busiest first, naming the route by `route_id`. Every - request its host answered counts, including refusals such as a - missing key (401) or an exhausted rate limit (429); `top_paths` counts - only the requests that matched a route, including a route an MCP - client called by tool name. - The window defaults to the last 7 days and is capped at 30. - - History starts at `history_starts_at`, the first request in the last - 30 days attributed to this API: requests before it cannot be - attributed, so a bucket before it is missing data, not a quiet period. - When `history_starts_at` is absent, no request to this API has been - attributed in the last 30 days, and no bucket is known to be complete. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - start : typing.Optional[dt.datetime] - Inclusive start of the window (RFC-3339). Defaults to 7 days ago; the window is capped at 30 days. - - end : typing.Optional[dt.datetime] - Exclusive end of the window (RFC-3339). Defaults to now. - - granularity : typing.Optional[GetAnalyticsHostedApisRequestGranularity] - Time-bucket size for the analytics series. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RequestAnalyticsResponse - OK - - Examples - -------- - import datetime - - from speechify import Speechify - - client = Speechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - client.hosted_apis.get_analytics( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - start=datetime.datetime.fromisoformat( - "2026-06-23 00:00:00+00:00", - ), - end=datetime.datetime.fromisoformat( - "2026-06-30 00:00:00+00:00", - ), - ) - """ - _response = self._raw_client.get_analytics( - api_id, start=start, end=end, granularity=granularity, request_options=request_options - ) - return _response.data - - def rotate_user_token_secret( - self, - api_id: str, - *, - idempotency_key: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HostedApiUserTokenSecret: - """ - Mint the signing secret end-user tokens are verified against, replacing - any previous one at once: every token signed with the old secret stops - verifying. The plaintext is in this response and nowhere else; later - reads show `user_token_secret_hint`. Your backend signs a JWT with it - (HS256) carrying `sub` (the user, at most 256 characters) and `exp` - (within 24 hours), and the consumer presents it as - `Authorization: Bearer `. Register `user_token_jwks_url` - instead to verify with your own keys. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - 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. - - Returns - ------- - HostedApiUserTokenSecret - OK - - Examples - -------- - from speechify import Speechify - - client = Speechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - client.hosted_apis.rotate_user_token_secret( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", - ) - """ - _response = self._raw_client.rotate_user_token_secret( - api_id, idempotency_key=idempotency_key, request_options=request_options - ) - return _response.data - - @property - def routes(self): - if self._routes is None: - from .routes.client import RoutesClient # noqa: E402 - - self._routes = RoutesClient(client_wrapper=self._client_wrapper) - return self._routes - - @property - def keys(self): - if self._keys is None: - from .keys.client import KeysClient # noqa: E402 - - self._keys = KeysClient(client_wrapper=self._client_wrapper) - return self._keys - - -class AsyncHostedApisClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawHostedApisClient(client_wrapper=client_wrapper) - self._client_wrapper = client_wrapper - self._routes: typing.Optional[AsyncRoutesClient] = None - self._keys: typing.Optional[AsyncKeysClient] = None - - @property - def with_raw_response(self) -> AsyncRawHostedApisClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawHostedApisClient - """ - 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[HostedApi, ListHostedApIsResponse]: - """ - List the hosted APIs in the caller's workspace, most recently updated - first. A hosted API is the API you assemble: a slug that becomes - `https://.`, the routes it answers, and the - consumer keys your own callers present. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - 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 by workspace project: omit for every project you can reach, - pass the literal `default` for resources in the implicit Default - project only, or a `proj_...` id for that project's resources. - Returns 404 project_not_found for a malformed id and for any filter - 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, so neither can name `default`. - 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. Inside it, a well-formed id that - matches no project yields an empty page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[HostedApi, ListHostedApIsResponse] - OK - - Examples - -------- - import asyncio - - from speechify import AsyncSpeechify - - client = AsyncSpeechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.hosted_apis.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, - *, - slug: str, - name: str, - idempotency_key: typing.Optional[str] = None, - description: typing.Optional[str] = OMIT, - auth_mode: typing.Optional[CreateHostedApiRequestAuthMode] = OMIT, - cors_origins: typing.Optional[typing.Sequence[str]] = OMIT, - daily_run_cap: typing.Optional[int] = OMIT, - daily_read_cap: typing.Optional[int] = OMIT, - daily_write_cap: typing.Optional[int] = OMIT, - mcp_enabled: typing.Optional[bool] = OMIT, - project_id: typing.Optional[str] = OMIT, - user_token_jwks_url: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HostedApi: - """ - Create a hosted API. The slug is a DNS label, globally unique on the - shared domain (409 `hosted_api_slug_taken`) and immutable afterwards. - `auth_mode` names the audience, narrowest first: `owner`, `workspace` - (the platform's own credentials), `user_token` (a JWT your backend - signs per user), `consumer_key` (a `ck_` key you mint) or `public` - (anyone, reads only). A workspace can refuse `public` as policy (403 - `hosted_api_public_refused`). Reads, runs and writes are each bounded - per UTC day (`daily_read_cap`, `daily_run_cap`, `daily_write_cap`), - and an API holds only a share of a server's requests open at once, so - a slow upstream behind one API cannot take the capacity others need: - past it, a request answers 429 `hosted_api_busy` with `Retry-After`. - - `mcp_enabled: true` also serves the API's routes as an MCP server at - `POST /mcp`, so an MCP client (Claude Code, Cursor) attaches - to one address and gets them as tools, under the same audience, keys - and caps. It is refused with `auth_mode: public`. On that face the - API's `name` is the server's title and its `description` is the - instructions the client's model reads, so describe what the tools are - for. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - slug : str - 3-40 lowercase letters, digits or hyphens; a DNS label, unique on the shared domain; immutable. - - name : str - - 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. - - description : typing.Optional[str] - What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. - - auth_mode : typing.Optional[CreateHostedApiRequestAuthMode] - consumer_key when omitted. `public` is refused with 403 `hosted_api_public_refused` where the workspace's policy does not allow internet-facing APIs. - - cors_origins : typing.Optional[typing.Sequence[str]] - - daily_run_cap : typing.Optional[int] - Runs the API may start per UTC day through its run routes; 1000 when omitted. - - daily_read_cap : typing.Optional[int] - Reads the API's store, file, run_latest and tool routes may serve per UTC day; 100000 when omitted. - - daily_write_cap : typing.Optional[int] - Documents the API's write routes may land per UTC day; 10000 when omitted. - - mcp_enabled : typing.Optional[bool] - Serve the routes as an MCP server at `POST /mcp` too; - false when omitted. Refused with `auth_mode: public` (400 - `validation_failed` naming `mcp_enabled`). - - project_id : typing.Optional[str] - - user_token_jwks_url : typing.Optional[str] - Register the key set end-user tokens are verified against (an `https` URL on a public host). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApi - The created API. - - Examples - -------- - import asyncio - - from speechify import AsyncSpeechify - - client = AsyncSpeechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hosted_apis.create( - idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", - slug="acme-news", - name="Acme News", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create( - slug=slug, - name=name, - idempotency_key=idempotency_key, - description=description, - auth_mode=auth_mode, - cors_origins=cors_origins, - daily_run_cap=daily_run_cap, - daily_read_cap=daily_read_cap, - daily_write_cap=daily_write_cap, - mcp_enabled=mcp_enabled, - project_id=project_id, - user_token_jwks_url=user_token_jwks_url, - request_options=request_options, - ) - return _response.data - - async def get(self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HostedApi: - """ - Retrieve one hosted API. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApi - OK - - Examples - -------- - import asyncio - - from speechify import AsyncSpeechify - - client = AsyncSpeechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hosted_apis.get( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get(api_id, request_options=request_options) - return _response.data - - async def delete(self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: - """ - Delete a hosted API; its host stops answering at once. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from speechify import AsyncSpeechify - - client = AsyncSpeechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hosted_apis.delete( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete(api_id, request_options=request_options) - return _response.data - - async def update( - self, - api_id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - auth_mode: typing.Optional[UpdateHostedApiRequestAuthMode] = OMIT, - cors_origins: typing.Optional[typing.Sequence[str]] = OMIT, - enabled: typing.Optional[bool] = OMIT, - daily_run_cap: typing.Optional[int] = OMIT, - daily_read_cap: typing.Optional[int] = OMIT, - daily_write_cap: typing.Optional[int] = OMIT, - mcp_enabled: typing.Optional[bool] = OMIT, - user_token_jwks_url: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HostedApi: - """ - Update a hosted API (merge-patch). Switching to `public` is refused - while a `run` or `store_write` route exists: an anonymous caller must - not start runs that spend the workspace's budget or write to a store, - and it is refused outright where the workspace's policy does not allow - internet-facing APIs (403 `hosted_api_public_refused`). Switching to a - mode that names no caller (`consumer_key`, `public`) is refused while - a route binds `{{user.*}}`: only `user_token`, `workspace` and `owner` - supply a person. Switching to `public` is also refused while a `tool` - route exists (a vendor call spends the workspace's vendor budget) and - while `mcp_enabled` is on, and switching the MCP face on is refused on - a `public` API (400 `validation_failed` naming `mcp_enabled`). - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - name : typing.Optional[str] - - description : typing.Optional[str] - What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. - - auth_mode : typing.Optional[UpdateHostedApiRequestAuthMode] - - cors_origins : typing.Optional[typing.Sequence[str]] - - enabled : typing.Optional[bool] - A paused API answers 503 to every consumer request. - - daily_run_cap : typing.Optional[int] - - daily_read_cap : typing.Optional[int] - - daily_write_cap : typing.Optional[int] - - mcp_enabled : typing.Optional[bool] - Switch the MCP face at `POST /mcp` on or off. Refused with - 400 `validation_failed` naming `mcp_enabled` when the API is, or is - being made, `public`. Allow up to 15 seconds for the switch, like - any route change, to reach every server. - - user_token_jwks_url : typing.Optional[str] - Replace the registered key set; an empty string removes it, after which the signing secret verifies tokens again. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApi - OK - - Examples - -------- - import asyncio - - from speechify import AsyncSpeechify - - client = AsyncSpeechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hosted_apis.update( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update( - api_id, - name=name, - description=description, - auth_mode=auth_mode, - cors_origins=cors_origins, - enabled=enabled, - daily_run_cap=daily_run_cap, - daily_read_cap=daily_read_cap, - daily_write_cap=daily_write_cap, - mcp_enabled=mcp_enabled, - user_token_jwks_url=user_token_jwks_url, - request_options=request_options, - ) - return _response.data - - async def get_open_api( - self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> typing.Dict[str, typing.Any]: - """ - The OpenAPI 3.1 document describing the hosted API's routes - the same - document the API serves to its consumers at `/openapi.json`. A `tool` - route's request body is the operation's own argument schema. When - `mcp_enabled` is on, the document carries an `x-speechify-mcp` object - (`url`, `transport: streamable-http`, `description`) naming where an - MCP client attaches; the face speaks JSON-RPC, so it is an extension - rather than a path. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - typing.Dict[str, typing.Any] - The OpenAPI document. - - Examples - -------- - import asyncio - - from speechify import AsyncSpeechify - - client = AsyncSpeechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hosted_apis.get_open_api( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_open_api(api_id, request_options=request_options) - return _response.data - - async def get_usage( - self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HostedApiUsage: - """ - Today's reads, runs and writes against the API's daily caps, with each - route's share of the reads and writes. A read is a request a store, - file or run_latest route answered from storage; a response served from - the cache is not one. A write is a document a `store_write` route - landed; a replayed Idempotency-Key is not one. `counters_available` is false where nothing counts (no Redis), so - a zero is never mistaken for a quiet day. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApiUsage - OK - - Examples - -------- - import asyncio - - from speechify import AsyncSpeechify - - client = AsyncSpeechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hosted_apis.get_usage( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_usage(api_id, request_options=request_options) - return _response.data - - async def get_analytics( - self, - api_id: str, - *, - start: typing.Optional[dt.datetime] = None, - end: typing.Optional[dt.datetime] = None, - granularity: typing.Optional[GetAnalyticsHostedApisRequestGranularity] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> RequestAnalyticsResponse: - """ - Requests the API served over time: volume split by status, success - rate, and p50/p95/p99 latency per time bucket, plus one `top_paths` - row per route, busiest first, naming the route by `route_id`. Every - request its host answered counts, including refusals such as a - missing key (401) or an exhausted rate limit (429); `top_paths` counts - only the requests that matched a route, including a route an MCP - client called by tool name. - The window defaults to the last 7 days and is capped at 30. - - History starts at `history_starts_at`, the first request in the last - 30 days attributed to this API: requests before it cannot be - attributed, so a bucket before it is missing data, not a quiet period. - When `history_starts_at` is absent, no request to this API has been - attributed in the last 30 days, and no bucket is known to be complete. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - start : typing.Optional[dt.datetime] - Inclusive start of the window (RFC-3339). Defaults to 7 days ago; the window is capped at 30 days. - - end : typing.Optional[dt.datetime] - Exclusive end of the window (RFC-3339). Defaults to now. - - granularity : typing.Optional[GetAnalyticsHostedApisRequestGranularity] - Time-bucket size for the analytics series. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - RequestAnalyticsResponse - OK - - Examples - -------- - import asyncio - import datetime - - from speechify import AsyncSpeechify - - client = AsyncSpeechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hosted_apis.get_analytics( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - start=datetime.datetime.fromisoformat( - "2026-06-23 00:00:00+00:00", - ), - end=datetime.datetime.fromisoformat( - "2026-06-30 00:00:00+00:00", - ), - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_analytics( - api_id, start=start, end=end, granularity=granularity, request_options=request_options - ) - return _response.data - - async def rotate_user_token_secret( - self, - api_id: str, - *, - idempotency_key: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HostedApiUserTokenSecret: - """ - Mint the signing secret end-user tokens are verified against, replacing - any previous one at once: every token signed with the old secret stops - verifying. The plaintext is in this response and nowhere else; later - reads show `user_token_secret_hint`. Your backend signs a JWT with it - (HS256) carrying `sub` (the user, at most 256 characters) and `exp` - (within 24 hours), and the consumer presents it as - `Authorization: Bearer `. Register `user_token_jwks_url` - instead to verify with your own keys. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - 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. - - Returns - ------- - HostedApiUserTokenSecret - OK - - Examples - -------- - import asyncio - - from speechify import AsyncSpeechify - - client = AsyncSpeechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hosted_apis.rotate_user_token_secret( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.rotate_user_token_secret( - api_id, idempotency_key=idempotency_key, request_options=request_options - ) - return _response.data - - @property - def routes(self): - if self._routes is None: - from .routes.client import AsyncRoutesClient # noqa: E402 - - self._routes = AsyncRoutesClient(client_wrapper=self._client_wrapper) - return self._routes - - @property - def keys(self): - if self._keys is None: - from .keys.client import AsyncKeysClient # noqa: E402 - - self._keys = AsyncKeysClient(client_wrapper=self._client_wrapper) - return self._keys diff --git a/src/speechify/hosted_apis/keys/__init__.py b/src/speechify/hosted_apis/keys/__init__.py deleted file mode 100644 index 5cde020..0000000 --- a/src/speechify/hosted_apis/keys/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - diff --git a/src/speechify/hosted_apis/keys/client.py b/src/speechify/hosted_apis/keys/client.py deleted file mode 100644 index 0a3baf8..0000000 --- a/src/speechify/hosted_apis/keys/client.py +++ /dev/null @@ -1,376 +0,0 @@ -# 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.hosted_api_key import HostedApiKey -from ...types.list_hosted_api_keys_response import ListHostedApiKeysResponse -from .raw_client import AsyncRawKeysClient, RawKeysClient - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class KeysClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawKeysClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawKeysClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawKeysClient - """ - return self._raw_client - - def list_keys( - self, - api_id: str, - *, - cursor: typing.Optional[str] = None, - limit: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[HostedApiKey, ListHostedApiKeysResponse]: - """ - List a hosted API's consumer keys, newest first, revoked ones included. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - 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[HostedApiKey, ListHostedApiKeysResponse] - OK - - Examples - -------- - from speechify import Speechify - - client = Speechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - response = client.hosted_apis.keys.list_keys( - api_id="api_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_keys(api_id, cursor=cursor, limit=limit, request_options=request_options) - - def create_key( - self, - api_id: str, - *, - name: str, - idempotency_key: typing.Optional[str] = None, - rate_per_minute: typing.Optional[int] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HostedApiKey: - """ - Mint a consumer key (`ck_...`) for the API's own callers. The plaintext - `secret` is present in this response only; every later read shows the - masked `key_hint`. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - name : str - - 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. - - rate_per_minute : typing.Optional[int] - Requests per minute; 60 when omitted, 0 for unlimited. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApiKey - The created key, with its one-time secret. - - Examples - -------- - from speechify import Speechify - - client = Speechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - client.hosted_apis.keys.create_key( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", - name="name", - ) - """ - _response = self._raw_client.create_key( - api_id, - name=name, - idempotency_key=idempotency_key, - rate_per_minute=rate_per_minute, - request_options=request_options, - ) - return _response.data - - def revoke_key( - self, api_id: str, consumer_key_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HostedApiKey: - """ - Revoke a consumer key; idempotent. Requests carrying it are refused from now on. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - consumer_key_id : str - Consumer key id (prefixed external id, `ckey_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApiKey - OK - - Examples - -------- - from speechify import Speechify - - client = Speechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - client.hosted_apis.keys.revoke_key( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - consumer_key_id="ckey_01jqr8x9zg5k2m3n4p5q6r7s8t", - ) - """ - _response = self._raw_client.revoke_key(api_id, consumer_key_id, request_options=request_options) - return _response.data - - -class AsyncKeysClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawKeysClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawKeysClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawKeysClient - """ - return self._raw_client - - async def list_keys( - self, - api_id: str, - *, - cursor: typing.Optional[str] = None, - limit: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[HostedApiKey, ListHostedApiKeysResponse]: - """ - List a hosted API's consumer keys, newest first, revoked ones included. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - 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[HostedApiKey, ListHostedApiKeysResponse] - OK - - Examples - -------- - import asyncio - - from speechify import AsyncSpeechify - - client = AsyncSpeechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.hosted_apis.keys.list_keys( - api_id="api_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_keys(api_id, cursor=cursor, limit=limit, request_options=request_options) - - async def create_key( - self, - api_id: str, - *, - name: str, - idempotency_key: typing.Optional[str] = None, - rate_per_minute: typing.Optional[int] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HostedApiKey: - """ - Mint a consumer key (`ck_...`) for the API's own callers. The plaintext - `secret` is present in this response only; every later read shows the - masked `key_hint`. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - name : str - - 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. - - rate_per_minute : typing.Optional[int] - Requests per minute; 60 when omitted, 0 for unlimited. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApiKey - The created key, with its one-time secret. - - Examples - -------- - import asyncio - - from speechify import AsyncSpeechify - - client = AsyncSpeechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hosted_apis.keys.create_key( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", - name="name", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create_key( - api_id, - name=name, - idempotency_key=idempotency_key, - rate_per_minute=rate_per_minute, - request_options=request_options, - ) - return _response.data - - async def revoke_key( - self, api_id: str, consumer_key_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HostedApiKey: - """ - Revoke a consumer key; idempotent. Requests carrying it are refused from now on. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - consumer_key_id : str - Consumer key id (prefixed external id, `ckey_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApiKey - OK - - Examples - -------- - import asyncio - - from speechify import AsyncSpeechify - - client = AsyncSpeechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hosted_apis.keys.revoke_key( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - consumer_key_id="ckey_01jqr8x9zg5k2m3n4p5q6r7s8t", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.revoke_key(api_id, consumer_key_id, request_options=request_options) - return _response.data diff --git a/src/speechify/hosted_apis/keys/raw_client.py b/src/speechify/hosted_apis/keys/raw_client.py deleted file mode 100644 index 08f4be1..0000000 --- a/src/speechify/hosted_apis/keys/raw_client.py +++ /dev/null @@ -1,836 +0,0 @@ -# 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.internal_server_error import InternalServerError -from ...errors.not_found_error import NotFoundError -from ...errors.payment_required_error import PaymentRequiredError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.error import Error -from ...types.hosted_api_key import HostedApiKey -from ...types.list_hosted_api_keys_response import ListHostedApiKeysResponse -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawKeysClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list_keys( - self, - api_id: str, - *, - cursor: typing.Optional[str] = None, - limit: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[HostedApiKey, ListHostedApiKeysResponse]: - """ - List a hosted API's consumer keys, newest first, revoked ones included. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - 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[HostedApiKey, ListHostedApiKeysResponse] - OK - """ - _response = self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/keys", - method="GET", - params={ - "cursor": cursor, - "limit": limit, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListHostedApiKeysResponse, - parse_obj_as( - type_=ListHostedApiKeysResponse, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.keys - _parsed_next = _parsed_response.next_cursor - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list_keys( - api_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 == 402: - raise PaymentRequiredError( - 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 create_key( - self, - api_id: str, - *, - name: str, - idempotency_key: typing.Optional[str] = None, - rate_per_minute: typing.Optional[int] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[HostedApiKey]: - """ - Mint a consumer key (`ck_...`) for the API's own callers. The plaintext - `secret` is present in this response only; every later read shows the - masked `key_hint`. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - name : str - - 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. - - rate_per_minute : typing.Optional[int] - Requests per minute; 60 when omitted, 0 for unlimited. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[HostedApiKey] - The created key, with its one-time secret. - """ - _response = self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/keys", - method="POST", - json={ - "name": name, - "rate_per_minute": rate_per_minute, - }, - headers={ - "content-type": "application/json", - "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApiKey, - parse_obj_as( - type_=HostedApiKey, # 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 == 402: - raise PaymentRequiredError( - 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 revoke_key( - self, api_id: str, consumer_key_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[HostedApiKey]: - """ - Revoke a consumer key; idempotent. Requests carrying it are refused from now on. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - consumer_key_id : str - Consumer key id (prefixed external id, `ckey_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[HostedApiKey] - OK - """ - _response = self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/keys/{encode_path_param(consumer_key_id)}/revoke", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApiKey, - parse_obj_as( - type_=HostedApiKey, # 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 == 402: - raise PaymentRequiredError( - 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 AsyncRawKeysClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list_keys( - self, - api_id: str, - *, - cursor: typing.Optional[str] = None, - limit: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[HostedApiKey, ListHostedApiKeysResponse]: - """ - List a hosted API's consumer keys, newest first, revoked ones included. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - 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[HostedApiKey, ListHostedApiKeysResponse] - OK - """ - _response = await self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/keys", - method="GET", - params={ - "cursor": cursor, - "limit": limit, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListHostedApiKeysResponse, - parse_obj_as( - type_=ListHostedApiKeysResponse, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.keys - _parsed_next = _parsed_response.next_cursor - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list_keys( - api_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 == 402: - raise PaymentRequiredError( - 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 create_key( - self, - api_id: str, - *, - name: str, - idempotency_key: typing.Optional[str] = None, - rate_per_minute: typing.Optional[int] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[HostedApiKey]: - """ - Mint a consumer key (`ck_...`) for the API's own callers. The plaintext - `secret` is present in this response only; every later read shows the - masked `key_hint`. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - name : str - - 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. - - rate_per_minute : typing.Optional[int] - Requests per minute; 60 when omitted, 0 for unlimited. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[HostedApiKey] - The created key, with its one-time secret. - """ - _response = await self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/keys", - method="POST", - json={ - "name": name, - "rate_per_minute": rate_per_minute, - }, - headers={ - "content-type": "application/json", - "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApiKey, - parse_obj_as( - type_=HostedApiKey, # 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 == 402: - raise PaymentRequiredError( - 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 revoke_key( - self, api_id: str, consumer_key_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[HostedApiKey]: - """ - Revoke a consumer key; idempotent. Requests carrying it are refused from now on. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - consumer_key_id : str - Consumer key id (prefixed external id, `ckey_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[HostedApiKey] - OK - """ - _response = await self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/keys/{encode_path_param(consumer_key_id)}/revoke", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApiKey, - parse_obj_as( - type_=HostedApiKey, # 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 == 402: - raise PaymentRequiredError( - 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/hosted_apis/raw_client.py b/src/speechify/hosted_apis/raw_client.py deleted file mode 100644 index d378537..0000000 --- a/src/speechify/hosted_apis/raw_client.py +++ /dev/null @@ -1,2590 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing -from json.decoder import JSONDecodeError - -from ..core.api_error import ApiError -from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper -from ..core.datetime_utils import serialize_datetime -from ..core.http_response import AsyncHttpResponse, HttpResponse -from ..core.jsonable_encoder import 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_gateway_error import BadGatewayError -from ..errors.bad_request_error import BadRequestError -from ..errors.conflict_error import ConflictError -from ..errors.internal_server_error import InternalServerError -from ..errors.not_found_error import NotFoundError -from ..errors.payment_required_error import PaymentRequiredError -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.hosted_api import HostedApi -from ..types.hosted_api_usage import HostedApiUsage -from ..types.hosted_api_user_token_secret import HostedApiUserTokenSecret -from ..types.list_hosted_ap_is_response import ListHostedApIsResponse -from ..types.request_analytics_response import RequestAnalyticsResponse -from .types.create_hosted_api_request_auth_mode import CreateHostedApiRequestAuthMode -from .types.get_analytics_hosted_apis_request_granularity import GetAnalyticsHostedApisRequestGranularity -from .types.update_hosted_api_request_auth_mode import UpdateHostedApiRequestAuthMode -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawHostedApisClient: - 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[HostedApi, ListHostedApIsResponse]: - """ - List the hosted APIs in the caller's workspace, most recently updated - first. A hosted API is the API you assemble: a slug that becomes - `https://.`, the routes it answers, and the - consumer keys your own callers present. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - 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 by workspace project: omit for every project you can reach, - pass the literal `default` for resources in the implicit Default - project only, or a `proj_...` id for that project's resources. - Returns 404 project_not_found for a malformed id and for any filter - 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, so neither can name `default`. - 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. Inside it, a well-formed id that - matches no project yields an empty page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - SyncPager[HostedApi, ListHostedApIsResponse] - OK - """ - _response = self._client_wrapper.httpx_client.request( - "v1/apis", - 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( - ListHostedApIsResponse, - parse_obj_as( - type_=ListHostedApIsResponse, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.apis - _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 == 402: - raise PaymentRequiredError( - 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 create( - self, - *, - slug: str, - name: str, - idempotency_key: typing.Optional[str] = None, - description: typing.Optional[str] = OMIT, - auth_mode: typing.Optional[CreateHostedApiRequestAuthMode] = OMIT, - cors_origins: typing.Optional[typing.Sequence[str]] = OMIT, - daily_run_cap: typing.Optional[int] = OMIT, - daily_read_cap: typing.Optional[int] = OMIT, - daily_write_cap: typing.Optional[int] = OMIT, - mcp_enabled: typing.Optional[bool] = OMIT, - project_id: typing.Optional[str] = OMIT, - user_token_jwks_url: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[HostedApi]: - """ - Create a hosted API. The slug is a DNS label, globally unique on the - shared domain (409 `hosted_api_slug_taken`) and immutable afterwards. - `auth_mode` names the audience, narrowest first: `owner`, `workspace` - (the platform's own credentials), `user_token` (a JWT your backend - signs per user), `consumer_key` (a `ck_` key you mint) or `public` - (anyone, reads only). A workspace can refuse `public` as policy (403 - `hosted_api_public_refused`). Reads, runs and writes are each bounded - per UTC day (`daily_read_cap`, `daily_run_cap`, `daily_write_cap`), - and an API holds only a share of a server's requests open at once, so - a slow upstream behind one API cannot take the capacity others need: - past it, a request answers 429 `hosted_api_busy` with `Retry-After`. - - `mcp_enabled: true` also serves the API's routes as an MCP server at - `POST /mcp`, so an MCP client (Claude Code, Cursor) attaches - to one address and gets them as tools, under the same audience, keys - and caps. It is refused with `auth_mode: public`. On that face the - API's `name` is the server's title and its `description` is the - instructions the client's model reads, so describe what the tools are - for. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - slug : str - 3-40 lowercase letters, digits or hyphens; a DNS label, unique on the shared domain; immutable. - - name : str - - 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. - - description : typing.Optional[str] - What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. - - auth_mode : typing.Optional[CreateHostedApiRequestAuthMode] - consumer_key when omitted. `public` is refused with 403 `hosted_api_public_refused` where the workspace's policy does not allow internet-facing APIs. - - cors_origins : typing.Optional[typing.Sequence[str]] - - daily_run_cap : typing.Optional[int] - Runs the API may start per UTC day through its run routes; 1000 when omitted. - - daily_read_cap : typing.Optional[int] - Reads the API's store, file, run_latest and tool routes may serve per UTC day; 100000 when omitted. - - daily_write_cap : typing.Optional[int] - Documents the API's write routes may land per UTC day; 10000 when omitted. - - mcp_enabled : typing.Optional[bool] - Serve the routes as an MCP server at `POST /mcp` too; - false when omitted. Refused with `auth_mode: public` (400 - `validation_failed` naming `mcp_enabled`). - - project_id : typing.Optional[str] - - user_token_jwks_url : typing.Optional[str] - Register the key set end-user tokens are verified against (an `https` URL on a public host). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[HostedApi] - The created API. - """ - _response = self._client_wrapper.httpx_client.request( - "v1/apis", - method="POST", - json={ - "slug": slug, - "name": name, - "description": description, - "auth_mode": auth_mode, - "cors_origins": cors_origins, - "daily_run_cap": daily_run_cap, - "daily_read_cap": daily_read_cap, - "daily_write_cap": daily_write_cap, - "mcp_enabled": mcp_enabled, - "project_id": project_id, - "user_token_jwks_url": user_token_jwks_url, - }, - headers={ - "content-type": "application/json", - "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApi, - parse_obj_as( - type_=HostedApi, # 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 == 402: - raise PaymentRequiredError( - 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 get(self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[HostedApi]: - """ - Retrieve one hosted API. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[HostedApi] - OK - """ - _response = self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApi, - parse_obj_as( - type_=HostedApi, # 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 == 402: - raise PaymentRequiredError( - 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 delete(self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]: - """ - Delete a hosted API; its host stops answering at once. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}", - method="DELETE", - request_options=request_options, - ) - 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 == 402: - raise PaymentRequiredError( - 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, - api_id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - auth_mode: typing.Optional[UpdateHostedApiRequestAuthMode] = OMIT, - cors_origins: typing.Optional[typing.Sequence[str]] = OMIT, - enabled: typing.Optional[bool] = OMIT, - daily_run_cap: typing.Optional[int] = OMIT, - daily_read_cap: typing.Optional[int] = OMIT, - daily_write_cap: typing.Optional[int] = OMIT, - mcp_enabled: typing.Optional[bool] = OMIT, - user_token_jwks_url: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[HostedApi]: - """ - Update a hosted API (merge-patch). Switching to `public` is refused - while a `run` or `store_write` route exists: an anonymous caller must - not start runs that spend the workspace's budget or write to a store, - and it is refused outright where the workspace's policy does not allow - internet-facing APIs (403 `hosted_api_public_refused`). Switching to a - mode that names no caller (`consumer_key`, `public`) is refused while - a route binds `{{user.*}}`: only `user_token`, `workspace` and `owner` - supply a person. Switching to `public` is also refused while a `tool` - route exists (a vendor call spends the workspace's vendor budget) and - while `mcp_enabled` is on, and switching the MCP face on is refused on - a `public` API (400 `validation_failed` naming `mcp_enabled`). - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - name : typing.Optional[str] - - description : typing.Optional[str] - What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. - - auth_mode : typing.Optional[UpdateHostedApiRequestAuthMode] - - cors_origins : typing.Optional[typing.Sequence[str]] - - enabled : typing.Optional[bool] - A paused API answers 503 to every consumer request. - - daily_run_cap : typing.Optional[int] - - daily_read_cap : typing.Optional[int] - - daily_write_cap : typing.Optional[int] - - mcp_enabled : typing.Optional[bool] - Switch the MCP face at `POST /mcp` on or off. Refused with - 400 `validation_failed` naming `mcp_enabled` when the API is, or is - being made, `public`. Allow up to 15 seconds for the switch, like - any route change, to reach every server. - - user_token_jwks_url : typing.Optional[str] - Replace the registered key set; an empty string removes it, after which the signing secret verifies tokens again. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[HostedApi] - OK - """ - _response = self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}", - method="PATCH", - json={ - "name": name, - "description": description, - "auth_mode": auth_mode, - "cors_origins": cors_origins, - "enabled": enabled, - "daily_run_cap": daily_run_cap, - "daily_read_cap": daily_read_cap, - "daily_write_cap": daily_write_cap, - "mcp_enabled": mcp_enabled, - "user_token_jwks_url": user_token_jwks_url, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApi, - parse_obj_as( - type_=HostedApi, # 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 == 402: - raise PaymentRequiredError( - 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 get_open_api( - self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[typing.Dict[str, typing.Any]]: - """ - The OpenAPI 3.1 document describing the hosted API's routes - the same - document the API serves to its consumers at `/openapi.json`. A `tool` - route's request body is the operation's own argument schema. When - `mcp_enabled` is on, the document carries an `x-speechify-mcp` object - (`url`, `transport: streamable-http`, `description`) naming where an - MCP client attaches; the face speaks JSON-RPC, so it is an extension - rather than a path. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[typing.Dict[str, typing.Any]] - The OpenAPI document. - """ - _response = self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/openapi", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.Dict[str, typing.Any], - parse_obj_as( - type_=typing.Dict[str, typing.Any], # 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 == 402: - raise PaymentRequiredError( - 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 get_usage( - self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[HostedApiUsage]: - """ - Today's reads, runs and writes against the API's daily caps, with each - route's share of the reads and writes. A read is a request a store, - file or run_latest route answered from storage; a response served from - the cache is not one. A write is a document a `store_write` route - landed; a replayed Idempotency-Key is not one. `counters_available` is false where nothing counts (no Redis), so - a zero is never mistaken for a quiet day. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[HostedApiUsage] - OK - """ - _response = self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/usage", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApiUsage, - parse_obj_as( - type_=HostedApiUsage, # 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 == 402: - raise PaymentRequiredError( - 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 get_analytics( - self, - api_id: str, - *, - start: typing.Optional[dt.datetime] = None, - end: typing.Optional[dt.datetime] = None, - granularity: typing.Optional[GetAnalyticsHostedApisRequestGranularity] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[RequestAnalyticsResponse]: - """ - Requests the API served over time: volume split by status, success - rate, and p50/p95/p99 latency per time bucket, plus one `top_paths` - row per route, busiest first, naming the route by `route_id`. Every - request its host answered counts, including refusals such as a - missing key (401) or an exhausted rate limit (429); `top_paths` counts - only the requests that matched a route, including a route an MCP - client called by tool name. - The window defaults to the last 7 days and is capped at 30. - - History starts at `history_starts_at`, the first request in the last - 30 days attributed to this API: requests before it cannot be - attributed, so a bucket before it is missing data, not a quiet period. - When `history_starts_at` is absent, no request to this API has been - attributed in the last 30 days, and no bucket is known to be complete. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - start : typing.Optional[dt.datetime] - Inclusive start of the window (RFC-3339). Defaults to 7 days ago; the window is capped at 30 days. - - end : typing.Optional[dt.datetime] - Exclusive end of the window (RFC-3339). Defaults to now. - - granularity : typing.Optional[GetAnalyticsHostedApisRequestGranularity] - Time-bucket size for the analytics series. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[RequestAnalyticsResponse] - OK - """ - _response = self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/analytics", - method="GET", - params={ - "start": serialize_datetime(start) if start is not None else None, - "end": serialize_datetime(end) if end is not None else None, - "granularity": granularity, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RequestAnalyticsResponse, - parse_obj_as( - type_=RequestAnalyticsResponse, # 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 == 402: - raise PaymentRequiredError( - 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 == 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) - - def rotate_user_token_secret( - self, - api_id: str, - *, - idempotency_key: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[HostedApiUserTokenSecret]: - """ - Mint the signing secret end-user tokens are verified against, replacing - any previous one at once: every token signed with the old secret stops - verifying. The plaintext is in this response and nowhere else; later - reads show `user_token_secret_hint`. Your backend signs a JWT with it - (HS256) carrying `sub` (the user, at most 256 characters) and `exp` - (within 24 hours), and the consumer presents it as - `Authorization: Bearer `. Register `user_token_jwks_url` - instead to verify with your own keys. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - 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. - - Returns - ------- - HttpResponse[HostedApiUserTokenSecret] - OK - """ - _response = self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/rotate-user-token-secret", - method="POST", - headers={ - "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApiUserTokenSecret, - parse_obj_as( - type_=HostedApiUserTokenSecret, # 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 == 402: - raise PaymentRequiredError( - 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 AsyncRawHostedApisClient: - 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[HostedApi, ListHostedApIsResponse]: - """ - List the hosted APIs in the caller's workspace, most recently updated - first. A hosted API is the API you assemble: a slug that becomes - `https://.`, the routes it answers, and the - consumer keys your own callers present. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - 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 by workspace project: omit for every project you can reach, - pass the literal `default` for resources in the implicit Default - project only, or a `proj_...` id for that project's resources. - Returns 404 project_not_found for a malformed id and for any filter - 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, so neither can name `default`. - 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. Inside it, a well-formed id that - matches no project yields an empty page. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncPager[HostedApi, ListHostedApIsResponse] - OK - """ - _response = await self._client_wrapper.httpx_client.request( - "v1/apis", - 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( - ListHostedApIsResponse, - parse_obj_as( - type_=ListHostedApIsResponse, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.apis - _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 == 402: - raise PaymentRequiredError( - 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 create( - self, - *, - slug: str, - name: str, - idempotency_key: typing.Optional[str] = None, - description: typing.Optional[str] = OMIT, - auth_mode: typing.Optional[CreateHostedApiRequestAuthMode] = OMIT, - cors_origins: typing.Optional[typing.Sequence[str]] = OMIT, - daily_run_cap: typing.Optional[int] = OMIT, - daily_read_cap: typing.Optional[int] = OMIT, - daily_write_cap: typing.Optional[int] = OMIT, - mcp_enabled: typing.Optional[bool] = OMIT, - project_id: typing.Optional[str] = OMIT, - user_token_jwks_url: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[HostedApi]: - """ - Create a hosted API. The slug is a DNS label, globally unique on the - shared domain (409 `hosted_api_slug_taken`) and immutable afterwards. - `auth_mode` names the audience, narrowest first: `owner`, `workspace` - (the platform's own credentials), `user_token` (a JWT your backend - signs per user), `consumer_key` (a `ck_` key you mint) or `public` - (anyone, reads only). A workspace can refuse `public` as policy (403 - `hosted_api_public_refused`). Reads, runs and writes are each bounded - per UTC day (`daily_read_cap`, `daily_run_cap`, `daily_write_cap`), - and an API holds only a share of a server's requests open at once, so - a slow upstream behind one API cannot take the capacity others need: - past it, a request answers 429 `hosted_api_busy` with `Retry-After`. - - `mcp_enabled: true` also serves the API's routes as an MCP server at - `POST /mcp`, so an MCP client (Claude Code, Cursor) attaches - to one address and gets them as tools, under the same audience, keys - and caps. It is refused with `auth_mode: public`. On that face the - API's `name` is the server's title and its `description` is the - instructions the client's model reads, so describe what the tools are - for. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - slug : str - 3-40 lowercase letters, digits or hyphens; a DNS label, unique on the shared domain; immutable. - - name : str - - 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. - - description : typing.Optional[str] - What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. - - auth_mode : typing.Optional[CreateHostedApiRequestAuthMode] - consumer_key when omitted. `public` is refused with 403 `hosted_api_public_refused` where the workspace's policy does not allow internet-facing APIs. - - cors_origins : typing.Optional[typing.Sequence[str]] - - daily_run_cap : typing.Optional[int] - Runs the API may start per UTC day through its run routes; 1000 when omitted. - - daily_read_cap : typing.Optional[int] - Reads the API's store, file, run_latest and tool routes may serve per UTC day; 100000 when omitted. - - daily_write_cap : typing.Optional[int] - Documents the API's write routes may land per UTC day; 10000 when omitted. - - mcp_enabled : typing.Optional[bool] - Serve the routes as an MCP server at `POST /mcp` too; - false when omitted. Refused with `auth_mode: public` (400 - `validation_failed` naming `mcp_enabled`). - - project_id : typing.Optional[str] - - user_token_jwks_url : typing.Optional[str] - Register the key set end-user tokens are verified against (an `https` URL on a public host). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[HostedApi] - The created API. - """ - _response = await self._client_wrapper.httpx_client.request( - "v1/apis", - method="POST", - json={ - "slug": slug, - "name": name, - "description": description, - "auth_mode": auth_mode, - "cors_origins": cors_origins, - "daily_run_cap": daily_run_cap, - "daily_read_cap": daily_read_cap, - "daily_write_cap": daily_write_cap, - "mcp_enabled": mcp_enabled, - "project_id": project_id, - "user_token_jwks_url": user_token_jwks_url, - }, - headers={ - "content-type": "application/json", - "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApi, - parse_obj_as( - type_=HostedApi, # 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 == 402: - raise PaymentRequiredError( - 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 get( - self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[HostedApi]: - """ - Retrieve one hosted API. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[HostedApi] - OK - """ - _response = await self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApi, - parse_obj_as( - type_=HostedApi, # 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 == 402: - raise PaymentRequiredError( - 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 delete( - self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a hosted API; its host stops answering at once. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}", - method="DELETE", - request_options=request_options, - ) - 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 == 402: - raise PaymentRequiredError( - 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, - api_id: str, - *, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - auth_mode: typing.Optional[UpdateHostedApiRequestAuthMode] = OMIT, - cors_origins: typing.Optional[typing.Sequence[str]] = OMIT, - enabled: typing.Optional[bool] = OMIT, - daily_run_cap: typing.Optional[int] = OMIT, - daily_read_cap: typing.Optional[int] = OMIT, - daily_write_cap: typing.Optional[int] = OMIT, - mcp_enabled: typing.Optional[bool] = OMIT, - user_token_jwks_url: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[HostedApi]: - """ - Update a hosted API (merge-patch). Switching to `public` is refused - while a `run` or `store_write` route exists: an anonymous caller must - not start runs that spend the workspace's budget or write to a store, - and it is refused outright where the workspace's policy does not allow - internet-facing APIs (403 `hosted_api_public_refused`). Switching to a - mode that names no caller (`consumer_key`, `public`) is refused while - a route binds `{{user.*}}`: only `user_token`, `workspace` and `owner` - supply a person. Switching to `public` is also refused while a `tool` - route exists (a vendor call spends the workspace's vendor budget) and - while `mcp_enabled` is on, and switching the MCP face on is refused on - a `public` API (400 `validation_failed` naming `mcp_enabled`). - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - name : typing.Optional[str] - - description : typing.Optional[str] - What the API is for; also the instructions an MCP client hands its model when `mcp_enabled` is on. - - auth_mode : typing.Optional[UpdateHostedApiRequestAuthMode] - - cors_origins : typing.Optional[typing.Sequence[str]] - - enabled : typing.Optional[bool] - A paused API answers 503 to every consumer request. - - daily_run_cap : typing.Optional[int] - - daily_read_cap : typing.Optional[int] - - daily_write_cap : typing.Optional[int] - - mcp_enabled : typing.Optional[bool] - Switch the MCP face at `POST /mcp` on or off. Refused with - 400 `validation_failed` naming `mcp_enabled` when the API is, or is - being made, `public`. Allow up to 15 seconds for the switch, like - any route change, to reach every server. - - user_token_jwks_url : typing.Optional[str] - Replace the registered key set; an empty string removes it, after which the signing secret verifies tokens again. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[HostedApi] - OK - """ - _response = await self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}", - method="PATCH", - json={ - "name": name, - "description": description, - "auth_mode": auth_mode, - "cors_origins": cors_origins, - "enabled": enabled, - "daily_run_cap": daily_run_cap, - "daily_read_cap": daily_read_cap, - "daily_write_cap": daily_write_cap, - "mcp_enabled": mcp_enabled, - "user_token_jwks_url": user_token_jwks_url, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApi, - parse_obj_as( - type_=HostedApi, # 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 == 402: - raise PaymentRequiredError( - 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 get_open_api( - self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[typing.Dict[str, typing.Any]]: - """ - The OpenAPI 3.1 document describing the hosted API's routes - the same - document the API serves to its consumers at `/openapi.json`. A `tool` - route's request body is the operation's own argument schema. When - `mcp_enabled` is on, the document carries an `x-speechify-mcp` object - (`url`, `transport: streamable-http`, `description`) naming where an - MCP client attaches; the face speaks JSON-RPC, so it is an extension - rather than a path. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[typing.Dict[str, typing.Any]] - The OpenAPI document. - """ - _response = await self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/openapi", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - typing.Dict[str, typing.Any], - parse_obj_as( - type_=typing.Dict[str, typing.Any], # 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 == 402: - raise PaymentRequiredError( - 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 get_usage( - self, api_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[HostedApiUsage]: - """ - Today's reads, runs and writes against the API's daily caps, with each - route's share of the reads and writes. A read is a request a store, - file or run_latest route answered from storage; a response served from - the cache is not one. A write is a document a `store_write` route - landed; a replayed Idempotency-Key is not one. `counters_available` is false where nothing counts (no Redis), so - a zero is never mistaken for a quiet day. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[HostedApiUsage] - OK - """ - _response = await self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/usage", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApiUsage, - parse_obj_as( - type_=HostedApiUsage, # 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 == 402: - raise PaymentRequiredError( - 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 get_analytics( - self, - api_id: str, - *, - start: typing.Optional[dt.datetime] = None, - end: typing.Optional[dt.datetime] = None, - granularity: typing.Optional[GetAnalyticsHostedApisRequestGranularity] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[RequestAnalyticsResponse]: - """ - Requests the API served over time: volume split by status, success - rate, and p50/p95/p99 latency per time bucket, plus one `top_paths` - row per route, busiest first, naming the route by `route_id`. Every - request its host answered counts, including refusals such as a - missing key (401) or an exhausted rate limit (429); `top_paths` counts - only the requests that matched a route, including a route an MCP - client called by tool name. - The window defaults to the last 7 days and is capped at 30. - - History starts at `history_starts_at`, the first request in the last - 30 days attributed to this API: requests before it cannot be - attributed, so a bucket before it is missing data, not a quiet period. - When `history_starts_at` is absent, no request to this API has been - attributed in the last 30 days, and no bucket is known to be complete. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - start : typing.Optional[dt.datetime] - Inclusive start of the window (RFC-3339). Defaults to 7 days ago; the window is capped at 30 days. - - end : typing.Optional[dt.datetime] - Exclusive end of the window (RFC-3339). Defaults to now. - - granularity : typing.Optional[GetAnalyticsHostedApisRequestGranularity] - Time-bucket size for the analytics series. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[RequestAnalyticsResponse] - OK - """ - _response = await self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/analytics", - method="GET", - params={ - "start": serialize_datetime(start) if start is not None else None, - "end": serialize_datetime(end) if end is not None else None, - "granularity": granularity, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - RequestAnalyticsResponse, - parse_obj_as( - type_=RequestAnalyticsResponse, # 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 == 402: - raise PaymentRequiredError( - 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 == 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) - - async def rotate_user_token_secret( - self, - api_id: str, - *, - idempotency_key: typing.Optional[str] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[HostedApiUserTokenSecret]: - """ - Mint the signing secret end-user tokens are verified against, replacing - any previous one at once: every token signed with the old secret stops - verifying. The plaintext is in this response and nowhere else; later - reads show `user_token_secret_hint`. Your backend signs a JWT with it - (HS256) carrying `sub` (the user, at most 256 characters) and `exp` - (within 24 hours), and the consumer presents it as - `Authorization: Bearer `. Register `user_token_jwks_url` - instead to verify with your own keys. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - 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. - - Returns - ------- - AsyncHttpResponse[HostedApiUserTokenSecret] - OK - """ - _response = await self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/rotate-user-token-secret", - method="POST", - headers={ - "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApiUserTokenSecret, - parse_obj_as( - type_=HostedApiUserTokenSecret, # 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 == 402: - raise PaymentRequiredError( - 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/hosted_apis/routes/__init__.py b/src/speechify/hosted_apis/routes/__init__.py deleted file mode 100644 index 57eb16c..0000000 --- a/src/speechify/hosted_apis/routes/__init__.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 CreateHostedApiRouteRequestMethod, UpdateHostedApiRouteRequestMethod -_dynamic_imports: typing.Dict[str, str] = { - "CreateHostedApiRouteRequestMethod": ".types", - "UpdateHostedApiRouteRequestMethod": ".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__ = ["CreateHostedApiRouteRequestMethod", "UpdateHostedApiRouteRequestMethod"] diff --git a/src/speechify/hosted_apis/routes/client.py b/src/speechify/hosted_apis/routes/client.py deleted file mode 100644 index b8d55f8..0000000 --- a/src/speechify/hosted_apis/routes/client.py +++ /dev/null @@ -1,1130 +0,0 @@ -# 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.hosted_api_mount import HostedApiMount -from ...types.hosted_api_resolver import HostedApiResolver -from ...types.hosted_api_route import HostedApiRoute -from ...types.list_hosted_api_routes_response import ListHostedApiRoutesResponse -from .raw_client import AsyncRawRoutesClient, RawRoutesClient -from .types.create_hosted_api_route_request_method import CreateHostedApiRouteRequestMethod -from .types.update_hosted_api_route_request_method import UpdateHostedApiRouteRequestMethod - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RoutesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._raw_client = RawRoutesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> RawRoutesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - RawRoutesClient - """ - return self._raw_client - - def list_routes( - self, - api_id: str, - *, - cursor: typing.Optional[str] = None, - limit: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[HostedApiRoute, ListHostedApiRoutesResponse]: - """ - List a hosted API's routes in creation order. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - 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[HostedApiRoute, ListHostedApiRoutesResponse] - OK - - Examples - -------- - from speechify import Speechify - - client = Speechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - response = client.hosted_apis.routes.list_routes( - api_id="api_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_routes(api_id, cursor=cursor, limit=limit, request_options=request_options) - - def create_route( - self, - api_id: str, - *, - method: CreateHostedApiRouteRequestMethod, - path: str, - resolver: HostedApiResolver, - idempotency_key: typing.Optional[str] = None, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - response_schema: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, - cache_ttl_seconds: typing.Optional[int] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HostedApiRoute: - """ - Add a route: a method + path answered by a resolver. `store_query`, - `store_document` and `store_aggregate` serve a store; `store_write` - lands the POST body as a document (`write_mode` create / replace / - merge; POST only, never on a public API, counted against - `daily_write_cap`, deduplicated on `Idempotency-Key`); `run_latest` - serves the newest structured output of a schedule trigger's runs; - `run` starts a run through a webhook trigger per request (POST only, - never on a public API) and waits up to `wait_seconds` before answering - 202 with a handle to poll at `/_runs/{run_id}`; `file` serves one - published file, or a whole published tree when the path ends in `*` - (`/app/*` with `file_root` and `file_index`); `tool` calls one read - operation of an `openapi` tool definition, or one tool of an `mcp` - tool definition's server, in the API's project whose `approval` is - null or `auto` (POST only, never on a public API, counted against - `daily_read_cap`): the consumer's JSON body is the arguments and the - connector's answer, after the tool's response mapping, is the - response. An `mcp` route pins the tool's input schema as - `resolver.input_schema` when it is written. - Where-clause values and - the document id may be `{{query.x}}`, `{{path.x}}` or `{{body.x}}` - templates bound from the consumer's request, or `{{user.x}}` claims of - the verified caller on a `user_token`, `workspace` or `owner` API; a - clause whose template is absent is skipped. On those three modes a - written document is stamped `user_identity` as the caller and only - they can replace or merge it. Two bindings are refused at write time: - `{{user.*}}` on an API that names no caller, and a clause on - `user_identity` bound from a request template, which would let any - caller read any user's rows. - - On an API with `mcp_enabled`, every enabled route except a `file` - route is also an MCP tool. The tool's name comes from the route's - `name`: every run of characters outside letters, digits, `_` and `-` - becomes `_`, leading and trailing `_` are dropped, and the result is - cut to 64 characters. A route with no name is listed under a name - built from its method and path (`post_issues_open`), and a name two - routes would share takes `_2`, `_3` in route order, so read the names - from the face's `tools/list` rather than deriving them. The route's - `description` is what the client's model reads to choose the tool, - falling back to the operation's summary on a `tool` route. Name and - describe a route for that reader. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - method : CreateHostedApiRouteRequestMethod - - path : str - Lowercase segments of letters, digits, `. _ -` or a `{param}`; `/openapi.json`, `/_runs` and `/mcp` are reserved. - - resolver : HostedApiResolver - - 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. - - name : typing.Optional[str] - The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. - On an API with `mcp_enabled` the MCP tool's name comes from it: - each run of other characters (a space included) becomes `_`, - leading and trailing `_` are dropped, and the result is cut to 64 - characters. A route with no name is listed under a name built from - its method and path, and a name two routes would share takes `_2`, - `_3` in route order; the face's `tools/list` is the authority. Pick - a verb-first name a model can choose by. - - description : typing.Optional[str] - What the route does. On an API with `mcp_enabled` it is the MCP - tool description a client's model reads to choose the tool, so say - what it returns and when to call it; a `tool` route with none falls - back to the operation's summary. - - response_schema : typing.Optional[typing.Dict[str, typing.Any]] - - cache_ttl_seconds : typing.Optional[int] - - enabled : typing.Optional[bool] - Enabled when omitted. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApiRoute - The created route. - - Examples - -------- - from speechify import HostedApiResolver, HostedApiResolverOrderBy, Speechify - - client = Speechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - client.hosted_apis.routes.create_route( - api_id="api_01kc4q3r9s6t8v0w2x4y6z8a0b", - method="GET", - path="/leads", - name="list_leads", - description="List leads, highest value first.", - resolver=HostedApiResolver( - type="store_query", - store_id="store_01kc4q5t1v3w5x7y9z1a3b5c7d", - collection="leads", - order_by=HostedApiResolverOrderBy( - field="value", - direction="desc", - ), - ), - cache_ttl_seconds=30, - ) - """ - _response = self._raw_client.create_route( - api_id, - method=method, - path=path, - resolver=resolver, - idempotency_key=idempotency_key, - name=name, - description=description, - response_schema=response_schema, - cache_ttl_seconds=cache_ttl_seconds, - enabled=enabled, - request_options=request_options, - ) - return _response.data - - def mount_routes( - self, - api_id: str, - *, - tool_id: str, - idempotency_key: typing.Optional[str] = None, - operations: typing.Optional[typing.Sequence[str]] = OMIT, - name_prefix: typing.Optional[str] = OMIT, - path_prefix: typing.Optional[str] = OMIT, - dry_run: typing.Optional[bool] = OMIT, - include_writes: typing.Optional[bool] = OMIT, - plan_digest: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HostedApiMount: - """ - Publish a connector's operations onto the API in one call: one `tool` - route per operation of an `openapi` tool definition, or per tool its - `mcp` server lists, named `__` at - `/`, so two connectors' tools stay apart on - the MCP face and inside its 64-character tool names. - - Send `dry_run: true` first. The answer lists every operation with - its effective `action_class` and `approval`, whether a route can serve - it, and the `action` a mount takes: `create`, `update` (an MCP tool - whose input schema changed since its route was written; `changes` - names what), `unchanged`, `skip` (with the `reason`: not selected, not - a read, not auto-approved, a name or path already taken, or the route - cap) or `stale` (a route whose operation the connector no longer - offers, or can no longer serve; it is reported and never deleted, - since a consumer may still call it). The same call without `dry_run` - writes every create and update in one transaction and returns the - written `route` on each. - - Every answer carries a `plan_digest`. Send the preview's digest with - the apply: the apply plans again inside its transaction and writes - only when that plan still has the digest, so a tool the server changed - or a route edited after you reviewed is never written unseen. When it - differs the apply writes nothing and answers 409 `mount_plan_changed` - with the current plan, as a dry run answers it, in - `error.details.plan`; review that and apply again with its digest, - under a new `Idempotency-Key` if you sent one, since a key replays its - first answer, this 409 included. The digest covers every operation the - connector offers and every route the API holds for it whatever - `operations` selects, so a preview of everything and an apply of a - selection share one. An apply without it writes whatever the mount - plans at that moment. - - Mounting again is the refresh. Every route the API holds for the - connector is compared with what it offers now, whatever its name, - path or the selection, so an upstream change is seen as a diff before - anyone's client sees it. `operations` selects what to create; omit it - to create a route for every operation a route can serve. A route an - owner renamed or moved keeps its name and path on refresh. - - The route write's rules apply to every operation: the connector must - be in the API's project (409 `cross_project_reference`), an MCP server - must be reachable with its credential to be listed (400 - `validation_failed` on `tool_id` with the server's reason), and a - public API mounts nothing. An API holds at most 200 routes; a mount - that would pass the cap skips what does not fit. Without a - `plan_digest`, a route changed while the mount was being planned - answers 409 `api_route_conflict`; mount again. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - tool_id : str - The `openapi` or `mcp` tool definition to mount, in the API's project. - - 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. - - operations : typing.Optional[typing.Sequence[str]] - The operations to create routes for: openapi operation ids or the - MCP server's tool names. Omit to create a route for every operation - a route can serve. Naming one the connector does not offer is 400 - `validation_failed` on `operations[i]`. Existing routes are compared - whatever the selection. - - name_prefix : typing.Optional[str] - Prefix of each created route's name, `__`. Defaults to the tool's name with other characters as `_`. - - path_prefix : typing.Optional[str] - Path each created route sits under, `/`; lowercase segments of letters, digits, `.`, `_` or `-`, with no `{param}` or `*`, and not under `/mcp`, `/openapi.json` or `/_runs`. Defaults to `/` in lowercase. - - dry_run : typing.Optional[bool] - Answer what the mount would do and write nothing. - - include_writes : typing.Optional[bool] - Create routes for operations that are not reads too, each with - `allow_write: true`. Only an API whose `auth_mode` names a person - takes them; the operation's `approval` must still be `auto`. - Without it a write is a `skip` that says so. - - plan_digest : typing.Optional[str] - The `plan_digest` of the preview you reviewed. The apply writes - only while the plan it computes inside its transaction still has - this digest, and otherwise writes nothing and answers 409 - `mount_plan_changed` with the current plan. Omit it to apply what - the mount plans now. Refused with `dry_run`. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApiMount - What the mount did, or on a dry run would do. - - Examples - -------- - from speechify import Speechify - - client = Speechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - client.hosted_apis.routes.mount_routes( - api_id="api_01kc4q3r9s6t8v0w2x4y6z8a0b", - tool_id="tool_01kc4n9s3v7w0y4a6c8e2g4j6m", - name_prefix="linear", - dry_run=True, - ) - """ - _response = self._raw_client.mount_routes( - api_id, - tool_id=tool_id, - idempotency_key=idempotency_key, - operations=operations, - name_prefix=name_prefix, - path_prefix=path_prefix, - dry_run=dry_run, - include_writes=include_writes, - plan_digest=plan_digest, - request_options=request_options, - ) - return _response.data - - def get_route( - self, api_id: str, route_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HostedApiRoute: - """ - Retrieve one route. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - route_id : str - Route id (prefixed external id, `route_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApiRoute - OK - - Examples - -------- - from speechify import Speechify - - client = Speechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - client.hosted_apis.routes.get_route( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - route_id="route_01jqr8x9zg5k2m3n4p5q6r7s8t", - ) - """ - _response = self._raw_client.get_route(api_id, route_id, request_options=request_options) - return _response.data - - def delete_route( - self, api_id: str, route_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Delete a route. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - route_id : str - Route id (prefixed external id, `route_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - from speechify import Speechify - - client = Speechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - client.hosted_apis.routes.delete_route( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - route_id="route_01jqr8x9zg5k2m3n4p5q6r7s8t", - ) - """ - _response = self._raw_client.delete_route(api_id, route_id, request_options=request_options) - return _response.data - - def update_route( - self, - api_id: str, - route_id: str, - *, - method: typing.Optional[UpdateHostedApiRouteRequestMethod] = OMIT, - path: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - resolver: typing.Optional[HostedApiResolver] = OMIT, - response_schema: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, - cache_ttl_seconds: typing.Optional[int] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HostedApiRoute: - """ - Update a route (merge-patch); a changed method or resolver is re-validated. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - route_id : str - Route id (prefixed external id, `route_...`). - - method : typing.Optional[UpdateHostedApiRouteRequestMethod] - - path : typing.Optional[str] - - name : typing.Optional[str] - The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. - On an API with `mcp_enabled` the MCP tool's name comes from it: - each run of other characters (a space included) becomes `_`, - leading and trailing `_` are dropped, and the result is cut to 64 - characters. A route with no name is listed under a name built from - its method and path, and a name two routes would share takes `_2`, - `_3` in route order; the face's `tools/list` is the authority. Pick - a verb-first name a model can choose by. - - description : typing.Optional[str] - What the route does. On an API with `mcp_enabled` it is the MCP - tool description a client's model reads to choose the tool, so say - what it returns and when to call it; a `tool` route with none falls - back to the operation's summary. - - resolver : typing.Optional[HostedApiResolver] - - response_schema : typing.Optional[typing.Dict[str, typing.Any]] - - cache_ttl_seconds : typing.Optional[int] - - enabled : typing.Optional[bool] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApiRoute - OK - - Examples - -------- - from speechify import Speechify - - client = Speechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - client.hosted_apis.routes.update_route( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - route_id="route_01jqr8x9zg5k2m3n4p5q6r7s8t", - ) - """ - _response = self._raw_client.update_route( - api_id, - route_id, - method=method, - path=path, - name=name, - description=description, - resolver=resolver, - response_schema=response_schema, - cache_ttl_seconds=cache_ttl_seconds, - enabled=enabled, - request_options=request_options, - ) - return _response.data - - -class AsyncRoutesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._raw_client = AsyncRawRoutesClient(client_wrapper=client_wrapper) - - @property - def with_raw_response(self) -> AsyncRawRoutesClient: - """ - Retrieves a raw implementation of this client that returns raw responses. - - Returns - ------- - AsyncRawRoutesClient - """ - return self._raw_client - - async def list_routes( - self, - api_id: str, - *, - cursor: typing.Optional[str] = None, - limit: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[HostedApiRoute, ListHostedApiRoutesResponse]: - """ - List a hosted API's routes in creation order. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - 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[HostedApiRoute, ListHostedApiRoutesResponse] - OK - - Examples - -------- - import asyncio - - from speechify import AsyncSpeechify - - client = AsyncSpeechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - - - async def main() -> None: - response = await client.hosted_apis.routes.list_routes( - api_id="api_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_routes(api_id, cursor=cursor, limit=limit, request_options=request_options) - - async def create_route( - self, - api_id: str, - *, - method: CreateHostedApiRouteRequestMethod, - path: str, - resolver: HostedApiResolver, - idempotency_key: typing.Optional[str] = None, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - response_schema: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, - cache_ttl_seconds: typing.Optional[int] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HostedApiRoute: - """ - Add a route: a method + path answered by a resolver. `store_query`, - `store_document` and `store_aggregate` serve a store; `store_write` - lands the POST body as a document (`write_mode` create / replace / - merge; POST only, never on a public API, counted against - `daily_write_cap`, deduplicated on `Idempotency-Key`); `run_latest` - serves the newest structured output of a schedule trigger's runs; - `run` starts a run through a webhook trigger per request (POST only, - never on a public API) and waits up to `wait_seconds` before answering - 202 with a handle to poll at `/_runs/{run_id}`; `file` serves one - published file, or a whole published tree when the path ends in `*` - (`/app/*` with `file_root` and `file_index`); `tool` calls one read - operation of an `openapi` tool definition, or one tool of an `mcp` - tool definition's server, in the API's project whose `approval` is - null or `auto` (POST only, never on a public API, counted against - `daily_read_cap`): the consumer's JSON body is the arguments and the - connector's answer, after the tool's response mapping, is the - response. An `mcp` route pins the tool's input schema as - `resolver.input_schema` when it is written. - Where-clause values and - the document id may be `{{query.x}}`, `{{path.x}}` or `{{body.x}}` - templates bound from the consumer's request, or `{{user.x}}` claims of - the verified caller on a `user_token`, `workspace` or `owner` API; a - clause whose template is absent is skipped. On those three modes a - written document is stamped `user_identity` as the caller and only - they can replace or merge it. Two bindings are refused at write time: - `{{user.*}}` on an API that names no caller, and a clause on - `user_identity` bound from a request template, which would let any - caller read any user's rows. - - On an API with `mcp_enabled`, every enabled route except a `file` - route is also an MCP tool. The tool's name comes from the route's - `name`: every run of characters outside letters, digits, `_` and `-` - becomes `_`, leading and trailing `_` are dropped, and the result is - cut to 64 characters. A route with no name is listed under a name - built from its method and path (`post_issues_open`), and a name two - routes would share takes `_2`, `_3` in route order, so read the names - from the face's `tools/list` rather than deriving them. The route's - `description` is what the client's model reads to choose the tool, - falling back to the operation's summary on a `tool` route. Name and - describe a route for that reader. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - method : CreateHostedApiRouteRequestMethod - - path : str - Lowercase segments of letters, digits, `. _ -` or a `{param}`; `/openapi.json`, `/_runs` and `/mcp` are reserved. - - resolver : HostedApiResolver - - 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. - - name : typing.Optional[str] - The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. - On an API with `mcp_enabled` the MCP tool's name comes from it: - each run of other characters (a space included) becomes `_`, - leading and trailing `_` are dropped, and the result is cut to 64 - characters. A route with no name is listed under a name built from - its method and path, and a name two routes would share takes `_2`, - `_3` in route order; the face's `tools/list` is the authority. Pick - a verb-first name a model can choose by. - - description : typing.Optional[str] - What the route does. On an API with `mcp_enabled` it is the MCP - tool description a client's model reads to choose the tool, so say - what it returns and when to call it; a `tool` route with none falls - back to the operation's summary. - - response_schema : typing.Optional[typing.Dict[str, typing.Any]] - - cache_ttl_seconds : typing.Optional[int] - - enabled : typing.Optional[bool] - Enabled when omitted. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApiRoute - The created route. - - Examples - -------- - import asyncio - - from speechify import ( - AsyncSpeechify, - HostedApiResolver, - HostedApiResolverOrderBy, - ) - - client = AsyncSpeechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hosted_apis.routes.create_route( - api_id="api_01kc4q3r9s6t8v0w2x4y6z8a0b", - method="GET", - path="/leads", - name="list_leads", - description="List leads, highest value first.", - resolver=HostedApiResolver( - type="store_query", - store_id="store_01kc4q5t1v3w5x7y9z1a3b5c7d", - collection="leads", - order_by=HostedApiResolverOrderBy( - field="value", - direction="desc", - ), - ), - cache_ttl_seconds=30, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.create_route( - api_id, - method=method, - path=path, - resolver=resolver, - idempotency_key=idempotency_key, - name=name, - description=description, - response_schema=response_schema, - cache_ttl_seconds=cache_ttl_seconds, - enabled=enabled, - request_options=request_options, - ) - return _response.data - - async def mount_routes( - self, - api_id: str, - *, - tool_id: str, - idempotency_key: typing.Optional[str] = None, - operations: typing.Optional[typing.Sequence[str]] = OMIT, - name_prefix: typing.Optional[str] = OMIT, - path_prefix: typing.Optional[str] = OMIT, - dry_run: typing.Optional[bool] = OMIT, - include_writes: typing.Optional[bool] = OMIT, - plan_digest: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HostedApiMount: - """ - Publish a connector's operations onto the API in one call: one `tool` - route per operation of an `openapi` tool definition, or per tool its - `mcp` server lists, named `__` at - `/`, so two connectors' tools stay apart on - the MCP face and inside its 64-character tool names. - - Send `dry_run: true` first. The answer lists every operation with - its effective `action_class` and `approval`, whether a route can serve - it, and the `action` a mount takes: `create`, `update` (an MCP tool - whose input schema changed since its route was written; `changes` - names what), `unchanged`, `skip` (with the `reason`: not selected, not - a read, not auto-approved, a name or path already taken, or the route - cap) or `stale` (a route whose operation the connector no longer - offers, or can no longer serve; it is reported and never deleted, - since a consumer may still call it). The same call without `dry_run` - writes every create and update in one transaction and returns the - written `route` on each. - - Every answer carries a `plan_digest`. Send the preview's digest with - the apply: the apply plans again inside its transaction and writes - only when that plan still has the digest, so a tool the server changed - or a route edited after you reviewed is never written unseen. When it - differs the apply writes nothing and answers 409 `mount_plan_changed` - with the current plan, as a dry run answers it, in - `error.details.plan`; review that and apply again with its digest, - under a new `Idempotency-Key` if you sent one, since a key replays its - first answer, this 409 included. The digest covers every operation the - connector offers and every route the API holds for it whatever - `operations` selects, so a preview of everything and an apply of a - selection share one. An apply without it writes whatever the mount - plans at that moment. - - Mounting again is the refresh. Every route the API holds for the - connector is compared with what it offers now, whatever its name, - path or the selection, so an upstream change is seen as a diff before - anyone's client sees it. `operations` selects what to create; omit it - to create a route for every operation a route can serve. A route an - owner renamed or moved keeps its name and path on refresh. - - The route write's rules apply to every operation: the connector must - be in the API's project (409 `cross_project_reference`), an MCP server - must be reachable with its credential to be listed (400 - `validation_failed` on `tool_id` with the server's reason), and a - public API mounts nothing. An API holds at most 200 routes; a mount - that would pass the cap skips what does not fit. Without a - `plan_digest`, a route changed while the mount was being planned - answers 409 `api_route_conflict`; mount again. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - tool_id : str - The `openapi` or `mcp` tool definition to mount, in the API's project. - - 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. - - operations : typing.Optional[typing.Sequence[str]] - The operations to create routes for: openapi operation ids or the - MCP server's tool names. Omit to create a route for every operation - a route can serve. Naming one the connector does not offer is 400 - `validation_failed` on `operations[i]`. Existing routes are compared - whatever the selection. - - name_prefix : typing.Optional[str] - Prefix of each created route's name, `__`. Defaults to the tool's name with other characters as `_`. - - path_prefix : typing.Optional[str] - Path each created route sits under, `/`; lowercase segments of letters, digits, `.`, `_` or `-`, with no `{param}` or `*`, and not under `/mcp`, `/openapi.json` or `/_runs`. Defaults to `/` in lowercase. - - dry_run : typing.Optional[bool] - Answer what the mount would do and write nothing. - - include_writes : typing.Optional[bool] - Create routes for operations that are not reads too, each with - `allow_write: true`. Only an API whose `auth_mode` names a person - takes them; the operation's `approval` must still be `auto`. - Without it a write is a `skip` that says so. - - plan_digest : typing.Optional[str] - The `plan_digest` of the preview you reviewed. The apply writes - only while the plan it computes inside its transaction still has - this digest, and otherwise writes nothing and answers 409 - `mount_plan_changed` with the current plan. Omit it to apply what - the mount plans now. Refused with `dry_run`. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApiMount - What the mount did, or on a dry run would do. - - Examples - -------- - import asyncio - - from speechify import AsyncSpeechify - - client = AsyncSpeechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hosted_apis.routes.mount_routes( - api_id="api_01kc4q3r9s6t8v0w2x4y6z8a0b", - tool_id="tool_01kc4n9s3v7w0y4a6c8e2g4j6m", - name_prefix="linear", - dry_run=True, - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.mount_routes( - api_id, - tool_id=tool_id, - idempotency_key=idempotency_key, - operations=operations, - name_prefix=name_prefix, - path_prefix=path_prefix, - dry_run=dry_run, - include_writes=include_writes, - plan_digest=plan_digest, - request_options=request_options, - ) - return _response.data - - async def get_route( - self, api_id: str, route_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HostedApiRoute: - """ - Retrieve one route. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - route_id : str - Route id (prefixed external id, `route_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApiRoute - OK - - Examples - -------- - import asyncio - - from speechify import AsyncSpeechify - - client = AsyncSpeechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hosted_apis.routes.get_route( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - route_id="route_01jqr8x9zg5k2m3n4p5q6r7s8t", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.get_route(api_id, route_id, request_options=request_options) - return _response.data - - async def delete_route( - self, api_id: str, route_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> None: - """ - Delete a route. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - route_id : str - Route id (prefixed external id, `route_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - None - - Examples - -------- - import asyncio - - from speechify import AsyncSpeechify - - client = AsyncSpeechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hosted_apis.routes.delete_route( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - route_id="route_01jqr8x9zg5k2m3n4p5q6r7s8t", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.delete_route(api_id, route_id, request_options=request_options) - return _response.data - - async def update_route( - self, - api_id: str, - route_id: str, - *, - method: typing.Optional[UpdateHostedApiRouteRequestMethod] = OMIT, - path: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - resolver: typing.Optional[HostedApiResolver] = OMIT, - response_schema: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, - cache_ttl_seconds: typing.Optional[int] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HostedApiRoute: - """ - Update a route (merge-patch); a changed method or resolver is re-validated. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - route_id : str - Route id (prefixed external id, `route_...`). - - method : typing.Optional[UpdateHostedApiRouteRequestMethod] - - path : typing.Optional[str] - - name : typing.Optional[str] - The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. - On an API with `mcp_enabled` the MCP tool's name comes from it: - each run of other characters (a space included) becomes `_`, - leading and trailing `_` are dropped, and the result is cut to 64 - characters. A route with no name is listed under a name built from - its method and path, and a name two routes would share takes `_2`, - `_3` in route order; the face's `tools/list` is the authority. Pick - a verb-first name a model can choose by. - - description : typing.Optional[str] - What the route does. On an API with `mcp_enabled` it is the MCP - tool description a client's model reads to choose the tool, so say - what it returns and when to call it; a `tool` route with none falls - back to the operation's summary. - - resolver : typing.Optional[HostedApiResolver] - - response_schema : typing.Optional[typing.Dict[str, typing.Any]] - - cache_ttl_seconds : typing.Optional[int] - - enabled : typing.Optional[bool] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HostedApiRoute - OK - - Examples - -------- - import asyncio - - from speechify import AsyncSpeechify - - client = AsyncSpeechify( - "2026-09-30", - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.hosted_apis.routes.update_route( - api_id="api_01jqr8x9zg5k2m3n4p5q6r7s8t", - route_id="route_01jqr8x9zg5k2m3n4p5q6r7s8t", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.update_route( - api_id, - route_id, - method=method, - path=path, - name=name, - description=description, - resolver=resolver, - response_schema=response_schema, - cache_ttl_seconds=cache_ttl_seconds, - enabled=enabled, - request_options=request_options, - ) - return _response.data diff --git a/src/speechify/hosted_apis/routes/raw_client.py b/src/speechify/hosted_apis/routes/raw_client.py deleted file mode 100644 index 974615a..0000000 --- a/src/speechify/hosted_apis/routes/raw_client.py +++ /dev/null @@ -1,2027 +0,0 @@ -# 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 ...core.serialization import convert_and_respect_annotation_metadata -from ...errors.bad_request_error import BadRequestError -from ...errors.conflict_error import ConflictError -from ...errors.internal_server_error import InternalServerError -from ...errors.not_found_error import NotFoundError -from ...errors.payment_required_error import PaymentRequiredError -from ...errors.too_many_requests_error import TooManyRequestsError -from ...errors.unauthorized_error import UnauthorizedError -from ...types.error import Error -from ...types.hosted_api_mount import HostedApiMount -from ...types.hosted_api_resolver import HostedApiResolver -from ...types.hosted_api_route import HostedApiRoute -from ...types.list_hosted_api_routes_response import ListHostedApiRoutesResponse -from .types.create_hosted_api_route_request_method import CreateHostedApiRouteRequestMethod -from .types.update_hosted_api_route_request_method import UpdateHostedApiRouteRequestMethod -from pydantic import ValidationError - -# this is used as the default value for optional parameters -OMIT = typing.cast(typing.Any, ...) - - -class RawRoutesClient: - def __init__(self, *, client_wrapper: SyncClientWrapper): - self._client_wrapper = client_wrapper - - def list_routes( - self, - api_id: str, - *, - cursor: typing.Optional[str] = None, - limit: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> SyncPager[HostedApiRoute, ListHostedApiRoutesResponse]: - """ - List a hosted API's routes in creation order. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - 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[HostedApiRoute, ListHostedApiRoutesResponse] - OK - """ - _response = self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/routes", - method="GET", - params={ - "cursor": cursor, - "limit": limit, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListHostedApiRoutesResponse, - parse_obj_as( - type_=ListHostedApiRoutesResponse, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.routes - _parsed_next = _parsed_response.next_cursor - _has_next = _parsed_next is not None and _parsed_next != "" - _get_next = lambda: self.list_routes( - api_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 == 402: - raise PaymentRequiredError( - 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 create_route( - self, - api_id: str, - *, - method: CreateHostedApiRouteRequestMethod, - path: str, - resolver: HostedApiResolver, - idempotency_key: typing.Optional[str] = None, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - response_schema: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, - cache_ttl_seconds: typing.Optional[int] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[HostedApiRoute]: - """ - Add a route: a method + path answered by a resolver. `store_query`, - `store_document` and `store_aggregate` serve a store; `store_write` - lands the POST body as a document (`write_mode` create / replace / - merge; POST only, never on a public API, counted against - `daily_write_cap`, deduplicated on `Idempotency-Key`); `run_latest` - serves the newest structured output of a schedule trigger's runs; - `run` starts a run through a webhook trigger per request (POST only, - never on a public API) and waits up to `wait_seconds` before answering - 202 with a handle to poll at `/_runs/{run_id}`; `file` serves one - published file, or a whole published tree when the path ends in `*` - (`/app/*` with `file_root` and `file_index`); `tool` calls one read - operation of an `openapi` tool definition, or one tool of an `mcp` - tool definition's server, in the API's project whose `approval` is - null or `auto` (POST only, never on a public API, counted against - `daily_read_cap`): the consumer's JSON body is the arguments and the - connector's answer, after the tool's response mapping, is the - response. An `mcp` route pins the tool's input schema as - `resolver.input_schema` when it is written. - Where-clause values and - the document id may be `{{query.x}}`, `{{path.x}}` or `{{body.x}}` - templates bound from the consumer's request, or `{{user.x}}` claims of - the verified caller on a `user_token`, `workspace` or `owner` API; a - clause whose template is absent is skipped. On those three modes a - written document is stamped `user_identity` as the caller and only - they can replace or merge it. Two bindings are refused at write time: - `{{user.*}}` on an API that names no caller, and a clause on - `user_identity` bound from a request template, which would let any - caller read any user's rows. - - On an API with `mcp_enabled`, every enabled route except a `file` - route is also an MCP tool. The tool's name comes from the route's - `name`: every run of characters outside letters, digits, `_` and `-` - becomes `_`, leading and trailing `_` are dropped, and the result is - cut to 64 characters. A route with no name is listed under a name - built from its method and path (`post_issues_open`), and a name two - routes would share takes `_2`, `_3` in route order, so read the names - from the face's `tools/list` rather than deriving them. The route's - `description` is what the client's model reads to choose the tool, - falling back to the operation's summary on a `tool` route. Name and - describe a route for that reader. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - method : CreateHostedApiRouteRequestMethod - - path : str - Lowercase segments of letters, digits, `. _ -` or a `{param}`; `/openapi.json`, `/_runs` and `/mcp` are reserved. - - resolver : HostedApiResolver - - 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. - - name : typing.Optional[str] - The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. - On an API with `mcp_enabled` the MCP tool's name comes from it: - each run of other characters (a space included) becomes `_`, - leading and trailing `_` are dropped, and the result is cut to 64 - characters. A route with no name is listed under a name built from - its method and path, and a name two routes would share takes `_2`, - `_3` in route order; the face's `tools/list` is the authority. Pick - a verb-first name a model can choose by. - - description : typing.Optional[str] - What the route does. On an API with `mcp_enabled` it is the MCP - tool description a client's model reads to choose the tool, so say - what it returns and when to call it; a `tool` route with none falls - back to the operation's summary. - - response_schema : typing.Optional[typing.Dict[str, typing.Any]] - - cache_ttl_seconds : typing.Optional[int] - - enabled : typing.Optional[bool] - Enabled when omitted. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[HostedApiRoute] - The created route. - """ - _response = self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/routes", - method="POST", - json={ - "method": method, - "path": path, - "name": name, - "description": description, - "resolver": convert_and_respect_annotation_metadata( - object_=resolver, annotation=HostedApiResolver, direction="write" - ), - "response_schema": response_schema, - "cache_ttl_seconds": cache_ttl_seconds, - "enabled": enabled, - }, - headers={ - "content-type": "application/json", - "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApiRoute, - parse_obj_as( - type_=HostedApiRoute, # 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 == 402: - raise PaymentRequiredError( - 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 mount_routes( - self, - api_id: str, - *, - tool_id: str, - idempotency_key: typing.Optional[str] = None, - operations: typing.Optional[typing.Sequence[str]] = OMIT, - name_prefix: typing.Optional[str] = OMIT, - path_prefix: typing.Optional[str] = OMIT, - dry_run: typing.Optional[bool] = OMIT, - include_writes: typing.Optional[bool] = OMIT, - plan_digest: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[HostedApiMount]: - """ - Publish a connector's operations onto the API in one call: one `tool` - route per operation of an `openapi` tool definition, or per tool its - `mcp` server lists, named `__` at - `/`, so two connectors' tools stay apart on - the MCP face and inside its 64-character tool names. - - Send `dry_run: true` first. The answer lists every operation with - its effective `action_class` and `approval`, whether a route can serve - it, and the `action` a mount takes: `create`, `update` (an MCP tool - whose input schema changed since its route was written; `changes` - names what), `unchanged`, `skip` (with the `reason`: not selected, not - a read, not auto-approved, a name or path already taken, or the route - cap) or `stale` (a route whose operation the connector no longer - offers, or can no longer serve; it is reported and never deleted, - since a consumer may still call it). The same call without `dry_run` - writes every create and update in one transaction and returns the - written `route` on each. - - Every answer carries a `plan_digest`. Send the preview's digest with - the apply: the apply plans again inside its transaction and writes - only when that plan still has the digest, so a tool the server changed - or a route edited after you reviewed is never written unseen. When it - differs the apply writes nothing and answers 409 `mount_plan_changed` - with the current plan, as a dry run answers it, in - `error.details.plan`; review that and apply again with its digest, - under a new `Idempotency-Key` if you sent one, since a key replays its - first answer, this 409 included. The digest covers every operation the - connector offers and every route the API holds for it whatever - `operations` selects, so a preview of everything and an apply of a - selection share one. An apply without it writes whatever the mount - plans at that moment. - - Mounting again is the refresh. Every route the API holds for the - connector is compared with what it offers now, whatever its name, - path or the selection, so an upstream change is seen as a diff before - anyone's client sees it. `operations` selects what to create; omit it - to create a route for every operation a route can serve. A route an - owner renamed or moved keeps its name and path on refresh. - - The route write's rules apply to every operation: the connector must - be in the API's project (409 `cross_project_reference`), an MCP server - must be reachable with its credential to be listed (400 - `validation_failed` on `tool_id` with the server's reason), and a - public API mounts nothing. An API holds at most 200 routes; a mount - that would pass the cap skips what does not fit. Without a - `plan_digest`, a route changed while the mount was being planned - answers 409 `api_route_conflict`; mount again. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - tool_id : str - The `openapi` or `mcp` tool definition to mount, in the API's project. - - 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. - - operations : typing.Optional[typing.Sequence[str]] - The operations to create routes for: openapi operation ids or the - MCP server's tool names. Omit to create a route for every operation - a route can serve. Naming one the connector does not offer is 400 - `validation_failed` on `operations[i]`. Existing routes are compared - whatever the selection. - - name_prefix : typing.Optional[str] - Prefix of each created route's name, `__`. Defaults to the tool's name with other characters as `_`. - - path_prefix : typing.Optional[str] - Path each created route sits under, `/`; lowercase segments of letters, digits, `.`, `_` or `-`, with no `{param}` or `*`, and not under `/mcp`, `/openapi.json` or `/_runs`. Defaults to `/` in lowercase. - - dry_run : typing.Optional[bool] - Answer what the mount would do and write nothing. - - include_writes : typing.Optional[bool] - Create routes for operations that are not reads too, each with - `allow_write: true`. Only an API whose `auth_mode` names a person - takes them; the operation's `approval` must still be `auto`. - Without it a write is a `skip` that says so. - - plan_digest : typing.Optional[str] - The `plan_digest` of the preview you reviewed. The apply writes - only while the plan it computes inside its transaction still has - this digest, and otherwise writes nothing and answers 409 - `mount_plan_changed` with the current plan. Omit it to apply what - the mount plans now. Refused with `dry_run`. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[HostedApiMount] - What the mount did, or on a dry run would do. - """ - _response = self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/routes/mount", - method="POST", - json={ - "tool_id": tool_id, - "operations": operations, - "name_prefix": name_prefix, - "path_prefix": path_prefix, - "dry_run": dry_run, - "include_writes": include_writes, - "plan_digest": plan_digest, - }, - headers={ - "content-type": "application/json", - "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApiMount, - parse_obj_as( - type_=HostedApiMount, # 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 == 402: - raise PaymentRequiredError( - 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 get_route( - self, api_id: str, route_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[HostedApiRoute]: - """ - Retrieve one route. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - route_id : str - Route id (prefixed external id, `route_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[HostedApiRoute] - OK - """ - _response = self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/routes/{encode_path_param(route_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApiRoute, - parse_obj_as( - type_=HostedApiRoute, # 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 == 402: - raise PaymentRequiredError( - 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 delete_route( - self, api_id: str, route_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[None]: - """ - Delete a route. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - route_id : str - Route id (prefixed external id, `route_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[None] - """ - _response = self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/routes/{encode_path_param(route_id)}", - method="DELETE", - request_options=request_options, - ) - 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 == 402: - raise PaymentRequiredError( - 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_route( - self, - api_id: str, - route_id: str, - *, - method: typing.Optional[UpdateHostedApiRouteRequestMethod] = OMIT, - path: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - resolver: typing.Optional[HostedApiResolver] = OMIT, - response_schema: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, - cache_ttl_seconds: typing.Optional[int] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[HostedApiRoute]: - """ - Update a route (merge-patch); a changed method or resolver is re-validated. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - route_id : str - Route id (prefixed external id, `route_...`). - - method : typing.Optional[UpdateHostedApiRouteRequestMethod] - - path : typing.Optional[str] - - name : typing.Optional[str] - The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. - On an API with `mcp_enabled` the MCP tool's name comes from it: - each run of other characters (a space included) becomes `_`, - leading and trailing `_` are dropped, and the result is cut to 64 - characters. A route with no name is listed under a name built from - its method and path, and a name two routes would share takes `_2`, - `_3` in route order; the face's `tools/list` is the authority. Pick - a verb-first name a model can choose by. - - description : typing.Optional[str] - What the route does. On an API with `mcp_enabled` it is the MCP - tool description a client's model reads to choose the tool, so say - what it returns and when to call it; a `tool` route with none falls - back to the operation's summary. - - resolver : typing.Optional[HostedApiResolver] - - response_schema : typing.Optional[typing.Dict[str, typing.Any]] - - cache_ttl_seconds : typing.Optional[int] - - enabled : typing.Optional[bool] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[HostedApiRoute] - OK - """ - _response = self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/routes/{encode_path_param(route_id)}", - method="PATCH", - json={ - "method": method, - "path": path, - "name": name, - "description": description, - "resolver": convert_and_respect_annotation_metadata( - object_=resolver, annotation=HostedApiResolver, direction="write" - ), - "response_schema": response_schema, - "cache_ttl_seconds": cache_ttl_seconds, - "enabled": enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApiRoute, - parse_obj_as( - type_=HostedApiRoute, # 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 == 402: - raise PaymentRequiredError( - 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) - - -class AsyncRawRoutesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def list_routes( - self, - api_id: str, - *, - cursor: typing.Optional[str] = None, - limit: typing.Optional[int] = None, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncPager[HostedApiRoute, ListHostedApiRoutesResponse]: - """ - List a hosted API's routes in creation order. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - 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[HostedApiRoute, ListHostedApiRoutesResponse] - OK - """ - _response = await self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/routes", - method="GET", - params={ - "cursor": cursor, - "limit": limit, - }, - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _parsed_response = typing.cast( - ListHostedApiRoutesResponse, - parse_obj_as( - type_=ListHostedApiRoutesResponse, # type: ignore - object_=_response.json(), - ), - ) - _items = _parsed_response.routes - _parsed_next = _parsed_response.next_cursor - _has_next = _parsed_next is not None and _parsed_next != "" - - async def _get_next(): - return await self.list_routes( - api_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 == 402: - raise PaymentRequiredError( - 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 create_route( - self, - api_id: str, - *, - method: CreateHostedApiRouteRequestMethod, - path: str, - resolver: HostedApiResolver, - idempotency_key: typing.Optional[str] = None, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - response_schema: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, - cache_ttl_seconds: typing.Optional[int] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[HostedApiRoute]: - """ - Add a route: a method + path answered by a resolver. `store_query`, - `store_document` and `store_aggregate` serve a store; `store_write` - lands the POST body as a document (`write_mode` create / replace / - merge; POST only, never on a public API, counted against - `daily_write_cap`, deduplicated on `Idempotency-Key`); `run_latest` - serves the newest structured output of a schedule trigger's runs; - `run` starts a run through a webhook trigger per request (POST only, - never on a public API) and waits up to `wait_seconds` before answering - 202 with a handle to poll at `/_runs/{run_id}`; `file` serves one - published file, or a whole published tree when the path ends in `*` - (`/app/*` with `file_root` and `file_index`); `tool` calls one read - operation of an `openapi` tool definition, or one tool of an `mcp` - tool definition's server, in the API's project whose `approval` is - null or `auto` (POST only, never on a public API, counted against - `daily_read_cap`): the consumer's JSON body is the arguments and the - connector's answer, after the tool's response mapping, is the - response. An `mcp` route pins the tool's input schema as - `resolver.input_schema` when it is written. - Where-clause values and - the document id may be `{{query.x}}`, `{{path.x}}` or `{{body.x}}` - templates bound from the consumer's request, or `{{user.x}}` claims of - the verified caller on a `user_token`, `workspace` or `owner` API; a - clause whose template is absent is skipped. On those three modes a - written document is stamped `user_identity` as the caller and only - they can replace or merge it. Two bindings are refused at write time: - `{{user.*}}` on an API that names no caller, and a clause on - `user_identity` bound from a request template, which would let any - caller read any user's rows. - - On an API with `mcp_enabled`, every enabled route except a `file` - route is also an MCP tool. The tool's name comes from the route's - `name`: every run of characters outside letters, digits, `_` and `-` - becomes `_`, leading and trailing `_` are dropped, and the result is - cut to 64 characters. A route with no name is listed under a name - built from its method and path (`post_issues_open`), and a name two - routes would share takes `_2`, `_3` in route order, so read the names - from the face's `tools/list` rather than deriving them. The route's - `description` is what the client's model reads to choose the tool, - falling back to the operation's summary on a `tool` route. Name and - describe a route for that reader. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - method : CreateHostedApiRouteRequestMethod - - path : str - Lowercase segments of letters, digits, `. _ -` or a `{param}`; `/openapi.json`, `/_runs` and `/mcp` are reserved. - - resolver : HostedApiResolver - - 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. - - name : typing.Optional[str] - The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. - On an API with `mcp_enabled` the MCP tool's name comes from it: - each run of other characters (a space included) becomes `_`, - leading and trailing `_` are dropped, and the result is cut to 64 - characters. A route with no name is listed under a name built from - its method and path, and a name two routes would share takes `_2`, - `_3` in route order; the face's `tools/list` is the authority. Pick - a verb-first name a model can choose by. - - description : typing.Optional[str] - What the route does. On an API with `mcp_enabled` it is the MCP - tool description a client's model reads to choose the tool, so say - what it returns and when to call it; a `tool` route with none falls - back to the operation's summary. - - response_schema : typing.Optional[typing.Dict[str, typing.Any]] - - cache_ttl_seconds : typing.Optional[int] - - enabled : typing.Optional[bool] - Enabled when omitted. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[HostedApiRoute] - The created route. - """ - _response = await self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/routes", - method="POST", - json={ - "method": method, - "path": path, - "name": name, - "description": description, - "resolver": convert_and_respect_annotation_metadata( - object_=resolver, annotation=HostedApiResolver, direction="write" - ), - "response_schema": response_schema, - "cache_ttl_seconds": cache_ttl_seconds, - "enabled": enabled, - }, - headers={ - "content-type": "application/json", - "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApiRoute, - parse_obj_as( - type_=HostedApiRoute, # 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 == 402: - raise PaymentRequiredError( - 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 mount_routes( - self, - api_id: str, - *, - tool_id: str, - idempotency_key: typing.Optional[str] = None, - operations: typing.Optional[typing.Sequence[str]] = OMIT, - name_prefix: typing.Optional[str] = OMIT, - path_prefix: typing.Optional[str] = OMIT, - dry_run: typing.Optional[bool] = OMIT, - include_writes: typing.Optional[bool] = OMIT, - plan_digest: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[HostedApiMount]: - """ - Publish a connector's operations onto the API in one call: one `tool` - route per operation of an `openapi` tool definition, or per tool its - `mcp` server lists, named `__` at - `/`, so two connectors' tools stay apart on - the MCP face and inside its 64-character tool names. - - Send `dry_run: true` first. The answer lists every operation with - its effective `action_class` and `approval`, whether a route can serve - it, and the `action` a mount takes: `create`, `update` (an MCP tool - whose input schema changed since its route was written; `changes` - names what), `unchanged`, `skip` (with the `reason`: not selected, not - a read, not auto-approved, a name or path already taken, or the route - cap) or `stale` (a route whose operation the connector no longer - offers, or can no longer serve; it is reported and never deleted, - since a consumer may still call it). The same call without `dry_run` - writes every create and update in one transaction and returns the - written `route` on each. - - Every answer carries a `plan_digest`. Send the preview's digest with - the apply: the apply plans again inside its transaction and writes - only when that plan still has the digest, so a tool the server changed - or a route edited after you reviewed is never written unseen. When it - differs the apply writes nothing and answers 409 `mount_plan_changed` - with the current plan, as a dry run answers it, in - `error.details.plan`; review that and apply again with its digest, - under a new `Idempotency-Key` if you sent one, since a key replays its - first answer, this 409 included. The digest covers every operation the - connector offers and every route the API holds for it whatever - `operations` selects, so a preview of everything and an apply of a - selection share one. An apply without it writes whatever the mount - plans at that moment. - - Mounting again is the refresh. Every route the API holds for the - connector is compared with what it offers now, whatever its name, - path or the selection, so an upstream change is seen as a diff before - anyone's client sees it. `operations` selects what to create; omit it - to create a route for every operation a route can serve. A route an - owner renamed or moved keeps its name and path on refresh. - - The route write's rules apply to every operation: the connector must - be in the API's project (409 `cross_project_reference`), an MCP server - must be reachable with its credential to be listed (400 - `validation_failed` on `tool_id` with the server's reason), and a - public API mounts nothing. An API holds at most 200 routes; a mount - that would pass the cap skips what does not fit. Without a - `plan_digest`, a route changed while the mount was being planned - answers 409 `api_route_conflict`; mount again. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - tool_id : str - The `openapi` or `mcp` tool definition to mount, in the API's project. - - 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. - - operations : typing.Optional[typing.Sequence[str]] - The operations to create routes for: openapi operation ids or the - MCP server's tool names. Omit to create a route for every operation - a route can serve. Naming one the connector does not offer is 400 - `validation_failed` on `operations[i]`. Existing routes are compared - whatever the selection. - - name_prefix : typing.Optional[str] - Prefix of each created route's name, `__`. Defaults to the tool's name with other characters as `_`. - - path_prefix : typing.Optional[str] - Path each created route sits under, `/`; lowercase segments of letters, digits, `.`, `_` or `-`, with no `{param}` or `*`, and not under `/mcp`, `/openapi.json` or `/_runs`. Defaults to `/` in lowercase. - - dry_run : typing.Optional[bool] - Answer what the mount would do and write nothing. - - include_writes : typing.Optional[bool] - Create routes for operations that are not reads too, each with - `allow_write: true`. Only an API whose `auth_mode` names a person - takes them; the operation's `approval` must still be `auto`. - Without it a write is a `skip` that says so. - - plan_digest : typing.Optional[str] - The `plan_digest` of the preview you reviewed. The apply writes - only while the plan it computes inside its transaction still has - this digest, and otherwise writes nothing and answers 409 - `mount_plan_changed` with the current plan. Omit it to apply what - the mount plans now. Refused with `dry_run`. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[HostedApiMount] - What the mount did, or on a dry run would do. - """ - _response = await self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/routes/mount", - method="POST", - json={ - "tool_id": tool_id, - "operations": operations, - "name_prefix": name_prefix, - "path_prefix": path_prefix, - "dry_run": dry_run, - "include_writes": include_writes, - "plan_digest": plan_digest, - }, - headers={ - "content-type": "application/json", - "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApiMount, - parse_obj_as( - type_=HostedApiMount, # 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 == 402: - raise PaymentRequiredError( - 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 get_route( - self, api_id: str, route_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[HostedApiRoute]: - """ - Retrieve one route. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - route_id : str - Route id (prefixed external id, `route_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[HostedApiRoute] - OK - """ - _response = await self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/routes/{encode_path_param(route_id)}", - method="GET", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApiRoute, - parse_obj_as( - type_=HostedApiRoute, # 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 == 402: - raise PaymentRequiredError( - 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 delete_route( - self, api_id: str, route_id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[None]: - """ - Delete a route. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - route_id : str - Route id (prefixed external id, `route_...`). - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[None] - """ - _response = await self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/routes/{encode_path_param(route_id)}", - method="DELETE", - request_options=request_options, - ) - 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 == 402: - raise PaymentRequiredError( - 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_route( - self, - api_id: str, - route_id: str, - *, - method: typing.Optional[UpdateHostedApiRouteRequestMethod] = OMIT, - path: typing.Optional[str] = OMIT, - name: typing.Optional[str] = OMIT, - description: typing.Optional[str] = OMIT, - resolver: typing.Optional[HostedApiResolver] = OMIT, - response_schema: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, - cache_ttl_seconds: typing.Optional[int] = OMIT, - enabled: typing.Optional[bool] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[HostedApiRoute]: - """ - Update a route (merge-patch); a changed method or resolver is re-validated. - Dark launch: requires the `hosted_apis_access` entitlement (402 `hosted_apis_not_in_plan` otherwise). - - Parameters - ---------- - api_id : str - Hosted API id (prefixed external id, `api_...`). - - route_id : str - Route id (prefixed external id, `route_...`). - - method : typing.Optional[UpdateHostedApiRouteRequestMethod] - - path : typing.Optional[str] - - name : typing.Optional[str] - The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. - On an API with `mcp_enabled` the MCP tool's name comes from it: - each run of other characters (a space included) becomes `_`, - leading and trailing `_` are dropped, and the result is cut to 64 - characters. A route with no name is listed under a name built from - its method and path, and a name two routes would share takes `_2`, - `_3` in route order; the face's `tools/list` is the authority. Pick - a verb-first name a model can choose by. - - description : typing.Optional[str] - What the route does. On an API with `mcp_enabled` it is the MCP - tool description a client's model reads to choose the tool, so say - what it returns and when to call it; a `tool` route with none falls - back to the operation's summary. - - resolver : typing.Optional[HostedApiResolver] - - response_schema : typing.Optional[typing.Dict[str, typing.Any]] - - cache_ttl_seconds : typing.Optional[int] - - enabled : typing.Optional[bool] - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[HostedApiRoute] - OK - """ - _response = await self._client_wrapper.httpx_client.request( - f"v1/apis/{encode_path_param(api_id)}/routes/{encode_path_param(route_id)}", - method="PATCH", - json={ - "method": method, - "path": path, - "name": name, - "description": description, - "resolver": convert_and_respect_annotation_metadata( - object_=resolver, annotation=HostedApiResolver, direction="write" - ), - "response_schema": response_schema, - "cache_ttl_seconds": cache_ttl_seconds, - "enabled": enabled, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - HostedApiRoute, - parse_obj_as( - type_=HostedApiRoute, # 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 == 402: - raise PaymentRequiredError( - 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) diff --git a/src/speechify/hosted_apis/routes/types/__init__.py b/src/speechify/hosted_apis/routes/types/__init__.py deleted file mode 100644 index ad79d65..0000000 --- a/src/speechify/hosted_apis/routes/types/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 .create_hosted_api_route_request_method import CreateHostedApiRouteRequestMethod - from .update_hosted_api_route_request_method import UpdateHostedApiRouteRequestMethod -_dynamic_imports: typing.Dict[str, str] = { - "CreateHostedApiRouteRequestMethod": ".create_hosted_api_route_request_method", - "UpdateHostedApiRouteRequestMethod": ".update_hosted_api_route_request_method", -} - - -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__ = ["CreateHostedApiRouteRequestMethod", "UpdateHostedApiRouteRequestMethod"] diff --git a/src/speechify/hosted_apis/routes/types/create_hosted_api_route_request_method.py b/src/speechify/hosted_apis/routes/types/create_hosted_api_route_request_method.py deleted file mode 100644 index 966d74e..0000000 --- a/src/speechify/hosted_apis/routes/types/create_hosted_api_route_request_method.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateHostedApiRouteRequestMethod = typing.Union[typing.Literal["GET", "POST"], typing.Any] diff --git a/src/speechify/hosted_apis/routes/types/update_hosted_api_route_request_method.py b/src/speechify/hosted_apis/routes/types/update_hosted_api_route_request_method.py deleted file mode 100644 index e96c4d9..0000000 --- a/src/speechify/hosted_apis/routes/types/update_hosted_api_route_request_method.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UpdateHostedApiRouteRequestMethod = typing.Union[typing.Literal["GET", "POST"], typing.Any] diff --git a/src/speechify/hosted_apis/types/__init__.py b/src/speechify/hosted_apis/types/__init__.py deleted file mode 100644 index abadda3..0000000 --- a/src/speechify/hosted_apis/types/__init__.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 .create_hosted_api_request_auth_mode import CreateHostedApiRequestAuthMode - from .get_analytics_hosted_apis_request_granularity import GetAnalyticsHostedApisRequestGranularity - from .update_hosted_api_request_auth_mode import UpdateHostedApiRequestAuthMode -_dynamic_imports: typing.Dict[str, str] = { - "CreateHostedApiRequestAuthMode": ".create_hosted_api_request_auth_mode", - "GetAnalyticsHostedApisRequestGranularity": ".get_analytics_hosted_apis_request_granularity", - "UpdateHostedApiRequestAuthMode": ".update_hosted_api_request_auth_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__ = [ - "CreateHostedApiRequestAuthMode", - "GetAnalyticsHostedApisRequestGranularity", - "UpdateHostedApiRequestAuthMode", -] diff --git a/src/speechify/hosted_apis/types/create_hosted_api_request_auth_mode.py b/src/speechify/hosted_apis/types/create_hosted_api_request_auth_mode.py deleted file mode 100644 index 3745f8e..0000000 --- a/src/speechify/hosted_apis/types/create_hosted_api_request_auth_mode.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateHostedApiRequestAuthMode = typing.Union[ - typing.Literal["consumer_key", "public", "user_token", "workspace", "owner"], typing.Any -] diff --git a/src/speechify/hosted_apis/types/get_analytics_hosted_apis_request_granularity.py b/src/speechify/hosted_apis/types/get_analytics_hosted_apis_request_granularity.py deleted file mode 100644 index 19fbf3c..0000000 --- a/src/speechify/hosted_apis/types/get_analytics_hosted_apis_request_granularity.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -GetAnalyticsHostedApisRequestGranularity = typing.Union[ - typing.Literal["1m", "5m", "15m", "30m", "1h", "6h", "12h", "1d"], typing.Any -] diff --git a/src/speechify/hosted_apis/types/update_hosted_api_request_auth_mode.py b/src/speechify/hosted_apis/types/update_hosted_api_request_auth_mode.py deleted file mode 100644 index c719185..0000000 --- a/src/speechify/hosted_apis/types/update_hosted_api_request_auth_mode.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -UpdateHostedApiRequestAuthMode = typing.Union[ - typing.Literal["consumer_key", "public", "user_token", "workspace", "owner"], typing.Any -] diff --git a/src/speechify/types/__init__.py b/src/speechify/types/__init__.py index 3f4de56..17191f7 100644 --- a/src/speechify/types/__init__.py +++ b/src/speechify/types/__init__.py @@ -24,39 +24,11 @@ from .get_voice_type import GetVoiceType from .get_voices_model import GetVoicesModel from .get_voices_model_name import GetVoicesModelName - from .hosted_api import HostedApi - from .hosted_api_auth_mode import HostedApiAuthMode - from .hosted_api_key import HostedApiKey - from .hosted_api_mount import HostedApiMount - from .hosted_api_mount_operation import HostedApiMountOperation - from .hosted_api_mount_operation_action import HostedApiMountOperationAction - from .hosted_api_mount_operation_changes_item import HostedApiMountOperationChangesItem - from .hosted_api_mount_summary import HostedApiMountSummary - from .hosted_api_mount_tool_kind import HostedApiMountToolKind - from .hosted_api_resolver import HostedApiResolver - from .hosted_api_resolver_order_by import HostedApiResolverOrderBy - from .hosted_api_resolver_order_by_direction import HostedApiResolverOrderByDirection - from .hosted_api_resolver_type import HostedApiResolverType - from .hosted_api_resolver_where_item import HostedApiResolverWhereItem - from .hosted_api_resolver_where_item_op import HostedApiResolverWhereItemOp - from .hosted_api_resolver_write_mode import HostedApiResolverWriteMode - from .hosted_api_route import HostedApiRoute - from .hosted_api_route_method import HostedApiRouteMethod - from .hosted_api_usage import HostedApiUsage - from .hosted_api_usage_routes_item import HostedApiUsageRoutesItem - from .hosted_api_user_token_secret import HostedApiUserTokenSecret - from .list_hosted_ap_is_response import ListHostedApIsResponse - from .list_hosted_api_keys_response import ListHostedApiKeysResponse - from .list_hosted_api_routes_response import ListHostedApiRoutesResponse from .list_voices_response import ListVoicesResponse from .model import Model from .models_response import ModelsResponse from .nested_chunk import NestedChunk from .pagination_meta import PaginationMeta - from .request_analytics_bucket import RequestAnalyticsBucket - from .request_analytics_response import RequestAnalyticsResponse - from .request_analytics_totals import RequestAnalyticsTotals - from .request_top_path import RequestTopPath from .speech_chunk_event import SpeechChunkEvent from .speech_done_event import SpeechDoneEvent from .speech_error_event import SpeechErrorEvent @@ -67,8 +39,6 @@ SpeechStreamEvent_SpeechDone, SpeechStreamEvent_SpeechError, ) - from .store_aggregate_metric import StoreAggregateMetric - from .store_aggregate_metric_op import StoreAggregateMetricOp from .watermark_detection_response import WatermarkDetectionResponse from .watermark_verification_response import WatermarkVerificationResponse _dynamic_imports: typing.Dict[str, str] = { @@ -90,39 +60,11 @@ "GetVoiceType": ".get_voice_type", "GetVoicesModel": ".get_voices_model", "GetVoicesModelName": ".get_voices_model_name", - "HostedApi": ".hosted_api", - "HostedApiAuthMode": ".hosted_api_auth_mode", - "HostedApiKey": ".hosted_api_key", - "HostedApiMount": ".hosted_api_mount", - "HostedApiMountOperation": ".hosted_api_mount_operation", - "HostedApiMountOperationAction": ".hosted_api_mount_operation_action", - "HostedApiMountOperationChangesItem": ".hosted_api_mount_operation_changes_item", - "HostedApiMountSummary": ".hosted_api_mount_summary", - "HostedApiMountToolKind": ".hosted_api_mount_tool_kind", - "HostedApiResolver": ".hosted_api_resolver", - "HostedApiResolverOrderBy": ".hosted_api_resolver_order_by", - "HostedApiResolverOrderByDirection": ".hosted_api_resolver_order_by_direction", - "HostedApiResolverType": ".hosted_api_resolver_type", - "HostedApiResolverWhereItem": ".hosted_api_resolver_where_item", - "HostedApiResolverWhereItemOp": ".hosted_api_resolver_where_item_op", - "HostedApiResolverWriteMode": ".hosted_api_resolver_write_mode", - "HostedApiRoute": ".hosted_api_route", - "HostedApiRouteMethod": ".hosted_api_route_method", - "HostedApiUsage": ".hosted_api_usage", - "HostedApiUsageRoutesItem": ".hosted_api_usage_routes_item", - "HostedApiUserTokenSecret": ".hosted_api_user_token_secret", - "ListHostedApIsResponse": ".list_hosted_ap_is_response", - "ListHostedApiKeysResponse": ".list_hosted_api_keys_response", - "ListHostedApiRoutesResponse": ".list_hosted_api_routes_response", "ListVoicesResponse": ".list_voices_response", "Model": ".model", "ModelsResponse": ".models_response", "NestedChunk": ".nested_chunk", "PaginationMeta": ".pagination_meta", - "RequestAnalyticsBucket": ".request_analytics_bucket", - "RequestAnalyticsResponse": ".request_analytics_response", - "RequestAnalyticsTotals": ".request_analytics_totals", - "RequestTopPath": ".request_top_path", "SpeechChunkEvent": ".speech_chunk_event", "SpeechDoneEvent": ".speech_done_event", "SpeechErrorEvent": ".speech_error_event", @@ -131,8 +73,6 @@ "SpeechStreamEvent_SpeechChunk": ".speech_stream_event", "SpeechStreamEvent_SpeechDone": ".speech_stream_event", "SpeechStreamEvent_SpeechError": ".speech_stream_event", - "StoreAggregateMetric": ".store_aggregate_metric", - "StoreAggregateMetricOp": ".store_aggregate_metric_op", "WatermarkDetectionResponse": ".watermark_detection_response", "WatermarkVerificationResponse": ".watermark_verification_response", } @@ -178,39 +118,11 @@ def __dir__(): "GetVoiceType", "GetVoicesModel", "GetVoicesModelName", - "HostedApi", - "HostedApiAuthMode", - "HostedApiKey", - "HostedApiMount", - "HostedApiMountOperation", - "HostedApiMountOperationAction", - "HostedApiMountOperationChangesItem", - "HostedApiMountSummary", - "HostedApiMountToolKind", - "HostedApiResolver", - "HostedApiResolverOrderBy", - "HostedApiResolverOrderByDirection", - "HostedApiResolverType", - "HostedApiResolverWhereItem", - "HostedApiResolverWhereItemOp", - "HostedApiResolverWriteMode", - "HostedApiRoute", - "HostedApiRouteMethod", - "HostedApiUsage", - "HostedApiUsageRoutesItem", - "HostedApiUserTokenSecret", - "ListHostedApIsResponse", - "ListHostedApiKeysResponse", - "ListHostedApiRoutesResponse", "ListVoicesResponse", "Model", "ModelsResponse", "NestedChunk", "PaginationMeta", - "RequestAnalyticsBucket", - "RequestAnalyticsResponse", - "RequestAnalyticsTotals", - "RequestTopPath", "SpeechChunkEvent", "SpeechDoneEvent", "SpeechErrorEvent", @@ -219,8 +131,6 @@ def __dir__(): "SpeechStreamEvent_SpeechChunk", "SpeechStreamEvent_SpeechDone", "SpeechStreamEvent_SpeechError", - "StoreAggregateMetric", - "StoreAggregateMetricOp", "WatermarkDetectionResponse", "WatermarkVerificationResponse", ] diff --git a/src/speechify/types/hosted_api.py b/src/speechify/types/hosted_api.py deleted file mode 100644 index d42ddfe..0000000 --- a/src/speechify/types/hosted_api.py +++ /dev/null @@ -1,136 +0,0 @@ -# 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 .hosted_api_auth_mode import HostedApiAuthMode - - -class HostedApi(UniversalBaseModel): - """ - A customer-assembled API: a slug on the shared hosted-API - domain, routes answered by resolvers, and consumer keys. Build product; - the customer assembles it, Speechify hosts it. - """ - - id: str - slug: str - hostname: str = pydantic.Field() - """ - The public host, `.`; empty where no domain is configured. - """ - - base_url: str - name: str = pydantic.Field() - """ - The API's display name; the server title an MCP client shows when `mcp_enabled` is on. - """ - - description: str = pydantic.Field() - """ - What the API is for. When `mcp_enabled` is on it is also the - instructions an MCP client hands its model, so say what the tools - are for and when to use them. - """ - - auth_mode: HostedApiAuthMode = pydantic.Field() - """ - Who the API answers, narrowest first. `owner`: only the API's owner, - with their own Speechify API key or console session. `workspace`: - any member of the owning workspace, the same way. `user_token`: - every request presents a short-lived JWT your backend signed for the - calling user (`sub`, `exp` within 24 hours, optional `aud` naming - this API), verified against the API's signing secret (HS256) or its - registered JWKS URL (RS256 / ES256 / EdDSA). `consumer_key`: every - request presents a `ck_` bearer minted for this API. `public`: no - credential; only read resolvers may be served, the per-IP limiter is - the only bound, and a workspace can refuse it as policy - (`hosted_apis_public_allowed`). The three modes that name a person - (`owner`, `workspace`, `user_token`) let routes bind `{{user.sub}}`, - key the response cache per person, and stamp a written document as - that person's. - """ - - cors_origins: typing.List[str] = pydantic.Field() - """ - Browser origins allowed to call the API (`*` for any). Empty for server-to-server only. - """ - - enabled: bool - daily_run_cap: int = pydantic.Field() - """ - Runs the API's run routes may start per UTC day; the spend ceiling behind a leaked consumer key. - """ - - daily_read_cap: typing.Optional[int] = pydantic.Field(default=None) - """ - Reads the API's store, file, run_latest and tool routes may serve - per UTC day; the ceiling behind a hot path, and for a tool route - behind the vendor budget its calls draw on. Always present on a - current API; optional on the wire so a reader built - before it existed keeps parsing. A - response served from the cache is not a read. Past the cap a read - route answers 429 `route_read_limit_reached`. Without Redis nothing - counts: a public route is paused by the limiter in that state, a - keyed or tokened caller passes. - """ - - daily_write_cap: typing.Optional[int] = pydantic.Field(default=None) - """ - Documents the API's write routes may land per UTC day; the storage - ceiling behind a leaked key on a write route. Past the cap a write - route answers 429 `route_write_limit_reached`. Optional on the wire - for the same reason as `daily_read_cap`. - """ - - mcp_enabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether the API also serves its routes as an MCP server at - `POST /mcp` (streamable HTTP, stateless, POST only): every - enabled route except a file route is listed as a tool, named by the - route's `name` and described by its `description`, and a call runs - under the same audience, consumer keys, per-key limits, daily caps - and request log the route has. An MCP client authenticates with the - same bearer a plain consumer sends (a `ck_` consumer key, an - end-user token, or a Speechify API key on a `workspace` or `owner` - API); the API's OpenAPI document names the address under - `x-speechify-mcp.url`. Off for a new API, where `/mcp` answers 404 - `hosted_mcp_not_enabled`; never true on a `public` API (refused - with 400 on either switch). Optional on the wire for the same - reason as `daily_read_cap`. - """ - - mcp_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The address an MCP client attaches to, `/mcp`, while - `mcp_enabled` is on; null while it is off. Read it here rather - than assembling it. - """ - - project_id: typing.Optional[str] = None - user_token_jwks_url: typing.Optional[str] = pydantic.Field(default=None) - """ - The key set end-user tokens are verified against when set (an - `https` URL on a public host, read on demand and cached briefly). - When null, tokens are verified against the API's signing secret. - """ - - user_token_secret_hint: typing.Optional[str] = pydantic.Field(default=None) - """ - The masked signing secret end-user tokens are verified against - (the rotate-user-token-secret verb mints it); null until minted. - """ - - 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/hosted_api_auth_mode.py b/src/speechify/types/hosted_api_auth_mode.py deleted file mode 100644 index 8ddb0d1..0000000 --- a/src/speechify/types/hosted_api_auth_mode.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -HostedApiAuthMode = typing.Union[ - typing.Literal["consumer_key", "public", "user_token", "workspace", "owner"], typing.Any -] diff --git a/src/speechify/types/hosted_api_key.py b/src/speechify/types/hosted_api_key.py deleted file mode 100644 index 9b0bb09..0000000 --- a/src/speechify/types/hosted_api_key.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 HostedApiKey(UniversalBaseModel): - id: str - api_id: str - name: str - key_hint: str = pydantic.Field() - """ - The masked secret shown on every read. - """ - - rate_per_minute: int = pydantic.Field() - """ - Requests per minute this key may make; 0 is unlimited. - """ - - secret: typing.Optional[str] = pydantic.Field(default=None) - """ - The plaintext key, present on the create response only. - """ - - revoked_at: typing.Optional[dt.datetime] = None - last_used_at: typing.Optional[dt.datetime] = None - created_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/hosted_api_mount.py b/src/speechify/types/hosted_api_mount.py deleted file mode 100644 index 2932c24..0000000 --- a/src/speechify/types/hosted_api_mount.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 .hosted_api_mount_operation import HostedApiMountOperation -from .hosted_api_mount_summary import HostedApiMountSummary -from .hosted_api_mount_tool_kind import HostedApiMountToolKind - - -class HostedApiMount(UniversalBaseModel): - tool_id: str - tool_name: str - tool_kind: HostedApiMountToolKind - name_prefix: str - path_prefix: str - dry_run: bool - operations: typing.List[HostedApiMountOperation] = pydantic.Field() - """ - One entry per operation the connector offers, in its order, then one per stale route whose operation it no longer offers. - """ - - summary: HostedApiMountSummary - plan_digest: str = pydantic.Field() - """ - Names this plan's content: every operation the connector offers and - every route the API holds for it, whatever `operations` selects, - and nothing that moves without the plan changing. Send it back as - the apply's `plan_digest` to write only this 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/hosted_api_mount_operation.py b/src/speechify/types/hosted_api_mount_operation.py deleted file mode 100644 index a844999..0000000 --- a/src/speechify/types/hosted_api_mount_operation.py +++ /dev/null @@ -1,65 +0,0 @@ -# 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 .hosted_api_mount_operation_action import HostedApiMountOperationAction -from .hosted_api_mount_operation_changes_item import HostedApiMountOperationChangesItem -from .hosted_api_route import HostedApiRoute - - -class HostedApiMountOperation(UniversalBaseModel): - operation: str - description: str = pydantic.Field() - """ - The operation's summary or description; the created route's description. - """ - - action_class: str = pydantic.Field() - """ - The operation's effective action class, or empty for a stale route whose operation is gone. - """ - - approval: str = pydantic.Field() - """ - The operation's effective approval, or empty for a stale route whose operation is gone. - """ - - servable: bool = pydantic.Field() - """ - Whether a route can serve it now (approval `auto`, and a read, or a write on a route with `allow_write` on an API that names a person). - """ - - allow_write: bool = pydantic.Field() - """ - Whether the route serves a write: set on a create when the mount includes writes, and the existing route's own value otherwise. - """ - - action: HostedApiMountOperationAction - reason: typing.Optional[str] = pydantic.Field(default=None) - """ - Why a `skip` or a `stale` entry is one, and what fixes it. - """ - - changes: typing.Optional[typing.List[HostedApiMountOperationChangesItem]] = pydantic.Field(default=None) - """ - What an `update` rewrites. - """ - - name: str = pydantic.Field() - """ - The route's name, the MCP tool name the face lists. - """ - - path: str - route: typing.Optional[HostedApiRoute] = 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/hosted_api_mount_operation_action.py b/src/speechify/types/hosted_api_mount_operation_action.py deleted file mode 100644 index 0afd3ba..0000000 --- a/src/speechify/types/hosted_api_mount_operation_action.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -HostedApiMountOperationAction = typing.Union[ - typing.Literal["create", "update", "unchanged", "skip", "stale"], typing.Any -] diff --git a/src/speechify/types/hosted_api_mount_operation_changes_item.py b/src/speechify/types/hosted_api_mount_operation_changes_item.py deleted file mode 100644 index 1c18e91..0000000 --- a/src/speechify/types/hosted_api_mount_operation_changes_item.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -HostedApiMountOperationChangesItem = typing.Union[typing.Literal["input_schema"], typing.Any] diff --git a/src/speechify/types/hosted_api_mount_summary.py b/src/speechify/types/hosted_api_mount_summary.py deleted file mode 100644 index aa1ae12..0000000 --- a/src/speechify/types/hosted_api_mount_summary.py +++ /dev/null @@ -1,23 +0,0 @@ -# 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 HostedApiMountSummary(UniversalBaseModel): - create: int - update: int - unchanged: int - skip: int - stale: int - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/speechify/types/hosted_api_mount_tool_kind.py b/src/speechify/types/hosted_api_mount_tool_kind.py deleted file mode 100644 index c7b07f5..0000000 --- a/src/speechify/types/hosted_api_mount_tool_kind.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -HostedApiMountToolKind = typing.Union[typing.Literal["openapi", "mcp"], typing.Any] diff --git a/src/speechify/types/hosted_api_resolver.py b/src/speechify/types/hosted_api_resolver.py deleted file mode 100644 index 725521a..0000000 --- a/src/speechify/types/hosted_api_resolver.py +++ /dev/null @@ -1,214 +0,0 @@ -# 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 .hosted_api_resolver_order_by import HostedApiResolverOrderBy -from .hosted_api_resolver_type import HostedApiResolverType -from .hosted_api_resolver_where_item import HostedApiResolverWhereItem -from .hosted_api_resolver_write_mode import HostedApiResolverWriteMode -from .store_aggregate_metric import StoreAggregateMetric - - -class HostedApiResolver(UniversalBaseModel): - """ - What answers a route. `type` selects the fields that apply: - `store_query` (store_id, collection, where, order_by, limit), - `store_document` (store_id, collection, document_id), - `store_aggregate` (store_id, collection, where, group_by, metrics: - a summary in one request, from the same implementation as the - collection's `aggregate` operation), - `store_write` (store_id, collection, write_mode, document_id: the - request body lands as a document, the fast path past a run for the - one thing a read resolver cannot do; POST only, never on a public - API, and on an API that names its caller the document is that - person's), - `run_latest` (trigger_id of a schedule trigger), - `run` (trigger_id of a webhook trigger, wait_seconds), - `file` (file_path of one published file; or, on a route whose path - ends in `*`, file_root and file_index for a whole published tree), - `tool` (tool_id of an `openapi` or `mcp` tool definition and the - `operation` on it, an openapi operation's id or one of the MCP - server's tools by name: the POST body is the arguments, held to their - schema, and the connector's answer after the tool's response mapping - is the response. An openapi vendor's JSON comes back as it came, or - `{"text": ...}` when it answered text; an MCP tool answers its - structured content, its text when that text is JSON, `{"text": ...}` - for plain text, or `{"content": [...]}` with every block as the server - sent it when one is not text. For an `mcp` tool the route write lists - the server's tools and pins the chosen tool's input schema on the - route as `input_schema`, so the MCP face and every call use the pin - and an upstream change reaches no consumer until the route is written - again. An operation whose effective class is `read`, on a tool whose - `approval` is null or `auto`, may be served on any API but a public - one. An operation that is not a read is served only on a route with - `allow_write: true`, on an API whose `auth_mode` names a person - (`owner`, `workspace` or `user_token`), and still only with an - `approval` of null or `auto`: a write through a route acts for the - member or end user calling, who is sent to the connector as - `Speechify-User-Identity`, a service account is refused, every write - counts against `daily_write_cap` (429 `route_write_limit_reached`) and - claims the caller's `Idempotency-Key` so a retry replays the first - answer. A route write that breaks any of this is refused with 400 - `validation_failed` on `resolver.tool_id`, `resolver.operation` or - `resolver.allow_write`, as is an MCP server that cannot be listed. - Because a definition can change after its route is written, every call - re-checks it: an operation no longer classified `read` on a route not - switched to writes, or a tool whose `approval` is no longer null or - `auto`, answers 403 `route_tool_not_readable`; a tool - deleted, moved to another project, or without the operation (an MCP - server that no longer lists the tool) answers 409 - `route_tool_unavailable`, which no - retry clears until the route or the tool is fixed, and names which - of the three happened in `error.details.reason` (`tool_deleted`, - `tool_moved`, `operation_removed`). Both refusals carry what the API's - owner changes to fix the route in `error.details.fix`. Arguments that do - not fit the schema answer 400 `validation_failed`; the definition's - `max_requests_per_minute` and the vendor's own throttle both answer 429 - `route_upstream_rate_limited` with `Retry-After`; a vendor error - answers 502 `route_upstream_error` with the vendor's status in - `error.details.upstream_status`, an MCP tool that reports an error - answers it with the tool's own message in `error.details.tool_error`, - and an unreachable vendor or a credential that no longer resolves - answers 502 `route_upstream_error` without either). - """ - - type: HostedApiResolverType - store_id: typing.Optional[str] = None - collection: typing.Optional[str] = None - document_id: typing.Optional[str] = pydantic.Field(default=None) - """ - A literal id, a `{{path.x}}` / `{{query.x}}` / `{{body.x}}` template bound from the request, or a `{{user.x}}` claim of the verified caller. On a `store_write` route it names the document a replace or merge lands on, and is refused on a create. - """ - - write_mode: typing.Optional[HostedApiResolverWriteMode] = pydantic.Field(default=None) - """ - For a `store_write` route: `create` mints an id and answers 201 - with the document; `replace` and `merge` land on `document_id` - (a merge sets the fields sent and keeps the rest) and answer 200. - Omitted, a route with a document_id merges and one without - creates. On an API that names its caller, a replace or merge of - another person's document is not found. - """ - - where: typing.Optional[typing.List[HostedApiResolverWhereItem]] = None - order_by: typing.Optional[HostedApiResolverOrderBy] = None - limit: typing.Optional[int] = pydantic.Field(default=None) - """ - Default page size; the consumer's `limit` query parameter overrides it. - """ - - group_by: typing.Optional[str] = pydantic.Field(default=None) - """ - For a `store_aggregate` route, the projected field to group by. - """ - - metrics: typing.Optional[typing.List[StoreAggregateMetric]] = pydantic.Field(default=None) - """ - For a `store_aggregate` route, the reductions to answer with; the where clauses bind from the request as on a query. - """ - - file_path: typing.Optional[str] = pydantic.Field(default=None) - """ - The path a `kept` file was published under, for a `file` route on - a path without a wildcard. The route answers that file's bytes - under the file's own media type - the only route type that does - not return JSON - so a page renders and a spreadsheet downloads. - Must be a GET. - - A literal path, or a `{{path.x}}` template that replaces the whole - value and binds one segment of the URL. A template embedded in a - longer path (`a/{{path.x}}.html`) is refused - substitution here - replaces the value, it does not interpolate into it. To serve many - files, or a nested tree, mount a route ending in `*` and use - file_root instead. - - Only a `kept`, workspace-wide file is reachable: working material - handed to a run cannot be published by pointing a route at it, and - a file uploaded for one person is never served by a route, because - a route answers whoever holds the URL. A `{{user.x}}` template may - shape the path on a `user_token` API, but the file it reaches is - still one the workspace published. A path with nothing at it - answers `404`, so an artifact can be wired before it is uploaded - and replaced without touching the route. - """ - - file_root: typing.Optional[str] = pydantic.Field(default=None) - """ - For a `file` route whose path ends in `*`: the published-path - prefix the tree lives under (`dash` serves `dash/index.html` at - `/app/index.html` on a route at `/app/*`). Empty serves every - published file under the route. A rebuild that renames the tree's - assets touches no route. Refused on a route without the wildcard. - """ - - file_index: typing.Optional[str] = pydantic.Field(default=None) - """ - For a tree route: the entry document, relative to file_root, that - a bare prefix answers and that an unmatched path with no file - extension falls back to, so a client-routed application survives - a refresh and a deep link. A missing asset with an extension stays - a 404. Omit for a plain file tree. - """ - - trigger_id: typing.Optional[str] = None - wait_seconds: typing.Optional[int] = pydantic.Field(default=None) - """ - How long a `run` route waits for the run before answering 202 (default 20; 0 answers 202 at once). - """ - - tool_id: typing.Optional[str] = pydantic.Field(default=None) - """ - For a `tool` route: the `openapi` or `mcp` tool definition whose - operation the route calls, as `POST /v1/agents/tool-definitions` - returned it. It must live in the API's project (409 - `cross_project_reference` otherwise). The route refuses a definition - of another kind, an operation whose effective class is not `read`, - and a tool whose `approval` is set to anything but `auto`, since a - route has nobody to approve a call: set it to null or `auto` first. - """ - - operation: typing.Optional[str] = pydantic.Field(default=None) - """ - For a `tool` route: the operation to call. On an `openapi` tool it - is the definition's `operations[].id` (the same value - `POST /v1/agents/tool-definitions/test-openapi-call` takes as - `operation`); on an `mcp` tool it is the server's own tool name, - as `POST /v1/agents/tool-definitions/test-mcp-connection` lists - it. The route is a POST whose JSON body is the arguments, validated - against the definition's argument schema for an openapi operation - and against `input_schema` for an MCP tool. - """ - - allow_write: typing.Optional[bool] = pydantic.Field(default=None) - """ - For a `tool` route: serve an operation that is not a read (refused - on an operation that is one). Only on - an API whose `auth_mode` is `owner`, `workspace` or `user_token`, - and only for an operation whose effective `approval` is `auto`; - the API cannot then be switched to `consumer_key` or `public` - while the route serves writes. A write acts for the person - calling, counts against `daily_write_cap`, and claims - `Idempotency-Key`. On the MCP face the tool is not read-only. - """ - - input_schema: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None) - """ - For a `tool` route on an `mcp` tool: the MCP tool's input schema - as the server listed it when the route was last written, pinned so - the MCP face lists it and every call is checked against it without - reaching the server. Set by the platform on every write that - carries a resolver; a value you send is replaced. Absent on an - openapi route, whose schema the definition holds. Write the route - again to pick up a schema the server changed. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[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/hosted_api_resolver_order_by.py b/src/speechify/types/hosted_api_resolver_order_by.py deleted file mode 100644 index e95603d..0000000 --- a/src/speechify/types/hosted_api_resolver_order_by.py +++ /dev/null @@ -1,21 +0,0 @@ -# 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 .hosted_api_resolver_order_by_direction import HostedApiResolverOrderByDirection - - -class HostedApiResolverOrderBy(UniversalBaseModel): - field: str - direction: typing.Optional[HostedApiResolverOrderByDirection] = 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/hosted_api_resolver_order_by_direction.py b/src/speechify/types/hosted_api_resolver_order_by_direction.py deleted file mode 100644 index 43d335e..0000000 --- a/src/speechify/types/hosted_api_resolver_order_by_direction.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -HostedApiResolverOrderByDirection = typing.Union[typing.Literal["asc", "desc"], typing.Any] diff --git a/src/speechify/types/hosted_api_resolver_type.py b/src/speechify/types/hosted_api_resolver_type.py deleted file mode 100644 index f50fd9f..0000000 --- a/src/speechify/types/hosted_api_resolver_type.py +++ /dev/null @@ -1,10 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -HostedApiResolverType = typing.Union[ - typing.Literal[ - "store_query", "store_document", "store_aggregate", "store_write", "run_latest", "run", "file", "tool" - ], - typing.Any, -] diff --git a/src/speechify/types/hosted_api_resolver_where_item.py b/src/speechify/types/hosted_api_resolver_where_item.py deleted file mode 100644 index 0b4880e..0000000 --- a/src/speechify/types/hosted_api_resolver_where_item.py +++ /dev/null @@ -1,22 +0,0 @@ -# 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 .hosted_api_resolver_where_item_op import HostedApiResolverWhereItemOp - - -class HostedApiResolverWhereItem(UniversalBaseModel): - field: str - op: HostedApiResolverWhereItemOp - value: typing.Any - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[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/hosted_api_resolver_where_item_op.py b/src/speechify/types/hosted_api_resolver_where_item_op.py deleted file mode 100644 index 02a1010..0000000 --- a/src/speechify/types/hosted_api_resolver_where_item_op.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -HostedApiResolverWhereItemOp = typing.Union[typing.Literal["eq", "ne", "gt", "gte", "lt", "lte", "in"], typing.Any] diff --git a/src/speechify/types/hosted_api_resolver_write_mode.py b/src/speechify/types/hosted_api_resolver_write_mode.py deleted file mode 100644 index be0f802..0000000 --- a/src/speechify/types/hosted_api_resolver_write_mode.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -HostedApiResolverWriteMode = typing.Union[typing.Literal["create", "replace", "merge"], typing.Any] diff --git a/src/speechify/types/hosted_api_route.py b/src/speechify/types/hosted_api_route.py deleted file mode 100644 index fb3f605..0000000 --- a/src/speechify/types/hosted_api_route.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 .hosted_api_resolver import HostedApiResolver -from .hosted_api_route_method import HostedApiRouteMethod - - -class HostedApiRoute(UniversalBaseModel): - id: str - api_id: str - method: HostedApiRouteMethod - path: str = pydantic.Field() - """ - Lowercase segments, one-segment `{params}`, and optionally a trailing `*` that serves a published tree (file routes only). - """ - - name: str = pydantic.Field() - """ - The route's name, 1-128 letters, digits, spaces, `.`, `_` or `-`. - On an API with `mcp_enabled` the MCP tool's name comes from it: - each run of other characters (a space included) becomes `_`, - leading and trailing `_` are dropped, and the result is cut to 64 - characters. A route with no name is listed under a name built from - its method and path, and a name two routes would share takes `_2`, - `_3` in route order; the face's `tools/list` is the authority. Pick - a verb-first name a model can choose by. - """ - - description: str = pydantic.Field() - """ - What the route does. On an API with `mcp_enabled` it is the MCP - tool description a client's model reads to choose the tool, so say - what it returns and when to call it; a `tool` route with none falls - back to the operation's summary. - """ - - resolver: HostedApiResolver - response_schema: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None) - """ - Optional JSON Schema of the response body, rendered into the OpenAPI document. - """ - - cache_ttl_seconds: int = pydantic.Field() - """ - Cache-Control max-age on GET responses, and the shared response - cache's lifetime for store and run_latest routes; 0 disables - caching, except on a public API, where a GET route with 0 is served - with the platform default of 60 seconds so an anonymous crawler - never reads storage per request. File routes are never in the - response cache; they carry the header for the edge. - """ - - enabled: bool - 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/hosted_api_route_method.py b/src/speechify/types/hosted_api_route_method.py deleted file mode 100644 index 10a23d4..0000000 --- a/src/speechify/types/hosted_api_route_method.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -HostedApiRouteMethod = typing.Union[typing.Literal["GET", "POST"], typing.Any] diff --git a/src/speechify/types/hosted_api_usage.py b/src/speechify/types/hosted_api_usage.py deleted file mode 100644 index ec69ad9..0000000 --- a/src/speechify/types/hosted_api_usage.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 .hosted_api_usage_routes_item import HostedApiUsageRoutesItem - - -class HostedApiUsage(UniversalBaseModel): - day: str = pydantic.Field() - """ - The UTC day the counters cover, `YYYY-MM-DD`. - """ - - reads: int = pydantic.Field() - """ - Reads served today across the API's store, file, run_latest and tool routes. - """ - - daily_read_cap: int - runs: int = pydantic.Field() - """ - Runs started today through the API's run routes. - """ - - daily_run_cap: int - writes: int = pydantic.Field() - """ - Documents landed today through the API's write routes. - """ - - daily_write_cap: int - routes: typing.List[HostedApiUsageRoutesItem] - counters_available: bool = pydantic.Field() - """ - False where nothing counts (no Redis); the numbers are then zero, not quiet. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[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/hosted_api_usage_routes_item.py b/src/speechify/types/hosted_api_usage_routes_item.py deleted file mode 100644 index e237a9f..0000000 --- a/src/speechify/types/hosted_api_usage_routes_item.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 HostedApiUsageRoutesItem(UniversalBaseModel): - route_id: str - reads: int - writes: int - tool_calls: typing.Optional[int] = pydantic.Field(default=None) - """ - For a `tool` route, the calls its connector was asked to answer today, whatever the outcome. - """ - - upstream_errors: typing.Optional[int] = pydantic.Field(default=None) - """ - For a `tool` route, today's calls the connector answered with an error or never answered (502 `route_upstream_error`). - """ - - upstream_throttles: typing.Optional[int] = pydantic.Field(default=None) - """ - For a `tool` route, today's calls throttled by the tool's `max_requests_per_minute` or by the connector (429 `route_upstream_rate_limited`). - """ - - upstream_latency_ms_mean: typing.Optional[int] = pydantic.Field(default=None) - """ - For a `tool` route, the mean time today's calls took, in milliseconds, connector included; null before the first call. A slow or failing connector shows here rather than as a slow API. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[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/hosted_api_user_token_secret.py b/src/speechify/types/hosted_api_user_token_secret.py deleted file mode 100644 index 84e72b8..0000000 --- a/src/speechify/types/hosted_api_user_token_secret.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 HostedApiUserTokenSecret(UniversalBaseModel): - secret: str = pydantic.Field() - """ - The plaintext signing secret, present on this response only. Sign end-user tokens with it (HS256). - """ - - secret_hint: str = pydantic.Field() - """ - The masked form every later read shows as `user_token_secret_hint`. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[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_hosted_ap_is_response.py b/src/speechify/types/list_hosted_ap_is_response.py deleted file mode 100644 index 2489467..0000000 --- a/src/speechify/types/list_hosted_ap_is_response.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .hosted_api import HostedApi -from .pagination_meta import PaginationMeta - - -class ListHostedApIsResponse(PaginationMeta): - apis: typing.List[HostedApi] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[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_hosted_api_keys_response.py b/src/speechify/types/list_hosted_api_keys_response.py deleted file mode 100644 index bcbf81f..0000000 --- a/src/speechify/types/list_hosted_api_keys_response.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .hosted_api_key import HostedApiKey -from .pagination_meta import PaginationMeta - - -class ListHostedApiKeysResponse(PaginationMeta): - keys: typing.List[HostedApiKey] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[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_hosted_api_routes_response.py b/src/speechify/types/list_hosted_api_routes_response.py deleted file mode 100644 index 91c0c6e..0000000 --- a/src/speechify/types/list_hosted_api_routes_response.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from .hosted_api_route import HostedApiRoute -from .pagination_meta import PaginationMeta - - -class ListHostedApiRoutesResponse(PaginationMeta): - routes: typing.List[HostedApiRoute] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[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/request_analytics_bucket.py b/src/speechify/types/request_analytics_bucket.py deleted file mode 100644 index 403c6cf..0000000 --- a/src/speechify/types/request_analytics_bucket.py +++ /dev/null @@ -1,74 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import datetime as dt -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class RequestAnalyticsBucket(UniversalBaseModel): - """ - One granularity bucket of the request analytics series. - """ - - time: dt.datetime = pydantic.Field() - """ - Start of the bucket. - """ - - requests: int - errors: int - server_errors: int - success_rate: float - avg_latency_ms: float - p50latency_ms: typing_extensions.Annotated[ - float, FieldMetadata(alias="p50_latency_ms"), pydantic.Field(alias="p50_latency_ms") - ] - p95latency_ms: typing_extensions.Annotated[ - float, FieldMetadata(alias="p95_latency_ms"), pydantic.Field(alias="p95_latency_ms") - ] - p99latency_ms: typing_extensions.Annotated[ - float, FieldMetadata(alias="p99_latency_ms"), pydantic.Field(alias="p99_latency_ms") - ] - ttfb_requests: int = pydantic.Field() - """ - How many of `requests` were streaming synthesis (`POST - /v1/audio/stream`) and so reported a time-to-first-byte. Every other - route leaves the `p*_ttfb_ms` fields meaningless; when this is 0, - render a gap rather than a zero. - """ - - p50ttfb_ms: typing_extensions.Annotated[ - float, - FieldMetadata(alias="p50_ttfb_ms"), - pydantic.Field( - alias="p50_ttfb_ms", description="Median time to first byte over the bucket's streaming requests." - ), - ] - p95ttfb_ms: typing_extensions.Annotated[ - float, - FieldMetadata(alias="p95_ttfb_ms"), - pydantic.Field( - alias="p95_ttfb_ms", - description="95th-percentile time to first byte over the bucket's streaming\nrequests. This is also time to first *audio*: the streaming response\nbody is raw audio, so the first byte is the first audio byte.\nScoped to streaming on purpose. `POST /v1/audio/speech` returns the\nwhole audio Base64-encoded in one JSON response, so its TTFB is its\ntotal latency (already reported as `p*_latency_ms`) and blending the\ntwo would describe neither.", - ), - ] - p99ttfb_ms: typing_extensions.Annotated[ - float, - FieldMetadata(alias="p99_ttfb_ms"), - pydantic.Field( - alias="p99_ttfb_ms", description="99th-percentile time to first byte over the bucket's streaming requests." - ), - ] - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[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/request_analytics_response.py b/src/speechify/types/request_analytics_response.py deleted file mode 100644 index ea2b98e..0000000 --- a/src/speechify/types/request_analytics_response.py +++ /dev/null @@ -1,61 +0,0 @@ -# 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 .request_analytics_bucket import RequestAnalyticsBucket -from .request_analytics_totals import RequestAnalyticsTotals -from .request_top_path import RequestTopPath - - -class RequestAnalyticsResponse(UniversalBaseModel): - """ - Aggregate request analytics over a window of the request log. - """ - - granularity: str = pydantic.Field() - """ - The time-bucket size of the series. - """ - - start: dt.datetime = pydantic.Field() - """ - Inclusive start of the resolved window. - """ - - end: dt.datetime = pydantic.Field() - """ - Exclusive end of the resolved window. - """ - - totals: RequestAnalyticsTotals - series: typing.List[RequestAnalyticsBucket] = pydantic.Field() - """ - Per-bucket time series, oldest first. - """ - - top_paths: typing.List[RequestTopPath] = pydantic.Field() - """ - The most-called route patterns in the window, busiest first. - """ - - project_filter_truncated: typing.Optional[bool] = pydantic.Field(default=None) - """ - True when a `project_id` filter's pinned key set exceeded the cap this endpoint applies: the result reflects only the project's newest keys within the cap, not its full traffic. Omitted (false) when no project filter was requested or its key set fit under the cap. - """ - - history_starts_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) - """ - Hosted API analytics only: the first request in the last 30 days the request log attributes to this API. Requests before it cannot be attributed, so a bucket before it is missing data rather than zero traffic. Absent when no such request exists, in which case no bucket is known to be complete. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[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/request_analytics_totals.py b/src/speechify/types/request_analytics_totals.py deleted file mode 100644 index 88787b9..0000000 --- a/src/speechify/types/request_analytics_totals.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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 RequestAnalyticsTotals(UniversalBaseModel): - """ - Window-wide rollups. - """ - - requests: int = pydantic.Field() - """ - Total requests in the window. - """ - - errors: int = pydantic.Field() - """ - Responses with a 4xx or 5xx status. - """ - - server_errors: int = pydantic.Field() - """ - Responses with a 5xx status. - """ - - success_rate: float = pydantic.Field() - """ - Share of non-error responses, 0..1. - """ - - sdk_requests: int = pydantic.Field() - """ - Requests in the window that carried a Speechify SDK identity header, a subset of `requests`. Zero means no SDK traffic, which is a real answer rather than missing data. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[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/request_top_path.py b/src/speechify/types/request_top_path.py deleted file mode 100644 index 30db354..0000000 --- a/src/speechify/types/request_top_path.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 RequestTopPath(UniversalBaseModel): - """ - A called route pattern and its request count in the window. - """ - - route: str = pydantic.Field() - """ - The route pattern as the request log labels it. On a hosted API's analytics, the label of the route `route_id` names, and empty for a route since deleted. - """ - - count: int - route_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Hosted API analytics only - the route the row counts (`route_...`). - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[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/store_aggregate_metric.py b/src/speechify/types/store_aggregate_metric.py deleted file mode 100644 index 824b2ae..0000000 --- a/src/speechify/types/store_aggregate_metric.py +++ /dev/null @@ -1,32 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .store_aggregate_metric_op import StoreAggregateMetricOp - - -class StoreAggregateMetric(UniversalBaseModel): - op: StoreAggregateMetricOp - field: typing.Optional[str] = pydantic.Field(default=None) - """ - The projected numeric field to reduce; `count` takes none. A document whose field is absent or not a number is left out of that metric. - """ - - as_: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="as"), - pydantic.Field(alias="as", description="The key the metric answers under; `op` or `op_field` when omitted."), - ] = 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/store_aggregate_metric_op.py b/src/speechify/types/store_aggregate_metric_op.py deleted file mode 100644 index 2d1f870..0000000 --- a/src/speechify/types/store_aggregate_metric_op.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -StoreAggregateMetricOp = typing.Union[typing.Literal["count", "sum", "avg", "min", "max"], typing.Any] From 7c756150337dbb7ba5ace58a3218ae492d2f9a01 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 17 Sep 2026 21:13:19 +0000 Subject: [PATCH 217/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 6379636..5bb2546 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "57588c00bd36a394323d9a5067be57f2be72d58e", + "originGitCommit": "1b2e6c35704155000c0a94ad67f901bc0c2ccb17", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 0e6f0ea7a5c77503eb35c05c3dc981f152d61bce Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 18 Sep 2026 09:26:30 +0000 Subject: [PATCH 218/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/get_voice.py | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 5bb2546..297acc4 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "1b2e6c35704155000c0a94ad67f901bc0c2ccb17", + "originGitCommit": "55bb04d1679638c6453ee4bef6578c59c2137e2c", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/get_voice.py b/src/speechify/types/get_voice.py index d634308..7d06970 100644 --- a/src/speechify/types/get_voice.py +++ b/src/speechify/types/get_voice.py @@ -28,6 +28,16 @@ class GetVoice(UniversalBaseModel): 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. + """ + tags: typing.Optional[typing.List[str]] = None type: GetVoiceType From 696dd309a0378d5e7f7d8adf4ab9577da93311d3 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 18 Sep 2026 17:42:48 +0000 Subject: [PATCH 219/272] SDK regeneration --- .fern/metadata.json | 2 +- poetry.lock | 344 ++++++++++++++++++++++---------------------- 2 files changed, 173 insertions(+), 173 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 297acc4..748c72a 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "55bb04d1679638c6453ee4bef6578c59c2137e2c", + "originGitCommit": "f25629ca832f59b83d0a784b7e91b4a4326ddb7f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/poetry.lock b/poetry.lock index 75784fc..25bb37e 100644 --- a/poetry.lock +++ b/poetry.lock @@ -550,184 +550,184 @@ files = [ [[package]] name = "multidict" -version = "6.8.0" +version = "6.9.0" description = "multidict implementation" optional = true python-versions = ">=3.10" groups = ["main"] markers = "extra == \"aiohttp\"" files = [ - {file = "multidict-6.8.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:c0fe437a6d2f36aac2b49517057776575b5bf359df314cca20d230a6e139c089"}, - {file = "multidict-6.8.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:f3a0a31189acf6703307397c6139ddabd734c20c5ef92649fc93e473df6615a3"}, - {file = "multidict-6.8.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c9c98d2f0126ba84cb45601eed97ff67ff767e19ae6eb3c31b02827b54d700e5"}, - {file = "multidict-6.8.0-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:7bc7003991ebd368a20d05228137a37b3d3066751f3ea1e4f7b8efe8e752f2f5"}, - {file = "multidict-6.8.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c2c5fd0fd39574ccd58e1a52565b341aff522c5c836f1b3eb7605c371e61f52c"}, - {file = "multidict-6.8.0-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b1cd4d66ce894a45482e1ac2837c31d0bd447df35065e542b60055aa2d00404b"}, - {file = "multidict-6.8.0-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7a2573d0fd34f361a4a14e54d8cda3a91ac4e55fbf0d719698024f3b09c5b147"}, - {file = "multidict-6.8.0-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:edda19aff836ec515caafc09ea53d2ab144a041f09ee9a7cefcbd3ae4e976256"}, - {file = "multidict-6.8.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e418ec99574ca24365ca96546af285c2b021a1a072478a79f0e3cc3b08837154"}, - {file = "multidict-6.8.0-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:11d71490bf4bbff1141b14b93af419ad68c56b60bea9277fcb3f94dcca4796eb"}, - {file = "multidict-6.8.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:e8e1e895e23818d343e4ae7dd95a0a556fdeaf8b471acf1c0a39b93c6f54d478"}, - {file = "multidict-6.8.0-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:15db8e6cab5f4cc9241bc56e69fdf3452cf49c10ee3c7977c742e68a275b3786"}, - {file = "multidict-6.8.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:8dc2d9c3a924ed14166e63650b2cf9f59e7821743bdd50b23802bd97ca09bde5"}, - {file = "multidict-6.8.0-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:f2fa3d3b1c933d4bcb8fd2018700d5e7235c52f2ab8c88d22286965c5c0f00f8"}, - {file = "multidict-6.8.0-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:d6dc7804c50fabd28644d4d18a4b20aad3681b3e64f3acd3182b330ca73f7a32"}, - {file = "multidict-6.8.0-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:0eca15d627e942ce186a935061f1568cc46c02e97c419c8da802df2be9f917d8"}, - {file = "multidict-6.8.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:d7e5ba0a0153e35fbce9c51df530c8b4cb0c3012b46a04ff9a048441a269c2ed"}, - {file = "multidict-6.8.0-cp310-cp310-win32.whl", hash = "sha256:b7e62b8fc7bd6cad007b9f2e0ad9c8d4854c06350d5f51e1a439dd18b510ecac"}, - {file = "multidict-6.8.0-cp310-cp310-win_amd64.whl", hash = "sha256:dc911ae6152e455b16a2a1a626aa6cd612fa01efb9d0a4ab3f5cf328b911483d"}, - {file = "multidict-6.8.0-cp310-cp310-win_arm64.whl", hash = "sha256:6300d5176647145ba1e22991c924fb29743e54b4d7b8bc85a0d3ec0e55e189cb"}, - {file = "multidict-6.8.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:1b8986d4313dcee7c932837d16a535f1840b827bac1ea7c5c4c80751d0423794"}, - {file = "multidict-6.8.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2622fe114c0bd66ca5c461859357587f5a5e35ee5ff49fc5643d1bc78dbb41c6"}, - {file = "multidict-6.8.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:26a7aafc992e78872e2c8c1f7248c0e01139cf9020a7781b0c064fa566832712"}, - {file = "multidict-6.8.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:05c2e90c5289c5f7436ba2c25812a5fbdaa1c1bc11c8d8d3bbf64f5cd7c633dd"}, - {file = "multidict-6.8.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7941ef106ca1f2c62314a13c7ed913bcf49641f3efdc12864d588e17870920ac"}, - {file = "multidict-6.8.0-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a5a7ee1217949ddd43c6b7bcf70d5c22193bb50e8c695386de5905325e93ce9f"}, - {file = "multidict-6.8.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6b62b7e0025aa48dec11e125e655d1157985a5fdcec04b1ad500101ad072b891"}, - {file = "multidict-6.8.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ea880d441be7c510106bc56064be39266d948aef94ad4955e8784690019a5d9f"}, - {file = "multidict-6.8.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ab83fdd8cf307353edba9c427c17a3a021c2522d690f5633dd9f72d28b48ccca"}, - {file = "multidict-6.8.0-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3d1f48582686a0a3b81e9b43234766cc96697df72081af3f48107bd3f34d34e5"}, - {file = "multidict-6.8.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:563661919f603374c40cf45ffcd25535c12b8954203569a2ab1cee5265871cf4"}, - {file = "multidict-6.8.0-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:2ba9933e8f35fe4a70f540b837254c4055da82dc3a9e500a8f95e61498083a15"}, - {file = "multidict-6.8.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:68d40b2bace413f3231f5729d3fcfb1837fd31c4907e241b5d43211bfd76f3c2"}, - {file = "multidict-6.8.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:a9e246f67ac038568b854ed7c5578e4c6af1f742359901a8fcc3603ff1358df6"}, - {file = "multidict-6.8.0-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:29b6e7bc4442a56cf8e0dc1cabf3fdc77cd533568d6829fc76a1effd2ce332ec"}, - {file = "multidict-6.8.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:82780eb8bf59e8fb25dd081fde6e058805045d6374a7f2f877effc826ca4434b"}, - {file = "multidict-6.8.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:2196ba6df392c3574acadd14ef87550f3611349c8618564de324b806a7a31cee"}, - {file = "multidict-6.8.0-cp311-cp311-win32.whl", hash = "sha256:b8b7aa75146266fd3e2a2437cf69ae188688c04ab8665b163d4257b46c1e0c83"}, - {file = "multidict-6.8.0-cp311-cp311-win_amd64.whl", hash = "sha256:b03ca066b47b18b205cc080dca6f76cbd159f8cdd33a02a0700164c13b37e463"}, - {file = "multidict-6.8.0-cp311-cp311-win_arm64.whl", hash = "sha256:54af1266710cb0f305127ae0b970aff8d208057f8a29cd6e1db99b0114947035"}, - {file = "multidict-6.8.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:22a310ad37672a261e55a8b5e28d0ae08cfb68abb1f46418ccd19835c3b8e836"}, - {file = "multidict-6.8.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:bb8c7da8c861391f7ae48e3593762be2dabe405109e01aec520fbe1a6d15d14b"}, - {file = "multidict-6.8.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:10456943903744ae1249728161c96bd9d2f7eb5ee17fcc2ffda2dc32e1bb36c7"}, - {file = "multidict-6.8.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:658f5a1895b804423d97b22d06fc0d0b171c7c01dcc3aa9c8faf0c0e26a249a5"}, - {file = "multidict-6.8.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:90c10b22860dbd09982d0b8993b66231a861bea2993d4a817ff35273f6ea285a"}, - {file = "multidict-6.8.0-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:088b04a66b3c1fce6fe4d771ec184a0426262d0b86709c908477b4ac7965df40"}, - {file = "multidict-6.8.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9caef53b20a105c0d66518a34be2f71b2783de8d091767575ef86f6ea422236d"}, - {file = "multidict-6.8.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a5e1583c14775580da05641240ce0d93f36ce3ddef3d5083a827468b0bcfe874"}, - {file = "multidict-6.8.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:003a3bddb32915c3f67096ea41d24e53edf710edb65a1f5d0c70ab40b0e4d20b"}, - {file = "multidict-6.8.0-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:35977263d9bf506dbc65349f63b3b8c91606d4abc110990945e3b94bc671319c"}, - {file = "multidict-6.8.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e9dc7b4ff6ef184504b49ef9a4113d49a646653b2ce89f5f48c1f57cdf6ba081"}, - {file = "multidict-6.8.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:887f9a975996032c686719eb7b3e1e7942fab5079c2b778bbd9afe9a9d78244f"}, - {file = "multidict-6.8.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:f3071e6515cc63714d014da8f738ae9fa3997c476203f3cd46de380c2376ed7b"}, - {file = "multidict-6.8.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:c5f3a2af441670d80ce5fdf13b6c1b421fc1fc7fc5182d58ac7486738bb2b742"}, - {file = "multidict-6.8.0-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:31e8901637e20ccb3cf8f8848b5d0f7a00462bf5b34f7cf3dcbb2753b18e8b39"}, - {file = "multidict-6.8.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:13967dca8b2f33230a1427b52438326bb1c9101a1df22a3309ed3fcbbb3c96f0"}, - {file = "multidict-6.8.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ad474c11d851b6fc97cb625e4822bc0cbd567fc07dc2602e28faec5a36b42bbb"}, - {file = "multidict-6.8.0-cp312-cp312-win32.whl", hash = "sha256:7bb0dad75068fee80fcb60f88569722c199d8656a16706702dc6e3b786819c90"}, - {file = "multidict-6.8.0-cp312-cp312-win_amd64.whl", hash = "sha256:7d26dc8f070c0ec5579e987fa615ffd6883086106eefdff9e10d160fc5630630"}, - {file = "multidict-6.8.0-cp312-cp312-win_arm64.whl", hash = "sha256:e6ec7d37841609a691b96a10b4fde386c7cd93ebbb939f59c9f23325ee788395"}, - {file = "multidict-6.8.0-cp313-cp313-android_24_x86_64.whl", hash = "sha256:ec0a4d066356054d569a66e0a94691a2058b680be5e710298f61db11a3c4609f"}, - {file = "multidict-6.8.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:714597cb5d5e15a8a449d2ae23c45b486a9e8fa33c462c7a33d7f35b65d92943"}, - {file = "multidict-6.8.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:e0db3a4d1e264e225037a6023888972c25206a96e016021a5bea41c9a939f2a9"}, - {file = "multidict-6.8.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:27747162712e85c84598d364425dbf1714ff335bdb6ba3171c4e5081196e8916"}, - {file = "multidict-6.8.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:847d6082ae694dc95e548acb201bc100e1cfa96513bc71fdcb86f709dad6c435"}, - {file = "multidict-6.8.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:88a6df88567680504ae28bfa7a1f2f64243d91e79a40b2c92ef42efc531e23da"}, - {file = "multidict-6.8.0-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:560b211fc3bd4a1e1c6de44f6d38113bf5b410dfc89a4c0d2a3c0edbf1a0dfb8"}, - {file = "multidict-6.8.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:202436df907c15adbb94360296c425ea53cf8968a5d2cff9b5b9790ae1972b33"}, - {file = "multidict-6.8.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c46a08bf070d6849fed483e9d9833f9d06aecb8382ed985be0b38508b3ae958e"}, - {file = "multidict-6.8.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2cd560498ae8e1bcc955643c1d78eb8e338226d07a983c656ea8c4443d3eec0f"}, - {file = "multidict-6.8.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:758233648ac47b07c575224c4eadd73c8929c3b4c31e2afcfea935fde1cda735"}, - {file = "multidict-6.8.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:122adc7c46ac1e31ecfc7f81b2530533dccafdba70f5d741649f87e336c63384"}, - {file = "multidict-6.8.0-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8125e60f3c70e323ac07dd8b3635f7b3bbc5c3a9ac04ae5988f668ff7ae28a18"}, - {file = "multidict-6.8.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:83ff054b04915be5c15680da6c6012474a2cc2bf534129a0e8c6a99f17ba7238"}, - {file = "multidict-6.8.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:930c6058047410e3edff445f5a6e4457f2e089042dede00e2d18ce06f3ceae2e"}, - {file = "multidict-6.8.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:13e26f59f0eecfc5f67c663ad550ffdaf62c0f657547cde387f6c86af1c9449e"}, - {file = "multidict-6.8.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:fd789a294d8e098528be29b2669b83005ce569339f8cef167fc0274c3115c34c"}, - {file = "multidict-6.8.0-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:3126f2a96704505aa4e92a72d6e8a5d7f29d40a987ced8bf69e29d71dfc71fbc"}, - {file = "multidict-6.8.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:23c9ee89967b6a9b4048acb3b93b660ed714ce9c8bf3bbe652959bc120dc02dc"}, - {file = "multidict-6.8.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:7a62e302fc8cd6aa8972207e7e951d1fdee7c1dda18568305041d19f0e2c00f5"}, - {file = "multidict-6.8.0-cp313-cp313-win32.whl", hash = "sha256:093167d22a8c95af30f597b8a5686f20a14512989942d4be804d119899caca20"}, - {file = "multidict-6.8.0-cp313-cp313-win_amd64.whl", hash = "sha256:f25b61a708bd276e8cbb6afcbbf1b8e793a3be70ba0a842d0b8692020f83b706"}, - {file = "multidict-6.8.0-cp313-cp313-win_arm64.whl", hash = "sha256:bb36381e1f9f9d06eba2f10bdd438e5d20c07d5b55e1a3eee30b9f44cbf52316"}, - {file = "multidict-6.8.0-cp314-cp314-android_24_x86_64.whl", hash = "sha256:f8b09b25e0f4dc2ea9e2adbb1cc3ba11a94d6fa3dd978ae659c8743052e1afbc"}, - {file = "multidict-6.8.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:1f57c414be82490bc0e0305fdb834186229b2d9b6a35fa0afd1eb1a772d125ab"}, - {file = "multidict-6.8.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:00be37bde741bf60871082cd347a093218c44886e99231b7516671c70f2c280d"}, - {file = "multidict-6.8.0-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:e37b744849fb631bb52e3dadde35ffeee365a6c41cf71257b5b7acc9cd83fd38"}, - {file = "multidict-6.8.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:c2b2a96cf1dd99fe7867be4c013314225f4d5786e6685906e29932d42aca6f11"}, - {file = "multidict-6.8.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:bea7df027015856ba5d0a88e3b4777ff8cb5c66b58fc108050fe79d4dd9d4d2d"}, - {file = "multidict-6.8.0-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:d3da668e903c934ed0b587ecacfed6901f6ae6384a6e975887592b61845e78bc"}, - {file = "multidict-6.8.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:64eaeda36ee8d88f9e8616a587a8c66a663283cf6e0dcf013c1ddd8c758e4aef"}, - {file = "multidict-6.8.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ac746cb365bac1c462da9e3e6ab8904a8efe2217a56b0b2e3d9480f41d2b2602"}, - {file = "multidict-6.8.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:18f0e06360c3e451a3ab800355773c8d125a758238d780c800b0ee5e90ee903c"}, - {file = "multidict-6.8.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:69708fecaa88bcb2341397b49fc95057a835b02a3670c551b37f95dd79e64e3a"}, - {file = "multidict-6.8.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9606f583e7acaf61e7b3f56074e14037b9af7cb194590edfc0114b3ae5931ff7"}, - {file = "multidict-6.8.0-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1f66fe6a021173d0d47968491791966b9f3e6d61115f2491744aa0c07a6e67af"}, - {file = "multidict-6.8.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:be007d1aee2cbd530347dcafedb400891a3b5f1bd7135f95cf5d5b330b5219ee"}, - {file = "multidict-6.8.0-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:8457aff3c12a89a8e1c4674de5c777857fbc429f40fe117a3d29538547cbc364"}, - {file = "multidict-6.8.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:95c27b4f3f04320fc44e338573f40c5c956b504a7fcf081a157fd0b02579311c"}, - {file = "multidict-6.8.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:d244cf6b52b5ba1c34c3832f4652a668ebb36d95949b96eed9a1c54d916a90dd"}, - {file = "multidict-6.8.0-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:5bbbb696c8024475b1877d14ce20d5f1cc05b8f6d786cea0fe3aa7fedc02e891"}, - {file = "multidict-6.8.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:cbd86f9787c5e2f5fd27d8b21458222f107347c6731c4e93dde68f554b466a2d"}, - {file = "multidict-6.8.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:2f8a4b0b4d639d525928c7f30de527bfdf9ead6e44a5e8cb9c50aced5e4590cb"}, - {file = "multidict-6.8.0-cp314-cp314-win32.whl", hash = "sha256:8890c89d662560e51c55ac1304d6f919b23942abe9ae1127cb1de9aa6132fa52"}, - {file = "multidict-6.8.0-cp314-cp314-win_amd64.whl", hash = "sha256:45cc39ba50fb0754a4359b90f8229ae08598fe2266abe3521b4e5a9ba916534a"}, - {file = "multidict-6.8.0-cp314-cp314-win_arm64.whl", hash = "sha256:d0264f8d5cb0a803f650a6a8572dfa0cd1e099a2234c588dc8fb220b415b865f"}, - {file = "multidict-6.8.0-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:1969971900b0871530f9b62280dcc2d75688e74d2a69262bc01faf2b96c78f04"}, - {file = "multidict-6.8.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:8180b635290a75af8478f1b3e9810135381ae24833293fe77b85c1c21ff842ab"}, - {file = "multidict-6.8.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:4261863fc8b5ab1b815ede94e592e94c6af5b04616014929057e61859e7382a9"}, - {file = "multidict-6.8.0-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:0b143d53590e89f43153d81d505a8448d4d57354354385aef8a51d67ffefa27e"}, - {file = "multidict-6.8.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:da1c112c5784ccd9d32cd90be6739fee32644e874eff6ae8f0497cba3e352e58"}, - {file = "multidict-6.8.0-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:f7eefd0233a7c33ca980a5cfef26f1e9b5e2137839e752a99963696729f12d91"}, - {file = "multidict-6.8.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:348bb85e2038b40c007383616d73f734869063772372519549ebd7da1723d1a4"}, - {file = "multidict-6.8.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:095f62ea4e7a3be2f6c567ab695ce10e950f2adb905c1bec82281593e0b2d2ad"}, - {file = "multidict-6.8.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:be569fff1d85cd29391c431c5641c8772acb75bbdc61e60a8e82fceb9023d385"}, - {file = "multidict-6.8.0-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3533a03e4e789baf6a286e7b0b1b6da3f3d7c3eab569686ee29ee1d8b52e2cb4"}, - {file = "multidict-6.8.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:1bdb9b8fba5a9aef673ec90db3f55b1ce743f2fbdea4d37dc04d14ccdfc153ff"}, - {file = "multidict-6.8.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:f8d7b66c9e09c0bb0add2b5895e646b62a0849e71155066f215523de6b95cbe6"}, - {file = "multidict-6.8.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:563d6500ca80dac7bba6f48a78e0ffd87e21a7d4d24642c6503a2ddccd70c110"}, - {file = "multidict-6.8.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:346ac52e56bcda320c0dcdfdd081947ed7cada33afea4e2284bef7b0733bff9b"}, - {file = "multidict-6.8.0-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:4ee953a5ebaeed38dc21cc032ed17a9d9782802e00042200497ab4b01b0bf7c0"}, - {file = "multidict-6.8.0-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:2f79cc3e8039a8cf5c77e0811b0807953fd52d0863b9b76970b20d696dc64a78"}, - {file = "multidict-6.8.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:43a4b56555bbcf8af161e7c7682bd93eec10f068c95844511864c018c8e5e13b"}, - {file = "multidict-6.8.0-cp314-cp314t-win32.whl", hash = "sha256:48ea524a25a1cd5972cf293bc95713918cba0bcd6fa9b992d906c857c546abe2"}, - {file = "multidict-6.8.0-cp314-cp314t-win_amd64.whl", hash = "sha256:d0be2b832435001bc623ca7f1499ca1a853d4f082fb61221a80ce71132f50b26"}, - {file = "multidict-6.8.0-cp314-cp314t-win_arm64.whl", hash = "sha256:62b8e291a4f7edbf7cde7a43d831d893ba443a1b627498b53581943b0e348feb"}, - {file = "multidict-6.8.0-cp315-cp315-android_24_x86_64.whl", hash = "sha256:e192018b732f7b168e6604cbdf40fa8e05c996693b9eb445a0d8a73f4b77c5d3"}, - {file = "multidict-6.8.0-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:b25426f9f6ed402835617c8f23609a47045f91ecff365eb6734817e039a8ed25"}, - {file = "multidict-6.8.0-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:fa6c2880709c84457de104385b704fc28860f27e442ad13966fc4af8e714fe9c"}, - {file = "multidict-6.8.0-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:eabb03dc3e4ed6333ecd1cc9826ec80e7a98b5506deeb832d7260c8e44166d23"}, - {file = "multidict-6.8.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:59e539c4eb4d3a53b0e630a6ba2b2f2824732b5e73f90e30a280f12fde157b15"}, - {file = "multidict-6.8.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:835d5a90b11d1f5f8200ff3cc8316bded76eebebc92436398947a27657e645e7"}, - {file = "multidict-6.8.0-cp315-cp315-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:d2d236b8a44ae91536a12ebcb996bdb31cf27425f36b4d05c87f2ba2716050ba"}, - {file = "multidict-6.8.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bb9a60b7faa5d37c426fa91cf4d6738182a1f2755b9fab7c9c64cd466c4ce51e"}, - {file = "multidict-6.8.0-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0ef606c15cac6c90279acf34120784b6f36662cbf382defd3955cd8f1115336b"}, - {file = "multidict-6.8.0-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:68186a2d4051c8ffd17be33553bea2ec9bbc8ef860fe2980a221d96126296f31"}, - {file = "multidict-6.8.0-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2cc66abb85e2108c9ff8a1c0d20fa260bf690bbb33caef4ff3ecb2c2cbdfff5d"}, - {file = "multidict-6.8.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:69b3e519a132bb943b0daae15fc8c2168706b17f826481d32a32a5e784b129e3"}, - {file = "multidict-6.8.0-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e41226ecf607f062fe34a2f4cf64ad3a89e3a0180dc800b463b6b14c06dd10dc"}, - {file = "multidict-6.8.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:610c7637bc36b90f39e6c66f710f93d57018f83d53e1e187caaa218c6892b95f"}, - {file = "multidict-6.8.0-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:65c85c79f5a2c04fbbc18f006c014674dc5fdf270cb978d8862c82c6f694e60c"}, - {file = "multidict-6.8.0-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:628ff11e6720f90acd0c305dfa3339f04a783a20de8cda6ac333ba46447261e8"}, - {file = "multidict-6.8.0-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:0935971bffd0b479fc90c4811ca787703e93fcb6afea939a375dfc80285ab368"}, - {file = "multidict-6.8.0-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:9442b14eec262a1f74369bbd07e75bc5155105164649a4b9fbc1ebc7b8fb0b14"}, - {file = "multidict-6.8.0-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:397599503b718f0137f26d3f6532d6955069cd2e5917c47ef581495bc2529ff8"}, - {file = "multidict-6.8.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:9e37024b41d7a7e7e9cce14b248d54707c21c2a2ea30a47b71bdcefcafec00f2"}, - {file = "multidict-6.8.0-cp315-cp315-win32.whl", hash = "sha256:071da134651b04a8507dfb331ac0988f376337c2aea59486bf20989fb5b5a64e"}, - {file = "multidict-6.8.0-cp315-cp315-win_amd64.whl", hash = "sha256:3bafff8598f0528017ddc74194e5451d5c22d046c98935f8f86247b0f286e4f8"}, - {file = "multidict-6.8.0-cp315-cp315-win_arm64.whl", hash = "sha256:e886ef8c9879105fe4fc99417447b3a5f35d1131412ce839470bd2089fe2043f"}, - {file = "multidict-6.8.0-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:883284137e25318ed9735b742ae46341a864888fae28e8b6314c4f84da080f08"}, - {file = "multidict-6.8.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:ca52b9ec80851366197577154c862c4c4c7036ca76ae94cef5cb59c5cfeab944"}, - {file = "multidict-6.8.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:91fa75d0a693832106d98f66c849f034f21c828d14437f1fb97d3784aab89e84"}, - {file = "multidict-6.8.0-cp315-cp315t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:307c1acd812fe897e7fbe10c6758822e8c04be4e7c60a9f54901cdf8b5ab8bc3"}, - {file = "multidict-6.8.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5caf684986a2490628f059a99dd107b566a2d34cf947f8eb8387e0500a1f90c5"}, - {file = "multidict-6.8.0-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:77745725125d01fd613b6db043362aa7c6bfbfdb23d45dbfc3d92bf58160af62"}, - {file = "multidict-6.8.0-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8daafaa0b2eb43f76898ced78b1e0fb91b38c4fa50da516c18067f2a2d578c20"}, - {file = "multidict-6.8.0-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c68e0c0649d17c2d0339e3674e86a4aeba4a7e6b21c1e394cf947a95433b31d0"}, - {file = "multidict-6.8.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d8a5ac357ac283490a8d1899b0383355fd1f8634b14ba0d59e4c0dd97db85556"}, - {file = "multidict-6.8.0-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:46029e6e27a3ec0dc55b53f58df82d10f04c5e111f78248279b530bedad2c30a"}, - {file = "multidict-6.8.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:8d1046b5427dcafe6e8a0e07527dd74f1ee694006160162f53f3a17f15aad3b4"}, - {file = "multidict-6.8.0-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:f1f4a220db6ed7c8fd16b6d644ffd1f082651693204daf3275e049fadc849e39"}, - {file = "multidict-6.8.0-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:029897732a9c798737457e382bf84e8c64237eff224a90aea2639f4413c45e4e"}, - {file = "multidict-6.8.0-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:29be9fd289e9ab8f480996ea2f686e1654b80242033843cb11691688329423f1"}, - {file = "multidict-6.8.0-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:29631224698de1e42abc8fa7658d830e0aed0029785144b5832b695da5adef2f"}, - {file = "multidict-6.8.0-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:962f18c59a000f30b084ea2e6b8001521bb315efd4e5f10acf9fb36f366b7882"}, - {file = "multidict-6.8.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:c60e50bc5b07faac92fd3a20fa21cc8cf3e3f7204d2867b206c73293ebc19101"}, - {file = "multidict-6.8.0-cp315-cp315t-win32.whl", hash = "sha256:fc5460940f50dff00731b4132366840ba9685286ea88ea104b661899084f3fea"}, - {file = "multidict-6.8.0-cp315-cp315t-win_amd64.whl", hash = "sha256:b367c342327717d644db4c0ddb37ceb655c84822215ea0773a3a36911b74b71d"}, - {file = "multidict-6.8.0-cp315-cp315t-win_arm64.whl", hash = "sha256:0c1c4debad7337627b86837abdf0237ca3cb3d7e17de7eab0177c263878546d4"}, - {file = "multidict-6.8.0-py3-none-any.whl", hash = "sha256:75daa15ca16d6285eb2e104b2f05ee6f8d9836c68da3ce5c85f615a0450eed0e"}, - {file = "multidict-6.8.0.tar.gz", hash = "sha256:5cd4637ce76312ba1e05eb9c5193fec231f64fee0944e135fa1e951242355b37"}, + {file = "multidict-6.9.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:63c9da87fa6d4284e57d2a6e549dfe8f2938ab578fddab3f8ed9742812c9d0f3"}, + {file = "multidict-6.9.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3663ce6cb19c5e3123c9aad5907804a42d384f8cd4b67e59291efc9480f8da9a"}, + {file = "multidict-6.9.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:f7f340a4a6ad4dacb0f866143452d794ea32a0d9ddf79d93ecb4c3ac5515d0d4"}, + {file = "multidict-6.9.0-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:bf44632149302f7fdcf5baecc277d816ab77a47a268f2392dc5d2d01c56770cf"}, + {file = "multidict-6.9.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:095b091158c89a03ad1237b4880f857d27628f93c23da1616ee5640011439c53"}, + {file = "multidict-6.9.0-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c3958fa87a161a6b9c6661606784abdd8f1afa21a0d6e99d1b99512e70e6b4f1"}, + {file = "multidict-6.9.0-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9f99e0eec05aca200b66735a38f8de5c9be03a6afd62ba7f28860203d936a03f"}, + {file = "multidict-6.9.0-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a4d98efa7b004b67cb8cca26b218012efa50c7103cf4ae54898f2bbf89a3c62f"}, + {file = "multidict-6.9.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a23926c06835ad71e6bc755ebc07ad34655847de63c01a5d06b6501997712c4c"}, + {file = "multidict-6.9.0-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:06723cd13ace09a0ce1ed010fc9e57cd762e57ee23691d6cdb13b7fcf1a35468"}, + {file = "multidict-6.9.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:27dee31d6f3a0d2be018b71721adbe24aed9b08bdc69d133c88eead07beee600"}, + {file = "multidict-6.9.0-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:90d341b2c64eacef24fc0a35aaabc5227834ce93bb1da416d61601663df29456"}, + {file = "multidict-6.9.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:986de92227e44b257fef664a69613a4346a090553c186d0ae3bf15ceab447f5e"}, + {file = "multidict-6.9.0-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:c8da6d6fc78f971ebb9e29563c891a429374861afda55e4692a7962e3822637d"}, + {file = "multidict-6.9.0-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:8903ce696f0aa9dc301c5621fa0f0e24e985d4e6cc247cd63bc9abcd5a081628"}, + {file = "multidict-6.9.0-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:bf345dacf96fd9c698ad30c620fbdbe6e1edadf83944203ce5b5688f52e3d141"}, + {file = "multidict-6.9.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:e63e05228c1f1c1bef09c08abd2f97b6fe597c9ca14a1c94bec4e76b4664046c"}, + {file = "multidict-6.9.0-cp310-cp310-win32.whl", hash = "sha256:f25229fddbd6bb3d47f1141c319bead19fa3c9e62790c6d51201564fde05fc2a"}, + {file = "multidict-6.9.0-cp310-cp310-win_amd64.whl", hash = "sha256:05f197459db34dee24ae7e3560affa5c6f93989805899c9bba13358b5116a12e"}, + {file = "multidict-6.9.0-cp310-cp310-win_arm64.whl", hash = "sha256:d4464437dbbd7a5a71a5e86f2a9ec92ccbb8d96706f5a173ca985175f23adaf9"}, + {file = "multidict-6.9.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:7e46237ef18c8ee183dde740f0174d6ecf9c26d362b506b5d23fb57bc3634bc0"}, + {file = "multidict-6.9.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e33fabca25633cf0e4f9dd4495733d09b7f0628fc9424c5b5e58da644fd4ab94"}, + {file = "multidict-6.9.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:e82873b56ed37b328501fb063962299ea6f7fc1caf1a5c47966028824bde0807"}, + {file = "multidict-6.9.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:2e2169fdb886288fc6bf9d8e48abca9487f8b3ace1f5ab269b074864d212351e"}, + {file = "multidict-6.9.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:eefec2a6b0381846ce54d88f30de4b3a5c15ff0bddc5264cccba85b710a8785d"}, + {file = "multidict-6.9.0-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c63013a210a09d4a8f30814b785450f1d0a2aaef8230c1e068e83f3afceb6030"}, + {file = "multidict-6.9.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4fd82f81dd0676059f9bc3a418a79f27feab19486100a255bf8488cccb3e60d3"}, + {file = "multidict-6.9.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:deea26b6979ce46f2fb3b2db9b651e12eb7f94c26a1ee457b79f66ad36a64fd1"}, + {file = "multidict-6.9.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:58a4aee7188676c8317e3131bd844faf70e427979e1f20b8598c61f6cbd8b073"}, + {file = "multidict-6.9.0-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:eee11705013394ebeeb383c92beb0fc9a3c449ac3382a6ee3aa23b38c6b06c3a"}, + {file = "multidict-6.9.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:51e77d089f82ed2e288d3a1cbf6cb7ffa927c8055d8ef61d57b27f4d8da557b6"}, + {file = "multidict-6.9.0-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:79640bb8746b703971fb16569e7bfa82d90548137cf4094769aa45cbafda9d9a"}, + {file = "multidict-6.9.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:092214366f729803010a5c260f4a4f44d223c688641dfc27da851588ac762ffe"}, + {file = "multidict-6.9.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:da469a672bf3d343eb6757d53ffbac36f1a29b93a9fe76558b5d0fd7a7efa599"}, + {file = "multidict-6.9.0-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:4216a8b4214a1ee4511c551c59d51534637394e9433765fbd8face86db43c532"}, + {file = "multidict-6.9.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:f05f5b3171e23801e72fd818de236be9f239b10ba699f23e43bb9596651f8b34"}, + {file = "multidict-6.9.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:0c69b098c85685ba39efef1d8a9711243df8a4c4b051a35d3cce7f323381f8bb"}, + {file = "multidict-6.9.0-cp311-cp311-win32.whl", hash = "sha256:855be03f39b97e352d54eaa7b14ba2a46846cf14719ddb689cdaaee811462440"}, + {file = "multidict-6.9.0-cp311-cp311-win_amd64.whl", hash = "sha256:a8040dde3fe35ead6b04adf3cd3fdd3bfc7c941505775d230b4501d18227c77b"}, + {file = "multidict-6.9.0-cp311-cp311-win_arm64.whl", hash = "sha256:70b3097b838d9fc336f426c7aa7d45b7881ee9b06a10f4bcffd0dcda0cbd44e5"}, + {file = "multidict-6.9.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:fdd484b84d3394e805689c56be3ab1f877ae7ff0eb9ff90a3ee7a755cbebab4f"}, + {file = "multidict-6.9.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:f93c9058a0eceac0df2ce9d4c8823b84786ee598194753c2ca0c100224405e47"}, + {file = "multidict-6.9.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c7ab60b91e11b25e7682c5cd8763fdd17929ea83f234ba441091f1492e631ea3"}, + {file = "multidict-6.9.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:640113258c5925a9eed2c12523410b25565ac5df2fa6735fbae88fb09bcdd212"}, + {file = "multidict-6.9.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2ea72901860ccbe94517421681c60b13533ce03ba2f7bd96293c3a4d16ac4ccb"}, + {file = "multidict-6.9.0-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:408fac672931f2458be3bc8c89d9facd16dac2aad17c7cee2ca1693eee99f07e"}, + {file = "multidict-6.9.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:67bed23e9803945b0760650ec3e903af772c49abe869f3bc03c66b2e7649d5ef"}, + {file = "multidict-6.9.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4bb769ccc72e15d7d441e1a08f169d418376be77cdc387e813129c26b357fe50"}, + {file = "multidict-6.9.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6a5111a2bd824c821a3dd09da29680391b0caaa18fea7761358f4001e6898d1c"}, + {file = "multidict-6.9.0-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8e991677c4bdc5d9f2e71c74717a4e32cfe98930ca05becdf722b5eae1329d6a"}, + {file = "multidict-6.9.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:bb69b724c345420ba49187a17a894f146099f5b2e501df42ddb4452ac8be37fa"}, + {file = "multidict-6.9.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:cff3cff5a725bdb8359962de8d7429aea592d7693dbd197eeabbdfab9b6300e9"}, + {file = "multidict-6.9.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:fca5b74b5909c29041f857c40d51d9273636fb4221cf020e4c452deb1c448a40"}, + {file = "multidict-6.9.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:11e32ccf23cdbfcf8299a6a825930a858ec9a6aa05d6752d0f90f2bdf19489e1"}, + {file = "multidict-6.9.0-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:3ec1e387b1f8a85ae5b94aa8c4e0576912ffa4d31bd0578f24c950d4f05ee476"}, + {file = "multidict-6.9.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:e4826f6b56456fb1e98111d7bc20cbdc7fa0a41b1f9ad80ff2dd3f2f5b226fe1"}, + {file = "multidict-6.9.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:e71a072c52c78b7f97cd4611df6cef10977e4f2367cd0654a7626192f931adde"}, + {file = "multidict-6.9.0-cp312-cp312-win32.whl", hash = "sha256:95d339c3b75b4a50c665bdcf8417428cd71c3e5cd48e194cb1d336fcb856beac"}, + {file = "multidict-6.9.0-cp312-cp312-win_amd64.whl", hash = "sha256:8f06c4da5315a6f709b13408c3e13f3b475f8c559ec7608c3c67062512871235"}, + {file = "multidict-6.9.0-cp312-cp312-win_arm64.whl", hash = "sha256:0db5bf96ec2ce45a8bc7fbbe8a486089969bb2791a66b6789ee3aed0d5dd562e"}, + {file = "multidict-6.9.0-cp313-cp313-android_24_x86_64.whl", hash = "sha256:662315f8621b3559268813b11134c1f9633edd4ab5f7b713688a243c13f4026d"}, + {file = "multidict-6.9.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:4bef8cb5edea9c9daeb8396a75eeb97f912c3fb3fa408fe659edfecf91e47424"}, + {file = "multidict-6.9.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:75f7fc21ffce9a792cb919f0e0b0b52117bd672f2a55d1929d573b6fc437f374"}, + {file = "multidict-6.9.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:8bb6be697065cbf31051465f9939d65624573d2219c3da8316db9e7cf5e0f5a7"}, + {file = "multidict-6.9.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:67bcff396d2ad62197c95488a716a88462792b384b5ea6e44bf7c1070eddb8fc"}, + {file = "multidict-6.9.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:beda95a6bd0a2e2265b941b90ff72543afbeaebb6a450e3a6a010d10d4a2ffca"}, + {file = "multidict-6.9.0-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:3e78870909e9f9e3d672ba99f1eb75130d7e01c42e642e6a70f434df32ca0ee1"}, + {file = "multidict-6.9.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:91092d597fcf0940cd6a59e64ba7156ee22d6899993fd7c5b1897fda71482f8f"}, + {file = "multidict-6.9.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:4be612f23990a261060ccd8f15e89dad1f9b7bb0c1021c5c3987f5fc57959391"}, + {file = "multidict-6.9.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7aaa14f0b9ffa2780c5d3b21da0e9b58778ed47af3369df72e5fd6dc10ff8041"}, + {file = "multidict-6.9.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:97555ad30ad20a8eb90fa86522088eebbbd68aba03e56d53f4850b3535c65e61"}, + {file = "multidict-6.9.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c51fd8d59e72e45c64907bf7f81fbd94f4c8dcd1c8b2f23f4c2d7ede788fcfc3"}, + {file = "multidict-6.9.0-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:22067e88ff266e6a5dc59114529332692a01cc04b10dbdc2c14ab91217dee819"}, + {file = "multidict-6.9.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:e231de8ce43d4fd10bec4f67f71238ed88a974de30a9f20be7a4ab16c970a988"}, + {file = "multidict-6.9.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:b33e499a7b1f722547d57b4865ed68c03161643b9afe49fe097a0832078d183d"}, + {file = "multidict-6.9.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:1eb7939025bd9289d9dfe3a399102b1642f4fbb105a6af82f284052ee89e97a9"}, + {file = "multidict-6.9.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:51a08dceed4b42ef25755ee2cbf50df325e90e6b415d00955ffdea2c394ad6c0"}, + {file = "multidict-6.9.0-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:cb847cb4002e725f88ffe29883da8290fd0754fa0461ed8988735e20964a9f65"}, + {file = "multidict-6.9.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:516fa4817cd070088f616a901380db56189f86daee9da79aada3c9b653f49ed7"}, + {file = "multidict-6.9.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:254e53be2ec70518bb82dfa9b0c7166baaf2bd0e918bd17b65caaf489d5a5522"}, + {file = "multidict-6.9.0-cp313-cp313-win32.whl", hash = "sha256:9869105ab61db13004f9ed610cd29ce4237b2c609f5f7b8bb8f2339fb9dad17d"}, + {file = "multidict-6.9.0-cp313-cp313-win_amd64.whl", hash = "sha256:85ed0f3c3b01174aea5a8a8fcd456f64c2e9719c0f42c612c2694ecd35974a65"}, + {file = "multidict-6.9.0-cp313-cp313-win_arm64.whl", hash = "sha256:1126782e3c3b1a7ccd990be3d3221709348e4b07d6ecf8b50965a93ae2624145"}, + {file = "multidict-6.9.0-cp314-cp314-android_24_x86_64.whl", hash = "sha256:1b34b10b615db5a3ed424b174a362a3cdf06220bd892d03d151a619bb157c4e9"}, + {file = "multidict-6.9.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:f7f0b996a20776018a253061a781ba983e7b944e17a0748822026048b8b0bb07"}, + {file = "multidict-6.9.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:b612842f7f286c42abc5dcbda1db50e9dbed39720dd15feb07dbc9974bfeaa7c"}, + {file = "multidict-6.9.0-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:71ee2b3198323cbff7a846538f01599f309dddddba79b5bf5a3dca2e49460ef6"}, + {file = "multidict-6.9.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:d0dc1f9c7dc07d86e5a4ed24f3a55b945106f3e7c70a984ff8dd9267270414ed"}, + {file = "multidict-6.9.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:a26c8672d70d2c12c2f1c4df91fe92422e905efaf1d639bd4d7192868a21e711"}, + {file = "multidict-6.9.0-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:186cc28558e3d6921ba797e433cd58ce64eb8b2f553e93f75dccbb9a604b7457"}, + {file = "multidict-6.9.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ebc02af6ac170631774219c26fd63b4404d1e836a1aa92b738a3127eaa2aebad"}, + {file = "multidict-6.9.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:62c4ffba9f81a2b17cf081bfe4e6b7eaf17193dc17d5870c01b2763e48efed24"}, + {file = "multidict-6.9.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:3a7e2aaa0e9a6413b54cd90fa0fe5944487872a7130a1c07347627974e677a34"}, + {file = "multidict-6.9.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:26e34dbbd6c3438ee19e0db1f5b846a7ca957085d193ec312b488924c3941a0d"}, + {file = "multidict-6.9.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c5d811799f821c06883404a171faa880660ef04c2687fc32fdaef22fb645fe80"}, + {file = "multidict-6.9.0-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:89fde003cec43783193360c27de2fbb0c8ea2db1cfebc193c3fc657c436f9d38"}, + {file = "multidict-6.9.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:9bfa4ba6d97ae6d9c1f5336c2abad5690bce1802a040f9aa5fa39cb0b3099c02"}, + {file = "multidict-6.9.0-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:a776fbaf700549943b647f21479d69191c238c84fb55d5a48eec1b4cf6cf6e00"}, + {file = "multidict-6.9.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:ed04614c47379bcdfa01d3e165149518017ea034cd5f48e203c287cc3d2ebd4b"}, + {file = "multidict-6.9.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:9c65d9912983991f368bd01f993191b1593c90ecde6be990d73add46084d235f"}, + {file = "multidict-6.9.0-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:4b89b102be78ed286123e75a30efda519e1ef6b9d4a4d01a08213f5e01a18e45"}, + {file = "multidict-6.9.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:e3ed6563ea143214c63bb4452ae5e8787a39226b22101c179fa4d2eda5972267"}, + {file = "multidict-6.9.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:448c05bd13f8675b3629fbc3fabb9e7bb19a5636a7a3eb677ea25a08d0544a56"}, + {file = "multidict-6.9.0-cp314-cp314-win32.whl", hash = "sha256:2b5db4f2ca34fce55d34b9c66a0eb5d0d01962e2420a1218ba836d8e46aa6ea3"}, + {file = "multidict-6.9.0-cp314-cp314-win_amd64.whl", hash = "sha256:ccf9f7f07e9ab6e24f68ccb2b4da8ded65c1fbc5390ebd897a5fe55cdd4c064f"}, + {file = "multidict-6.9.0-cp314-cp314-win_arm64.whl", hash = "sha256:64ef289ca3c6eaafaa705978686631cb5acc90a92a09bef39c95a810c5f4b804"}, + {file = "multidict-6.9.0-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:f17f485e1837a7d31216be8be991a51265bcfc3cfd2457d5c94ade6086793ad7"}, + {file = "multidict-6.9.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:3fccacf47e756a0f487b2b7e4afc9f167db0770ecc4e887b38ae2aec99dcb510"}, + {file = "multidict-6.9.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:527655c10fca73fd336cbcd5ccaaba5d8ded1512a3183ed7ebcc1569db5f1de3"}, + {file = "multidict-6.9.0-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:2d3520f774e78dad488c97398e5c7253333baa4eea09785aca56d477c4dc05c7"}, + {file = "multidict-6.9.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:518a76bff2567fb0941603b9ccecdd830dd2d717605e7a28c1edc9e64688759e"}, + {file = "multidict-6.9.0-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ff308def558cbbff74ea889ec659d117ac550d4d554467ed6cb3bf6adadac7e6"}, + {file = "multidict-6.9.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:875a77927cd7bc0bc1d0a0520a7ed2267bb169c5db03cc133eaa746526d4182b"}, + {file = "multidict-6.9.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2182da6ffc9793dd66d7d3632eea2b131f1a1e26eaedd51956845501830d84fe"}, + {file = "multidict-6.9.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e680a0b07e44b87a975eca63f84860a772667b0037066a6e93d998eb41ad2814"}, + {file = "multidict-6.9.0-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5066b7877e1e2ae2c3712c8037eff40a80d4cf35b393b4c42c81f1c4b73b346d"}, + {file = "multidict-6.9.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:fd0ec96e9877cb4dddf7942dffa777837809663f8e55d4f79a2bad06453446b0"}, + {file = "multidict-6.9.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:98b0738ac1a1593f609a7b67d25e09c7de57c0f91c2879eb01c46b2dae55c0ba"}, + {file = "multidict-6.9.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:0548fdffa634c495b866d89e02ae58a9588cedaeeb972f6ced433e20dee1db5f"}, + {file = "multidict-6.9.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:7d0649ae61a341b9a47a2afab57424bd2a0ce98d36ec170ce9a51ce92c7284f6"}, + {file = "multidict-6.9.0-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:c6d470d693ff45678b9ab237113546f6dc18918be55b3c852a69ed05ae7404a8"}, + {file = "multidict-6.9.0-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:ac05ce26d2c902d2eb5afe70f2012d19f3b9510ed5ef054bab27a3d43bc7f39c"}, + {file = "multidict-6.9.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:e82ea3ca4409c20172074f27dc1ba5858174f143d0ee637dd058b8061ff024c6"}, + {file = "multidict-6.9.0-cp314-cp314t-win32.whl", hash = "sha256:d61680c1969b5b1b900fece510077e7732336eae02f68dda02162e04ff6ff321"}, + {file = "multidict-6.9.0-cp314-cp314t-win_amd64.whl", hash = "sha256:9a9af5d28024c1de9e0efe06a64b5a8561e6517daa66788169e60d2c588e15c5"}, + {file = "multidict-6.9.0-cp314-cp314t-win_arm64.whl", hash = "sha256:810ae53369d957fcc3e3855612e3a35a39960adaf4b3b1cb4cb4a2e94185bcfe"}, + {file = "multidict-6.9.0-cp315-cp315-android_24_x86_64.whl", hash = "sha256:b9bcbd708bb5e1ce8cf9c58908ae9777a90f777406315b046bb10cb3e87f8621"}, + {file = "multidict-6.9.0-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:27ed5aaee62eeff74786a3259de81ada4f2bf84b75122bc06d7d8eadc1be5643"}, + {file = "multidict-6.9.0-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:30ba80aa7ec7340e80140d29f563e33acb21f3756e42df13612f2a26c80c90ba"}, + {file = "multidict-6.9.0-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:c26e56c68bde47f8028265b3829915450c944febc75a1e4d0365b8a75557861a"}, + {file = "multidict-6.9.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:f6705ae71e4b14c693877be3cc09fc62af10197ca08ee08bb57ffce6e0f9c5f4"}, + {file = "multidict-6.9.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:1fc7b1ce735737b7abf38935928729433ef2c81306dcab7f360ef3c3076bc8e9"}, + {file = "multidict-6.9.0-cp315-cp315-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:b7731a591920d77bd9372a9a8ab3f447129dbf17d29b10928c94005e1606641c"}, + {file = "multidict-6.9.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:69a9295177c33756d7a6f8da0f1db345ac951f2436be6ad4b90f53056526e767"}, + {file = "multidict-6.9.0-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7b4ae468e341cc84c1ae035ee12f032cc0716f618b1eb417fb14e8454a17c620"}, + {file = "multidict-6.9.0-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:eb9f52b89e339007a06c88cb95068e9d612ce252baaaa5ece85de96e2d51fca9"}, + {file = "multidict-6.9.0-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:69190050f74fe139a7b3759c730e4e87484db9cf74b1786910a24496ab7a40f9"}, + {file = "multidict-6.9.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a5f04bbfb064b87455a8012f5829b20201d608cf4b3a1a0e50c7a14173a75109"}, + {file = "multidict-6.9.0-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0d81d0ec43a73056458e844cf90239d2c3a7aeb4ef05fea8c0f64775d5111847"}, + {file = "multidict-6.9.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:b8aea3d54f3cc20a557fb951c68294d9aa88d614cf7151aa5629b1d5e4033b74"}, + {file = "multidict-6.9.0-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:31fd2961bd754ac3177aae9438c01becc22eae029911f13c558e5767a10e5dc2"}, + {file = "multidict-6.9.0-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:04e6f4eddeff93c778a9e7137568284f28856d960275085fcbd87cf77a53a057"}, + {file = "multidict-6.9.0-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:319160c73795ce31e86494773e0f12c446d32dae7d1a76f4829007ef69eb80bf"}, + {file = "multidict-6.9.0-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:0d7fbd38d52119423ed8c69672ca47eac121062c30c976e00ba732d114774874"}, + {file = "multidict-6.9.0-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:981280a946256fc151584fb3b82b99db091fccac81cfecce530585db559ec62c"}, + {file = "multidict-6.9.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:fb3d1f3c63d49656a83e1604ef3ac573016cf2e62da84d1937f47107d5689c8b"}, + {file = "multidict-6.9.0-cp315-cp315-win32.whl", hash = "sha256:0c5388c41bc7c551548c4ce840349f0708f7ced6df877d82900bac82268160fc"}, + {file = "multidict-6.9.0-cp315-cp315-win_amd64.whl", hash = "sha256:49e47de3823bee4896f1eedc17ce4fc4f42c433bab168ece7911f42e69a4f666"}, + {file = "multidict-6.9.0-cp315-cp315-win_arm64.whl", hash = "sha256:1ac339b944616d4061a9ee9571c89767543db38c19c8c7917a9c08b1462c4800"}, + {file = "multidict-6.9.0-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:cb6be563dd43b2d4d528afded1878b559ef1c2f45f89e94d273ef515485727f9"}, + {file = "multidict-6.9.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:76f0df301516563085342d9cdad03fc3c0301b36c3cfa8454e49ca73878aa59c"}, + {file = "multidict-6.9.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:34c00a534e948eb5f8b3c50cacea9daa4fc4dfd503f6edd114bb532f53742c9e"}, + {file = "multidict-6.9.0-cp315-cp315t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:cce5e33383904e32b58bef7765c38917899a9dc87058f75c421c82e7c11440ee"}, + {file = "multidict-6.9.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c375408881861294207c1d038a711120776989c5e8c489b251a818cd74d39886"}, + {file = "multidict-6.9.0-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3f95940278766f273b668bbd9dd412ab5dd170ff40fc836b714c38de7852f1fc"}, + {file = "multidict-6.9.0-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6009b58d6994881c53f56d2f2010f0b3cd30139c7b14156c2329d00c0d592e8e"}, + {file = "multidict-6.9.0-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:7d5ab831301decfb7c29d1c243823f6ccbb3766117c5957bdc5b9f283355d0f1"}, + {file = "multidict-6.9.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:17b74ffc94e63843cf34b7eb874ab1653afac0eda3edfa3de1207db7fc8c0ed9"}, + {file = "multidict-6.9.0-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:62dc471198ac2f1085f6c6ba9aa5ad3343c0cbac0756d2fbe551659d55e14212"}, + {file = "multidict-6.9.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:da97c0a501c5da00d9c3af6d481ed97dace148f9030f4f5578534981d58682bb"}, + {file = "multidict-6.9.0-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:986f2a23330e8823b389872ae63b83b862a10e63e8cfbd11b42ab8664d1eaa7e"}, + {file = "multidict-6.9.0-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:ed96992cac94b32a9c3da5870b05967271397a813029d68197939397860b1470"}, + {file = "multidict-6.9.0-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:94e767d30be457da0ef134e688cd2b6a438d19b85bf000b1c4a2b9b6f55b4211"}, + {file = "multidict-6.9.0-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:d1f98df09bc22d298d88dee07eb5365dba1fbf3b41e876a6edb2652a8b3a6ca1"}, + {file = "multidict-6.9.0-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:c5290038269f7d96037afc47b05b286e4791adfa7046911e2a0483b6220c84fb"}, + {file = "multidict-6.9.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:8858d2ddd0bc21b4aaf189016c95840b29ddf0236a049af70a9cb4379bef9abc"}, + {file = "multidict-6.9.0-cp315-cp315t-win32.whl", hash = "sha256:f90724dade5865b1c9429d9b058f11096e44a7f1f0e0a21eff18d98ef32c22aa"}, + {file = "multidict-6.9.0-cp315-cp315t-win_amd64.whl", hash = "sha256:150f1e5bcc14234e99aacc931deafa52713157df947efeecc1a3b7601f2714ab"}, + {file = "multidict-6.9.0-cp315-cp315t-win_arm64.whl", hash = "sha256:734c985bbd60e84d0ea523bafe139394e46b8a3f35754a70111dbcbba243f7f4"}, + {file = "multidict-6.9.0-py3-none-any.whl", hash = "sha256:57c2445049f7d8e66306f712868219da7ff7168ef42263dc032401211bf1205c"}, + {file = "multidict-6.9.0.tar.gz", hash = "sha256:d7d32c0543494efbc9394e2b571725071d08e295993486bc9a43f6f89375ee01"}, ] [package.dependencies] From 506e1fd69324e186dd30dac1fb4ac613d028c3ad Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 18 Sep 2026 18:25:43 +0000 Subject: [PATCH 220/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 748c72a..98ce65e 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "f25629ca832f59b83d0a784b7e91b4a4326ddb7f", + "originGitCommit": "088ccb0d8312032b77388ed58bfc8d0b93acb2cd", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 23a75d38425bb73886f0d2b9b4e2810202a58072 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 18 Sep 2026 19:06:42 +0000 Subject: [PATCH 221/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 98ce65e..9a31e6b 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "088ccb0d8312032b77388ed58bfc8d0b93acb2cd", + "originGitCommit": "1fe5544686e5113697aea7e1578092ceecc49740", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 02003235b9f6d94a2103ac38380ed87c32e44a1c Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 18 Sep 2026 20:17:09 +0000 Subject: [PATCH 222/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 9a31e6b..04eecb0 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "1fe5544686e5113697aea7e1578092ceecc49740", + "originGitCommit": "e7e85bb6057fc29461d605f347069427397caf21", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From a6d3a6511c613ebcebdbe60532462f8d185104c3 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 19 Sep 2026 11:20:52 +0000 Subject: [PATCH 223/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 4 ++++ src/speechify/voices/client.py | 8 ++++++++ src/speechify/voices/raw_client.py | 8 ++++++++ 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 04eecb0..8a07696 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "e7e85bb6057fc29461d605f347069427397caf21", + "originGitCommit": "1217d95fea0803b9cf49805f6ea575bf4d31967b", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index a4a3aca..d76e846 100644 --- a/reference.md +++ b/reference.md @@ -840,6 +840,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.
diff --git a/src/speechify/voices/client.py b/src/speechify/voices/client.py index 715af82..d541bf4 100644 --- a/src/speechify/voices/client.py +++ b/src/speechify/voices/client.py @@ -281,6 +281,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 @@ -636,6 +640,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 diff --git a/src/speechify/voices/raw_client.py b/src/speechify/voices/raw_client.py index f7cd462..14a331f 100644 --- a/src/speechify/voices/raw_client.py +++ b/src/speechify/voices/raw_client.py @@ -577,6 +577,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 @@ -1380,6 +1384,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 From 526fab22f898323a6e7cedf038ca257482b39d31 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 21 Sep 2026 14:51:29 +0000 Subject: [PATCH 224/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 8a07696..612581b 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "1217d95fea0803b9cf49805f6ea575bf4d31967b", + "originGitCommit": "e2bb22e351f926a983a1eb14becf51156555df3f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 077fafef38539c590be2f979eba4ba16fe5d48fd Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 21 Sep 2026 18:34:36 +0000 Subject: [PATCH 225/272] SDK regeneration --- .fern/metadata.json | 2 +- poetry.lock | 344 ++++++++++++++--------------- reference.md | 2 +- src/speechify/types/error_code.py | 1 + src/speechify/voices/client.py | 4 +- src/speechify/voices/raw_client.py | 4 +- 6 files changed, 179 insertions(+), 178 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 612581b..abcc02d 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "e2bb22e351f926a983a1eb14becf51156555df3f", + "originGitCommit": "5cd76933c9cb41c4e30d666a8d737a05733ccefb", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/poetry.lock b/poetry.lock index 25bb37e..bff9599 100644 --- a/poetry.lock +++ b/poetry.lock @@ -550,184 +550,184 @@ files = [ [[package]] name = "multidict" -version = "6.9.0" +version = "6.9.1" description = "multidict implementation" optional = true python-versions = ">=3.10" groups = ["main"] markers = "extra == \"aiohttp\"" files = [ - {file = "multidict-6.9.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:63c9da87fa6d4284e57d2a6e549dfe8f2938ab578fddab3f8ed9742812c9d0f3"}, - {file = "multidict-6.9.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3663ce6cb19c5e3123c9aad5907804a42d384f8cd4b67e59291efc9480f8da9a"}, - {file = "multidict-6.9.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:f7f340a4a6ad4dacb0f866143452d794ea32a0d9ddf79d93ecb4c3ac5515d0d4"}, - {file = "multidict-6.9.0-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:bf44632149302f7fdcf5baecc277d816ab77a47a268f2392dc5d2d01c56770cf"}, - {file = "multidict-6.9.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:095b091158c89a03ad1237b4880f857d27628f93c23da1616ee5640011439c53"}, - {file = "multidict-6.9.0-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c3958fa87a161a6b9c6661606784abdd8f1afa21a0d6e99d1b99512e70e6b4f1"}, - {file = "multidict-6.9.0-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9f99e0eec05aca200b66735a38f8de5c9be03a6afd62ba7f28860203d936a03f"}, - {file = "multidict-6.9.0-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a4d98efa7b004b67cb8cca26b218012efa50c7103cf4ae54898f2bbf89a3c62f"}, - {file = "multidict-6.9.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a23926c06835ad71e6bc755ebc07ad34655847de63c01a5d06b6501997712c4c"}, - {file = "multidict-6.9.0-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:06723cd13ace09a0ce1ed010fc9e57cd762e57ee23691d6cdb13b7fcf1a35468"}, - {file = "multidict-6.9.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:27dee31d6f3a0d2be018b71721adbe24aed9b08bdc69d133c88eead07beee600"}, - {file = "multidict-6.9.0-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:90d341b2c64eacef24fc0a35aaabc5227834ce93bb1da416d61601663df29456"}, - {file = "multidict-6.9.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:986de92227e44b257fef664a69613a4346a090553c186d0ae3bf15ceab447f5e"}, - {file = "multidict-6.9.0-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:c8da6d6fc78f971ebb9e29563c891a429374861afda55e4692a7962e3822637d"}, - {file = "multidict-6.9.0-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:8903ce696f0aa9dc301c5621fa0f0e24e985d4e6cc247cd63bc9abcd5a081628"}, - {file = "multidict-6.9.0-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:bf345dacf96fd9c698ad30c620fbdbe6e1edadf83944203ce5b5688f52e3d141"}, - {file = "multidict-6.9.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:e63e05228c1f1c1bef09c08abd2f97b6fe597c9ca14a1c94bec4e76b4664046c"}, - {file = "multidict-6.9.0-cp310-cp310-win32.whl", hash = "sha256:f25229fddbd6bb3d47f1141c319bead19fa3c9e62790c6d51201564fde05fc2a"}, - {file = "multidict-6.9.0-cp310-cp310-win_amd64.whl", hash = "sha256:05f197459db34dee24ae7e3560affa5c6f93989805899c9bba13358b5116a12e"}, - {file = "multidict-6.9.0-cp310-cp310-win_arm64.whl", hash = "sha256:d4464437dbbd7a5a71a5e86f2a9ec92ccbb8d96706f5a173ca985175f23adaf9"}, - {file = "multidict-6.9.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:7e46237ef18c8ee183dde740f0174d6ecf9c26d362b506b5d23fb57bc3634bc0"}, - {file = "multidict-6.9.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e33fabca25633cf0e4f9dd4495733d09b7f0628fc9424c5b5e58da644fd4ab94"}, - {file = "multidict-6.9.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:e82873b56ed37b328501fb063962299ea6f7fc1caf1a5c47966028824bde0807"}, - {file = "multidict-6.9.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:2e2169fdb886288fc6bf9d8e48abca9487f8b3ace1f5ab269b074864d212351e"}, - {file = "multidict-6.9.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:eefec2a6b0381846ce54d88f30de4b3a5c15ff0bddc5264cccba85b710a8785d"}, - {file = "multidict-6.9.0-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c63013a210a09d4a8f30814b785450f1d0a2aaef8230c1e068e83f3afceb6030"}, - {file = "multidict-6.9.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4fd82f81dd0676059f9bc3a418a79f27feab19486100a255bf8488cccb3e60d3"}, - {file = "multidict-6.9.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:deea26b6979ce46f2fb3b2db9b651e12eb7f94c26a1ee457b79f66ad36a64fd1"}, - {file = "multidict-6.9.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:58a4aee7188676c8317e3131bd844faf70e427979e1f20b8598c61f6cbd8b073"}, - {file = "multidict-6.9.0-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:eee11705013394ebeeb383c92beb0fc9a3c449ac3382a6ee3aa23b38c6b06c3a"}, - {file = "multidict-6.9.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:51e77d089f82ed2e288d3a1cbf6cb7ffa927c8055d8ef61d57b27f4d8da557b6"}, - {file = "multidict-6.9.0-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:79640bb8746b703971fb16569e7bfa82d90548137cf4094769aa45cbafda9d9a"}, - {file = "multidict-6.9.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:092214366f729803010a5c260f4a4f44d223c688641dfc27da851588ac762ffe"}, - {file = "multidict-6.9.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:da469a672bf3d343eb6757d53ffbac36f1a29b93a9fe76558b5d0fd7a7efa599"}, - {file = "multidict-6.9.0-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:4216a8b4214a1ee4511c551c59d51534637394e9433765fbd8face86db43c532"}, - {file = "multidict-6.9.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:f05f5b3171e23801e72fd818de236be9f239b10ba699f23e43bb9596651f8b34"}, - {file = "multidict-6.9.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:0c69b098c85685ba39efef1d8a9711243df8a4c4b051a35d3cce7f323381f8bb"}, - {file = "multidict-6.9.0-cp311-cp311-win32.whl", hash = "sha256:855be03f39b97e352d54eaa7b14ba2a46846cf14719ddb689cdaaee811462440"}, - {file = "multidict-6.9.0-cp311-cp311-win_amd64.whl", hash = "sha256:a8040dde3fe35ead6b04adf3cd3fdd3bfc7c941505775d230b4501d18227c77b"}, - {file = "multidict-6.9.0-cp311-cp311-win_arm64.whl", hash = "sha256:70b3097b838d9fc336f426c7aa7d45b7881ee9b06a10f4bcffd0dcda0cbd44e5"}, - {file = "multidict-6.9.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:fdd484b84d3394e805689c56be3ab1f877ae7ff0eb9ff90a3ee7a755cbebab4f"}, - {file = "multidict-6.9.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:f93c9058a0eceac0df2ce9d4c8823b84786ee598194753c2ca0c100224405e47"}, - {file = "multidict-6.9.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c7ab60b91e11b25e7682c5cd8763fdd17929ea83f234ba441091f1492e631ea3"}, - {file = "multidict-6.9.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:640113258c5925a9eed2c12523410b25565ac5df2fa6735fbae88fb09bcdd212"}, - {file = "multidict-6.9.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2ea72901860ccbe94517421681c60b13533ce03ba2f7bd96293c3a4d16ac4ccb"}, - {file = "multidict-6.9.0-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:408fac672931f2458be3bc8c89d9facd16dac2aad17c7cee2ca1693eee99f07e"}, - {file = "multidict-6.9.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:67bed23e9803945b0760650ec3e903af772c49abe869f3bc03c66b2e7649d5ef"}, - {file = "multidict-6.9.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4bb769ccc72e15d7d441e1a08f169d418376be77cdc387e813129c26b357fe50"}, - {file = "multidict-6.9.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6a5111a2bd824c821a3dd09da29680391b0caaa18fea7761358f4001e6898d1c"}, - {file = "multidict-6.9.0-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8e991677c4bdc5d9f2e71c74717a4e32cfe98930ca05becdf722b5eae1329d6a"}, - {file = "multidict-6.9.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:bb69b724c345420ba49187a17a894f146099f5b2e501df42ddb4452ac8be37fa"}, - {file = "multidict-6.9.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:cff3cff5a725bdb8359962de8d7429aea592d7693dbd197eeabbdfab9b6300e9"}, - {file = "multidict-6.9.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:fca5b74b5909c29041f857c40d51d9273636fb4221cf020e4c452deb1c448a40"}, - {file = "multidict-6.9.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:11e32ccf23cdbfcf8299a6a825930a858ec9a6aa05d6752d0f90f2bdf19489e1"}, - {file = "multidict-6.9.0-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:3ec1e387b1f8a85ae5b94aa8c4e0576912ffa4d31bd0578f24c950d4f05ee476"}, - {file = "multidict-6.9.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:e4826f6b56456fb1e98111d7bc20cbdc7fa0a41b1f9ad80ff2dd3f2f5b226fe1"}, - {file = "multidict-6.9.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:e71a072c52c78b7f97cd4611df6cef10977e4f2367cd0654a7626192f931adde"}, - {file = "multidict-6.9.0-cp312-cp312-win32.whl", hash = "sha256:95d339c3b75b4a50c665bdcf8417428cd71c3e5cd48e194cb1d336fcb856beac"}, - {file = "multidict-6.9.0-cp312-cp312-win_amd64.whl", hash = "sha256:8f06c4da5315a6f709b13408c3e13f3b475f8c559ec7608c3c67062512871235"}, - {file = "multidict-6.9.0-cp312-cp312-win_arm64.whl", hash = "sha256:0db5bf96ec2ce45a8bc7fbbe8a486089969bb2791a66b6789ee3aed0d5dd562e"}, - {file = "multidict-6.9.0-cp313-cp313-android_24_x86_64.whl", hash = "sha256:662315f8621b3559268813b11134c1f9633edd4ab5f7b713688a243c13f4026d"}, - {file = "multidict-6.9.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:4bef8cb5edea9c9daeb8396a75eeb97f912c3fb3fa408fe659edfecf91e47424"}, - {file = "multidict-6.9.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:75f7fc21ffce9a792cb919f0e0b0b52117bd672f2a55d1929d573b6fc437f374"}, - {file = "multidict-6.9.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:8bb6be697065cbf31051465f9939d65624573d2219c3da8316db9e7cf5e0f5a7"}, - {file = "multidict-6.9.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:67bcff396d2ad62197c95488a716a88462792b384b5ea6e44bf7c1070eddb8fc"}, - {file = "multidict-6.9.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:beda95a6bd0a2e2265b941b90ff72543afbeaebb6a450e3a6a010d10d4a2ffca"}, - {file = "multidict-6.9.0-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:3e78870909e9f9e3d672ba99f1eb75130d7e01c42e642e6a70f434df32ca0ee1"}, - {file = "multidict-6.9.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:91092d597fcf0940cd6a59e64ba7156ee22d6899993fd7c5b1897fda71482f8f"}, - {file = "multidict-6.9.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:4be612f23990a261060ccd8f15e89dad1f9b7bb0c1021c5c3987f5fc57959391"}, - {file = "multidict-6.9.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7aaa14f0b9ffa2780c5d3b21da0e9b58778ed47af3369df72e5fd6dc10ff8041"}, - {file = "multidict-6.9.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:97555ad30ad20a8eb90fa86522088eebbbd68aba03e56d53f4850b3535c65e61"}, - {file = "multidict-6.9.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c51fd8d59e72e45c64907bf7f81fbd94f4c8dcd1c8b2f23f4c2d7ede788fcfc3"}, - {file = "multidict-6.9.0-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:22067e88ff266e6a5dc59114529332692a01cc04b10dbdc2c14ab91217dee819"}, - {file = "multidict-6.9.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:e231de8ce43d4fd10bec4f67f71238ed88a974de30a9f20be7a4ab16c970a988"}, - {file = "multidict-6.9.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:b33e499a7b1f722547d57b4865ed68c03161643b9afe49fe097a0832078d183d"}, - {file = "multidict-6.9.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:1eb7939025bd9289d9dfe3a399102b1642f4fbb105a6af82f284052ee89e97a9"}, - {file = "multidict-6.9.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:51a08dceed4b42ef25755ee2cbf50df325e90e6b415d00955ffdea2c394ad6c0"}, - {file = "multidict-6.9.0-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:cb847cb4002e725f88ffe29883da8290fd0754fa0461ed8988735e20964a9f65"}, - {file = "multidict-6.9.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:516fa4817cd070088f616a901380db56189f86daee9da79aada3c9b653f49ed7"}, - {file = "multidict-6.9.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:254e53be2ec70518bb82dfa9b0c7166baaf2bd0e918bd17b65caaf489d5a5522"}, - {file = "multidict-6.9.0-cp313-cp313-win32.whl", hash = "sha256:9869105ab61db13004f9ed610cd29ce4237b2c609f5f7b8bb8f2339fb9dad17d"}, - {file = "multidict-6.9.0-cp313-cp313-win_amd64.whl", hash = "sha256:85ed0f3c3b01174aea5a8a8fcd456f64c2e9719c0f42c612c2694ecd35974a65"}, - {file = "multidict-6.9.0-cp313-cp313-win_arm64.whl", hash = "sha256:1126782e3c3b1a7ccd990be3d3221709348e4b07d6ecf8b50965a93ae2624145"}, - {file = "multidict-6.9.0-cp314-cp314-android_24_x86_64.whl", hash = "sha256:1b34b10b615db5a3ed424b174a362a3cdf06220bd892d03d151a619bb157c4e9"}, - {file = "multidict-6.9.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:f7f0b996a20776018a253061a781ba983e7b944e17a0748822026048b8b0bb07"}, - {file = "multidict-6.9.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:b612842f7f286c42abc5dcbda1db50e9dbed39720dd15feb07dbc9974bfeaa7c"}, - {file = "multidict-6.9.0-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:71ee2b3198323cbff7a846538f01599f309dddddba79b5bf5a3dca2e49460ef6"}, - {file = "multidict-6.9.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:d0dc1f9c7dc07d86e5a4ed24f3a55b945106f3e7c70a984ff8dd9267270414ed"}, - {file = "multidict-6.9.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:a26c8672d70d2c12c2f1c4df91fe92422e905efaf1d639bd4d7192868a21e711"}, - {file = "multidict-6.9.0-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:186cc28558e3d6921ba797e433cd58ce64eb8b2f553e93f75dccbb9a604b7457"}, - {file = "multidict-6.9.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ebc02af6ac170631774219c26fd63b4404d1e836a1aa92b738a3127eaa2aebad"}, - {file = "multidict-6.9.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:62c4ffba9f81a2b17cf081bfe4e6b7eaf17193dc17d5870c01b2763e48efed24"}, - {file = "multidict-6.9.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:3a7e2aaa0e9a6413b54cd90fa0fe5944487872a7130a1c07347627974e677a34"}, - {file = "multidict-6.9.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:26e34dbbd6c3438ee19e0db1f5b846a7ca957085d193ec312b488924c3941a0d"}, - {file = "multidict-6.9.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c5d811799f821c06883404a171faa880660ef04c2687fc32fdaef22fb645fe80"}, - {file = "multidict-6.9.0-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:89fde003cec43783193360c27de2fbb0c8ea2db1cfebc193c3fc657c436f9d38"}, - {file = "multidict-6.9.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:9bfa4ba6d97ae6d9c1f5336c2abad5690bce1802a040f9aa5fa39cb0b3099c02"}, - {file = "multidict-6.9.0-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:a776fbaf700549943b647f21479d69191c238c84fb55d5a48eec1b4cf6cf6e00"}, - {file = "multidict-6.9.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:ed04614c47379bcdfa01d3e165149518017ea034cd5f48e203c287cc3d2ebd4b"}, - {file = "multidict-6.9.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:9c65d9912983991f368bd01f993191b1593c90ecde6be990d73add46084d235f"}, - {file = "multidict-6.9.0-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:4b89b102be78ed286123e75a30efda519e1ef6b9d4a4d01a08213f5e01a18e45"}, - {file = "multidict-6.9.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:e3ed6563ea143214c63bb4452ae5e8787a39226b22101c179fa4d2eda5972267"}, - {file = "multidict-6.9.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:448c05bd13f8675b3629fbc3fabb9e7bb19a5636a7a3eb677ea25a08d0544a56"}, - {file = "multidict-6.9.0-cp314-cp314-win32.whl", hash = "sha256:2b5db4f2ca34fce55d34b9c66a0eb5d0d01962e2420a1218ba836d8e46aa6ea3"}, - {file = "multidict-6.9.0-cp314-cp314-win_amd64.whl", hash = "sha256:ccf9f7f07e9ab6e24f68ccb2b4da8ded65c1fbc5390ebd897a5fe55cdd4c064f"}, - {file = "multidict-6.9.0-cp314-cp314-win_arm64.whl", hash = "sha256:64ef289ca3c6eaafaa705978686631cb5acc90a92a09bef39c95a810c5f4b804"}, - {file = "multidict-6.9.0-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:f17f485e1837a7d31216be8be991a51265bcfc3cfd2457d5c94ade6086793ad7"}, - {file = "multidict-6.9.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:3fccacf47e756a0f487b2b7e4afc9f167db0770ecc4e887b38ae2aec99dcb510"}, - {file = "multidict-6.9.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:527655c10fca73fd336cbcd5ccaaba5d8ded1512a3183ed7ebcc1569db5f1de3"}, - {file = "multidict-6.9.0-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:2d3520f774e78dad488c97398e5c7253333baa4eea09785aca56d477c4dc05c7"}, - {file = "multidict-6.9.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:518a76bff2567fb0941603b9ccecdd830dd2d717605e7a28c1edc9e64688759e"}, - {file = "multidict-6.9.0-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ff308def558cbbff74ea889ec659d117ac550d4d554467ed6cb3bf6adadac7e6"}, - {file = "multidict-6.9.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:875a77927cd7bc0bc1d0a0520a7ed2267bb169c5db03cc133eaa746526d4182b"}, - {file = "multidict-6.9.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2182da6ffc9793dd66d7d3632eea2b131f1a1e26eaedd51956845501830d84fe"}, - {file = "multidict-6.9.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e680a0b07e44b87a975eca63f84860a772667b0037066a6e93d998eb41ad2814"}, - {file = "multidict-6.9.0-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5066b7877e1e2ae2c3712c8037eff40a80d4cf35b393b4c42c81f1c4b73b346d"}, - {file = "multidict-6.9.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:fd0ec96e9877cb4dddf7942dffa777837809663f8e55d4f79a2bad06453446b0"}, - {file = "multidict-6.9.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:98b0738ac1a1593f609a7b67d25e09c7de57c0f91c2879eb01c46b2dae55c0ba"}, - {file = "multidict-6.9.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:0548fdffa634c495b866d89e02ae58a9588cedaeeb972f6ced433e20dee1db5f"}, - {file = "multidict-6.9.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:7d0649ae61a341b9a47a2afab57424bd2a0ce98d36ec170ce9a51ce92c7284f6"}, - {file = "multidict-6.9.0-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:c6d470d693ff45678b9ab237113546f6dc18918be55b3c852a69ed05ae7404a8"}, - {file = "multidict-6.9.0-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:ac05ce26d2c902d2eb5afe70f2012d19f3b9510ed5ef054bab27a3d43bc7f39c"}, - {file = "multidict-6.9.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:e82ea3ca4409c20172074f27dc1ba5858174f143d0ee637dd058b8061ff024c6"}, - {file = "multidict-6.9.0-cp314-cp314t-win32.whl", hash = "sha256:d61680c1969b5b1b900fece510077e7732336eae02f68dda02162e04ff6ff321"}, - {file = "multidict-6.9.0-cp314-cp314t-win_amd64.whl", hash = "sha256:9a9af5d28024c1de9e0efe06a64b5a8561e6517daa66788169e60d2c588e15c5"}, - {file = "multidict-6.9.0-cp314-cp314t-win_arm64.whl", hash = "sha256:810ae53369d957fcc3e3855612e3a35a39960adaf4b3b1cb4cb4a2e94185bcfe"}, - {file = "multidict-6.9.0-cp315-cp315-android_24_x86_64.whl", hash = "sha256:b9bcbd708bb5e1ce8cf9c58908ae9777a90f777406315b046bb10cb3e87f8621"}, - {file = "multidict-6.9.0-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:27ed5aaee62eeff74786a3259de81ada4f2bf84b75122bc06d7d8eadc1be5643"}, - {file = "multidict-6.9.0-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:30ba80aa7ec7340e80140d29f563e33acb21f3756e42df13612f2a26c80c90ba"}, - {file = "multidict-6.9.0-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:c26e56c68bde47f8028265b3829915450c944febc75a1e4d0365b8a75557861a"}, - {file = "multidict-6.9.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:f6705ae71e4b14c693877be3cc09fc62af10197ca08ee08bb57ffce6e0f9c5f4"}, - {file = "multidict-6.9.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:1fc7b1ce735737b7abf38935928729433ef2c81306dcab7f360ef3c3076bc8e9"}, - {file = "multidict-6.9.0-cp315-cp315-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:b7731a591920d77bd9372a9a8ab3f447129dbf17d29b10928c94005e1606641c"}, - {file = "multidict-6.9.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:69a9295177c33756d7a6f8da0f1db345ac951f2436be6ad4b90f53056526e767"}, - {file = "multidict-6.9.0-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7b4ae468e341cc84c1ae035ee12f032cc0716f618b1eb417fb14e8454a17c620"}, - {file = "multidict-6.9.0-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:eb9f52b89e339007a06c88cb95068e9d612ce252baaaa5ece85de96e2d51fca9"}, - {file = "multidict-6.9.0-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:69190050f74fe139a7b3759c730e4e87484db9cf74b1786910a24496ab7a40f9"}, - {file = "multidict-6.9.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a5f04bbfb064b87455a8012f5829b20201d608cf4b3a1a0e50c7a14173a75109"}, - {file = "multidict-6.9.0-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0d81d0ec43a73056458e844cf90239d2c3a7aeb4ef05fea8c0f64775d5111847"}, - {file = "multidict-6.9.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:b8aea3d54f3cc20a557fb951c68294d9aa88d614cf7151aa5629b1d5e4033b74"}, - {file = "multidict-6.9.0-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:31fd2961bd754ac3177aae9438c01becc22eae029911f13c558e5767a10e5dc2"}, - {file = "multidict-6.9.0-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:04e6f4eddeff93c778a9e7137568284f28856d960275085fcbd87cf77a53a057"}, - {file = "multidict-6.9.0-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:319160c73795ce31e86494773e0f12c446d32dae7d1a76f4829007ef69eb80bf"}, - {file = "multidict-6.9.0-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:0d7fbd38d52119423ed8c69672ca47eac121062c30c976e00ba732d114774874"}, - {file = "multidict-6.9.0-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:981280a946256fc151584fb3b82b99db091fccac81cfecce530585db559ec62c"}, - {file = "multidict-6.9.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:fb3d1f3c63d49656a83e1604ef3ac573016cf2e62da84d1937f47107d5689c8b"}, - {file = "multidict-6.9.0-cp315-cp315-win32.whl", hash = "sha256:0c5388c41bc7c551548c4ce840349f0708f7ced6df877d82900bac82268160fc"}, - {file = "multidict-6.9.0-cp315-cp315-win_amd64.whl", hash = "sha256:49e47de3823bee4896f1eedc17ce4fc4f42c433bab168ece7911f42e69a4f666"}, - {file = "multidict-6.9.0-cp315-cp315-win_arm64.whl", hash = "sha256:1ac339b944616d4061a9ee9571c89767543db38c19c8c7917a9c08b1462c4800"}, - {file = "multidict-6.9.0-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:cb6be563dd43b2d4d528afded1878b559ef1c2f45f89e94d273ef515485727f9"}, - {file = "multidict-6.9.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:76f0df301516563085342d9cdad03fc3c0301b36c3cfa8454e49ca73878aa59c"}, - {file = "multidict-6.9.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:34c00a534e948eb5f8b3c50cacea9daa4fc4dfd503f6edd114bb532f53742c9e"}, - {file = "multidict-6.9.0-cp315-cp315t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:cce5e33383904e32b58bef7765c38917899a9dc87058f75c421c82e7c11440ee"}, - {file = "multidict-6.9.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c375408881861294207c1d038a711120776989c5e8c489b251a818cd74d39886"}, - {file = "multidict-6.9.0-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3f95940278766f273b668bbd9dd412ab5dd170ff40fc836b714c38de7852f1fc"}, - {file = "multidict-6.9.0-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6009b58d6994881c53f56d2f2010f0b3cd30139c7b14156c2329d00c0d592e8e"}, - {file = "multidict-6.9.0-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:7d5ab831301decfb7c29d1c243823f6ccbb3766117c5957bdc5b9f283355d0f1"}, - {file = "multidict-6.9.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:17b74ffc94e63843cf34b7eb874ab1653afac0eda3edfa3de1207db7fc8c0ed9"}, - {file = "multidict-6.9.0-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:62dc471198ac2f1085f6c6ba9aa5ad3343c0cbac0756d2fbe551659d55e14212"}, - {file = "multidict-6.9.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:da97c0a501c5da00d9c3af6d481ed97dace148f9030f4f5578534981d58682bb"}, - {file = "multidict-6.9.0-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:986f2a23330e8823b389872ae63b83b862a10e63e8cfbd11b42ab8664d1eaa7e"}, - {file = "multidict-6.9.0-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:ed96992cac94b32a9c3da5870b05967271397a813029d68197939397860b1470"}, - {file = "multidict-6.9.0-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:94e767d30be457da0ef134e688cd2b6a438d19b85bf000b1c4a2b9b6f55b4211"}, - {file = "multidict-6.9.0-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:d1f98df09bc22d298d88dee07eb5365dba1fbf3b41e876a6edb2652a8b3a6ca1"}, - {file = "multidict-6.9.0-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:c5290038269f7d96037afc47b05b286e4791adfa7046911e2a0483b6220c84fb"}, - {file = "multidict-6.9.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:8858d2ddd0bc21b4aaf189016c95840b29ddf0236a049af70a9cb4379bef9abc"}, - {file = "multidict-6.9.0-cp315-cp315t-win32.whl", hash = "sha256:f90724dade5865b1c9429d9b058f11096e44a7f1f0e0a21eff18d98ef32c22aa"}, - {file = "multidict-6.9.0-cp315-cp315t-win_amd64.whl", hash = "sha256:150f1e5bcc14234e99aacc931deafa52713157df947efeecc1a3b7601f2714ab"}, - {file = "multidict-6.9.0-cp315-cp315t-win_arm64.whl", hash = "sha256:734c985bbd60e84d0ea523bafe139394e46b8a3f35754a70111dbcbba243f7f4"}, - {file = "multidict-6.9.0-py3-none-any.whl", hash = "sha256:57c2445049f7d8e66306f712868219da7ff7168ef42263dc032401211bf1205c"}, - {file = "multidict-6.9.0.tar.gz", hash = "sha256:d7d32c0543494efbc9394e2b571725071d08e295993486bc9a43f6f89375ee01"}, + {file = "multidict-6.9.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:aef74e9beabbd6c4aafc091dabff86d046ccf013ce1e4396c0fbb01b4cad9de8"}, + {file = "multidict-6.9.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1ca5ebe6d454f1e5496cf052386a559f1080bf2de75bf327ebca0a6003b79f19"}, + {file = "multidict-6.9.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:02f6d0c4b70f783305e73f9944d8efe6be1022550f0974ba0ae9d8893c0350fa"}, + {file = "multidict-6.9.1-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:8050e75af7e4c6e2d5260b84eeedb618f3e452e66473432e085b5d1b81429299"}, + {file = "multidict-6.9.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4736d350371337825cac1793c9f7c40701c32a03912548c2a7608e51679cbb96"}, + {file = "multidict-6.9.1-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:02fe09dc197b8ae7e355371e51e5dce2f39060cd5a8badf94904527e23a3f188"}, + {file = "multidict-6.9.1-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ad4528cdce058b684f75fad1faf4a6a6c992fe2f08376370ca66e4ce5916a84a"}, + {file = "multidict-6.9.1-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:8885e3808aedbd6725b921fb67dacaae0678933561ddd47c2b01315198c70e2e"}, + {file = "multidict-6.9.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d3b6e6840421c83ccb60398e333b44f910b0907bb409597685ab2eedd1e22eab"}, + {file = "multidict-6.9.1-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c9648ed33dc8179e4ec04bbc73bd7f0038e1e81217a69467f61f02a78bf07e88"}, + {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:d9d6544790ba50438a9c1a903c3c4afb1ec8a7832db5518549275b40ef0dd4b1"}, + {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:1c9f3c25df6c9d3bbae4f6fd3f514b1c5c740a2110f56ccf36069c85417e289c"}, + {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:cf22b43f35b7dbb9f71e8ee2041b5c00029cdfc28ede3a2f31cf8906f9a6c126"}, + {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:8ed78ccad4c7b421804f5d524b7740946a7ef75d89dc0dac52e9d7c24c472410"}, + {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:e3b1aa25f01238886a6baed9e13b9a9240ed344346c79ae280ae65e8603b21d5"}, + {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:bc94a68ea5e18f8e85dc6b522bcb53093f692c8eb62b4837ac047da73956cbe4"}, + {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:73533644e1f69ea1164d56cc6505f564c6c44072b646b66d67df2d31fed0348c"}, + {file = "multidict-6.9.1-cp310-cp310-win32.whl", hash = "sha256:66987aa68b0f7c2a1cc5f388ca962b8ed92b10f79de38d6d0d8c716154f519d9"}, + {file = "multidict-6.9.1-cp310-cp310-win_amd64.whl", hash = "sha256:a32b78c1e52ebd8e247bb68300b90b233300d8816faa008ed0713bc539fb6af0"}, + {file = "multidict-6.9.1-cp310-cp310-win_arm64.whl", hash = "sha256:ab64ace1a68682d191d9bedd9d4c939406ad86b1d9f628180410644249ad46c2"}, + {file = "multidict-6.9.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:910d4260512660484c0dc1588a316fbb35a40c081c36fc51d1225351af17cfe4"}, + {file = "multidict-6.9.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:33fa55b990f81c2927e01399ace0d18926c69d69baa8cdaa819424132fb97987"}, + {file = "multidict-6.9.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:369b5aa01b241cd3fea6890bdbb11a1425d87bf1515831500d518f4223e9d72c"}, + {file = "multidict-6.9.1-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:803f8b575a71b1b299d677c28db0653459c79b5308874efec813f17b7457c7f1"}, + {file = "multidict-6.9.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b8a65621b98984a62e59403009591b8a5a7736273aefe1cab64cfb85b365cc07"}, + {file = "multidict-6.9.1-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:13849a1d4f54c3809ae721e9e83ab28f5ea602f33660cb84eb6ef261eac706c1"}, + {file = "multidict-6.9.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:dd9a137a4a9becda3094f3831cd026380f75f6855e051eefe4c73ade524f1cc3"}, + {file = "multidict-6.9.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:9ae9614c317c50836689ce2dfde07c05fe0b16378562e2221746c3913ede3c80"}, + {file = "multidict-6.9.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e8f1e362c9352b50ed120f001046fdbb80810c9d56580f4c3fc13bbe30823387"}, + {file = "multidict-6.9.1-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0dd655518f136febd96c05131a76a863e32fc2a1d7acd4e3c959e3ceb77d8345"}, + {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:2c5d675da8f1cb5650271c8ad5e95c0a3e5a183c105e72d953b12877b1c8d0fd"}, + {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:658f90f49cf5af2441cad0a2b801c3ef520471989a1ec55bcb25b255b2ca8d2f"}, + {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:43124fe172ada86d03ac3c8dc8179091341f6724d5e5d5b160e1587e4cd3761b"}, + {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:b2f0adc22a4eb31e545221d93fc73a0f6a8cc2379d0f4309f71d1d17ba938b82"}, + {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:7fc59e9ba821b220944ccfe0f89c9dc4745f6d097569992356eb03869f21e953"}, + {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:87cc632c88ee5dc80e12681047839304d98ee5c9a708d686505767001c9b8b9a"}, + {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b828cf64d62dc09ac183f03c1aeedd164ade96a2ce4934109452edf29de1dd13"}, + {file = "multidict-6.9.1-cp311-cp311-win32.whl", hash = "sha256:2c1aeb92eea59d824f004341b26d5e4b47a8a441cf9726769b9a90abf9d0e08f"}, + {file = "multidict-6.9.1-cp311-cp311-win_amd64.whl", hash = "sha256:5f89dad732280e7a10b74d40b91364f88e13c3f2c08c2ef83a8cd42f7a61af2e"}, + {file = "multidict-6.9.1-cp311-cp311-win_arm64.whl", hash = "sha256:5800368526647146978389dfaa46da3356291e9f0fff9a4ef12e8c2bef964a0d"}, + {file = "multidict-6.9.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:29138fef49828542e859828107e42e50d0e587c513b7eb4b2d92bade2b0860fe"}, + {file = "multidict-6.9.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:19e31815d41cefc365489e591d105d2baceb2f65aa75d29471fbdbda8651e006"}, + {file = "multidict-6.9.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:6ed30be8918e18c8bed0a2e8b70639ecf02feb61ed00ca2e41cfcb2a50fa3f42"}, + {file = "multidict-6.9.1-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:637f4ae36264bd7b8d9a60193acddc1d735ad52e8ed53a19931ea6d921fea8e5"}, + {file = "multidict-6.9.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:35fc236507fb1b3138f0af5ecd5f94ed752d4d6d826248eae425f86204013eea"}, + {file = "multidict-6.9.1-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e58952f04772f59f11c6e007471449809a30165188669bca8fdb19dde40a8f24"}, + {file = "multidict-6.9.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:d35a4f1c63f07fbb8c8f9946dea98b21eddf6c57421585f71d91864be3ba2a24"}, + {file = "multidict-6.9.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b5f8771aaaed7f80e84a4e471d2f29ab6721e4595075e54d03ae1ed951b2000a"}, + {file = "multidict-6.9.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:976fd7689d69ec78d67d31d38d396d8adb562f7e8368279f76aed4aa451fa06d"}, + {file = "multidict-6.9.1-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:95052e8777a86bae87c0bd0b5ab22d809e3d1d02bf69e3e66ddda5ba75a05805"}, + {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1a8adfcaf96f587ab138476eaddef95f29b8a2a8a9afbfea8d2fd62180995d02"}, + {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:1a53de2772cfb74559df2eb4456ec4eeb908435ec55a84b69370d9d745d62aa8"}, + {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:0f2ce963299d42fa3f22a90adc0fdf174792ffef5ff4c7ffb68260548fb05580"}, + {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:5b30ddf7234e611ca877575b62840e6af5977f92f1f9d532eedbb05a44ff8004"}, + {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:63ada7ee2e9345695f9e9bc4c65d72222253f07b1ac94fd0e37555cc6f3c7f60"}, + {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:3c95601ed98fad3f6e2f8fe809c3b526b0fab31ef525e00a155e227f3d17f58a"}, + {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:c148e8b596000dd3e4bfe206e70f3e666be18d72032e0012555f2373c52e35d6"}, + {file = "multidict-6.9.1-cp312-cp312-win32.whl", hash = "sha256:f9dad513626a33670f17cddc6078e30e311f444c957e8dbfc5b2b4603c8b4edb"}, + {file = "multidict-6.9.1-cp312-cp312-win_amd64.whl", hash = "sha256:a16a1dc8529f9e734a41c3b856f3eae7ebacdc061dde3f8a844e0c7889c97203"}, + {file = "multidict-6.9.1-cp312-cp312-win_arm64.whl", hash = "sha256:361f7206cf341ba94fb015688f5c8b480f8e63bd58a4c14a48aeca7851a241cc"}, + {file = "multidict-6.9.1-cp313-cp313-android_24_x86_64.whl", hash = "sha256:d7bf9e43282d69561618e8a0ea33368d532ebef42f15c096f427090521dd74f3"}, + {file = "multidict-6.9.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:03d47df72f084f757c1cb771188d5f4e3a805e4abc4d67e32509272343ae9382"}, + {file = "multidict-6.9.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:6bc94fe17c3c56e5418f79515b786b101845f70609b0d19d0c1ba13448e5633a"}, + {file = "multidict-6.9.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:8f2973bbd2bebd9d2e0cd6394c1292a1a19ccd56bdcbe1e174059f1a39be5b40"}, + {file = "multidict-6.9.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:de7738b8c0bb74c4cc16bbd7fb49fc2bcf6430dba11b3432cd52768ae40933e8"}, + {file = "multidict-6.9.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e5ccad4b7bac125722f48d6f862bed3b514d8526deea06316bb72f152cd30a7c"}, + {file = "multidict-6.9.1-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:a49ff5cdb33654cb7d6a3c377aa2a83ddefaa1db31eb10bcf3c180aa84f9af8a"}, + {file = "multidict-6.9.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b22ff30006a2f28f8bff878fb93413cbe3a4d1fd517c28081d848c90e9cfd2c8"}, + {file = "multidict-6.9.1-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3adf06c66041aa21eeb8a71e82379b74773298c8e6d3d839b151aae441a99b94"}, + {file = "multidict-6.9.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:963a8d8f97057082679523d0fd4c53a38f86bc58cabe4556faef682ae53fa2fa"}, + {file = "multidict-6.9.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b66ccc5c2cdd26e74fa5d4c29ffae424cc6148bf93ce574821783fb3b6d452c5"}, + {file = "multidict-6.9.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7fd79c521f6290c69125fa2b85fa65d9e657e6a8ffaf722dc881b926bef4aa5c"}, + {file = "multidict-6.9.1-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1d804e4caf5d5da37d6dac1325da5629ebef1e27a294c2b568b295814aa36c7b"}, + {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:bb0d664505f4b112f384cffeee82e91e3f6448d8e574989479db4439b68cba05"}, + {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:9e14d17773b1b3c758ff153659a1824608a0cb562c45f484b5ed8a433428444a"}, + {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:083735b7f395894e43adb278d5dae901448883a835ff8f1977e285fefdb10418"}, + {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:b65121091567847a8cb520d364ab22ba90e00d3cc55fa9eb34bb439f0684bcd1"}, + {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:ea999ae6e80e66ad5eea287860951b033d0104ca34d6d87c7b5125ebe0e12721"}, + {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:095d900c242e00fbe5f321ee072e7278b4153e78c5ce9c1efde167d62c1e4771"}, + {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6441cc837aea58be7d9baef1b2383eb8311ab9303f500f99ac90b584cd78bb14"}, + {file = "multidict-6.9.1-cp313-cp313-win32.whl", hash = "sha256:9c4880d017555d70dea367dd49271830842d48e3891c2da97da7ce8c4abcee40"}, + {file = "multidict-6.9.1-cp313-cp313-win_amd64.whl", hash = "sha256:ac51cd64bae51c462ea58ad2492c9b8209667a4ef60c45c4a304518b67598d5d"}, + {file = "multidict-6.9.1-cp313-cp313-win_arm64.whl", hash = "sha256:37a9ebe00c698279213d56e6c64e1962ab1e092918270649b397cac3dc196ca4"}, + {file = "multidict-6.9.1-cp314-cp314-android_24_x86_64.whl", hash = "sha256:fc0dcb22fa9aeabfe3fa4e0430099acff985ec5d77a851382f76cc6146e780e5"}, + {file = "multidict-6.9.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:024123f0ab402ab33828e24eb80fa8f25167d0d3783ba5f287e39ed741e6abf9"}, + {file = "multidict-6.9.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:af1b5a92315048c3e36bbebfa7d4760a9c3e910bc4166f11b20d77d20d6bcfca"}, + {file = "multidict-6.9.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:b2483da477932ad1983d1d33c18bc3771c6fb00cfbaaed70a875fd547ef8e840"}, + {file = "multidict-6.9.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:db4d697b18b6ef5528b1f36bfa25072cd2a421869f5963bc0e92c8a34b9e2800"}, + {file = "multidict-6.9.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:854fd2f1bc6e8a56b89910b5cd7261a8b40f13ebb31572da985ce59c7da0886d"}, + {file = "multidict-6.9.1-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:03731f6fc036180700c9dc2308205a48e5ca6f3ff03087739ab746f294022201"}, + {file = "multidict-6.9.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:989261c5f1735a165f2e4e87cf6d5f17ab734fa18f9ad0383d5adfcdaefce701"}, + {file = "multidict-6.9.1-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b4c9e5d05b126b267ac048a89a0e2d9b48b1b648add62d4872906304a8590610"}, + {file = "multidict-6.9.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9d0a21cf76153de8f2d96a877991d6bc59b9ab5180b949e50db73cc193b4a694"}, + {file = "multidict-6.9.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:e7386aa18d98d6b8af44b92173654ec469237fda35f8e8523e43b581a86f476a"}, + {file = "multidict-6.9.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b69651732c64afb691e50cdc3387cae305e0eeff8804fe3e3ce203876494932a"}, + {file = "multidict-6.9.1-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1fee9a16d88a1c4865610de31ef5c666671020d7a81d1f510eaf3c97d00ebeba"}, + {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7814bbee202acd3bd240204c17d8b87a4c48c81064fd8674dbe527d94d5a4290"}, + {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:95f273bea318a194f656527ee2ed19494327bc500b8e87d9358e3222579aa28d"}, + {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:73bcafa21a78d0776b3ee7cd2a63c66f968eb7db8e8d594e32d7329950f6e828"}, + {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:1a938761c77e0e6edb0c93d02f4e988d44a69e5195e5a3b893e5553311347132"}, + {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:37245ca4105386194dd1d292a6f2aae09bfe1bd7ac6f9ec25093e3cf8e9b143b"}, + {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:f0700527dd5bfa8b7204b08330542f4f388899d3c14d885d8a368992e0eb562d"}, + {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:6b7e54fd883671d1a8810704851c044b7173287c552b9f5c3d9e0eb9f00ae194"}, + {file = "multidict-6.9.1-cp314-cp314-win32.whl", hash = "sha256:e81ae656b9935ac4528a71f96bb7a14d949778ed1897c573d3e7ebb9187f8841"}, + {file = "multidict-6.9.1-cp314-cp314-win_amd64.whl", hash = "sha256:acddcac38adc8342ba48aba98896faa7928854bebb62542362138655b5367ee3"}, + {file = "multidict-6.9.1-cp314-cp314-win_arm64.whl", hash = "sha256:32217133dddc58c927805cf6c0731d8144584176b768042ee886d51e71860bc9"}, + {file = "multidict-6.9.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:0b2fb8c349d1103863750b5d8cb5ace766917f4b35f3d883c8f778853eaa9f76"}, + {file = "multidict-6.9.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:56d834b74c993a7d7cb2b8ab33a0d55c3e0d4a3d2f2da2808a4ad3d79189711b"}, + {file = "multidict-6.9.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:783ba7d845d79ce976afd9c1e91a4e5714671defa198ee789e8b23316083a485"}, + {file = "multidict-6.9.1-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:4d718fa1b5f0d0dd75e86fbbc5b0c93ea3a5d65216c85c61cd5d7cdddfe08455"}, + {file = "multidict-6.9.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a313bad717dde740959d50850c315b75fd4eb0c5e6b4dc8535db0f1c369be125"}, + {file = "multidict-6.9.1-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ef01d29fca550ab871fd99154f82c6472aacf8e7def272dfb07b460123850390"}, + {file = "multidict-6.9.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0f3bd290711c6e9486173a6ee7cd4e7f00c3971c7908c1ec1b6e5437c5e4c6f9"}, + {file = "multidict-6.9.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:81cdc537e0a42e3c0170752fcadbe450246d5c3b4b7231d6eb9672456605ac94"}, + {file = "multidict-6.9.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8b193bf7a443c97d81c47052f60c486071a4bdef4a573fa2514f920089414d45"}, + {file = "multidict-6.9.1-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7a0c98f6a636adf0d7edd60c61589eaf52d149239af754d0bfeb0effedba53a8"}, + {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:6e6b7e3a1520c39a2772f414cd9ddf5995f77e4e823dfa1522af383addd465a3"}, + {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:ca65cced0d67a9039e93bcd98a369920e499bf98296844ff56ead01c9085321f"}, + {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:372c063f37480f62c1ae32dc3a1a0a5942b180c883f99789075a8a8ec3c4e709"}, + {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:827c92145b3b976b39430129c89d213b250dacbe5fce678e9a03940e6e848983"}, + {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:9b0124b9c17e9890f0819b2e7a5f65ec9a2f5aabd6c8e7ad090c1675cf70dee6"}, + {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:23136f5a564654eb61061ec6d5620a4c1ea32c8f552b65e9982a12b72bff601b"}, + {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f2524ec55b3e65cbe235a8b3c36e2af3b635be02ed05e20c94e70c5c943c009e"}, + {file = "multidict-6.9.1-cp314-cp314t-win32.whl", hash = "sha256:35ba0263bae5dd3ad5aad767cc9afc01a8598c7dae30f1b3b2de98b1b32c28bd"}, + {file = "multidict-6.9.1-cp314-cp314t-win_amd64.whl", hash = "sha256:7c8d5882ba25ac0282258be435d8a05aa0cbcacfce15799154a338f847f159b9"}, + {file = "multidict-6.9.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ac348379cf4de5538a0a213be1532d289aa801ec5d267c5909446b9ea2f8e2c3"}, + {file = "multidict-6.9.1-cp315-cp315-android_24_x86_64.whl", hash = "sha256:f04551dce5a7db8c9659f2e4245494c182d0663b83661803e08d46bfcae5eda1"}, + {file = "multidict-6.9.1-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:c0c88085affd35c33e124e36930c5ad96aff9294ce195eaa0fd9cec962b64a82"}, + {file = "multidict-6.9.1-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:a8b75dd3d3638d9a19f23e84af4ffab3b8940422c0df2da2a77005ef5aa3d7ea"}, + {file = "multidict-6.9.1-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:006c4478de0a1876f4834e14255776286f09b9846b505fe63f67f9d173a9487c"}, + {file = "multidict-6.9.1-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:2784090c30a586d5b45197bd9c32f87fb927216cde302f6cfd76d76577e90f08"}, + {file = "multidict-6.9.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:7c708566da8014b120a64b1eb6d200c6c0c8cb36296383723cdb6fc82038270b"}, + {file = "multidict-6.9.1-cp315-cp315-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:042fb0196047e786936a730bd302de83143950da45f2c16078da8f35e1cf7919"}, + {file = "multidict-6.9.1-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a2212a0c842c723d919ea4a22a9296cb6b244b386e4e6ea92adfc7fbf3095519"}, + {file = "multidict-6.9.1-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:fd882aa29bf402b62bf1fd7c19fd5df4b6528cf468a908864b39368572b662a9"}, + {file = "multidict-6.9.1-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c57541034d12b215ab0a2bfa371d1a8a198da18176d0426c27105b9161a6862d"}, + {file = "multidict-6.9.1-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d73fed4e37158ff00cd271871170b79e40138db51e625fd352fa17c6acb34f67"}, + {file = "multidict-6.9.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:79da2491348b30810728050b4a8ec0416f85884125c2fd44655b3d01150d9c3e"}, + {file = "multidict-6.9.1-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:b4da208a63434d21a3df64d29758e650fc4aa8cb05848554b76949c296539cca"}, + {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:877ca17fdcfdf5c397493a71e5ff97a87bb181417fe717fdadc77c08c09301ac"}, + {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:40aec5299e1ed71fbb988389059da381c3c1a60e0c649acceb2a35d9b128848e"}, + {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:4a409ccc42aefec904038695d5d7fd6d8f3af2721b7b6401d55135ec7d6d298e"}, + {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:0a5769559e3312dd96731fbe15b4abb6033368ac1cad5a98dadd21946a4c7d6c"}, + {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:03fac50ddfd8302175b77863a015eccfae76767cda5506eef86df559ba861e1f"}, + {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:5ecace251ccfa705bf3d7d35c5032cf750f5c629809740405697bce5c118c4a4"}, + {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:ecc89dbd4155b2f8a47f4bbd89242a35ed15e8e0ec581cab5ac65fa38407329d"}, + {file = "multidict-6.9.1-cp315-cp315-win32.whl", hash = "sha256:a3ffe881246d28a862f1985824f484cb7361f44d6b99c4c620436ef56462f38d"}, + {file = "multidict-6.9.1-cp315-cp315-win_amd64.whl", hash = "sha256:59c123d0e948d760a5f930f316cfefa07e8d632ab84327c0693ee6a88171154f"}, + {file = "multidict-6.9.1-cp315-cp315-win_arm64.whl", hash = "sha256:31199204b3ced121ff5407a2c342326a5d27e3870abbf94bd80dbd2451b7bc8f"}, + {file = "multidict-6.9.1-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:8879510a76940670517ea1cb589978da44b86e286ec3e50d664ef330817afce7"}, + {file = "multidict-6.9.1-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:aec65b53a07f580606593f877eefbb29a45939bfc0d3fe6e6d9f42b41b749f68"}, + {file = "multidict-6.9.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:14c56f73e78faa1f68bbb826197cd5871994e70e841b8590829c35912ece5c64"}, + {file = "multidict-6.9.1-cp315-cp315t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:38c9986f9ce50c459b10de216a05f4bd7ed5ac63887d56e500a52bb464b861ce"}, + {file = "multidict-6.9.1-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:15db6a102cbaf1949cf028ecf080aac76d20bcd29ad4e092574db6c6b7af78a5"}, + {file = "multidict-6.9.1-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:bd82c4977196681a499bb6ca9e462afbc5c91c1c15b6a991dfbd72733fea4dd2"}, + {file = "multidict-6.9.1-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bb58ba73a3f96f9a3e46b1fab69929d7edbbddb3133ee74b5c3c54074a53c4f1"}, + {file = "multidict-6.9.1-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:7c6eecfab7ce4cd9487ff8ba936fe38cdfd68c04faf3d5c710363c6a8e695659"}, + {file = "multidict-6.9.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9c62e71e6289d78c0108d8aeb495f8bd3cad4bc1632fedddc9297ddf287ecc20"}, + {file = "multidict-6.9.1-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:539c2cd5fed0947c135cd7eabaaac55f48300dfa1de0f3ca4edb5efa6606f471"}, + {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:3100d169ceb7bc8f05f89a6db11d1b21f119975fc26f29dc45a472e3569f0879"}, + {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:696477ad71385c4795e3b8e4cf10b0d2c28c2a1ca6a955e031cb1e62993e9ee3"}, + {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:f5844e7befc707367807586f550fa97e23dcfef0728f02b98c7bc498a961a5df"}, + {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:abc7c2e4b47bfe6a9aea434d3fdebb9597ee636e914e92ba352f2068b9142f4c"}, + {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:7ab379f95caee071a37cbd8be86d4c65accc651d391f9f97748fef006f38769c"}, + {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:557a4e1708df428ebe6c3081c83a273d275dad2446ce0d81fc648ac71afdb18d"}, + {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:475d04d5192eba487a3e2f935976340baa24529046e9c1c9c7a3b7bf80445ae1"}, + {file = "multidict-6.9.1-cp315-cp315t-win32.whl", hash = "sha256:10083a8a0f4e1b26b599889e90b9802504ce5d3f7722f925bbb7ca47dd22a7c1"}, + {file = "multidict-6.9.1-cp315-cp315t-win_amd64.whl", hash = "sha256:e96ca64383efa107262ee3949f047af5ee4f1845ba09463466c04d35a83bd3ec"}, + {file = "multidict-6.9.1-cp315-cp315t-win_arm64.whl", hash = "sha256:501ed8b02a5990c67a91c732843609d43a6be1f7576fcdfc867331239f37fbd3"}, + {file = "multidict-6.9.1-py3-none-any.whl", hash = "sha256:7bf6478188f4e47bf5686e8a33da4ae28bf43b1b2528d9ee144d28492bfac60b"}, + {file = "multidict-6.9.1.tar.gz", hash = "sha256:0f06e60fa190aa7abd0914c2a766736fdc8e9f34878c4346338534b73d1b20e2"}, ] [package.dependencies] diff --git a/reference.md b/reference.md index d76e846..61d1f6f 100644 --- a/reference.md +++ b/reference.md @@ -603,7 +603,7 @@ Cloning requires proof that the speaker agreed to it. Create a consent challenge 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` until they are switched off on 2026-11-21). `simba-3.2` also serves 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. +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 switched off on **2026-10-07** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 979eb96..87513d7 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -116,6 +116,7 @@ "consent_speaker_mismatch", "consent_recording_unusable", "consent_verification_unavailable", + "consent_verification_required", "watermark_audio_unusable", "watermark_detection_unavailable", "workspace_last_owner", diff --git a/src/speechify/voices/client.py b/src/speechify/voices/client.py index d541bf4..a7e639e 100644 --- a/src/speechify/voices/client.py +++ b/src/speechify/voices/client.py @@ -165,7 +165,7 @@ def create( 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` until they are switched off on 2026-11-21). `simba-3.2` also serves 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. + 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 switched off on **2026-10-07** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. Parameters ---------- @@ -508,7 +508,7 @@ async def create( 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` until they are switched off on 2026-11-21). `simba-3.2` also serves 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. + 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 switched off on **2026-10-07** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. Parameters ---------- diff --git a/src/speechify/voices/raw_client.py b/src/speechify/voices/raw_client.py index 14a331f..5351f3a 100644 --- a/src/speechify/voices/raw_client.py +++ b/src/speechify/voices/raw_client.py @@ -239,7 +239,7 @@ def create( 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` until they are switched off on 2026-11-21). `simba-3.2` also serves 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. + 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 switched off on **2026-10-07** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. Parameters ---------- @@ -1042,7 +1042,7 @@ async def create( 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` until they are switched off on 2026-11-21). `simba-3.2` also serves 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. + 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 switched off on **2026-10-07** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. Parameters ---------- From 7fda2c639b515a27922170360b772a63467c4279 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 21 Sep 2026 18:52:02 +0000 Subject: [PATCH 226/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index abcc02d..7e86890 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "5cd76933c9cb41c4e30d666a8d737a05733ccefb", + "originGitCommit": "5f2e8ae17e8fe1b22fe0018e780a85e09acb8818", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From a76b77c1cd53d7022b8a9c0f32fc629bc349d459 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 21 Sep 2026 18:54:59 +0000 Subject: [PATCH 227/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 8 ++++---- src/speechify/audio/client.py | 20 ++++++++++---------- src/speechify/audio/raw_client.py | 20 ++++++++++---------- src/speechify/types/get_stream_request.py | 2 +- src/speechify/types/model.py | 12 +++++++----- src/speechify/voices/client.py | 4 ++-- src/speechify/voices/raw_client.py | 4 ++-- 8 files changed, 37 insertions(+), 35 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 7e86890..9d8c32a 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "5f2e8ae17e8fe1b22fe0018e780a85e09acb8818", + "originGitCommit": "281c3fb218355d50c8a2699391700f6d8fa45927", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index 61d1f6f..a69bd99 100644 --- a/reference.md +++ b/reference.md @@ -103,7 +103,7 @@ Please refer to the list of the supported languages and recommendations regardin 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. -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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. +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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. @@ -271,8 +271,8 @@ Speech marks are produced by the streaming-native models. The default `simba-english` and `simba-multilingual` models never could: on a workspace pinned before API version `2026-09-21` they return 400 `speech_marks_unsupported` here, and from that version on they return -400 `model_retired` on every synthesis route. Both are switched off -entirely on 2026-11-21. +400 `model_retired` on every synthesis route. From 2026-11-21 both ids +are served by our current models, which do serve this route. For Base64-encoded audio and speech marks in one non-streamed JSON response, on any model, use POST /v1/audio/speech. @@ -601,7 +601,7 @@ 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` (and, on a workspace pinned before API version `2026-09-21`, on the retired `simba-english` and `simba-multilingual` until they are switched off on 2026-11-21). `simba-3.2` also serves cloned voices. +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` also serves 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 switched off on **2026-10-07** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. diff --git a/src/speechify/audio/client.py b/src/speechify/audio/client.py index d3ec491..bc1e311 100644 --- a/src/speechify/audio/client.py +++ b/src/speechify/audio/client.py @@ -81,7 +81,7 @@ def speech( 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. - 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetSpeechOptionsRequest] @@ -170,7 +170,7 @@ def stream( 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. - 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetStreamOptionsRequest] @@ -254,8 +254,8 @@ def stream_with_timestamps( `simba-english` and `simba-multilingual` models never could: on a workspace pinned before API version `2026-09-21` they return 400 `speech_marks_unsupported` here, and from that version on they return - 400 `model_retired` on every synthesis route. Both are switched off - entirely on 2026-11-21. + 400 `model_retired` on every synthesis route. From 2026-11-21 both ids + are served by our current models, which do serve this route. For Base64-encoded audio and speech marks in one non-streamed JSON response, on any model, use POST /v1/audio/speech. @@ -282,7 +282,7 @@ def stream_with_timestamps( 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. - 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetStreamOptionsRequest] @@ -400,7 +400,7 @@ async def speech( 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. - 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetSpeechOptionsRequest] @@ -497,7 +497,7 @@ async def stream( 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. - 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetStreamOptionsRequest] @@ -590,8 +590,8 @@ async def stream_with_timestamps( `simba-english` and `simba-multilingual` models never could: on a workspace pinned before API version `2026-09-21` they return 400 `speech_marks_unsupported` here, and from that version on they return - 400 `model_retired` on every synthesis route. Both are switched off - entirely on 2026-11-21. + 400 `model_retired` on every synthesis route. From 2026-11-21 both ids + are served by our current models, which do serve this route. For Base64-encoded audio and speech marks in one non-streamed JSON response, on any model, use POST /v1/audio/speech. @@ -618,7 +618,7 @@ async def stream_with_timestamps( 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. - 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetStreamOptionsRequest] diff --git a/src/speechify/audio/raw_client.py b/src/speechify/audio/raw_client.py index 197d857..7bf7c76 100644 --- a/src/speechify/audio/raw_client.py +++ b/src/speechify/audio/raw_client.py @@ -84,7 +84,7 @@ def speech( 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. - 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetSpeechOptionsRequest] @@ -296,7 +296,7 @@ def stream( 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. - 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetStreamOptionsRequest] @@ -511,8 +511,8 @@ def stream_with_timestamps( `simba-english` and `simba-multilingual` models never could: on a workspace pinned before API version `2026-09-21` they return 400 `speech_marks_unsupported` here, and from that version on they return - 400 `model_retired` on every synthesis route. Both are switched off - entirely on 2026-11-21. + 400 `model_retired` on every synthesis route. From 2026-11-21 both ids + are served by our current models, which do serve this route. For Base64-encoded audio and speech marks in one non-streamed JSON response, on any model, use POST /v1/audio/speech. @@ -539,7 +539,7 @@ def stream_with_timestamps( 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. - 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetStreamOptionsRequest] @@ -786,7 +786,7 @@ async def speech( 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. - 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetSpeechOptionsRequest] @@ -998,7 +998,7 @@ async def stream( 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. - 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetStreamOptionsRequest] @@ -1214,8 +1214,8 @@ async def stream_with_timestamps( `simba-english` and `simba-multilingual` models never could: on a workspace pinned before API version `2026-09-21` they return 400 `speech_marks_unsupported` here, and from that version on they return - 400 `model_retired` on every synthesis route. Both are switched off - entirely on 2026-11-21. + 400 `model_retired` on every synthesis route. From 2026-11-21 both ids + are served by our current models, which do serve this route. For Base64-encoded audio and speech marks in one non-streamed JSON response, on any model, use POST /v1/audio/speech. @@ -1242,7 +1242,7 @@ async def stream_with_timestamps( 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. - 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. options : typing.Optional[GetStreamOptionsRequest] diff --git a/src/speechify/types/get_stream_request.py b/src/speechify/types/get_stream_request.py index 8431a05..3385e41 100644 --- a/src/speechify/types/get_stream_request.py +++ b/src/speechify/types/get_stream_request.py @@ -31,7 +31,7 @@ class GetStreamRequest(UniversalBaseModel): """ 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. - 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 working until **2026-11-21**, when both are switched off for every API version. Migrate to `simba-3.2` (English) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. """ options: typing.Optional[GetStreamOptionsRequest] = None diff --git a/src/speechify/types/model.py b/src/speechify/types/model.py index 8e10c95..c375a2b 100644 --- a/src/speechify/types/model.py +++ b/src/speechify/types/model.py @@ -60,13 +60,15 @@ class Model(UniversalBaseModel): sunset_at: typing.Optional[dt.date] = pydantic.Field(default=None) """ - The date this model is switched off, as `YYYY-MM-DD`. Absent when no - shutdown is scheduled. + The date this model's own training is switched off, as `YYYY-MM-DD`. + Absent when no shutdown is scheduled. This is the deadline `retired_at`'s version pin runs out against: - from `sunset_at` the model is unreachable on EVERY API version, - including a workspace pinned below its retirement. Read the two - together - a pin buys time to migrate, not a permanent exemption. + 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() diff --git a/src/speechify/voices/client.py b/src/speechify/voices/client.py index a7e639e..029d3fd 100644 --- a/src/speechify/voices/client.py +++ b/src/speechify/voices/client.py @@ -163,7 +163,7 @@ 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` (and, on a workspace pinned before API version `2026-09-21`, on the retired `simba-english` and `simba-multilingual` until they are switched off on 2026-11-21). `simba-3.2` also serves cloned voices. + 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` also serves 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 switched off on **2026-10-07** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. @@ -506,7 +506,7 @@ 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` (and, on a workspace pinned before API version `2026-09-21`, on the retired `simba-english` and `simba-multilingual` until they are switched off on 2026-11-21). `simba-3.2` also serves cloned voices. + 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` also serves 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 switched off on **2026-10-07** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. diff --git a/src/speechify/voices/raw_client.py b/src/speechify/voices/raw_client.py index 5351f3a..d5b2443 100644 --- a/src/speechify/voices/raw_client.py +++ b/src/speechify/voices/raw_client.py @@ -237,7 +237,7 @@ 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` (and, on a workspace pinned before API version `2026-09-21`, on the retired `simba-english` and `simba-multilingual` until they are switched off on 2026-11-21). `simba-3.2` also serves cloned voices. + 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` also serves 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 switched off on **2026-10-07** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. @@ -1040,7 +1040,7 @@ 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` (and, on a workspace pinned before API version `2026-09-21`, on the retired `simba-english` and `simba-multilingual` until they are switched off on 2026-11-21). `simba-3.2` also serves cloned voices. + 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` also serves 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 switched off on **2026-10-07** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. From 09c622427c9464f57e655342fe3ddc52ea220d14 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 21 Sep 2026 21:31:13 +0000 Subject: [PATCH 228/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 9d8c32a..b876d05 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "281c3fb218355d50c8a2699391700f6d8fa45927", + "originGitCommit": "c977a06864c3de9667ca0a1609709961732d1658", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 87513d7..0ef7ec7 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -55,6 +55,7 @@ "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", From 9a0af3a59cf82a0ebd80d65afccbb7ae9ec4a011 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 22 Sep 2026 17:52:26 +0000 Subject: [PATCH 229/272] SDK regeneration --- .fern/metadata.json | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index b876d05..b34caaf 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "c977a06864c3de9667ca0a1609709961732d1658", + "originGitCommit": "d523a7efc8c014fc0158e097208d1eea05f306e7", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/pyproject.toml b/pyproject.toml index f18cb4d..33472ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ version = "4.0.1" description = "Official Speechify API SDK" readme = "README.md" authors = [ - "Speechify " + "Speechify " ] keywords = [ "speechify", From d80ce0d1cc75ddb73e931408fdd8c6912d57325a Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 23 Sep 2026 08:15:41 +0000 Subject: [PATCH 230/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index b34caaf..aca3e0b 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "d523a7efc8c014fc0158e097208d1eea05f306e7", + "originGitCommit": "a664128645f32c8b76e6552da195371bf5650dca", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 77c2d3afc6789be959aeb8c8aaaecc3ff33404d5 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 23 Sep 2026 08:49:39 +0000 Subject: [PATCH 231/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index aca3e0b..28aa9af 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "a664128645f32c8b76e6552da195371bf5650dca", + "originGitCommit": "5bbd91231af72de40a45f4d5facf39f4b672bde6", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 0dd79c7a80a6aca4ff72c7d1cce6433078443e1f Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 23 Sep 2026 09:05:59 +0000 Subject: [PATCH 232/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 28aa9af..9e52382 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "5bbd91231af72de40a45f4d5facf39f4b672bde6", + "originGitCommit": "9309d1f7bb087d15a9703ac445b083a84b89f304", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 4695f95f5751ec221a3cd0389333ea435d9e61cb Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 23 Sep 2026 10:19:05 +0000 Subject: [PATCH 233/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 9e52382..299bdc4 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "9309d1f7bb087d15a9703ac445b083a84b89f304", + "originGitCommit": "be7251c9f2b4f95156b64fc12b010f5ee7242060", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 0d1bc7b634c5d4f3804a72e26928738ed3abf26c Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 23 Sep 2026 12:16:58 +0000 Subject: [PATCH 234/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/model.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 299bdc4..bbef10b 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "be7251c9f2b4f95156b64fc12b010f5ee7242060", + "originGitCommit": "e58ca3a5fda8c73a55623a83bcb35bfd8075e257", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/model.py b/src/speechify/types/model.py index c375a2b..b6f6a18 100644 --- a/src/speechify/types/model.py +++ b/src/speechify/types/model.py @@ -60,8 +60,8 @@ class Model(UniversalBaseModel): sunset_at: typing.Optional[dt.date] = pydantic.Field(default=None) """ - The date this model's own training is switched off, as `YYYY-MM-DD`. - Absent when no shutdown is scheduled. + 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 From 253df1c7f43961c65268d33544b9df3cf155d5c9 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 23 Sep 2026 12:39:31 +0000 Subject: [PATCH 235/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 17 ++++++++-------- src/speechify/audio/client.py | 34 ++++++++++++++++--------------- src/speechify/audio/raw_client.py | 34 ++++++++++++++++--------------- src/speechify/types/model.py | 7 +++---- 5 files changed, 49 insertions(+), 45 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index bbef10b..9235be5 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "e58ca3a5fda8c73a55623a83bcb35bfd8075e257", + "originGitCommit": "1744763055f135154b777163a61517b6d7af999e", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index a69bd99..4452606 100644 --- a/reference.md +++ b/reference.md @@ -266,15 +266,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 never could: on a -workspace pinned before API version `2026-09-21` they return 400 -`speech_marks_unsupported` here, and from that version on they return -400 `model_retired` on every synthesis route. From 2026-11-21 both ids -are served by our current models, which do serve this route. +Every model this route accepts produces speech marks here. The default +`simba-3.0` and `simba-3.2` 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. diff --git a/src/speechify/audio/client.py b/src/speechify/audio/client.py index bc1e311..2585a95 100644 --- a/src/speechify/audio/client.py +++ b/src/speechify/audio/client.py @@ -249,15 +249,16 @@ 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 never could: on a - workspace pinned before API version `2026-09-21` they return 400 - `speech_marks_unsupported` here, and from that version on they return - 400 `model_retired` on every synthesis route. From 2026-11-21 both ids - are served by our current models, which do serve this route. + Every model this route accepts produces speech marks here. The default + `simba-3.0` and `simba-3.2` 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 ---------- @@ -585,15 +586,16 @@ 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 never could: on a - workspace pinned before API version `2026-09-21` they return 400 - `speech_marks_unsupported` here, and from that version on they return - 400 `model_retired` on every synthesis route. From 2026-11-21 both ids - are served by our current models, which do serve this route. + Every model this route accepts produces speech marks here. The default + `simba-3.0` and `simba-3.2` 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 ---------- diff --git a/src/speechify/audio/raw_client.py b/src/speechify/audio/raw_client.py index 7bf7c76..ce6b7e7 100644 --- a/src/speechify/audio/raw_client.py +++ b/src/speechify/audio/raw_client.py @@ -506,15 +506,16 @@ 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 never could: on a - workspace pinned before API version `2026-09-21` they return 400 - `speech_marks_unsupported` here, and from that version on they return - 400 `model_retired` on every synthesis route. From 2026-11-21 both ids - are served by our current models, which do serve this route. + Every model this route accepts produces speech marks here. The default + `simba-3.0` and `simba-3.2` 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 ---------- @@ -1209,15 +1210,16 @@ 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 never could: on a - workspace pinned before API version `2026-09-21` they return 400 - `speech_marks_unsupported` here, and from that version on they return - 400 `model_retired` on every synthesis route. From 2026-11-21 both ids - are served by our current models, which do serve this route. + Every model this route accepts produces speech marks here. The default + `simba-3.0` and `simba-3.2` 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 ---------- diff --git a/src/speechify/types/model.py b/src/speechify/types/model.py index b6f6a18..5788fe9 100644 --- a/src/speechify/types/model.py +++ b/src/speechify/types/model.py @@ -86,10 +86,9 @@ 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() From f8b8ce0c8637dc998e3bc92bddd53953cfbb14ff Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 23 Sep 2026 13:59:44 +0000 Subject: [PATCH 236/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 2 +- src/speechify/voices/client.py | 4 ++-- src/speechify/voices/raw_client.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 9235be5..a3c8c64 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "1744763055f135154b777163a61517b6d7af999e", + "originGitCommit": "f4cccc712544e1eafb52641f4742c8b1c05e2628", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index 4452606..82209cd 100644 --- a/reference.md +++ b/reference.md @@ -604,7 +604,7 @@ Cloning requires proof that the speaker agreed to it. Create a consent challenge 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` also serves 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 switched off on **2026-10-07** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date 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 switched off on **2026-09-23** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. diff --git a/src/speechify/voices/client.py b/src/speechify/voices/client.py index 029d3fd..35d85c3 100644 --- a/src/speechify/voices/client.py +++ b/src/speechify/voices/client.py @@ -165,7 +165,7 @@ def create( 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` also serves 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 switched off on **2026-10-07** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date 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 switched off on **2026-09-23** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. Parameters ---------- @@ -508,7 +508,7 @@ async def create( 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` also serves 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 switched off on **2026-10-07** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date 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 switched off on **2026-09-23** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. Parameters ---------- diff --git a/src/speechify/voices/raw_client.py b/src/speechify/voices/raw_client.py index d5b2443..9db8ff6 100644 --- a/src/speechify/voices/raw_client.py +++ b/src/speechify/voices/raw_client.py @@ -239,7 +239,7 @@ def create( 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` also serves 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 switched off on **2026-10-07** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date 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 switched off on **2026-09-23** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. Parameters ---------- @@ -1042,7 +1042,7 @@ async def create( 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` also serves 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 switched off on **2026-10-07** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date 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 switched off on **2026-09-23** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. Parameters ---------- From 527627881a248d8576fff5decc43a0541c1bd188 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 23 Sep 2026 14:20:30 +0000 Subject: [PATCH 237/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index a3c8c64..55b74fd 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "f4cccc712544e1eafb52641f4742c8b1c05e2628", + "originGitCommit": "f9d0ce31148605f5ca68795098142825f87f385f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 55359d50398a547a22b20373e5652f3b22a3052a Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 24 Sep 2026 18:56:24 +0000 Subject: [PATCH 238/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 55b74fd..d31a509 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "f9d0ce31148605f5ca68795098142825f87f385f", + "originGitCommit": "d78d55676a33669753de051bfa77a9a88f22a38e", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 4a078242b43a03761c1df766445183bb78a71a3b Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 26 Sep 2026 08:54:42 +0000 Subject: [PATCH 239/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index d31a509..6f812f7 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "d78d55676a33669753de051bfa77a9a88f22a38e", + "originGitCommit": "f4531e5cca6f9ea1fedde4cf0f94e80f69b72fd0", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 0ef7ec7..f831d1a 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -135,6 +135,7 @@ "content_policy_violation", "topup_not_in_plan", "credit_purchase_unpaid", + "credit_purchase_payment_in_progress", "tool_config_shared", "spend_cap_exceeded", "spend_budget_exceeded", From 80c3b2307c0f18c97ffe65e64e6eb2de97b7ded0 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 26 Sep 2026 10:04:56 +0000 Subject: [PATCH 240/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 6f812f7..c6b8489 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "f4531e5cca6f9ea1fedde4cf0f94e80f69b72fd0", + "originGitCommit": "af02f9ddb09c2cba10e11c757174a54d6a326689", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 0c129cbbf8472c2a1c69a506f814c900eb37a377 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 26 Sep 2026 10:10:24 +0000 Subject: [PATCH 241/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/audio/watermark/raw_client.py | 23 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index c6b8489..d3f2f96 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "af02f9ddb09c2cba10e11c757174a54d6a326689", + "originGitCommit": "c7a2ff80d75c1fefbe163f63bf003dfeb28889a5", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/audio/watermark/raw_client.py b/src/speechify/audio/watermark/raw_client.py index bed341a..8afbbf1 100644 --- a/src/speechify/audio/watermark/raw_client.py +++ b/src/speechify/audio/watermark/raw_client.py @@ -15,6 +15,7 @@ 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 @@ -314,6 +315,17 @@ def verify( ), ), ) + 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) @@ -611,6 +623,17 @@ async def verify( ), ), ) + 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) From 8aa3023a6718558ad943f8d5d648f203ce3f9a51 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 26 Sep 2026 18:20:20 +0000 Subject: [PATCH 242/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index d3f2f96..63580e0 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "c7a2ff80d75c1fefbe163f63bf003dfeb28889a5", + "originGitCommit": "e53d3acc2f5f5cee371dad16c5e833888720b132", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From a9db8f17642d5eea313bf5ec8011617c5f18120f Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 26 Sep 2026 19:09:08 +0000 Subject: [PATCH 243/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 63580e0..b44e887 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "e53d3acc2f5f5cee371dad16c5e833888720b132", + "originGitCommit": "a08db6767e9f3cd3fe7bab4a3416e92511eb694f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 964e70a0683d8eaafc605fe1020e23cd484eabb7 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 26 Sep 2026 19:15:22 +0000 Subject: [PATCH 244/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 2124 +++++++++++- src/speechify/__init__.py | 65 +- src/speechify/client.py | 57 + src/speechify/projects/__init__.py | 34 + src/speechify/projects/client.py | 1458 ++++++++ src/speechify/projects/raw_client.py | 3019 +++++++++++++++++ src/speechify/projects/types/__init__.py | 34 + .../types/delete_project_request_mode.py | 5 + src/speechify/types/__init__.py | 54 + src/speechify/types/billing_entitlements.py | 116 + ...illing_entitlements_max_llm_model_class.py | 5 + src/speechify/types/entitlements_response.py | 33 + src/speechify/types/list_projects_response.py | 21 + ...st_webhook_endpoint_deliveries_response.py | 25 + .../types/list_webhook_endpoints_response.py | 25 + 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 + .../types/webhook_delivery_status.py | 5 + src/speechify/types/webhook_endpoint.py | 103 + .../types/webhook_endpoint_delivery.py | 70 + 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 | 1814 ++++++++++ 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 | 193 ++ 37 files changed, 10730 insertions(+), 78 deletions(-) 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/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 b44e887..fd31af7 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "a08db6767e9f3cd3fe7bab4a3416e92511eb694f", + "originGitCommit": "14caaf1f3ef334131d1e0e7ed84dda6c37982936", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index 82209cd..7e15214 100644 --- a/reference.md +++ b/reference.md @@ -978,8 +978,8 @@ client.voices.download_sample(
-## Audio Watermark -
client.audio.watermark.detect(...) -> WatermarkDetectionResponse +## projects +
client.projects.list(...) -> ListProjectsResponse
@@ -991,20 +991,124 @@ client.voices.download_sample(
-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. +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). +
+
+
+
-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. +#### 🔌 Usage -Checks are rate-limited well below the synthesis budget: this is a -forensic question, not a data-plane call. +
+
+ +
+
+ +```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.
@@ -1027,8 +1131,8 @@ client = Speechify( environment=SpeechifyEnvironment.DEFAULT, ) -client.audio.watermark.detect( - audio="example_audio", +client.projects.create( + name="Production", ) ``` @@ -1045,12 +1149,10 @@ client.audio.watermark.detect(
-**audio:** `core.File` +**name:** `str` -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. +Project name; unique per workspace (case-insensitive), +surrounding whitespace is trimmed.
@@ -1070,7 +1172,7 @@ reports zero.
-
client.audio.watermark.verify(...) -> WatermarkVerificationResponse +
client.projects.get(...) -> Project
@@ -1082,34 +1184,136 @@ reports zero.
-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. +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. +
+
+
+
-`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. +#### 🔌 Usage -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. +```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.
@@ -1132,8 +1336,10 @@ client = Speechify( environment=SpeechifyEnvironment.DEFAULT, ) -client.audio.watermark.verify( - audio="example_audio", +client.projects.delete( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + mode="purge", + confirm="Staging", ) ``` @@ -1150,11 +1356,30 @@ client.audio.watermark.verify(
-**audio:** `core.File` +**project_id:** `str` — Project id (prefixed external id, `proj_...`). + +
+
-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. +
+
+ +**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.
@@ -1174,8 +1399,7 @@ worth acting on.
-## Voices ConsentChallenges -
client.voices.consent_challenges.create(...) -> ConsentChallenge +
client.projects.update(...) -> Project
@@ -1187,13 +1411,12 @@ worth acting on.
-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. +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.
@@ -1216,9 +1439,8 @@ client = Speechify( environment=SpeechifyEnvironment.DEFAULT, ) -client.voices.consent_challenges.create( - idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", - full_name="Jane Doe", +client.projects.update( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", ) ``` @@ -1235,19 +1457,23 @@ client.voices.consent_challenges.create(
-**full_name:** `str` +**project_id:** `str` — Project id (prefixed external id, `proj_...`). + +
+
-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. +**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.
@@ -1255,7 +1481,1025 @@ back as `validation_failed` reporting its measured length.
-**idempotency_key:** `typing.Optional[str]` +**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`, `current.hosted_apis_access` and +`current.waymark_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. +
+
+
+
+ +#### 🔌 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 @@ -1282,3 +2526,731 @@ response carries the `Idempotent-Replayed: true` header.
+## Webhooks Endpoints +
client.webhooks.endpoints.list(...) -> ListWebhookEndpointsResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +The caller's workspace's registered webhook endpoints. Cursor-paginated: +omit `cursor` for the first page; walk pages while `has_more` is true +(default page size 50, max 200). The signing `secret` is never returned +here — it is shown only when an endpoint is created or its secret is +rotated. Filter by delivery scope with `project_id`. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.webhooks.endpoints.list( + project_id="proj_01arz3ndektsv4rrffq69g5fav", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**cursor:** `typing.Optional[str]` — Opaque pagination cursor from a previous response. + +
+
+ +
+
+ +**limit:** `typing.Optional[int]` — Max items per page (default 50, max 200). + +
+
+ +
+
+ +**project_id:** `typing.Optional[str]` + +Filter endpoints by project scope: omit for everything the caller +may see, pass the literal `shared` for workspace-wide endpoints +only, or a `proj_...` id for endpoints scoped to that project. +Endpoints have no Default project - a null `project_id` means +workspace-wide, so the literal here is `shared`, never `default`. +Returns 404 project_not_found for a malformed id and for any +project outside your reach: a project-pinned API key or +service-account key reaches only its pinned project, and a member +holding project grants reaches only the granted projects. That 404 +is the same in every case and does not reveal whether such a +project exists - outside your reach a project is answered as +nonexistent, never as forbidden. `shared` is always inside your +reach. Inside it, a well-formed id that matches nothing yields an +empty page. + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.webhooks.endpoints.create(...) -> WebhookEndpoint +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Register a webhook endpoint. Speechify mints an HMAC signing secret +and returns it in the response `secret` field — exactly once. Store it +then; subsequent reads omit it (rotate it with the rotate-secret action +if lost). Select events via `enabled_events`: a list of catalog event +names or `["*"]` for every event. Optionally scope delivery to one +project with `project_id`; omit it for a workspace-wide endpoint that +receives every project's events. Limited to 50 endpoints per workspace. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.webhooks.endpoints.create( + url="https://example.com/speechify/webhooks", + enabled_events=[ + "project.spend_budget.warning" + ], + description="Example description.", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**url:** `str` + +HTTPS destination for event deliveries. Must be a publicly +reachable host: loopback, private, link-local, and cloud-metadata +addresses (and reserved hostnames like `localhost`) are rejected. + +
+
+ +
+
+ +**enabled_events:** `typing.List[str]` — Catalog event names to subscribe to, or `["*"]` for all events. + +
+
+ +
+
+ +**project_id:** `typing.Optional[str]` + +Optionally scope the endpoint to one project (prefixed +`proj_...` id): a scoped endpoint receives only that project's +events. Omit (or null) for workspace-wide - it receives every +project's events. An unknown id returns 404 project_not_found. +A project-pinned API key creates into its own project and +cannot name the workspace-wide tier. + +
+
+ +
+
+ +**include:** `typing.Optional[typing.List[str]]` + +Optional payload-shaping keys (see `WebhookEndpoint.include`). +Omit for the lean default. + +
+
+ +
+
+ +**api_version:** `typing.Optional[datetime.date]` + +Optionally pin the endpoint's payload shape to a dated version +(`YYYY-MM-DD`, see `WebhookEndpoint.api_version`). Omit to use the +workspace's current version. An unknown version is rejected. + +
+
+ +
+
+ +**description:** `typing.Optional[str]` + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.webhooks.endpoints.get(...) -> WebhookEndpoint +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Fetch a webhook endpoint by id. The signing secret is never returned. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.webhooks.endpoints.get( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**webhook_endpoint_id:** `str` — Webhook endpoint id (prefixed `whe_…`). + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.webhooks.endpoints.delete(...) +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Delete a webhook endpoint. In-flight deliveries stop; returns 204 on success. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.webhooks.endpoints.delete( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**webhook_endpoint_id:** `str` — Webhook endpoint id (prefixed `whe_…`). + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.webhooks.endpoints.update(...) -> WebhookEndpoint +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Partial update; omitted fields are left unchanged. Set `disabled` to pause delivery without deleting the endpoint. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.webhooks.endpoints.update( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", + url="https://example.com/webhook", + enabled_events=[ + "example" + ], + description="Example description.", + disabled=False, +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**webhook_endpoint_id:** `str` — Webhook endpoint id (prefixed `whe_…`). + +
+
+ +
+
+ +**url:** `typing.Optional[str]` + +HTTPS destination for event deliveries. Must be a publicly +reachable host: loopback, private, link-local, and cloud-metadata +addresses (and reserved hostnames like `localhost`) are rejected. + +
+
+ +
+
+ +**project_id:** `typing.Optional[str]` + +Re-scope the endpoint: a `proj_...` id narrows it to that +project's events, an explicit null makes it workspace-wide +(every project's events), omitted leaves it unchanged. The +signing secret and delivery history are untouched, so +re-scoping never requires redeploying your receiver. An +unknown id returns 404 project_not_found. A project-pinned API +key may only scope an endpoint to its own project. + +
+
+ +
+
+ +**enabled_events:** `typing.Optional[typing.List[str]]` + +
+
+ +
+
+ +**include:** `typing.Optional[typing.List[str]]` + +Payload-shaping keys (see `WebhookEndpoint.include`). Send `[]` to +clear back to the lean default. + +
+
+ +
+
+ +**api_version:** `typing.Optional[datetime.date]` + +Opt the endpoint into a different (typically newer) payload shape +(`YYYY-MM-DD`, see `WebhookEndpoint.api_version`). Omit to leave it +unchanged. An unknown version is rejected. + +
+
+ +
+
+ +**description:** `typing.Optional[str]` + +
+
+ +
+
+ +**disabled:** `typing.Optional[bool]` + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.webhooks.endpoints.rotate_secret(...) -> WebhookEndpoint +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Mint a new HMAC signing secret for the endpoint and return it in the +response `secret` field (shown exactly once). The previous secret stops +signing immediately, so accept both during your cutover window. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.webhooks.endpoints.rotate_secret( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**webhook_endpoint_id:** `str` — Webhook endpoint id (prefixed `whe_…`). + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.webhooks.endpoints.list_deliveries(...) -> ListWebhookEndpointDeliveriesResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Delivery attempts for one webhook endpoint, newest first. One row per +(endpoint, event, resource), updated in place across retries. Each row +includes the exact request payload and signed headers Speechify sent +(`request_body`, `request_headers`) and the response your server returned +(`last_status_code`, `last_response_body`, `last_response_headers`), so +you can verify the signature and debug failures. Cursor-paginated: omit +`cursor` for the first page; walk pages while `has_more` is true (default +page size 50, max 200). + +An endpoint that was not a target of an event has no row for it: a +project-scoped endpoint records nothing for another project's events. +An empty list therefore means either nothing matched or nothing +happened. To tell them apart, check the project's own activity first: +activity there with no delivery here is a defect to report; none there +means there was nothing to deliver. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.webhooks.endpoints.list_deliveries( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**webhook_endpoint_id:** `str` — Webhook endpoint id (prefixed `whe_…`). + +
+
+ +
+
+ +**cursor:** `typing.Optional[str]` — Opaque pagination cursor from a previous response. + +
+
+ +
+
+ +**limit:** `typing.Optional[int]` — Max items per page (default 50, max 200). + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ diff --git a/src/speechify/__init__.py b/src/speechify/__init__.py index 30b6a3d..c83c33f 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,23 @@ GetVoiceType, GetVoicesModel, GetVoicesModelName, + ListProjectsResponse, ListVoicesResponse, + ListWebhookEndpointDeliveriesResponse, + ListWebhookEndpointsResponse, Model, ModelsResponse, NestedChunk, PaginationMeta, + Project, + ProjectAuditEvent, + ProjectAuditEventType, + ProjectAuditResponse, + ProjectMember, + ProjectMembersResponse, + ProjectMonthlyBudgetStatus, + ProjectRestore, + ProjectStillRevokedCounts, SpeechChunkEvent, SpeechDoneEvent, SpeechErrorEvent, @@ -40,6 +55,9 @@ SpeechStreamEvent_SpeechError, WatermarkDetectionResponse, WatermarkVerificationResponse, + WebhookDeliveryStatus, + WebhookEndpoint, + WebhookEndpointDelivery, ) from .errors import ( BadGatewayError, @@ -55,7 +73,7 @@ UnauthorizedError, UnprocessableEntityError, ) - from . import audio, models, voices + from . import audio, models, projects, voices, webhooks, workspaces from ._default_clients import DefaultAioHttpClient, DefaultAsyncHttpxClient from .audio import ( GetSpeechRequestAudioFormat, @@ -65,6 +83,7 @@ ) 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] = { @@ -73,12 +92,16 @@ "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", @@ -98,15 +121,27 @@ "GetVoicesModel": ".types", "GetVoicesModelName": ".types", "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", "ServiceUnavailableError": ".errors", "SpeechChunkEvent": ".types", "SpeechDoneEvent": ".types", @@ -125,10 +160,16 @@ "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", } @@ -159,12 +200,16 @@ def __dir__(): "AudioStreamOutputFormat", "BadGatewayError", "BadRequestError", + "BillingEntitlements", + "BillingEntitlementsMaxLlmModelClass", "ConflictError", "ConsentChallenge", "ContentTooLargeError", "CreateVoicesRequestGender", "DefaultAioHttpClient", "DefaultAsyncHttpxClient", + "DeleteProjectRequestMode", + "EntitlementsResponse", "Error", "ErrorCode", "ErrorDetail", @@ -184,15 +229,27 @@ def __dir__(): "GetVoicesModel", "GetVoicesModelName", "InternalServerError", + "ListProjectsResponse", "ListVoicesRequestGender", "ListVoicesRequestType", "ListVoicesResponse", + "ListWebhookEndpointDeliveriesResponse", + "ListWebhookEndpointsResponse", "Model", "ModelsResponse", "NestedChunk", "NotFoundError", "PaginationMeta", "PaymentRequiredError", + "Project", + "ProjectAuditEvent", + "ProjectAuditEventType", + "ProjectAuditResponse", + "ProjectMember", + "ProjectMembersResponse", + "ProjectMonthlyBudgetStatus", + "ProjectRestore", + "ProjectStillRevokedCounts", "ServiceUnavailableError", "SpeechChunkEvent", "SpeechDoneEvent", @@ -211,8 +268,14 @@ def __dir__(): "UnprocessableEntityError", "WatermarkDetectionResponse", "WatermarkVerificationResponse", + "WebhookDeliveryStatus", + "WebhookEndpoint", + "WebhookEndpointDelivery", "__version__", "audio", "models", + "projects", "voices", + "webhooks", + "workspaces", ] diff --git a/src/speechify/client.py b/src/speechify/client.py index b2fa866..1439bbc 100644 --- a/src/speechify/client.py +++ b/src/speechify/client.py @@ -13,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: @@ -99,6 +102,9 @@ def __init__( 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): @@ -124,6 +130,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], @@ -229,6 +259,9 @@ def __init__( 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): @@ -254,6 +287,30 @@ 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 + + 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 + def _get_base_url(*, base_url: typing.Optional[str] = None, environment: SpeechifyEnvironment) -> str: if base_url is not None: 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..4e83f0f --- /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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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..b00af43 --- /dev/null +++ b/src/speechify/projects/raw_client.py @@ -0,0 +1,3019 @@ +# 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", + 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", + 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)}", + 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)}", + 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)}", + 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", + 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", + 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", + 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", + 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", + 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", + 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)}", + 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", + 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", + 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)}", + 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)}", + 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)}", + 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", + 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", + 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", + 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", + 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", + 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", + 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)}", + 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 17191f7..2bb6999 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,23 @@ 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 .speech_chunk_event import SpeechChunkEvent from .speech_done_event import SpeechDoneEvent from .speech_error_event import SpeechErrorEvent @@ -41,10 +56,16 @@ ) 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", @@ -60,11 +81,23 @@ "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", "SpeechChunkEvent": ".speech_chunk_event", "SpeechDoneEvent": ".speech_done_event", "SpeechErrorEvent": ".speech_error_event", @@ -75,6 +108,9 @@ "SpeechStreamEvent_SpeechError": ".speech_stream_event", "WatermarkDetectionResponse": ".watermark_detection_response", "WatermarkVerificationResponse": ".watermark_verification_response", + "WebhookDeliveryStatus": ".webhook_delivery_status", + "WebhookEndpoint": ".webhook_endpoint", + "WebhookEndpointDelivery": ".webhook_endpoint_delivery", } @@ -102,7 +138,10 @@ def __dir__(): __all__ = [ "AudioOutputFormat", "AudioStreamOutputFormat", + "BillingEntitlements", + "BillingEntitlementsMaxLlmModelClass", "ConsentChallenge", + "EntitlementsResponse", "Error", "ErrorCode", "ErrorDetail", @@ -118,11 +157,23 @@ def __dir__(): "GetVoiceType", "GetVoicesModel", "GetVoicesModelName", + "ListProjectsResponse", "ListVoicesResponse", + "ListWebhookEndpointDeliveriesResponse", + "ListWebhookEndpointsResponse", "Model", "ModelsResponse", "NestedChunk", "PaginationMeta", + "Project", + "ProjectAuditEvent", + "ProjectAuditEventType", + "ProjectAuditResponse", + "ProjectMember", + "ProjectMembersResponse", + "ProjectMonthlyBudgetStatus", + "ProjectRestore", + "ProjectStillRevokedCounts", "SpeechChunkEvent", "SpeechDoneEvent", "SpeechErrorEvent", @@ -133,4 +184,7 @@ def __dir__(): "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..47c6788 --- /dev/null +++ b/src/speechify/types/billing_entitlements.py @@ -0,0 +1,116 @@ +# 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. + """ + + 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. + """ + + waymark_access: bool = pydantic.Field() + """ + Whether Waymark API access 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/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_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/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/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/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..452530b --- /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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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( + "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..4a2fb5b --- /dev/null +++ b/src/speechify/webhooks/endpoints/raw_client.py @@ -0,0 +1,1814 @@ +# 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", + 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", + 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)}", + 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)}", + 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)}", + 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", + 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", + 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", + 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", + 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)}", + 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)}", + 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)}", + 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", + 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", + 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..1eab3e3 --- /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`, `current.hosted_apis_access` and + `current.waymark_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( + "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`, `current.hosted_apis_access` and + `current.waymark_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( + "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..ed97faa --- /dev/null +++ b/src/speechify/workspaces/raw_client.py @@ -0,0 +1,193 @@ +# 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`, `current.hosted_apis_access` and + `current.waymark_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", + 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`, `current.hosted_apis_access` and + `current.waymark_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", + 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) From b07379a59b9f4bc62930404559f2a2113696ed9d Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 26 Sep 2026 19:31:40 +0000 Subject: [PATCH 245/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index fd31af7..5c1a101 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "14caaf1f3ef334131d1e0e7ed84dda6c37982936", + "originGitCommit": "8a31ce8b585e7ec1bfe334ca26097eb326093578", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 2346a8ee3ec6b2d91182cbeb36425740ba72fe98 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 26 Sep 2026 21:00:28 +0000 Subject: [PATCH 246/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 5c1a101..14cdab3 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "8a31ce8b585e7ec1bfe334ca26097eb326093578", + "originGitCommit": "b455dd475d9a3ddf1fcff933463ce191445fe7b5", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 4cd60ca96ea14b9f4304e8cc3d76e76847fc71bf Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 27 Sep 2026 05:22:38 +0000 Subject: [PATCH 247/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 14cdab3..a6325d0 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "b455dd475d9a3ddf1fcff933463ce191445fe7b5", + "originGitCommit": "2864f34d70a7139a832ba5e0542a233729a58bab", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 06d634c43d5cdc8f87d740ac2ac75d5e36f28c37 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 27 Sep 2026 07:25:38 +0000 Subject: [PATCH 248/272] SDK regeneration --- .fern/metadata.json | 2 +- src/speechify/types/error_code.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index a6325d0..917a508 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "2864f34d70a7139a832ba5e0542a233729a58bab", + "originGitCommit": "444f23392d5c6a49616b9425532b193b6a6f8e78", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index f831d1a..5ec9df1 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", From c659858156fa4fb8fbf2803edd06e294d14f4bbe Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 30 Sep 2026 11:06:58 +0000 Subject: [PATCH 249/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 4 ++-- src/speechify/types/billing_entitlements.py | 5 ----- src/speechify/workspaces/client.py | 8 ++++---- src/speechify/workspaces/raw_client.py | 8 ++++---- 5 files changed, 11 insertions(+), 16 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 917a508..0abef30 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "444f23392d5c6a49616b9425532b193b6a6f8e78", + "originGitCommit": "945ae9c2a3e096061b9cf52486389d5a01e5e50e", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index 7e15214..6be0a8c 100644 --- a/reference.md +++ b/reference.md @@ -2166,8 +2166,8 @@ 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`, `current.hosted_apis_access` and -`current.waymark_access`, and size traffic from +`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 diff --git a/src/speechify/types/billing_entitlements.py b/src/speechify/types/billing_entitlements.py index 47c6788..490b2d5 100644 --- a/src/speechify/types/billing_entitlements.py +++ b/src/speechify/types/billing_entitlements.py @@ -50,11 +50,6 @@ class BillingEntitlements(UniversalBaseModel): Whether voice cloning is available. """ - waymark_access: bool = pydantic.Field() - """ - Whether Waymark API access is available. - """ - hosted_apis_access: bool = pydantic.Field() """ Whether stores and hosted APIs are available. Off on every plan; granted per workspace. diff --git a/src/speechify/workspaces/client.py b/src/speechify/workspaces/client.py index 1eab3e3..d62ec97 100644 --- a/src/speechify/workspaces/client.py +++ b/src/speechify/workspaces/client.py @@ -30,8 +30,8 @@ def get_entitlements(self, *, request_options: typing.Optional[RequestOptions] = 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`, `current.hosted_apis_access` and - `current.waymark_access`, and size traffic from + `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 @@ -85,8 +85,8 @@ async def get_entitlements( 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`, `current.hosted_apis_access` and - `current.waymark_access`, and size traffic from + `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 diff --git a/src/speechify/workspaces/raw_client.py b/src/speechify/workspaces/raw_client.py index ed97faa..0c2a9e1 100644 --- a/src/speechify/workspaces/raw_client.py +++ b/src/speechify/workspaces/raw_client.py @@ -30,8 +30,8 @@ def get_entitlements( 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`, `current.hosted_apis_access` and - `current.waymark_access`, and size traffic from + `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 @@ -118,8 +118,8 @@ async def get_entitlements( 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`, `current.hosted_apis_access` and - `current.waymark_access`, and size traffic from + `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 From 2b0ff7bd1faf37af0cd4507792616b74a08d7a5d Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 7 Oct 2026 07:14:49 +0000 Subject: [PATCH 250/272] SDK regeneration --- .fern/metadata.json | 2 +- poetry.lock | 290 +++++++++++++++++------------ reference.md | 2 +- src/speechify/voices/client.py | 4 +- src/speechify/voices/raw_client.py | 4 +- 5 files changed, 172 insertions(+), 130 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 0abef30..2c190e0 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "945ae9c2a3e096061b9cf52486389d5a01e5e50e", + "originGitCommit": "25ef10b0b502ef247068d7d28d7050c413c1dbca", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/poetry.lock b/poetry.lock index bff9599..765db97 100644 --- a/poetry.lock +++ b/poetry.lock @@ -15,132 +15,174 @@ files = [ [[package]] name = "aiohttp" -version = "3.14.3" +version = "3.14.4" 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.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:dea3b3653c1d0d6babd8ce09cb9e5a7776864315d9cfb1c569f926389874a261"}, + {file = "aiohttp-3.14.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3099a389e5b5900fc79c6f613015ff3f8fa06a519744e6001cc68a31ba418cac"}, + {file = "aiohttp-3.14.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:70247156fc76e92919f9aacb820556cb30289a54784299a31714d030bb604d84"}, + {file = "aiohttp-3.14.4-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fdf2d2a6ad402797422949f4a200a60d43e3a021695c8a7804aa1d5bbef22652"}, + {file = "aiohttp-3.14.4-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ba835fad8d4b5eaea0d34f9461cf499737a720a5f8bc6768d2f6d98a1d3ba8b5"}, + {file = "aiohttp-3.14.4-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0d4415ca5c9c8b24bc2f5733f870d4eab4929e680203559ba60131dd1a27852a"}, + {file = "aiohttp-3.14.4-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f6757e02c2c2b0d7985f57be87cf4a7c5b35708f849e1feaea3f77656ddb9dff"}, + {file = "aiohttp-3.14.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2a950bd8418ef54eccf5f9f517f08e37c1adab4bc50a470a0422ee1cc1032e29"}, + {file = "aiohttp-3.14.4-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:34cf6f2fe4fc1d7183e8cc0d8c48bbdda828a740bc372d8278126149714d343c"}, + {file = "aiohttp-3.14.4-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:bc0fbe4f79c3b156d754dd062718ffe404c3b31ca878d9d2b88ecdbc72ef8369"}, + {file = "aiohttp-3.14.4-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:d3d50a5a07a2b31a4369b86dd4a3acf3c2577c45091dbd5e884b198dec56480b"}, + {file = "aiohttp-3.14.4-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:de15c46a63f46da881d219e44a04778c40114c756e5575b5ea38143b20eb3713"}, + {file = "aiohttp-3.14.4-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:caa4c0fc9b25e8c679baac68337e9c00deb6baf6601fe6f07e8511469cc1ceba"}, + {file = "aiohttp-3.14.4-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:3647f8c090632c70abb1e80826e4ee24faea3f895f0283b60e91a0b17aea5e34"}, + {file = "aiohttp-3.14.4-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:3f3e8030169843fb652a60a3d32c206e03f260198aa398985a48b41cd7e42f0a"}, + {file = "aiohttp-3.14.4-cp310-cp310-win32.whl", hash = "sha256:a1205cbdddfca1428129bb6d23e0b292b09e681df951fa828145d83a63ffc0ca"}, + {file = "aiohttp-3.14.4-cp310-cp310-win_amd64.whl", hash = "sha256:e90980e0454a043f81b435309a089ac5deab883779557eb58d004f33990f61e4"}, + {file = "aiohttp-3.14.4-cp310-cp310-win_arm64.whl", hash = "sha256:e63eecf9a4b670a24055d5c0486128af16f83b02d9817abd685d3238940f8752"}, + {file = "aiohttp-3.14.4-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:eb0093ca0817019d539f0d27bdf98e823944e05bb7efd9d2337a45b92e4d1b06"}, + {file = "aiohttp-3.14.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:f482dc9c8309801b4259dd218609d3dae0a7bcdedeac56d90500eabaa0c23465"}, + {file = "aiohttp-3.14.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:aa800bb7c1d00e166493931f2ddacb982db913292503dc2f4884db1f2bc5f105"}, + {file = "aiohttp-3.14.4-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d90e4dae71b26597f6d1fd12af7d092ae67551edf0e524b73e0687214b79ee33"}, + {file = "aiohttp-3.14.4-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:5b681054b8c3b86aa6a0384b6ad7f5cb78dccbabab1f4a3a6793f98ad1378959"}, + {file = "aiohttp-3.14.4-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6dfe80b41bcf8d80d2125fb99a171adeb86db2fcb35c1a68e0226acba0ba7f03"}, + {file = "aiohttp-3.14.4-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:71e4a59c6a8c5a6ae8b0b696c32635913e8f526cc01448762eaf5a3c59df8a4f"}, + {file = "aiohttp-3.14.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f887c3b7fb3058fc1ccd917f52078540c18d938d12018cb9edd64b6811d20c57"}, + {file = "aiohttp-3.14.4-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0da4525e9ba145a11617d2cd7e44fe1acaf471f9c72a0cad28e72879c1020fbb"}, + {file = "aiohttp-3.14.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:f7e8d3c5caa44fdbee3eba1aa1417aa58c74c95d4089fe3c451911117fcbb2f3"}, + {file = "aiohttp-3.14.4-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:09092cf906c18c824b6b16881da5a89cc9cfa9b15344e496bcf880e9045bee33"}, + {file = "aiohttp-3.14.4-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:dfd144837e92264878bba6d3a7ffa8206668b21e87748740afd45d193e48c87e"}, + {file = "aiohttp-3.14.4-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:9413cffe4e0d654b9b524f9c99dde8cbdb37e0ed9a2c4edd2e63adbac6b374e8"}, + {file = "aiohttp-3.14.4-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:f50d719f97ba488dfb8e306cf8c8cc172ff0683ec0af53917b288229aa555ba5"}, + {file = "aiohttp-3.14.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:68ed4824d96b7afec1f3a8d7fba190fe282718041c5772e20298003e1e3e5d66"}, + {file = "aiohttp-3.14.4-cp311-cp311-win32.whl", hash = "sha256:d7a41d1427136828e6b11d3f3fd194d4357d5205a5b610be7ae07b1ba52ab974"}, + {file = "aiohttp-3.14.4-cp311-cp311-win_amd64.whl", hash = "sha256:2efbdb87e79d596325c4eefaef0f4495d701145e882351310ebc538e854dc7a3"}, + {file = "aiohttp-3.14.4-cp311-cp311-win_arm64.whl", hash = "sha256:ac6e6f90d9360e460c873f945f11dc8698db0a71fec6612823f1aaaab2c11faa"}, + {file = "aiohttp-3.14.4-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:55b0b335982b0db7117dff7f6a8e3aad43c4105f9e392ca04f9fc8d958a95cce"}, + {file = "aiohttp-3.14.4-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:2d0d8e435582b0d53009dac99e26a3d2be932ed7c9dbfcfc70f3fce1cf943bd5"}, + {file = "aiohttp-3.14.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:bf734016932d68e1324cfb638cac7a0866a83933a33badf15e836a7e24efb8c0"}, + {file = "aiohttp-3.14.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:322e3d741b3133bcbb981a41d4f9b8ac3545c18de49c662c2b1f4e1c770b98ad"}, + {file = "aiohttp-3.14.4-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:15a3bb5f90a4e515071f3617a45dfe26560beb834a6b6e108cdf4bc9e9719ec3"}, + {file = "aiohttp-3.14.4-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6c044e52df1a466af82cad3518c92ea80cc4ddcfea86966ff083bb34bab29bf4"}, + {file = "aiohttp-3.14.4-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d613d7d51bf06fe9a5e3aab86ce06d835bb0ceb1a31ea9e8766df4a403ae62a6"}, + {file = "aiohttp-3.14.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c5e93ab6e6330dce40f5b43996f1fc5f2543296d263a5e4b59ff09e73870b7d8"}, + {file = "aiohttp-3.14.4-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:20134dc8e68c67e7478124d516449428684c0545b2d3faa575691c8bcbd56678"}, + {file = "aiohttp-3.14.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:f0daef5ef012369dddc391c61f604111424aa9a96313a69fb899018b09d1b01e"}, + {file = "aiohttp-3.14.4-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:19290a108de0718b73bc69b86e788975c6a59855c671ebe2a98a07a6f968328f"}, + {file = "aiohttp-3.14.4-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:1494877625baeffab669f4a25a09ec4eea721b49e35363081a2a8e4231fe141f"}, + {file = "aiohttp-3.14.4-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:a779ce4bf099ce4ad2cdfed62f1ca536d435f53237c54ff40172fddada24d1b5"}, + {file = "aiohttp-3.14.4-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:0b4cec9fca876e2d4f4c6cb32b177390132d04618867689f43fefabf3f5c3980"}, + {file = "aiohttp-3.14.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:217707313e23aedde9bea67cf8365c7b138b549ae179121ef3f476cf67e3173a"}, + {file = "aiohttp-3.14.4-cp312-cp312-win32.whl", hash = "sha256:18a9fb9a3f6e6e63f4d27f9adeef313a2d3c69a84d31170a844623824e722534"}, + {file = "aiohttp-3.14.4-cp312-cp312-win_amd64.whl", hash = "sha256:69dcb02d33dfe415d5ee342cc63b7d320efcaf4b761701c7bd7bfb91c715481a"}, + {file = "aiohttp-3.14.4-cp312-cp312-win_arm64.whl", hash = "sha256:d36b0263e7c2fbf1750b9f35d4e7e48b0442d8c45e4a89e3e74168821fb014bb"}, + {file = "aiohttp-3.14.4-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:264b5a7568306590c44ae4a0237ad1715e35d447ea44ebf324e4c8fd9f78f67a"}, + {file = "aiohttp-3.14.4-cp313-cp313-android_24_x86_64.whl", hash = "sha256:17e5d7c7775d8dd8e894c7ef6ebfa26509de36868a9a6c7c4fcfaf6a1bf43d60"}, + {file = "aiohttp-3.14.4-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:e91dc8fe9cbd052d16f7f1267e285cf8bbac4d2194bd5741f05ef201c77ed09e"}, + {file = "aiohttp-3.14.4-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:8df6157d31703972aec9e3b93963f039ff06318301e30b007c3e941ff8a7ac42"}, + {file = "aiohttp-3.14.4-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:220912b351549dc736c59d104dc443fa615753102bb778a4e98f86e4d94bff6a"}, + {file = "aiohttp-3.14.4-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:2efa42b39bb3f524d5eca3760639b584afdd1143a6b047fda29910ffb75e4993"}, + {file = "aiohttp-3.14.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:7e7356059c8262d2c1fd95242e2b7b70fbc6eee3135bf470049cbec3e968b5b0"}, + {file = "aiohttp-3.14.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:fac247d0cc956d732df1211ac2d8a9999ec8dc1a92a90401de9d52e4ead546f7"}, + {file = "aiohttp-3.14.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6e2eb0f8b03b4f2bd154ed8cf7c1a119a1ad04808c258bf58f90138c83b8c6d5"}, + {file = "aiohttp-3.14.4-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7fbe827d27e0e369fd7bb88ceeaa5b46ea006e73e015b9dd77e3723a53162293"}, + {file = "aiohttp-3.14.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a70387146d03af9f047c629b71aa27d9594b3b31ec4c9c91e1a73d0d8bf38e0e"}, + {file = "aiohttp-3.14.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0d0934926fc65744e2fdd44ce68b2d79d5ee608a1e23f0596b35dd696519bb7c"}, + {file = "aiohttp-3.14.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ff4b366510c733974adb7a4102c094e4a6308e6f369315a4cf14d2d0a619cf82"}, + {file = "aiohttp-3.14.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:85fac7c99e0ac3dcbd6ae1c33774e0603bfc732ddb967a6fce4a731103c1888e"}, + {file = "aiohttp-3.14.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ef1e9c3b4a2300023a5dc865889ce532cfaf6798ba4ef78fbbefe738a9d23efa"}, + {file = "aiohttp-3.14.4-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:97e65916588be0f952b3307aaa8460c0771fa98dbea2dd27dabc9f5d84d53c3b"}, + {file = "aiohttp-3.14.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:840775cb39a9424f9edf142133a1192263ac5bd79117ad2a16602cef6a0c1e9d"}, + {file = "aiohttp-3.14.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:54f9256430ca040d58affbd551513de13a5cff7d065204fc52b9a1b0af09a049"}, + {file = "aiohttp-3.14.4-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:6112d5931bf12c776188cab81b82bbb17d86e2e1381f2ade6edc43e6b240f0cb"}, + {file = "aiohttp-3.14.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:facc6df39047c4732cbd885bb62e40df20885fcd709fc399e11f81b45ce0fff9"}, + {file = "aiohttp-3.14.4-cp313-cp313-win32.whl", hash = "sha256:7968634fa3a967a2bc0b9aeba1d5a1955501dcd7d0de44b96f7ebfb662797735"}, + {file = "aiohttp-3.14.4-cp313-cp313-win_amd64.whl", hash = "sha256:c0a894b0265d139cd4c2c8bd4643822cc289a4a5331e21e810881bd000ffb2dc"}, + {file = "aiohttp-3.14.4-cp313-cp313-win_arm64.whl", hash = "sha256:da16c3037178e72589d91de59536d271dffc92c2be2b47c38a45538cba54fd29"}, + {file = "aiohttp-3.14.4-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:749bfc43bb1df71bbe6ed215044d5412d786698fc5771d2037436ca49622f3c9"}, + {file = "aiohttp-3.14.4-cp314-cp314-android_24_x86_64.whl", hash = "sha256:c113e4b489d711f606ca278cd8dc89179746244ea841aa0638b1b134600afad0"}, + {file = "aiohttp-3.14.4-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:50969522bc7022026a2c7968e67da5c789f6b716b988edac55dc630390efd5df"}, + {file = "aiohttp-3.14.4-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:cbf92cd7a1c800cee244558dd5630abb45c1c1093ef7b0d546a99f526ff7a9eb"}, + {file = "aiohttp-3.14.4-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:fc76be08ff407fba717a769aff04ca1b4bf9ecfdcb5caadef84a563fdbbd146d"}, + {file = "aiohttp-3.14.4-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:9b416f995b68a921069e6ec61fa07f2ac3ff033d92e97a69f673af89f5bb954d"}, + {file = "aiohttp-3.14.4-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:2c9585101cfca10e74a07cc0ef2bdc6d90616e6750926b20456f429d0608f740"}, + {file = "aiohttp-3.14.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:3c4dcf611b095e7983421f49d01ffbed7ed574891533d606ea115fc23e7c4e90"}, + {file = "aiohttp-3.14.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f8f61a9b5fa56c58e3441f9dc64137f786232d40fb89127190d0e0f84e1e5865"}, + {file = "aiohttp-3.14.4-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:d43e538dfc85b705fd832620d050970ef5613b3869a7169b44a554b9dab9eee9"}, + {file = "aiohttp-3.14.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4135c4bb4b7682a7633fadc7170ea969d843f83aa7224e70111a20675105c985"}, + {file = "aiohttp-3.14.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:9055324f156a94fdf6dc9a825ae60f9a2947b88f591ea81ee80826633de62ae7"}, + {file = "aiohttp-3.14.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fb22c8e4b60385a9b414c70c6e8b2d0f4b23ff7fc4bb572ceb58297b228169f1"}, + {file = "aiohttp-3.14.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3b6945559a260112742ed58cde2165488d2fc51aeea34afbaa99d9371b43e1b5"}, + {file = "aiohttp-3.14.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:8f4078a90b174f15efb2c8725e8720c40dbd3b2cf6350dbc085c964a938d9de7"}, + {file = "aiohttp-3.14.4-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:f433c5654e32f72de3ef074d715eb5c7604eb6d28a5c2f3c9e5056f20fe6b306"}, + {file = "aiohttp-3.14.4-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:871035fe79c636b6bc126ed78df37d72b830dfc751612cb4b1040360edf2719f"}, + {file = "aiohttp-3.14.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:2617132524f66338f6c1d218cd16081576aefc40df4f2bcba338a99fbf67fec1"}, + {file = "aiohttp-3.14.4-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:d8bc326133272deee8ef337581550450e4bb735c0520be893b950a1f5baaf41a"}, + {file = "aiohttp-3.14.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:3ec57223e261b7fa9979c12dbce009ca53439be76cac3af27f860d3e4b1d6f7a"}, + {file = "aiohttp-3.14.4-cp314-cp314-win32.whl", hash = "sha256:7242043e71fc449a19a47d92f4e9fd1e0ae8d3f88488982381f422bf6d651218"}, + {file = "aiohttp-3.14.4-cp314-cp314-win_amd64.whl", hash = "sha256:019587c7b3a44917dd61bcb312fd5c034f341dc9851b83e7b41b65e08b68ca0f"}, + {file = "aiohttp-3.14.4-cp314-cp314-win_arm64.whl", hash = "sha256:60dc71d38db0988f37e78f6ad4a010a2f6355cfac3fff5f130cf5ef2231f3f0d"}, + {file = "aiohttp-3.14.4-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:674f53ab9d2794e2dd767619a3384bf1006f8d075e43c19d449a645f8ff641c2"}, + {file = "aiohttp-3.14.4-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:6d243221f73e5ac546c2ed9255100423e4bc092b08b944f23498e8cf3096c26c"}, + {file = "aiohttp-3.14.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0daa016eb74e7888ed5f9ceec6eea3158999c1c4a115ef5cbe88baa8d924f94c"}, + {file = "aiohttp-3.14.4-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:70c031a622aa20add05ebd234b90adaf6bf51c1c88cc305ec760721af83308c3"}, + {file = "aiohttp-3.14.4-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7df363fa7c38945a896e12c69af4a1a56cbd4152791d9e41fd0bac396b72de38"}, + {file = "aiohttp-3.14.4-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:02a508ba5ad91c4d730523584c0adc65882274bba5e37c33bc2f475e37577256"}, + {file = "aiohttp-3.14.4-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0cb3edece6fe6a944eaf97d803b88f606da6bc1600b1894c2969e78ffdc1fc29"}, + {file = "aiohttp-3.14.4-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:21ce1223b461bcc5fb389a7204001578f1c0b85c2da60a84d915ebb021294245"}, + {file = "aiohttp-3.14.4-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:35d5432f0dc1c8b71307e9112461b52f336da225e344283eec4779222c0a1dff"}, + {file = "aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:d6ec364493057c118d08292f7cd60865965c209167d8657b45643a26aef77495"}, + {file = "aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:70492983b7aed9e61bda82fe1ce80bcba9199610886443133783a288638923c0"}, + {file = "aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:a77776673331577147e9d25cd7833a72e8891b47556336cff06ba1569e488b99"}, + {file = "aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:73799000dd6fd5247094fd8e6d3e1eb871e41aab5cc35dff9d9f654cd230bc24"}, + {file = "aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:27b370fb532e707e8c96d04fa0c96301fb7dba2d50aaca57f6c456cdfffec5bd"}, + {file = "aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:884e0d1c707b6217fee3080b9b4029eee7551af788ee761010df19be158414b7"}, + {file = "aiohttp-3.14.4-cp314-cp314t-win32.whl", hash = "sha256:f2e3d34edb151d3e27f93a8338e2da33e2c7261cd4c879ce5f5fe280cc190ea5"}, + {file = "aiohttp-3.14.4-cp314-cp314t-win_amd64.whl", hash = "sha256:88cf889e51092537fe44adfbff96c2a22d6479d6f92b97b3d413fbfd0a4decf4"}, + {file = "aiohttp-3.14.4-cp314-cp314t-win_arm64.whl", hash = "sha256:ca450c6d42fda7c0bfaf0e200f32f77c5f2c960a33be1e14d197c84588b7f5f6"}, + {file = "aiohttp-3.14.4-cp315-cp315-android_24_arm64_v8a.whl", hash = "sha256:3b10799df72f66c30935bc661cb89e5ac2918debfc575e350e226fbaa846cbb7"}, + {file = "aiohttp-3.14.4-cp315-cp315-android_24_x86_64.whl", hash = "sha256:7ffd7f9dd39caccc6b2f68ec0339435ecad2b20f6ea2e2b3de91bbe464ac7137"}, + {file = "aiohttp-3.14.4-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:a0a7a227353f7693f73878ad14cd2623cafadd656ababcd20e2adfb7225172ea"}, + {file = "aiohttp-3.14.4-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:1c43b6af8e4708e8b3812a9ee4f79895207e12d555b7f6d70deb838e0011e12d"}, + {file = "aiohttp-3.14.4-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:97416b2b997e5e9b817e322b2f0a89b76c54cde22471f51ac17ac15e10901ba0"}, + {file = "aiohttp-3.14.4-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:ee2a5aa31e507c17841d592364f2148393b17f83bc2766e9211e1eb31ea72a70"}, + {file = "aiohttp-3.14.4-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:5d5d9843c34866e986dd24eef713452609e304550c471320ce7b54b3cfb1391e"}, + {file = "aiohttp-3.14.4-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:efcbf93e31b52c21665b6ebc489eb6fdb0dfd86b592edc677b5cffdfa7b11677"}, + {file = "aiohttp-3.14.4-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2f1a79977794592dcf6485ed964ec2448db527a1bc0c72ec89663658dad3a739"}, + {file = "aiohttp-3.14.4-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:515e7ac6d27509dc3ba2c35fb88970b00b9e7b07ee7cc947c8733dcd54ef5def"}, + {file = "aiohttp-3.14.4-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:185154ffa3b54765b5de96f464f41cfa476f8815a03854ae5e0fe4d48fb06e9c"}, + {file = "aiohttp-3.14.4-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:6aece59f77959628a22cd2ffe48b102cda9611d680e090f204385b3998a1190f"}, + {file = "aiohttp-3.14.4-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d7205aa6589f1ad1306c6994ff2e1ab5efabacf938f9ffd7682fb225c197b06a"}, + {file = "aiohttp-3.14.4-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f38c7b3ce60d55ac0f2a9fd2edc194789d043fefea15cfb7dcb40b7d5f561146"}, + {file = "aiohttp-3.14.4-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:b0a1274ee4ee6203c15a341cce87f9f3df8151d5496047b3608bb62bd969cffc"}, + {file = "aiohttp-3.14.4-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:69ce2407951516f413adf3132b88451eababd710ce631f83c81a9603a3640253"}, + {file = "aiohttp-3.14.4-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:b84d3d057c60eb8e0c2b457a1203e868d82709d3f0c272a4975dfd88c2414939"}, + {file = "aiohttp-3.14.4-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:4ecc84f69c9e217984f6877e832e4786a74567432c0bf2b7512919fbdfe18ade"}, + {file = "aiohttp-3.14.4-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:878f2d7950238b2b0a8cbb88054444a125f0cfbc77f54c811aca0483132a9be3"}, + {file = "aiohttp-3.14.4-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:6ff9d3a0e6935f1cb0a6685f9f4b3f0d3e406456d7a434a03cf309b8cd5d7a2e"}, + {file = "aiohttp-3.14.4-cp315-cp315-win32.whl", hash = "sha256:e07dfd7cd360f20be26dc2487ad4c7f21b0b39fdd593e9ebf37d2424ad52defb"}, + {file = "aiohttp-3.14.4-cp315-cp315-win_amd64.whl", hash = "sha256:921fc4f1ad549091bfc39cb5e93925b04f307f83517756a3111843851130efce"}, + {file = "aiohttp-3.14.4-cp315-cp315-win_arm64.whl", hash = "sha256:5be8af106f96fd625f6c264fa9faaaa9e0104089684d9015d2fa5b6eba6407c7"}, + {file = "aiohttp-3.14.4-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:e69727ec04a4608200ff32ec29478299df7657e2eb78c416ae338d0ca6662596"}, + {file = "aiohttp-3.14.4-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:f8b658dd3ef2ebd7708b311ed96ff7cb5edaca001a30018a091504ef492bcb1c"}, + {file = "aiohttp-3.14.4-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:3749e018123df1205161a73ba96d336e17e9cf6b947295e53a43571de420e7b1"}, + {file = "aiohttp-3.14.4-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8f28a3c4fca436b2e594090e7cd22558f5e93a30ca18516c436de982da6fc25a"}, + {file = "aiohttp-3.14.4-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e099aae21246992a1d84303ff262262d054c474e46cace33b0d5a69810c71877"}, + {file = "aiohttp-3.14.4-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:fafb521891e646d9cf5da89f01c75e7159d08be7254a024149630a698be28251"}, + {file = "aiohttp-3.14.4-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:1d385db2cd154bce0b3dd451cf2a52bec91ebb7be2c3a5d06b14b4391631d807"}, + {file = "aiohttp-3.14.4-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ae8a244889d8a53549851bf595b9f382f64acca57e8762da1ecb26ba786828f7"}, + {file = "aiohttp-3.14.4-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:681dde68ff8d8d5e7d5abcad4feb45bfb457a218310c919825e21fc36cac3d0b"}, + {file = "aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:b91a6441fcaed88ca7bca67726b189332df3ceb6ac0dfc98dcb9654bb723288c"}, + {file = "aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:f15dbbac49bc15eaff95c0b8166525c4050996af578c7be141e145f40ee2cf24"}, + {file = "aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:7abae043e87692d1c2adda1fab501bb0612d28c4a23eb082005c1e684f792dac"}, + {file = "aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:21f4624fb1051fc1aa10d57a636a80e829f7d0417462d6f1ce380b08fe1a904c"}, + {file = "aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:2e8dc3a0fdaf9d12b954d3d06cc4c355d91b17fb6c671715b593624ca4c379f8"}, + {file = "aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:1410b6f6e3d52ea7c02c950496522ce6e85d5543bf154bc80a6141e505251cfa"}, + {file = "aiohttp-3.14.4-cp315-cp315t-win32.whl", hash = "sha256:a65189a89f3e621f7c27a968b5131bbca29126e2b8517dc72b205747a39d4c96"}, + {file = "aiohttp-3.14.4-cp315-cp315t-win_amd64.whl", hash = "sha256:2b2c95f5f769eec92b552969db1f79ea0282058ce5131ed0f2fa540b4af3f14e"}, + {file = "aiohttp-3.14.4-cp315-cp315t-win_arm64.whl", hash = "sha256:54209fff79346ee1ef0d5cbf92fa80a5bb37396406bb4d932e5107f9c29b2d3f"}, + {file = "aiohttp-3.14.4-py3-none-any.whl", hash = "sha256:5c6758ba62aea282c537179cfc8474a90f2b5f7b089cc5ff66d8920d86a9bfdd"}, + {file = "aiohttp-3.14.4.tar.gz", hash = "sha256:831fc5bd39ec2517851e348f613ddb5447a47cf4b71cb09845af7ad7ed45d8f9"}, ] [package.dependencies] @@ -152,7 +194,7 @@ frozenlist = ">=1.1.1" multidict = ">=4.5,<7.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\""] @@ -538,14 +580,14 @@ 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]] diff --git a/reference.md b/reference.md index 6be0a8c..bcc583f 100644 --- a/reference.md +++ b/reference.md @@ -604,7 +604,7 @@ Cloning requires proof that the speaker agreed to it. Create a consent challenge 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` also serves 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 switched off on **2026-09-23** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. +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`. diff --git a/src/speechify/voices/client.py b/src/speechify/voices/client.py index 35d85c3..fcce95b 100644 --- a/src/speechify/voices/client.py +++ b/src/speechify/voices/client.py @@ -165,7 +165,7 @@ def create( 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` also serves 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 switched off on **2026-09-23** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. + 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`. Parameters ---------- @@ -508,7 +508,7 @@ async def create( 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` also serves 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 switched off on **2026-09-23** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. + 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`. Parameters ---------- diff --git a/src/speechify/voices/raw_client.py b/src/speechify/voices/raw_client.py index 9db8ff6..ca8638f 100644 --- a/src/speechify/voices/raw_client.py +++ b/src/speechify/voices/raw_client.py @@ -239,7 +239,7 @@ def create( 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` also serves 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 switched off on **2026-09-23** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. + 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`. Parameters ---------- @@ -1042,7 +1042,7 @@ async def create( 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` also serves 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 switched off on **2026-09-23** for every API version: until then each create on it answers with `Deprecation` and `Sunset` headers naming the date, and from that date a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. + 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`. Parameters ---------- From 300462760a56a991017e2a39dd9f32e40da5a72e Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 7 Oct 2026 12:43:23 +0000 Subject: [PATCH 251/272] SDK regeneration --- .fern/metadata.json | 2 +- poetry.lock | 114 +++++++++++--------- reference.md | 8 ++ src/speechify/__init__.py | 3 + src/speechify/audio/client.py | 31 ++++++ src/speechify/audio/raw_client.py | 31 ++++++ src/speechify/types/__init__.py | 3 + src/speechify/types/billing_entitlements.py | 14 +++ src/speechify/types/error_code.py | 1 + src/speechify/types/get_stream_request.py | 6 ++ src/speechify/types/safety_identifier.py | 10 ++ 11 files changed, 174 insertions(+), 49 deletions(-) create mode 100644 src/speechify/types/safety_identifier.py diff --git a/.fern/metadata.json b/.fern/metadata.json index 2c190e0..c4e5539 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "25ef10b0b502ef247068d7d28d7050c413c1dbca", + "originGitCommit": "7ebf08ef8dbbfda1cc229502d30bb6beec8b23c0", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/poetry.lock b/poetry.lock index 765db97..359bb3b 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1311,60 +1311,78 @@ 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]] diff --git a/reference.md b/reference.md index bcc583f..828a697 100644 --- a/reference.md +++ b/reference.md @@ -127,6 +127,14 @@ The legacy Simba 1.6 models `simba-english` and `simba-multilingual` are retired
+**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.
diff --git a/src/speechify/__init__.py b/src/speechify/__init__.py index c83c33f..1e90255 100644 --- a/src/speechify/__init__.py +++ b/src/speechify/__init__.py @@ -45,6 +45,7 @@ ProjectMonthlyBudgetStatus, ProjectRestore, ProjectStillRevokedCounts, + SafetyIdentifier, SpeechChunkEvent, SpeechDoneEvent, SpeechErrorEvent, @@ -142,6 +143,7 @@ "ProjectMonthlyBudgetStatus": ".types", "ProjectRestore": ".types", "ProjectStillRevokedCounts": ".types", + "SafetyIdentifier": ".types", "ServiceUnavailableError": ".errors", "SpeechChunkEvent": ".types", "SpeechDoneEvent": ".types", @@ -250,6 +252,7 @@ def __dir__(): "ProjectMonthlyBudgetStatus", "ProjectRestore", "ProjectStillRevokedCounts", + "SafetyIdentifier", "ServiceUnavailableError", "SpeechChunkEvent", "SpeechDoneEvent", diff --git a/src/speechify/audio/client.py b/src/speechify/audio/client.py index 2585a95..a9beca0 100644 --- a/src/speechify/audio/client.py +++ b/src/speechify/audio/client.py @@ -12,6 +12,7 @@ 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.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 @@ -52,6 +53,7 @@ def speech( model: typing.Optional[GetSpeechRequestModel] = OMIT, options: typing.Optional[GetSpeechOptionsRequest] = OMIT, output_format: typing.Optional[AudioOutputFormat] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> GetSpeechResponse: """ @@ -88,6 +90,9 @@ def speech( output_format : typing.Optional[AudioOutputFormat] The output audio format as a `codec_sampleRate_bitrate` string. Takes precedence over `audio_format` when set. + 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. @@ -119,6 +124,7 @@ def speech( model=model, options=options, output_format=output_format, + safety_identifier=safety_identifier, request_options=request_options, ) return _response.data @@ -133,6 +139,7 @@ def stream( model: typing.Optional[GetStreamRequestModel] = OMIT, options: typing.Optional[GetStreamOptionsRequest] = OMIT, output_format: typing.Optional[AudioStreamOutputFormat] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> typing.Iterator[bytes]: """ @@ -177,6 +184,9 @@ def stream( 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. + 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. @@ -213,6 +223,7 @@ def stream( model=model, options=options, output_format=output_format, + safety_identifier=safety_identifier, request_options=request_options, ) as r: yield from r.data @@ -227,6 +238,7 @@ def stream_with_timestamps( model: typing.Optional[GetStreamRequestModel] = OMIT, options: typing.Optional[GetStreamOptionsRequest] = OMIT, output_format: typing.Optional[AudioStreamOutputFormat] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> typing.Iterator[SpeechStreamEvent]: """ @@ -290,6 +302,9 @@ def stream_with_timestamps( 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. + 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. @@ -332,6 +347,7 @@ def stream_with_timestamps( model=model, options=options, output_format=output_format, + safety_identifier=safety_identifier, request_options=request_options, ) as r: yield from r.data @@ -372,6 +388,7 @@ async def speech( model: typing.Optional[GetSpeechRequestModel] = OMIT, options: typing.Optional[GetSpeechOptionsRequest] = OMIT, output_format: typing.Optional[AudioOutputFormat] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> GetSpeechResponse: """ @@ -408,6 +425,9 @@ async def speech( output_format : typing.Optional[AudioOutputFormat] The output audio format as a `codec_sampleRate_bitrate` string. Takes precedence over `audio_format` when set. + 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. @@ -447,6 +467,7 @@ async def main() -> None: model=model, options=options, output_format=output_format, + safety_identifier=safety_identifier, request_options=request_options, ) return _response.data @@ -461,6 +482,7 @@ async def stream( model: typing.Optional[GetStreamRequestModel] = OMIT, options: typing.Optional[GetStreamOptionsRequest] = OMIT, output_format: typing.Optional[AudioStreamOutputFormat] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> typing.AsyncIterator[bytes]: """ @@ -505,6 +527,9 @@ async def stream( 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. + 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. @@ -549,6 +574,7 @@ async def main() -> None: model=model, options=options, output_format=output_format, + safety_identifier=safety_identifier, request_options=request_options, ) as r: async for _chunk in r.data: @@ -564,6 +590,7 @@ async def stream_with_timestamps( model: typing.Optional[GetStreamRequestModel] = OMIT, options: typing.Optional[GetStreamOptionsRequest] = OMIT, output_format: typing.Optional[AudioStreamOutputFormat] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> typing.AsyncIterator[SpeechStreamEvent]: """ @@ -627,6 +654,9 @@ async def stream_with_timestamps( 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. + 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. @@ -677,6 +707,7 @@ async def main() -> None: model=model, options=options, output_format=output_format, + safety_identifier=safety_identifier, request_options=request_options, ) as r: async for _chunk in r.data: diff --git a/src/speechify/audio/raw_client.py b/src/speechify/audio/raw_client.py index ce6b7e7..9f9ef51 100644 --- a/src/speechify/audio/raw_client.py +++ b/src/speechify/audio/raw_client.py @@ -30,6 +30,7 @@ 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.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 @@ -55,6 +56,7 @@ def speech( model: typing.Optional[GetSpeechRequestModel] = OMIT, options: typing.Optional[GetSpeechOptionsRequest] = OMIT, output_format: typing.Optional[AudioOutputFormat] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[GetSpeechResponse]: """ @@ -91,6 +93,9 @@ def speech( output_format : typing.Optional[AudioOutputFormat] The output audio format as a `codec_sampleRate_bitrate` string. Takes precedence over `audio_format` when set. + 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. @@ -111,6 +116,7 @@ def speech( object_=options, annotation=GetSpeechOptionsRequest, direction="write" ), "output_format": output_format, + "safety_identifier": safety_identifier, "voice_id": voice_id, }, headers={ @@ -259,6 +265,7 @@ def stream( model: typing.Optional[GetStreamRequestModel] = OMIT, options: typing.Optional[GetStreamOptionsRequest] = OMIT, output_format: typing.Optional[AudioStreamOutputFormat] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> typing.Iterator[HttpResponse[typing.Iterator[bytes]]]: """ @@ -303,6 +310,9 @@ def stream( 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. + 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. @@ -329,6 +339,7 @@ def stream( object_=options, annotation=GetStreamOptionsRequest, direction="write" ), "output_format": output_format, + "safety_identifier": safety_identifier, "voice_id": voice_id, }, headers={ @@ -484,6 +495,7 @@ def stream_with_timestamps( model: typing.Optional[GetStreamRequestModel] = OMIT, options: typing.Optional[GetStreamOptionsRequest] = OMIT, output_format: typing.Optional[AudioStreamOutputFormat] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> typing.Iterator[HttpResponse[typing.Iterator[SpeechStreamEvent]]]: """ @@ -547,6 +559,9 @@ def stream_with_timestamps( 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. + 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. @@ -576,6 +591,7 @@ def stream_with_timestamps( object_=options, annotation=GetStreamOptionsRequest, direction="write" ), "output_format": output_format, + "safety_identifier": safety_identifier, "voice_id": voice_id, }, headers={ @@ -758,6 +774,7 @@ async def speech( model: typing.Optional[GetSpeechRequestModel] = OMIT, options: typing.Optional[GetSpeechOptionsRequest] = OMIT, output_format: typing.Optional[AudioOutputFormat] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[GetSpeechResponse]: """ @@ -794,6 +811,9 @@ async def speech( output_format : typing.Optional[AudioOutputFormat] The output audio format as a `codec_sampleRate_bitrate` string. Takes precedence over `audio_format` when set. + 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. @@ -814,6 +834,7 @@ async def speech( object_=options, annotation=GetSpeechOptionsRequest, direction="write" ), "output_format": output_format, + "safety_identifier": safety_identifier, "voice_id": voice_id, }, headers={ @@ -962,6 +983,7 @@ async def stream( model: typing.Optional[GetStreamRequestModel] = OMIT, options: typing.Optional[GetStreamOptionsRequest] = OMIT, output_format: typing.Optional[AudioStreamOutputFormat] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> typing.AsyncIterator[AsyncHttpResponse[typing.AsyncIterator[bytes]]]: """ @@ -1006,6 +1028,9 @@ async def stream( 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. + 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. @@ -1032,6 +1057,7 @@ async def stream( object_=options, annotation=GetStreamOptionsRequest, direction="write" ), "output_format": output_format, + "safety_identifier": safety_identifier, "voice_id": voice_id, }, headers={ @@ -1188,6 +1214,7 @@ async def stream_with_timestamps( model: typing.Optional[GetStreamRequestModel] = OMIT, options: typing.Optional[GetStreamOptionsRequest] = OMIT, output_format: typing.Optional[AudioStreamOutputFormat] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> typing.AsyncIterator[AsyncHttpResponse[typing.AsyncIterator[SpeechStreamEvent]]]: """ @@ -1251,6 +1278,9 @@ async def stream_with_timestamps( 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. + 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. @@ -1280,6 +1310,7 @@ async def stream_with_timestamps( object_=options, annotation=GetStreamOptionsRequest, direction="write" ), "output_format": output_format, + "safety_identifier": safety_identifier, "voice_id": voice_id, }, headers={ diff --git a/src/speechify/types/__init__.py b/src/speechify/types/__init__.py index 2bb6999..3e75c44 100644 --- a/src/speechify/types/__init__.py +++ b/src/speechify/types/__init__.py @@ -44,6 +44,7 @@ from .project_monthly_budget_status import ProjectMonthlyBudgetStatus from .project_restore import ProjectRestore from .project_still_revoked_counts import ProjectStillRevokedCounts + from .safety_identifier import SafetyIdentifier from .speech_chunk_event import SpeechChunkEvent from .speech_done_event import SpeechDoneEvent from .speech_error_event import SpeechErrorEvent @@ -98,6 +99,7 @@ "ProjectMonthlyBudgetStatus": ".project_monthly_budget_status", "ProjectRestore": ".project_restore", "ProjectStillRevokedCounts": ".project_still_revoked_counts", + "SafetyIdentifier": ".safety_identifier", "SpeechChunkEvent": ".speech_chunk_event", "SpeechDoneEvent": ".speech_done_event", "SpeechErrorEvent": ".speech_error_event", @@ -174,6 +176,7 @@ def __dir__(): "ProjectMonthlyBudgetStatus", "ProjectRestore", "ProjectStillRevokedCounts", + "SafetyIdentifier", "SpeechChunkEvent", "SpeechDoneEvent", "SpeechErrorEvent", diff --git a/src/speechify/types/billing_entitlements.py b/src/speechify/types/billing_entitlements.py index 490b2d5..f87a375 100644 --- a/src/speechify/types/billing_entitlements.py +++ b/src/speechify/types/billing_entitlements.py @@ -35,6 +35,20 @@ class BillingEntitlements(UniversalBaseModel): 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. diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index 5ec9df1..d658c0c 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -134,6 +134,7 @@ "model_retired", "too_many_voices", "content_policy_violation", + "safety_identifier_blocked", "topup_not_in_plan", "credit_purchase_unpaid", "credit_purchase_payment_in_progress", diff --git a/src/speechify/types/get_stream_request.py b/src/speechify/types/get_stream_request.py index 3385e41..a10b43a 100644 --- a/src/speechify/types/get_stream_request.py +++ b/src/speechify/types/get_stream_request.py @@ -7,6 +7,7 @@ from .audio_stream_output_format import AudioStreamOutputFormat from .get_stream_options_request import GetStreamOptionsRequest from .get_stream_request_model import GetStreamRequestModel +from .safety_identifier import SafetyIdentifier class GetStreamRequest(UniversalBaseModel): @@ -40,6 +41,11 @@ 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. """ + 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/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. +""" From 06dd57d62f11c8ce6daba08d02494b12f262a09a Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 7 Oct 2026 19:44:11 +0000 Subject: [PATCH 252/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 4 ++++ src/speechify/types/error_code.py | 1 + src/speechify/voices/client.py | 4 ++++ src/speechify/voices/consent_challenges/client.py | 4 ++++ src/speechify/voices/consent_challenges/raw_client.py | 4 ++++ src/speechify/voices/raw_client.py | 4 ++++ 7 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index c4e5539..505cf08 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "7ebf08ef8dbbfda1cc229502d30bb6beec8b23c0", + "originGitCommit": "82aeed92ad4f84b6a054b478f0315389b90539f3", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index 828a697..205d978 100644 --- a/reference.md +++ b/reference.md @@ -613,6 +613,8 @@ Cloning requires proof that the speaker agreed to it. Create a consent challenge 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` also serves cloned voices. The previous flow, a `consent` form field carrying the speaker's name and email as a JSON string, was switched off on 2026-09-23 for every API version: a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. + +Voice cloning is not available in some jurisdictions. A request from one returns 403 `voice_cloning_unavailable_in_region` before consent verification runs, so it does not spend the challenge. The location is read from the IP address that sends the request, which is your server's when your backend calls the API; a location header in the request is ignored.
@@ -2446,6 +2448,8 @@ Returns a `phrase` for the speaker to read aloud and an `id` that identifies thi 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. diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index d658c0c..ce7f3d9 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -111,6 +111,7 @@ "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", diff --git a/src/speechify/voices/client.py b/src/speechify/voices/client.py index fcce95b..2089b61 100644 --- a/src/speechify/voices/client.py +++ b/src/speechify/voices/client.py @@ -167,6 +167,8 @@ def create( 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. + Parameters ---------- name : str @@ -510,6 +512,8 @@ async def create( 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. + Parameters ---------- name : str diff --git a/src/speechify/voices/consent_challenges/client.py b/src/speechify/voices/consent_challenges/client.py index e4e897f..6a06777 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 @@ -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 diff --git a/src/speechify/voices/consent_challenges/raw_client.py b/src/speechify/voices/consent_challenges/raw_client.py index b9bdd29..846d071 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 @@ -229,6 +231,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 diff --git a/src/speechify/voices/raw_client.py b/src/speechify/voices/raw_client.py index ca8638f..ae56cfd 100644 --- a/src/speechify/voices/raw_client.py +++ b/src/speechify/voices/raw_client.py @@ -241,6 +241,8 @@ def create( 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. + Parameters ---------- name : str @@ -1044,6 +1046,8 @@ async def create( 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. + Parameters ---------- name : str From c9ddc1b2fec1e4e77cd47648c858e03c2d3cf424 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 8 Oct 2026 10:38:24 +0000 Subject: [PATCH 253/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 12 +++++------ src/speechify/types/list_voices_response.py | 6 +++--- src/speechify/voices/client.py | 24 ++++++++++----------- src/speechify/voices/raw_client.py | 24 ++++++++++----------- 5 files changed, 34 insertions(+), 34 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 505cf08..92ab3b1 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "82aeed92ad4f84b6a054b478f0315389b90539f3", + "originGitCommit": "0497f55f4e627946719a211b1c8a6d3e989c4736", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index 205d978..7e5d1c3 100644 --- a/reference.md +++ b/reference.md @@ -449,12 +449,12 @@ 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. 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. +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 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/voices/client.py b/src/speechify/voices/client.py index 2089b61..ba8a50c 100644 --- a/src/speechify/voices/client.py +++ b/src/speechify/voices/client.py @@ -56,12 +56,12 @@ def list( 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. 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. + 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 @@ -392,12 +392,12 @@ async def list( 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. 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. + 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 diff --git a/src/speechify/voices/raw_client.py b/src/speechify/voices/raw_client.py index ae56cfd..af34987 100644 --- a/src/speechify/voices/raw_client.py +++ b/src/speechify/voices/raw_client.py @@ -59,12 +59,12 @@ def list( 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. 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. + 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 @@ -861,12 +861,12 @@ async def list( 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. 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. + 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 From 80d380e9e85a4923be7cca9c810efe3832d16f29 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 9 Oct 2026 08:00:52 +0000 Subject: [PATCH 254/272] SDK regeneration --- .fern/metadata.json | 2 +- README.md | 31 ++ poetry.lock | 279 ++++++++++-------- src/speechify/__init__.py | 63 ++++ src/speechify/audio/__init__.py | 63 ++++ src/speechify/audio/raw_client.py | 6 + src/speechify/audio/types/__init__.py | 63 ++++ .../audio/types/audio_stream_input_model.py | 5 + .../types/audio_stream_input_output_format.py | 30 ++ .../types/audio_stream_input_speech_marks.py | 5 + 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 + 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 | 180 +++++++++++ .../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/raw_client.py | 4 + src/speechify/client.py | 21 +- src/speechify/core/client_wrapper.py | 19 +- src/speechify/environment.py | 15 +- src/speechify/models/raw_client.py | 2 + src/speechify/projects/raw_client.py | 24 ++ .../voices/consent_challenges/raw_client.py | 2 + src/speechify/voices/raw_client.py | 10 + .../webhooks/endpoints/raw_client.py | 14 + src/speechify/workspaces/raw_client.py | 2 + 38 files changed, 1020 insertions(+), 164 deletions(-) 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/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 diff --git a/.fern/metadata.json b/.fern/metadata.json index 92ab3b1..1606669 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "0497f55f4e627946719a211b1c8a6d3e989c4736", + "originGitCommit": "fa00f50755618fce1b873886ff1b892bedbe4819", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/README.md b/README.md index 0dc6bbc..3981fcc 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ The Speechify Python library provides convenient access to the Speechify APIs fr - [Exception Handling](#exception-handling) - [Streaming](#streaming) - [Pagination](#pagination) +- [Websockets](#websockets) - [Advanced](#advanced) - [Access Raw Response Data](#access-raw-response-data) - [Retries](#retries) @@ -155,6 +156,36 @@ for page in pager.iter_pages(): print(item) ``` +## Websockets + +The SDK supports both sync and async websocket connections for real-time, low-latency communication. Sockets can be created using the `connect` method, which returns a context manager. +You can either iterate through the returned `SocketClient` to process messages as they arrive, or attach handlers to respond to specific events. + +```python +from speechify import Speechify + +client = Speechify(...) + +# Connect to the websocket (Sync) +with client.audio.stream_input(...) as socket: + # Iterate over the messages as they arrive + for message in socket: + print(message) + + # Or, attach handlers to specific events + socket.on(EventType.MESSAGE, lambda message: print("received message", message)) + +import asyncio +from speechify import AsyncSpeechify + +client = AsyncSpeechify(...) + +# Connect to the websocket (Async) +async with client.audio.stream_input(...) as socket: + async for message in socket: + print(message) +``` + ## Advanced ### Access Raw Response Data diff --git a/poetry.lock b/poetry.lock index 359bb3b..0ae1aec 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1020,158 +1020,175 @@ files = [ [[package]] name = "pydantic" -version = "2.13.5" +version = "2.14.0" description = "Data validation using Python type hints" optional = false -python-versions = ">=3.9" +python-versions = ">=3.10" groups = ["main"] files = [ - {file = "pydantic-2.13.5-py3-none-any.whl", hash = "sha256:346a034f080da3755d8e9cb5e00e8b07de1d39e4f6e2c87d8ab7cafa0b269a73"}, - {file = "pydantic-2.13.5.tar.gz", hash = "sha256:51a9c5f7b2f8e636f04c6cada605d9b6a3bf1348fdf945a3d8869b19bba0ee08"}, + {file = "pydantic-2.14.0-py3-none-any.whl", hash = "sha256:15fab1bea6f1dc5003b54fc2ecab230c1fd1dbade2acd4addc52d81e32416d4b"}, + {file = "pydantic-2.14.0.tar.gz", hash = "sha256:8a51a7aaddd60f55566d1f07bdd87b92b463903f39a8f26b71a06314cd1548ae"}, ] [package.dependencies] annotated-types = ">=0.6.0" -pydantic-core = "2.46.5" -typing-extensions = ">=4.14.1" -typing-inspection = ">=0.4.2" +pydantic-core = "2.50.0" +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.5" +version = "2.50.0" 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.5-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:657b40d6240c0a7b6a64b30f22d1e3aa631c7e846c621b0c0f6d1d75e2e15ea6"}, - {file = "pydantic_core-2.46.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ecb42011e12ee19cafbc312887cbf3546959fe02fbad44f272d4be5baa997615"}, - {file = "pydantic_core-2.46.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4dedce55295becb61921e386b99d4f2706045306e7fa52249a33004c837379fb"}, - {file = "pydantic_core-2.46.5-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:9f47b8a949e60f027f0aa0a6f6c7b7e9c55cbf4380d10b344e282fa4e7ab1e1b"}, - {file = "pydantic_core-2.46.5-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:200aa3dc9f8d54f0754f43247c0bad0999fdcfbfd2488384dd44f37279271fe6"}, - {file = "pydantic_core-2.46.5-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6d30e1a4f138b8951063e9a394752a9179b51da288ffa507b1e659222f4c1793"}, - {file = "pydantic_core-2.46.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:850a08d167dde16db8702c274f320c7be9d7da6f6dff2b58b18f9e815bd94f5b"}, - {file = "pydantic_core-2.46.5-cp310-cp310-manylinux_2_31_riscv64.whl", hash = "sha256:c3471e5c4a949c26ec00a77f01df59096aa9495877de76fd60a980f8ee6be461"}, - {file = "pydantic_core-2.46.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:3a3e26b6a8274211bddee2d0e4d0d42778f17a34510f49d2ec44b58abfc41736"}, - {file = "pydantic_core-2.46.5-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:fc5d783bd4a2387e97b8a2d5ec781cfb92b3d893bf82370548e99db5915935d3"}, - {file = "pydantic_core-2.46.5-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:356c8368cbc321050b169595683a2e1d63413b1e0e2868b330af9fc14c616d3f"}, - {file = "pydantic_core-2.46.5-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:eb7d8d0e5886a89a55d2eef490e272fa965a9d57c6b29a5b5088a7997ec2cad1"}, - {file = "pydantic_core-2.46.5-cp310-cp310-win32.whl", hash = "sha256:4d44cf99ddebf875f9b68cc267aa684c99b7b44fe63ee1cac4ec163807290069"}, - {file = "pydantic_core-2.46.5-cp310-cp310-win_amd64.whl", hash = "sha256:1e5aad1220a1192c42341c8fd4a8686657e73ab2a920c970bdc4de334fe3193d"}, - {file = "pydantic_core-2.46.5-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:a1dee1b804ff4d11c663636cf15d2ea47e9f79cd56c033fb1cbf08924842a48f"}, - {file = "pydantic_core-2.46.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:d625a186a65201c23a9e3b8ed9c47e90a026e03256608cc91851c6709096844f"}, - {file = "pydantic_core-2.46.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4f8507560a9284e1370bb048ed4282012fbef4e8d109875b95e884d228552061"}, - {file = "pydantic_core-2.46.5-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5f93c5fe914d75fbec9a49209b00da5f08e9e467d69da2b1510c81940cfd10be"}, - {file = "pydantic_core-2.46.5-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:aca6c767f552b21b10f774aeac128e828eafb796adfa1b666a18bf6321453c3a"}, - {file = "pydantic_core-2.46.5-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:701b2e04b560eeb4bddf7a25ab8ca476176e34fdbd9a0e18196f0d12d4685f0b"}, - {file = "pydantic_core-2.46.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:49776eab08766a08dfff7012f8b422dcd7e25e43b316eedf0477c24fcfa84b7c"}, - {file = "pydantic_core-2.46.5-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:a2468d93d181667a7abd66e1b64bb9f76f361b0fef8faddf687456453576f5ee"}, - {file = "pydantic_core-2.46.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:53feb344243bb9510a9dec7bf3cf1b64d88a98af5dc7872a5160465f8b198c8e"}, - {file = "pydantic_core-2.46.5-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:cd5214352ae68f3b5e9af7768bdc5253695ee069675db3480518420b3be881f2"}, - {file = "pydantic_core-2.46.5-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:9432f3598db432cb51c5b37fdbf29a60fcccc79e30d37a05022776a6bc4ab689"}, - {file = "pydantic_core-2.46.5-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:8feeac04b5794e513e710af2f9c87d49f31a6dc47967bb264a1fed61a8989bec"}, - {file = "pydantic_core-2.46.5-cp311-cp311-win32.whl", hash = "sha256:892a881d5f68c2b9ea304b7a6c2c60d9343df578a311b0f86b94bc8f1ffe8129"}, - {file = "pydantic_core-2.46.5-cp311-cp311-win_amd64.whl", hash = "sha256:40375c2d05acec10323e45dfe2077ac44bc74659008614af5069034e2cfc781c"}, - {file = "pydantic_core-2.46.5-cp311-cp311-win_arm64.whl", hash = "sha256:28a6a556cd3b6066bea827857f9d9cce027c96f776e512f544a581f9e42161f8"}, - {file = "pydantic_core-2.46.5-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:b9fe6fb92520e3fd61f2e49000b6911b188824f089b75973ea06d6267f0b476d"}, - {file = "pydantic_core-2.46.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a39ac25a9a2fa4072efdb429833c4a4c8009a51ff9eea3eeae131713cd27991e"}, - {file = "pydantic_core-2.46.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4fdc8b93a41521988916eeaa271173fcca7fa0803d62f87675aac8dcec1c8e29"}, - {file = "pydantic_core-2.46.5-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b98134087d9de723658d17a42c7d0da8d6e2ef08015dee7dc93889047315f5e4"}, - {file = "pydantic_core-2.46.5-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e652ab17569c94bff5475520f907b7148b8c24036a8ebbe5cf7cf7493d28579a"}, - {file = "pydantic_core-2.46.5-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d925f3d9afd05a8c0fb3a1031463a8d59ebe5e2afad297e29c78be19e13b4e62"}, - {file = "pydantic_core-2.46.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0fc5be0abd4a407e200d844b404e33639a554e7bd0d448e7b9ae181be4789ac2"}, - {file = "pydantic_core-2.46.5-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:816ff0a6550ffc06c098ccd2e0698600f9aa7da192a79eaa6f9af504a35db869"}, - {file = "pydantic_core-2.46.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c7ea57fc63aa7da93a1bd2d644e6577befae10c52c4e36377635eea1056a74f5"}, - {file = "pydantic_core-2.46.5-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:efd62a42486f1bda5d24cb4f63d15a3c7768375fe83d36f9417b4ad7a2fb20b3"}, - {file = "pydantic_core-2.46.5-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:2bc9419666990c06d7397831f2126a1ecc3594aaa3ff7de5bf2d066802f4e07b"}, - {file = "pydantic_core-2.46.5-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:18a09e1e1011b462f2e32774f25859ef1223d5c2b0546a633cf56654710721e0"}, - {file = "pydantic_core-2.46.5-cp312-cp312-win32.whl", hash = "sha256:5cb482e9e84c851f4e623fe4acc1ced89168cf1fe18f7089db4548c8f5bbb65b"}, - {file = "pydantic_core-2.46.5-cp312-cp312-win_amd64.whl", hash = "sha256:5e81740c09e310f5aa5cbd3e434a01c154d4bef93241c7877b39f211d2b78ba8"}, - {file = "pydantic_core-2.46.5-cp312-cp312-win_arm64.whl", hash = "sha256:f7b0ec93a2893de856652154d73b7ba622f26fa97726487dcac373de5f4c6084"}, - {file = "pydantic_core-2.46.5-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:b7ca9034437b6022f941f4857459562ee00a560b97e7cce8a0ec5a74fc6766e0"}, - {file = "pydantic_core-2.46.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f332f0e72a5a0400141f830744e141bf9f97917878dbe968669e8a7fefea78ff"}, - {file = "pydantic_core-2.46.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:193375f3548919d3f0b60936ca113ada3e38f264f91b9b8e0508efaad57be931"}, - {file = "pydantic_core-2.46.5-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:79bdfa52f843137045b2d081cc05c120ba6665d29b7559c2c47690906f39279f"}, - {file = "pydantic_core-2.46.5-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:24922243639cbdac66c75fcb6fd6495a9cb52b213d62f9a0d16f0310b1ff8038"}, - {file = "pydantic_core-2.46.5-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c76fe65e607be28c7fd4d56fc3c42b1583aa058ce3408b7ad0fd540171d31f9f"}, - {file = "pydantic_core-2.46.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6f7b393a8b3da82f5c1fc0751e6d01ac6c55b93c18226a60bdfba4a724efafd1"}, - {file = "pydantic_core-2.46.5-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:7ac031912d54f3d83ef3b3eb98dfabc1608802e2202263d25957eeed40b94761"}, - {file = "pydantic_core-2.46.5-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:837b396ca3d7b74091ca623f6cbd8351bd42d670a79c2683e79fb089f06a2de5"}, - {file = "pydantic_core-2.46.5-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:5ee239d575f80b08eca11f6e20f90c4c695de7825c67eefe6091fbf20dda648e"}, - {file = "pydantic_core-2.46.5-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:e80675d75ae2cd14372cb65cad5400d9347a3d3f6c13000183f22dfd027283ed"}, - {file = "pydantic_core-2.46.5-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:9c4b71f10dd532fb7a5cbc8f58707779e64f03a258c2bf8bfbaecfcd9970b519"}, - {file = "pydantic_core-2.46.5-cp313-cp313-win32.whl", hash = "sha256:97bf8de4d541598c94a59344eeb988a94c08ff76b5723c41f6567ec18c7892ea"}, - {file = "pydantic_core-2.46.5-cp313-cp313-win_amd64.whl", hash = "sha256:15f4a94963c95accac15b7b657bb177d3ad82bb90b0d0526d9a9b85079925db5"}, - {file = "pydantic_core-2.46.5-cp313-cp313-win_arm64.whl", hash = "sha256:d22a945598fb91236b4dd793a6e42e4f3dd7740bb5aace5ebd7d4c08d13bb575"}, - {file = "pydantic_core-2.46.5-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:c1c43ad4339643d70ebb8124e1305a7dab423001eff58bb41a0f731adbc98355"}, - {file = "pydantic_core-2.46.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1a353f84de772f423b5ffb11d7ae352fbbef0f446f3c0b0af0f8236d7233606e"}, - {file = "pydantic_core-2.46.5-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5086029a57366b8cf81b130a43908738095c270c21a8d7f0e8bdfdb89718e2f3"}, - {file = "pydantic_core-2.46.5-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:46c25dda9d092a06c08db76ffe0a197107904d0dfac653f7d5306bbcd6d6119c"}, - {file = "pydantic_core-2.46.5-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:37ea7b83c935e5b0d68c9449b82651accf78a10828b2c02b2f2d9e9496446c21"}, - {file = "pydantic_core-2.46.5-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e64e88d5585bea9ce95861079de72006c7fa6d3df4e3a3b65ba31eb979c15c9f"}, - {file = "pydantic_core-2.46.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:54d510bac3ee52247af28ed4bb18a1e799f040ac60fd2bf5ccd4c92f1fbe786f"}, - {file = "pydantic_core-2.46.5-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:a2a5e1d0ff29adddc9f6d6821a66302e4493f8ca898b715b6b1182c2c201ea0a"}, - {file = "pydantic_core-2.46.5-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:03b9666e41e35d8909852ba191a0607520f81b74eaf12ccf8737005dbb313821"}, - {file = "pydantic_core-2.46.5-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:a91c17edf6eea2402cb5457b4c89e99bc5ed1004aa34c4adf1d4258c1a5c22c2"}, - {file = "pydantic_core-2.46.5-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:b49924c73a235e969511bf2aabdff3beebf9820931f646c80274d5d780010c47"}, - {file = "pydantic_core-2.46.5-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:2cbd9a5eff05e51c447c34dfa4632145b26b09120cf04bd0c871e44c1a5e1c9a"}, - {file = "pydantic_core-2.46.5-cp314-cp314-win32.whl", hash = "sha256:2d5d76654becf5efd62c9e51c3756c67b49498b0c9a40884934c40807adbd074"}, - {file = "pydantic_core-2.46.5-cp314-cp314-win_amd64.whl", hash = "sha256:fa10ef4112775900e7a0661068635eb67b2ab824fbde764de6e0e21982a93db0"}, - {file = "pydantic_core-2.46.5-cp314-cp314-win_arm64.whl", hash = "sha256:045ab3b6d308439e32b81cc173bba5b9018bc6ed896afd0c65b3b009b1699af5"}, - {file = "pydantic_core-2.46.5-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:8816f3d218beb4b787de5c9759c259b8fa61f9dec42dc7811f320a33771778b7"}, - {file = "pydantic_core-2.46.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:bce57638e08ac148e5778cce7feb968307a727d66f8e2274a543d0cf0c9ad6a3"}, - {file = "pydantic_core-2.46.5-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:976e1128455aa595ea04c79ccfedff1aaeab96ee013fcc916bed120c4f0ad94f"}, - {file = "pydantic_core-2.46.5-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e7b891faeedeafba41b2983e5001a81b6a915b69544c7e7570d1989ce1c36ac7"}, - {file = "pydantic_core-2.46.5-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5f194189415698233dd1114a093a9b56e61e2c57e11b469be3b0506f46f0771c"}, - {file = "pydantic_core-2.46.5-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:82a36973cf8a2ef5406f4fe2edbf8ed0c99629535d959e0b100c76a32535a111"}, - {file = "pydantic_core-2.46.5-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cdbb78909f52b981d3b2d56b97328d71eb0b974c36bd77c920123a7ebb192829"}, - {file = "pydantic_core-2.46.5-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:52e24eacdb536cade636aa90fb851835222becff8484b7001fdc78cb0290f2aa"}, - {file = "pydantic_core-2.46.5-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:37ae34309d7bd8c0d61ab839668058f2a7962ea1fc51d105d2db228fe0618034"}, - {file = "pydantic_core-2.46.5-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:0cdbada856a1c69a7624a64d3d9aefe79300bd6ef827b43a4f265010b9b55184"}, - {file = "pydantic_core-2.46.5-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:545f26c504b27c3758439a5e6d9349931f0a04f855668d5fe323c89e82300a38"}, - {file = "pydantic_core-2.46.5-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:ff218293c9c806138dca139765e3b067621be52bcd93cdc14c7711be7ddc90a9"}, - {file = "pydantic_core-2.46.5-cp314-cp314t-win32.whl", hash = "sha256:97cf3eb53a8cccacf9d46686a0926186c9bfb5574f2ed66d3639d5fe117cd3a9"}, - {file = "pydantic_core-2.46.5-cp314-cp314t-win_amd64.whl", hash = "sha256:d2f9fc07a8042a8f95925b35c4f04f469707c981fc33245b6ca187cf5d2dd290"}, - {file = "pydantic_core-2.46.5-cp314-cp314t-win_arm64.whl", hash = "sha256:acf8a67ba51f4ca9ddbd0e6b3000a65ac51ab734661778b3e7ba64d99a710f2f"}, - {file = "pydantic_core-2.46.5-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:c583b927a8838dab890706a6fa7573fbb8b70e24000ef9f7238e2d6f6435a5ed"}, - {file = "pydantic_core-2.46.5-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:cdc8b74ecc48c0cb1e9607a05ec4e9e88db60a19ffcc9a1d5f9088ede40c8dc0"}, - {file = "pydantic_core-2.46.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8b10e3e8fd7ddc2bd915848a2768e44c15b22936f1cc54c462ad1164deb02655"}, - {file = "pydantic_core-2.46.5-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f077d0b97ab11fa7dcc633fca53515f290bca8a8a633e966d5b6d1879d9ed01a"}, - {file = "pydantic_core-2.46.5-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7b0fc826b16c55e561e5d2a0c5c77b051ba1d92808118c4e4b5390f5e0cf191d"}, - {file = "pydantic_core-2.46.5-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ef3fbbf161dc9351a2fe0422e51b129f9e97e42385bd0320b309c15f7d287dd8"}, - {file = "pydantic_core-2.46.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:978e7b97d4824b5be09c69fb70507cbde3b0323fc147332ca40a94d9a6a0ebbf"}, - {file = "pydantic_core-2.46.5-cp39-cp39-manylinux_2_31_riscv64.whl", hash = "sha256:9b68938dd5b0c783d88ff8e2dcc69451b5eb936fe212d516b21b9d5567f6d464"}, - {file = "pydantic_core-2.46.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:771cf63ae0b1b50dd22e5f3e3549fab5f3f4ff1635d352a9e1a97fe01c7b2e64"}, - {file = "pydantic_core-2.46.5-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:7c6be839a5a8312626b32029a415644a0846b420bc8b52b95b28cd92da162168"}, - {file = "pydantic_core-2.46.5-cp39-cp39-musllinux_1_1_armv7l.whl", hash = "sha256:895395f8918627b04efb1ad2a4cf605387143300ba03304cd1dfa6d03f5e095e"}, - {file = "pydantic_core-2.46.5-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:fc8515076c11f3cfdf4fb142dcca0fe384b1230a3b5415458ac84f3e0903ec13"}, - {file = "pydantic_core-2.46.5-cp39-cp39-win32.whl", hash = "sha256:3d2652072b2d774947ba5cf78a9e59644ac62ee572daf6dd2e1dfe905e15b2b7"}, - {file = "pydantic_core-2.46.5-cp39-cp39-win_amd64.whl", hash = "sha256:3aa166e99c4f2985407fb8714aebede877ecb5455cf321b606adca926d30d5a0"}, - {file = "pydantic_core-2.46.5-graalpy311-graalpy242_311_native-macosx_10_12_x86_64.whl", hash = "sha256:c14ad3bdc85ee7f318742c457ca3968a92126d144b15721c759033bfb06296c2"}, - {file = "pydantic_core-2.46.5-graalpy311-graalpy242_311_native-macosx_11_0_arm64.whl", hash = "sha256:0bddb4020d8f04175865ccd17eff3040874fc11fb593f424edb452653b4b947c"}, - {file = "pydantic_core-2.46.5-graalpy311-graalpy242_311_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2471fd51c61c610e1dcf7de44d7299283661654d11264ab4802b303368d69c47"}, - {file = "pydantic_core-2.46.5-graalpy311-graalpy242_311_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b10ec717381bdbfafef34607824db4c91de69ff085e4fca3b2af91b4fa17e68a"}, - {file = "pydantic_core-2.46.5-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:013d6f3483d81e02e7c328831808f336c8596ee33b4bd4026b9ffb1e960b8942"}, - {file = "pydantic_core-2.46.5-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:e9c134bb666dd54b778b9fc0d2b50cbb7f979b9e3716f26a88c9ab3b6fc1dd0f"}, - {file = "pydantic_core-2.46.5-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:347ec774390c87326a2e4929d58d3f7e8763a104d5d35f4cd595a4c952366433"}, - {file = "pydantic_core-2.46.5-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8e24d8f05fa2d28513d94e877e9c75ad66175376209b3977f916e240e623193c"}, - {file = "pydantic_core-2.46.5-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:ab4b66edffb32d9e951efb3814bd104b8367a7501b81b955cacb5726d897389f"}, - {file = "pydantic_core-2.46.5-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:337639ba62a11acde6ef3aeb08c8ea755f8ef1fe5e513356c0f36a2b0d7568b0"}, - {file = "pydantic_core-2.46.5-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:413a717a410d0c817ef5b786a059415550b3794e1d0c2abffd9efb93a3d9f7b4"}, - {file = "pydantic_core-2.46.5-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1e449def1945a462c464331254e5a44fca7c3b4f9aedf59ec2f50f8066dd8e25"}, - {file = "pydantic_core-2.46.5-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:a445486499897b88a7d6c310c88ed64dd37b1b59bfd7ae9107490bbb362f47d6"}, - {file = "pydantic_core-2.46.5-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:2d330aaba8621b1edcec8ae2c4050f63b84ccf6d98723a8f212e9684713abf0e"}, - {file = "pydantic_core-2.46.5-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:b6acfb46a814762367fb7ba0828b0a17d441b92ce249a0e007474c9072662dda"}, - {file = "pydantic_core-2.46.5-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:d0a24b40877af2de4950252be9d21eaf7fb07660f3c2cae1f56c6b599ada5266"}, - {file = "pydantic_core-2.46.5.tar.gz", hash = "sha256:10416c15b8839ecc4ef4d0885da76da6fd0f67333a0eb8aff6d93c4b8f2910fc"}, + {file = "pydantic_core-2.50.0-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:f8df36f964c21168e345f914855e3b428e2cb6e1f739c8ef5963b77d86dd84ae"}, + {file = "pydantic_core-2.50.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:eadf95aab7301ac651628f097e521d742d0fb5f732155ebfd00d07933045d81c"}, + {file = "pydantic_core-2.50.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:02ec3675d606a355523e1c52bf5aa4116776f8d273dba03d8336a5a3ae984e15"}, + {file = "pydantic_core-2.50.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a3e8ee6386f6b68e2f818ccf422ccfafc59bcff10862b52c7819db3aa0352dfc"}, + {file = "pydantic_core-2.50.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:93502b3c762149a5904316ef52f0ed1ea721e0f4c8431f964f140ed15fa61926"}, + {file = "pydantic_core-2.50.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f8cc61ad94215ab98e5cbcdea2cfde45e11bb0136ee980e1240b721635e55790"}, + {file = "pydantic_core-2.50.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cbce1b5a2a88a465d7865df61b7e4f8829ddc49b4fa841e9b241815c9d67c3b2"}, + {file = "pydantic_core-2.50.0-cp310-cp310-manylinux_2_31_riscv64.whl", hash = "sha256:2568b190075acd058513dca34f7fddc7252fc958c1591cb67a554338fc9a81b2"}, + {file = "pydantic_core-2.50.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:468f7e67cfbd8231f442af6726449efe46f2be0e5a57b44fba7ccd92c6f121c4"}, + {file = "pydantic_core-2.50.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:c19500343957f254ecf3e60174f4a4cdd21690e0e1677740a8017d28ab2a2a4b"}, + {file = "pydantic_core-2.50.0-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:d14d04058923d526a552fc3ebe8b0b0353c19516431cee196502b53119278fd9"}, + {file = "pydantic_core-2.50.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:5d0b210c871486f5acb56d87bf00e3c5d83aab6a1ef3042629fa6ae0172fcf47"}, + {file = "pydantic_core-2.50.0-cp310-cp310-win32.whl", hash = "sha256:6e1ec4176c3b56017745937dfd4a3ec6df55f7f0e66991124499f3f79f8f8d1f"}, + {file = "pydantic_core-2.50.0-cp310-cp310-win_amd64.whl", hash = "sha256:56178c4116fc0c859786875ff4acc1c8d52678f095c312b0eff2a2dd9d6f8d5f"}, + {file = "pydantic_core-2.50.0-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:55684bc850059fc85ff8dc21a3e342b722d3178993c49ebdfdee8b698a432720"}, + {file = "pydantic_core-2.50.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:c3ae59461625518449f800acc4f874753ae96fcf993c47a27be07beb651371fd"}, + {file = "pydantic_core-2.50.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a7080928078ff56c07da393392f772054e93a39c8033dc9c04547bd949f9b614"}, + {file = "pydantic_core-2.50.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4b1bae96f41806b14dd8bb1568d39b5e33b5af7fb27f7be36c78b8fa84708917"}, + {file = "pydantic_core-2.50.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8facaf0a16121ac82cc403a71399a061b74624c1ae2034eec9ed6169c5d16ecb"}, + {file = "pydantic_core-2.50.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:610e9f483ac53c5cc59c2d3687224029b54eb494feec2d40a2bcfdd187635192"}, + {file = "pydantic_core-2.50.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ac223ea031905319a64d0df116979ae438b42d6265862a3d63c9f9808c2905a7"}, + {file = "pydantic_core-2.50.0-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:75b451ec5e64a1d4b803317f34710131742ff2e42f4bf5403f597d0af857d7d8"}, + {file = "pydantic_core-2.50.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:7eee44c3f1f8acc220a743a5ed5588949a4f18b33df4cfbef2b1277470285401"}, + {file = "pydantic_core-2.50.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:f44107b5fdfecc03438feb165431652c8006650471326e53dd86d4c19124f5c5"}, + {file = "pydantic_core-2.50.0-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:718d05d4e078c7828f40ad3e310870fe4b837d93a32e7e8497a080c1f1040490"}, + {file = "pydantic_core-2.50.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:031867348c98ab49c6d3a16ad39738369ea48da59900d76d71c1e64de71fe79b"}, + {file = "pydantic_core-2.50.0-cp311-cp311-win32.whl", hash = "sha256:e41f9d1d9240e8e0d8a670ad3e66c0c00f0b1f7150a31bc6c445a4f87c1cb3ba"}, + {file = "pydantic_core-2.50.0-cp311-cp311-win_amd64.whl", hash = "sha256:90874428bc6678b26434336c77931c9734ecebedf50132c179205e5a9908761d"}, + {file = "pydantic_core-2.50.0-cp311-cp311-win_arm64.whl", hash = "sha256:b9be297ffe1015bfb2db4a23b6e1fec7e48361cf7c7b4f4f6bbdd008451b0a7b"}, + {file = "pydantic_core-2.50.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:79e8fc9c135ef628c45cb8aa5deef8d21de13d33bb4c59a859fa73d335ceb40a"}, + {file = "pydantic_core-2.50.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:0abe1b44d361b948404b6b2ed80be2583e0077340572e071afa6e0eda4e1de30"}, + {file = "pydantic_core-2.50.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ae45853d25a23fba56681d2f9ed41f3e3f12f0a3b2393fefa08ff6406320a1f5"}, + {file = "pydantic_core-2.50.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:bd841dcf394ff261c26763a9d7be754176d4f1e6d26cb2a5d5331e91b6b56a5f"}, + {file = "pydantic_core-2.50.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c2e97985641fe53ad7824d1b5bfeb7990a5ff788c4559ee44d7522642560ddc2"}, + {file = "pydantic_core-2.50.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7987866a2569396e6765c54d643fd6a7b3b234e89ee8d45a3729a7b4b2726145"}, + {file = "pydantic_core-2.50.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f187030fc3d62c668feb0f09e92852e0eb414d7fcefc4748f2e67d245aade37e"}, + {file = "pydantic_core-2.50.0-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:d187f43d1c5b844adc871c5b8c22b4aa12a116aaca4e9bd1521bc9ce479aae1f"}, + {file = "pydantic_core-2.50.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:cb4fcaabb28cabf21396a9b816b9afe091f8c776805fdf03e2cbc606b64dfa7c"}, + {file = "pydantic_core-2.50.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:1751e92d56fbb623b937d73985e500b1a2b1053e56f718a6c564660d99bb9cb0"}, + {file = "pydantic_core-2.50.0-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:70df7ff903aea05383298715ea53551c8f27c8f70cbe54ba7f05606cd822e7e4"}, + {file = "pydantic_core-2.50.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:24302bf47319a64e5c5c7c29e971d2b7a20a190c64e59035a3df9582dec636fa"}, + {file = "pydantic_core-2.50.0-cp312-cp312-win32.whl", hash = "sha256:5dbf9f18c8af11db719e67633be0af556d7d765bee0ca9419bd706fe4b7ed9fe"}, + {file = "pydantic_core-2.50.0-cp312-cp312-win_amd64.whl", hash = "sha256:1541c334af5d42cb9eb03862a9b4d2cfbfc670fd05172ec51f3ce02d704550f1"}, + {file = "pydantic_core-2.50.0-cp312-cp312-win_arm64.whl", hash = "sha256:b1399f918aea8fb76ffa99b474c9b768accea1f079fde407ee538bec89f20fa7"}, + {file = "pydantic_core-2.50.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:049b0404792dcb942f1092bfdae5f819ef30445b0d174782e1909fbdd91bb48b"}, + {file = "pydantic_core-2.50.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:8f16bc5bb12f4c581b0f40facc28dbf286db32d1bf4e7e4f4c4e0f7f4e34ecf9"}, + {file = "pydantic_core-2.50.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1d084e92d0f4a096a5155b23d1ac603db8073ef98a3d1384badf1455e5ae742"}, + {file = "pydantic_core-2.50.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f0af2d2f745ec00a6616c4dfba4477f9156ccfb45690f6ffa5fd34f42e871ed4"}, + {file = "pydantic_core-2.50.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2f28a5a299d4cefd1066a6883d22600b9ae3606f881c3015d255784634647580"}, + {file = "pydantic_core-2.50.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bdd70c2d9e73bca09fad54605dfeaae2b4e770b2800c65f5f5342901ed567b9f"}, + {file = "pydantic_core-2.50.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e58acd43ac8d3905659c1d5309318dd576243e723dd7c3b5dd4f555479b77d4b"}, + {file = "pydantic_core-2.50.0-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:5a07c644047f5abc268b4c39f8cb5a30e08a3c349228cb70142c7d3ed87587c0"}, + {file = "pydantic_core-2.50.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:8ad8dad549cd1645be591a50b4573995ee7e018f6619ddc2bc6ea44b2ad9f694"}, + {file = "pydantic_core-2.50.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:1773001198030e16f946a7ff7760fc3ebd45b12150f66fd0f433780043dc13d8"}, + {file = "pydantic_core-2.50.0-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:8ab9e74878172948e0426e3d27fba333fd6a1c3f9456d8e75643e8e6868ac1a1"}, + {file = "pydantic_core-2.50.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:e15bb1535f68a27f28e579ba3a8f74e7b05d350c45f5622b76a311d5a19ae48a"}, + {file = "pydantic_core-2.50.0-cp313-cp313-win32.whl", hash = "sha256:c21e6a6e4e6d32fb6acbc4f0fa69e8319cac0d65eeaa8298d757371cc2a9c687"}, + {file = "pydantic_core-2.50.0-cp313-cp313-win_amd64.whl", hash = "sha256:4f96ccd9368ecbf6685d8f6981584ab72b4f0ffd20685e747737e7e340277b8d"}, + {file = "pydantic_core-2.50.0-cp313-cp313-win_arm64.whl", hash = "sha256:a2b88f9f9fa52e1c34938ff1a18ee7fbffe482df0bb43c087a9a60578d273d68"}, + {file = "pydantic_core-2.50.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:62a93a9d206a3580c975c3c1f65a869cd063844d016c004f8d786a9309b3c591"}, + {file = "pydantic_core-2.50.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:5a8403eef4a66743e339102fb3cdd8c8b9016b8bd67924685893d062c88896f9"}, + {file = "pydantic_core-2.50.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d8354fbbe2abf0fb724b9303bef43bfd9b7a2779332813fa6d6559983954e7d8"}, + {file = "pydantic_core-2.50.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:00963fde61cf8880d9e7b5635a9830e0591edfa45168447fdc5b47635c0f6437"}, + {file = "pydantic_core-2.50.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1bbd7da16d8b2912cc56c9d0b85c4998a6cbf39b220f81c0d8c397c64672ae0e"}, + {file = "pydantic_core-2.50.0-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ed557fa2744617eac3e34dd39b85037efbf23cd33f06851c00fdb8f18ad8f4c2"}, + {file = "pydantic_core-2.50.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:59f816dc04e99627a5a6352ae51dfb30e603f2cb0b7009c91dc640c533def014"}, + {file = "pydantic_core-2.50.0-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:779b6c74526596a86d38248dedaecfb7851bbaf319c234be042c57acddd2c8c4"}, + {file = "pydantic_core-2.50.0-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:21b62d45f327eb0802f842c132fda6d01a8376a8077922dc4dda69011c64d34a"}, + {file = "pydantic_core-2.50.0-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:4f31af62efd1fd0257735b72e6716b32d4f207654adeabfe524d44baf1bb6bed"}, + {file = "pydantic_core-2.50.0-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:933f2d639eb81a3e1f145aec415453cc00983236629933f028d9507222583a2e"}, + {file = "pydantic_core-2.50.0-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:c05d035e72530f6b00297941b0162218601542b76870c3bf2756bd87f16fc538"}, + {file = "pydantic_core-2.50.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:ab3f95f737fc1b258b8210308fc02ce1442cf5950cf6d30b09ad89ab9e8afebd"}, + {file = "pydantic_core-2.50.0-cp314-cp314-win32.whl", hash = "sha256:f12d9690634414fc04b1a7072fdc35c34a9242232c1851fe4518383578bb09d4"}, + {file = "pydantic_core-2.50.0-cp314-cp314-win_amd64.whl", hash = "sha256:63263d64884688554fb025a3906c7b00573980cfee75f9afeb86239d577384bc"}, + {file = "pydantic_core-2.50.0-cp314-cp314-win_arm64.whl", hash = "sha256:753863dd4317ec8cc9eb3e6d9d01a8ef1a1726a8003b4354658d68a1ae05f9db"}, + {file = "pydantic_core-2.50.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:c4abc425789f8540e86ca4cfdbc8dc650433cc2ac7c6136fee9bcb29d5665a02"}, + {file = "pydantic_core-2.50.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:cf150693a51ca21e8288cd08a9de05e5ab331776dfcfd0537b14523338f0502a"}, + {file = "pydantic_core-2.50.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:158749408ee19682b8a2a7e7135cced7f41d6f2f9de96088b1b1609858a6a158"}, + {file = "pydantic_core-2.50.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:dcbd1fe5083315243447c13f7252ae9fe9d128b1ae2857e3a916c609235dd863"}, + {file = "pydantic_core-2.50.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0fdeda6272d60b1f6fb63f6a3dade55e274af62e1514d24a6549a12150c385cc"}, + {file = "pydantic_core-2.50.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8b16e164205a90b1050d2f5469f8a7829db7698ad198c69e6aab6cbfb5648b87"}, + {file = "pydantic_core-2.50.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:17a5ca9c197788a6424749a09a3dce824cb2c17b72f835f8a5e330935b973609"}, + {file = "pydantic_core-2.50.0-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:01340f4fbb4f854b1f36a6fe9dcd2b26c8936aead4e4ad1205624ac025c875fc"}, + {file = "pydantic_core-2.50.0-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:99e203d5c2a814facef78dcd993b0fb7a933124a3475a38979fc09cceae210b7"}, + {file = "pydantic_core-2.50.0-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:2092ce156f92aff17e3345baba2b7c0c1701f32ba922c5de71bd6248fbe164e3"}, + {file = "pydantic_core-2.50.0-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:74cbb6cbd74445ca279668790e0c10eccac0428fd79fe061fce6c9e3982ad3fe"}, + {file = "pydantic_core-2.50.0-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:42fff617cb0b08505d8123d71e6e7a8e54210d9007498f564855bd843ce984b1"}, + {file = "pydantic_core-2.50.0-cp314-cp314t-win32.whl", hash = "sha256:36f9ed6ae1069913e4f6e86d8233e119e83e00a20c54f88faf9c81292f2fecc0"}, + {file = "pydantic_core-2.50.0-cp314-cp314t-win_amd64.whl", hash = "sha256:980c81c2ec53ea9eb2227c14b3e6de35670b2de163b638f2a803e90a3bd5bbb0"}, + {file = "pydantic_core-2.50.0-cp314-cp314t-win_arm64.whl", hash = "sha256:dec0dafc116ac29a84d143fdbc3b83fdb5d4ed339276be2251154537ab30e14d"}, + {file = "pydantic_core-2.50.0-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:af2b808a79bb04075e87c81a5b6179365b93f9a851f29dafd67abff72085d0c8"}, + {file = "pydantic_core-2.50.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:2918547195ffb20118b829fdb8938e9dc92c9527fe6cbe58572594c96362880e"}, + {file = "pydantic_core-2.50.0-cp315-cp315-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0393763d66f6f61715488d074a2cefac04aeb3ee281e36fb4925dd44deaf9e17"}, + {file = "pydantic_core-2.50.0-cp315-cp315-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:62ec6568896e0abf258cbcd22c406c1c8bf27d16224b21bec8f75c4ae88a8173"}, + {file = "pydantic_core-2.50.0-cp315-cp315-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ec786cb9d597dd75d993f8c1273e31bb2114c9bc22f67fba611e654e8347701b"}, + {file = "pydantic_core-2.50.0-cp315-cp315-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3fce74add1099da1ea09473268950270071fd56773e2968604efb3ab1d240e02"}, + {file = "pydantic_core-2.50.0-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:243088c95e23b12db9f2cd7661d584a3f00814e087489f40cde7f9feac56b694"}, + {file = "pydantic_core-2.50.0-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:42a56b0052ac11d9d0d87b1c94a1ce52e31914fd133f269585e0f63a4ed988f2"}, + {file = "pydantic_core-2.50.0-cp315-cp315-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:350001f5573451150d919722ee095aa28bec037d6e23b86d7f04581a910fe924"}, + {file = "pydantic_core-2.50.0-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:21e38a011783d8afc8b9d79928e273d06f349b52ae84edf63ec18ad07f077484"}, + {file = "pydantic_core-2.50.0-cp315-cp315-musllinux_1_1_armv7l.whl", hash = "sha256:588d309ce5c85448379556d72011b191c0414ee2e80d7c3f1ebe2ceb2d9027b1"}, + {file = "pydantic_core-2.50.0-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:a8ee3965e01f10e4ff92ba1727626328ab7ba93bcd5674ff2b78ea1048ee0cea"}, + {file = "pydantic_core-2.50.0-cp315-cp315-win32.whl", hash = "sha256:c05b75ef3574c9ee4e05bbcf8513f7ccb155d426514be9efef5f6f53152d5f5c"}, + {file = "pydantic_core-2.50.0-cp315-cp315-win_amd64.whl", hash = "sha256:8447678b49412294801c9ea15ae31ea3bae7da65425268c92d40e032c38eac6f"}, + {file = "pydantic_core-2.50.0-cp315-cp315-win_arm64.whl", hash = "sha256:92016718bcf3e6f35a6bd986880191a8da7a35aa1f5b1e97544582ef938464cf"}, + {file = "pydantic_core-2.50.0-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:71061800a3c225e730f7997f8a7fad6e0d0dcbe36609cdc7e60576a099a2832b"}, + {file = "pydantic_core-2.50.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:bc87bd34239835c8d73171acd039e591cea0a2ca8615e6188044ad170a40fca1"}, + {file = "pydantic_core-2.50.0-cp315-cp315t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:57c0e5b26d82bf31ab2b044781527b1b1a36e9ed400856b6aca5097eb1abb909"}, + {file = "pydantic_core-2.50.0-cp315-cp315t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:41b9f2821f0a105f88cd54ad03fe1392ec600618ffa8610f7c5e466ecd98c531"}, + {file = "pydantic_core-2.50.0-cp315-cp315t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:364f62d8024997536e57865cb1c8b36effad3249bf392a29a2379ea69db28238"}, + {file = "pydantic_core-2.50.0-cp315-cp315t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:955d7878130dfc124d6a5343e1b87d2933244fe14a4a0a3e98787e8e660a8eb4"}, + {file = "pydantic_core-2.50.0-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cf81432281af66ba3285b26b09c2d478d84730dc50ff90926c1bdcef54048a33"}, + {file = "pydantic_core-2.50.0-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:34a4a0938eb30931baca56e55786c5a6871ac7aa891a38c8cabcdb7e49dab91b"}, + {file = "pydantic_core-2.50.0-cp315-cp315t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f517a417cd02aa8fb05b603a0ac6d87b7b004c3ba4fcd279cad25cab7229043b"}, + {file = "pydantic_core-2.50.0-cp315-cp315t-musllinux_1_1_aarch64.whl", hash = "sha256:d01029d54ff1f45c195b1f7e6fbf6e58fb7e7e12cda9a6e639570d9c581decb2"}, + {file = "pydantic_core-2.50.0-cp315-cp315t-musllinux_1_1_armv7l.whl", hash = "sha256:d06dbbfe8da01a0574de27afc19915bb3e7dddfbd184bb97e958f94051d8531b"}, + {file = "pydantic_core-2.50.0-cp315-cp315t-musllinux_1_1_x86_64.whl", hash = "sha256:5307a8bd49158b57a0ca4e10950d31085aa35d9007e934047043ccc6d28eea97"}, + {file = "pydantic_core-2.50.0-cp315-cp315t-win32.whl", hash = "sha256:c2b246fa7cbdf9918488d1542a82bbb928cf71bcba66905c24131981e759ff0b"}, + {file = "pydantic_core-2.50.0-cp315-cp315t-win_amd64.whl", hash = "sha256:36c49d4e1769127461b609f110d91963790091ffcc2de401ac1d3b2f6a63bd54"}, + {file = "pydantic_core-2.50.0-cp315-cp315t-win_arm64.whl", hash = "sha256:f3abcabb04503023e1053add24472e78878de0bfd5c8a93686be01f4032c363c"}, + {file = "pydantic_core-2.50.0-graalpy311-graalpy242_311_native-macosx_10_12_x86_64.whl", hash = "sha256:38b03c5439c6a7a952f56e3e6596dae44bc78c3fb6a69df46cabfb2f888e5f0c"}, + {file = "pydantic_core-2.50.0-graalpy311-graalpy242_311_native-macosx_11_0_arm64.whl", hash = "sha256:4faa766450ef44d9eabed5b65a280f63f903d1e1ed6d2e278961eb22345ec49f"}, + {file = "pydantic_core-2.50.0-graalpy311-graalpy242_311_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:50920d66aaab60dbc6023c3035d55fbabfa58b6d205d0b39d47d820c4a7a13a8"}, + {file = "pydantic_core-2.50.0-graalpy311-graalpy242_311_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:586699b43066ca6038f96bd71d0eff0b6c292929e3d66ff63d5dc79d0f06d589"}, + {file = "pydantic_core-2.50.0-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:b916ff828d604d4311a5639b7b3da51eaea3923833ec3e300a5ee35eade99691"}, + {file = "pydantic_core-2.50.0-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:732efbb50977ab7cf18f01d4c255834aeb14cb2425459f7bff681a1ba3a4ffa1"}, + {file = "pydantic_core-2.50.0-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ad9185366893714cd4514ae5e1a098227704fa395cb41a7855d75968ecedc826"}, + {file = "pydantic_core-2.50.0-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0def1dc09802a790e4a1b3cbc4401f0b53c58f273ce3671df9867f7bdf1fbe20"}, + {file = "pydantic_core-2.50.0-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:68421ba548f6d86c7dededd70bfe530b4faf67eb811c53c70a1be69438d3ce99"}, + {file = "pydantic_core-2.50.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:23e0940b7d73f405d92e98b2a05b93b16db163be13b7478bb19e1db2e486ade6"}, + {file = "pydantic_core-2.50.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ee9913fa2b5bfa6111c11158cf481bb13544f8bd5d10382fb6ee2612b16fcf28"}, + {file = "pydantic_core-2.50.0-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ad3532291deedfdfcad3cf5d351d0076d646c68a0c63869a1bebf87c22159600"}, + {file = "pydantic_core-2.50.0-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:9279f4be22bc3765dd9f61f5b4d38d9cb219d167bbd6f2e0ffa3368b1b71b4d1"}, + {file = "pydantic_core-2.50.0-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:3b2f3e44af4c6512dd73557621385a71b18094c8be81d60e5a8e73a8ce96b7f4"}, + {file = "pydantic_core-2.50.0-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:593dd4f24abeb3ed90222f98bc6eefcac68cd5aa96fc7745f93862a802952bce"}, + {file = "pydantic_core-2.50.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:b123f9d8702106f39dc3af63a031ca8b5279862a3747ec6c03ca49dbe78b71b9"}, + {file = "pydantic_core-2.50.0.tar.gz", hash = "sha256:84d2d38f7d163c4dec292f379e9de1960c661795442aca6c90d706436cb3749e"}, ] [package.dependencies] -typing-extensions = ">=4.14.1" +typing-extensions = ">=4.16.0" [[package]] name = "pygments" diff --git a/src/speechify/__init__.py b/src/speechify/__init__.py index 1e90255..e19445e 100644 --- a/src/speechify/__init__.py +++ b/src/speechify/__init__.py @@ -77,8 +77,29 @@ 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, + SpeechChunk, + SpeechChunkSpeechMarksItem, + SpeechChunkType, + SpeechDone, + SpeechDoneReason, + SpeechDoneType, + SpeechError, + SpeechErrorError, + SpeechErrorErrorCode, + SpeechErrorType, + SpeechFlushed, + SpeechFlushedType, StreamAudioRequestAccept, StreamWithTimestampsAudioRequestAccept, ) @@ -90,6 +111,9 @@ _dynamic_imports: typing.Dict[str, str] = { "AsyncSpeechify": ".client", "AudioOutputFormat": ".types", + "AudioStreamInputModel": ".audio", + "AudioStreamInputOutputFormat": ".audio", + "AudioStreamInputSpeechMarks": ".audio", "AudioStreamOutputFormat": ".types", "BadGatewayError": ".errors", "BadRequestError": ".errors", @@ -121,6 +145,12 @@ "GetVoiceType": ".types", "GetVoicesModel": ".types", "GetVoicesModelName": ".types", + "InputClose": ".audio", + "InputCloseType": ".audio", + "InputFlush": ".audio", + "InputFlushType": ".audio", + "InputText": ".audio", + "InputTextType": ".audio", "InternalServerError": ".errors", "ListProjectsResponse": ".types", "ListVoicesRequestGender": ".voices", @@ -145,9 +175,21 @@ "ProjectStillRevokedCounts": ".types", "SafetyIdentifier": ".types", "ServiceUnavailableError": ".errors", + "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", @@ -199,6 +241,9 @@ def __dir__(): __all__ = [ "AsyncSpeechify", "AudioOutputFormat", + "AudioStreamInputModel", + "AudioStreamInputOutputFormat", + "AudioStreamInputSpeechMarks", "AudioStreamOutputFormat", "BadGatewayError", "BadRequestError", @@ -230,6 +275,12 @@ def __dir__(): "GetVoiceType", "GetVoicesModel", "GetVoicesModelName", + "InputClose", + "InputCloseType", + "InputFlush", + "InputFlushType", + "InputText", + "InputTextType", "InternalServerError", "ListProjectsResponse", "ListVoicesRequestGender", @@ -254,9 +305,21 @@ def __dir__(): "ProjectStillRevokedCounts", "SafetyIdentifier", "ServiceUnavailableError", + "SpeechChunk", "SpeechChunkEvent", + "SpeechChunkSpeechMarksItem", + "SpeechChunkType", + "SpeechDone", "SpeechDoneEvent", + "SpeechDoneReason", + "SpeechDoneType", + "SpeechError", + "SpeechErrorError", + "SpeechErrorErrorCode", "SpeechErrorEvent", + "SpeechErrorType", + "SpeechFlushed", + "SpeechFlushedType", "SpeechMarks", "SpeechStreamEvent", "SpeechStreamEvent_SpeechChunk", diff --git a/src/speechify/audio/__init__.py b/src/speechify/audio/__init__.py index 0fac588..2f1d8fb 100644 --- a/src/speechify/audio/__init__.py +++ b/src/speechify/audio/__init__.py @@ -7,15 +7,57 @@ if typing.TYPE_CHECKING: from .types import ( + AudioStreamInputModel, + AudioStreamInputOutputFormat, + AudioStreamInputSpeechMarks, GetSpeechRequestAudioFormat, GetSpeechRequestModel, + InputClose, + InputCloseType, + InputFlush, + InputFlushType, + InputText, + InputTextType, + 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", + "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", @@ -44,8 +86,29 @@ def __dir__(): __all__ = [ + "AudioStreamInputModel", + "AudioStreamInputOutputFormat", + "AudioStreamInputSpeechMarks", "GetSpeechRequestAudioFormat", "GetSpeechRequestModel", + "InputClose", + "InputCloseType", + "InputFlush", + "InputFlushType", + "InputText", + "InputTextType", + "SpeechChunk", + "SpeechChunkSpeechMarksItem", + "SpeechChunkType", + "SpeechDone", + "SpeechDoneReason", + "SpeechDoneType", + "SpeechError", + "SpeechErrorError", + "SpeechErrorErrorCode", + "SpeechErrorType", + "SpeechFlushed", + "SpeechFlushedType", "StreamAudioRequestAccept", "StreamWithTimestampsAudioRequestAccept", "watermark", diff --git a/src/speechify/audio/raw_client.py b/src/speechify/audio/raw_client.py index 9f9ef51..964bb16 100644 --- a/src/speechify/audio/raw_client.py +++ b/src/speechify/audio/raw_client.py @@ -106,6 +106,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, @@ -330,6 +331,7 @@ def stream( """ with self._client_wrapper.httpx_client.stream( "v1/audio/stream", + base_url=self._client_wrapper.get_environment().base, method="POST", json={ "input": input, @@ -582,6 +584,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, @@ -824,6 +827,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, @@ -1048,6 +1052,7 @@ async def stream( """ async with self._client_wrapper.httpx_client.stream( "v1/audio/stream", + base_url=self._client_wrapper.get_environment().base, method="POST", json={ "input": input, @@ -1301,6 +1306,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, diff --git a/src/speechify/audio/types/__init__.py b/src/speechify/audio/types/__init__.py index 73ce14e..e9d4aa6 100644 --- a/src/speechify/audio/types/__init__.py +++ b/src/speechify/audio/types/__init__.py @@ -6,13 +6,55 @@ 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 .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", + "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 +82,29 @@ def __dir__(): __all__ = [ + "AudioStreamInputModel", + "AudioStreamInputOutputFormat", + "AudioStreamInputSpeechMarks", "GetSpeechRequestAudioFormat", "GetSpeechRequestModel", + "InputClose", + "InputCloseType", + "InputFlush", + "InputFlushType", + "InputText", + "InputTextType", + "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..7499f8b --- /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"], 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/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/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..f17d1f8 --- /dev/null +++ b/src/speechify/audio/types/speech_error_error_code.py @@ -0,0 +1,180 @@ +# 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", + "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/raw_client.py b/src/speechify/audio/watermark/raw_client.py index 8afbbf1..af25200 100644 --- a/src/speechify/audio/watermark/raw_client.py +++ b/src/speechify/audio/watermark/raw_client.py @@ -66,6 +66,7 @@ def detect( """ _response = self._client_wrapper.httpx_client.request( "v1/audio/watermark/detect", + base_url=self._client_wrapper.get_environment().base, method="POST", data={}, files={ @@ -230,6 +231,7 @@ def verify( """ _response = self._client_wrapper.httpx_client.request( "v1/audio/watermark/verify", + base_url=self._client_wrapper.get_environment().base, method="POST", data={}, files={ @@ -374,6 +376,7 @@ async def detect( """ _response = await self._client_wrapper.httpx_client.request( "v1/audio/watermark/detect", + base_url=self._client_wrapper.get_environment().base, method="POST", data={}, files={ @@ -538,6 +541,7 @@ async def verify( """ _response = await self._client_wrapper.httpx_client.request( "v1/audio/watermark/verify", + base_url=self._client_wrapper.get_environment().base, method="POST", data={}, files={ diff --git a/src/speechify/client.py b/src/speechify/client.py index 1439bbc..cd55e6f 100644 --- a/src/speechify/client.py +++ b/src/speechify/client.py @@ -25,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 @@ -70,7 +67,6 @@ class Speechify: def __init__( self, *, - base_url: typing.Optional[str] = None, environment: SpeechifyEnvironment = SpeechifyEnvironment.DEFAULT, version: typing.Optional[str] = "2026-09-30", token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("SPEECHIFY_API_KEY"), @@ -86,7 +82,7 @@ def __init__( ) _defaulted_max_retries = max_retries if max_retries is not None else 2 self._client_wrapper = SyncClientWrapper( - base_url=_get_base_url(base_url=base_url, environment=environment), + environment=environment, version=version, token=token, headers=headers, @@ -179,9 +175,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 @@ -227,7 +220,6 @@ class AsyncSpeechify: def __init__( self, *, - base_url: typing.Optional[str] = None, environment: SpeechifyEnvironment = SpeechifyEnvironment.DEFAULT, version: typing.Optional[str] = "2026-09-30", token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("SPEECHIFY_API_KEY"), @@ -244,7 +236,7 @@ def __init__( ) _defaulted_max_retries = max_retries if max_retries is not None else 2 self._client_wrapper = AsyncClientWrapper( - base_url=_get_base_url(base_url=base_url, environment=environment), + environment=environment, version=version, token=token, headers=headers, @@ -310,12 +302,3 @@ def webhooks(self): self._webhooks = AsyncWebhooksClient(client_wrapper=self._client_wrapper) return self._webhooks - - -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") diff --git a/src/speechify/core/client_wrapper.py b/src/speechify/core/client_wrapper.py index 697fea6..3b753b1 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 @@ -14,7 +15,7 @@ def __init__( version: typing.Optional[str] = None, 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, logging: typing.Optional[typing.Union[LogConfig, Logger]] = None, @@ -22,7 +23,7 @@ def __init__( 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._logging = logging @@ -55,8 +56,8 @@ def _get_token(self) -> typing.Optional[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 @@ -72,7 +73,7 @@ def __init__( version: typing.Optional[str] = None, 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, logging: typing.Optional[typing.Union[LogConfig, Logger]] = None, @@ -82,7 +83,7 @@ def __init__( version=version, token=token, headers=headers, - base_url=base_url, + environment=environment, timeout=timeout, max_retries=max_retries, logging=logging, @@ -91,7 +92,6 @@ 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(), logging_config=self._logging, ) @@ -104,7 +104,7 @@ def __init__( version: typing.Optional[str] = None, 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, logging: typing.Optional[typing.Union[LogConfig, Logger]] = None, @@ -115,7 +115,7 @@ def __init__( version=version, token=token, headers=headers, - base_url=base_url, + environment=environment, timeout=timeout, max_retries=max_retries, logging=logging, @@ -125,7 +125,6 @@ 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, diff --git a/src/speechify/environment.py b/src/speechify/environment.py index 9f1e9eb..db7e4f3 100644 --- a/src/speechify/environment.py +++ b/src/speechify/environment.py @@ -1,7 +1,16 @@ # 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, production: str): + self.base = base + self.production = production + + +SpeechifyEnvironment.DEFAULT = SpeechifyEnvironment( + base="https://api.speechify.ai", production="wss://api.speechify.ai" +) 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/raw_client.py b/src/speechify/projects/raw_client.py index b00af43..6cde1e1 100644 --- a/src/speechify/projects/raw_client.py +++ b/src/speechify/projects/raw_client.py @@ -89,6 +89,7 @@ def list( """ _response = self._client_wrapper.httpx_client.request( "v1/projects", + base_url=self._client_wrapper.get_environment().base, method="GET", params={ "cursor": cursor, @@ -194,6 +195,7 @@ def create(self, *, name: str, request_options: typing.Optional[RequestOptions] """ _response = self._client_wrapper.httpx_client.request( "v1/projects", + base_url=self._client_wrapper.get_environment().base, method="POST", json={ "name": name, @@ -299,6 +301,7 @@ def get(self, project_id: str, *, request_options: typing.Optional[RequestOption """ _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, ) @@ -453,6 +456,7 @@ def delete( """ _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, @@ -601,6 +605,7 @@ def update( """ _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, @@ -726,6 +731,7 @@ def archive( """ _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, ) @@ -817,6 +823,7 @@ def unarchive( """ _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, ) @@ -933,6 +940,7 @@ def restore( """ _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, ) @@ -1065,6 +1073,7 @@ def audit( """ _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, @@ -1214,6 +1223,7 @@ def list_members( """ _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, @@ -1333,6 +1343,7 @@ def grant_member( """ _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, @@ -1449,6 +1460,7 @@ def revoke_member( """ _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, ) @@ -1575,6 +1587,7 @@ async def list( """ _response = await self._client_wrapper.httpx_client.request( "v1/projects", + base_url=self._client_wrapper.get_environment().base, method="GET", params={ "cursor": cursor, @@ -1685,6 +1698,7 @@ async def create( """ _response = await self._client_wrapper.httpx_client.request( "v1/projects", + base_url=self._client_wrapper.get_environment().base, method="POST", json={ "name": name, @@ -1792,6 +1806,7 @@ async def get( """ _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, ) @@ -1946,6 +1961,7 @@ async def delete( """ _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, @@ -2094,6 +2110,7 @@ async def update( """ _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, @@ -2219,6 +2236,7 @@ async def archive( """ _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, ) @@ -2310,6 +2328,7 @@ async def unarchive( """ _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, ) @@ -2426,6 +2445,7 @@ async def restore( """ _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, ) @@ -2558,6 +2578,7 @@ async def audit( """ _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, @@ -2710,6 +2731,7 @@ async def list_members( """ _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, @@ -2832,6 +2854,7 @@ async def grant_member( """ _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, @@ -2948,6 +2971,7 @@ async def revoke_member( """ _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, ) diff --git a/src/speechify/voices/consent_challenges/raw_client.py b/src/speechify/voices/consent_challenges/raw_client.py index 846d071..c3a159c 100644 --- a/src/speechify/voices/consent_challenges/raw_client.py +++ b/src/speechify/voices/consent_challenges/raw_client.py @@ -81,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, @@ -266,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 af34987..cd1617a 100644 --- a/src/speechify/voices/raw_client.py +++ b/src/speechify/voices/raw_client.py @@ -120,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, @@ -293,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, @@ -474,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, ) @@ -597,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, ) @@ -722,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: @@ -922,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, @@ -1098,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, @@ -1281,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, ) @@ -1406,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, ) @@ -1531,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/endpoints/raw_client.py b/src/speechify/webhooks/endpoints/raw_client.py index 4a2fb5b..f51bf88 100644 --- a/src/speechify/webhooks/endpoints/raw_client.py +++ b/src/speechify/webhooks/endpoints/raw_client.py @@ -83,6 +83,7 @@ def list( """ _response = self._client_wrapper.httpx_client.request( "v1/webhooks/endpoints", + base_url=self._client_wrapper.get_environment().base, method="GET", params={ "cursor": cursor, @@ -233,6 +234,7 @@ def create( """ _response = self._client_wrapper.httpx_client.request( "v1/webhooks/endpoints", + base_url=self._client_wrapper.get_environment().base, method="POST", json={ "url": url, @@ -365,6 +367,7 @@ def get( """ _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, ) @@ -451,6 +454,7 @@ def delete( """ _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, ) @@ -581,6 +585,7 @@ def update( """ _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, @@ -705,6 +710,7 @@ def rotate_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, ) @@ -828,6 +834,7 @@ def list_deliveries( """ _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, @@ -972,6 +979,7 @@ async def list( """ _response = await self._client_wrapper.httpx_client.request( "v1/webhooks/endpoints", + base_url=self._client_wrapper.get_environment().base, method="GET", params={ "cursor": cursor, @@ -1125,6 +1133,7 @@ async def create( """ _response = await self._client_wrapper.httpx_client.request( "v1/webhooks/endpoints", + base_url=self._client_wrapper.get_environment().base, method="POST", json={ "url": url, @@ -1257,6 +1266,7 @@ async def get( """ _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, ) @@ -1343,6 +1353,7 @@ async def delete( """ _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, ) @@ -1473,6 +1484,7 @@ async def update( """ _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, @@ -1597,6 +1609,7 @@ async def rotate_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, ) @@ -1720,6 +1733,7 @@ async def list_deliveries( """ _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, diff --git a/src/speechify/workspaces/raw_client.py b/src/speechify/workspaces/raw_client.py index 0c2a9e1..b07de03 100644 --- a/src/speechify/workspaces/raw_client.py +++ b/src/speechify/workspaces/raw_client.py @@ -49,6 +49,7 @@ def get_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, ) @@ -137,6 +138,7 @@ async def get_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, ) From 02611852b70ead5c9660bf284aaa3875d6a4bea7 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 9 Oct 2026 08:25:10 +0000 Subject: [PATCH 255/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 1 + src/speechify/audio/client.py | 6 ++++++ src/speechify/audio/raw_client.py | 6 ++++++ src/speechify/types/get_stream_request.py | 1 + 5 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 1606669..fe86990 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "fa00f50755618fce1b873886ff1b892bedbe4819", + "originGitCommit": "c9907011437082bf8a19c8eaeb4c03d82ceda14f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index 7e5d1c3..17731e6 100644 --- a/reference.md +++ b/reference.md @@ -63,6 +63,7 @@ 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 diff --git a/src/speechify/audio/client.py b/src/speechify/audio/client.py index a9beca0..b08617a 100644 --- a/src/speechify/audio/client.py +++ b/src/speechify/audio/client.py @@ -67,6 +67,7 @@ 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 @@ -155,6 +156,7 @@ def stream( ---------- input : str Plain text or SSML to be synthesized to speech. + Up to 20,000 characters as sent, SSML markup included. 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 @@ -276,6 +278,7 @@ def stream_with_timestamps( ---------- input : str Plain text or SSML to be synthesized to speech. + Up to 20,000 characters as sent, SSML markup included. 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 @@ -402,6 +405,7 @@ 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 @@ -498,6 +502,7 @@ async def stream( ---------- input : str Plain text or SSML to be synthesized to speech. + Up to 20,000 characters as sent, SSML markup included. 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 @@ -628,6 +633,7 @@ async def stream_with_timestamps( ---------- input : str Plain text or SSML to be synthesized to speech. + Up to 20,000 characters as sent, SSML markup included. 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 diff --git a/src/speechify/audio/raw_client.py b/src/speechify/audio/raw_client.py index 964bb16..d81d594 100644 --- a/src/speechify/audio/raw_client.py +++ b/src/speechify/audio/raw_client.py @@ -70,6 +70,7 @@ 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 @@ -282,6 +283,7 @@ def stream( ---------- input : str Plain text or SSML to be synthesized to speech. + Up to 20,000 characters as sent, SSML markup included. 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 @@ -535,6 +537,7 @@ def stream_with_timestamps( ---------- input : str Plain text or SSML to be synthesized to speech. + Up to 20,000 characters as sent, SSML markup included. 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 @@ -791,6 +794,7 @@ 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 @@ -1003,6 +1007,7 @@ async def stream( ---------- input : str Plain text or SSML to be synthesized to speech. + Up to 20,000 characters as sent, SSML markup included. 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 @@ -1257,6 +1262,7 @@ async def stream_with_timestamps( ---------- input : str Plain text or SSML to be synthesized to speech. + Up to 20,000 characters as sent, SSML markup included. 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 diff --git a/src/speechify/types/get_stream_request.py b/src/speechify/types/get_stream_request.py index a10b43a..8b1afb6 100644 --- a/src/speechify/types/get_stream_request.py +++ b/src/speechify/types/get_stream_request.py @@ -18,6 +18,7 @@ class GetStreamRequest(UniversalBaseModel): input: str = pydantic.Field() """ Plain text or SSML to be synthesized to speech. + Up to 20,000 characters as sent, SSML markup included. 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 """ From 4ea98d8bf843f52ec924c370c8be3b6ca6ea114a Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 9 Oct 2026 12:31:22 +0000 Subject: [PATCH 256/272] SDK regeneration --- .fern/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index fe86990..1615c10 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "c9907011437082bf8a19c8eaeb4c03d82ceda14f", + "originGitCommit": "3e451d0bcb13a3283bb442eaf64417b9541520f7", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", From 3a5c2ed589d37eb894fbadde8c863d949dcbbb5f Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 10 Oct 2026 07:28:06 +0000 Subject: [PATCH 257/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 2 +- src/speechify/audio/client.py | 12 ++++++------ src/speechify/audio/raw_client.py | 12 ++++++------ src/speechify/types/get_stream_request.py | 2 +- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 1615c10..4a3bffa 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "3e451d0bcb13a3283bb442eaf64417b9541520f7", + "originGitCommit": "75201c8d5d7fe96ca159b137def61fbe5d110d5a", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index 17731e6..fbc4165 100644 --- a/reference.md +++ b/reference.md @@ -65,7 +65,7 @@ client.audio.speech( 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 (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. diff --git a/src/speechify/audio/client.py b/src/speechify/audio/client.py index b08617a..b1fe7c7 100644 --- a/src/speechify/audio/client.py +++ b/src/speechify/audio/client.py @@ -69,7 +69,7 @@ def speech( 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 (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` 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 @@ -158,7 +158,7 @@ def stream( Plain text or SSML to be synthesized to speech. Up to 20,000 characters as sent, SSML markup included. 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 (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` 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,7 +280,7 @@ def stream_with_timestamps( Plain text or SSML to be synthesized to speech. Up to 20,000 characters as sent, SSML markup included. 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 (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` 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 @@ -407,7 +407,7 @@ async def speech( 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 (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` 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,7 +504,7 @@ async def stream( Plain text or SSML to be synthesized to speech. Up to 20,000 characters as sent, SSML markup included. 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 (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` 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 @@ -635,7 +635,7 @@ async def stream_with_timestamps( Plain text or SSML to be synthesized to speech. Up to 20,000 characters as sent, SSML markup included. 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 (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` 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 diff --git a/src/speechify/audio/raw_client.py b/src/speechify/audio/raw_client.py index d81d594..e582983 100644 --- a/src/speechify/audio/raw_client.py +++ b/src/speechify/audio/raw_client.py @@ -72,7 +72,7 @@ def speech( 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 (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` 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 @@ -285,7 +285,7 @@ def stream( Plain text or SSML to be synthesized to speech. Up to 20,000 characters as sent, SSML markup included. 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 (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` 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 @@ -539,7 +539,7 @@ def stream_with_timestamps( Plain text or SSML to be synthesized to speech. Up to 20,000 characters as sent, SSML markup included. 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 (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` 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 @@ -796,7 +796,7 @@ async def speech( 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 (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` 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 @@ -1009,7 +1009,7 @@ async def stream( Plain text or SSML to be synthesized to speech. Up to 20,000 characters as sent, SSML markup included. 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 (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` 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 @@ -1264,7 +1264,7 @@ async def stream_with_timestamps( Plain text or SSML to be synthesized to speech. Up to 20,000 characters as sent, SSML markup included. 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 (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` 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 diff --git a/src/speechify/types/get_stream_request.py b/src/speechify/types/get_stream_request.py index 8b1afb6..0c4236d 100644 --- a/src/speechify/types/get_stream_request.py +++ b/src/speechify/types/get_stream_request.py @@ -20,7 +20,7 @@ class GetStreamRequest(UniversalBaseModel): Plain text or SSML to be synthesized to speech. Up to 20,000 characters as sent, SSML markup included. 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 (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. """ language: typing.Optional[str] = pydantic.Field(default=None) From e3c96c695c8bf344386c3bc9ad1a850b7476e740 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 14 Oct 2026 08:20:27 +0000 Subject: [PATCH 258/272] SDK regeneration --- .fern/metadata.json | 2 +- poetry.lock | 954 +++++++++++----------- src/speechify/audio/client.py | 8 +- src/speechify/audio/raw_client.py | 8 +- src/speechify/types/get_stream_request.py | 2 +- 5 files changed, 487 insertions(+), 487 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 4a3bffa..fdd0dbd 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "75201c8d5d7fe96ca159b137def61fbe5d110d5a", + "originGitCommit": "8b9ae378a6b4c4d4e29b68752c5e880e29b6115f", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/poetry.lock b/poetry.lock index 0ae1aec..884a9fd 100644 --- a/poetry.lock +++ b/poetry.lock @@ -15,174 +15,174 @@ files = [ [[package]] name = "aiohttp" -version = "3.14.4" +version = "3.14.5" description = "Async http client/server framework (asyncio)" optional = true python-versions = ">=3.10" groups = ["main"] markers = "extra == \"aiohttp\"" files = [ - {file = "aiohttp-3.14.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:dea3b3653c1d0d6babd8ce09cb9e5a7776864315d9cfb1c569f926389874a261"}, - {file = "aiohttp-3.14.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3099a389e5b5900fc79c6f613015ff3f8fa06a519744e6001cc68a31ba418cac"}, - {file = "aiohttp-3.14.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:70247156fc76e92919f9aacb820556cb30289a54784299a31714d030bb604d84"}, - {file = "aiohttp-3.14.4-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fdf2d2a6ad402797422949f4a200a60d43e3a021695c8a7804aa1d5bbef22652"}, - {file = "aiohttp-3.14.4-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ba835fad8d4b5eaea0d34f9461cf499737a720a5f8bc6768d2f6d98a1d3ba8b5"}, - {file = "aiohttp-3.14.4-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0d4415ca5c9c8b24bc2f5733f870d4eab4929e680203559ba60131dd1a27852a"}, - {file = "aiohttp-3.14.4-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f6757e02c2c2b0d7985f57be87cf4a7c5b35708f849e1feaea3f77656ddb9dff"}, - {file = "aiohttp-3.14.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2a950bd8418ef54eccf5f9f517f08e37c1adab4bc50a470a0422ee1cc1032e29"}, - {file = "aiohttp-3.14.4-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:34cf6f2fe4fc1d7183e8cc0d8c48bbdda828a740bc372d8278126149714d343c"}, - {file = "aiohttp-3.14.4-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:bc0fbe4f79c3b156d754dd062718ffe404c3b31ca878d9d2b88ecdbc72ef8369"}, - {file = "aiohttp-3.14.4-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:d3d50a5a07a2b31a4369b86dd4a3acf3c2577c45091dbd5e884b198dec56480b"}, - {file = "aiohttp-3.14.4-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:de15c46a63f46da881d219e44a04778c40114c756e5575b5ea38143b20eb3713"}, - {file = "aiohttp-3.14.4-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:caa4c0fc9b25e8c679baac68337e9c00deb6baf6601fe6f07e8511469cc1ceba"}, - {file = "aiohttp-3.14.4-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:3647f8c090632c70abb1e80826e4ee24faea3f895f0283b60e91a0b17aea5e34"}, - {file = "aiohttp-3.14.4-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:3f3e8030169843fb652a60a3d32c206e03f260198aa398985a48b41cd7e42f0a"}, - {file = "aiohttp-3.14.4-cp310-cp310-win32.whl", hash = "sha256:a1205cbdddfca1428129bb6d23e0b292b09e681df951fa828145d83a63ffc0ca"}, - {file = "aiohttp-3.14.4-cp310-cp310-win_amd64.whl", hash = "sha256:e90980e0454a043f81b435309a089ac5deab883779557eb58d004f33990f61e4"}, - {file = "aiohttp-3.14.4-cp310-cp310-win_arm64.whl", hash = "sha256:e63eecf9a4b670a24055d5c0486128af16f83b02d9817abd685d3238940f8752"}, - {file = "aiohttp-3.14.4-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:eb0093ca0817019d539f0d27bdf98e823944e05bb7efd9d2337a45b92e4d1b06"}, - {file = "aiohttp-3.14.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:f482dc9c8309801b4259dd218609d3dae0a7bcdedeac56d90500eabaa0c23465"}, - {file = "aiohttp-3.14.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:aa800bb7c1d00e166493931f2ddacb982db913292503dc2f4884db1f2bc5f105"}, - {file = "aiohttp-3.14.4-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d90e4dae71b26597f6d1fd12af7d092ae67551edf0e524b73e0687214b79ee33"}, - {file = "aiohttp-3.14.4-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:5b681054b8c3b86aa6a0384b6ad7f5cb78dccbabab1f4a3a6793f98ad1378959"}, - {file = "aiohttp-3.14.4-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6dfe80b41bcf8d80d2125fb99a171adeb86db2fcb35c1a68e0226acba0ba7f03"}, - {file = "aiohttp-3.14.4-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:71e4a59c6a8c5a6ae8b0b696c32635913e8f526cc01448762eaf5a3c59df8a4f"}, - {file = "aiohttp-3.14.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f887c3b7fb3058fc1ccd917f52078540c18d938d12018cb9edd64b6811d20c57"}, - {file = "aiohttp-3.14.4-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0da4525e9ba145a11617d2cd7e44fe1acaf471f9c72a0cad28e72879c1020fbb"}, - {file = "aiohttp-3.14.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:f7e8d3c5caa44fdbee3eba1aa1417aa58c74c95d4089fe3c451911117fcbb2f3"}, - {file = "aiohttp-3.14.4-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:09092cf906c18c824b6b16881da5a89cc9cfa9b15344e496bcf880e9045bee33"}, - {file = "aiohttp-3.14.4-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:dfd144837e92264878bba6d3a7ffa8206668b21e87748740afd45d193e48c87e"}, - {file = "aiohttp-3.14.4-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:9413cffe4e0d654b9b524f9c99dde8cbdb37e0ed9a2c4edd2e63adbac6b374e8"}, - {file = "aiohttp-3.14.4-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:f50d719f97ba488dfb8e306cf8c8cc172ff0683ec0af53917b288229aa555ba5"}, - {file = "aiohttp-3.14.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:68ed4824d96b7afec1f3a8d7fba190fe282718041c5772e20298003e1e3e5d66"}, - {file = "aiohttp-3.14.4-cp311-cp311-win32.whl", hash = "sha256:d7a41d1427136828e6b11d3f3fd194d4357d5205a5b610be7ae07b1ba52ab974"}, - {file = "aiohttp-3.14.4-cp311-cp311-win_amd64.whl", hash = "sha256:2efbdb87e79d596325c4eefaef0f4495d701145e882351310ebc538e854dc7a3"}, - {file = "aiohttp-3.14.4-cp311-cp311-win_arm64.whl", hash = "sha256:ac6e6f90d9360e460c873f945f11dc8698db0a71fec6612823f1aaaab2c11faa"}, - {file = "aiohttp-3.14.4-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:55b0b335982b0db7117dff7f6a8e3aad43c4105f9e392ca04f9fc8d958a95cce"}, - {file = "aiohttp-3.14.4-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:2d0d8e435582b0d53009dac99e26a3d2be932ed7c9dbfcfc70f3fce1cf943bd5"}, - {file = "aiohttp-3.14.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:bf734016932d68e1324cfb638cac7a0866a83933a33badf15e836a7e24efb8c0"}, - {file = "aiohttp-3.14.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:322e3d741b3133bcbb981a41d4f9b8ac3545c18de49c662c2b1f4e1c770b98ad"}, - {file = "aiohttp-3.14.4-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:15a3bb5f90a4e515071f3617a45dfe26560beb834a6b6e108cdf4bc9e9719ec3"}, - {file = "aiohttp-3.14.4-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6c044e52df1a466af82cad3518c92ea80cc4ddcfea86966ff083bb34bab29bf4"}, - {file = "aiohttp-3.14.4-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d613d7d51bf06fe9a5e3aab86ce06d835bb0ceb1a31ea9e8766df4a403ae62a6"}, - {file = "aiohttp-3.14.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c5e93ab6e6330dce40f5b43996f1fc5f2543296d263a5e4b59ff09e73870b7d8"}, - {file = "aiohttp-3.14.4-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:20134dc8e68c67e7478124d516449428684c0545b2d3faa575691c8bcbd56678"}, - {file = "aiohttp-3.14.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:f0daef5ef012369dddc391c61f604111424aa9a96313a69fb899018b09d1b01e"}, - {file = "aiohttp-3.14.4-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:19290a108de0718b73bc69b86e788975c6a59855c671ebe2a98a07a6f968328f"}, - {file = "aiohttp-3.14.4-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:1494877625baeffab669f4a25a09ec4eea721b49e35363081a2a8e4231fe141f"}, - {file = "aiohttp-3.14.4-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:a779ce4bf099ce4ad2cdfed62f1ca536d435f53237c54ff40172fddada24d1b5"}, - {file = "aiohttp-3.14.4-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:0b4cec9fca876e2d4f4c6cb32b177390132d04618867689f43fefabf3f5c3980"}, - {file = "aiohttp-3.14.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:217707313e23aedde9bea67cf8365c7b138b549ae179121ef3f476cf67e3173a"}, - {file = "aiohttp-3.14.4-cp312-cp312-win32.whl", hash = "sha256:18a9fb9a3f6e6e63f4d27f9adeef313a2d3c69a84d31170a844623824e722534"}, - {file = "aiohttp-3.14.4-cp312-cp312-win_amd64.whl", hash = "sha256:69dcb02d33dfe415d5ee342cc63b7d320efcaf4b761701c7bd7bfb91c715481a"}, - {file = "aiohttp-3.14.4-cp312-cp312-win_arm64.whl", hash = "sha256:d36b0263e7c2fbf1750b9f35d4e7e48b0442d8c45e4a89e3e74168821fb014bb"}, - {file = "aiohttp-3.14.4-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:264b5a7568306590c44ae4a0237ad1715e35d447ea44ebf324e4c8fd9f78f67a"}, - {file = "aiohttp-3.14.4-cp313-cp313-android_24_x86_64.whl", hash = "sha256:17e5d7c7775d8dd8e894c7ef6ebfa26509de36868a9a6c7c4fcfaf6a1bf43d60"}, - {file = "aiohttp-3.14.4-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:e91dc8fe9cbd052d16f7f1267e285cf8bbac4d2194bd5741f05ef201c77ed09e"}, - {file = "aiohttp-3.14.4-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:8df6157d31703972aec9e3b93963f039ff06318301e30b007c3e941ff8a7ac42"}, - {file = "aiohttp-3.14.4-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:220912b351549dc736c59d104dc443fa615753102bb778a4e98f86e4d94bff6a"}, - {file = "aiohttp-3.14.4-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:2efa42b39bb3f524d5eca3760639b584afdd1143a6b047fda29910ffb75e4993"}, - {file = "aiohttp-3.14.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:7e7356059c8262d2c1fd95242e2b7b70fbc6eee3135bf470049cbec3e968b5b0"}, - {file = "aiohttp-3.14.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:fac247d0cc956d732df1211ac2d8a9999ec8dc1a92a90401de9d52e4ead546f7"}, - {file = "aiohttp-3.14.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6e2eb0f8b03b4f2bd154ed8cf7c1a119a1ad04808c258bf58f90138c83b8c6d5"}, - {file = "aiohttp-3.14.4-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7fbe827d27e0e369fd7bb88ceeaa5b46ea006e73e015b9dd77e3723a53162293"}, - {file = "aiohttp-3.14.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a70387146d03af9f047c629b71aa27d9594b3b31ec4c9c91e1a73d0d8bf38e0e"}, - {file = "aiohttp-3.14.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0d0934926fc65744e2fdd44ce68b2d79d5ee608a1e23f0596b35dd696519bb7c"}, - {file = "aiohttp-3.14.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ff4b366510c733974adb7a4102c094e4a6308e6f369315a4cf14d2d0a619cf82"}, - {file = "aiohttp-3.14.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:85fac7c99e0ac3dcbd6ae1c33774e0603bfc732ddb967a6fce4a731103c1888e"}, - {file = "aiohttp-3.14.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ef1e9c3b4a2300023a5dc865889ce532cfaf6798ba4ef78fbbefe738a9d23efa"}, - {file = "aiohttp-3.14.4-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:97e65916588be0f952b3307aaa8460c0771fa98dbea2dd27dabc9f5d84d53c3b"}, - {file = "aiohttp-3.14.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:840775cb39a9424f9edf142133a1192263ac5bd79117ad2a16602cef6a0c1e9d"}, - {file = "aiohttp-3.14.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:54f9256430ca040d58affbd551513de13a5cff7d065204fc52b9a1b0af09a049"}, - {file = "aiohttp-3.14.4-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:6112d5931bf12c776188cab81b82bbb17d86e2e1381f2ade6edc43e6b240f0cb"}, - {file = "aiohttp-3.14.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:facc6df39047c4732cbd885bb62e40df20885fcd709fc399e11f81b45ce0fff9"}, - {file = "aiohttp-3.14.4-cp313-cp313-win32.whl", hash = "sha256:7968634fa3a967a2bc0b9aeba1d5a1955501dcd7d0de44b96f7ebfb662797735"}, - {file = "aiohttp-3.14.4-cp313-cp313-win_amd64.whl", hash = "sha256:c0a894b0265d139cd4c2c8bd4643822cc289a4a5331e21e810881bd000ffb2dc"}, - {file = "aiohttp-3.14.4-cp313-cp313-win_arm64.whl", hash = "sha256:da16c3037178e72589d91de59536d271dffc92c2be2b47c38a45538cba54fd29"}, - {file = "aiohttp-3.14.4-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:749bfc43bb1df71bbe6ed215044d5412d786698fc5771d2037436ca49622f3c9"}, - {file = "aiohttp-3.14.4-cp314-cp314-android_24_x86_64.whl", hash = "sha256:c113e4b489d711f606ca278cd8dc89179746244ea841aa0638b1b134600afad0"}, - {file = "aiohttp-3.14.4-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:50969522bc7022026a2c7968e67da5c789f6b716b988edac55dc630390efd5df"}, - {file = "aiohttp-3.14.4-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:cbf92cd7a1c800cee244558dd5630abb45c1c1093ef7b0d546a99f526ff7a9eb"}, - {file = "aiohttp-3.14.4-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:fc76be08ff407fba717a769aff04ca1b4bf9ecfdcb5caadef84a563fdbbd146d"}, - {file = "aiohttp-3.14.4-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:9b416f995b68a921069e6ec61fa07f2ac3ff033d92e97a69f673af89f5bb954d"}, - {file = "aiohttp-3.14.4-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:2c9585101cfca10e74a07cc0ef2bdc6d90616e6750926b20456f429d0608f740"}, - {file = "aiohttp-3.14.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:3c4dcf611b095e7983421f49d01ffbed7ed574891533d606ea115fc23e7c4e90"}, - {file = "aiohttp-3.14.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f8f61a9b5fa56c58e3441f9dc64137f786232d40fb89127190d0e0f84e1e5865"}, - {file = "aiohttp-3.14.4-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:d43e538dfc85b705fd832620d050970ef5613b3869a7169b44a554b9dab9eee9"}, - {file = "aiohttp-3.14.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4135c4bb4b7682a7633fadc7170ea969d843f83aa7224e70111a20675105c985"}, - {file = "aiohttp-3.14.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:9055324f156a94fdf6dc9a825ae60f9a2947b88f591ea81ee80826633de62ae7"}, - {file = "aiohttp-3.14.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fb22c8e4b60385a9b414c70c6e8b2d0f4b23ff7fc4bb572ceb58297b228169f1"}, - {file = "aiohttp-3.14.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3b6945559a260112742ed58cde2165488d2fc51aeea34afbaa99d9371b43e1b5"}, - {file = "aiohttp-3.14.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:8f4078a90b174f15efb2c8725e8720c40dbd3b2cf6350dbc085c964a938d9de7"}, - {file = "aiohttp-3.14.4-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:f433c5654e32f72de3ef074d715eb5c7604eb6d28a5c2f3c9e5056f20fe6b306"}, - {file = "aiohttp-3.14.4-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:871035fe79c636b6bc126ed78df37d72b830dfc751612cb4b1040360edf2719f"}, - {file = "aiohttp-3.14.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:2617132524f66338f6c1d218cd16081576aefc40df4f2bcba338a99fbf67fec1"}, - {file = "aiohttp-3.14.4-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:d8bc326133272deee8ef337581550450e4bb735c0520be893b950a1f5baaf41a"}, - {file = "aiohttp-3.14.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:3ec57223e261b7fa9979c12dbce009ca53439be76cac3af27f860d3e4b1d6f7a"}, - {file = "aiohttp-3.14.4-cp314-cp314-win32.whl", hash = "sha256:7242043e71fc449a19a47d92f4e9fd1e0ae8d3f88488982381f422bf6d651218"}, - {file = "aiohttp-3.14.4-cp314-cp314-win_amd64.whl", hash = "sha256:019587c7b3a44917dd61bcb312fd5c034f341dc9851b83e7b41b65e08b68ca0f"}, - {file = "aiohttp-3.14.4-cp314-cp314-win_arm64.whl", hash = "sha256:60dc71d38db0988f37e78f6ad4a010a2f6355cfac3fff5f130cf5ef2231f3f0d"}, - {file = "aiohttp-3.14.4-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:674f53ab9d2794e2dd767619a3384bf1006f8d075e43c19d449a645f8ff641c2"}, - {file = "aiohttp-3.14.4-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:6d243221f73e5ac546c2ed9255100423e4bc092b08b944f23498e8cf3096c26c"}, - {file = "aiohttp-3.14.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0daa016eb74e7888ed5f9ceec6eea3158999c1c4a115ef5cbe88baa8d924f94c"}, - {file = "aiohttp-3.14.4-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:70c031a622aa20add05ebd234b90adaf6bf51c1c88cc305ec760721af83308c3"}, - {file = "aiohttp-3.14.4-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7df363fa7c38945a896e12c69af4a1a56cbd4152791d9e41fd0bac396b72de38"}, - {file = "aiohttp-3.14.4-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:02a508ba5ad91c4d730523584c0adc65882274bba5e37c33bc2f475e37577256"}, - {file = "aiohttp-3.14.4-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0cb3edece6fe6a944eaf97d803b88f606da6bc1600b1894c2969e78ffdc1fc29"}, - {file = "aiohttp-3.14.4-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:21ce1223b461bcc5fb389a7204001578f1c0b85c2da60a84d915ebb021294245"}, - {file = "aiohttp-3.14.4-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:35d5432f0dc1c8b71307e9112461b52f336da225e344283eec4779222c0a1dff"}, - {file = "aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:d6ec364493057c118d08292f7cd60865965c209167d8657b45643a26aef77495"}, - {file = "aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:70492983b7aed9e61bda82fe1ce80bcba9199610886443133783a288638923c0"}, - {file = "aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:a77776673331577147e9d25cd7833a72e8891b47556336cff06ba1569e488b99"}, - {file = "aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:73799000dd6fd5247094fd8e6d3e1eb871e41aab5cc35dff9d9f654cd230bc24"}, - {file = "aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:27b370fb532e707e8c96d04fa0c96301fb7dba2d50aaca57f6c456cdfffec5bd"}, - {file = "aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:884e0d1c707b6217fee3080b9b4029eee7551af788ee761010df19be158414b7"}, - {file = "aiohttp-3.14.4-cp314-cp314t-win32.whl", hash = "sha256:f2e3d34edb151d3e27f93a8338e2da33e2c7261cd4c879ce5f5fe280cc190ea5"}, - {file = "aiohttp-3.14.4-cp314-cp314t-win_amd64.whl", hash = "sha256:88cf889e51092537fe44adfbff96c2a22d6479d6f92b97b3d413fbfd0a4decf4"}, - {file = "aiohttp-3.14.4-cp314-cp314t-win_arm64.whl", hash = "sha256:ca450c6d42fda7c0bfaf0e200f32f77c5f2c960a33be1e14d197c84588b7f5f6"}, - {file = "aiohttp-3.14.4-cp315-cp315-android_24_arm64_v8a.whl", hash = "sha256:3b10799df72f66c30935bc661cb89e5ac2918debfc575e350e226fbaa846cbb7"}, - {file = "aiohttp-3.14.4-cp315-cp315-android_24_x86_64.whl", hash = "sha256:7ffd7f9dd39caccc6b2f68ec0339435ecad2b20f6ea2e2b3de91bbe464ac7137"}, - {file = "aiohttp-3.14.4-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:a0a7a227353f7693f73878ad14cd2623cafadd656ababcd20e2adfb7225172ea"}, - {file = "aiohttp-3.14.4-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:1c43b6af8e4708e8b3812a9ee4f79895207e12d555b7f6d70deb838e0011e12d"}, - {file = "aiohttp-3.14.4-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:97416b2b997e5e9b817e322b2f0a89b76c54cde22471f51ac17ac15e10901ba0"}, - {file = "aiohttp-3.14.4-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:ee2a5aa31e507c17841d592364f2148393b17f83bc2766e9211e1eb31ea72a70"}, - {file = "aiohttp-3.14.4-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:5d5d9843c34866e986dd24eef713452609e304550c471320ce7b54b3cfb1391e"}, - {file = "aiohttp-3.14.4-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:efcbf93e31b52c21665b6ebc489eb6fdb0dfd86b592edc677b5cffdfa7b11677"}, - {file = "aiohttp-3.14.4-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2f1a79977794592dcf6485ed964ec2448db527a1bc0c72ec89663658dad3a739"}, - {file = "aiohttp-3.14.4-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:515e7ac6d27509dc3ba2c35fb88970b00b9e7b07ee7cc947c8733dcd54ef5def"}, - {file = "aiohttp-3.14.4-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:185154ffa3b54765b5de96f464f41cfa476f8815a03854ae5e0fe4d48fb06e9c"}, - {file = "aiohttp-3.14.4-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:6aece59f77959628a22cd2ffe48b102cda9611d680e090f204385b3998a1190f"}, - {file = "aiohttp-3.14.4-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d7205aa6589f1ad1306c6994ff2e1ab5efabacf938f9ffd7682fb225c197b06a"}, - {file = "aiohttp-3.14.4-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f38c7b3ce60d55ac0f2a9fd2edc194789d043fefea15cfb7dcb40b7d5f561146"}, - {file = "aiohttp-3.14.4-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:b0a1274ee4ee6203c15a341cce87f9f3df8151d5496047b3608bb62bd969cffc"}, - {file = "aiohttp-3.14.4-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:69ce2407951516f413adf3132b88451eababd710ce631f83c81a9603a3640253"}, - {file = "aiohttp-3.14.4-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:b84d3d057c60eb8e0c2b457a1203e868d82709d3f0c272a4975dfd88c2414939"}, - {file = "aiohttp-3.14.4-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:4ecc84f69c9e217984f6877e832e4786a74567432c0bf2b7512919fbdfe18ade"}, - {file = "aiohttp-3.14.4-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:878f2d7950238b2b0a8cbb88054444a125f0cfbc77f54c811aca0483132a9be3"}, - {file = "aiohttp-3.14.4-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:6ff9d3a0e6935f1cb0a6685f9f4b3f0d3e406456d7a434a03cf309b8cd5d7a2e"}, - {file = "aiohttp-3.14.4-cp315-cp315-win32.whl", hash = "sha256:e07dfd7cd360f20be26dc2487ad4c7f21b0b39fdd593e9ebf37d2424ad52defb"}, - {file = "aiohttp-3.14.4-cp315-cp315-win_amd64.whl", hash = "sha256:921fc4f1ad549091bfc39cb5e93925b04f307f83517756a3111843851130efce"}, - {file = "aiohttp-3.14.4-cp315-cp315-win_arm64.whl", hash = "sha256:5be8af106f96fd625f6c264fa9faaaa9e0104089684d9015d2fa5b6eba6407c7"}, - {file = "aiohttp-3.14.4-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:e69727ec04a4608200ff32ec29478299df7657e2eb78c416ae338d0ca6662596"}, - {file = "aiohttp-3.14.4-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:f8b658dd3ef2ebd7708b311ed96ff7cb5edaca001a30018a091504ef492bcb1c"}, - {file = "aiohttp-3.14.4-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:3749e018123df1205161a73ba96d336e17e9cf6b947295e53a43571de420e7b1"}, - {file = "aiohttp-3.14.4-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8f28a3c4fca436b2e594090e7cd22558f5e93a30ca18516c436de982da6fc25a"}, - {file = "aiohttp-3.14.4-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e099aae21246992a1d84303ff262262d054c474e46cace33b0d5a69810c71877"}, - {file = "aiohttp-3.14.4-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:fafb521891e646d9cf5da89f01c75e7159d08be7254a024149630a698be28251"}, - {file = "aiohttp-3.14.4-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:1d385db2cd154bce0b3dd451cf2a52bec91ebb7be2c3a5d06b14b4391631d807"}, - {file = "aiohttp-3.14.4-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ae8a244889d8a53549851bf595b9f382f64acca57e8762da1ecb26ba786828f7"}, - {file = "aiohttp-3.14.4-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:681dde68ff8d8d5e7d5abcad4feb45bfb457a218310c919825e21fc36cac3d0b"}, - {file = "aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:b91a6441fcaed88ca7bca67726b189332df3ceb6ac0dfc98dcb9654bb723288c"}, - {file = "aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:f15dbbac49bc15eaff95c0b8166525c4050996af578c7be141e145f40ee2cf24"}, - {file = "aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:7abae043e87692d1c2adda1fab501bb0612d28c4a23eb082005c1e684f792dac"}, - {file = "aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:21f4624fb1051fc1aa10d57a636a80e829f7d0417462d6f1ce380b08fe1a904c"}, - {file = "aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:2e8dc3a0fdaf9d12b954d3d06cc4c355d91b17fb6c671715b593624ca4c379f8"}, - {file = "aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:1410b6f6e3d52ea7c02c950496522ce6e85d5543bf154bc80a6141e505251cfa"}, - {file = "aiohttp-3.14.4-cp315-cp315t-win32.whl", hash = "sha256:a65189a89f3e621f7c27a968b5131bbca29126e2b8517dc72b205747a39d4c96"}, - {file = "aiohttp-3.14.4-cp315-cp315t-win_amd64.whl", hash = "sha256:2b2c95f5f769eec92b552969db1f79ea0282058ce5131ed0f2fa540b4af3f14e"}, - {file = "aiohttp-3.14.4-cp315-cp315t-win_arm64.whl", hash = "sha256:54209fff79346ee1ef0d5cbf92fa80a5bb37396406bb4d932e5107f9c29b2d3f"}, - {file = "aiohttp-3.14.4-py3-none-any.whl", hash = "sha256:5c6758ba62aea282c537179cfc8474a90f2b5f7b089cc5ff66d8920d86a9bfdd"}, - {file = "aiohttp-3.14.4.tar.gz", hash = "sha256:831fc5bd39ec2517851e348f613ddb5447a47cf4b71cb09845af7ad7ed45d8f9"}, + {file = "aiohttp-3.14.5-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:ef692a24087a699c0a4a26af45e746e0c1eae2116f6d8a5ff91d8aae2b867b45"}, + {file = "aiohttp-3.14.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1220353657ad49493551f089ce02f1a348fd57ffd585bfec77f2f3c4fe3a7346"}, + {file = "aiohttp-3.14.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:330900acd0dc4cb8b27f9c127fbaad770964845338493e7906ae3822e82dbf8d"}, + {file = "aiohttp-3.14.5-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0684952aeae1f5dbfe02d46039338513b94009baecd15d8e4098a357c4c4a2a6"}, + {file = "aiohttp-3.14.5-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:d94e44be379e569758fee8a9a58431cfc3c2598c708b92b1cfe96c66b4c94aef"}, + {file = "aiohttp-3.14.5-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5af42135fdfebdadbc2bcd9c0842a48ccf0d62794c36a260b21dc4b94d1e0119"}, + {file = "aiohttp-3.14.5-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4f07fe3ac408d8b3f768be471dc3f56d43843c47d97c66120534467a15ead197"}, + {file = "aiohttp-3.14.5-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f375db73a39f5cf83696d500e21a67f418dc9a988955756f254be8f03b7b3651"}, + {file = "aiohttp-3.14.5-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8df7d481654ac96fe1ba9a02a9f67770fdd367823e0d5ef01b922725c4bd2cfa"}, + {file = "aiohttp-3.14.5-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:e95c8def4b81c5d68d5cf1f54c07acd7c0d2577af244e5b6da802120825737c6"}, + {file = "aiohttp-3.14.5-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:f2ebb54b3f932210503072f09974b4fb574d823e497a944adfdcd140a6a00255"}, + {file = "aiohttp-3.14.5-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:038c2c7e8caa26b6c8423779b5eaf1893904048a512c19b32fe841ffa5592b50"}, + {file = "aiohttp-3.14.5-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:b7806e804889231b0e06469fd4a5c06313d1c0a3377322b6d9237fa5e0fe4167"}, + {file = "aiohttp-3.14.5-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:9bab2045550c4fe0f7baf89574db1b455c195750702ba96fef1f16972b146617"}, + {file = "aiohttp-3.14.5-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:96a2e584f0b9ed8f1fa33211397dcf67bb7069866402cb405d191c2f0defb9a3"}, + {file = "aiohttp-3.14.5-cp310-cp310-win32.whl", hash = "sha256:602c1e9b718a3275c580149f947e7fac65044c0a20e599553fb12e9700da9eca"}, + {file = "aiohttp-3.14.5-cp310-cp310-win_amd64.whl", hash = "sha256:bea559ad70218d230663e4210875735076a9bfea5994cef34a55a25faeaf2544"}, + {file = "aiohttp-3.14.5-cp310-cp310-win_arm64.whl", hash = "sha256:dca3fa8d8a0a26679862eccb0b1a9151b2b9f1cd2c212e7a6335778faaff5833"}, + {file = "aiohttp-3.14.5-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:d51db97c96384fbfcaf8f4c65922183a68b94f891c3c10c862ef5f6df2adbb1f"}, + {file = "aiohttp-3.14.5-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ae53924aa853a7a2ca20ed4142c7c6b56338e4d4cd999e2980075b9efc2e257a"}, + {file = "aiohttp-3.14.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a2c473a355f9239efcb72c92d5abfd8fcdb0cc78c8e9af607e72ca12dbb36593"}, + {file = "aiohttp-3.14.5-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:32e8fa6644e541fcd7e02430588c7fc93b602c1778ea0bc345505db76b61cfb4"}, + {file = "aiohttp-3.14.5-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:579f97d5120f2971876d2ddca2968135f6944d00c44c3a6590ad7d86ca9b403f"}, + {file = "aiohttp-3.14.5-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:24409db442e2fb6e766bc7f3943851a8381dec3098140e43bb2e843b79e31b12"}, + {file = "aiohttp-3.14.5-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5e8f97c0488ffda3082766ac0f2c8150a9a58c4d05788330e479cfd449b37939"}, + {file = "aiohttp-3.14.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:50a195903119008fe9cc68710535eb37f556ffffd6a7759afe70a2c145587045"}, + {file = "aiohttp-3.14.5-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0133c3c3b54a0bf1e71fa5c1ad95c93f07fd54e24ef1fe182f5122e1573d2bf1"}, + {file = "aiohttp-3.14.5-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:c172db893e516e1358e65a95ee20b7ce7173963eefe318b6ab2a2220688b999e"}, + {file = "aiohttp-3.14.5-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:f2a7966bda23dd85051f1661ce0ace38d6890e05ec6c357ecae9d2479cba377e"}, + {file = "aiohttp-3.14.5-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:4887d130a7bbfed3a85493bb5a25e5b5b558d40c1d986dd16970d2bb26d63793"}, + {file = "aiohttp-3.14.5-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:225c579c23b68b343cccea27a7e06e3bd8ec23a09c30b427eb3f1e4ca6239b20"}, + {file = "aiohttp-3.14.5-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:ab52d8f1fc1b64821c1fbad64a647ed6203627004059a6d1ed4f0858a1499703"}, + {file = "aiohttp-3.14.5-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:cb131d775a1573c1aee66656bd78b023577bbdb6cb8349a07773bd4f73e68a6e"}, + {file = "aiohttp-3.14.5-cp311-cp311-win32.whl", hash = "sha256:e87046c8ff77a8decdb6a41d8ab25824b47531b2da933aeab0c1e21c7acff329"}, + {file = "aiohttp-3.14.5-cp311-cp311-win_amd64.whl", hash = "sha256:6f275c11d1aa6d4c458e05a68be084efe3c55a113d99e3f46a318098e52948fc"}, + {file = "aiohttp-3.14.5-cp311-cp311-win_arm64.whl", hash = "sha256:b032a0023eb41d768ce77d83210ab2a3c389bc0b09313273c7e1eca48c10a755"}, + {file = "aiohttp-3.14.5-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:df37b620684e19b5e25724412518ccafc3b1a49cdac706fdbd2f983fad943450"}, + {file = "aiohttp-3.14.5-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ef60869969180ec2464f1349aff07138ae35ca2200f0946cb3552e49e8f301a8"}, + {file = "aiohttp-3.14.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:d079c0a0135c36e7beb6f1c88087c8f108dc5891cdd0b5eafa778421bda70ed2"}, + {file = "aiohttp-3.14.5-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:abfda5cb094a829f7bc25216a32f7db2e85cc65bd59910f8e7b40b3d9b224764"}, + {file = "aiohttp-3.14.5-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:9cc882cf8619109583c906b4d4a85d6a111a98afa34b7a450d1e08118d016820"}, + {file = "aiohttp-3.14.5-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7457580535e019e1247ea35d6a02bf081ad30c26d0cbc210c93f6c3ab67a0835"}, + {file = "aiohttp-3.14.5-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c5ed596aedb9c42afd3fe0aae3117725378ac73d2cc5ddc735056fbdb96c5d02"}, + {file = "aiohttp-3.14.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:20f085697d7e911f1f73c43ed03fafbed1e7121797e2eb5428efa80398060584"}, + {file = "aiohttp-3.14.5-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:74b0a9c8270f9b0a11410e124ff8d4f18bfc1f1837440ec84da5ae7b50927b5d"}, + {file = "aiohttp-3.14.5-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:19e2ba471507c34f8252402ab50f5ab512398b9ea8c8f1cb26beb3f75793ba30"}, + {file = "aiohttp-3.14.5-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:d418ce2af40c6bb685b3f663e9e8de27cb0a22431d8e88a167348d7f01878073"}, + {file = "aiohttp-3.14.5-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:70cb4008ac2ed1e0ca9e824deb4b53d3aa0d939109698ebf1e723a84337bd794"}, + {file = "aiohttp-3.14.5-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:a23fe35d776bc03cb495938b9594450d047e3bc08c5255315a82323e9cb7d2dd"}, + {file = "aiohttp-3.14.5-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:3e0eb43bed3c6801a6cee315195377789e90b2a72c2277a475b578535312488d"}, + {file = "aiohttp-3.14.5-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:3be7dd397d64ca3e1869626fa9318aaebb54b7bf93bc72d7a205448d83e4f748"}, + {file = "aiohttp-3.14.5-cp312-cp312-win32.whl", hash = "sha256:eb324e2009fb54db30a071dad7caf6998ee2879c4704007efb244514dad1fec1"}, + {file = "aiohttp-3.14.5-cp312-cp312-win_amd64.whl", hash = "sha256:2cc38a4f2b516bef1714e690df87a0e043faf1a7693c82d860091684453d5111"}, + {file = "aiohttp-3.14.5-cp312-cp312-win_arm64.whl", hash = "sha256:a63afd1f757de949028387e65a7127b61ad0f775432dbb0e62816ae619fe69ac"}, + {file = "aiohttp-3.14.5-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:9ad7e6aa38c20da1be697874349c4c273c8a03b7887169665081706398d0439a"}, + {file = "aiohttp-3.14.5-cp313-cp313-android_24_x86_64.whl", hash = "sha256:f59c7673465908cbe506117176156c127f29f917677afceada34957179221d91"}, + {file = "aiohttp-3.14.5-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:1b5416552740edf07234cc9437d0706f2acb67b93c198670b1a68e1b2b587dec"}, + {file = "aiohttp-3.14.5-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:43351bdb5e4c3cb7d1772368e988534e869a74db7778079a83782c11c69535c7"}, + {file = "aiohttp-3.14.5-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:c8c4478bef6d57fcfda15dae461ea3c9f06aa7b257c58df3f2300174ccbb185a"}, + {file = "aiohttp-3.14.5-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:c2c30484dd1417ef98b51021ffa2cc0d7f3c78918adaaaab7e70817335ab3e02"}, + {file = "aiohttp-3.14.5-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:dab9ac5a67c8d1f070c00fa8fccb7cbd1b8dcc1a8d6b42f37540df9b3d4cc603"}, + {file = "aiohttp-3.14.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e1cc2bfaee8c214f06080a7c7d5772419b8a1108e8e5349236189811823fb02a"}, + {file = "aiohttp-3.14.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:74efb69332b85675b1eabd760a8cfc2e2cf42c60607c66f88014c1bdfb40942d"}, + {file = "aiohttp-3.14.5-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:42b5e616946dbaf505e2bff18c9af2cd4ef9e7ef300ee58a6e951a5b7cf147ae"}, + {file = "aiohttp-3.14.5-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f9033b43f511f27547c557dcaba0177649e10a3725336ccd2cce0fdc1dc4850d"}, + {file = "aiohttp-3.14.5-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:15a310d3c71398e3d7bfc93a1a73fbe664315cd9e9016b8efc1cff85eeab7155"}, + {file = "aiohttp-3.14.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1ffa3a523a36d8628f98c06492ae16a31a23d14c0b4ec721757b477319f656d6"}, + {file = "aiohttp-3.14.5-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5fb6a6e919bfb703227bc1ce6579281b84b1a2ba57deb9794dfdbec7dcd1e40c"}, + {file = "aiohttp-3.14.5-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:43e1b7994a8b038125f722bff07492ef501110722c2727c408995d9fb864c421"}, + {file = "aiohttp-3.14.5-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:5f3e96071686755d9cd3600c3880183eb94b012178e92746d68101800f0ed8a3"}, + {file = "aiohttp-3.14.5-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:cd88b01f3d37b7a2a34f91d98f14720206f1ea3d540843fab2d649dd5fb91fec"}, + {file = "aiohttp-3.14.5-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:f2ed8b64dc0c651c0f5a9c926777719770021251b8f336d97c4b80b660836ce1"}, + {file = "aiohttp-3.14.5-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:a9918e58faf62ba2c7147927d06057aec78f42475aff5048047ec47e7265a600"}, + {file = "aiohttp-3.14.5-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:42f320d4a5b00b9af0bddcfec5407dc6f2d9816f006b2f79ebbaa31f16895df3"}, + {file = "aiohttp-3.14.5-cp313-cp313-win32.whl", hash = "sha256:3ae800a20947e2c2e53088047d021e6bf7d51560cc49f6a0737a1f79d2e3a13c"}, + {file = "aiohttp-3.14.5-cp313-cp313-win_amd64.whl", hash = "sha256:d05e94cdfe0d15d0206f970722d2554780ce562787b21b218b275447f8751319"}, + {file = "aiohttp-3.14.5-cp313-cp313-win_arm64.whl", hash = "sha256:f001b571ead90ca1770f1e616db255351a1703317f20374c361ef22f12c06d09"}, + {file = "aiohttp-3.14.5-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:939042d5cda21d41a6f512e7cc8b8e33a2aebff863352251da495fbd91b673b5"}, + {file = "aiohttp-3.14.5-cp314-cp314-android_24_x86_64.whl", hash = "sha256:6da32b5ff3fd78d244e37300463434c7145162bfd2b6e9e915ab164da37f7343"}, + {file = "aiohttp-3.14.5-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:1b438b73c38111818d0c9d6a5c2bfed8584c8e503a49ef085d70e874ec846738"}, + {file = "aiohttp-3.14.5-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:755933b107ea7a6a9ac916f635a70595a5b1a32fac10a8ff0b9f2ab88555550c"}, + {file = "aiohttp-3.14.5-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:b3cc509327c7b27f6f4727a8830f4004f6df7766e179f2f4b8e54e65c0bec5d3"}, + {file = "aiohttp-3.14.5-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:7bd8ac754ebd6733a3e2a0dd1674c4d8ab086196803fd8dcd776f07b4e2607d9"}, + {file = "aiohttp-3.14.5-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:e724a7b6091f0b1ac064f9d1b15ff9ec52e6033a86cdae649e5f086e32a3c0db"}, + {file = "aiohttp-3.14.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c32e26310cc10e547f53cd13d39a369034f69dcb7d749d5cb0e5f67bc196b6ba"}, + {file = "aiohttp-3.14.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1eb8167961ec4dfcc8cb9dd50bd0ee72519f7ef496be95203e49e27b01618382"}, + {file = "aiohttp-3.14.5-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c1d60eafd9c7e8e74abd03a5b00df44e7febfe6d9b89b559c0a6551eef0699d4"}, + {file = "aiohttp-3.14.5-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:137351bf20bbed9a65e839f4a4452ac377389bdb2f2857d2acffef38f5e9f2d1"}, + {file = "aiohttp-3.14.5-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:fba47bc2c3d7303c3d027c6cf4d07626c37b1314ac81f5820c31032e0ca1f677"}, + {file = "aiohttp-3.14.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:94684b879ac1d71e4238850c99b62dc1b28d9086b156a2555f082010b85a865c"}, + {file = "aiohttp-3.14.5-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:56572c42e3ecd636de8d2c3dd54cf5fc939cb5c32eb56297f176a0d366fac622"}, + {file = "aiohttp-3.14.5-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:a95529a92a446db351675f4aab518feaf5e99842f63f5dd17160c2b74f382db3"}, + {file = "aiohttp-3.14.5-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:3edbece0379b8b4aaa67619b8aa2399bb66fce372cd5911098a434ea77220aa0"}, + {file = "aiohttp-3.14.5-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:56d9828f204331a5ca8850fcfe2bcce95a149f1f223f60cc7216e5524978e480"}, + {file = "aiohttp-3.14.5-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:20064a177a070d789ee64a50b01a9161d3468e989baacfc6c714aa685c4b332f"}, + {file = "aiohttp-3.14.5-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:81c2b3dfd56c62bee6108e4852d5970b4cf9086390b6983f52b666e878c1f115"}, + {file = "aiohttp-3.14.5-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:09ec102b4b8c9a920275733bbc11fdbb615efe6f9231a06007c0218d336fb77a"}, + {file = "aiohttp-3.14.5-cp314-cp314-win32.whl", hash = "sha256:9c428eb2bd8817588d16a0ab898aa4eb5d141f896aa2b394cc79a4cf61d9a8e2"}, + {file = "aiohttp-3.14.5-cp314-cp314-win_amd64.whl", hash = "sha256:6f967dde489ca6a8c02d093ab245d2cbf50ccb5c36adf0188b17b0ca39d24b67"}, + {file = "aiohttp-3.14.5-cp314-cp314-win_arm64.whl", hash = "sha256:1d2d981b53dd09a319e3570ef8cc3bbc3ef86f5a7abef0f6b2bff3867db3a9e7"}, + {file = "aiohttp-3.14.5-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:9ce66feae6ac65327379460380549bf1b8df8e17c4e25df2a2bcf168272e3bed"}, + {file = "aiohttp-3.14.5-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:27c2322e03f66101acb09869ce1cf1efc04994ee95e1735b69827bf8c8b9d781"}, + {file = "aiohttp-3.14.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ff75a7537413a86e7cafe98e0e1d6e3dc4b15c6349896e7d5c6b881bfdb6d550"}, + {file = "aiohttp-3.14.5-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c061aa954daaf57d2a4b8374f9fca621ef0e1b603584431c220c22458c59b6d"}, + {file = "aiohttp-3.14.5-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:1612fa5857b37bf32e5c1eaeefb96e3b01e9c70679eec81f0934e8a600080863"}, + {file = "aiohttp-3.14.5-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:adbeee7d6fd4cf5fe0aece2fb3edc4243615d3180430ba8149d01a90670cac99"}, + {file = "aiohttp-3.14.5-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b2966998927d7bed9db12c0a4647b0c7b179755878fc9c357fe1ffd3e3b0c1a5"}, + {file = "aiohttp-3.14.5-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8e317e0fb6b16212c881d2205a7d87414c29acd69320b3aa6dce9d9c7b86fe4f"}, + {file = "aiohttp-3.14.5-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:50343c1757b4b6f6708eeaf24534b32f19dfb99fb1b762c00420867a62fc81e0"}, + {file = "aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:083673c7a94c3ea035caaa5ca04288bdb44887abfe1f5ba23294e6a4b03efd2d"}, + {file = "aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:2528cb4c6b92008c76ac9ac6298624069bb2db91ff4929905512d1d84485f658"}, + {file = "aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:b1b8ece1e71132d2afba4dbc0c3d62c766e25165990b25db1196c04969eb3d84"}, + {file = "aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:fce9523df31cea6284f3e2c479876750d7687cf671d7b25d32b19effc0e86441"}, + {file = "aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:09e0eb18c7e0c8777e2f9149de63799195b9b3ca1b5c81ba6f32f2c6b8628210"}, + {file = "aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:6774814fd5c338e72ee0da5cbb9432816df450e69c019f72b5d29bdec2a1792d"}, + {file = "aiohttp-3.14.5-cp314-cp314t-win32.whl", hash = "sha256:33f706574e32c6e694f352a856e05caf18f7f2c871b3e87b41c55ea452b409ab"}, + {file = "aiohttp-3.14.5-cp314-cp314t-win_amd64.whl", hash = "sha256:5ba14a839fbe87cf7c12a6b5661c05f324a296eb8363141edb3944ba63d4c9d3"}, + {file = "aiohttp-3.14.5-cp314-cp314t-win_arm64.whl", hash = "sha256:1061b364556e8172e8d46b0b183adeeb73e8c42d30ebc745591e1bd89acad52e"}, + {file = "aiohttp-3.14.5-cp315-cp315-android_24_arm64_v8a.whl", hash = "sha256:788ecaa9c10533b786ce5ba70c4f2df78ad41819fd00a6c99d92b66f9a32e1da"}, + {file = "aiohttp-3.14.5-cp315-cp315-android_24_x86_64.whl", hash = "sha256:5c76f1802bab718a68ac3cce447160605c734551f95c67ae90fa1132b215cb29"}, + {file = "aiohttp-3.14.5-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:a6d02b4c38de03d9c7617813433e6a0fb6b522797974177d69d9dad431900833"}, + {file = "aiohttp-3.14.5-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:20726f9782d5c2744c1c66255842d1d163bb3edcf768b8de25216bf47f7b6ccf"}, + {file = "aiohttp-3.14.5-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:248d779ad720b49d4fb355720e60c9e5f444f95887bc16974fea48fc56c41789"}, + {file = "aiohttp-3.14.5-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:0a8ea271867e360ac985ae607f4a23ad9a38414b9aca1d49ec98839ae660e49f"}, + {file = "aiohttp-3.14.5-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:823c910f046f23f4c713b8d99a2242dc65f591cb45ee86418fa11762a3c2963c"}, + {file = "aiohttp-3.14.5-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:9b42db919715e91eb76acf3bc492a9a7ccd8bd9adc6745c1412b689735269f14"}, + {file = "aiohttp-3.14.5-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d3112585250b199296c26ca6e0131640b6a8d01bab8b232d2eb3763ed469de11"}, + {file = "aiohttp-3.14.5-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c147451b4a58e7050f7f7394e6c467867c84161560001f9ad4fb2d1446743946"}, + {file = "aiohttp-3.14.5-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bf163cc701f3d4ac43ba7d97771bf5fd955220ef5500ef3ee847bc0ecfbf4ec1"}, + {file = "aiohttp-3.14.5-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f8d40ce41991e9d56fab4f5dc4a51fe59bc3b5c77c27f4b148963064d00232e8"}, + {file = "aiohttp-3.14.5-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:276a4fc00b1d9ae492b802763a789c5b86328b989c5ea169f2faa447d6a11c7c"}, + {file = "aiohttp-3.14.5-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:50983e3be33d8c0942ab88cec3905b10602f64c469b20153c48c5d4e558dd016"}, + {file = "aiohttp-3.14.5-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:16c8abd5bca220a47efe667d26f8460124c81810787e79ee87b242677563d9dd"}, + {file = "aiohttp-3.14.5-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:0790ec66fa4013e83c53b9025a45d454723da1a2fce28b3208c9b32d08af162f"}, + {file = "aiohttp-3.14.5-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:cb11a971a3aea10f9b8373be628f1df932964fc6c6b174516d318a48c3ac4412"}, + {file = "aiohttp-3.14.5-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:932ce7e694bbc29b2bf6f64f2343c27d148d4997c771d01bdade4639b6749ff4"}, + {file = "aiohttp-3.14.5-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:a7d470cf7b206e6359fc77b1b860632fde400d5a2ed59cd0181b93a686bc81ee"}, + {file = "aiohttp-3.14.5-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:6e1d8637cf73eebc92eba2e11d4cfff98a3b562f2505bd75bba766d908926e8d"}, + {file = "aiohttp-3.14.5-cp315-cp315-win32.whl", hash = "sha256:fbdc5ec49f9ca3cd24955cf3520b10a4d4c901ba2572094c84274e9e7eb30534"}, + {file = "aiohttp-3.14.5-cp315-cp315-win_amd64.whl", hash = "sha256:a9d3983bd6ab7aa1cfd573544ae98df9b6cb6912a5185a198263e024a636861d"}, + {file = "aiohttp-3.14.5-cp315-cp315-win_arm64.whl", hash = "sha256:e29347c142cf6e99e0dff5e2995ead1d50fa3b51bf37a7c726a7ccfe5419745a"}, + {file = "aiohttp-3.14.5-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:9bf1d5dcc15204d9ec8b8ea4c18fd66e6b80e5de1f4ecbafb3a2f2740f8039d4"}, + {file = "aiohttp-3.14.5-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:14f04769cfefe4734016a856a83af36133cd17779cef9ae817f812b8ba9d6d51"}, + {file = "aiohttp-3.14.5-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:6e4251c0ba4624a68a2c11471a1ac54c3306876c21f0ae86de085cc9241c8905"}, + {file = "aiohttp-3.14.5-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e4f5cf4dc72a71c4cfa9751b4950be22f733626670230d46e7d606592aa22d59"}, + {file = "aiohttp-3.14.5-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:dbf53ae2601b7fd5a93c3944deea3a78d40f495226d582c35ef7a433425ce2b2"}, + {file = "aiohttp-3.14.5-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:657291433bf4dd3142f3abac495764cd47d0c7c92087751e6666c6447e65fcef"}, + {file = "aiohttp-3.14.5-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3e51a27980c3788e6e6b3325d694fdd4898087fa8a86b2763af77b39353da41e"}, + {file = "aiohttp-3.14.5-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:82c7583cd3dfdc7dcc927835b4f6c7faae7ecc1ba3ca5879321621ae2e6f8e84"}, + {file = "aiohttp-3.14.5-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:6fdcd6af7e2e51d1ba1b4bea16e97b074bcb7b5dd0246a9d8201341bb28085a0"}, + {file = "aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:c8859a013ae0de1074660992139a1a440df3e6b219b86cf0d3f11c2692bb4fe3"}, + {file = "aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:8966ecac808dd5f473c9c4cefd10cd3ffda71c18a4d3493b7c7d2ae1803bf2cc"}, + {file = "aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:3093b72c215bda16ce961a6d073f6e71d46e022962a9d5d457c5d4d421c78b57"}, + {file = "aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:149fb56caf7acb67073126f675d0958d9c4b3125fcd3f6d4877df98aa8a97ce9"}, + {file = "aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:293d3ae7c6a0ed176a42e59a1b5fde825ead65c835360f734148e96729f928d2"}, + {file = "aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:3f2dcc00191fd563e9075181a14ec31d7dd63223ced7582cc70a15a499de0c79"}, + {file = "aiohttp-3.14.5-cp315-cp315t-win32.whl", hash = "sha256:7779cd97e61ebe583ec2f1c5616cdd038aa08a4453b1848c67842176d054948e"}, + {file = "aiohttp-3.14.5-cp315-cp315t-win_amd64.whl", hash = "sha256:0e6f16f5e49c4b8267988c05ab07760d7064cea57d077c3d068d04b0fbb992cb"}, + {file = "aiohttp-3.14.5-cp315-cp315t-win_arm64.whl", hash = "sha256:1aead151c3abbac6b32942e452020cb66d7efc099d253cc6c20f748e926c858b"}, + {file = "aiohttp-3.14.5-py3-none-any.whl", hash = "sha256:efc21a454892828368b11c2c780de0ff8bc991f73f6b99c6b66e56205470929b"}, + {file = "aiohttp-3.14.5.tar.gz", hash = "sha256:5558a7f5a05af9ecf744af91e5baefc436f93c9333e656c27ec253f9a6bbe178"}, ] [package.dependencies] @@ -191,7 +191,7 @@ aiosignal = ">=1.4.0" async-timeout = {version = ">=4.0,<6.0", markers = "python_version < \"3.11\""} attrs = ">=17.3.0" frozenlist = ">=1.1.1" -multidict = ">=4.5,<7.0" +multidict = ">=4.5,<8.0" propcache = ">=0.2.0" typing_extensions = {version = ">=4.4", markers = "python_version < \"3.13\""} yarl = ">=1.25.1,<2.0" @@ -592,184 +592,184 @@ files = [ [[package]] name = "multidict" -version = "6.9.1" +version = "7.1.0" description = "multidict implementation" optional = true python-versions = ">=3.10" groups = ["main"] markers = "extra == \"aiohttp\"" files = [ - {file = "multidict-6.9.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:aef74e9beabbd6c4aafc091dabff86d046ccf013ce1e4396c0fbb01b4cad9de8"}, - {file = "multidict-6.9.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1ca5ebe6d454f1e5496cf052386a559f1080bf2de75bf327ebca0a6003b79f19"}, - {file = "multidict-6.9.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:02f6d0c4b70f783305e73f9944d8efe6be1022550f0974ba0ae9d8893c0350fa"}, - {file = "multidict-6.9.1-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:8050e75af7e4c6e2d5260b84eeedb618f3e452e66473432e085b5d1b81429299"}, - {file = "multidict-6.9.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4736d350371337825cac1793c9f7c40701c32a03912548c2a7608e51679cbb96"}, - {file = "multidict-6.9.1-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:02fe09dc197b8ae7e355371e51e5dce2f39060cd5a8badf94904527e23a3f188"}, - {file = "multidict-6.9.1-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ad4528cdce058b684f75fad1faf4a6a6c992fe2f08376370ca66e4ce5916a84a"}, - {file = "multidict-6.9.1-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:8885e3808aedbd6725b921fb67dacaae0678933561ddd47c2b01315198c70e2e"}, - {file = "multidict-6.9.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d3b6e6840421c83ccb60398e333b44f910b0907bb409597685ab2eedd1e22eab"}, - {file = "multidict-6.9.1-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c9648ed33dc8179e4ec04bbc73bd7f0038e1e81217a69467f61f02a78bf07e88"}, - {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:d9d6544790ba50438a9c1a903c3c4afb1ec8a7832db5518549275b40ef0dd4b1"}, - {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:1c9f3c25df6c9d3bbae4f6fd3f514b1c5c740a2110f56ccf36069c85417e289c"}, - {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:cf22b43f35b7dbb9f71e8ee2041b5c00029cdfc28ede3a2f31cf8906f9a6c126"}, - {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:8ed78ccad4c7b421804f5d524b7740946a7ef75d89dc0dac52e9d7c24c472410"}, - {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:e3b1aa25f01238886a6baed9e13b9a9240ed344346c79ae280ae65e8603b21d5"}, - {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:bc94a68ea5e18f8e85dc6b522bcb53093f692c8eb62b4837ac047da73956cbe4"}, - {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:73533644e1f69ea1164d56cc6505f564c6c44072b646b66d67df2d31fed0348c"}, - {file = "multidict-6.9.1-cp310-cp310-win32.whl", hash = "sha256:66987aa68b0f7c2a1cc5f388ca962b8ed92b10f79de38d6d0d8c716154f519d9"}, - {file = "multidict-6.9.1-cp310-cp310-win_amd64.whl", hash = "sha256:a32b78c1e52ebd8e247bb68300b90b233300d8816faa008ed0713bc539fb6af0"}, - {file = "multidict-6.9.1-cp310-cp310-win_arm64.whl", hash = "sha256:ab64ace1a68682d191d9bedd9d4c939406ad86b1d9f628180410644249ad46c2"}, - {file = "multidict-6.9.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:910d4260512660484c0dc1588a316fbb35a40c081c36fc51d1225351af17cfe4"}, - {file = "multidict-6.9.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:33fa55b990f81c2927e01399ace0d18926c69d69baa8cdaa819424132fb97987"}, - {file = "multidict-6.9.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:369b5aa01b241cd3fea6890bdbb11a1425d87bf1515831500d518f4223e9d72c"}, - {file = "multidict-6.9.1-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:803f8b575a71b1b299d677c28db0653459c79b5308874efec813f17b7457c7f1"}, - {file = "multidict-6.9.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b8a65621b98984a62e59403009591b8a5a7736273aefe1cab64cfb85b365cc07"}, - {file = "multidict-6.9.1-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:13849a1d4f54c3809ae721e9e83ab28f5ea602f33660cb84eb6ef261eac706c1"}, - {file = "multidict-6.9.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:dd9a137a4a9becda3094f3831cd026380f75f6855e051eefe4c73ade524f1cc3"}, - {file = "multidict-6.9.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:9ae9614c317c50836689ce2dfde07c05fe0b16378562e2221746c3913ede3c80"}, - {file = "multidict-6.9.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e8f1e362c9352b50ed120f001046fdbb80810c9d56580f4c3fc13bbe30823387"}, - {file = "multidict-6.9.1-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0dd655518f136febd96c05131a76a863e32fc2a1d7acd4e3c959e3ceb77d8345"}, - {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:2c5d675da8f1cb5650271c8ad5e95c0a3e5a183c105e72d953b12877b1c8d0fd"}, - {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:658f90f49cf5af2441cad0a2b801c3ef520471989a1ec55bcb25b255b2ca8d2f"}, - {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:43124fe172ada86d03ac3c8dc8179091341f6724d5e5d5b160e1587e4cd3761b"}, - {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:b2f0adc22a4eb31e545221d93fc73a0f6a8cc2379d0f4309f71d1d17ba938b82"}, - {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:7fc59e9ba821b220944ccfe0f89c9dc4745f6d097569992356eb03869f21e953"}, - {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:87cc632c88ee5dc80e12681047839304d98ee5c9a708d686505767001c9b8b9a"}, - {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b828cf64d62dc09ac183f03c1aeedd164ade96a2ce4934109452edf29de1dd13"}, - {file = "multidict-6.9.1-cp311-cp311-win32.whl", hash = "sha256:2c1aeb92eea59d824f004341b26d5e4b47a8a441cf9726769b9a90abf9d0e08f"}, - {file = "multidict-6.9.1-cp311-cp311-win_amd64.whl", hash = "sha256:5f89dad732280e7a10b74d40b91364f88e13c3f2c08c2ef83a8cd42f7a61af2e"}, - {file = "multidict-6.9.1-cp311-cp311-win_arm64.whl", hash = "sha256:5800368526647146978389dfaa46da3356291e9f0fff9a4ef12e8c2bef964a0d"}, - {file = "multidict-6.9.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:29138fef49828542e859828107e42e50d0e587c513b7eb4b2d92bade2b0860fe"}, - {file = "multidict-6.9.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:19e31815d41cefc365489e591d105d2baceb2f65aa75d29471fbdbda8651e006"}, - {file = "multidict-6.9.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:6ed30be8918e18c8bed0a2e8b70639ecf02feb61ed00ca2e41cfcb2a50fa3f42"}, - {file = "multidict-6.9.1-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:637f4ae36264bd7b8d9a60193acddc1d735ad52e8ed53a19931ea6d921fea8e5"}, - {file = "multidict-6.9.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:35fc236507fb1b3138f0af5ecd5f94ed752d4d6d826248eae425f86204013eea"}, - {file = "multidict-6.9.1-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e58952f04772f59f11c6e007471449809a30165188669bca8fdb19dde40a8f24"}, - {file = "multidict-6.9.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:d35a4f1c63f07fbb8c8f9946dea98b21eddf6c57421585f71d91864be3ba2a24"}, - {file = "multidict-6.9.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b5f8771aaaed7f80e84a4e471d2f29ab6721e4595075e54d03ae1ed951b2000a"}, - {file = "multidict-6.9.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:976fd7689d69ec78d67d31d38d396d8adb562f7e8368279f76aed4aa451fa06d"}, - {file = "multidict-6.9.1-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:95052e8777a86bae87c0bd0b5ab22d809e3d1d02bf69e3e66ddda5ba75a05805"}, - {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1a8adfcaf96f587ab138476eaddef95f29b8a2a8a9afbfea8d2fd62180995d02"}, - {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:1a53de2772cfb74559df2eb4456ec4eeb908435ec55a84b69370d9d745d62aa8"}, - {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:0f2ce963299d42fa3f22a90adc0fdf174792ffef5ff4c7ffb68260548fb05580"}, - {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:5b30ddf7234e611ca877575b62840e6af5977f92f1f9d532eedbb05a44ff8004"}, - {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:63ada7ee2e9345695f9e9bc4c65d72222253f07b1ac94fd0e37555cc6f3c7f60"}, - {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:3c95601ed98fad3f6e2f8fe809c3b526b0fab31ef525e00a155e227f3d17f58a"}, - {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:c148e8b596000dd3e4bfe206e70f3e666be18d72032e0012555f2373c52e35d6"}, - {file = "multidict-6.9.1-cp312-cp312-win32.whl", hash = "sha256:f9dad513626a33670f17cddc6078e30e311f444c957e8dbfc5b2b4603c8b4edb"}, - {file = "multidict-6.9.1-cp312-cp312-win_amd64.whl", hash = "sha256:a16a1dc8529f9e734a41c3b856f3eae7ebacdc061dde3f8a844e0c7889c97203"}, - {file = "multidict-6.9.1-cp312-cp312-win_arm64.whl", hash = "sha256:361f7206cf341ba94fb015688f5c8b480f8e63bd58a4c14a48aeca7851a241cc"}, - {file = "multidict-6.9.1-cp313-cp313-android_24_x86_64.whl", hash = "sha256:d7bf9e43282d69561618e8a0ea33368d532ebef42f15c096f427090521dd74f3"}, - {file = "multidict-6.9.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:03d47df72f084f757c1cb771188d5f4e3a805e4abc4d67e32509272343ae9382"}, - {file = "multidict-6.9.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:6bc94fe17c3c56e5418f79515b786b101845f70609b0d19d0c1ba13448e5633a"}, - {file = "multidict-6.9.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:8f2973bbd2bebd9d2e0cd6394c1292a1a19ccd56bdcbe1e174059f1a39be5b40"}, - {file = "multidict-6.9.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:de7738b8c0bb74c4cc16bbd7fb49fc2bcf6430dba11b3432cd52768ae40933e8"}, - {file = "multidict-6.9.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e5ccad4b7bac125722f48d6f862bed3b514d8526deea06316bb72f152cd30a7c"}, - {file = "multidict-6.9.1-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:a49ff5cdb33654cb7d6a3c377aa2a83ddefaa1db31eb10bcf3c180aa84f9af8a"}, - {file = "multidict-6.9.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b22ff30006a2f28f8bff878fb93413cbe3a4d1fd517c28081d848c90e9cfd2c8"}, - {file = "multidict-6.9.1-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3adf06c66041aa21eeb8a71e82379b74773298c8e6d3d839b151aae441a99b94"}, - {file = "multidict-6.9.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:963a8d8f97057082679523d0fd4c53a38f86bc58cabe4556faef682ae53fa2fa"}, - {file = "multidict-6.9.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b66ccc5c2cdd26e74fa5d4c29ffae424cc6148bf93ce574821783fb3b6d452c5"}, - {file = "multidict-6.9.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7fd79c521f6290c69125fa2b85fa65d9e657e6a8ffaf722dc881b926bef4aa5c"}, - {file = "multidict-6.9.1-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1d804e4caf5d5da37d6dac1325da5629ebef1e27a294c2b568b295814aa36c7b"}, - {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:bb0d664505f4b112f384cffeee82e91e3f6448d8e574989479db4439b68cba05"}, - {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:9e14d17773b1b3c758ff153659a1824608a0cb562c45f484b5ed8a433428444a"}, - {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:083735b7f395894e43adb278d5dae901448883a835ff8f1977e285fefdb10418"}, - {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:b65121091567847a8cb520d364ab22ba90e00d3cc55fa9eb34bb439f0684bcd1"}, - {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:ea999ae6e80e66ad5eea287860951b033d0104ca34d6d87c7b5125ebe0e12721"}, - {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:095d900c242e00fbe5f321ee072e7278b4153e78c5ce9c1efde167d62c1e4771"}, - {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6441cc837aea58be7d9baef1b2383eb8311ab9303f500f99ac90b584cd78bb14"}, - {file = "multidict-6.9.1-cp313-cp313-win32.whl", hash = "sha256:9c4880d017555d70dea367dd49271830842d48e3891c2da97da7ce8c4abcee40"}, - {file = "multidict-6.9.1-cp313-cp313-win_amd64.whl", hash = "sha256:ac51cd64bae51c462ea58ad2492c9b8209667a4ef60c45c4a304518b67598d5d"}, - {file = "multidict-6.9.1-cp313-cp313-win_arm64.whl", hash = "sha256:37a9ebe00c698279213d56e6c64e1962ab1e092918270649b397cac3dc196ca4"}, - {file = "multidict-6.9.1-cp314-cp314-android_24_x86_64.whl", hash = "sha256:fc0dcb22fa9aeabfe3fa4e0430099acff985ec5d77a851382f76cc6146e780e5"}, - {file = "multidict-6.9.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:024123f0ab402ab33828e24eb80fa8f25167d0d3783ba5f287e39ed741e6abf9"}, - {file = "multidict-6.9.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:af1b5a92315048c3e36bbebfa7d4760a9c3e910bc4166f11b20d77d20d6bcfca"}, - {file = "multidict-6.9.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:b2483da477932ad1983d1d33c18bc3771c6fb00cfbaaed70a875fd547ef8e840"}, - {file = "multidict-6.9.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:db4d697b18b6ef5528b1f36bfa25072cd2a421869f5963bc0e92c8a34b9e2800"}, - {file = "multidict-6.9.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:854fd2f1bc6e8a56b89910b5cd7261a8b40f13ebb31572da985ce59c7da0886d"}, - {file = "multidict-6.9.1-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:03731f6fc036180700c9dc2308205a48e5ca6f3ff03087739ab746f294022201"}, - {file = "multidict-6.9.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:989261c5f1735a165f2e4e87cf6d5f17ab734fa18f9ad0383d5adfcdaefce701"}, - {file = "multidict-6.9.1-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b4c9e5d05b126b267ac048a89a0e2d9b48b1b648add62d4872906304a8590610"}, - {file = "multidict-6.9.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9d0a21cf76153de8f2d96a877991d6bc59b9ab5180b949e50db73cc193b4a694"}, - {file = "multidict-6.9.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:e7386aa18d98d6b8af44b92173654ec469237fda35f8e8523e43b581a86f476a"}, - {file = "multidict-6.9.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b69651732c64afb691e50cdc3387cae305e0eeff8804fe3e3ce203876494932a"}, - {file = "multidict-6.9.1-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1fee9a16d88a1c4865610de31ef5c666671020d7a81d1f510eaf3c97d00ebeba"}, - {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7814bbee202acd3bd240204c17d8b87a4c48c81064fd8674dbe527d94d5a4290"}, - {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:95f273bea318a194f656527ee2ed19494327bc500b8e87d9358e3222579aa28d"}, - {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:73bcafa21a78d0776b3ee7cd2a63c66f968eb7db8e8d594e32d7329950f6e828"}, - {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:1a938761c77e0e6edb0c93d02f4e988d44a69e5195e5a3b893e5553311347132"}, - {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:37245ca4105386194dd1d292a6f2aae09bfe1bd7ac6f9ec25093e3cf8e9b143b"}, - {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:f0700527dd5bfa8b7204b08330542f4f388899d3c14d885d8a368992e0eb562d"}, - {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:6b7e54fd883671d1a8810704851c044b7173287c552b9f5c3d9e0eb9f00ae194"}, - {file = "multidict-6.9.1-cp314-cp314-win32.whl", hash = "sha256:e81ae656b9935ac4528a71f96bb7a14d949778ed1897c573d3e7ebb9187f8841"}, - {file = "multidict-6.9.1-cp314-cp314-win_amd64.whl", hash = "sha256:acddcac38adc8342ba48aba98896faa7928854bebb62542362138655b5367ee3"}, - {file = "multidict-6.9.1-cp314-cp314-win_arm64.whl", hash = "sha256:32217133dddc58c927805cf6c0731d8144584176b768042ee886d51e71860bc9"}, - {file = "multidict-6.9.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:0b2fb8c349d1103863750b5d8cb5ace766917f4b35f3d883c8f778853eaa9f76"}, - {file = "multidict-6.9.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:56d834b74c993a7d7cb2b8ab33a0d55c3e0d4a3d2f2da2808a4ad3d79189711b"}, - {file = "multidict-6.9.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:783ba7d845d79ce976afd9c1e91a4e5714671defa198ee789e8b23316083a485"}, - {file = "multidict-6.9.1-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:4d718fa1b5f0d0dd75e86fbbc5b0c93ea3a5d65216c85c61cd5d7cdddfe08455"}, - {file = "multidict-6.9.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a313bad717dde740959d50850c315b75fd4eb0c5e6b4dc8535db0f1c369be125"}, - {file = "multidict-6.9.1-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ef01d29fca550ab871fd99154f82c6472aacf8e7def272dfb07b460123850390"}, - {file = "multidict-6.9.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0f3bd290711c6e9486173a6ee7cd4e7f00c3971c7908c1ec1b6e5437c5e4c6f9"}, - {file = "multidict-6.9.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:81cdc537e0a42e3c0170752fcadbe450246d5c3b4b7231d6eb9672456605ac94"}, - {file = "multidict-6.9.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8b193bf7a443c97d81c47052f60c486071a4bdef4a573fa2514f920089414d45"}, - {file = "multidict-6.9.1-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7a0c98f6a636adf0d7edd60c61589eaf52d149239af754d0bfeb0effedba53a8"}, - {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:6e6b7e3a1520c39a2772f414cd9ddf5995f77e4e823dfa1522af383addd465a3"}, - {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:ca65cced0d67a9039e93bcd98a369920e499bf98296844ff56ead01c9085321f"}, - {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:372c063f37480f62c1ae32dc3a1a0a5942b180c883f99789075a8a8ec3c4e709"}, - {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:827c92145b3b976b39430129c89d213b250dacbe5fce678e9a03940e6e848983"}, - {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:9b0124b9c17e9890f0819b2e7a5f65ec9a2f5aabd6c8e7ad090c1675cf70dee6"}, - {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:23136f5a564654eb61061ec6d5620a4c1ea32c8f552b65e9982a12b72bff601b"}, - {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f2524ec55b3e65cbe235a8b3c36e2af3b635be02ed05e20c94e70c5c943c009e"}, - {file = "multidict-6.9.1-cp314-cp314t-win32.whl", hash = "sha256:35ba0263bae5dd3ad5aad767cc9afc01a8598c7dae30f1b3b2de98b1b32c28bd"}, - {file = "multidict-6.9.1-cp314-cp314t-win_amd64.whl", hash = "sha256:7c8d5882ba25ac0282258be435d8a05aa0cbcacfce15799154a338f847f159b9"}, - {file = "multidict-6.9.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ac348379cf4de5538a0a213be1532d289aa801ec5d267c5909446b9ea2f8e2c3"}, - {file = "multidict-6.9.1-cp315-cp315-android_24_x86_64.whl", hash = "sha256:f04551dce5a7db8c9659f2e4245494c182d0663b83661803e08d46bfcae5eda1"}, - {file = "multidict-6.9.1-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:c0c88085affd35c33e124e36930c5ad96aff9294ce195eaa0fd9cec962b64a82"}, - {file = "multidict-6.9.1-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:a8b75dd3d3638d9a19f23e84af4ffab3b8940422c0df2da2a77005ef5aa3d7ea"}, - {file = "multidict-6.9.1-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:006c4478de0a1876f4834e14255776286f09b9846b505fe63f67f9d173a9487c"}, - {file = "multidict-6.9.1-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:2784090c30a586d5b45197bd9c32f87fb927216cde302f6cfd76d76577e90f08"}, - {file = "multidict-6.9.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:7c708566da8014b120a64b1eb6d200c6c0c8cb36296383723cdb6fc82038270b"}, - {file = "multidict-6.9.1-cp315-cp315-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:042fb0196047e786936a730bd302de83143950da45f2c16078da8f35e1cf7919"}, - {file = "multidict-6.9.1-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a2212a0c842c723d919ea4a22a9296cb6b244b386e4e6ea92adfc7fbf3095519"}, - {file = "multidict-6.9.1-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:fd882aa29bf402b62bf1fd7c19fd5df4b6528cf468a908864b39368572b662a9"}, - {file = "multidict-6.9.1-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c57541034d12b215ab0a2bfa371d1a8a198da18176d0426c27105b9161a6862d"}, - {file = "multidict-6.9.1-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d73fed4e37158ff00cd271871170b79e40138db51e625fd352fa17c6acb34f67"}, - {file = "multidict-6.9.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:79da2491348b30810728050b4a8ec0416f85884125c2fd44655b3d01150d9c3e"}, - {file = "multidict-6.9.1-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:b4da208a63434d21a3df64d29758e650fc4aa8cb05848554b76949c296539cca"}, - {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:877ca17fdcfdf5c397493a71e5ff97a87bb181417fe717fdadc77c08c09301ac"}, - {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:40aec5299e1ed71fbb988389059da381c3c1a60e0c649acceb2a35d9b128848e"}, - {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:4a409ccc42aefec904038695d5d7fd6d8f3af2721b7b6401d55135ec7d6d298e"}, - {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:0a5769559e3312dd96731fbe15b4abb6033368ac1cad5a98dadd21946a4c7d6c"}, - {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:03fac50ddfd8302175b77863a015eccfae76767cda5506eef86df559ba861e1f"}, - {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:5ecace251ccfa705bf3d7d35c5032cf750f5c629809740405697bce5c118c4a4"}, - {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:ecc89dbd4155b2f8a47f4bbd89242a35ed15e8e0ec581cab5ac65fa38407329d"}, - {file = "multidict-6.9.1-cp315-cp315-win32.whl", hash = "sha256:a3ffe881246d28a862f1985824f484cb7361f44d6b99c4c620436ef56462f38d"}, - {file = "multidict-6.9.1-cp315-cp315-win_amd64.whl", hash = "sha256:59c123d0e948d760a5f930f316cfefa07e8d632ab84327c0693ee6a88171154f"}, - {file = "multidict-6.9.1-cp315-cp315-win_arm64.whl", hash = "sha256:31199204b3ced121ff5407a2c342326a5d27e3870abbf94bd80dbd2451b7bc8f"}, - {file = "multidict-6.9.1-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:8879510a76940670517ea1cb589978da44b86e286ec3e50d664ef330817afce7"}, - {file = "multidict-6.9.1-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:aec65b53a07f580606593f877eefbb29a45939bfc0d3fe6e6d9f42b41b749f68"}, - {file = "multidict-6.9.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:14c56f73e78faa1f68bbb826197cd5871994e70e841b8590829c35912ece5c64"}, - {file = "multidict-6.9.1-cp315-cp315t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:38c9986f9ce50c459b10de216a05f4bd7ed5ac63887d56e500a52bb464b861ce"}, - {file = "multidict-6.9.1-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:15db6a102cbaf1949cf028ecf080aac76d20bcd29ad4e092574db6c6b7af78a5"}, - {file = "multidict-6.9.1-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:bd82c4977196681a499bb6ca9e462afbc5c91c1c15b6a991dfbd72733fea4dd2"}, - {file = "multidict-6.9.1-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bb58ba73a3f96f9a3e46b1fab69929d7edbbddb3133ee74b5c3c54074a53c4f1"}, - {file = "multidict-6.9.1-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:7c6eecfab7ce4cd9487ff8ba936fe38cdfd68c04faf3d5c710363c6a8e695659"}, - {file = "multidict-6.9.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9c62e71e6289d78c0108d8aeb495f8bd3cad4bc1632fedddc9297ddf287ecc20"}, - {file = "multidict-6.9.1-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:539c2cd5fed0947c135cd7eabaaac55f48300dfa1de0f3ca4edb5efa6606f471"}, - {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:3100d169ceb7bc8f05f89a6db11d1b21f119975fc26f29dc45a472e3569f0879"}, - {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:696477ad71385c4795e3b8e4cf10b0d2c28c2a1ca6a955e031cb1e62993e9ee3"}, - {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:f5844e7befc707367807586f550fa97e23dcfef0728f02b98c7bc498a961a5df"}, - {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:abc7c2e4b47bfe6a9aea434d3fdebb9597ee636e914e92ba352f2068b9142f4c"}, - {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:7ab379f95caee071a37cbd8be86d4c65accc651d391f9f97748fef006f38769c"}, - {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:557a4e1708df428ebe6c3081c83a273d275dad2446ce0d81fc648ac71afdb18d"}, - {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:475d04d5192eba487a3e2f935976340baa24529046e9c1c9c7a3b7bf80445ae1"}, - {file = "multidict-6.9.1-cp315-cp315t-win32.whl", hash = "sha256:10083a8a0f4e1b26b599889e90b9802504ce5d3f7722f925bbb7ca47dd22a7c1"}, - {file = "multidict-6.9.1-cp315-cp315t-win_amd64.whl", hash = "sha256:e96ca64383efa107262ee3949f047af5ee4f1845ba09463466c04d35a83bd3ec"}, - {file = "multidict-6.9.1-cp315-cp315t-win_arm64.whl", hash = "sha256:501ed8b02a5990c67a91c732843609d43a6be1f7576fcdfc867331239f37fbd3"}, - {file = "multidict-6.9.1-py3-none-any.whl", hash = "sha256:7bf6478188f4e47bf5686e8a33da4ae28bf43b1b2528d9ee144d28492bfac60b"}, - {file = "multidict-6.9.1.tar.gz", hash = "sha256:0f06e60fa190aa7abd0914c2a766736fdc8e9f34878c4346338534b73d1b20e2"}, + {file = "multidict-7.1.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:24ad4921135a1410d95b1f1504f4901e1c64cea680014ce2c3c7a825f4f259fc"}, + {file = "multidict-7.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:8b8429361241da973e594d15344a0989f44fd288ea58d33a6221fb7cc0daf27e"}, + {file = "multidict-7.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:5c6455f2c11daeee40665c67494cedb426f67dba7375710524071c0c56d739a6"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:6120aab922bb3e15800b6655558cf8e0a5cc79518e954d457f064e5b3d5e9bf6"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:14b1ce8579a43dfc0e592d93fb1d63dea693e4977980ac4166f26d494cc7a358"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:71acdc6eded0f4b86b5e16c96314887cf2572a8eb5d8038b78583d0c0eb3aa1c"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6b7cd1cb0b363cd43ebf499beca26d201dd8b89eee49fae60205c82ba13ee03a"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:dd8a6b3e8f9edb07fe671b02d8c3241c8b641fecce7eb1e36432db3e55e243da"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9a8c826caeb7c08264e0a556df1267531c6ed90cc70506e7e5f4119e2d09f3d7"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c44ced5e5168cdf677f0ae39900863bf2bda7d14a5e13502014005cfe040b8b4"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:b57d4d7021bfd159db9f8f6f862a85a7a6027934643c512f028d6e5c60c4cbd2"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:7fac4250b37d994e3fe42b46ba3c8bfa1614d1d7d8cf1cf23f303099082a9565"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:966ae0588ac9959a040220063733b33f321d04eaf4e60349b42cd855d232202f"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:50acd7ee7096949b04482cd7720cb6b85eb9cd9dd5d7ffb6704bfda250261a22"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:ed6b7f402f3dabd1d72c798b96cf947005ddd796a5bea7b041bccbd517859a42"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:fadcc96cd6155f35e6d85845fa4fcd37b35885dc8fda77b9f851cdfa538194c1"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:c6b67f08014bfc4aedc22cf6a21010c2530cd5fbeb655730406827fe196296be"}, + {file = "multidict-7.1.0-cp310-cp310-win32.whl", hash = "sha256:0604ff025497a050a2b2dcc4ae0e5cb6477c525e57b89825152c707e88d74d28"}, + {file = "multidict-7.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:36b14886aa3e0b8786ecdaa196374422c7b1c1dcc8764d02b2409f74d47914bc"}, + {file = "multidict-7.1.0-cp310-cp310-win_arm64.whl", hash = "sha256:a2e575129c048bc286d696ed8e49ca148591768b2d77debcc6569f6fb64d0668"}, + {file = "multidict-7.1.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:41ff3202cc23c800507777df5a4805b402f262b31008c60fdc652aeb6db2f278"}, + {file = "multidict-7.1.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e50f7775b66c7802f4cb697e986c5acf30ec07301efee95b396c08114e890d67"}, + {file = "multidict-7.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:85cb3ced4fa84949cee12bfe78208b6ece7baf3cbd242b26dcaf773efff8d206"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:2128f3358335e0c83688ecb40c19d9d6606cd60784dfbf2e24e980ac2ba87b0d"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e2e718fa9d1d900decbc240a533d5d0baf0947ef464c78a8cd4fa32b4e8f590c"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ecc68f5e47bc6f6f889bbed5bc657b22bb2237ad9ccab8229cb5a0d64f4cb536"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5f21fda91bd6c34455bd5c312e42aa1334da46cdafb4c533ecd01e0f7f19250b"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:7a90453a79423cd7145cc08fc92322dcd7aca4862258f533e03f473226d4b835"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c54ae1b89e582aa25f213cd8b5eac0bda1724e79299f486baeb3f562bbf82ca5"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7ff8dd079e7b5f3438332499233a2a5acfca0741fd0eb3d4ddba0c2d9bc04d19"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:e4ef15d0a29fc2da67fe8ba2301ecabd6f8733696cc2bf0a0cf96a144a20328c"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:5fa296f14068538fced53c6eec86520a2ef3d3d27a0fb134640d03e067986d5f"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:6ab323f0c5490abaf35a78563e1043c7a772eb86d93f359ecc0fd286d1cd3807"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:88ec4d16e9f58071c9896ea01c4da97cce9d01418fe844ff06eebb00e0a1386a"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:9161eb81b8062da824426d3700d4b0d287f0cb0b05923713adfe3bd25e7937ac"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:c564d0758748f38aec56a6b98c6801a427b3a63f39b7cac538b2b2d18ca32740"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:c5e4a362a95b85301d262ef6bed06cc8e4a144ac7e2be874cb4c3c46ae89d754"}, + {file = "multidict-7.1.0-cp311-cp311-win32.whl", hash = "sha256:5d19bb1ec12e385c09215d5d53a243c060c7e8a0aacdba16d933e22902ee380d"}, + {file = "multidict-7.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:396ba9917fe489ec3a5942ae3e29e91324c8b9956f371f7e124c971c71379e7a"}, + {file = "multidict-7.1.0-cp311-cp311-win_arm64.whl", hash = "sha256:b5ed78742502b8d90ff2816688d407a097c8b5cc6af4343fc5ad7a98df53a7cd"}, + {file = "multidict-7.1.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:ccfb950359a80de0fcd2030ad60ac1b1a861462de3e2ef746697c9256659af21"}, + {file = "multidict-7.1.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:939d8cd2d8c35e3956f6bc858390b6ccb611e6152b4920d64ab5e98f3fcf39e4"}, + {file = "multidict-7.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f8e95c95039eab6a2dad8c83c38ab87fc5431d28849e0c8a7e2a4e70ba38710d"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:05d12b4bac53abe0c65f3163af2b45894e2e1c0cc55493ac784d52a350047d88"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0e79ed92b1dece6bb57e9b46effd74d7a5d3d00187c85466d880ed184239a698"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:fab380fcff8b3555eb2bd04304fa4330909a771a9a9b0dc07666cfc23148a711"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4b5c41e44da74383c924cc5d75ef0a268f301d69305b3c42bd17af685d55e412"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3dbaa7f7c2f0ca8578895fc61fb8c8e50ebb405dad8982f92f4343285c7a3fda"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fed6b7705d49dd07e5e0dd5f5c873fc44047e92d714299b13245b5fecac49d01"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:53daa47dd176db64bb35170e3d5d0ae2388c060121201883696278f055a0e70c"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:542429c796430de924d03b68a6173bb6d79d5c4967d4e9a18de3e501cad55593"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:c44ca6d3cdf4cfcbcd4f928fdcbe87af5fd7319f6ad4169617b7fd6b4527c33c"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:eb0228c809b2e7eb47921876050af0bc4214b351bad8d8112f70b6ed4288763c"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:6ad60de1f4c702448fc8f1449f05e810f6b7957c08a5b3950c8a792dfb13b50a"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:f79def86aee67b5ba01b2565f1610f262bf88ae53c379f93e5fa29c50fe793be"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:248dabb89b5aa90b2f7e43e045f048f7e5392ec77b6446d80853ba7117d7bbdf"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:0747a83e7ae617793181a4763ee8b84863cec5c0bbbde70c4394e4c0276c36de"}, + {file = "multidict-7.1.0-cp312-cp312-win32.whl", hash = "sha256:1df055e51fe7491120cc84f3362bd43db186be78d0e4c476acad45e435af9ffb"}, + {file = "multidict-7.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:10202ba98cfb3f7eb60da7ca87a2c458a69b7d0d6e4d4388cd6773ebbce89085"}, + {file = "multidict-7.1.0-cp312-cp312-win_arm64.whl", hash = "sha256:0aa1ba3ff7cdda05a1242490612976b2ae1c90fc6200903ef8f53815dcb35c5d"}, + {file = "multidict-7.1.0-cp313-cp313-android_24_x86_64.whl", hash = "sha256:51d7f33be9a4a1a2801430846d72841deea0894eae8381a07e7d90e0f71b3c4b"}, + {file = "multidict-7.1.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:2a964dfeb2aba3663f0536c809aa1ff385f065e89fae57e883fb7edfb4067c2f"}, + {file = "multidict-7.1.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:d02cd23b5af182a49d635ee72be38053767711987a9fd82625b16b93828a0d8c"}, + {file = "multidict-7.1.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:0179698c3c913eb64f32397083747fad20ed0f0a2b7469a08cd1a8a95d14d90e"}, + {file = "multidict-7.1.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:ccf98ee859fe29f874ddd8e637f14ba59108a333492b521acb885a9095244a9c"}, + {file = "multidict-7.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:5fa1484f74d011addf2e5f5a0378ec41521989839a05d6051d8067d8ce732423"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:1fed3d721f75c25a9fcdd0e362af53f4b20acbcdc63081112f85419ba0ce3444"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:df03e392cae1e05462918abbae06d6100f1e53f67db971ff0ac6c07d9edf7321"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:379f477b98a1e9a77ddc3ccaa8c709d3fb4a288ff54b96e171e637b55b4adbae"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:40f586bc8a084a3671ddcae9e5fbd3228a596bfb63d9f0380f153f9a65b69f08"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:6e7f70d912a589e30290ed926f90ddbc3160998359cbad7c9ede1bcee481748c"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5129cc1f5fec6888e2db0be936dab67242e32c738811c8769aeea93aab4257a8"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1401caec21fd7f002e79ab6806bbfd1f54bb3de6d5e12bd91c6685dce16ad2be"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:c81062e947f4b5a624135a843f6ac4b3c7fe6508300c9fb27347f022ba0c513d"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:c53be0dd676484a660acc56e4f1cd0dd74bc1255d12fa285e86a3fa9d5f22bf9"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:41e0c3350d08994ee8640c39884e16514e282f70ba40f5b2299582509a327774"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:abeec7a89d698aa1c9b4c36bd5e3c746faef0867076e6a2ca27fa5077c4ece26"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:23f6d325241b0db006ca2841309ed17622137e134930a740a8f1331ec4404791"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:034b0dc1b7fb8279599c5d8563f86abb4d2454735b06544ecab23c54572ad2bd"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:5c8074ad4d67067c87bd0663dfda654f786336078c8fd7d2f6c1aa41de8494cc"}, + {file = "multidict-7.1.0-cp313-cp313-win32.whl", hash = "sha256:7b25c335fc53acf29d4d21dbc19fe39d2824201cdda0448623152cc5917bd259"}, + {file = "multidict-7.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:7de54b49e6da811b0321e412d14efdaa1ee0c0b6609296ea5b9022bc5b2bd843"}, + {file = "multidict-7.1.0-cp313-cp313-win_arm64.whl", hash = "sha256:aeba2c750102051aa51e087c2ccbc79f2724a41c94168f8731e36f54c453551a"}, + {file = "multidict-7.1.0-cp314-cp314-android_24_x86_64.whl", hash = "sha256:128ea4142f81a79d430f3d0eb55206093e5eda03a12abbc7b03c34748ff6116b"}, + {file = "multidict-7.1.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:439a19f7fbbff232ce96682c57e27030b8ac3a4b8121484c94f04bf99d08bfff"}, + {file = "multidict-7.1.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:8090c35199d6b7bc6426bb8bdaf341e64f295cc2624a1fda7860c0837f1acc03"}, + {file = "multidict-7.1.0-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:b7cc5333fcbfb27327d12612ed72322f221b61c2b69deb1155078c964f86e1a1"}, + {file = "multidict-7.1.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:b0e0040b0d8dd89bd0af9ab18901981e344ffba68bb30b8eabb4eab6c303279b"}, + {file = "multidict-7.1.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:33376418ab2846b931a72b36cfa16810befc4f49485d0b3f4dc054a4d6d00038"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:1101aea5c3eb1d26e090b931c693488af0db9f3d52e68be8d4cdd807dad9841d"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f996b19ac89e0dae65821ce65f788619e4286f78c62d005ecd3b75b5d9c0892b"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e0d91a4bcb59ac0d7af0d8e0da737332e1b7fe6831e53e47819b1b5349d431b2"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e96d67914ddbf5466e4476a1cd7ff30a332cbab85ed895207acc3e58c979b6a7"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:170ba61761f59ab92afcc86ce5534a3f3d0b07c38b339b950a83213f22dd86ec"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:33389fe084e5426d9fd85d7d9ca91a29cd0d88a83c7c96e411aca49a3f9967bc"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:77024596b9046572c4e90b34c1ff212346756dc48933f90c53cf6e233660788d"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ff15531a376dc6f35984443fd1429e4b150c36ce27633e7cc52a9e5318546e20"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:544f2642a456fa264614e975d921540ee8c3b368b04d5aa1ddbec33241b13e08"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:08834fb8b20e1a985c70e8380a10940234b4162de62694458727330376e58b33"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:b4908e17867930b7ac77f89a18dc67308c67c511f037d8580489be86fb585912"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:9b24e1f93b9b586ec03bc7bea1bf021ec90bf2528c729195028a3ca1c266b3f9"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:5c93473d0d7cd9bbb370973a9679a62f381c7050d7dff4ad6aaa92e8650f5a79"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:bf14cfcc30b097583d698a6e2b8b68c9bcffab277c485d481881958360c2938d"}, + {file = "multidict-7.1.0-cp314-cp314-win32.whl", hash = "sha256:86bc779a0896e59e4be30a5be5cd6eeffd0b40b6f0e75e730218736b7bfc6f5c"}, + {file = "multidict-7.1.0-cp314-cp314-win_amd64.whl", hash = "sha256:6c9fd50f636a8fa9cb6324cd3eac962fec2bc5bb432452a3b583583a1059acfc"}, + {file = "multidict-7.1.0-cp314-cp314-win_arm64.whl", hash = "sha256:e6906aa4bc62cde2c8aeb8a99a7b4401b241e274ae7b11df67d863d61ab3d5de"}, + {file = "multidict-7.1.0-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:fabfdd4cf97db033196b51af46b8a681d4785c2a66347f2a5af1b4bbb1182629"}, + {file = "multidict-7.1.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:a177a0ee5cf19931dcaeb3f662bc562754cfa4f4ace2351d9da24a954ef7db94"}, + {file = "multidict-7.1.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0ae91de396d5c4ac97cb24dbada3d5c91a51454781e0a70476b008f4e879e4f0"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:160bdb3520fdadcaa21e1b98aab2e011265070814ecab3804eb61674becbd400"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6c2144785e42527404bbd5cfd11981fee4abe59a22aded0e498eb711a831d3f3"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7d0b4fec6a8d02d7e95de5cfa913261820f1ce04bd4c0381924de0da523179b8"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:943a9bce22180ad0f4d32d1b402a0949a4ecfe5a1257b47f54a1b51981d81b86"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f76ceb623f7ff50df46ac57e1587c479d87a5766319c4f43d0c0a5158896afab"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:98beff85392ce435b28a0971ec21cade61ce8be8b632c9d855475a28ef92d31a"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:71196ebb8d523148e5975396a444de02367f204b53b14e26794c96b2be0ed742"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:35534b366410a36bb3d6f788691e37a76e4d1da48326b0ada3e5032580dd76af"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:b4674b12701c3fcbdf7f88b9e4479701c93bec5da9eb576140d5fcc0092990af"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:0ead852a5e906a43fcb6784eeac480f6a67919a51d480c1f80d32ddf9d615475"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:afe36ca503c2ffe30fb6df82b20389fa3c4035b5d65888a61310921cf3ae91c5"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:a5f0bebb10aae010d3c9ee3abaf83ab2069c718457aea09c15532355dd7e061f"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:b9d9b7d72975521434368fe8aed3f6b522060bf271adabaa5ca6c87c0c08e168"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:274023bf952f849e0d05eba28a4c1f65f9796430d2b09ec16539386c0f76554c"}, + {file = "multidict-7.1.0-cp314-cp314t-win32.whl", hash = "sha256:7e0bfa161df365ba3c88899ee3b7c94755200967284bdedef8c1b8b43e2c0f2b"}, + {file = "multidict-7.1.0-cp314-cp314t-win_amd64.whl", hash = "sha256:34a35be8fb82d37087e8176aba907b9459f03d0e293c80f574c6337a436f4eaa"}, + {file = "multidict-7.1.0-cp314-cp314t-win_arm64.whl", hash = "sha256:d7dd46a8fcd7653c09ebe67eae9d4cb6636c7a905d9cbaf587dabcbd4eca6013"}, + {file = "multidict-7.1.0-cp315-cp315-android_24_x86_64.whl", hash = "sha256:852c921217f330b3e81a822647ebadeae7e42cf503ec1992d0bfbc90121c09fb"}, + {file = "multidict-7.1.0-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:cbec738d2ad551c6f70955d7eec95e339380ee1564e2afe86bfee05fed52ceec"}, + {file = "multidict-7.1.0-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:a5f721a2437390ab69c10c6df5c142478d399af8dfb02e6d823cf2358e8a4748"}, + {file = "multidict-7.1.0-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:99cf27791129d37e191ff013bfc29bf6631c29edb21680c00978567b91fc5d6b"}, + {file = "multidict-7.1.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:2ba6611fc93c4b169d0e0ea376ebf4b8a529933d1f5f2c2ec7d8f8b93ef58ec2"}, + {file = "multidict-7.1.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:c45629c0049fbdef932dbe408ac2b271fdc8c7d9962ca31160f4a0fc3455fe4f"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:cf606cfe3f67984b4064ac605d71e1eba12515fbabf5bd5a34a8952b8800dc66"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:50fdfcb03be719d9573597b095b1175d2e9d0b30d065791dfd9fca727c499442"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a8bba9d1f6db4ef2a6ebfc937a65d36e80e3aada00b382eaf56fea8f639322d5"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:46d4af0afc6eb9867b3ae50605787c80b868e2f52eac3801246034925fe578b8"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5cc58ebb731200ddb64d55f1b345630fb5f7a8138cdbd242af9dce964a7cb03d"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4b87ad54e8d4adeb0a1f04889504d6ec7f04fb02609220810f51f1b6c66bc1cc"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:44f7e5dd83a615636b80182bdf446ece57ed61d5d51854acc5d9840631136d4e"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:9bc5e7f843d14a167cdc26fe2d22f6f3aa2feb57919cf3ff034262a57d8d95d0"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:0631eb5f49f67de10bbdc3f64141326dbc62e8d319900966648381ce0845d8ca"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:d1b1b32f3c32f734dde8f36ac1df8e275e768a7b333241cd637cb2538628a4b4"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:159976f9c40f96e3fe0952b708846a43a76bacb114e9cc828816f5080bddd5ec"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:81a0e08c64dfdad27dab687b96f572b23bafa1999a39d1b6f70b3ddbb73e8bd0"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:4e11e7299079718c78f8147e7206c22fe35bab4466d38992420795288a0b8096"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:34d2ee98e15d5cfe782a431bc913fce3b58cf3fdb34fcb437aeb275cdf9007ab"}, + {file = "multidict-7.1.0-cp315-cp315-win32.whl", hash = "sha256:f376224572d1f5da1c871f969ab04765727f180e70d012d93e07bfc08442c64b"}, + {file = "multidict-7.1.0-cp315-cp315-win_amd64.whl", hash = "sha256:67fcf28db77b385820881521db7435e9f1c607cfaf07db6eb78aa9d1146bde86"}, + {file = "multidict-7.1.0-cp315-cp315-win_arm64.whl", hash = "sha256:c7aafa4dd2f702ee2198005d6cba4309c1e25ed1c201d77beddefa47411bead8"}, + {file = "multidict-7.1.0-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:1348ddc076251cd542f4a99ccda4b7c1f8444e8ab489d3541a978ca5901c7c1f"}, + {file = "multidict-7.1.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:9267bf8261a779abb2a6eab5f107f5db85b2d1745f2494081c731aaf28738ce3"}, + {file = "multidict-7.1.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:8a844b8b1685f38a2e8b2f3213b286e2a7abfe67508381780a0d4599ac337c1c"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:18a447d46a3a2f1e61b365cbf5627db7030fdb707dad70c4f2760e5144166ecc"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:88811f890db240a1c82bf0bcd52973763707a552c8113ac3fcebca183afb2fa8"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a60b720c329c0007feae692b7bf91cf17b3f9bd3727be96cc6f9a3336651041b"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:b117ed1cd1a23df0902461c38093408b95971833dcee629112acda25b603c8d0"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:bbcae7a54050b7ad7bc7bf425ba63dea7d2cd31a92246ba787a2ce69a9b98dbc"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4cba2b0b9235fe10e12301d6b4cfba0f353fa668d635f6e988b03623c2cd42ba"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:535173fbcc3933d84f9929d49d7a59a0faec259ee07d07c34c7d2a980b4e3683"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:ea027bdeca1d7e498237634ee4e3a852e2723eef39996dec0ff0f77dff8a2336"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:507151e1e3dee95e9e8159e329aed4f75aa5205ecd6505a4f6be546890eafbe1"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:9c10791e9f5ef132effc8fdce2009482c1cfb26618c5fc1b7952a47dd5eb632e"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:f16ac8af2804855d3cae5fc3c5ab609c9fd0fc8ecacd92579c05ed3c173396fd"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:b78de22bae456a976f33df34d598dfd16edc9a03df8f4cc8b7c17bdba4c97b4a"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:db77888081431aaa69f3fd3480891746ddce6c2a571f6201869a24e2f06cf423"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:c39dfcaa0bf23443474c0cb58d8d8aea9529c1841d99654cb38e4dada7b1948a"}, + {file = "multidict-7.1.0-cp315-cp315t-win32.whl", hash = "sha256:16b21164797bde6f417066d02775975cc2e15ab8abf80efa55fe85e0b4894020"}, + {file = "multidict-7.1.0-cp315-cp315t-win_amd64.whl", hash = "sha256:55392202cb374dd1a1f89a8ce1586644870d9e936752059d053e576acc50bc89"}, + {file = "multidict-7.1.0-cp315-cp315t-win_arm64.whl", hash = "sha256:f979a077d1c0a9a36dd4fab0d3a36b8de7b593bf935e13df85a380395b2c11ad"}, + {file = "multidict-7.1.0-py3-none-any.whl", hash = "sha256:d9ef29cfd98e17085b4f91bba8fa1570bec6787d5c52ce653ed33a58785585d0"}, + {file = "multidict-7.1.0.tar.gz", hash = "sha256:61a4e5d81b8d4e4ad61964b230129e7a2b914793d96289029078fc9009f074ec"}, ] [package.dependencies] @@ -1020,19 +1020,19 @@ files = [ [[package]] name = "pydantic" -version = "2.14.0" +version = "2.14.1" description = "Data validation using Python type hints" optional = false python-versions = ">=3.10" groups = ["main"] files = [ - {file = "pydantic-2.14.0-py3-none-any.whl", hash = "sha256:15fab1bea6f1dc5003b54fc2ecab230c1fd1dbade2acd4addc52d81e32416d4b"}, - {file = "pydantic-2.14.0.tar.gz", hash = "sha256:8a51a7aaddd60f55566d1f07bdd87b92b463903f39a8f26b71a06314cd1548ae"}, + {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.50.0" +pydantic-core = "2.50.1" typing-extensions = ">=4.16.0" typing-inspection = ">=0.4.4" @@ -1042,149 +1042,149 @@ timezone = ["tzdata ; platform_system == \"Windows\""] [[package]] name = "pydantic-core" -version = "2.50.0" +version = "2.50.1" description = "Core functionality for Pydantic validation and serialization" optional = false python-versions = ">=3.10" groups = ["main"] files = [ - {file = "pydantic_core-2.50.0-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:f8df36f964c21168e345f914855e3b428e2cb6e1f739c8ef5963b77d86dd84ae"}, - {file = "pydantic_core-2.50.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:eadf95aab7301ac651628f097e521d742d0fb5f732155ebfd00d07933045d81c"}, - {file = "pydantic_core-2.50.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:02ec3675d606a355523e1c52bf5aa4116776f8d273dba03d8336a5a3ae984e15"}, - {file = "pydantic_core-2.50.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a3e8ee6386f6b68e2f818ccf422ccfafc59bcff10862b52c7819db3aa0352dfc"}, - {file = "pydantic_core-2.50.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:93502b3c762149a5904316ef52f0ed1ea721e0f4c8431f964f140ed15fa61926"}, - {file = "pydantic_core-2.50.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f8cc61ad94215ab98e5cbcdea2cfde45e11bb0136ee980e1240b721635e55790"}, - {file = "pydantic_core-2.50.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cbce1b5a2a88a465d7865df61b7e4f8829ddc49b4fa841e9b241815c9d67c3b2"}, - {file = "pydantic_core-2.50.0-cp310-cp310-manylinux_2_31_riscv64.whl", hash = "sha256:2568b190075acd058513dca34f7fddc7252fc958c1591cb67a554338fc9a81b2"}, - {file = "pydantic_core-2.50.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:468f7e67cfbd8231f442af6726449efe46f2be0e5a57b44fba7ccd92c6f121c4"}, - {file = "pydantic_core-2.50.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:c19500343957f254ecf3e60174f4a4cdd21690e0e1677740a8017d28ab2a2a4b"}, - {file = "pydantic_core-2.50.0-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:d14d04058923d526a552fc3ebe8b0b0353c19516431cee196502b53119278fd9"}, - {file = "pydantic_core-2.50.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:5d0b210c871486f5acb56d87bf00e3c5d83aab6a1ef3042629fa6ae0172fcf47"}, - {file = "pydantic_core-2.50.0-cp310-cp310-win32.whl", hash = "sha256:6e1ec4176c3b56017745937dfd4a3ec6df55f7f0e66991124499f3f79f8f8d1f"}, - {file = "pydantic_core-2.50.0-cp310-cp310-win_amd64.whl", hash = "sha256:56178c4116fc0c859786875ff4acc1c8d52678f095c312b0eff2a2dd9d6f8d5f"}, - {file = "pydantic_core-2.50.0-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:55684bc850059fc85ff8dc21a3e342b722d3178993c49ebdfdee8b698a432720"}, - {file = "pydantic_core-2.50.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:c3ae59461625518449f800acc4f874753ae96fcf993c47a27be07beb651371fd"}, - {file = "pydantic_core-2.50.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a7080928078ff56c07da393392f772054e93a39c8033dc9c04547bd949f9b614"}, - {file = "pydantic_core-2.50.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4b1bae96f41806b14dd8bb1568d39b5e33b5af7fb27f7be36c78b8fa84708917"}, - {file = "pydantic_core-2.50.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8facaf0a16121ac82cc403a71399a061b74624c1ae2034eec9ed6169c5d16ecb"}, - {file = "pydantic_core-2.50.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:610e9f483ac53c5cc59c2d3687224029b54eb494feec2d40a2bcfdd187635192"}, - {file = "pydantic_core-2.50.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ac223ea031905319a64d0df116979ae438b42d6265862a3d63c9f9808c2905a7"}, - {file = "pydantic_core-2.50.0-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:75b451ec5e64a1d4b803317f34710131742ff2e42f4bf5403f597d0af857d7d8"}, - {file = "pydantic_core-2.50.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:7eee44c3f1f8acc220a743a5ed5588949a4f18b33df4cfbef2b1277470285401"}, - {file = "pydantic_core-2.50.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:f44107b5fdfecc03438feb165431652c8006650471326e53dd86d4c19124f5c5"}, - {file = "pydantic_core-2.50.0-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:718d05d4e078c7828f40ad3e310870fe4b837d93a32e7e8497a080c1f1040490"}, - {file = "pydantic_core-2.50.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:031867348c98ab49c6d3a16ad39738369ea48da59900d76d71c1e64de71fe79b"}, - {file = "pydantic_core-2.50.0-cp311-cp311-win32.whl", hash = "sha256:e41f9d1d9240e8e0d8a670ad3e66c0c00f0b1f7150a31bc6c445a4f87c1cb3ba"}, - {file = "pydantic_core-2.50.0-cp311-cp311-win_amd64.whl", hash = "sha256:90874428bc6678b26434336c77931c9734ecebedf50132c179205e5a9908761d"}, - {file = "pydantic_core-2.50.0-cp311-cp311-win_arm64.whl", hash = "sha256:b9be297ffe1015bfb2db4a23b6e1fec7e48361cf7c7b4f4f6bbdd008451b0a7b"}, - {file = "pydantic_core-2.50.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:79e8fc9c135ef628c45cb8aa5deef8d21de13d33bb4c59a859fa73d335ceb40a"}, - {file = "pydantic_core-2.50.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:0abe1b44d361b948404b6b2ed80be2583e0077340572e071afa6e0eda4e1de30"}, - {file = "pydantic_core-2.50.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ae45853d25a23fba56681d2f9ed41f3e3f12f0a3b2393fefa08ff6406320a1f5"}, - {file = "pydantic_core-2.50.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:bd841dcf394ff261c26763a9d7be754176d4f1e6d26cb2a5d5331e91b6b56a5f"}, - {file = "pydantic_core-2.50.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c2e97985641fe53ad7824d1b5bfeb7990a5ff788c4559ee44d7522642560ddc2"}, - {file = "pydantic_core-2.50.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7987866a2569396e6765c54d643fd6a7b3b234e89ee8d45a3729a7b4b2726145"}, - {file = "pydantic_core-2.50.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f187030fc3d62c668feb0f09e92852e0eb414d7fcefc4748f2e67d245aade37e"}, - {file = "pydantic_core-2.50.0-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:d187f43d1c5b844adc871c5b8c22b4aa12a116aaca4e9bd1521bc9ce479aae1f"}, - {file = "pydantic_core-2.50.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:cb4fcaabb28cabf21396a9b816b9afe091f8c776805fdf03e2cbc606b64dfa7c"}, - {file = "pydantic_core-2.50.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:1751e92d56fbb623b937d73985e500b1a2b1053e56f718a6c564660d99bb9cb0"}, - {file = "pydantic_core-2.50.0-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:70df7ff903aea05383298715ea53551c8f27c8f70cbe54ba7f05606cd822e7e4"}, - {file = "pydantic_core-2.50.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:24302bf47319a64e5c5c7c29e971d2b7a20a190c64e59035a3df9582dec636fa"}, - {file = "pydantic_core-2.50.0-cp312-cp312-win32.whl", hash = "sha256:5dbf9f18c8af11db719e67633be0af556d7d765bee0ca9419bd706fe4b7ed9fe"}, - {file = "pydantic_core-2.50.0-cp312-cp312-win_amd64.whl", hash = "sha256:1541c334af5d42cb9eb03862a9b4d2cfbfc670fd05172ec51f3ce02d704550f1"}, - {file = "pydantic_core-2.50.0-cp312-cp312-win_arm64.whl", hash = "sha256:b1399f918aea8fb76ffa99b474c9b768accea1f079fde407ee538bec89f20fa7"}, - {file = "pydantic_core-2.50.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:049b0404792dcb942f1092bfdae5f819ef30445b0d174782e1909fbdd91bb48b"}, - {file = "pydantic_core-2.50.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:8f16bc5bb12f4c581b0f40facc28dbf286db32d1bf4e7e4f4c4e0f7f4e34ecf9"}, - {file = "pydantic_core-2.50.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1d084e92d0f4a096a5155b23d1ac603db8073ef98a3d1384badf1455e5ae742"}, - {file = "pydantic_core-2.50.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f0af2d2f745ec00a6616c4dfba4477f9156ccfb45690f6ffa5fd34f42e871ed4"}, - {file = "pydantic_core-2.50.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2f28a5a299d4cefd1066a6883d22600b9ae3606f881c3015d255784634647580"}, - {file = "pydantic_core-2.50.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bdd70c2d9e73bca09fad54605dfeaae2b4e770b2800c65f5f5342901ed567b9f"}, - {file = "pydantic_core-2.50.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e58acd43ac8d3905659c1d5309318dd576243e723dd7c3b5dd4f555479b77d4b"}, - {file = "pydantic_core-2.50.0-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:5a07c644047f5abc268b4c39f8cb5a30e08a3c349228cb70142c7d3ed87587c0"}, - {file = "pydantic_core-2.50.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:8ad8dad549cd1645be591a50b4573995ee7e018f6619ddc2bc6ea44b2ad9f694"}, - {file = "pydantic_core-2.50.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:1773001198030e16f946a7ff7760fc3ebd45b12150f66fd0f433780043dc13d8"}, - {file = "pydantic_core-2.50.0-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:8ab9e74878172948e0426e3d27fba333fd6a1c3f9456d8e75643e8e6868ac1a1"}, - {file = "pydantic_core-2.50.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:e15bb1535f68a27f28e579ba3a8f74e7b05d350c45f5622b76a311d5a19ae48a"}, - {file = "pydantic_core-2.50.0-cp313-cp313-win32.whl", hash = "sha256:c21e6a6e4e6d32fb6acbc4f0fa69e8319cac0d65eeaa8298d757371cc2a9c687"}, - {file = "pydantic_core-2.50.0-cp313-cp313-win_amd64.whl", hash = "sha256:4f96ccd9368ecbf6685d8f6981584ab72b4f0ffd20685e747737e7e340277b8d"}, - {file = "pydantic_core-2.50.0-cp313-cp313-win_arm64.whl", hash = "sha256:a2b88f9f9fa52e1c34938ff1a18ee7fbffe482df0bb43c087a9a60578d273d68"}, - {file = "pydantic_core-2.50.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:62a93a9d206a3580c975c3c1f65a869cd063844d016c004f8d786a9309b3c591"}, - {file = "pydantic_core-2.50.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:5a8403eef4a66743e339102fb3cdd8c8b9016b8bd67924685893d062c88896f9"}, - {file = "pydantic_core-2.50.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d8354fbbe2abf0fb724b9303bef43bfd9b7a2779332813fa6d6559983954e7d8"}, - {file = "pydantic_core-2.50.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:00963fde61cf8880d9e7b5635a9830e0591edfa45168447fdc5b47635c0f6437"}, - {file = "pydantic_core-2.50.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1bbd7da16d8b2912cc56c9d0b85c4998a6cbf39b220f81c0d8c397c64672ae0e"}, - {file = "pydantic_core-2.50.0-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ed557fa2744617eac3e34dd39b85037efbf23cd33f06851c00fdb8f18ad8f4c2"}, - {file = "pydantic_core-2.50.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:59f816dc04e99627a5a6352ae51dfb30e603f2cb0b7009c91dc640c533def014"}, - {file = "pydantic_core-2.50.0-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:779b6c74526596a86d38248dedaecfb7851bbaf319c234be042c57acddd2c8c4"}, - {file = "pydantic_core-2.50.0-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:21b62d45f327eb0802f842c132fda6d01a8376a8077922dc4dda69011c64d34a"}, - {file = "pydantic_core-2.50.0-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:4f31af62efd1fd0257735b72e6716b32d4f207654adeabfe524d44baf1bb6bed"}, - {file = "pydantic_core-2.50.0-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:933f2d639eb81a3e1f145aec415453cc00983236629933f028d9507222583a2e"}, - {file = "pydantic_core-2.50.0-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:c05d035e72530f6b00297941b0162218601542b76870c3bf2756bd87f16fc538"}, - {file = "pydantic_core-2.50.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:ab3f95f737fc1b258b8210308fc02ce1442cf5950cf6d30b09ad89ab9e8afebd"}, - {file = "pydantic_core-2.50.0-cp314-cp314-win32.whl", hash = "sha256:f12d9690634414fc04b1a7072fdc35c34a9242232c1851fe4518383578bb09d4"}, - {file = "pydantic_core-2.50.0-cp314-cp314-win_amd64.whl", hash = "sha256:63263d64884688554fb025a3906c7b00573980cfee75f9afeb86239d577384bc"}, - {file = "pydantic_core-2.50.0-cp314-cp314-win_arm64.whl", hash = "sha256:753863dd4317ec8cc9eb3e6d9d01a8ef1a1726a8003b4354658d68a1ae05f9db"}, - {file = "pydantic_core-2.50.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:c4abc425789f8540e86ca4cfdbc8dc650433cc2ac7c6136fee9bcb29d5665a02"}, - {file = "pydantic_core-2.50.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:cf150693a51ca21e8288cd08a9de05e5ab331776dfcfd0537b14523338f0502a"}, - {file = "pydantic_core-2.50.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:158749408ee19682b8a2a7e7135cced7f41d6f2f9de96088b1b1609858a6a158"}, - {file = "pydantic_core-2.50.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:dcbd1fe5083315243447c13f7252ae9fe9d128b1ae2857e3a916c609235dd863"}, - {file = "pydantic_core-2.50.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0fdeda6272d60b1f6fb63f6a3dade55e274af62e1514d24a6549a12150c385cc"}, - {file = "pydantic_core-2.50.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8b16e164205a90b1050d2f5469f8a7829db7698ad198c69e6aab6cbfb5648b87"}, - {file = "pydantic_core-2.50.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:17a5ca9c197788a6424749a09a3dce824cb2c17b72f835f8a5e330935b973609"}, - {file = "pydantic_core-2.50.0-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:01340f4fbb4f854b1f36a6fe9dcd2b26c8936aead4e4ad1205624ac025c875fc"}, - {file = "pydantic_core-2.50.0-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:99e203d5c2a814facef78dcd993b0fb7a933124a3475a38979fc09cceae210b7"}, - {file = "pydantic_core-2.50.0-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:2092ce156f92aff17e3345baba2b7c0c1701f32ba922c5de71bd6248fbe164e3"}, - {file = "pydantic_core-2.50.0-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:74cbb6cbd74445ca279668790e0c10eccac0428fd79fe061fce6c9e3982ad3fe"}, - {file = "pydantic_core-2.50.0-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:42fff617cb0b08505d8123d71e6e7a8e54210d9007498f564855bd843ce984b1"}, - {file = "pydantic_core-2.50.0-cp314-cp314t-win32.whl", hash = "sha256:36f9ed6ae1069913e4f6e86d8233e119e83e00a20c54f88faf9c81292f2fecc0"}, - {file = "pydantic_core-2.50.0-cp314-cp314t-win_amd64.whl", hash = "sha256:980c81c2ec53ea9eb2227c14b3e6de35670b2de163b638f2a803e90a3bd5bbb0"}, - {file = "pydantic_core-2.50.0-cp314-cp314t-win_arm64.whl", hash = "sha256:dec0dafc116ac29a84d143fdbc3b83fdb5d4ed339276be2251154537ab30e14d"}, - {file = "pydantic_core-2.50.0-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:af2b808a79bb04075e87c81a5b6179365b93f9a851f29dafd67abff72085d0c8"}, - {file = "pydantic_core-2.50.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:2918547195ffb20118b829fdb8938e9dc92c9527fe6cbe58572594c96362880e"}, - {file = "pydantic_core-2.50.0-cp315-cp315-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0393763d66f6f61715488d074a2cefac04aeb3ee281e36fb4925dd44deaf9e17"}, - {file = "pydantic_core-2.50.0-cp315-cp315-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:62ec6568896e0abf258cbcd22c406c1c8bf27d16224b21bec8f75c4ae88a8173"}, - {file = "pydantic_core-2.50.0-cp315-cp315-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ec786cb9d597dd75d993f8c1273e31bb2114c9bc22f67fba611e654e8347701b"}, - {file = "pydantic_core-2.50.0-cp315-cp315-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3fce74add1099da1ea09473268950270071fd56773e2968604efb3ab1d240e02"}, - {file = "pydantic_core-2.50.0-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:243088c95e23b12db9f2cd7661d584a3f00814e087489f40cde7f9feac56b694"}, - {file = "pydantic_core-2.50.0-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:42a56b0052ac11d9d0d87b1c94a1ce52e31914fd133f269585e0f63a4ed988f2"}, - {file = "pydantic_core-2.50.0-cp315-cp315-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:350001f5573451150d919722ee095aa28bec037d6e23b86d7f04581a910fe924"}, - {file = "pydantic_core-2.50.0-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:21e38a011783d8afc8b9d79928e273d06f349b52ae84edf63ec18ad07f077484"}, - {file = "pydantic_core-2.50.0-cp315-cp315-musllinux_1_1_armv7l.whl", hash = "sha256:588d309ce5c85448379556d72011b191c0414ee2e80d7c3f1ebe2ceb2d9027b1"}, - {file = "pydantic_core-2.50.0-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:a8ee3965e01f10e4ff92ba1727626328ab7ba93bcd5674ff2b78ea1048ee0cea"}, - {file = "pydantic_core-2.50.0-cp315-cp315-win32.whl", hash = "sha256:c05b75ef3574c9ee4e05bbcf8513f7ccb155d426514be9efef5f6f53152d5f5c"}, - {file = "pydantic_core-2.50.0-cp315-cp315-win_amd64.whl", hash = "sha256:8447678b49412294801c9ea15ae31ea3bae7da65425268c92d40e032c38eac6f"}, - {file = "pydantic_core-2.50.0-cp315-cp315-win_arm64.whl", hash = "sha256:92016718bcf3e6f35a6bd986880191a8da7a35aa1f5b1e97544582ef938464cf"}, - {file = "pydantic_core-2.50.0-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:71061800a3c225e730f7997f8a7fad6e0d0dcbe36609cdc7e60576a099a2832b"}, - {file = "pydantic_core-2.50.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:bc87bd34239835c8d73171acd039e591cea0a2ca8615e6188044ad170a40fca1"}, - {file = "pydantic_core-2.50.0-cp315-cp315t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:57c0e5b26d82bf31ab2b044781527b1b1a36e9ed400856b6aca5097eb1abb909"}, - {file = "pydantic_core-2.50.0-cp315-cp315t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:41b9f2821f0a105f88cd54ad03fe1392ec600618ffa8610f7c5e466ecd98c531"}, - {file = "pydantic_core-2.50.0-cp315-cp315t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:364f62d8024997536e57865cb1c8b36effad3249bf392a29a2379ea69db28238"}, - {file = "pydantic_core-2.50.0-cp315-cp315t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:955d7878130dfc124d6a5343e1b87d2933244fe14a4a0a3e98787e8e660a8eb4"}, - {file = "pydantic_core-2.50.0-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cf81432281af66ba3285b26b09c2d478d84730dc50ff90926c1bdcef54048a33"}, - {file = "pydantic_core-2.50.0-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:34a4a0938eb30931baca56e55786c5a6871ac7aa891a38c8cabcdb7e49dab91b"}, - {file = "pydantic_core-2.50.0-cp315-cp315t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f517a417cd02aa8fb05b603a0ac6d87b7b004c3ba4fcd279cad25cab7229043b"}, - {file = "pydantic_core-2.50.0-cp315-cp315t-musllinux_1_1_aarch64.whl", hash = "sha256:d01029d54ff1f45c195b1f7e6fbf6e58fb7e7e12cda9a6e639570d9c581decb2"}, - {file = "pydantic_core-2.50.0-cp315-cp315t-musllinux_1_1_armv7l.whl", hash = "sha256:d06dbbfe8da01a0574de27afc19915bb3e7dddfbd184bb97e958f94051d8531b"}, - {file = "pydantic_core-2.50.0-cp315-cp315t-musllinux_1_1_x86_64.whl", hash = "sha256:5307a8bd49158b57a0ca4e10950d31085aa35d9007e934047043ccc6d28eea97"}, - {file = "pydantic_core-2.50.0-cp315-cp315t-win32.whl", hash = "sha256:c2b246fa7cbdf9918488d1542a82bbb928cf71bcba66905c24131981e759ff0b"}, - {file = "pydantic_core-2.50.0-cp315-cp315t-win_amd64.whl", hash = "sha256:36c49d4e1769127461b609f110d91963790091ffcc2de401ac1d3b2f6a63bd54"}, - {file = "pydantic_core-2.50.0-cp315-cp315t-win_arm64.whl", hash = "sha256:f3abcabb04503023e1053add24472e78878de0bfd5c8a93686be01f4032c363c"}, - {file = "pydantic_core-2.50.0-graalpy311-graalpy242_311_native-macosx_10_12_x86_64.whl", hash = "sha256:38b03c5439c6a7a952f56e3e6596dae44bc78c3fb6a69df46cabfb2f888e5f0c"}, - {file = "pydantic_core-2.50.0-graalpy311-graalpy242_311_native-macosx_11_0_arm64.whl", hash = "sha256:4faa766450ef44d9eabed5b65a280f63f903d1e1ed6d2e278961eb22345ec49f"}, - {file = "pydantic_core-2.50.0-graalpy311-graalpy242_311_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:50920d66aaab60dbc6023c3035d55fbabfa58b6d205d0b39d47d820c4a7a13a8"}, - {file = "pydantic_core-2.50.0-graalpy311-graalpy242_311_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:586699b43066ca6038f96bd71d0eff0b6c292929e3d66ff63d5dc79d0f06d589"}, - {file = "pydantic_core-2.50.0-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:b916ff828d604d4311a5639b7b3da51eaea3923833ec3e300a5ee35eade99691"}, - {file = "pydantic_core-2.50.0-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:732efbb50977ab7cf18f01d4c255834aeb14cb2425459f7bff681a1ba3a4ffa1"}, - {file = "pydantic_core-2.50.0-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ad9185366893714cd4514ae5e1a098227704fa395cb41a7855d75968ecedc826"}, - {file = "pydantic_core-2.50.0-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0def1dc09802a790e4a1b3cbc4401f0b53c58f273ce3671df9867f7bdf1fbe20"}, - {file = "pydantic_core-2.50.0-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:68421ba548f6d86c7dededd70bfe530b4faf67eb811c53c70a1be69438d3ce99"}, - {file = "pydantic_core-2.50.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:23e0940b7d73f405d92e98b2a05b93b16db163be13b7478bb19e1db2e486ade6"}, - {file = "pydantic_core-2.50.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ee9913fa2b5bfa6111c11158cf481bb13544f8bd5d10382fb6ee2612b16fcf28"}, - {file = "pydantic_core-2.50.0-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ad3532291deedfdfcad3cf5d351d0076d646c68a0c63869a1bebf87c22159600"}, - {file = "pydantic_core-2.50.0-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:9279f4be22bc3765dd9f61f5b4d38d9cb219d167bbd6f2e0ffa3368b1b71b4d1"}, - {file = "pydantic_core-2.50.0-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:3b2f3e44af4c6512dd73557621385a71b18094c8be81d60e5a8e73a8ce96b7f4"}, - {file = "pydantic_core-2.50.0-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:593dd4f24abeb3ed90222f98bc6eefcac68cd5aa96fc7745f93862a802952bce"}, - {file = "pydantic_core-2.50.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:b123f9d8702106f39dc3af63a031ca8b5279862a3747ec6c03ca49dbe78b71b9"}, - {file = "pydantic_core-2.50.0.tar.gz", hash = "sha256:84d2d38f7d163c4dec292f379e9de1960c661795442aca6c90d706436cb3749e"}, + {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] diff --git a/src/speechify/audio/client.py b/src/speechify/audio/client.py index b1fe7c7..f473e0c 100644 --- a/src/speechify/audio/client.py +++ b/src/speechify/audio/client.py @@ -156,7 +156,7 @@ def stream( ---------- input : str Plain text or SSML to be synthesized to speech. - Up to 20,000 characters as sent, SSML markup included. + 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. SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. @@ -278,7 +278,7 @@ def stream_with_timestamps( ---------- input : str Plain text or SSML to be synthesized to speech. - Up to 20,000 characters as sent, SSML markup included. + 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. SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. @@ -502,7 +502,7 @@ async def stream( ---------- input : str Plain text or SSML to be synthesized to speech. - Up to 20,000 characters as sent, SSML markup included. + 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. SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. @@ -633,7 +633,7 @@ async def stream_with_timestamps( ---------- input : str Plain text or SSML to be synthesized to speech. - Up to 20,000 characters as sent, SSML markup included. + 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. SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. diff --git a/src/speechify/audio/raw_client.py b/src/speechify/audio/raw_client.py index e582983..fe54aa8 100644 --- a/src/speechify/audio/raw_client.py +++ b/src/speechify/audio/raw_client.py @@ -283,7 +283,7 @@ def stream( ---------- input : str Plain text or SSML to be synthesized to speech. - Up to 20,000 characters as sent, SSML markup included. + 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. SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. @@ -537,7 +537,7 @@ def stream_with_timestamps( ---------- input : str Plain text or SSML to be synthesized to speech. - Up to 20,000 characters as sent, SSML markup included. + 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. SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. @@ -1007,7 +1007,7 @@ async def stream( ---------- input : str Plain text or SSML to be synthesized to speech. - Up to 20,000 characters as sent, SSML markup included. + 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. SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. @@ -1262,7 +1262,7 @@ async def stream_with_timestamps( ---------- input : str Plain text or SSML to be synthesized to speech. - Up to 20,000 characters as sent, SSML markup included. + 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. SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. diff --git a/src/speechify/types/get_stream_request.py b/src/speechify/types/get_stream_request.py index 0c4236d..c4e568f 100644 --- a/src/speechify/types/get_stream_request.py +++ b/src/speechify/types/get_stream_request.py @@ -18,7 +18,7 @@ class GetStreamRequest(UniversalBaseModel): input: str = pydantic.Field() """ Plain text or SSML to be synthesized to speech. - Up to 20,000 characters as sent, SSML markup included. + 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. SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. """ From 946a61a3a8aae91ac2df42c1b76417c85cf2c09c Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 17 Oct 2026 11:27:55 +0000 Subject: [PATCH 259/272] SDK regeneration --- .fern/metadata.json | 2 +- poetry.lock | 12 ++++-------- src/speechify/audio/types/speech_error_error_code.py | 1 + src/speechify/types/error_code.py | 1 + 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index fdd0dbd..0788570 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "8b9ae378a6b4c4d4e29b68752c5e880e29b6115f", + "originGitCommit": "d42154d536e8edefac52b12af39bfcc093ebb0ec", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/poetry.lock b/poetry.lock index 884a9fd..2f3abeb 100644 --- a/poetry.lock +++ b/poetry.lock @@ -855,20 +855,16 @@ 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.4" diff --git a/src/speechify/audio/types/speech_error_error_code.py b/src/speechify/audio/types/speech_error_error_code.py index f17d1f8..d9f68f2 100644 --- a/src/speechify/audio/types/speech_error_error_code.py +++ b/src/speechify/audio/types/speech_error_error_code.py @@ -132,6 +132,7 @@ "service_account_limit_reached", "service_accounts_not_in_plan", "speech_marks_unsupported", + "pronunciations_unsupported", "model_retired", "too_many_voices", "content_policy_violation", diff --git a/src/speechify/types/error_code.py b/src/speechify/types/error_code.py index ce7f3d9..7498792 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -132,6 +132,7 @@ "service_account_limit_reached", "service_accounts_not_in_plan", "speech_marks_unsupported", + "pronunciations_unsupported", "model_retired", "too_many_voices", "content_policy_violation", From 7a9849d2a18273b71875e6997d0e437145d86cac Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 18 Oct 2026 10:34:45 +0000 Subject: [PATCH 260/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 12 ++--- src/speechify/audio/client.py | 44 +++++++++---------- src/speechify/audio/raw_client.py | 44 +++++++++---------- .../audio/types/audio_stream_input_model.py | 2 +- .../audio/types/get_speech_request_model.py | 2 +- src/speechify/types/get_stream_request.py | 6 +-- .../types/get_stream_request_model.py | 2 +- src/speechify/types/get_voices_model_name.py | 2 +- src/speechify/voices/client.py | 4 +- src/speechify/voices/raw_client.py | 4 +- 11 files changed, 62 insertions(+), 62 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 0788570..8da7676 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "d42154d536e8edefac52b12af39bfcc093ebb0ec", + "originGitCommit": "030e73b3e159adb6d9ea1a6100e7eb6fd85f79d0", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index fbc4165..d9d8c4e 100644 --- a/reference.md +++ b/reference.md @@ -65,7 +65,7 @@ client.audio.speech( Plain text or SSML to be synthesized to speech. Up to 2,000 characters of spoken text, the characters the request is billed for: SSML tags do not count. The input as sent, markup included, may be up to 20,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. -SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. +SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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. @@ -102,9 +102,9 @@ 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. +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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. +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. @@ -276,8 +276,8 @@ delivery detail and carries no meaning. Times stay correct for every duration. Every model this route accepts produces speech marks here. The default -`simba-3.0` and `simba-3.2` stream marks word by word alongside the -audio. The legacy `simba-english` and `simba-multilingual` models, +`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 @@ -611,7 +611,7 @@ 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` (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` also serves cloned voices. +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`. diff --git a/src/speechify/audio/client.py b/src/speechify/audio/client.py index f473e0c..e697577 100644 --- a/src/speechify/audio/client.py +++ b/src/speechify/audio/client.py @@ -69,7 +69,7 @@ def speech( Plain text or SSML to be synthesized to speech. Up to 2,000 characters of spoken text, the characters the request is billed for: SSML tags do not count. The input as sent, markup included, may be up to 20,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. + SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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 @@ -82,9 +82,9 @@ 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. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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] @@ -158,7 +158,7 @@ def stream( 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. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. + SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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 @@ -177,9 +177,9 @@ 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. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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] @@ -264,8 +264,8 @@ def stream_with_timestamps( duration. Every model this route accepts produces speech marks here. The default - `simba-3.0` and `simba-3.2` stream marks word by word alongside the - audio. The legacy `simba-english` and `simba-multilingual` models, + `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 @@ -280,7 +280,7 @@ def stream_with_timestamps( 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. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. + SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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 @@ -296,9 +296,9 @@ 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. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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] @@ -407,7 +407,7 @@ async def speech( Plain text or SSML to be synthesized to speech. Up to 2,000 characters of spoken text, the characters the request is billed for: SSML tags do not count. The input as sent, markup included, may be up to 20,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. + SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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 @@ -420,9 +420,9 @@ 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. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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] @@ -504,7 +504,7 @@ async def stream( 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. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. + SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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 @@ -523,9 +523,9 @@ 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. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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] @@ -619,8 +619,8 @@ async def stream_with_timestamps( duration. Every model this route accepts produces speech marks here. The default - `simba-3.0` and `simba-3.2` stream marks word by word alongside the - audio. The legacy `simba-english` and `simba-multilingual` models, + `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 @@ -635,7 +635,7 @@ async def stream_with_timestamps( 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. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. + SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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 @@ -651,9 +651,9 @@ 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. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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] diff --git a/src/speechify/audio/raw_client.py b/src/speechify/audio/raw_client.py index fe54aa8..c108bde 100644 --- a/src/speechify/audio/raw_client.py +++ b/src/speechify/audio/raw_client.py @@ -72,7 +72,7 @@ def speech( Plain text or SSML to be synthesized to speech. Up to 2,000 characters of spoken text, the characters the request is billed for: SSML tags do not count. The input as sent, markup included, may be up to 20,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. + SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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 @@ -85,9 +85,9 @@ 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. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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] @@ -285,7 +285,7 @@ def stream( 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. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. + SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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 @@ -304,9 +304,9 @@ 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. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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] @@ -523,8 +523,8 @@ def stream_with_timestamps( duration. Every model this route accepts produces speech marks here. The default - `simba-3.0` and `simba-3.2` stream marks word by word alongside the - audio. The legacy `simba-english` and `simba-multilingual` models, + `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 @@ -539,7 +539,7 @@ def stream_with_timestamps( 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. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. + SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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 @@ -555,9 +555,9 @@ 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. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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] @@ -796,7 +796,7 @@ async def speech( Plain text or SSML to be synthesized to speech. Up to 2,000 characters of spoken text, the characters the request is billed for: SSML tags do not count. The input as sent, markup included, may be up to 20,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. + SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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 @@ -809,9 +809,9 @@ 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. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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] @@ -1009,7 +1009,7 @@ async def stream( 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. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. + SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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 @@ -1028,9 +1028,9 @@ 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. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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] @@ -1248,8 +1248,8 @@ async def stream_with_timestamps( duration. Every model this route accepts produces speech marks here. The default - `simba-3.0` and `simba-3.2` stream marks word by word alongside the - audio. The legacy `simba-english` and `simba-multilingual` models, + `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 @@ -1264,7 +1264,7 @@ async def stream_with_timestamps( 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. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. + SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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 @@ -1280,9 +1280,9 @@ 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. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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] diff --git a/src/speechify/audio/types/audio_stream_input_model.py b/src/speechify/audio/types/audio_stream_input_model.py index 7499f8b..d28f6b2 100644 --- a/src/speechify/audio/types/audio_stream_input_model.py +++ b/src/speechify/audio/types/audio_stream_input_model.py @@ -2,4 +2,4 @@ import typing -AudioStreamInputModel = typing.Union[typing.Literal["simba-3.0", "simba-3.2"], typing.Any] +AudioStreamInputModel = typing.Union[typing.Literal["simba-3.0", "simba-3.2", "simba-3.5"], 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 9ff7031..df544f6 100644 --- a/src/speechify/audio/types/get_speech_request_model.py +++ b/src/speechify/audio/types/get_speech_request_model.py @@ -2,4 +2,4 @@ import typing -GetSpeechRequestModel = typing.Union[typing.Literal["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/types/get_stream_request.py b/src/speechify/types/get_stream_request.py index c4e568f..fdf6d67 100644 --- a/src/speechify/types/get_stream_request.py +++ b/src/speechify/types/get_stream_request.py @@ -20,7 +20,7 @@ class GetStreamRequest(UniversalBaseModel): 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. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.2` and `simba-3.0` accept those tags without applying them. + SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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) @@ -31,9 +31,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. + 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) or `simba-3.0` before then; call GET /v1/audio/models to see the set your workspace can select today. + 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 diff --git a/src/speechify/types/get_stream_request_model.py b/src/speechify/types/get_stream_request_model.py index f156391..176168d 100644 --- a/src/speechify/types/get_stream_request_model.py +++ b/src/speechify/types/get_stream_request_model.py @@ -2,4 +2,4 @@ import typing -GetStreamRequestModel = typing.Union[typing.Literal["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_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/voices/client.py b/src/speechify/voices/client.py index ba8a50c..28898f3 100644 --- a/src/speechify/voices/client.py +++ b/src/speechify/voices/client.py @@ -163,7 +163,7 @@ 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` (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` also serves cloned voices. + 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`. @@ -508,7 +508,7 @@ 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` (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` also serves cloned voices. + 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`. diff --git a/src/speechify/voices/raw_client.py b/src/speechify/voices/raw_client.py index cd1617a..f0a2a43 100644 --- a/src/speechify/voices/raw_client.py +++ b/src/speechify/voices/raw_client.py @@ -238,7 +238,7 @@ 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` (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` also serves cloned voices. + 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`. @@ -1048,7 +1048,7 @@ 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` (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` also serves cloned voices. + 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`. From beaceae181817e99d5b2187fedf440309a8a4643 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sun, 18 Oct 2026 10:58:02 +0000 Subject: [PATCH 261/272] SDK regeneration --- .fern/metadata.json | 2 +- reference.md | 8 ++++ src/speechify/__init__.py | 36 ++++++++++++++++++ src/speechify/audio/__init__.py | 15 ++++++++ src/speechify/audio/client.py | 25 +++++++++++++ src/speechify/audio/raw_client.py | 37 +++++++++++++++++++ src/speechify/audio/types/__init__.py | 15 ++++++++ .../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/types/__init__.py | 21 +++++++++++ src/speechify/types/get_stream_request.py | 2 + src/speechify/types/model.py | 10 +++++ 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 +++++++ 22 files changed, 388 insertions(+), 1 deletion(-) 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/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 diff --git a/.fern/metadata.json b/.fern/metadata.json index 8da7676..5685140 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "030e73b3e159adb6d9ea1a6100e7eb6fd85f79d0", + "originGitCommit": "973d163d6211fc40adab98059ce8374e20eab0d0", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/reference.md b/reference.md index d9d8c4e..fb7d13d 100644 --- a/reference.md +++ b/reference.md @@ -128,6 +128,14 @@ The legacy Simba 1.6 models `simba-english` and `simba-multilingual` are retired
+**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.
diff --git a/src/speechify/__init__.py b/src/speechify/__init__.py index e19445e..8c2bcf6 100644 --- a/src/speechify/__init__.py +++ b/src/speechify/__init__.py @@ -45,6 +45,13 @@ ProjectMonthlyBudgetStatus, ProjectRestore, ProjectStillRevokedCounts, + Pronunciation, + PronunciationAlias, + PronunciationCaseSensitive, + PronunciationIpa, + PronunciationIpaText, + PronunciationText, + Pronunciations, SafetyIdentifier, SpeechChunkEvent, SpeechDoneEvent, @@ -88,6 +95,11 @@ InputFlushType, InputText, InputTextType, + SessionPronunciations, + SessionPronunciationsPronunciationsItem, + SessionPronunciationsPronunciationsItemAlias, + SessionPronunciationsPronunciationsItemIpa, + SessionPronunciationsType, SpeechChunk, SpeechChunkSpeechMarksItem, SpeechChunkType, @@ -173,8 +185,20 @@ "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", @@ -303,8 +327,20 @@ def __dir__(): "ProjectMonthlyBudgetStatus", "ProjectRestore", "ProjectStillRevokedCounts", + "Pronunciation", + "PronunciationAlias", + "PronunciationCaseSensitive", + "PronunciationIpa", + "PronunciationIpaText", + "PronunciationText", + "Pronunciations", "SafetyIdentifier", "ServiceUnavailableError", + "SessionPronunciations", + "SessionPronunciationsPronunciationsItem", + "SessionPronunciationsPronunciationsItemAlias", + "SessionPronunciationsPronunciationsItemIpa", + "SessionPronunciationsType", "SpeechChunk", "SpeechChunkEvent", "SpeechChunkSpeechMarksItem", diff --git a/src/speechify/audio/__init__.py b/src/speechify/audio/__init__.py index 2f1d8fb..5b9ef1f 100644 --- a/src/speechify/audio/__init__.py +++ b/src/speechify/audio/__init__.py @@ -18,6 +18,11 @@ InputFlushType, InputText, InputTextType, + SessionPronunciations, + SessionPronunciationsPronunciationsItem, + SessionPronunciationsPronunciationsItemAlias, + SessionPronunciationsPronunciationsItemIpa, + SessionPronunciationsType, SpeechChunk, SpeechChunkSpeechMarksItem, SpeechChunkType, @@ -46,6 +51,11 @@ "InputFlushType": ".types", "InputText": ".types", "InputTextType": ".types", + "SessionPronunciations": ".types", + "SessionPronunciationsPronunciationsItem": ".types", + "SessionPronunciationsPronunciationsItemAlias": ".types", + "SessionPronunciationsPronunciationsItemIpa": ".types", + "SessionPronunciationsType": ".types", "SpeechChunk": ".types", "SpeechChunkSpeechMarksItem": ".types", "SpeechChunkType": ".types", @@ -97,6 +107,11 @@ def __dir__(): "InputFlushType", "InputText", "InputTextType", + "SessionPronunciations", + "SessionPronunciationsPronunciationsItem", + "SessionPronunciationsPronunciationsItemAlias", + "SessionPronunciationsPronunciationsItemIpa", + "SessionPronunciationsType", "SpeechChunk", "SpeechChunkSpeechMarksItem", "SpeechChunkType", diff --git a/src/speechify/audio/client.py b/src/speechify/audio/client.py index e697577..00029d7 100644 --- a/src/speechify/audio/client.py +++ b/src/speechify/audio/client.py @@ -12,6 +12,7 @@ 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 @@ -53,6 +54,7 @@ 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: @@ -91,6 +93,8 @@ def speech( 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. @@ -125,6 +129,7 @@ def speech( model=model, options=options, output_format=output_format, + pronunciations=pronunciations, safety_identifier=safety_identifier, request_options=request_options, ) @@ -140,6 +145,7 @@ 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]: @@ -186,6 +192,8 @@ def stream( 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. @@ -225,6 +233,7 @@ def stream( model=model, options=options, output_format=output_format, + pronunciations=pronunciations, safety_identifier=safety_identifier, request_options=request_options, ) as r: @@ -240,6 +249,7 @@ 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]: @@ -305,6 +315,8 @@ def stream_with_timestamps( 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. @@ -350,6 +362,7 @@ def stream_with_timestamps( model=model, options=options, output_format=output_format, + pronunciations=pronunciations, safety_identifier=safety_identifier, request_options=request_options, ) as r: @@ -391,6 +404,7 @@ 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: @@ -429,6 +443,8 @@ async def speech( 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. @@ -471,6 +487,7 @@ async def main() -> None: model=model, options=options, output_format=output_format, + pronunciations=pronunciations, safety_identifier=safety_identifier, request_options=request_options, ) @@ -486,6 +503,7 @@ 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]: @@ -532,6 +550,8 @@ async def stream( 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. @@ -579,6 +599,7 @@ async def main() -> None: model=model, options=options, output_format=output_format, + pronunciations=pronunciations, safety_identifier=safety_identifier, request_options=request_options, ) as r: @@ -595,6 +616,7 @@ 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]: @@ -660,6 +682,8 @@ async def stream_with_timestamps( 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. @@ -713,6 +737,7 @@ async def main() -> None: model=model, options=options, output_format=output_format, + pronunciations=pronunciations, safety_identifier=safety_identifier, request_options=request_options, ) as r: diff --git a/src/speechify/audio/raw_client.py b/src/speechify/audio/raw_client.py index c108bde..c75482d 100644 --- a/src/speechify/audio/raw_client.py +++ b/src/speechify/audio/raw_client.py @@ -30,6 +30,7 @@ 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 @@ -56,6 +57,7 @@ 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]: @@ -94,6 +96,8 @@ def speech( 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. @@ -118,6 +122,9 @@ 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, }, @@ -267,6 +274,7 @@ 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]]]: @@ -313,6 +321,8 @@ def stream( 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. @@ -343,6 +353,9 @@ 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, }, @@ -499,6 +512,7 @@ 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]]]: @@ -564,6 +578,8 @@ def stream_with_timestamps( 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. @@ -597,6 +613,9 @@ 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, }, @@ -780,6 +799,7 @@ 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]: @@ -818,6 +838,8 @@ async def speech( 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. @@ -842,6 +864,9 @@ 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, }, @@ -991,6 +1016,7 @@ 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]]]: @@ -1037,6 +1063,8 @@ async def stream( 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. @@ -1067,6 +1095,9 @@ 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, }, @@ -1224,6 +1255,7 @@ 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]]]: @@ -1289,6 +1321,8 @@ async def stream_with_timestamps( 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. @@ -1322,6 +1356,9 @@ 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, }, diff --git a/src/speechify/audio/types/__init__.py b/src/speechify/audio/types/__init__.py index e9d4aa6..4a7caa9 100644 --- a/src/speechify/audio/types/__init__.py +++ b/src/speechify/audio/types/__init__.py @@ -17,6 +17,11 @@ 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 @@ -43,6 +48,11 @@ "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", @@ -93,6 +103,11 @@ def __dir__(): "InputFlushType", "InputText", "InputTextType", + "SessionPronunciations", + "SessionPronunciationsPronunciationsItem", + "SessionPronunciationsPronunciationsItemAlias", + "SessionPronunciationsPronunciationsItemIpa", + "SessionPronunciationsType", "SpeechChunk", "SpeechChunkSpeechMarksItem", "SpeechChunkType", 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/types/__init__.py b/src/speechify/types/__init__.py index 3e75c44..51f844b 100644 --- a/src/speechify/types/__init__.py +++ b/src/speechify/types/__init__.py @@ -44,6 +44,13 @@ 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 @@ -99,6 +106,13 @@ "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", @@ -176,6 +190,13 @@ def __dir__(): "ProjectMonthlyBudgetStatus", "ProjectRestore", "ProjectStillRevokedCounts", + "Pronunciation", + "PronunciationAlias", + "PronunciationCaseSensitive", + "PronunciationIpa", + "PronunciationIpaText", + "PronunciationText", + "Pronunciations", "SafetyIdentifier", "SpeechChunkEvent", "SpeechDoneEvent", diff --git a/src/speechify/types/get_stream_request.py b/src/speechify/types/get_stream_request.py index fdf6d67..86f7bf2 100644 --- a/src/speechify/types/get_stream_request.py +++ b/src/speechify/types/get_stream_request.py @@ -7,6 +7,7 @@ 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 @@ -42,6 +43,7 @@ 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. diff --git a/src/speechify/types/model.py b/src/speechify/types/model.py index 5788fe9..ba83bcc 100644 --- a/src/speechify/types/model.py +++ b/src/speechify/types/model.py @@ -108,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/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. +""" From 088cb343e533706c2ffff771b4536f5dc675e98d Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 20 Oct 2026 12:05:28 +0000 Subject: [PATCH 262/272] SDK regeneration --- .fern/metadata.json | 2 +- poetry.lock | 6 +++--- reference.md | 2 +- src/speechify/audio/client.py | 12 ++++++------ src/speechify/audio/raw_client.py | 12 ++++++------ src/speechify/types/get_stream_request.py | 2 +- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 5685140..4b1f34a 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "973d163d6211fc40adab98059ce8374e20eab0d0", + "originGitCommit": "9dde59a9133d823cee5dd558b5be9ff1135e7bbe", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/poetry.lock b/poetry.lock index 2f3abeb..84b219d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -289,14 +289,14 @@ files = [ [[package]] name = "certifi" -version = "2026.7.22" +version = "2026.10.19" 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.19-py3-none-any.whl", hash = "sha256:42d35340cc5b9ba78e818ddbff0c5b1c2b779de448a340fd1b989f5fa8670e1b"}, + {file = "certifi-2026.10.19.tar.gz", hash = "sha256:035c1e85572b141bf1c3a3eff0e33a8eb74917522f2559075ff8d2fea780a1ae"}, ] [[package]] diff --git a/reference.md b/reference.md index fb7d13d..7de11a5 100644 --- a/reference.md +++ b/reference.md @@ -65,7 +65,7 @@ client.audio.speech( Plain text or SSML to be synthesized to speech. Up to 2,000 characters of spoken text, the characters the request is billed for: SSML tags do not count. The input as sent, markup included, may be up to 20,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. -SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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. +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.
diff --git a/src/speechify/audio/client.py b/src/speechify/audio/client.py index 00029d7..7d25ed8 100644 --- a/src/speechify/audio/client.py +++ b/src/speechify/audio/client.py @@ -71,7 +71,7 @@ def speech( Plain text or SSML to be synthesized to speech. Up to 2,000 characters of spoken text, the characters the request is billed for: SSML tags do not count. The input as sent, markup included, may be up to 20,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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. + 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 @@ -164,7 +164,7 @@ def stream( 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. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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. + 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 @@ -290,7 +290,7 @@ def stream_with_timestamps( 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. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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. + 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 @@ -421,7 +421,7 @@ async def speech( Plain text or SSML to be synthesized to speech. Up to 2,000 characters of spoken text, the characters the request is billed for: SSML tags do not count. The input as sent, markup included, may be up to 20,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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. + 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 @@ -522,7 +522,7 @@ async def stream( 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. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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. + 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 @@ -657,7 +657,7 @@ async def stream_with_timestamps( 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. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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. + 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 diff --git a/src/speechify/audio/raw_client.py b/src/speechify/audio/raw_client.py index c75482d..5fdddae 100644 --- a/src/speechify/audio/raw_client.py +++ b/src/speechify/audio/raw_client.py @@ -74,7 +74,7 @@ def speech( Plain text or SSML to be synthesized to speech. Up to 2,000 characters of spoken text, the characters the request is billed for: SSML tags do not count. The input as sent, markup included, may be up to 20,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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. + 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 @@ -293,7 +293,7 @@ def stream( 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. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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. + 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 @@ -553,7 +553,7 @@ def stream_with_timestamps( 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. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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. + 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 @@ -816,7 +816,7 @@ async def speech( Plain text or SSML to be synthesized to speech. Up to 2,000 characters of spoken text, the characters the request is billed for: SSML tags do not count. The input as sent, markup included, may be up to 20,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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. + 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 @@ -1035,7 +1035,7 @@ async def stream( 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. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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. + 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 @@ -1296,7 +1296,7 @@ async def stream_with_timestamps( 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. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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. + 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 diff --git a/src/speechify/types/get_stream_request.py b/src/speechify/types/get_stream_request.py index 86f7bf2..5d50430 100644 --- a/src/speechify/types/get_stream_request.py +++ b/src/speechify/types/get_stream_request.py @@ -21,7 +21,7 @@ class GetStreamRequest(UniversalBaseModel): 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. - SSML sets pauses (``), speaking rate (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles, pitch, volume 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. + 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) From 3c5b36e8720a3aec452ec967a1b35651faee546a Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 21 Oct 2026 11:07:25 +0000 Subject: [PATCH 263/272] SDK regeneration --- .fern/metadata.json | 2 +- poetry.lock | 6 +++--- src/speechify/types/get_voice.py | 12 ++++++++++++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 4b1f34a..e198941 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,7 +9,7 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "9dde59a9133d823cee5dd558b5be9ff1135e7bbe", + "originGitCommit": "840e0cbeef9d9aa315ae4d3c9a871c350f1a305a", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", diff --git a/poetry.lock b/poetry.lock index 84b219d..fc6be19 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1400,14 +1400,14 @@ files = [ [[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]] diff --git a/src/speechify/types/get_voice.py b/src/speechify/types/get_voice.py index 7d06970..9dd7bdb 100644 --- a/src/speechify/types/get_voice.py +++ b/src/speechify/types/get_voice.py @@ -38,6 +38,18 @@ class GetVoice(UniversalBaseModel): 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 From 654cf8433a477394ba2edee52254b35f4b03ec10 Mon Sep 17 00:00:00 2001 From: vitalragaz Date: Tue, 27 Oct 2026 15:08:14 +0000 Subject: [PATCH 264/272] fix: mypy passes under pydantic 2.14 pydantic 2.14 (the lockfile's version) makes mypy report var-annotated on the two module-level TypeAdapter instances, which failed the release-please job. These are the exact lines Fern's python generator emits from 5.39.2, which SpeechifyInc/speechify-api moves to, so the next regeneration leaves them as they are. Constraining pydantic below 2.14 would have narrowed users' runtime dependency to work around our own type check. --- src/speechify/core/pydantic_utilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/speechify/core/pydantic_utilities.py b/src/speechify/core/pydantic_utilities.py index 6587f5e..34a4ea4 100644 --- a/src/speechify/core/pydantic_utilities.py +++ b/src/speechify/core/pydantic_utilities.py @@ -36,8 +36,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): From d1f533bbd0296be1c382db477e20c1bef90c5da9 Mon Sep 17 00:00:00 2001 From: vitalragaz Date: Tue, 27 Oct 2026 15:08:59 +0000 Subject: [PATCH 265/272] docs: README stops advertising a websocket client the SDK does not have, examples use simba-3.5 client.audio.stream_input does not exist: the python generator only builds websocket clients with should_generate_websocket_clients, but its README feature list documented the AsyncAPI channel anyway. SpeechifyInc/speechify-api now sets readme.disabledSections: [websockets], and this is exactly the README that setting generates. The speech, stream and voices examples move to simba-3.5, the recommended model, as the spec's examples do. --- README.md | 39 ++++----------------------------------- reference.md | 6 +++--- 2 files changed, 7 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 3981fcc..5114d67 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,6 @@ The Speechify Python library provides convenient access to the Speechify APIs fr - [Exception Handling](#exception-handling) - [Streaming](#streaming) - [Pagination](#pagination) -- [Websockets](#websockets) - [Advanced](#advanced) - [Access Raw Response Data](#access-raw-response-data) - [Retries](#retries) @@ -52,7 +51,7 @@ client = Speechify( client.audio.speech( audio_format="mp3", input="Hello! This is the Speechify text-to-speech API.", - model="simba-3.2", + model="simba-3.5", voice_id="geffen_32", ) ``` @@ -88,7 +87,7 @@ async def main() -> None: await client.audio.speech( audio_format="mp3", input="Hello! This is the Speechify text-to-speech API.", - model="simba-3.2", + model="simba-3.5", voice_id="geffen_32", ) @@ -124,7 +123,7 @@ client = Speechify( client.audio.stream_with_timestamps( input="Streaming long-form audio with the Speechify API.", - model="simba-3.2", + model="simba-3.5", voice_id="geffen_32", ) ``` @@ -142,7 +141,7 @@ client = Speechify( client.voices.list( locale="en", - model="simba-3.2", + model="simba-3.5", project_id="proj_01arz3ndektsv4rrffq69g5fav", ) ``` @@ -156,36 +155,6 @@ for page in pager.iter_pages(): print(item) ``` -## Websockets - -The SDK supports both sync and async websocket connections for real-time, low-latency communication. Sockets can be created using the `connect` method, which returns a context manager. -You can either iterate through the returned `SocketClient` to process messages as they arrive, or attach handlers to respond to specific events. - -```python -from speechify import Speechify - -client = Speechify(...) - -# Connect to the websocket (Sync) -with client.audio.stream_input(...) as socket: - # Iterate over the messages as they arrive - for message in socket: - print(message) - - # Or, attach handlers to specific events - socket.on(EventType.MESSAGE, lambda message: print("received message", message)) - -import asyncio -from speechify import AsyncSpeechify - -client = AsyncSpeechify(...) - -# Connect to the websocket (Async) -async with client.audio.stream_input(...) as socket: - async for message in socket: - print(message) -``` - ## Advanced ### Access Raw Response Data diff --git a/reference.md b/reference.md index 7de11a5..fea4a9c 100644 --- a/reference.md +++ b/reference.md @@ -42,7 +42,7 @@ client = Speechify( client.audio.speech( audio_format="mp3", input="Hello! This is the Speechify text-to-speech API.", - model="simba-3.2", + model="simba-3.5", voice_id="geffen_32", ) @@ -317,7 +317,7 @@ client = Speechify( client.audio.stream_with_timestamps( input="Streaming long-form audio with the Speechify API.", - model="simba-3.2", + model="simba-3.5", voice_id="geffen_32", ) @@ -492,7 +492,7 @@ client = Speechify( client.voices.list( locale="en", - model="simba-3.2", + model="simba-3.5", project_id="proj_01arz3ndektsv4rrffq69g5fav", ) From cf7836d655de7ba67c0ba83ae61b0975bcb8226e Mon Sep 17 00:00:00 2001 From: vitalragaz Date: Tue, 27 Oct 2026 15:09:55 +0000 Subject: [PATCH 266/272] test: offline smoke tests for the default client Covers what no generated test does: a client built with defaults sends audio.speech to https://api.speechify.ai, every resource client sends the same Speechify-Version, and a keyless client sends no Authorization header (POST /v1/audio/watermark/verify takes no credentials). --- .fernignore | 3 ++ tests/custom/test_client.py | 72 ++++++++++++++++++++++++++++++++++--- 2 files changed, 71 insertions(+), 4 deletions(-) diff --git a/.fernignore b/.fernignore index ad2ec63..0d9ea7b 100644 --- a/.fernignore +++ b/.fernignore @@ -14,6 +14,9 @@ CHANGELOG.md # manual-publish.yml is the recovery path for a botched release. .github/workflows/manual-publish.yml AGENTS.md +# Default-client smoke tests. Generated tests always pass an explicit base URL, +# so this is the only check on the client a user builds with defaults. +tests/custom/test_client.py # License file — not generated by Fern; keep listed so regen never deletes it. LICENSE # ignore context7 config file diff --git a/tests/custom/test_client.py b/tests/custom/test_client.py index ab04ce6..8029fdc 100644 --- a/tests/custom/test_client.py +++ b/tests/custom/test_client.py @@ -1,7 +1,71 @@ +# Hand-kept (listed in .fernignore). Generated tests always pass an explicit +# base URL, so nothing else exercises the client a user builds with defaults. +import typing + +import httpx import pytest +from speechify import AsyncSpeechify, Speechify + +_RESPONSES: typing.Dict[str, typing.Dict[str, typing.Any]] = { + "/v1/audio/speech": { + "audio_data": "", + "audio_format": "mp3", + "billable_characters_count": 5, + "speech_marks": {"chunks": [], "end": 5, "end_time": 0, "start": 0, "start_time": 0, "type": "sentence"}, + }, + "/v1/audio/models": {"models": [], "dialogue_models": []}, + "/v1/voices": {"voices": [], "has_more": False}, +} + + +def _transport(seen: typing.List[httpx.Request]) -> httpx.MockTransport: + def respond(request: httpx.Request) -> httpx.Response: + seen.append(request) + return httpx.Response(200, json=_RESPONSES[request.url.path]) + + return httpx.MockTransport(respond) + + +def test_speech_goes_to_the_production_api() -> None: + seen: typing.List[httpx.Request] = [] + client = Speechify(token="test-token", httpx_client=httpx.Client(transport=_transport(seen))) + + client.audio.speech(input="Hello", voice_id="geffen_32", model="simba-3.5") + + assert [str(request.url) for request in seen] == ["https://api.speechify.ai/v1/audio/speech"] + assert seen[0].headers["Authorization"] == "Bearer test-token" + + +def test_every_resource_client_sends_the_same_version() -> None: + seen: typing.List[httpx.Request] = [] + client = Speechify(token="test-token", httpx_client=httpx.Client(transport=_transport(seen))) + + client.audio.speech(input="Hello", voice_id="geffen_32") + client.models.list() + list(client.voices.list()) + + versions = {request.headers.get("Speechify-Version") for request in seen} + assert len(versions) == 1 + assert None not in versions + + +async def test_async_speech_goes_to_the_production_api() -> None: + seen: typing.List[httpx.Request] = [] + client = AsyncSpeechify(token="test-token", httpx_client=httpx.AsyncClient(transport=_transport(seen))) + + await client.audio.speech(input="Hello", voice_id="geffen_32", model="simba-3.5") + + assert [str(request.url) for request in seen] == ["https://api.speechify.ai/v1/audio/speech"] + + +# A keyless client is legitimate: POST /v1/audio/watermark/verify takes no +# credentials. Authenticated calls then fail with the API's 401. +def test_a_client_without_a_key_sends_no_authorization(monkeypatch: pytest.MonkeyPatch) -> None: + monkeypatch.delenv("SPEECHIFY_API_KEY", raising=False) + seen: typing.List[httpx.Request] = [] + client = Speechify(token=None, httpx_client=httpx.Client(transport=_transport(seen))) + + client.models.list() -# Get started with writing tests with pytest at https://docs.pytest.org -@pytest.mark.skip(reason="Unimplemented") -def test_client() -> None: - assert True + assert "Authorization" not in seen[0].headers From a99731a0014b7dbc3f37c209004a6800f5cf6bac Mon Sep 17 00:00:00 2001 From: vitalragaz Date: Tue, 27 Oct 2026 15:10:19 +0000 Subject: [PATCH 267/272] docs(agents): regeneration PRs and where README fixes belong --- AGENTS.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 9b594e2..539f1dc 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,7 +2,10 @@ This is a **Fern-generated** SDK. It is published to **PyPI** as `speechify-api`. The source of truth for the API surface lives in the `SpeechifyInc/speechify-api` -repo (`fern/`); this repo receives generated code on the `sdk-release` branch. +repo (`fern/`). Each regeneration arrives as a Fern pull request against `main` +(`mode: pull-request` in that repo's `fern/generators.yml`); before that switch, +Fern pushed to an `sdk-release` branch that went unmerged from August to October +2026. See "After every Fern regeneration" below. **Read this before doing anything that touches a release.** A botched release here publishes to an immutable public registry and breaks the contract with every @@ -142,7 +145,17 @@ the next release stamps over you anyway. Leave them alone. `.github/workflows/ci.yml`, `.github/workflows/release-please.yml`, `.github/workflows/manual-publish.yml`, `release-please-config.json`, -`.release-please-manifest.json`, `CHANGELOG.md`, `AGENTS.md`. +`.release-please-manifest.json`, `CHANGELOG.md`, `AGENTS.md`, `LICENSE`, +`context7.json`, `tests/custom/test_client.py`. + +`README.md` and `reference.md` are generated, not shielded: fix their content in +the spec or in speechify-api's `fern/generators.yml` (`readme:`), never here. + +**The squash title decides the release.** Fern titles its PR "SDK +regeneration", which release-please ignores. Retitle it `feat:` for additive +changes, or `feat!:` with a `BREAKING CHANGE:` section for a break: a removed +keyword argument, a changed type, or the default `Speechify-Version` moving (an +unpinned caller's wire behaviour changes). These are **regenerated** and must be re-checked by hand every single time: From 751588e2e10bacede3701df0ac91525f96b3d6ab Mon Sep 17 00:00:00 2001 From: vitalragaz Date: Tue, 27 Oct 2026 15:10:42 +0000 Subject: [PATCH 268/272] docs: keep the voices filter example the spec generates --- README.md | 2 +- reference.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5114d67..3fa73f7 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ client = Speechify( client.voices.list( locale="en", - model="simba-3.5", + model="simba-3.2", project_id="proj_01arz3ndektsv4rrffq69g5fav", ) ``` diff --git a/reference.md b/reference.md index fea4a9c..b97d83d 100644 --- a/reference.md +++ b/reference.md @@ -492,7 +492,7 @@ client = Speechify( client.voices.list( locale="en", - model="simba-3.5", + model="simba-3.2", project_id="proj_01arz3ndektsv4rrffq69g5fav", ) From 84dddfc30ea8dfe18582789ba4131b5e2dad0517 Mon Sep 17 00:00:00 2001 From: vitalragaz Date: Tue, 27 Oct 2026 16:01:02 +0000 Subject: [PATCH 269/272] feat!: the environment names its URLs base and websocket Regenerated from SpeechifyInc/speechify-api#4744's spec, which renames the AsyncAPI server from production to websocket. The same spec declares 413 on the synthesis operations, so audio calls now raise ContentTooLargeError. tests/custom/test_client.py pins the environment, reads a with-timestamps stream framed as the API writes it into the declared SpeechStreamEvent_* classes, and checks the 413. --- src/speechify/audio/raw_client.py | 67 +++++++++++++++++++++++++++++++ src/speechify/environment.py | 8 ++-- tests/custom/test_client.py | 41 +++++++++++++++++-- 3 files changed, 107 insertions(+), 9 deletions(-) diff --git a/src/speechify/audio/raw_client.py b/src/speechify/audio/raw_client.py index 5fdddae..0a73cb6 100644 --- a/src/speechify/audio/raw_client.py +++ b/src/speechify/audio/raw_client.py @@ -16,6 +16,7 @@ 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 @@ -210,6 +211,17 @@ def speech( ), ), ) + 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), @@ -441,6 +453,17 @@ def _stream() -> HttpResponse[typing.Iterator[bytes]]: ), ), ) + 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), @@ -724,6 +747,17 @@ def _iter(): ), ), ) + 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), @@ -952,6 +986,17 @@ async def speech( ), ), ) + 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), @@ -1184,6 +1229,17 @@ async def _stream() -> AsyncHttpResponse[typing.AsyncIterator[bytes]]: ), ), ) + 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), @@ -1467,6 +1523,17 @@ async def _iter(): ), ), ) + 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/environment.py b/src/speechify/environment.py index db7e4f3..6e1c97c 100644 --- a/src/speechify/environment.py +++ b/src/speechify/environment.py @@ -6,11 +6,9 @@ class SpeechifyEnvironment: DEFAULT: SpeechifyEnvironment - def __init__(self, *, base: str, production: str): + def __init__(self, *, base: str, websocket: str): self.base = base - self.production = production + self.websocket = websocket -SpeechifyEnvironment.DEFAULT = SpeechifyEnvironment( - base="https://api.speechify.ai", production="wss://api.speechify.ai" -) +SpeechifyEnvironment.DEFAULT = SpeechifyEnvironment(base="https://api.speechify.ai", websocket="wss://api.speechify.ai") diff --git a/tests/custom/test_client.py b/tests/custom/test_client.py index 8029fdc..80e6431 100644 --- a/tests/custom/test_client.py +++ b/tests/custom/test_client.py @@ -5,7 +5,8 @@ import httpx import pytest -from speechify import AsyncSpeechify, Speechify +from speechify import AsyncSpeechify, ContentTooLargeError, Speechify, SpeechifyEnvironment +from speechify.types.speech_stream_event import SpeechStreamEvent_SpeechChunk, SpeechStreamEvent_SpeechDone _RESPONSES: typing.Dict[str, typing.Dict[str, typing.Any]] = { "/v1/audio/speech": { @@ -18,16 +19,31 @@ "/v1/voices": {"voices": [], "has_more": False}, } +# Framed exactly as the API writes it: a named event, one data line, a blank line. +_SSE = ( + 'event: speech.chunk\ndata: {"type":"speech.chunk","audio":"AAAA"}\n\n' + 'event: speech.done\ndata: {"type":"speech.done","billable_characters_count":5,"audio_duration_ms":120}\n\n' +) -def _transport(seen: typing.List[httpx.Request]) -> httpx.MockTransport: + +def _transport(seen: typing.List[httpx.Request], status: int = 200) -> httpx.MockTransport: def respond(request: httpx.Request) -> httpx.Response: seen.append(request) + if status != 200: + return httpx.Response(status, json={"error": {"code": "payload_too_large", "message": "too large"}}) + if request.url.path == "/v1/audio/stream/with-timestamps": + return httpx.Response(200, content=_SSE.encode(), headers={"Content-Type": "text/event-stream"}) return httpx.Response(200, json=_RESPONSES[request.url.path]) return httpx.MockTransport(respond) -def test_speech_goes_to_the_production_api() -> None: +def test_the_environment_names_its_urls_base_and_websocket() -> None: + assert SpeechifyEnvironment.DEFAULT.base == "https://api.speechify.ai" + assert SpeechifyEnvironment.DEFAULT.websocket == "wss://api.speechify.ai" + + +def test_speech_goes_to_api_speechify_ai() -> None: seen: typing.List[httpx.Request] = [] client = Speechify(token="test-token", httpx_client=httpx.Client(transport=_transport(seen))) @@ -50,7 +66,24 @@ def test_every_resource_client_sends_the_same_version() -> None: assert None not in versions -async def test_async_speech_goes_to_the_production_api() -> None: +def test_a_with_timestamps_stream_yields_every_event_the_final_done_included() -> None: + client = Speechify(token="test-token", httpx_client=httpx.Client(transport=_transport([]))) + + events = list(client.audio.stream_with_timestamps(input="Hello", voice_id="geffen_32")) + + assert [type(event) for event in events] == [SpeechStreamEvent_SpeechChunk, SpeechStreamEvent_SpeechDone] + done = events[1] + assert isinstance(done, SpeechStreamEvent_SpeechDone) and done.billable_characters_count == 5 + + +def test_an_oversized_body_raises_content_too_large() -> None: + client = Speechify(token="test-token", httpx_client=httpx.Client(transport=_transport([], status=413))) + + with pytest.raises(ContentTooLargeError): + client.audio.speech(input="Hello", voice_id="geffen_32") + + +async def test_async_speech_goes_to_api_speechify_ai() -> None: seen: typing.List[httpx.Request] = [] client = AsyncSpeechify(token="test-token", httpx_client=httpx.AsyncClient(transport=_transport(seen))) 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 270/272] [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 271/272] [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: [] From d2808387b899613386db4b8a9b049e4157f76c7a Mon Sep 17 00:00:00 2001 From: vitalragaz Date: Tue, 27 Oct 2026 17:13:24 +0000 Subject: [PATCH 272/272] test: the client reads SPEECHIFY_API_KEY when it is built Generator 5.41.10 resolves the token at construction instead of in a default argument evaluated at import, so a key set after `import speechify` is used. An explicit token still wins, a keyless client sends no Authorization header, and an authenticated call without a key raises UnauthorizedError. --- tests/custom/test_client.py | 53 ++++++++++++++++++++++++++++++++++--- 1 file changed, 50 insertions(+), 3 deletions(-) diff --git a/tests/custom/test_client.py b/tests/custom/test_client.py index 80e6431..2329cf0 100644 --- a/tests/custom/test_client.py +++ b/tests/custom/test_client.py @@ -5,7 +5,7 @@ import httpx import pytest -from speechify import AsyncSpeechify, ContentTooLargeError, Speechify, SpeechifyEnvironment +from speechify import AsyncSpeechify, ContentTooLargeError, Speechify, SpeechifyEnvironment, UnauthorizedError from speechify.types.speech_stream_event import SpeechStreamEvent_SpeechChunk, SpeechStreamEvent_SpeechDone _RESPONSES: typing.Dict[str, typing.Dict[str, typing.Any]] = { @@ -19,6 +19,11 @@ "/v1/voices": {"voices": [], "has_more": False}, } +_ERRORS: typing.Dict[int, typing.Dict[str, str]] = { + 401: {"code": "unauthorized", "message": "Unauthorized"}, + 413: {"code": "payload_too_large", "message": "too large"}, +} + # Framed exactly as the API writes it: a named event, one data line, a blank line. _SSE = ( 'event: speech.chunk\ndata: {"type":"speech.chunk","audio":"AAAA"}\n\n' @@ -30,7 +35,7 @@ def _transport(seen: typing.List[httpx.Request], status: int = 200) -> httpx.Moc def respond(request: httpx.Request) -> httpx.Response: seen.append(request) if status != 200: - return httpx.Response(status, json={"error": {"code": "payload_too_large", "message": "too large"}}) + return httpx.Response(status, json={"error": _ERRORS[status]}) if request.url.path == "/v1/audio/stream/with-timestamps": return httpx.Response(200, content=_SSE.encode(), headers={"Content-Type": "text/event-stream"}) return httpx.Response(200, json=_RESPONSES[request.url.path]) @@ -97,8 +102,50 @@ async def test_async_speech_goes_to_api_speechify_ai() -> None: def test_a_client_without_a_key_sends_no_authorization(monkeypatch: pytest.MonkeyPatch) -> None: monkeypatch.delenv("SPEECHIFY_API_KEY", raising=False) seen: typing.List[httpx.Request] = [] - client = Speechify(token=None, httpx_client=httpx.Client(transport=_transport(seen))) + client = Speechify(httpx_client=httpx.Client(transport=_transport(seen))) client.models.list() assert "Authorization" not in seen[0].headers + + +def test_an_authenticated_call_without_a_key_raises_unauthorized(monkeypatch: pytest.MonkeyPatch) -> None: + monkeypatch.delenv("SPEECHIFY_API_KEY", raising=False) + client = Speechify(httpx_client=httpx.Client(transport=_transport([], status=401))) + + with pytest.raises(UnauthorizedError) as raised: + client.audio.speech(input="Hello", voice_id="geffen_32") + + assert raised.value.status_code == 401 + + +# The module is imported above, so this key is set after import: the client +# reads SPEECHIFY_API_KEY when it is constructed. +def test_a_key_set_after_import_is_used(monkeypatch: pytest.MonkeyPatch) -> None: + monkeypatch.setenv("SPEECHIFY_API_KEY", "env-token") + seen: typing.List[httpx.Request] = [] + client = Speechify(httpx_client=httpx.Client(transport=_transport(seen))) + + client.models.list() + + assert seen[0].headers["Authorization"] == "Bearer env-token" + + +async def test_async_a_key_set_after_import_is_used(monkeypatch: pytest.MonkeyPatch) -> None: + monkeypatch.setenv("SPEECHIFY_API_KEY", "env-token") + seen: typing.List[httpx.Request] = [] + client = AsyncSpeechify(httpx_client=httpx.AsyncClient(transport=_transport(seen))) + + await client.models.list() + + assert seen[0].headers["Authorization"] == "Bearer env-token" + + +def test_an_explicit_token_wins_over_the_environment(monkeypatch: pytest.MonkeyPatch) -> None: + monkeypatch.setenv("SPEECHIFY_API_KEY", "env-token") + seen: typing.List[httpx.Request] = [] + client = Speechify(token="test-token", httpx_client=httpx.Client(transport=_transport(seen))) + + client.models.list() + + assert seen[0].headers["Authorization"] == "Bearer test-token"