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
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
7
+ from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
8
  from ...._compat import cached_property
9
9
  from ...._resource import SyncAPIResource, AsyncAPIResource
10
10
  from ...._response import (
@@ -14,6 +14,10 @@ from ...._response import (
14
14
  async_to_streamed_response_wrapper,
15
15
  )
16
16
  from ...._base_client import make_request_options
17
+ from ....types.v1.materials.test_perform_ocr_response import TestPerformOcrResponse
18
+ from ....types.v1.materials.test_process_epub_response import TestProcessEpubResponse
19
+ from ....types.v1.materials.test_process_image_response import TestProcessImageResponse
20
+ from ....types.v1.materials.test_process_video_response import TestProcessVideoResponse
17
21
 
18
22
  __all__ = ["TestResource", "AsyncTestResource"]
19
23
 
@@ -49,14 +53,14 @@ class TestResource(SyncAPIResource):
49
53
  extra_query: Query | None = None,
50
54
  extra_body: Body | None = None,
51
55
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
52
- ) -> None:
53
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
56
+ ) -> TestPerformOcrResponse:
57
+ """Test OCR functionality with a sample PDF"""
54
58
  return self._post(
55
59
  "/api/v1/materials/test/ocr",
56
60
  options=make_request_options(
57
61
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
58
62
  ),
59
- cast_to=NoneType,
63
+ cast_to=TestPerformOcrResponse,
60
64
  )
61
65
 
62
66
  def process_epub(
@@ -68,14 +72,14 @@ class TestResource(SyncAPIResource):
68
72
  extra_query: Query | None = None,
69
73
  extra_body: Body | None = None,
70
74
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
71
- ) -> None:
72
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
75
+ ) -> TestProcessEpubResponse:
76
+ """Test EPUB processing functionality"""
73
77
  return self._post(
74
78
  "/api/v1/materials/test/epub-processing",
75
79
  options=make_request_options(
76
80
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
77
81
  ),
78
- cast_to=NoneType,
82
+ cast_to=TestProcessEpubResponse,
79
83
  )
80
84
 
81
85
  def process_image(
@@ -87,14 +91,14 @@ class TestResource(SyncAPIResource):
87
91
  extra_query: Query | None = None,
88
92
  extra_body: Body | None = None,
89
93
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
90
- ) -> None:
91
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
94
+ ) -> TestProcessImageResponse:
95
+ """Test image processing with OCR and AI vision"""
92
96
  return self._post(
93
97
  "/api/v1/materials/test/image-processing",
94
98
  options=make_request_options(
95
99
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
96
100
  ),
97
- cast_to=NoneType,
101
+ cast_to=TestProcessImageResponse,
98
102
  )
99
103
 
100
104
  def process_video(
@@ -106,14 +110,14 @@ class TestResource(SyncAPIResource):
106
110
  extra_query: Query | None = None,
107
111
  extra_body: Body | None = None,
108
112
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
109
- ) -> None:
110
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
113
+ ) -> TestProcessVideoResponse:
114
+ """Test video processing setup and dependencies"""
111
115
  return self._post(
112
116
  "/api/v1/materials/test/video-processing",
113
117
  options=make_request_options(
114
118
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
115
119
  ),
116
- cast_to=NoneType,
120
+ cast_to=TestProcessVideoResponse,
117
121
  )
118
122
 
119
123
 
@@ -146,14 +150,14 @@ class AsyncTestResource(AsyncAPIResource):
146
150
  extra_query: Query | None = None,
147
151
  extra_body: Body | None = None,
148
152
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
149
- ) -> None:
150
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
153
+ ) -> TestPerformOcrResponse:
154
+ """Test OCR functionality with a sample PDF"""
151
155
  return await self._post(
152
156
  "/api/v1/materials/test/ocr",
153
157
  options=make_request_options(
154
158
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
155
159
  ),
156
- cast_to=NoneType,
160
+ cast_to=TestPerformOcrResponse,
157
161
  )
158
162
 
159
163
  async def process_epub(
@@ -165,14 +169,14 @@ class AsyncTestResource(AsyncAPIResource):
165
169
  extra_query: Query | None = None,
166
170
  extra_body: Body | None = None,
167
171
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
168
- ) -> None:
169
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
172
+ ) -> TestProcessEpubResponse:
173
+ """Test EPUB processing functionality"""
170
174
  return await self._post(
171
175
  "/api/v1/materials/test/epub-processing",
172
176
  options=make_request_options(
173
177
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
174
178
  ),
175
- cast_to=NoneType,
179
+ cast_to=TestProcessEpubResponse,
176
180
  )
177
181
 
178
182
  async def process_image(
@@ -184,14 +188,14 @@ class AsyncTestResource(AsyncAPIResource):
184
188
  extra_query: Query | None = None,
185
189
  extra_body: Body | None = None,
186
190
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
187
- ) -> None:
188
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
191
+ ) -> TestProcessImageResponse:
192
+ """Test image processing with OCR and AI vision"""
189
193
  return await self._post(
190
194
  "/api/v1/materials/test/image-processing",
191
195
  options=make_request_options(
192
196
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
193
197
  ),
194
- cast_to=NoneType,
198
+ cast_to=TestProcessImageResponse,
195
199
  )
196
200
 
197
201
  async def process_video(
@@ -203,14 +207,14 @@ class AsyncTestResource(AsyncAPIResource):
203
207
  extra_query: Query | None = None,
204
208
  extra_body: Body | None = None,
205
209
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
206
- ) -> None:
207
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
210
+ ) -> TestProcessVideoResponse:
211
+ """Test video processing setup and dependencies"""
208
212
  return await self._post(
209
213
  "/api/v1/materials/test/video-processing",
210
214
  options=make_request_options(
211
215
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
212
216
  ),
213
- cast_to=NoneType,
217
+ cast_to=TestProcessVideoResponse,
214
218
  )
215
219
 
216
220