studyfetch-sdk 0.1.0a17__py3-none-any.whl → 0.1.0a19__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.
Files changed (58) hide show
  1. studyfetch_sdk/_models.py +1 -1
  2. studyfetch_sdk/_version.py +1 -1
  3. studyfetch_sdk/resources/v1/__init__.py +14 -0
  4. studyfetch_sdk/resources/v1/assignment_grader.py +81 -1
  5. studyfetch_sdk/resources/v1/components.py +36 -4
  6. studyfetch_sdk/resources/v1/data_analyst/__init__.py +47 -0
  7. studyfetch_sdk/resources/v1/data_analyst/data_analyst.py +582 -0
  8. studyfetch_sdk/resources/v1/data_analyst/sessions.py +222 -0
  9. studyfetch_sdk/resources/v1/data_analyst/test.py +190 -0
  10. studyfetch_sdk/resources/v1/materials/bulk.py +60 -7
  11. studyfetch_sdk/resources/v1/materials/materials.py +250 -57
  12. studyfetch_sdk/resources/v1/materials/test.py +29 -25
  13. studyfetch_sdk/resources/v1/materials/upload.py +402 -14
  14. studyfetch_sdk/resources/v1/usage/analyst.py +143 -15
  15. studyfetch_sdk/resources/v1/v1.py +98 -0
  16. studyfetch_sdk/types/v1/__init__.py +12 -0
  17. studyfetch_sdk/types/v1/assignment_grader_response.py +20 -1
  18. studyfetch_sdk/types/v1/component.py +9 -1
  19. studyfetch_sdk/types/v1/component_create_params.py +57 -1
  20. studyfetch_sdk/types/v1/component_list_params.py +9 -1
  21. studyfetch_sdk/types/v1/content_param.py +23 -0
  22. studyfetch_sdk/types/v1/data_analyst/__init__.py +5 -0
  23. studyfetch_sdk/types/v1/data_analyst/session_retrieve_params.py +11 -0
  24. studyfetch_sdk/types/v1/data_analyst_retrieve_session_params.py +13 -0
  25. studyfetch_sdk/types/v1/data_analyst_send_message_params.py +54 -0
  26. studyfetch_sdk/types/v1/data_analyst_stream_params.py +28 -0
  27. studyfetch_sdk/types/v1/material_batch_create_params.py +29 -0
  28. studyfetch_sdk/types/v1/material_batch_create_response.py +27 -0
  29. studyfetch_sdk/types/v1/material_create_and_process_params.py +27 -0
  30. studyfetch_sdk/types/v1/material_create_params.py +4 -17
  31. studyfetch_sdk/types/v1/material_debug_response.py +47 -0
  32. studyfetch_sdk/types/v1/material_get_download_url_params.py +3 -2
  33. studyfetch_sdk/types/v1/material_get_download_url_response.py +12 -0
  34. studyfetch_sdk/types/v1/material_move_params.py +15 -0
  35. studyfetch_sdk/types/v1/material_rename_params.py +12 -0
  36. studyfetch_sdk/types/v1/material_search_params.py +3 -6
  37. studyfetch_sdk/types/v1/material_search_response.py +54 -0
  38. studyfetch_sdk/types/v1/materials/__init__.py +11 -0
  39. studyfetch_sdk/types/v1/materials/bulk_move_params.py +18 -0
  40. studyfetch_sdk/types/v1/materials/bulk_move_response.py +15 -0
  41. studyfetch_sdk/types/v1/materials/test_perform_ocr_response.py +19 -0
  42. studyfetch_sdk/types/v1/materials/test_process_epub_response.py +30 -0
  43. studyfetch_sdk/types/v1/materials/test_process_image_response.py +30 -0
  44. studyfetch_sdk/types/v1/materials/test_process_video_response.py +25 -0
  45. studyfetch_sdk/types/v1/materials/upload_complete_upload_params.py +20 -0
  46. studyfetch_sdk/types/v1/materials/upload_create_presigned_url_params.py +23 -0
  47. studyfetch_sdk/types/v1/materials/upload_create_presigned_url_response.py +18 -0
  48. studyfetch_sdk/types/v1/materials/upload_upload_file_and_process_params.py +26 -0
  49. studyfetch_sdk/types/v1/materials/upload_upload_url_and_process_params.py +26 -0
  50. studyfetch_sdk/types/v1/usage/__init__.py +3 -0
  51. studyfetch_sdk/types/v1/usage/analyst_get_test_questions_params.py +18 -0
  52. studyfetch_sdk/types/v1/usage/analyst_list_chat_messages_params.py +18 -0
  53. studyfetch_sdk/types/v1/usage/analyst_list_chat_messages_response.py +35 -0
  54. studyfetch_sdk/types/v1/usage/analyst_list_events_params.py +7 -0
  55. {studyfetch_sdk-0.1.0a17.dist-info → studyfetch_sdk-0.1.0a19.dist-info}/METADATA +1 -1
  56. {studyfetch_sdk-0.1.0a17.dist-info → studyfetch_sdk-0.1.0a19.dist-info}/RECORD +58 -26
  57. {studyfetch_sdk-0.1.0a17.dist-info → studyfetch_sdk-0.1.0a19.dist-info}/WHEEL +0 -0
  58. {studyfetch_sdk-0.1.0a17.dist-info → studyfetch_sdk-0.1.0a19.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,222 @@
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
+ )
@@ -0,0 +1,190 @@
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
+ )
@@ -2,9 +2,12 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from typing import List, Optional
6
+
5
7
  import httpx
