studyfetch-sdk 0.1.0a18__py3-none-any.whl → 0.1.0a20__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 (78) hide show
  1. studyfetch_sdk/_models.py +24 -3
  2. studyfetch_sdk/_version.py +1 -1
  3. studyfetch_sdk/resources/v1/__init__.py +0 -84
  4. studyfetch_sdk/resources/v1/assignment_grader.py +81 -1
  5. studyfetch_sdk/resources/v1/components.py +36 -4
  6. studyfetch_sdk/resources/v1/materials/materials.py +130 -2
  7. studyfetch_sdk/resources/v1/materials/upload.py +286 -0
  8. studyfetch_sdk/resources/v1/usage/analyst.py +143 -15
  9. studyfetch_sdk/resources/v1/v1.py +66 -192
  10. studyfetch_sdk/types/v1/__init__.py +2 -20
  11. studyfetch_sdk/types/v1/assignment_grader_response.py +20 -1
  12. studyfetch_sdk/types/v1/component.py +9 -1
  13. studyfetch_sdk/types/v1/component_create_params.py +81 -1
  14. studyfetch_sdk/types/v1/component_generate_embed_params.py +7 -1
  15. studyfetch_sdk/types/v1/component_list_params.py +9 -1
  16. studyfetch_sdk/types/v1/content_param.py +23 -0
  17. studyfetch_sdk/types/v1/material_create_and_process_params.py +27 -0
  18. studyfetch_sdk/types/v1/material_create_params.py +4 -17
  19. studyfetch_sdk/types/v1/materials/__init__.py +2 -0
  20. studyfetch_sdk/types/v1/materials/upload_create_presigned_url_params.py +3 -0
  21. studyfetch_sdk/types/v1/materials/upload_upload_file_and_process_params.py +29 -0
  22. studyfetch_sdk/types/v1/materials/upload_upload_file_params.py +3 -0
  23. studyfetch_sdk/types/v1/materials/upload_upload_url_and_process_params.py +26 -0
  24. studyfetch_sdk/types/v1/usage/__init__.py +3 -0
  25. studyfetch_sdk/types/v1/usage/analyst_get_test_questions_params.py +18 -0
  26. studyfetch_sdk/types/v1/usage/analyst_list_chat_messages_params.py +18 -0
  27. studyfetch_sdk/types/v1/usage/analyst_list_chat_messages_response.py +35 -0
  28. studyfetch_sdk/types/v1/usage/analyst_list_events_params.py +7 -0
  29. {studyfetch_sdk-0.1.0a18.dist-info → studyfetch_sdk-0.1.0a20.dist-info}/METADATA +1 -1
  30. {studyfetch_sdk-0.1.0a18.dist-info → studyfetch_sdk-0.1.0a20.dist-info}/RECORD +32 -71
  31. studyfetch_sdk/resources/v1/audio_recaps/__init__.py +0 -33
  32. studyfetch_sdk/resources/v1/audio_recaps/audio_recaps.py +0 -328
  33. studyfetch_sdk/resources/v1/audio_recaps/sections.py +0 -250
  34. studyfetch_sdk/resources/v1/chat/__init__.py +0 -47
  35. studyfetch_sdk/resources/v1/chat/chat.py +0 -574
  36. studyfetch_sdk/resources/v1/chat/sessions.py +0 -222
  37. studyfetch_sdk/resources/v1/chat/test.py +0 -190
  38. studyfetch_sdk/resources/v1/explainers.py +0 -441
  39. studyfetch_sdk/resources/v1/flashcards.py +0 -783
  40. studyfetch_sdk/resources/v1/scenarios/__init__.py +0 -61
  41. studyfetch_sdk/resources/v1/scenarios/component.py +0 -426
  42. studyfetch_sdk/resources/v1/scenarios/scenarios.py +0 -936
  43. studyfetch_sdk/resources/v1/scenarios/sessions.py +0 -236
  44. studyfetch_sdk/resources/v1/scenarios/submissions/__init__.py +0 -33
  45. studyfetch_sdk/resources/v1/scenarios/submissions/submissions.py +0 -102
  46. studyfetch_sdk/resources/v1/scenarios/submissions/user.py +0 -210
  47. studyfetch_sdk/resources/v1/tests/__init__.py +0 -33
  48. studyfetch_sdk/resources/v1/tests/component.py +0 -160
  49. studyfetch_sdk/resources/v1/tests/tests.py +0 -682
  50. studyfetch_sdk/types/v1/audio_recaps/__init__.py +0 -3
  51. studyfetch_sdk/types/v1/chat/__init__.py +0 -5
  52. studyfetch_sdk/types/v1/chat/session_retrieve_params.py +0 -11
  53. studyfetch_sdk/types/v1/chat_get_session_params.py +0 -13
  54. studyfetch_sdk/types/v1/chat_send_message_params.py +0 -54
  55. studyfetch_sdk/types/v1/chat_stream_params.py +0 -28
  56. studyfetch_sdk/types/v1/explainer_create_params.py +0 -45
  57. studyfetch_sdk/types/v1/explainer_handle_webhook_params.py +0 -53
  58. studyfetch_sdk/types/v1/flashcard_batch_process_params.py +0 -36
  59. studyfetch_sdk/types/v1/flashcard_batch_process_response.py +0 -39
  60. studyfetch_sdk/types/v1/flashcard_get_algorithm_response.py +0 -37
  61. studyfetch_sdk/types/v1/flashcard_get_all_params.py +0 -23
  62. studyfetch_sdk/types/v1/flashcard_get_due_params.py +0 -19
  63. studyfetch_sdk/types/v1/flashcard_get_stats_params.py +0 -17
  64. studyfetch_sdk/types/v1/flashcard_get_types_response.py +0 -14
  65. studyfetch_sdk/types/v1/flashcard_rate_params.py +0 -23
  66. studyfetch_sdk/types/v1/scenario_create_params.py +0 -48
  67. studyfetch_sdk/types/v1/scenario_submit_answer_params.py +0 -18
  68. studyfetch_sdk/types/v1/scenario_update_params.py +0 -45
  69. studyfetch_sdk/types/v1/scenarios/__init__.py +0 -5
  70. studyfetch_sdk/types/v1/scenarios/component_update_params.py +0 -45
  71. studyfetch_sdk/types/v1/scenarios/submissions/__init__.py +0 -3
  72. studyfetch_sdk/types/v1/test_create_params.py +0 -20
  73. studyfetch_sdk/types/v1/test_retake_params.py +0 -14
  74. studyfetch_sdk/types/v1/test_submit_answer_params.py +0 -20
  75. studyfetch_sdk/types/v1/test_submit_params.py +0 -14
  76. studyfetch_sdk/types/v1/tests/__init__.py +0 -3
  77. {studyfetch_sdk-0.1.0a18.dist-info → studyfetch_sdk-0.1.0a20.dist-info}/WHEEL +0 -0
  78. {studyfetch_sdk-0.1.0a18.dist-info → studyfetch_sdk-0.1.0a20.dist-info}/licenses/LICENSE +0 -0
