casedev 0.1.0__py3-none-any.whl → 0.2.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/_base_client.py +140 -11
- casedev/_client.py +290 -119
- casedev/_models.py +16 -1
- casedev/_types.py +12 -2
- casedev/_version.py +1 -1
- casedev/resources/__init__.py +0 -70
- casedev/resources/compute/v1/__init__.py +0 -42
- casedev/resources/compute/v1/environments.py +16 -19
- casedev/resources/compute/v1/secrets.py +35 -41
- casedev/resources/compute/v1/v1.py +14 -276
- casedev/resources/format/v1/templates.py +11 -13
- casedev/resources/llm/llm.py +6 -7
- casedev/resources/llm/v1/v1.py +11 -13
- casedev/resources/ocr/v1.py +10 -13
- casedev/resources/search/v1.py +6 -7
- casedev/resources/vault/graphrag.py +11 -13
- casedev/resources/vault/objects.py +20 -25
- casedev/resources/vault/vault.py +64 -28
- casedev/resources/voice/streaming.py +6 -7
- casedev/resources/voice/transcription.py +82 -23
- casedev/resources/voice/v1/speak.py +1 -195
- casedev/resources/voice/v1/v1.py +6 -7
- casedev/types/__init__.py +2 -0
- casedev/types/compute/__init__.py +1 -2
- casedev/types/compute/v1/__init__.py +7 -5
- casedev/types/compute/v1/environment_list_response.py +40 -0
- casedev/types/compute/v1/environment_retrieve_response.py +36 -0
- casedev/types/compute/v1/environment_set_default_response.py +36 -0
- casedev/types/{convert/v1_webhook_response.py → compute/v1/secret_delete_group_response.py} +3 -3
- casedev/types/compute/v1/secret_list_response.py +31 -0
- casedev/types/compute/v1/secret_retrieve_group_response.py +38 -0
- casedev/types/compute/v1/secret_update_group_response.py +22 -0
- casedev/types/compute/v1_get_usage_response.py +51 -0
- casedev/types/format/v1/__init__.py +2 -0
- casedev/types/format/v1/template_list_response.py +40 -0
- casedev/types/format/v1/template_retrieve_response.py +33 -0
- casedev/types/llm/__init__.py +2 -0
- casedev/types/llm/v1_create_embedding_response.py +31 -0
- casedev/types/llm/v1_list_models_response.py +41 -0
- casedev/types/llm_get_config_response.py +33 -0
- casedev/types/ocr/__init__.py +2 -0
- casedev/types/ocr/v1_download_response.py +7 -0
- casedev/types/ocr/v1_process_params.py +2 -0
- casedev/types/ocr/v1_retrieve_response.py +32 -0
- casedev/types/search/__init__.py +1 -0
- casedev/types/search/v1_retrieve_research_response.py +74 -0
- casedev/types/vault/__init__.py +6 -0
- casedev/types/vault/graphrag_get_stats_response.py +31 -0
- casedev/types/{workflows/v1_delete_response.py → vault/graphrag_init_response.py} +6 -2
- casedev/types/vault/object_download_response.py +7 -0
- casedev/types/vault/object_get_text_response.py +35 -0
- casedev/types/vault/object_list_response.py +64 -0
- casedev/types/vault/object_retrieve_response.py +57 -0
- casedev/types/vault_create_params.py +16 -1
- casedev/types/vault_create_response.py +5 -2
- casedev/types/vault_ingest_response.py +15 -5
- casedev/types/vault_retrieve_response.py +76 -0
- casedev/types/vault_search_params.py +19 -5
- casedev/types/vault_search_response.py +25 -1
- casedev/types/vault_upload_params.py +7 -0
- casedev/types/vault_upload_response.py +6 -0
- casedev/types/voice/__init__.py +3 -0
- casedev/types/voice/streaming_get_url_response.py +44 -0
- casedev/types/voice/transcription_create_params.py +23 -3
- casedev/types/voice/transcription_create_response.py +22 -0
- casedev/types/voice/transcription_retrieve_response.py +19 -17
- casedev/types/voice/v1/__init__.py +0 -1
- casedev/types/voice/v1/speak_create_params.py +2 -0
- casedev/types/voice/v1_list_voices_response.py +40 -0
- casedev/types/webhooks/__init__.py +0 -3
- {casedev-0.1.0.dist-info → casedev-0.2.0.dist-info}/METADATA +10 -13
- casedev-0.2.0.dist-info/RECORD +149 -0
- {casedev-0.1.0.dist-info → casedev-0.2.0.dist-info}/licenses/LICENSE +1 -1
- casedev/resources/actions/__init__.py +0 -33
- casedev/resources/actions/actions.py +0 -102
- casedev/resources/actions/v1.py +0 -640
- casedev/resources/compute/v1/functions.py +0 -278
- casedev/resources/compute/v1/invoke.py +0 -216
- casedev/resources/compute/v1/runs.py +0 -290
- casedev/resources/convert/__init__.py +0 -33
- casedev/resources/convert/convert.py +0 -102
- casedev/resources/convert/v1/__init__.py +0 -33
- casedev/resources/convert/v1/jobs.py +0 -254
- casedev/resources/convert/v1/v1.py +0 -450
- casedev/resources/templates/__init__.py +0 -33
- casedev/resources/templates/templates.py +0 -102
- casedev/resources/templates/v1.py +0 -633
- casedev/resources/webhooks/__init__.py +0 -33
- casedev/resources/webhooks/v1.py +0 -447
- casedev/resources/webhooks/webhooks.py +0 -102
- casedev/resources/workflows/__init__.py +0 -33
- casedev/resources/workflows/v1.py +0 -1053
- casedev/resources/workflows/workflows.py +0 -102
- casedev/types/actions/__init__.py +0 -8
- casedev/types/actions/v1_create_params.py +0 -22
- casedev/types/actions/v1_create_response.py +0 -33
- casedev/types/actions/v1_execute_params.py +0 -16
- casedev/types/actions/v1_execute_response.py +0 -31
- casedev/types/compute/v1/function_get_logs_params.py +0 -12
- casedev/types/compute/v1/function_list_params.py +0 -12
- casedev/types/compute/v1/invoke_run_params.py +0 -21
- casedev/types/compute/v1/invoke_run_response.py +0 -39
- casedev/types/compute/v1/run_list_params.py +0 -18
- casedev/types/compute/v1_deploy_params.py +0 -114
- casedev/types/compute/v1_deploy_response.py +0 -30
- casedev/types/convert/__init__.py +0 -8
- casedev/types/convert/v1/__init__.py +0 -3
- casedev/types/convert/v1_process_params.py +0 -15
- casedev/types/convert/v1_process_response.py +0 -19
- casedev/types/convert/v1_webhook_params.py +0 -32
- casedev/types/templates/__init__.py +0 -8
- casedev/types/templates/v1_execute_params.py +0 -22
- casedev/types/templates/v1_execute_response.py +0 -31
- casedev/types/templates/v1_list_params.py +0 -32
- casedev/types/templates/v1_search_params.py +0 -18
- casedev/types/voice/v1/speak_stream_params.py +0 -58
- casedev/types/webhooks/v1_create_params.py +0 -20
- casedev/types/webhooks/v1_create_response.py +0 -33
- casedev/types/workflows/__init__.py +0 -19
- casedev/types/workflows/v1_create_params.py +0 -32
- casedev/types/workflows/v1_create_response.py +0 -29
- casedev/types/workflows/v1_deploy_response.py +0 -20
- casedev/types/workflows/v1_execute_params.py +0 -12
- casedev/types/workflows/v1_execute_response.py +0 -22
- casedev/types/workflows/v1_list_executions_params.py +0 -13
- casedev/types/workflows/v1_list_executions_response.py +0 -27
- casedev/types/workflows/v1_list_params.py +0 -18
- casedev/types/workflows/v1_list_response.py +0 -37
- casedev/types/workflows/v1_retrieve_execution_response.py +0 -31
- casedev/types/workflows/v1_retrieve_response.py +0 -35
- casedev/types/workflows/v1_undeploy_response.py +0 -13
- casedev/types/workflows/v1_update_params.py +0 -26
- casedev/types/workflows/v1_update_response.py +0 -17
- casedev-0.1.0.dist-info/RECORD +0 -185
- {casedev-0.1.0.dist-info → casedev-0.2.0.dist-info}/WHEEL +0 -0
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
import httpx
|
|
6
|
-
|
|
7
|
-
from ...._types import Body, Omit, Query, Headers, NoneType, NotGiven, omit, not_given
|
|
8
|
-
from ...._utils import maybe_transform, async_maybe_transform
|
|
9
|
-
from ...._compat import cached_property
|
|
10
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
11
|
-
from ...._response import (
|
|
12
|
-
to_raw_response_wrapper,
|
|
13
|
-
to_streamed_response_wrapper,
|
|
14
|
-
async_to_raw_response_wrapper,
|
|
15
|
-
async_to_streamed_response_wrapper,
|
|
16
|
-
)
|
|
17
|
-
from ...._base_client import make_request_options
|
|
18
|
-
from ....types.compute.v1 import run_list_params
|
|
19
|
-
|
|
20
|
-
__all__ = ["RunsResource", "AsyncRunsResource"]
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class RunsResource(SyncAPIResource):
|
|
24
|
-
@cached_property
|
|
25
|
-
def with_raw_response(self) -> RunsResourceWithRawResponse:
|
|
26
|
-
"""
|
|
27
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
28
|
-
the raw response object instead of the parsed content.
|
|
29
|
-
|
|
30
|
-
For more information, see https://www.github.com/CaseMark/casedev-python#accessing-raw-response-data-eg-headers
|
|
31
|
-
"""
|
|
32
|
-
return RunsResourceWithRawResponse(self)
|
|
33
|
-
|
|
34
|
-
@cached_property
|
|
35
|
-
def with_streaming_response(self) -> RunsResourceWithStreamingResponse:
|
|
36
|
-
"""
|
|
37
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
38
|
-
|
|
39
|
-
For more information, see https://www.github.com/CaseMark/casedev-python#with_streaming_response
|
|
40
|
-
"""
|
|
41
|
-
return RunsResourceWithStreamingResponse(self)
|
|
42
|
-
|
|
43
|
-
def retrieve(
|
|
44
|
-
self,
|
|
45
|
-
id: str,
|
|
46
|
-
*,
|
|
47
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
48
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
49
|
-
extra_headers: Headers | None = None,
|
|
50
|
-
extra_query: Query | None = None,
|
|
51
|
-
extra_body: Body | None = None,
|
|
52
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
53
|
-
) -> None:
|
|
54
|
-
"""
|
|
55
|
-
Retrieve detailed information about a specific compute function run, including
|
|
56
|
-
execution status, input/output data, resource usage metrics, and cost
|
|
57
|
-
information.
|
|
58
|
-
|
|
59
|
-
Args:
|
|
60
|
-
extra_headers: Send extra headers
|
|
61
|
-
|
|
62
|
-
extra_query: Add additional query parameters to the request
|
|
63
|
-
|
|
64
|
-
extra_body: Add additional JSON properties to the request
|
|
65
|
-
|
|
66
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
67
|
-
"""
|
|
68
|
-
if not id:
|
|
69
|
-
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
70
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
71
|
-
return self._get(
|
|
72
|
-
f"/compute/v1/runs/{id}",
|
|
73
|
-
options=make_request_options(
|
|
74
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
75
|
-
),
|
|
76
|
-
cast_to=NoneType,
|
|
77
|
-
)
|
|
78
|
-
|
|
79
|
-
def list(
|
|
80
|
-
self,
|
|
81
|
-
*,
|
|
82
|
-
env: str | Omit = omit,
|
|
83
|
-
function: str | Omit = omit,
|
|
84
|
-
limit: int | Omit = omit,
|
|
85
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
86
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
87
|
-
extra_headers: Headers | None = None,
|
|
88
|
-
extra_query: Query | None = None,
|
|
89
|
-
extra_body: Body | None = None,
|
|
90
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
91
|
-
) -> None:
|
|
92
|
-
"""Retrieve a list of recent compute runs for your organization.
|
|
93
|
-
|
|
94
|
-
Filter by
|
|
95
|
-
environment or function, and limit the number of results returned. Useful for
|
|
96
|
-
monitoring serverless function executions and tracking performance metrics.
|
|
97
|
-
|
|
98
|
-
Args:
|
|
99
|
-
env: Environment name to filter runs by
|
|
100
|
-
|
|
101
|
-
function: Function name to filter runs by
|
|
102
|
-
|
|
103
|
-
limit: Maximum number of runs to return (1-100, default: 50)
|
|
104
|
-
|
|
105
|
-
extra_headers: Send extra headers
|
|
106
|
-
|
|
107
|
-
extra_query: Add additional query parameters to the request
|
|
108
|
-
|
|
109
|
-
extra_body: Add additional JSON properties to the request
|
|
110
|
-
|
|
111
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
112
|
-
"""
|
|
113
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
114
|
-
return self._get(
|
|
115
|
-
"/compute/v1/runs",
|
|
116
|
-
options=make_request_options(
|
|
117
|
-
extra_headers=extra_headers,
|
|
118
|
-
extra_query=extra_query,
|
|
119
|
-
extra_body=extra_body,
|
|
120
|
-
timeout=timeout,
|
|
121
|
-
query=maybe_transform(
|
|
122
|
-
{
|
|
123
|
-
"env": env,
|
|
124
|
-
"function": function,
|
|
125
|
-
"limit": limit,
|
|
126
|
-
},
|
|
127
|
-
run_list_params.RunListParams,
|
|
128
|
-
),
|
|
129
|
-
),
|
|
130
|
-
cast_to=NoneType,
|
|
131
|
-
)
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
class AsyncRunsResource(AsyncAPIResource):
|
|
135
|
-
@cached_property
|
|
136
|
-
def with_raw_response(self) -> AsyncRunsResourceWithRawResponse:
|
|
137
|
-
"""
|
|
138
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
139
|
-
the raw response object instead of the parsed content.
|
|
140
|
-
|
|
141
|
-
For more information, see https://www.github.com/CaseMark/casedev-python#accessing-raw-response-data-eg-headers
|
|
142
|
-
"""
|
|
143
|
-
return AsyncRunsResourceWithRawResponse(self)
|
|
144
|
-
|
|
145
|
-
@cached_property
|
|
146
|
-
def with_streaming_response(self) -> AsyncRunsResourceWithStreamingResponse:
|
|
147
|
-
"""
|
|
148
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
149
|
-
|
|
150
|
-
For more information, see https://www.github.com/CaseMark/casedev-python#with_streaming_response
|
|
151
|
-
"""
|
|
152
|
-
return AsyncRunsResourceWithStreamingResponse(self)
|
|
153
|
-
|
|
154
|
-
async def retrieve(
|
|
155
|
-
self,
|
|
156
|
-
id: str,
|
|
157
|
-
*,
|
|
158
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
159
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
160
|
-
extra_headers: Headers | None = None,
|
|
161
|
-
extra_query: Query | None = None,
|
|
162
|
-
extra_body: Body | None = None,
|
|
163
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
164
|
-
) -> None:
|
|
165
|
-
"""
|
|
166
|
-
Retrieve detailed information about a specific compute function run, including
|
|
167
|
-
execution status, input/output data, resource usage metrics, and cost
|
|
168
|
-
information.
|
|
169
|
-
|
|
170
|
-
Args:
|
|
171
|
-
extra_headers: Send extra headers
|
|
172
|
-
|
|
173
|
-
extra_query: Add additional query parameters to the request
|
|
174
|
-
|
|
175
|
-
extra_body: Add additional JSON properties to the request
|
|
176
|
-
|
|
177
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
178
|
-
"""
|
|
179
|
-
if not id:
|
|
180
|
-
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
181
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
182
|
-
return await self._get(
|
|
183
|
-
f"/compute/v1/runs/{id}",
|
|
184
|
-
options=make_request_options(
|
|
185
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
186
|
-
),
|
|
187
|
-
cast_to=NoneType,
|
|
188
|
-
)
|
|
189
|
-
|
|
190
|
-
async def list(
|
|
191
|
-
self,
|
|
192
|
-
*,
|
|
193
|
-
env: str | Omit = omit,
|
|
194
|
-
function: str | Omit = omit,
|
|
195
|
-
limit: int | Omit = omit,
|
|
196
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
197
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
198
|
-
extra_headers: Headers | None = None,
|
|
199
|
-
extra_query: Query | None = None,
|
|
200
|
-
extra_body: Body | None = None,
|
|
201
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
202
|
-
) -> None:
|
|
203
|
-
"""Retrieve a list of recent compute runs for your organization.
|
|
204
|
-
|
|
205
|
-
Filter by
|
|
206
|
-
environment or function, and limit the number of results returned. Useful for
|
|
207
|
-
monitoring serverless function executions and tracking performance metrics.
|
|
208
|
-
|
|
209
|
-
Args:
|
|
210
|
-
env: Environment name to filter runs by
|
|
211
|
-
|
|
212
|
-
function: Function name to filter runs by
|
|
213
|
-
|
|
214
|
-
limit: Maximum number of runs to return (1-100, default: 50)
|
|
215
|
-
|
|
216
|
-
extra_headers: Send extra headers
|
|
217
|
-
|
|
218
|
-
extra_query: Add additional query parameters to the request
|
|
219
|
-
|
|
220
|
-
extra_body: Add additional JSON properties to the request
|
|
221
|
-
|
|
222
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
223
|
-
"""
|
|
224
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
225
|
-
return await self._get(
|
|
226
|
-
"/compute/v1/runs",
|
|
227
|
-
options=make_request_options(
|
|
228
|
-
extra_headers=extra_headers,
|
|
229
|
-
extra_query=extra_query,
|
|
230
|
-
extra_body=extra_body,
|
|
231
|
-
timeout=timeout,
|
|
232
|
-
query=await async_maybe_transform(
|
|
233
|
-
{
|
|
234
|
-
"env": env,
|
|
235
|
-
"function": function,
|
|
236
|
-
"limit": limit,
|
|
237
|
-
},
|
|
238
|
-
run_list_params.RunListParams,
|
|
239
|
-
),
|
|
240
|
-
),
|
|
241
|
-
cast_to=NoneType,
|
|
242
|
-
)
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
class RunsResourceWithRawResponse:
|
|
246
|
-
def __init__(self, runs: RunsResource) -> None:
|
|
247
|
-
self._runs = runs
|
|
248
|
-
|
|
249
|
-
self.retrieve = to_raw_response_wrapper(
|
|
250
|
-
runs.retrieve,
|
|
251
|
-
)
|
|
252
|
-
self.list = to_raw_response_wrapper(
|
|
253
|
-
runs.list,
|
|
254
|
-
)
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
class AsyncRunsResourceWithRawResponse:
|
|
258
|
-
def __init__(self, runs: AsyncRunsResource) -> None:
|
|
259
|
-
self._runs = runs
|
|
260
|
-
|
|
261
|
-
self.retrieve = async_to_raw_response_wrapper(
|
|
262
|
-
runs.retrieve,
|
|
263
|
-
)
|
|
264
|
-
self.list = async_to_raw_response_wrapper(
|
|
265
|
-
runs.list,
|
|
266
|
-
)
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
class RunsResourceWithStreamingResponse:
|
|
270
|
-
def __init__(self, runs: RunsResource) -> None:
|
|
271
|
-
self._runs = runs
|
|
272
|
-
|
|
273
|
-
self.retrieve = to_streamed_response_wrapper(
|
|
274
|
-
runs.retrieve,
|
|
275
|
-
)
|
|
276
|
-
self.list = to_streamed_response_wrapper(
|
|
277
|
-
runs.list,
|
|
278
|
-
)
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
class AsyncRunsResourceWithStreamingResponse:
|
|
282
|
-
def __init__(self, runs: AsyncRunsResource) -> None:
|
|
283
|
-
self._runs = runs
|
|
284
|
-
|
|
285
|
-
self.retrieve = async_to_streamed_response_wrapper(
|
|
286
|
-
runs.retrieve,
|
|
287
|
-
)
|
|
288
|
-
self.list = async_to_streamed_response_wrapper(
|
|
289
|
-
runs.list,
|
|
290
|
-
)
|
|
@@ -1,33 +0,0 @@
|
|
|
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 .convert import (
|
|
12
|
-
ConvertResource,
|
|
13
|
-
AsyncConvertResource,
|
|
14
|
-
ConvertResourceWithRawResponse,
|
|
15
|
-
AsyncConvertResourceWithRawResponse,
|
|
16
|
-
ConvertResourceWithStreamingResponse,
|
|
17
|
-
AsyncConvertResourceWithStreamingResponse,
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
__all__ = [
|
|
21
|
-
"V1Resource",
|
|
22
|
-
"AsyncV1Resource",
|
|
23
|
-
"V1ResourceWithRawResponse",
|
|
24
|
-
"AsyncV1ResourceWithRawResponse",
|
|
25
|
-
"V1ResourceWithStreamingResponse",
|
|
26
|
-
"AsyncV1ResourceWithStreamingResponse",
|
|
27
|
-
"ConvertResource",
|
|
28
|
-
"AsyncConvertResource",
|
|
29
|
-
"ConvertResourceWithRawResponse",
|
|
30
|
-
"AsyncConvertResourceWithRawResponse",
|
|
31
|
-
"ConvertResourceWithStreamingResponse",
|
|
32
|
-
"AsyncConvertResourceWithStreamingResponse",
|
|
33
|
-
]
|
|
@@ -1,102 +0,0 @@
|
|
|
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 ..._resource import SyncAPIResource, AsyncAPIResource
|
|
15
|
-
|
|
16
|
-
__all__ = ["ConvertResource", "AsyncConvertResource"]
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class ConvertResource(SyncAPIResource):
|
|
20
|
-
@cached_property
|
|
21
|
-
def v1(self) -> V1Resource:
|
|
22
|
-
return V1Resource(self._client)
|
|
23
|
-
|
|
24
|
-
@cached_property
|
|
25
|
-
def with_raw_response(self) -> ConvertResourceWithRawResponse:
|
|
26
|
-
"""
|
|
27
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
28
|
-
the raw response object instead of the parsed content.
|
|
29
|
-
|
|
30
|
-
For more information, see https://www.github.com/CaseMark/casedev-python#accessing-raw-response-data-eg-headers
|
|
31
|
-
"""
|
|
32
|
-
return ConvertResourceWithRawResponse(self)
|
|
33
|
-
|
|
34
|
-
@cached_property
|
|
35
|
-
def with_streaming_response(self) -> ConvertResourceWithStreamingResponse:
|
|
36
|
-
"""
|
|
37
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
38
|
-
|
|
39
|
-
For more information, see https://www.github.com/CaseMark/casedev-python#with_streaming_response
|
|
40
|
-
"""
|
|
41
|
-
return ConvertResourceWithStreamingResponse(self)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
class AsyncConvertResource(AsyncAPIResource):
|
|
45
|
-
@cached_property
|
|
46
|
-
def v1(self) -> AsyncV1Resource:
|
|
47
|
-
return AsyncV1Resource(self._client)
|
|
48
|
-
|
|
49
|
-
@cached_property
|
|
50
|
-
def with_raw_response(self) -> AsyncConvertResourceWithRawResponse:
|
|
51
|
-
"""
|
|
52
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
53
|
-
the raw response object instead of the parsed content.
|
|
54
|
-
|
|
55
|
-
For more information, see https://www.github.com/CaseMark/casedev-python#accessing-raw-response-data-eg-headers
|
|
56
|
-
"""
|
|
57
|
-
return AsyncConvertResourceWithRawResponse(self)
|
|
58
|
-
|
|
59
|
-
@cached_property
|
|
60
|
-
def with_streaming_response(self) -> AsyncConvertResourceWithStreamingResponse:
|
|
61
|
-
"""
|
|
62
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
63
|
-
|
|
64
|
-
For more information, see https://www.github.com/CaseMark/casedev-python#with_streaming_response
|
|
65
|
-
"""
|
|
66
|
-
return AsyncConvertResourceWithStreamingResponse(self)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
class ConvertResourceWithRawResponse:
|
|
70
|
-
def __init__(self, convert: ConvertResource) -> None:
|
|
71
|
-
self._convert = convert
|
|
72
|
-
|
|
73
|
-
@cached_property
|
|
74
|
-
def v1(self) -> V1ResourceWithRawResponse:
|
|
75
|
-
return V1ResourceWithRawResponse(self._convert.v1)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
class AsyncConvertResourceWithRawResponse:
|
|
79
|
-
def __init__(self, convert: AsyncConvertResource) -> None:
|
|
80
|
-
self._convert = convert
|
|
81
|
-
|
|
82
|
-
@cached_property
|
|
83
|
-
def v1(self) -> AsyncV1ResourceWithRawResponse:
|
|
84
|
-
return AsyncV1ResourceWithRawResponse(self._convert.v1)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
class ConvertResourceWithStreamingResponse:
|
|
88
|
-
def __init__(self, convert: ConvertResource) -> None:
|
|
89
|
-
self._convert = convert
|
|
90
|
-
|
|
91
|
-
@cached_property
|
|
92
|
-
def v1(self) -> V1ResourceWithStreamingResponse:
|
|
93
|
-
return V1ResourceWithStreamingResponse(self._convert.v1)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
class AsyncConvertResourceWithStreamingResponse:
|
|
97
|
-
def __init__(self, convert: AsyncConvertResource) -> None:
|
|
98
|
-
self._convert = convert
|
|
99
|
-
|
|
100
|
-
@cached_property
|
|
101
|
-
def v1(self) -> AsyncV1ResourceWithStreamingResponse:
|
|
102
|
-
return AsyncV1ResourceWithStreamingResponse(self._convert.v1)
|
|
@@ -1,33 +0,0 @@
|
|
|
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 .jobs import (
|
|
12
|
-
JobsResource,
|
|
13
|
-
AsyncJobsResource,
|
|
14
|
-
JobsResourceWithRawResponse,
|
|
15
|
-
AsyncJobsResourceWithRawResponse,
|
|
16
|
-
JobsResourceWithStreamingResponse,
|
|
17
|
-
AsyncJobsResourceWithStreamingResponse,
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
__all__ = [
|
|
21
|
-
"JobsResource",
|
|
22
|
-
"AsyncJobsResource",
|
|
23
|
-
"JobsResourceWithRawResponse",
|
|
24
|
-
"AsyncJobsResourceWithRawResponse",
|
|
25
|
-
"JobsResourceWithStreamingResponse",
|
|
26
|
-
"AsyncJobsResourceWithStreamingResponse",
|
|
27
|
-
"V1Resource",
|
|
28
|
-
"AsyncV1Resource",
|
|
29
|
-
"V1ResourceWithRawResponse",
|
|
30
|
-
"AsyncV1ResourceWithRawResponse",
|
|
31
|
-
"V1ResourceWithStreamingResponse",
|
|
32
|
-
"AsyncV1ResourceWithStreamingResponse",
|
|
33
|
-
]
|