casedev 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- casedev/__init__.py +104 -0
- casedev/_base_client.py +1995 -0
- casedev/_client.py +560 -0
- casedev/_compat.py +219 -0
- casedev/_constants.py +14 -0
- casedev/_exceptions.py +108 -0
- casedev/_files.py +123 -0
- casedev/_models.py +857 -0
- casedev/_qs.py +150 -0
- casedev/_resource.py +43 -0
- casedev/_response.py +830 -0
- casedev/_streaming.py +333 -0
- casedev/_types.py +260 -0
- casedev/_utils/__init__.py +64 -0
- casedev/_utils/_compat.py +45 -0
- casedev/_utils/_datetime_parse.py +136 -0
- casedev/_utils/_logs.py +25 -0
- casedev/_utils/_proxy.py +65 -0
- casedev/_utils/_reflection.py +42 -0
- casedev/_utils/_resources_proxy.py +24 -0
- casedev/_utils/_streams.py +12 -0
- casedev/_utils/_sync.py +58 -0
- casedev/_utils/_transform.py +457 -0
- casedev/_utils/_typing.py +156 -0
- casedev/_utils/_utils.py +421 -0
- casedev/_version.py +4 -0
- casedev/lib/.keep +4 -0
- casedev/py.typed +0 -0
- casedev/resources/__init__.py +173 -0
- casedev/resources/actions/__init__.py +33 -0
- casedev/resources/actions/actions.py +102 -0
- casedev/resources/actions/v1.py +640 -0
- casedev/resources/compute/__init__.py +33 -0
- casedev/resources/compute/compute.py +102 -0
- casedev/resources/compute/v1/__init__.py +89 -0
- casedev/resources/compute/v1/environments.py +492 -0
- casedev/resources/compute/v1/functions.py +278 -0
- casedev/resources/compute/v1/invoke.py +216 -0
- casedev/resources/compute/v1/runs.py +290 -0
- casedev/resources/compute/v1/secrets.py +655 -0
- casedev/resources/compute/v1/v1.py +583 -0
- casedev/resources/convert/__init__.py +33 -0
- casedev/resources/convert/convert.py +102 -0
- casedev/resources/convert/v1/__init__.py +33 -0
- casedev/resources/convert/v1/jobs.py +254 -0
- casedev/resources/convert/v1/v1.py +450 -0
- casedev/resources/format/__init__.py +33 -0
- casedev/resources/format/format.py +102 -0
- casedev/resources/format/v1/__init__.py +33 -0
- casedev/resources/format/v1/templates.py +419 -0
- casedev/resources/format/v1/v1.py +244 -0
- casedev/resources/llm/__init__.py +33 -0
- casedev/resources/llm/llm.py +192 -0
- casedev/resources/llm/v1/__init__.py +33 -0
- casedev/resources/llm/v1/chat.py +243 -0
- casedev/resources/llm/v1/v1.py +317 -0
- casedev/resources/ocr/__init__.py +33 -0
- casedev/resources/ocr/ocr.py +102 -0
- casedev/resources/ocr/v1.py +407 -0
- casedev/resources/search/__init__.py +33 -0
- casedev/resources/search/search.py +102 -0
- casedev/resources/search/v1.py +1052 -0
- casedev/resources/templates/__init__.py +33 -0
- casedev/resources/templates/templates.py +102 -0
- casedev/resources/templates/v1.py +633 -0
- casedev/resources/vault/__init__.py +47 -0
- casedev/resources/vault/graphrag.py +256 -0
- casedev/resources/vault/objects.py +571 -0
- casedev/resources/vault/vault.py +764 -0
- casedev/resources/voice/__init__.py +61 -0
- casedev/resources/voice/streaming.py +160 -0
- casedev/resources/voice/transcription.py +327 -0
- casedev/resources/voice/v1/__init__.py +33 -0
- casedev/resources/voice/v1/speak.py +478 -0
- casedev/resources/voice/v1/v1.py +290 -0
- casedev/resources/voice/voice.py +166 -0
- casedev/resources/webhooks/__init__.py +33 -0
- casedev/resources/webhooks/v1.py +447 -0
- casedev/resources/webhooks/webhooks.py +102 -0
- casedev/resources/workflows/__init__.py +33 -0
- casedev/resources/workflows/v1.py +1053 -0
- casedev/resources/workflows/workflows.py +102 -0
- casedev/types/__init__.py +12 -0
- casedev/types/actions/__init__.py +8 -0
- casedev/types/actions/v1_create_params.py +22 -0
- casedev/types/actions/v1_create_response.py +33 -0
- casedev/types/actions/v1_execute_params.py +16 -0
- casedev/types/actions/v1_execute_response.py +31 -0
- casedev/types/compute/__init__.py +7 -0
- casedev/types/compute/v1/__init__.py +18 -0
- casedev/types/compute/v1/environment_create_params.py +12 -0
- casedev/types/compute/v1/environment_create_response.py +34 -0
- casedev/types/compute/v1/environment_delete_response.py +11 -0
- casedev/types/compute/v1/function_get_logs_params.py +12 -0
- casedev/types/compute/v1/function_list_params.py +12 -0
- casedev/types/compute/v1/invoke_run_params.py +21 -0
- casedev/types/compute/v1/invoke_run_response.py +39 -0
- casedev/types/compute/v1/run_list_params.py +18 -0
- casedev/types/compute/v1/secret_create_params.py +24 -0
- casedev/types/compute/v1/secret_create_response.py +24 -0
- casedev/types/compute/v1/secret_delete_group_params.py +18 -0
- casedev/types/compute/v1/secret_list_params.py +15 -0
- casedev/types/compute/v1/secret_retrieve_group_params.py +12 -0
- casedev/types/compute/v1/secret_update_group_params.py +16 -0
- casedev/types/compute/v1_deploy_params.py +114 -0
- casedev/types/compute/v1_deploy_response.py +30 -0
- casedev/types/compute/v1_get_usage_params.py +15 -0
- casedev/types/convert/__init__.py +8 -0
- casedev/types/convert/v1/__init__.py +3 -0
- casedev/types/convert/v1_process_params.py +15 -0
- casedev/types/convert/v1_process_response.py +19 -0
- casedev/types/convert/v1_webhook_params.py +32 -0
- casedev/types/convert/v1_webhook_response.py +13 -0
- casedev/types/format/__init__.py +5 -0
- casedev/types/format/v1/__init__.py +7 -0
- casedev/types/format/v1/template_create_params.py +32 -0
- casedev/types/format/v1/template_create_response.py +27 -0
- casedev/types/format/v1/template_list_params.py +12 -0
- casedev/types/format/v1_create_document_params.py +42 -0
- casedev/types/llm/__init__.py +5 -0
- casedev/types/llm/v1/__init__.py +6 -0
- casedev/types/llm/v1/chat_create_completion_params.py +42 -0
- casedev/types/llm/v1/chat_create_completion_response.py +49 -0
- casedev/types/llm/v1_create_embedding_params.py +27 -0
- casedev/types/ocr/__init__.py +6 -0
- casedev/types/ocr/v1_process_params.py +44 -0
- casedev/types/ocr/v1_process_response.py +32 -0
- casedev/types/search/__init__.py +15 -0
- casedev/types/search/v1_answer_params.py +45 -0
- casedev/types/search/v1_answer_response.py +35 -0
- casedev/types/search/v1_contents_params.py +42 -0
- casedev/types/search/v1_contents_response.py +31 -0
- casedev/types/search/v1_research_params.py +23 -0
- casedev/types/search/v1_research_response.py +20 -0
- casedev/types/search/v1_retrieve_research_params.py +15 -0
- casedev/types/search/v1_search_params.py +56 -0
- casedev/types/search/v1_search_response.py +38 -0
- casedev/types/search/v1_similar_params.py +44 -0
- casedev/types/search/v1_similar_response.py +33 -0
- casedev/types/templates/__init__.py +8 -0
- casedev/types/templates/v1_execute_params.py +22 -0
- casedev/types/templates/v1_execute_response.py +31 -0
- casedev/types/templates/v1_list_params.py +32 -0
- casedev/types/templates/v1_search_params.py +18 -0
- casedev/types/vault/__init__.py +6 -0
- casedev/types/vault/object_create_presigned_url_params.py +22 -0
- casedev/types/vault/object_create_presigned_url_response.py +51 -0
- casedev/types/vault_create_params.py +20 -0
- casedev/types/vault_create_response.py +36 -0
- casedev/types/vault_ingest_response.py +26 -0
- casedev/types/vault_list_response.py +40 -0
- casedev/types/vault_search_params.py +27 -0
- casedev/types/vault_search_response.py +53 -0
- casedev/types/vault_upload_params.py +26 -0
- casedev/types/vault_upload_response.py +39 -0
- casedev/types/voice/__init__.py +7 -0
- casedev/types/voice/transcription_create_params.py +36 -0
- casedev/types/voice/transcription_retrieve_response.py +41 -0
- casedev/types/voice/v1/__init__.py +6 -0
- casedev/types/voice/v1/speak_create_params.py +59 -0
- casedev/types/voice/v1/speak_stream_params.py +58 -0
- casedev/types/voice/v1_list_voices_params.py +36 -0
- casedev/types/webhooks/__init__.py +6 -0
- casedev/types/webhooks/v1_create_params.py +20 -0
- casedev/types/webhooks/v1_create_response.py +33 -0
- casedev/types/workflows/__init__.py +19 -0
- casedev/types/workflows/v1_create_params.py +32 -0
- casedev/types/workflows/v1_create_response.py +29 -0
- casedev/types/workflows/v1_delete_response.py +13 -0
- casedev/types/workflows/v1_deploy_response.py +20 -0
- casedev/types/workflows/v1_execute_params.py +12 -0
- casedev/types/workflows/v1_execute_response.py +22 -0
- casedev/types/workflows/v1_list_executions_params.py +13 -0
- casedev/types/workflows/v1_list_executions_response.py +27 -0
- casedev/types/workflows/v1_list_params.py +18 -0
- casedev/types/workflows/v1_list_response.py +37 -0
- casedev/types/workflows/v1_retrieve_execution_response.py +31 -0
- casedev/types/workflows/v1_retrieve_response.py +35 -0
- casedev/types/workflows/v1_undeploy_response.py +13 -0
- casedev/types/workflows/v1_update_params.py +26 -0
- casedev/types/workflows/v1_update_response.py +17 -0
- casedev-0.1.0.dist-info/METADATA +454 -0
- casedev-0.1.0.dist-info/RECORD +185 -0
- casedev-0.1.0.dist-info/WHEEL +4 -0
- casedev-0.1.0.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
import httpx
|
|
8
|
+
|
|
9
|
+
from .speak import (
|
|
10
|
+
SpeakResource,
|
|
11
|
+
AsyncSpeakResource,
|
|
12
|
+
SpeakResourceWithRawResponse,
|
|
13
|
+
AsyncSpeakResourceWithRawResponse,
|
|
14
|
+
SpeakResourceWithStreamingResponse,
|
|
15
|
+
AsyncSpeakResourceWithStreamingResponse,
|
|
16
|
+
)
|
|
17
|
+
from ...._types import Body, Omit, Query, Headers, NoneType, NotGiven, omit, not_given
|
|
18
|
+
from ...._utils import maybe_transform, async_maybe_transform
|
|
19
|
+
from ...._compat import cached_property
|
|
20
|
+
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
21
|
+
from ...._response import (
|
|
22
|
+
to_raw_response_wrapper,
|
|
23
|
+
to_streamed_response_wrapper,
|
|
24
|
+
async_to_raw_response_wrapper,
|
|
25
|
+
async_to_streamed_response_wrapper,
|
|
26
|
+
)
|
|
27
|
+
from ....types.voice import v1_list_voices_params
|
|
28
|
+
from ...._base_client import make_request_options
|
|
29
|
+
|
|
30
|
+
__all__ = ["V1Resource", "AsyncV1Resource"]
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class V1Resource(SyncAPIResource):
|
|
34
|
+
@cached_property
|
|
35
|
+
def speak(self) -> SpeakResource:
|
|
36
|
+
return SpeakResource(self._client)
|
|
37
|
+
|
|
38
|
+
@cached_property
|
|
39
|
+
def with_raw_response(self) -> V1ResourceWithRawResponse:
|
|
40
|
+
"""
|
|
41
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
42
|
+
the raw response object instead of the parsed content.
|
|
43
|
+
|
|
44
|
+
For more information, see https://www.github.com/CaseMark/casedev-python#accessing-raw-response-data-eg-headers
|
|
45
|
+
"""
|
|
46
|
+
return V1ResourceWithRawResponse(self)
|
|
47
|
+
|
|
48
|
+
@cached_property
|
|
49
|
+
def with_streaming_response(self) -> V1ResourceWithStreamingResponse:
|
|
50
|
+
"""
|
|
51
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
52
|
+
|
|
53
|
+
For more information, see https://www.github.com/CaseMark/casedev-python#with_streaming_response
|
|
54
|
+
"""
|
|
55
|
+
return V1ResourceWithStreamingResponse(self)
|
|
56
|
+
|
|
57
|
+
def list_voices(
|
|
58
|
+
self,
|
|
59
|
+
*,
|
|
60
|
+
category: str | Omit = omit,
|
|
61
|
+
collection_id: str | Omit = omit,
|
|
62
|
+
include_total_count: bool | Omit = omit,
|
|
63
|
+
next_page_token: str | Omit = omit,
|
|
64
|
+
page_size: int | Omit = omit,
|
|
65
|
+
search: str | Omit = omit,
|
|
66
|
+
sort: Literal["name", "created_at", "updated_at"] | Omit = omit,
|
|
67
|
+
sort_direction: Literal["asc", "desc"] | Omit = omit,
|
|
68
|
+
voice_type: Literal["premade", "cloned", "professional"] | Omit = omit,
|
|
69
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
70
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
71
|
+
extra_headers: Headers | None = None,
|
|
72
|
+
extra_query: Query | None = None,
|
|
73
|
+
extra_body: Body | None = None,
|
|
74
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
75
|
+
) -> None:
|
|
76
|
+
"""Retrieve a list of available voices for text-to-speech synthesis.
|
|
77
|
+
|
|
78
|
+
This endpoint
|
|
79
|
+
provides access to a comprehensive catalog of voices with various
|
|
80
|
+
characteristics, languages, and styles suitable for legal document narration,
|
|
81
|
+
client presentations, and accessibility purposes.
|
|
82
|
+
|
|
83
|
+
Args:
|
|
84
|
+
category: Filter by voice category
|
|
85
|
+
|
|
86
|
+
collection_id: Filter by voice collection ID
|
|
87
|
+
|
|
88
|
+
include_total_count: Whether to include total count in response
|
|
89
|
+
|
|
90
|
+
next_page_token: Token for retrieving the next page of results
|
|
91
|
+
|
|
92
|
+
page_size: Number of voices to return per page (max 100)
|
|
93
|
+
|
|
94
|
+
search: Search term to filter voices by name or description
|
|
95
|
+
|
|
96
|
+
sort: Field to sort by
|
|
97
|
+
|
|
98
|
+
sort_direction: Sort direction
|
|
99
|
+
|
|
100
|
+
voice_type: Filter by voice type
|
|
101
|
+
|
|
102
|
+
extra_headers: Send extra headers
|
|
103
|
+
|
|
104
|
+
extra_query: Add additional query parameters to the request
|
|
105
|
+
|
|
106
|
+
extra_body: Add additional JSON properties to the request
|
|
107
|
+
|
|
108
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
109
|
+
"""
|
|
110
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
111
|
+
return self._get(
|
|
112
|
+
"/voice/v1/voices",
|
|
113
|
+
options=make_request_options(
|
|
114
|
+
extra_headers=extra_headers,
|
|
115
|
+
extra_query=extra_query,
|
|
116
|
+
extra_body=extra_body,
|
|
117
|
+
timeout=timeout,
|
|
118
|
+
query=maybe_transform(
|
|
119
|
+
{
|
|
120
|
+
"category": category,
|
|
121
|
+
"collection_id": collection_id,
|
|
122
|
+
"include_total_count": include_total_count,
|
|
123
|
+
"next_page_token": next_page_token,
|
|
124
|
+
"page_size": page_size,
|
|
125
|
+
"search": search,
|
|
126
|
+
"sort": sort,
|
|
127
|
+
"sort_direction": sort_direction,
|
|
128
|
+
"voice_type": voice_type,
|
|
129
|
+
},
|
|
130
|
+
v1_list_voices_params.V1ListVoicesParams,
|
|
131
|
+
),
|
|
132
|
+
),
|
|
133
|
+
cast_to=NoneType,
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
class AsyncV1Resource(AsyncAPIResource):
|
|
138
|
+
@cached_property
|
|
139
|
+
def speak(self) -> AsyncSpeakResource:
|
|
140
|
+
return AsyncSpeakResource(self._client)
|
|
141
|
+
|
|
142
|
+
@cached_property
|
|
143
|
+
def with_raw_response(self) -> AsyncV1ResourceWithRawResponse:
|
|
144
|
+
"""
|
|
145
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
146
|
+
the raw response object instead of the parsed content.
|
|
147
|
+
|
|
148
|
+
For more information, see https://www.github.com/CaseMark/casedev-python#accessing-raw-response-data-eg-headers
|
|
149
|
+
"""
|
|
150
|
+
return AsyncV1ResourceWithRawResponse(self)
|
|
151
|
+
|
|
152
|
+
@cached_property
|
|
153
|
+
def with_streaming_response(self) -> AsyncV1ResourceWithStreamingResponse:
|
|
154
|
+
"""
|
|
155
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
156
|
+
|
|
157
|
+
For more information, see https://www.github.com/CaseMark/casedev-python#with_streaming_response
|
|
158
|
+
"""
|
|
159
|
+
return AsyncV1ResourceWithStreamingResponse(self)
|
|
160
|
+
|
|
161
|
+
async def list_voices(
|
|
162
|
+
self,
|
|
163
|
+
*,
|
|
164
|
+
category: str | Omit = omit,
|
|
165
|
+
collection_id: str | Omit = omit,
|
|
166
|
+
include_total_count: bool | Omit = omit,
|
|
167
|
+
next_page_token: str | Omit = omit,
|
|
168
|
+
page_size: int | Omit = omit,
|
|
169
|
+
search: str | Omit = omit,
|
|
170
|
+
sort: Literal["name", "created_at", "updated_at"] | Omit = omit,
|
|
171
|
+
sort_direction: Literal["asc", "desc"] | Omit = omit,
|
|
172
|
+
voice_type: Literal["premade", "cloned", "professional"] | Omit = omit,
|
|
173
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
174
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
175
|
+
extra_headers: Headers | None = None,
|
|
176
|
+
extra_query: Query | None = None,
|
|
177
|
+
extra_body: Body | None = None,
|
|
178
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
179
|
+
) -> None:
|
|
180
|
+
"""Retrieve a list of available voices for text-to-speech synthesis.
|
|
181
|
+
|
|
182
|
+
This endpoint
|
|
183
|
+
provides access to a comprehensive catalog of voices with various
|
|
184
|
+
characteristics, languages, and styles suitable for legal document narration,
|
|
185
|
+
client presentations, and accessibility purposes.
|
|
186
|
+
|
|
187
|
+
Args:
|
|
188
|
+
category: Filter by voice category
|
|
189
|
+
|
|
190
|
+
collection_id: Filter by voice collection ID
|
|
191
|
+
|
|
192
|
+
include_total_count: Whether to include total count in response
|
|
193
|
+
|
|
194
|
+
next_page_token: Token for retrieving the next page of results
|
|
195
|
+
|
|
196
|
+
page_size: Number of voices to return per page (max 100)
|
|
197
|
+
|
|
198
|
+
search: Search term to filter voices by name or description
|
|
199
|
+
|
|
200
|
+
sort: Field to sort by
|
|
201
|
+
|
|
202
|
+
sort_direction: Sort direction
|
|
203
|
+
|
|
204
|
+
voice_type: Filter by voice type
|
|
205
|
+
|
|
206
|
+
extra_headers: Send extra headers
|
|
207
|
+
|
|
208
|
+
extra_query: Add additional query parameters to the request
|
|
209
|
+
|
|
210
|
+
extra_body: Add additional JSON properties to the request
|
|
211
|
+
|
|
212
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
213
|
+
"""
|
|
214
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
215
|
+
return await self._get(
|
|
216
|
+
"/voice/v1/voices",
|
|
217
|
+
options=make_request_options(
|
|
218
|
+
extra_headers=extra_headers,
|
|
219
|
+
extra_query=extra_query,
|
|
220
|
+
extra_body=extra_body,
|
|
221
|
+
timeout=timeout,
|
|
222
|
+
query=await async_maybe_transform(
|
|
223
|
+
{
|
|
224
|
+
"category": category,
|
|
225
|
+
"collection_id": collection_id,
|
|
226
|
+
"include_total_count": include_total_count,
|
|
227
|
+
"next_page_token": next_page_token,
|
|
228
|
+
"page_size": page_size,
|
|
229
|
+
"search": search,
|
|
230
|
+
"sort": sort,
|
|
231
|
+
"sort_direction": sort_direction,
|
|
232
|
+
"voice_type": voice_type,
|
|
233
|
+
},
|
|
234
|
+
v1_list_voices_params.V1ListVoicesParams,
|
|
235
|
+
),
|
|
236
|
+
),
|
|
237
|
+
cast_to=NoneType,
|
|
238
|
+
)
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
class V1ResourceWithRawResponse:
|
|
242
|
+
def __init__(self, v1: V1Resource) -> None:
|
|
243
|
+
self._v1 = v1
|
|
244
|
+
|
|
245
|
+
self.list_voices = to_raw_response_wrapper(
|
|
246
|
+
v1.list_voices,
|
|
247
|
+
)
|
|
248
|
+
|
|
249
|
+
@cached_property
|
|
250
|
+
def speak(self) -> SpeakResourceWithRawResponse:
|
|
251
|
+
return SpeakResourceWithRawResponse(self._v1.speak)
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
class AsyncV1ResourceWithRawResponse:
|
|
255
|
+
def __init__(self, v1: AsyncV1Resource) -> None:
|
|
256
|
+
self._v1 = v1
|
|
257
|
+
|
|
258
|
+
self.list_voices = async_to_raw_response_wrapper(
|
|
259
|
+
v1.list_voices,
|
|
260
|
+
)
|
|
261
|
+
|
|
262
|
+
@cached_property
|
|
263
|
+
def speak(self) -> AsyncSpeakResourceWithRawResponse:
|
|
264
|
+
return AsyncSpeakResourceWithRawResponse(self._v1.speak)
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
class V1ResourceWithStreamingResponse:
|
|
268
|
+
def __init__(self, v1: V1Resource) -> None:
|
|
269
|
+
self._v1 = v1
|
|
270
|
+
|
|
271
|
+
self.list_voices = to_streamed_response_wrapper(
|
|
272
|
+
v1.list_voices,
|
|
273
|
+
)
|
|
274
|
+
|
|
275
|
+
@cached_property
|
|
276
|
+
def speak(self) -> SpeakResourceWithStreamingResponse:
|
|
277
|
+
return SpeakResourceWithStreamingResponse(self._v1.speak)
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
class AsyncV1ResourceWithStreamingResponse:
|
|
281
|
+
def __init__(self, v1: AsyncV1Resource) -> None:
|
|
282
|
+
self._v1 = v1
|
|
283
|
+
|
|
284
|
+
self.list_voices = async_to_streamed_response_wrapper(
|
|
285
|
+
v1.list_voices,
|
|
286
|
+
)
|
|
287
|
+
|
|
288
|
+
@cached_property
|
|
289
|
+
def speak(self) -> AsyncSpeakResourceWithStreamingResponse:
|
|
290
|
+
return AsyncSpeakResourceWithStreamingResponse(self._v1.speak)
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .v1.v1 import (
|
|
6
|
+
V1Resource,
|
|
7
|
+
AsyncV1Resource,
|
|
8
|
+
V1ResourceWithRawResponse,
|
|
9
|
+
AsyncV1ResourceWithRawResponse,
|
|
10
|
+
V1ResourceWithStreamingResponse,
|
|
11
|
+
AsyncV1ResourceWithStreamingResponse,
|
|
12
|
+
)
|
|
13
|
+
from ..._compat import cached_property
|
|
14
|
+
from .streaming import (
|
|
15
|
+
StreamingResource,
|
|
16
|
+
AsyncStreamingResource,
|
|
17
|
+
StreamingResourceWithRawResponse,
|
|
18
|
+
AsyncStreamingResourceWithRawResponse,
|
|
19
|
+
StreamingResourceWithStreamingResponse,
|
|
20
|
+
AsyncStreamingResourceWithStreamingResponse,
|
|
21
|
+
)
|
|
22
|
+
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
23
|
+
from .transcription import (
|
|
24
|
+
TranscriptionResource,
|
|
25
|
+
AsyncTranscriptionResource,
|
|
26
|
+
TranscriptionResourceWithRawResponse,
|
|
27
|
+
AsyncTranscriptionResourceWithRawResponse,
|
|
28
|
+
TranscriptionResourceWithStreamingResponse,
|
|
29
|
+
AsyncTranscriptionResourceWithStreamingResponse,
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
__all__ = ["VoiceResource", "AsyncVoiceResource"]
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class VoiceResource(SyncAPIResource):
|
|
36
|
+
@cached_property
|
|
37
|
+
def streaming(self) -> StreamingResource:
|
|
38
|
+
return StreamingResource(self._client)
|
|
39
|
+
|
|
40
|
+
@cached_property
|
|
41
|
+
def transcription(self) -> TranscriptionResource:
|
|
42
|
+
return TranscriptionResource(self._client)
|
|
43
|
+
|
|
44
|
+
@cached_property
|
|
45
|
+
def v1(self) -> V1Resource:
|
|
46
|
+
return V1Resource(self._client)
|
|
47
|
+
|
|
48
|
+
@cached_property
|
|
49
|
+
def with_raw_response(self) -> VoiceResourceWithRawResponse:
|
|
50
|
+
"""
|
|
51
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
52
|
+
the raw response object instead of the parsed content.
|
|
53
|
+
|
|
54
|
+
For more information, see https://www.github.com/CaseMark/casedev-python#accessing-raw-response-data-eg-headers
|
|
55
|
+
"""
|
|
56
|
+
return VoiceResourceWithRawResponse(self)
|
|
57
|
+
|
|
58
|
+
@cached_property
|
|
59
|
+
def with_streaming_response(self) -> VoiceResourceWithStreamingResponse:
|
|
60
|
+
"""
|
|
61
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
62
|
+
|
|
63
|
+
For more information, see https://www.github.com/CaseMark/casedev-python#with_streaming_response
|
|
64
|
+
"""
|
|
65
|
+
return VoiceResourceWithStreamingResponse(self)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class AsyncVoiceResource(AsyncAPIResource):
|
|
69
|
+
@cached_property
|
|
70
|
+
def streaming(self) -> AsyncStreamingResource:
|
|
71
|
+
return AsyncStreamingResource(self._client)
|
|
72
|
+
|
|
73
|
+
@cached_property
|
|
74
|
+
def transcription(self) -> AsyncTranscriptionResource:
|
|
75
|
+
return AsyncTranscriptionResource(self._client)
|
|
76
|
+
|
|
77
|
+
@cached_property
|
|
78
|
+
def v1(self) -> AsyncV1Resource:
|
|
79
|
+
return AsyncV1Resource(self._client)
|
|
80
|
+
|
|
81
|
+
@cached_property
|
|
82
|
+
def with_raw_response(self) -> AsyncVoiceResourceWithRawResponse:
|
|
83
|
+
"""
|
|
84
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
85
|
+
the raw response object instead of the parsed content.
|
|
86
|
+
|
|
87
|
+
For more information, see https://www.github.com/CaseMark/casedev-python#accessing-raw-response-data-eg-headers
|
|
88
|
+
"""
|
|
89
|
+
return AsyncVoiceResourceWithRawResponse(self)
|
|
90
|
+
|
|
91
|
+
@cached_property
|
|
92
|
+
def with_streaming_response(self) -> AsyncVoiceResourceWithStreamingResponse:
|
|
93
|
+
"""
|
|
94
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
95
|
+
|
|
96
|
+
For more information, see https://www.github.com/CaseMark/casedev-python#with_streaming_response
|
|
97
|
+
"""
|
|
98
|
+
return AsyncVoiceResourceWithStreamingResponse(self)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
class VoiceResourceWithRawResponse:
|
|
102
|
+
def __init__(self, voice: VoiceResource) -> None:
|
|
103
|
+
self._voice = voice
|
|
104
|
+
|
|
105
|
+
@cached_property
|
|
106
|
+
def streaming(self) -> StreamingResourceWithRawResponse:
|
|
107
|
+
return StreamingResourceWithRawResponse(self._voice.streaming)
|
|
108
|
+
|
|
109
|
+
@cached_property
|
|
110
|
+
def transcription(self) -> TranscriptionResourceWithRawResponse:
|
|
111
|
+
return TranscriptionResourceWithRawResponse(self._voice.transcription)
|
|
112
|
+
|
|
113
|
+
@cached_property
|
|
114
|
+
def v1(self) -> V1ResourceWithRawResponse:
|
|
115
|
+
return V1ResourceWithRawResponse(self._voice.v1)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
class AsyncVoiceResourceWithRawResponse:
|
|
119
|
+
def __init__(self, voice: AsyncVoiceResource) -> None:
|
|
120
|
+
self._voice = voice
|
|
121
|
+
|
|
122
|
+
@cached_property
|
|
123
|
+
def streaming(self) -> AsyncStreamingResourceWithRawResponse:
|
|
124
|
+
return AsyncStreamingResourceWithRawResponse(self._voice.streaming)
|
|
125
|
+
|
|
126
|
+
@cached_property
|
|
127
|
+
def transcription(self) -> AsyncTranscriptionResourceWithRawResponse:
|
|
128
|
+
return AsyncTranscriptionResourceWithRawResponse(self._voice.transcription)
|
|
129
|
+
|
|
130
|
+
@cached_property
|
|
131
|
+
def v1(self) -> AsyncV1ResourceWithRawResponse:
|
|
132
|
+
return AsyncV1ResourceWithRawResponse(self._voice.v1)
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
class VoiceResourceWithStreamingResponse:
|
|
136
|
+
def __init__(self, voice: VoiceResource) -> None:
|
|
137
|
+
self._voice = voice
|
|
138
|
+
|
|
139
|
+
@cached_property
|
|
140
|
+
def streaming(self) -> StreamingResourceWithStreamingResponse:
|
|
141
|
+
return StreamingResourceWithStreamingResponse(self._voice.streaming)
|
|
142
|
+
|
|
143
|
+
@cached_property
|
|
144
|
+
def transcription(self) -> TranscriptionResourceWithStreamingResponse:
|
|
145
|
+
return TranscriptionResourceWithStreamingResponse(self._voice.transcription)
|
|
146
|
+
|
|
147
|
+
@cached_property
|
|
148
|
+
def v1(self) -> V1ResourceWithStreamingResponse:
|
|
149
|
+
return V1ResourceWithStreamingResponse(self._voice.v1)
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
class AsyncVoiceResourceWithStreamingResponse:
|
|
153
|
+
def __init__(self, voice: AsyncVoiceResource) -> None:
|
|
154
|
+
self._voice = voice
|
|
155
|
+
|
|
156
|
+
@cached_property
|
|
157
|
+
def streaming(self) -> AsyncStreamingResourceWithStreamingResponse:
|
|
158
|
+
return AsyncStreamingResourceWithStreamingResponse(self._voice.streaming)
|
|
159
|
+
|
|
160
|
+
@cached_property
|
|
161
|
+
def transcription(self) -> AsyncTranscriptionResourceWithStreamingResponse:
|
|
162
|
+
return AsyncTranscriptionResourceWithStreamingResponse(self._voice.transcription)
|
|
163
|
+
|
|
164
|
+
@cached_property
|
|
165
|
+
def v1(self) -> AsyncV1ResourceWithStreamingResponse:
|
|
166
|
+
return AsyncV1ResourceWithStreamingResponse(self._voice.v1)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .v1 import (
|
|
4
|
+
V1Resource,
|
|
5
|
+
AsyncV1Resource,
|
|
6
|
+
V1ResourceWithRawResponse,
|
|
7
|
+
AsyncV1ResourceWithRawResponse,
|
|
8
|
+
V1ResourceWithStreamingResponse,
|
|
9
|
+
AsyncV1ResourceWithStreamingResponse,
|
|
10
|
+
)
|
|
11
|
+
from .webhooks import (
|
|
12
|
+
WebhooksResource,
|
|
13
|
+
AsyncWebhooksResource,
|
|
14
|
+
WebhooksResourceWithRawResponse,
|
|
15
|
+
AsyncWebhooksResourceWithRawResponse,
|
|
16
|
+
WebhooksResourceWithStreamingResponse,
|
|
17
|
+
AsyncWebhooksResourceWithStreamingResponse,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
"V1Resource",
|
|
22
|
+
"AsyncV1Resource",
|
|
23
|
+
"V1ResourceWithRawResponse",
|
|
24
|
+
"AsyncV1ResourceWithRawResponse",
|
|
25
|
+
"V1ResourceWithStreamingResponse",
|
|
26
|
+
"AsyncV1ResourceWithStreamingResponse",
|
|
27
|
+
"WebhooksResource",
|
|
28
|
+
"AsyncWebhooksResource",
|
|
29
|
+
"WebhooksResourceWithRawResponse",
|
|
30
|
+
"AsyncWebhooksResourceWithRawResponse",
|
|
31
|
+
"WebhooksResourceWithStreamingResponse",
|
|
32
|
+
"AsyncWebhooksResourceWithStreamingResponse",
|
|
33
|
+
]
|