studyfetch-sdk 0.1.0a19__py3-none-any.whl → 0.1.0a21__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.
- studyfetch_sdk/_models.py +23 -2
- studyfetch_sdk/_version.py +1 -1
- studyfetch_sdk/resources/v1/__init__.py +6 -104
- studyfetch_sdk/resources/v1/chat.py +246 -0
- studyfetch_sdk/resources/v1/materials/materials.py +304 -0
- studyfetch_sdk/resources/v1/materials/upload.py +30 -14
- studyfetch_sdk/resources/v1/v1.py +20 -244
- studyfetch_sdk/types/v1/__init__.py +3 -22
- studyfetch_sdk/types/v1/chat_stream_params.py +39 -7
- studyfetch_sdk/types/v1/component_create_params.py +24 -0
- studyfetch_sdk/types/v1/component_generate_embed_params.py +7 -1
- studyfetch_sdk/types/v1/generated_material.py +65 -0
- studyfetch_sdk/types/v1/material_generate_and_process_params.py +38 -0
- studyfetch_sdk/types/v1/material_generate_params.py +32 -0
- studyfetch_sdk/types/v1/materials/upload_complete_upload_params.py +2 -5
- studyfetch_sdk/types/v1/materials/upload_create_presigned_url_params.py +3 -0
- studyfetch_sdk/types/v1/materials/upload_upload_file_and_process_params.py +4 -1
- studyfetch_sdk/types/v1/materials/upload_upload_file_params.py +3 -0
- {studyfetch_sdk-0.1.0a19.dist-info → studyfetch_sdk-0.1.0a21.dist-info}/METADATA +1 -1
- {studyfetch_sdk-0.1.0a19.dist-info → studyfetch_sdk-0.1.0a21.dist-info}/RECORD +22 -83
- studyfetch_sdk/resources/v1/audio_recaps/__init__.py +0 -33
- studyfetch_sdk/resources/v1/audio_recaps/audio_recaps.py +0 -328
- studyfetch_sdk/resources/v1/audio_recaps/sections.py +0 -250
- studyfetch_sdk/resources/v1/chat/__init__.py +0 -47
- studyfetch_sdk/resources/v1/chat/chat.py +0 -574
- studyfetch_sdk/resources/v1/chat/sessions.py +0 -222
- studyfetch_sdk/resources/v1/chat/test.py +0 -190
- studyfetch_sdk/resources/v1/data_analyst/__init__.py +0 -47
- studyfetch_sdk/resources/v1/data_analyst/data_analyst.py +0 -582
- studyfetch_sdk/resources/v1/data_analyst/sessions.py +0 -222
- studyfetch_sdk/resources/v1/data_analyst/test.py +0 -190
- studyfetch_sdk/resources/v1/explainers.py +0 -441
- studyfetch_sdk/resources/v1/flashcards.py +0 -783
- studyfetch_sdk/resources/v1/scenarios/__init__.py +0 -61
- studyfetch_sdk/resources/v1/scenarios/component.py +0 -426
- studyfetch_sdk/resources/v1/scenarios/scenarios.py +0 -936
- studyfetch_sdk/resources/v1/scenarios/sessions.py +0 -236
- studyfetch_sdk/resources/v1/scenarios/submissions/__init__.py +0 -33
- studyfetch_sdk/resources/v1/scenarios/submissions/submissions.py +0 -102
- studyfetch_sdk/resources/v1/scenarios/submissions/user.py +0 -210
- studyfetch_sdk/resources/v1/tests/__init__.py +0 -33
- studyfetch_sdk/resources/v1/tests/component.py +0 -160
- studyfetch_sdk/resources/v1/tests/tests.py +0 -682
- studyfetch_sdk/resources/v1/upload/__init__.py +0 -33
- studyfetch_sdk/resources/v1/upload/component.py +0 -572
- studyfetch_sdk/resources/v1/upload/upload.py +0 -102
- studyfetch_sdk/types/v1/audio_recaps/__init__.py +0 -3
- studyfetch_sdk/types/v1/chat/__init__.py +0 -5
- studyfetch_sdk/types/v1/chat/session_retrieve_params.py +0 -11
- studyfetch_sdk/types/v1/chat_get_session_params.py +0 -13
- studyfetch_sdk/types/v1/chat_send_message_params.py +0 -54
- studyfetch_sdk/types/v1/data_analyst/__init__.py +0 -5
- studyfetch_sdk/types/v1/data_analyst/session_retrieve_params.py +0 -11
- studyfetch_sdk/types/v1/data_analyst_retrieve_session_params.py +0 -13
- studyfetch_sdk/types/v1/data_analyst_send_message_params.py +0 -54
- studyfetch_sdk/types/v1/data_analyst_stream_params.py +0 -28
- studyfetch_sdk/types/v1/explainer_create_params.py +0 -45
- studyfetch_sdk/types/v1/explainer_handle_webhook_params.py +0 -53
- studyfetch_sdk/types/v1/flashcard_batch_process_params.py +0 -36
- studyfetch_sdk/types/v1/flashcard_batch_process_response.py +0 -39
- studyfetch_sdk/types/v1/flashcard_get_algorithm_response.py +0 -37
- studyfetch_sdk/types/v1/flashcard_get_all_params.py +0 -23
- studyfetch_sdk/types/v1/flashcard_get_due_params.py +0 -19
- studyfetch_sdk/types/v1/flashcard_get_stats_params.py +0 -17
- studyfetch_sdk/types/v1/flashcard_get_types_response.py +0 -14
- studyfetch_sdk/types/v1/flashcard_rate_params.py +0 -23
- studyfetch_sdk/types/v1/scenario_create_params.py +0 -48
- studyfetch_sdk/types/v1/scenario_submit_answer_params.py +0 -18
- studyfetch_sdk/types/v1/scenario_update_params.py +0 -45
- studyfetch_sdk/types/v1/scenarios/__init__.py +0 -5
- studyfetch_sdk/types/v1/scenarios/component_update_params.py +0 -45
- studyfetch_sdk/types/v1/scenarios/submissions/__init__.py +0 -3
- studyfetch_sdk/types/v1/test_create_params.py +0 -20
- studyfetch_sdk/types/v1/test_retake_params.py +0 -14
- studyfetch_sdk/types/v1/test_submit_answer_params.py +0 -20
- studyfetch_sdk/types/v1/test_submit_params.py +0 -14
- studyfetch_sdk/types/v1/tests/__init__.py +0 -3
- studyfetch_sdk/types/v1/upload/__init__.py +0 -11
- studyfetch_sdk/types/v1/upload/component_complete_upload_params.py +0 -20
- studyfetch_sdk/types/v1/upload/component_complete_upload_response.py +0 -16
- studyfetch_sdk/types/v1/upload/component_get_presigned_url_params.py +0 -23
- studyfetch_sdk/types/v1/upload/component_get_presigned_url_response.py +0 -15
- studyfetch_sdk/types/v1/upload/component_upload_file_params.py +0 -21
- studyfetch_sdk/types/v1/upload/component_upload_url_params.py +0 -23
- studyfetch_sdk/types/v1/upload/file_upload_response.py +0 -24
- {studyfetch_sdk-0.1.0a19.dist-info → studyfetch_sdk-0.1.0a21.dist-info}/WHEEL +0 -0
- {studyfetch_sdk-0.1.0a19.dist-info → studyfetch_sdk-0.1.0a21.dist-info}/licenses/LICENSE +0 -0
@@ -1,222 +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 NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
|
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.v1.data_analyst import session_retrieve_params
|
19
|
-
|
20
|
-
__all__ = ["SessionsResource", "AsyncSessionsResource"]
|
21
|
-
|
22
|
-
|
23
|
-
class SessionsResource(SyncAPIResource):
|
24
|
-
@cached_property
|
25
|
-
def with_raw_response(self) -> SessionsResourceWithRawResponse:
|
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/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
|
31
|
-
"""
|
32
|
-
return SessionsResourceWithRawResponse(self)
|
33
|
-
|
34
|
-
@cached_property
|
35
|
-
def with_streaming_response(self) -> SessionsResourceWithStreamingResponse:
|
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/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
|
40
|
-
"""
|
41
|
-
return SessionsResourceWithStreamingResponse(self)
|
42
|
-
|
43
|
-
def create(
|
44
|
-
self,
|
45
|
-
*,
|
46
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
47
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
48
|
-
extra_headers: Headers | None = None,
|
49
|
-
extra_query: Query | None = None,
|
50
|
-
extra_body: Body | None = None,
|
51
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
52
|
-
) -> None:
|
53
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
54
|
-
return self._post(
|
55
|
-
"/api/v1/data-analyst/sessions/create",
|
56
|
-
options=make_request_options(
|
57
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
58
|
-
),
|
59
|
-
cast_to=NoneType,
|
60
|
-
)
|
61
|
-
|
62
|
-
def retrieve(
|
63
|
-
self,
|
64
|
-
user_id: str,
|
65
|
-
*,
|
66
|
-
limit: str,
|
67
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
68
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
69
|
-
extra_headers: Headers | None = None,
|
70
|
-
extra_query: Query | None = None,
|
71
|
-
extra_body: Body | None = None,
|
72
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
73
|
-
) -> None:
|
74
|
-
"""
|
75
|
-
Args:
|
76
|
-
extra_headers: Send extra headers
|
77
|
-
|
78
|
-
extra_query: Add additional query parameters to the request
|
79
|
-
|
80
|
-
extra_body: Add additional JSON properties to the request
|
81
|
-
|
82
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
83
|
-
"""
|
84
|
-
if not user_id:
|
85
|
-
raise ValueError(f"Expected a non-empty value for `user_id` but received {user_id!r}")
|
86
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
87
|
-
return self._get(
|
88
|
-
f"/api/v1/data-analyst/sessions/{user_id}",
|
89
|
-
options=make_request_options(
|
90
|
-
extra_headers=extra_headers,
|
91
|
-
extra_query=extra_query,
|
92
|
-
extra_body=extra_body,
|
93
|
-
timeout=timeout,
|
94
|
-
query=maybe_transform({"limit": limit}, session_retrieve_params.SessionRetrieveParams),
|
95
|
-
),
|
96
|
-
cast_to=NoneType,
|
97
|
-
)
|
98
|
-
|
99
|
-
|
100
|
-
class AsyncSessionsResource(AsyncAPIResource):
|
101
|
-
@cached_property
|
102
|
-
def with_raw_response(self) -> AsyncSessionsResourceWithRawResponse:
|
103
|
-
"""
|
104
|
-
This property can be used as a prefix for any HTTP method call to return
|
105
|
-
the raw response object instead of the parsed content.
|
106
|
-
|
107
|
-
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
|
108
|
-
"""
|
109
|
-
return AsyncSessionsResourceWithRawResponse(self)
|
110
|
-
|
111
|
-
@cached_property
|
112
|
-
def with_streaming_response(self) -> AsyncSessionsResourceWithStreamingResponse:
|
113
|
-
"""
|
114
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
115
|
-
|
116
|
-
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
|
117
|
-
"""
|
118
|
-
return AsyncSessionsResourceWithStreamingResponse(self)
|
119
|
-
|
120
|
-
async def create(
|
121
|
-
self,
|
122
|
-
*,
|
123
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
124
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
125
|
-
extra_headers: Headers | None = None,
|
126
|
-
extra_query: Query | None = None,
|
127
|
-
extra_body: Body | None = None,
|
128
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
129
|
-
) -> None:
|
130
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
131
|
-
return await self._post(
|
132
|
-
"/api/v1/data-analyst/sessions/create",
|
133
|
-
options=make_request_options(
|
134
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
135
|
-
),
|
136
|
-
cast_to=NoneType,
|
137
|
-
)
|
138
|
-
|
139
|
-
async def retrieve(
|
140
|
-
self,
|
141
|
-
user_id: str,
|
142
|
-
*,
|
143
|
-
limit: str,
|
144
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
145
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
146
|
-
extra_headers: Headers | None = None,
|
147
|
-
extra_query: Query | None = None,
|
148
|
-
extra_body: Body | None = None,
|
149
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
150
|
-
) -> None:
|
151
|
-
"""
|
152
|
-
Args:
|
153
|
-
extra_headers: Send extra headers
|
154
|
-
|
155
|
-
extra_query: Add additional query parameters to the request
|
156
|
-
|
157
|
-
extra_body: Add additional JSON properties to the request
|
158
|
-
|
159
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
160
|
-
"""
|
161
|
-
if not user_id:
|
162
|
-
raise ValueError(f"Expected a non-empty value for `user_id` but received {user_id!r}")
|
163
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
164
|
-
return await self._get(
|
165
|
-
f"/api/v1/data-analyst/sessions/{user_id}",
|
166
|
-
options=make_request_options(
|
167
|
-
extra_headers=extra_headers,
|
168
|
-
extra_query=extra_query,
|
169
|
-
extra_body=extra_body,
|
170
|
-
timeout=timeout,
|
171
|
-
query=await async_maybe_transform({"limit": limit}, session_retrieve_params.SessionRetrieveParams),
|
172
|
-
),
|
173
|
-
cast_to=NoneType,
|
174
|
-
)
|
175
|
-
|
176
|
-
|
177
|
-
class SessionsResourceWithRawResponse:
|
178
|
-
def __init__(self, sessions: SessionsResource) -> None:
|
179
|
-
self._sessions = sessions
|
180
|
-
|
181
|
-
self.create = to_raw_response_wrapper(
|
182
|
-
sessions.create,
|
183
|
-
)
|
184
|
-
self.retrieve = to_raw_response_wrapper(
|
185
|
-
sessions.retrieve,
|
186
|
-
)
|
187
|
-
|
188
|
-
|
189
|
-
class AsyncSessionsResourceWithRawResponse:
|
190
|
-
def __init__(self, sessions: AsyncSessionsResource) -> None:
|
191
|
-
self._sessions = sessions
|
192
|
-
|
193
|
-
self.create = async_to_raw_response_wrapper(
|
194
|
-
sessions.create,
|
195
|
-
)
|
196
|
-
self.retrieve = async_to_raw_response_wrapper(
|
197
|
-
sessions.retrieve,
|
198
|
-
)
|
199
|
-
|
200
|
-
|
201
|
-
class SessionsResourceWithStreamingResponse:
|
202
|
-
def __init__(self, sessions: SessionsResource) -> None:
|
203
|
-
self._sessions = sessions
|
204
|
-
|
205
|
-
self.create = to_streamed_response_wrapper(
|
206
|
-
sessions.create,
|
207
|
-
)
|
208
|
-
self.retrieve = to_streamed_response_wrapper(
|
209
|
-
sessions.retrieve,
|
210
|
-
)
|
211
|
-
|
212
|
-
|
213
|
-
class AsyncSessionsResourceWithStreamingResponse:
|
214
|
-
def __init__(self, sessions: AsyncSessionsResource) -> None:
|
215
|
-
self._sessions = sessions
|
216
|
-
|
217
|
-
self.create = async_to_streamed_response_wrapper(
|
218
|
-
sessions.create,
|
219
|
-
)
|
220
|
-
self.retrieve = async_to_streamed_response_wrapper(
|
221
|
-
sessions.retrieve,
|
222
|
-
)
|
@@ -1,190 +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 NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
|
8
|
-
from ...._compat import cached_property
|
9
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
10
|
-
from ...._response import (
|
11
|
-
to_raw_response_wrapper,
|
12
|
-
to_streamed_response_wrapper,
|
13
|
-
async_to_raw_response_wrapper,
|
14
|
-
async_to_streamed_response_wrapper,
|
15
|
-
)
|
16
|
-
from ...._base_client import make_request_options
|
17
|
-
|
18
|
-
__all__ = ["TestResource", "AsyncTestResource"]
|
19
|
-
|
20
|
-
|
21
|
-
class TestResource(SyncAPIResource):
|
22
|
-
__test__ = False
|
23
|
-
|
24
|
-
@cached_property
|
25
|
-
def with_raw_response(self) -> TestResourceWithRawResponse:
|
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/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
|
31
|
-
"""
|
32
|
-
return TestResourceWithRawResponse(self)
|
33
|
-
|
34
|
-
@cached_property
|
35
|
-
def with_streaming_response(self) -> TestResourceWithStreamingResponse:
|
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/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
|
40
|
-
"""
|
41
|
-
return TestResourceWithStreamingResponse(self)
|
42
|
-
|
43
|
-
def upload_image(
|
44
|
-
self,
|
45
|
-
*,
|
46
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
47
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
48
|
-
extra_headers: Headers | None = None,
|
49
|
-
extra_query: Query | None = None,
|
50
|
-
extra_body: Body | None = None,
|
51
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
52
|
-
) -> None:
|
53
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
54
|
-
return self._post(
|
55
|
-
"/api/v1/data-analyst/test/image",
|
56
|
-
options=make_request_options(
|
57
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
58
|
-
),
|
59
|
-
cast_to=NoneType,
|
60
|
-
)
|
61
|
-
|
62
|
-
def upload_image_citation(
|
63
|
-
self,
|
64
|
-
*,
|
65
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
66
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
67
|
-
extra_headers: Headers | None = None,
|
68
|
-
extra_query: Query | None = None,
|
69
|
-
extra_body: Body | None = None,
|
70
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
71
|
-
) -> None:
|
72
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
73
|
-
return self._post(
|
74
|
-
"/api/v1/data-analyst/test/image-citation",
|
75
|
-
options=make_request_options(
|
76
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
77
|
-
),
|
78
|
-
cast_to=NoneType,
|
79
|
-
)
|
80
|
-
|
81
|
-
|
82
|
-
class AsyncTestResource(AsyncAPIResource):
|
83
|
-
@cached_property
|
84
|
-
def with_raw_response(self) -> AsyncTestResourceWithRawResponse:
|
85
|
-
"""
|
86
|
-
This property can be used as a prefix for any HTTP method call to return
|
87
|
-
the raw response object instead of the parsed content.
|
88
|
-
|
89
|
-
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
|
90
|
-
"""
|
91
|
-
return AsyncTestResourceWithRawResponse(self)
|
92
|
-
|
93
|
-
@cached_property
|
94
|
-
def with_streaming_response(self) -> AsyncTestResourceWithStreamingResponse:
|
95
|
-
"""
|
96
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
97
|
-
|
98
|
-
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
|
99
|
-
"""
|
100
|
-
return AsyncTestResourceWithStreamingResponse(self)
|
101
|
-
|
102
|
-
async def upload_image(
|
103
|
-
self,
|
104
|
-
*,
|
105
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
106
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
107
|
-
extra_headers: Headers | None = None,
|
108
|
-
extra_query: Query | None = None,
|
109
|
-
extra_body: Body | None = None,
|
110
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
111
|
-
) -> None:
|
112
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
113
|
-
return await self._post(
|
114
|
-
"/api/v1/data-analyst/test/image",
|
115
|
-
options=make_request_options(
|
116
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
117
|
-
),
|
118
|
-
cast_to=NoneType,
|
119
|
-
)
|
120
|
-
|
121
|
-
async def upload_image_citation(
|
122
|
-
self,
|
123
|
-
*,
|
124
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
125
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
126
|
-
extra_headers: Headers | None = None,
|
127
|
-
extra_query: Query | None = None,
|
128
|
-
extra_body: Body | None = None,
|
129
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
130
|
-
) -> None:
|
131
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
132
|
-
return await self._post(
|
133
|
-
"/api/v1/data-analyst/test/image-citation",
|
134
|
-
options=make_request_options(
|
135
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
136
|
-
),
|
137
|
-
cast_to=NoneType,
|
138
|
-
)
|
139
|
-
|
140
|
-
|
141
|
-
class TestResourceWithRawResponse:
|
142
|
-
__test__ = False
|
143
|
-
|
144
|
-
def __init__(self, test: TestResource) -> None:
|
145
|
-
self._test = test
|
146
|
-
|
147
|
-
self.upload_image = to_raw_response_wrapper(
|
148
|
-
test.upload_image,
|
149
|
-
)
|
150
|
-
self.upload_image_citation = to_raw_response_wrapper(
|
151
|
-
test.upload_image_citation,
|
152
|
-
)
|
153
|
-
|
154
|
-
|
155
|
-
class AsyncTestResourceWithRawResponse:
|
156
|
-
def __init__(self, test: AsyncTestResource) -> None:
|
157
|
-
self._test = test
|
158
|
-
|
159
|
-
self.upload_image = async_to_raw_response_wrapper(
|
160
|
-
test.upload_image,
|
161
|
-
)
|
162
|
-
self.upload_image_citation = async_to_raw_response_wrapper(
|
163
|
-
test.upload_image_citation,
|
164
|
-
)
|
165
|
-
|
166
|
-
|
167
|
-
class TestResourceWithStreamingResponse:
|
168
|
-
__test__ = False
|
169
|
-
|
170
|
-
def __init__(self, test: TestResource) -> None:
|
171
|
-
self._test = test
|
172
|
-
|
173
|
-
self.upload_image = to_streamed_response_wrapper(
|
174
|
-
test.upload_image,
|
175
|
-
)
|
176
|
-
self.upload_image_citation = to_streamed_response_wrapper(
|
177
|
-
test.upload_image_citation,
|
178
|
-
)
|
179
|
-
|
180
|
-
|
181
|
-
class AsyncTestResourceWithStreamingResponse:
|
182
|
-
def __init__(self, test: AsyncTestResource) -> None:
|
183
|
-
self._test = test
|
184
|
-
|
185
|
-
self.upload_image = async_to_streamed_response_wrapper(
|
186
|
-
test.upload_image,
|
187
|
-
)
|
188
|
-
self.upload_image_citation = async_to_streamed_response_wrapper(
|
189
|
-
test.upload_image_citation,
|
190
|
-
)
|