6
8
 
7
- from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
9
+ from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
+ from ...._utils import maybe_transform, async_maybe_transform
8
11
  from ...._compat import cached_property
9
12
  from ...._resource import SyncAPIResource, AsyncAPIResource
10
13
  from ...._response import (
@@ -14,6 +17,8 @@ from ...._response import (
14
17
  async_to_streamed_response_wrapper,
15
18
  )
16
19
  from ...._base_client import make_request_options
20
+ from ....types.v1.materials import bulk_move_params
21
+ from ....types.v1.materials.bulk_move_response import BulkMoveResponse
17
22
 
18
23
  __all__ = ["BulkResource", "AsyncBulkResource"]
19
24
 
@@ -41,20 +46,44 @@ class BulkResource(SyncAPIResource):
41
46
  def move(
42
47
  self,
43
48
  *,
49
+ folder_id: Optional[str],
50
+ material_ids: List[str],
44
51
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
45
52
  # The extra values given here take precedence over values defined on the client or passed to this method.
46
53
  extra_headers: Headers | None = None,
47
54
  extra_query: Query | None = None,
48
55
  extra_body: Body | None = None,
49
56
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
50
- ) -> None:
51
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
57
+ ) -> BulkMoveResponse:
58
+ """
59
+ Bulk move materials to a different folder
60
+
61
+ Args:
62
+ folder_id: Target folder ID (null for root)
63
+
64
+ material_ids: Array of material IDs to move
65
+
66
+ extra_headers: Send extra headers
67
+
68
+ extra_query: Add additional query parameters to the request
69
+
70
+ extra_body: Add additional JSON properties to the request
71
+
72
+ timeout: Override the client-level default timeout for this request, in seconds
73
+ """
52
74
  return self._post(
53
75
  "/api/v1/materials/bulk/move",
76
+ body=maybe_transform(
77
+ {
78
+ "folder_id": folder_id,
79
+ "material_ids": material_ids,
80
+ },
81
+ bulk_move_params.BulkMoveParams,
82
+ ),
54
83
  options=make_request_options(
55
84
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
56
85
  ),
57
- cast_to=NoneType,
86
+ cast_to=BulkMoveResponse,
58
87
  )
59
88
 
60
89
 
@@ -81,20 +110,44 @@ class AsyncBulkResource(AsyncAPIResource):
81
110
  async def move(
82
111
  self,
83
112
  *,
113
+ folder_id: Optional[str],
114
+ material_ids: List[str],
84
115
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
85
116
  # The extra values given here take precedence over values defined on the client or passed to this method.
86
117
  extra_headers: Headers | None = None,
87
118
  extra_query: Query | None = None,
88
119
  extra_body: Body | None = None,
89
120
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
90
- ) -> None:
91
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
121
+ ) -> BulkMoveResponse:
122
+ """
123
+ Bulk move materials to a different folder
124
+
125
+ Args:
126
+ folder_id: Target folder ID (null for root)
127
+
128
+ material_ids: Array of material IDs to move
129
+
130
+ extra_headers: Send extra headers
131
+
132
+ extra_query: Add additional query parameters to the request
133
+
134
+ extra_body: Add additional JSON properties to the request
135
+
136
+ timeout: Override the client-level default timeout for this request, in seconds
137
+ """
92
138
  return await self._post(
93
139
  "/api/v1/materials/bulk/move",
140
+ body=await async_maybe_transform(
141
+ {
142
+ "folder_id": folder_id,
143
+ "material_ids": material_ids,
144
+ },
145
+ bulk_move_params.BulkMoveParams,
146
+ ),
94
147
  options=make_request_options(
95
148
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
96
149
  ),
97
- cast_to=NoneType,
150
+ cast_to=BulkMoveResponse,
98
151
  )
99
152
 
100
153