@@ -1,250 +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__ = ["SectionsResource", "AsyncSectionsResource"]
19
-
20
-
21
- class SectionsResource(SyncAPIResource):
22
- @cached_property
23
- def with_raw_response(self) -> SectionsResourceWithRawResponse:
24
- """
25
- This property can be used as a prefix for any HTTP method call to return
26
- the raw response object instead of the parsed content.
27
-
28
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
29
- """
30
- return SectionsResourceWithRawResponse(self)
31
-
32
- @cached_property
33
- def with_streaming_response(self) -> SectionsResourceWithStreamingResponse:
34
- """
35
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
36
-
37
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
38
- """
39
- return SectionsResourceWithStreamingResponse(self)
40
-
41
- def retrieve(
42
- self,
43
- section_id: str,
44
- *,
45
- recap_id: str,
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
- """
54
- Get specific audio recap section
55
-
56
- Args:
57
- extra_headers: Send extra headers
58
-
59
- extra_query: Add additional query parameters to the request
60
-
61
- extra_body: Add additional JSON properties to the request
62
-
63
- timeout: Override the client-level default timeout for this request, in seconds
64
- """
65
- if not recap_id:
66
- raise ValueError(f"Expected a non-empty value for `recap_id` but received {recap_id!r}")
67
- if not section_id:
68
- raise ValueError(f"Expected a non-empty value for `section_id` but received {section_id!r}")
69
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
70
- return self._get(
71
- f"/api/v1/audio-recaps/{recap_id}/sections/{section_id}",
72
- options=make_request_options(
73
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
74
- ),
75
- cast_to=NoneType,
76
- )
77
-
78
- def list(
79
- self,
80
- recap_id: str,
81
- *,
82
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
83
- # The extra values given here take precedence over values defined on the client or passed to this method.
84
- extra_headers: Headers | None = None,
85
- extra_query: Query | None = None,
86
- extra_body: Body | None = None,
87
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
88
- ) -> None:
89
- """
90
- Get audio recap sections
91
-
92
- Args:
93
- extra_headers: Send extra headers
94
-
95
- extra_query: Add additional query parameters to the request
96
-
97
- extra_body: Add additional JSON properties to the request
98
-
99
- timeout: Override the client-level default timeout for this request, in seconds
100
- """
101
- if not recap_id:
102
- raise ValueError(f"Expected a non-empty value for `recap_id` but received {recap_id!r}")
103
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
104
- return self._get(
105
- f"/api/v1/audio-recaps/{recap_id}/sections",
106
- options=make_request_options(
107
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
108
- ),
109
- cast_to=NoneType,
110
- )
111
-
112
-
113
- class AsyncSectionsResource(AsyncAPIResource):
114
- @cached_property
115
- def with_raw_response(self) -> AsyncSectionsResourceWithRawResponse:
116
- """
117
- This property can be used as a prefix for any HTTP method call to return
118
- the raw response object instead of the parsed content.
119
-
120
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
121
- """
122
- return AsyncSectionsResourceWithRawResponse(self)
123
-
124
- @cached_property
125
- def with_streaming_response(self) -> AsyncSectionsResourceWithStreamingResponse:
126
- """
127
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
128
-
129
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
130
- """
131
- return AsyncSectionsResourceWithStreamingResponse(self)
132
-
133
- async def retrieve(
134
- self,
135
- section_id: str,
136
- *,
137
- recap_id: str,
138
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
139
- # The extra values given here take precedence over values defined on the client or passed to this method.
140
- extra_headers: Headers | None = None,
141
- extra_query: Query | None = None,
142
- extra_body: Body | None = None,
143
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
144
- ) -> None:
145
- """
146
- Get specific audio recap section
147
-
148
- Args:
149
- extra_headers: Send extra headers
150
-
151
- extra_query: Add additional query parameters to the request
152
-
153
- extra_body: Add additional JSON properties to the request
154
-
155
- timeout: Override the client-level default timeout for this request, in seconds
156
- """
157
- if not recap_id:
158
- raise ValueError(f"Expected a non-empty value for `recap_id` but received {recap_id!r}")
159
- if not section_id:
160
- raise ValueError(f"Expected a non-empty value for `section_id` but received {section_id!r}")
161
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
162
- return await self._get(
163
- f"/api/v1/audio-recaps/{recap_id}/sections/{section_id}",
164
- options=make_request_options(
165
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
166
- ),
167
- cast_to=NoneType,
168
- )
169
-
170
- async def list(
171
- self,
172
- recap_id: str,
173
- *,
174
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
175
- # The extra values given here take precedence over values defined on the client or passed to this method.
176
- extra_headers: Headers | None = None,
177
- extra_query: Query | None = None,
178
- extra_body: Body | None = None,
179
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
180
- ) -> None:
181
- """
182
- Get audio recap sections
183
-
184
- Args:
185
- extra_headers: Send extra headers
186
-
187
- extra_query: Add additional query parameters to the request
188
-
189
- extra_body: Add additional JSON properties to the request
190
-
191
- timeout: Override the client-level default timeout for this request, in seconds
192
- """
193
- if not recap_id:
194
- raise ValueError(f"Expected a non-empty value for `recap_id` but received {recap_id!r}")
195
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
196
- return await self._get(
197
- f"/api/v1/audio-recaps/{recap_id}/sections",
198
- options=make_request_options(
199
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
200
- ),
201
- cast_to=NoneType,
202
- )
203
-
204
-
205
- class SectionsResourceWithRawResponse:
206
- def __init__(self, sections: SectionsResource) -> None:
207
- self._sections = sections
208
-
209
- self.retrieve = to_raw_response_wrapper(
210
- sections.retrieve,
211
- )
212
- self.list = to_raw_response_wrapper(
213
- sections.list,
214
- )
215
-
216
-
217
- class AsyncSectionsResourceWithRawResponse:
218
- def __init__(self, sections: AsyncSectionsResource) -> None:
219
- self._sections = sections
220
-
221
- self.retrieve = async_to_raw_response_wrapper(
222
- sections.retrieve,
223
- )
224
- self.list = async_to_raw_response_wrapper(
225
- sections.list,
226
- )
227
-
228
-
229
- class SectionsResourceWithStreamingResponse:
230
- def __init__(self, sections: SectionsResource) -> None:
231
- self._sections = sections
232
-
233
- self.retrieve = to_streamed_response_wrapper(
234
- sections.retrieve,
235
- )
236
- self.list = to_streamed_response_wrapper(
237
- sections.list,
238
- )
239
-
240
-
241
- class AsyncSectionsResourceWithStreamingResponse:
242
- def __init__(self, sections: AsyncSectionsResource) -> None:
243
- self._sections = sections
244
-
245
- self.retrieve = async_to_streamed_response_wrapper(
246
- sections.retrieve,
247
- )
248
- self.list = async_to_streamed_response_wrapper(
249
- sections.list,
250
- )
@@ -1,47 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from .chat import (
4
- ChatResource,
5
- AsyncChatResource,
6
- ChatResourceWithRawResponse,
7
- AsyncChatResourceWithRawResponse,
8
- ChatResourceWithStreamingResponse,
9
- AsyncChatResourceWithStreamingResponse,
10
- )
11
- from .test import (
12
- TestResource,
13
- AsyncTestResource,
14
- TestResourceWithRawResponse,
15
- AsyncTestResourceWithRawResponse,
16
- TestResourceWithStreamingResponse,
17
- AsyncTestResourceWithStreamingResponse,
18
- )
19
- from .sessions import (
20
- SessionsResource,
21
- AsyncSessionsResource,
22
- SessionsResourceWithRawResponse,
23
- AsyncSessionsResourceWithRawResponse,
24
- SessionsResourceWithStreamingResponse,
25
- AsyncSessionsResourceWithStreamingResponse,
26
- )
27
-
28
- __all__ = [
29
- "SessionsResource",
30
- "AsyncSessionsResource",
31
- "SessionsResourceWithRawResponse",
32
- "AsyncSessionsResourceWithRawResponse",
33
- "SessionsResourceWithStreamingResponse",
34
- "AsyncSessionsResourceWithStreamingResponse",
35
- "TestResource",
36
- "AsyncTestResource",
37
- "TestResourceWithRawResponse",
38
- "AsyncTestResourceWithRawResponse",
39
- "TestResourceWithStreamingResponse",
40
- "AsyncTestResourceWithStreamingResponse",
41
- "ChatResource",
42
- "AsyncChatResource",
43
- "ChatResourceWithRawResponse",
44
- "AsyncChatResourceWithRawResponse",
45
- "ChatResourceWithStreamingResponse",
46
- "AsyncChatResourceWithStreamingResponse",
47
- ]