studyfetch-sdk 0.1.0a19__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 (70) hide show
  1. studyfetch_sdk/_models.py +23 -2
  2. studyfetch_sdk/_version.py +1 -1
  3. studyfetch_sdk/resources/v1/__init__.py +0 -98
  4. studyfetch_sdk/resources/v1/materials/upload.py +24 -0
  5. studyfetch_sdk/resources/v1/v1.py +0 -224
  6. studyfetch_sdk/types/v1/__init__.py +0 -23
  7. studyfetch_sdk/types/v1/component_create_params.py +24 -0
  8. studyfetch_sdk/types/v1/component_generate_embed_params.py +7 -1
  9. studyfetch_sdk/types/v1/materials/upload_create_presigned_url_params.py +3 -0
  10. studyfetch_sdk/types/v1/materials/upload_upload_file_and_process_params.py +3 -0
  11. studyfetch_sdk/types/v1/materials/upload_upload_file_params.py +3 -0
  12. {studyfetch_sdk-0.1.0a19.dist-info → studyfetch_sdk-0.1.0a20.dist-info}/METADATA +1 -1
  13. {studyfetch_sdk-0.1.0a19.dist-info → studyfetch_sdk-0.1.0a20.dist-info}/RECORD +15 -70
  14. studyfetch_sdk/resources/v1/audio_recaps/__init__.py +0 -33
  15. studyfetch_sdk/resources/v1/audio_recaps/audio_recaps.py +0 -328
  16. studyfetch_sdk/resources/v1/audio_recaps/sections.py +0 -250
  17. studyfetch_sdk/resources/v1/chat/__init__.py +0 -47
  18. studyfetch_sdk/resources/v1/chat/chat.py +0 -574
  19. studyfetch_sdk/resources/v1/chat/sessions.py +0 -222
  20. studyfetch_sdk/resources/v1/chat/test.py +0 -190
  21. studyfetch_sdk/resources/v1/data_analyst/__init__.py +0 -47
  22. studyfetch_sdk/resources/v1/data_analyst/data_analyst.py +0 -582
  23. studyfetch_sdk/resources/v1/data_analyst/sessions.py +0 -222
  24. studyfetch_sdk/resources/v1/data_analyst/test.py +0 -190
  25. studyfetch_sdk/resources/v1/explainers.py +0 -441
  26. studyfetch_sdk/resources/v1/flashcards.py +0 -783
  27. studyfetch_sdk/resources/v1/scenarios/__init__.py +0 -61
  28. studyfetch_sdk/resources/v1/scenarios/component.py +0 -426
  29. studyfetch_sdk/resources/v1/scenarios/scenarios.py +0 -936
  30. studyfetch_sdk/resources/v1/scenarios/sessions.py +0 -236
  31. studyfetch_sdk/resources/v1/scenarios/submissions/__init__.py +0 -33
  32. studyfetch_sdk/resources/v1/scenarios/submissions/submissions.py +0 -102
  33. studyfetch_sdk/resources/v1/scenarios/submissions/user.py +0 -210
  34. studyfetch_sdk/resources/v1/tests/__init__.py +0 -33
  35. studyfetch_sdk/resources/v1/tests/component.py +0 -160
  36. studyfetch_sdk/resources/v1/tests/tests.py +0 -682
  37. studyfetch_sdk/types/v1/audio_recaps/__init__.py +0 -3
  38. studyfetch_sdk/types/v1/chat/__init__.py +0 -5
  39. studyfetch_sdk/types/v1/chat/session_retrieve_params.py +0 -11
  40. studyfetch_sdk/types/v1/chat_get_session_params.py +0 -13
  41. studyfetch_sdk/types/v1/chat_send_message_params.py +0 -54
  42. studyfetch_sdk/types/v1/chat_stream_params.py +0 -28
  43. studyfetch_sdk/types/v1/data_analyst/__init__.py +0 -5
  44. studyfetch_sdk/types/v1/data_analyst/session_retrieve_params.py +0 -11
  45. studyfetch_sdk/types/v1/data_analyst_retrieve_session_params.py +0 -13
  46. studyfetch_sdk/types/v1/data_analyst_send_message_params.py +0 -54
  47. studyfetch_sdk/types/v1/data_analyst_stream_params.py +0 -28
  48. studyfetch_sdk/types/v1/explainer_create_params.py +0 -45
  49. studyfetch_sdk/types/v1/explainer_handle_webhook_params.py +0 -53
  50. studyfetch_sdk/types/v1/flashcard_batch_process_params.py +0 -36
  51. studyfetch_sdk/types/v1/flashcard_batch_process_response.py +0 -39
  52. studyfetch_sdk/types/v1/flashcard_get_algorithm_response.py +0 -37
  53. studyfetch_sdk/types/v1/flashcard_get_all_params.py +0 -23
  54. studyfetch_sdk/types/v1/flashcard_get_due_params.py +0 -19
  55. studyfetch_sdk/types/v1/flashcard_get_stats_params.py +0 -17
  56. studyfetch_sdk/types/v1/flashcard_get_types_response.py +0 -14
  57. studyfetch_sdk/types/v1/flashcard_rate_params.py +0 -23
  58. studyfetch_sdk/types/v1/scenario_create_params.py +0 -48
  59. studyfetch_sdk/types/v1/scenario_submit_answer_params.py +0 -18
  60. studyfetch_sdk/types/v1/scenario_update_params.py +0 -45
  61. studyfetch_sdk/types/v1/scenarios/__init__.py +0 -5
  62. studyfetch_sdk/types/v1/scenarios/component_update_params.py +0 -45
  63. studyfetch_sdk/types/v1/scenarios/submissions/__init__.py +0 -3
  64. studyfetch_sdk/types/v1/test_create_params.py +0 -20
  65. studyfetch_sdk/types/v1/test_retake_params.py +0 -14
  66. studyfetch_sdk/types/v1/test_submit_answer_params.py +0 -20
  67. studyfetch_sdk/types/v1/test_submit_params.py +0 -14
  68. studyfetch_sdk/types/v1/tests/__init__.py +0 -3
  69. {studyfetch_sdk-0.1.0a19.dist-info → studyfetch_sdk-0.1.0a20.dist-info}/WHEEL +0 -0
  70. {studyfetch_sdk-0.1.0a19.dist-info → studyfetch_sdk-0.1.0a20.dist-info}/licenses/LICENSE +0 -0
studyfetch_sdk/_models.py CHANGED
@@ -208,14 +208,18 @@ class BaseModel(pydantic.BaseModel):
208
208
  else:
209
209
  fields_values[name] = field_get_default(field)
210
210
 
211
+ extra_field_type = _get_extra_fields_type(__cls)
212
+
211
213
  _extra = {}
212
214
  for key, value in values.items():
213
215
  if key not in model_fields:
216
+ parsed = construct_type(value=value, type_=extra_field_type) if extra_field_type is not None else value
217
+
214
218
  if PYDANTIC_V2:
215
- _extra[key] = value
219
+ _extra[key] = parsed
216
220
  else:
217
221
  _fields_set.add(key)
218
- fields_values[key] = value
222
+ fields_values[key] = parsed
219
223
 
220
224
  object.__setattr__(m, "__dict__", fields_values)
221
225
 
@@ -370,6 +374,23 @@ def _construct_field(value: object, field: FieldInfo, key: str) -> object:
370
374
  return construct_type(value=value, type_=type_, metadata=getattr(field, "metadata", None))
371
375
 
372
376
 
377
+ def _get_extra_fields_type(cls: type[pydantic.BaseModel]) -> type | None:
378
+ if not PYDANTIC_V2:
379
+ # TODO
380
+ return None
381
+
382
+ schema = cls.__pydantic_core_schema__
383
+ if schema["type"] == "model":
384
+ fields = schema["schema"]
385
+ if fields["type"] == "model-fields":
386
+ extras = fields.get("extras_schema")
387
+ if extras and "cls" in extras:
388
+ # mypy can't narrow the type
389
+ return extras["cls"] # type: ignore[no-any-return]
390
+
391
+ return None
392
+
393
+
373
394
  def is_basemodel(type_: type) -> bool:
374
395
  """Returns whether or not the given type is either a `BaseModel` or a union of `BaseModel`"""
375
396
  if is_union(type_):
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "studyfetch_sdk"
4
- __version__ = "0.1.0-alpha.19" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.20" # x-release-please-version
@@ -8,14 +8,6 @@ from .v1 import (
8
8
  V1ResourceWithStreamingResponse,
9
9
  AsyncV1ResourceWithStreamingResponse,
10
10
  )
11
- from .chat import (
12
- ChatResource,
13
- AsyncChatResource,
14
- ChatResourceWithRawResponse,
15
- AsyncChatResourceWithRawResponse,
16
- ChatResourceWithStreamingResponse,
17
- AsyncChatResourceWithStreamingResponse,
18
- )
19
11
  from .embed import (
20
12
  EmbedResource,
21
13
  AsyncEmbedResource,
@@ -24,14 +16,6 @@ from .embed import (
24
16
  EmbedResourceWithStreamingResponse,
25
17
  AsyncEmbedResourceWithStreamingResponse,
26
18
  )
27
- from .tests import (
28
- TestsResource,
29
- AsyncTestsResource,
30
- TestsResourceWithRawResponse,
31
- AsyncTestsResourceWithRawResponse,
32
- TestsResourceWithStreamingResponse,
33
- AsyncTestsResourceWithStreamingResponse,
34
- )
35
19
  from .usage import (
36
20
  UsageResource,
37
21
  AsyncUsageResource,
@@ -64,14 +48,6 @@ from .materials import (
64
48
  MaterialsResourceWithStreamingResponse,
65
49
  AsyncMaterialsResourceWithStreamingResponse,
66
50
  )
67
- from .scenarios import (
68
- ScenariosResource,
69
- AsyncScenariosResource,
70
- ScenariosResourceWithRawResponse,
71
- AsyncScenariosResourceWithRawResponse,
72
- ScenariosResourceWithStreamingResponse,
73
- AsyncScenariosResourceWithStreamingResponse,
74
- )
75
51
  from .components import (
76
52
  ComponentsResource,
77
53
  AsyncComponentsResource,
@@ -80,38 +56,6 @@ from .components import (
80
56
  ComponentsResourceWithStreamingResponse,
81
57
  AsyncComponentsResourceWithStreamingResponse,
82
58
  )
83
- from .explainers import (
84
- ExplainersResource,
85
- AsyncExplainersResource,
86
- ExplainersResourceWithRawResponse,
87
- AsyncExplainersResourceWithRawResponse,
88
- ExplainersResourceWithStreamingResponse,
89
- AsyncExplainersResourceWithStreamingResponse,
90
- )
91
- from .flashcards import (
92
- FlashcardsResource,
93
- AsyncFlashcardsResource,
94
- FlashcardsResourceWithRawResponse,
95
- AsyncFlashcardsResourceWithRawResponse,
96
- FlashcardsResourceWithStreamingResponse,
97
- AsyncFlashcardsResourceWithStreamingResponse,
98
- )
99
- from .audio_recaps import (
100
- AudioRecapsResource,
101
- AsyncAudioRecapsResource,
102
- AudioRecapsResourceWithRawResponse,
103
- AsyncAudioRecapsResourceWithRawResponse,
104
- AudioRecapsResourceWithStreamingResponse,
105
- AsyncAudioRecapsResourceWithStreamingResponse,
106
- )
107
- from .data_analyst import (
108
- DataAnalystResource,
109
- AsyncDataAnalystResource,
110
- DataAnalystResourceWithRawResponse,
111
- AsyncDataAnalystResourceWithRawResponse,
112
- DataAnalystResourceWithStreamingResponse,
113
- AsyncDataAnalystResourceWithStreamingResponse,
114
- )
115
59
  from .assignment_grader import (
116
60
  AssignmentGraderResource,
117
61
  AsyncAssignmentGraderResource,
@@ -152,42 +96,6 @@ __all__ = [
152
96
  "AsyncEmbedResourceWithRawResponse",
153
97
  "EmbedResourceWithStreamingResponse",
154
98
  "AsyncEmbedResourceWithStreamingResponse",
155
- "ChatResource",
156
- "AsyncChatResource",
157
- "ChatResourceWithRawResponse",
158
- "AsyncChatResourceWithRawResponse",
159
- "ChatResourceWithStreamingResponse",
160
- "AsyncChatResourceWithStreamingResponse",
161
- "TestsResource",
162
- "AsyncTestsResource",
163
- "TestsResourceWithRawResponse",
164
- "AsyncTestsResourceWithRawResponse",
165
- "TestsResourceWithStreamingResponse",
166
- "AsyncTestsResourceWithStreamingResponse",
167
- "AudioRecapsResource",
168
- "AsyncAudioRecapsResource",
169
- "AudioRecapsResourceWithRawResponse",
170
- "AsyncAudioRecapsResourceWithRawResponse",
171
- "AudioRecapsResourceWithStreamingResponse",
172
- "AsyncAudioRecapsResourceWithStreamingResponse",
173
- "FlashcardsResource",
174
- "AsyncFlashcardsResource",
175
- "FlashcardsResourceWithRawResponse",
176
- "AsyncFlashcardsResourceWithRawResponse",
177
- "FlashcardsResourceWithStreamingResponse",
178
- "AsyncFlashcardsResourceWithStreamingResponse",
179
- "ScenariosResource",
180
- "AsyncScenariosResource",
181
- "ScenariosResourceWithRawResponse",
182
- "AsyncScenariosResourceWithRawResponse",
183
- "ScenariosResourceWithStreamingResponse",
184
- "AsyncScenariosResourceWithStreamingResponse",
185
- "ExplainersResource",
186
- "AsyncExplainersResource",
187
- "ExplainersResourceWithRawResponse",
188
- "AsyncExplainersResourceWithRawResponse",
189
- "ExplainersResourceWithStreamingResponse",
190
- "AsyncExplainersResourceWithStreamingResponse",
191
99
  "UploadResource",
192
100
  "AsyncUploadResource",
193
101
  "UploadResourceWithRawResponse",
@@ -200,12 +108,6 @@ __all__ = [
200
108
  "AsyncAssignmentGraderResourceWithRawResponse",
201
109
  "AssignmentGraderResourceWithStreamingResponse",
202
110
  "AsyncAssignmentGraderResourceWithStreamingResponse",
203
- "DataAnalystResource",
204
- "AsyncDataAnalystResource",
205
- "DataAnalystResourceWithRawResponse",
206
- "AsyncDataAnalystResourceWithRawResponse",
207
- "DataAnalystResourceWithStreamingResponse",
208
- "AsyncDataAnalystResourceWithStreamingResponse",
209
111
  "V1Resource",
210
112
  "AsyncV1Resource",
211
113
  "V1ResourceWithRawResponse",
@@ -104,6 +104,7 @@ class UploadResource(SyncAPIResource):
104
104
  content_type: str,
105
105
  filename: str,
106
106
  name: str,
107
+ extract_images: bool | NotGiven = NOT_GIVEN,
107
108
  folder_id: str | NotGiven = NOT_GIVEN,
108
109
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
109
110
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -122,6 +123,8 @@ class UploadResource(SyncAPIResource):
122
123
 
123
124
  name: Display name for the material
124
125
 
126
+ extract_images: Whether to extract images from files
127
+
125
128
  folder_id: Folder ID to place the material in
126
129
 
127
130
  extra_headers: Send extra headers
@@ -139,6 +142,7 @@ class UploadResource(SyncAPIResource):
139
142
  "content_type": content_type,
140
143
  "filename": filename,
141
144
  "name": name,
145
+ "extract_images": extract_images,
142
146
  "folder_id": folder_id,
143
147
  },
144
148
  upload_create_presigned_url_params.UploadCreatePresignedURLParams,
@@ -154,6 +158,7 @@ class UploadResource(SyncAPIResource):
154
158
  *,
155
159
  file: FileTypes,
156
160
  name: str,
161
+ extract_images: str | NotGiven = NOT_GIVEN,
157
162
  folder_id: str | NotGiven = NOT_GIVEN,
158
163
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
159
164
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -168,6 +173,8 @@ class UploadResource(SyncAPIResource):
168
173
  Args:
169
174
  name: Material name
170
175
 
176
+ extract_images: Whether to extract images from files (true/false, default: true)
177
+
171
178
  folder_id: Folder ID (optional)
172
179
 
173
180
  extra_headers: Send extra headers
@@ -182,6 +189,7 @@ class UploadResource(SyncAPIResource):
182
189
  {
183
190
  "file": file,
184
191
  "name": name,
192
+ "extract_images": extract_images,
185
193
  "folder_id": folder_id,
186
194
  }
187
195
  )
@@ -205,6 +213,7 @@ class UploadResource(SyncAPIResource):
205
213
  *,
206
214
  file: FileTypes,
207
215
  name: str,
216
+ extract_images: str | NotGiven = NOT_GIVEN,
208
217
  folder_id: str | NotGiven = NOT_GIVEN,
209
218
  poll_interval_ms: float | NotGiven = NOT_GIVEN,
210
219
  timeout_ms: float | NotGiven = NOT_GIVEN,
@@ -223,6 +232,8 @@ class UploadResource(SyncAPIResource):
223
232
  Args:
224
233
  name: Material name
225
234
 
235
+ extract_images: Whether to extract images from files (true/false, default: true)
236
+
226
237
  folder_id: Folder ID (optional)
227
238
 
228
239
  poll_interval_ms: Polling interval in milliseconds (default: 2000)
@@ -241,6 +252,7 @@ class UploadResource(SyncAPIResource):
241
252
  {
242
253
  "file": file,
243
254
  "name": name,
255
+ "extract_images": extract_images,
244
256
  "folder_id": folder_id,
245
257
  "poll_interval_ms": poll_interval_ms,
246
258
  "timeout_ms": timeout_ms,
@@ -438,6 +450,7 @@ class AsyncUploadResource(AsyncAPIResource):
438
450
  content_type: str,
439
451
  filename: str,
440
452
  name: str,
453
+ extract_images: bool | NotGiven = NOT_GIVEN,
441
454
  folder_id: str | NotGiven = NOT_GIVEN,
442
455
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
443
456
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -456,6 +469,8 @@ class AsyncUploadResource(AsyncAPIResource):
456
469
 
457
470
  name: Display name for the material
458
471
 
472
+ extract_images: Whether to extract images from files
473
+
459
474
  folder_id: Folder ID to place the material in
460
475
 
461
476
  extra_headers: Send extra headers
@@ -473,6 +488,7 @@ class AsyncUploadResource(AsyncAPIResource):
473
488
  "content_type": content_type,
474
489
  "filename": filename,
475
490
  "name": name,
491
+ "extract_images": extract_images,
476
492
  "folder_id": folder_id,
477
493
  },
478
494
  upload_create_presigned_url_params.UploadCreatePresignedURLParams,
@@ -488,6 +504,7 @@ class AsyncUploadResource(AsyncAPIResource):
488
504
  *,
489
505
  file: FileTypes,
490
506
  name: str,
507
+ extract_images: str | NotGiven = NOT_GIVEN,
491
508
  folder_id: str | NotGiven = NOT_GIVEN,
492
509
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
493
510
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -502,6 +519,8 @@ class AsyncUploadResource(AsyncAPIResource):
502
519
  Args:
503
520
  name: Material name
504
521
 
522
+ extract_images: Whether to extract images from files (true/false, default: true)
523
+
505
524
  folder_id: Folder ID (optional)
506
525
 
507
526
  extra_headers: Send extra headers
@@ -516,6 +535,7 @@ class AsyncUploadResource(AsyncAPIResource):
516
535
  {
517
536
  "file": file,
518
537
  "name": name,
538
+ "extract_images": extract_images,
519
539
  "folder_id": folder_id,
520
540
  }
521
541
  )
@@ -539,6 +559,7 @@ class AsyncUploadResource(AsyncAPIResource):
539
559
  *,
540
560
  file: FileTypes,
541
561
  name: str,
562
+ extract_images: str | NotGiven = NOT_GIVEN,
542
563
  folder_id: str | NotGiven = NOT_GIVEN,
543
564
  poll_interval_ms: float | NotGiven = NOT_GIVEN,
544
565
  timeout_ms: float | NotGiven = NOT_GIVEN,
@@ -557,6 +578,8 @@ class AsyncUploadResource(AsyncAPIResource):
557
578
  Args:
558
579
  name: Material name
559
580
 
581
+ extract_images: Whether to extract images from files (true/false, default: true)
582
+
560
583
  folder_id: Folder ID (optional)
561
584
 
562
585
  poll_interval_ms: Polling interval in milliseconds (default: 2000)
@@ -575,6 +598,7 @@ class AsyncUploadResource(AsyncAPIResource):
575
598
  {
576
599
  "file": file,
577
600
  "name": name,
601
+ "extract_images": extract_images,
578
602
  "folder_id": folder_id,
579
603
  "poll_interval_ms": poll_interval_ms,
580
604
  "timeout_ms": timeout_ms,
@@ -14,14 +14,6 @@ from .folders import (
14
14
  )
15
15
  from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
16
16
  from ..._compat import cached_property
17
- from .chat.chat import (
18
- ChatResource,
19
- AsyncChatResource,
20
- ChatResourceWithRawResponse,
21
- AsyncChatResourceWithRawResponse,
22
- ChatResourceWithStreamingResponse,
23
- AsyncChatResourceWithStreamingResponse,
24
- )
25
17
  from .components import (
26
18
  ComponentsResource,
27
19
  AsyncComponentsResource,
@@ -30,22 +22,6 @@ from .components import (
30
22
  ComponentsResourceWithStreamingResponse,
31
23
  AsyncComponentsResourceWithStreamingResponse,
32
24
  )
33
- from .explainers import (
34
- ExplainersResource,
35
- AsyncExplainersResource,
36
- ExplainersResourceWithRawResponse,
37
- AsyncExplainersResourceWithRawResponse,
38
- ExplainersResourceWithStreamingResponse,
39
- AsyncExplainersResourceWithStreamingResponse,
40
- )
41
- from .flashcards import (
42
- FlashcardsResource,
43
- AsyncFlashcardsResource,
44
- FlashcardsResourceWithRawResponse,
45
- AsyncFlashcardsResourceWithRawResponse,
46
- FlashcardsResourceWithStreamingResponse,
47
- AsyncFlashcardsResourceWithStreamingResponse,
48
- )
49
25
  from ..._resource import SyncAPIResource, AsyncAPIResource
50
26
  from ..._response import (
51
27
  to_raw_response_wrapper,
@@ -61,14 +37,6 @@ from .embed.embed import (
61
37
  EmbedResourceWithStreamingResponse,
62
38
  AsyncEmbedResourceWithStreamingResponse,
63
39
  )
64
- from .tests.tests import (
65
- TestsResource,
66
- AsyncTestsResource,
67
- TestsResourceWithRawResponse,
68
- AsyncTestsResourceWithRawResponse,
69
- TestsResourceWithStreamingResponse,
70
- AsyncTestsResourceWithStreamingResponse,
71
- )
72
40
  from .usage.usage import (
73
41
  UsageResource,
74
42
  AsyncUsageResource,
@@ -102,30 +70,6 @@ from .materials.materials import (
102
70
  MaterialsResourceWithStreamingResponse,
103
71
  AsyncMaterialsResourceWithStreamingResponse,
104
72
  )
105
- from .scenarios.scenarios import (
106
- ScenariosResource,
107
- AsyncScenariosResource,
108
- ScenariosResourceWithRawResponse,
109
- AsyncScenariosResourceWithRawResponse,
110
- ScenariosResourceWithStreamingResponse,
111
- AsyncScenariosResourceWithStreamingResponse,
112
- )
113
- from .audio_recaps.audio_recaps import (
114
- AudioRecapsResource,
115
- AsyncAudioRecapsResource,
116
- AudioRecapsResourceWithRawResponse,
117
- AsyncAudioRecapsResourceWithRawResponse,
118
- AudioRecapsResourceWithStreamingResponse,
119
- AsyncAudioRecapsResourceWithStreamingResponse,
120
- )
121
- from .data_analyst.data_analyst import (
122
- DataAnalystResource,
123
- AsyncDataAnalystResource,
124
- DataAnalystResourceWithRawResponse,
125
- AsyncDataAnalystResourceWithRawResponse,
126
- DataAnalystResourceWithStreamingResponse,
127
- AsyncDataAnalystResourceWithStreamingResponse,
128
- )
129
73
 
130
74
  __all__ = ["V1Resource", "AsyncV1Resource"]
131
75
 
@@ -151,30 +95,6 @@ class V1Resource(SyncAPIResource):
151
95
  def embed(self) -> EmbedResource:
152
96
  return EmbedResource(self._client)
153
97
 
154
- @cached_property
155
- def chat(self) -> ChatResource:
156
- return ChatResource(self._client)
157
-
158
- @cached_property
159
- def tests(self) -> TestsResource:
160
- return TestsResource(self._client)
161
-
162
- @cached_property
163
- def audio_recaps(self) -> AudioRecapsResource:
164
- return AudioRecapsResource(self._client)
165
-
166
- @cached_property
167
- def flashcards(self) -> FlashcardsResource:
168
- return FlashcardsResource(self._client)
169
-
170
- @cached_property
171
- def scenarios(self) -> ScenariosResource:
172
- return ScenariosResource(self._client)
173
-
174
- @cached_property
175
- def explainers(self) -> ExplainersResource:
176
- return ExplainersResource(self._client)
177
-
178
98
  @cached_property
179
99
  def upload(self) -> UploadResource:
180
100
  return UploadResource(self._client)
@@ -183,10 +103,6 @@ class V1Resource(SyncAPIResource):
183
103
  def assignment_grader(self) -> AssignmentGraderResource:
184
104
  return AssignmentGraderResource(self._client)
185
105
 
186
- @cached_property
187
- def data_analyst(self) -> DataAnalystResource:
188
- return DataAnalystResource(self._client)
189
-
190
106
  @cached_property
191
107
  def with_raw_response(self) -> V1ResourceWithRawResponse:
192
108
  """
@@ -248,30 +164,6 @@ class AsyncV1Resource(AsyncAPIResource):
248
164
  def embed(self) -> AsyncEmbedResource:
249
165
  return AsyncEmbedResource(self._client)
250
166
 
251
- @cached_property
252
- def chat(self) -> AsyncChatResource:
253
- return AsyncChatResource(self._client)
254
-
255
- @cached_property
256
- def tests(self) -> AsyncTestsResource:
257
- return AsyncTestsResource(self._client)
258
-
259
- @cached_property
260
- def audio_recaps(self) -> AsyncAudioRecapsResource:
261
- return AsyncAudioRecapsResource(self._client)
262
-
263
- @cached_property
264
- def flashcards(self) -> AsyncFlashcardsResource:
265
- return AsyncFlashcardsResource(self._client)
266
-
267
- @cached_property
268
- def scenarios(self) -> AsyncScenariosResource:
269
- return AsyncScenariosResource(self._client)
270
-
271
- @cached_property
272
- def explainers(self) -> AsyncExplainersResource:
273
- return AsyncExplainersResource(self._client)
274
-
275
167
  @cached_property
276
168
  def upload(self) -> AsyncUploadResource:
277
169
  return AsyncUploadResource(self._client)
@@ -280,10 +172,6 @@ class AsyncV1Resource(AsyncAPIResource):
280
172
  def assignment_grader(self) -> AsyncAssignmentGraderResource:
281
173
  return AsyncAssignmentGraderResource(self._client)
282
174
 
283
- @cached_property
284
- def data_analyst(self) -> AsyncDataAnalystResource:
285
- return AsyncDataAnalystResource(self._client)
286
-
287
175
  @cached_property
288
176
  def with_raw_response(self) -> AsyncV1ResourceWithRawResponse:
289
177
  """
@@ -352,30 +240,6 @@ class V1ResourceWithRawResponse:
352
240
  def embed(self) -> EmbedResourceWithRawResponse:
353
241
  return EmbedResourceWithRawResponse(self._v1.embed)
354
242
 
355
- @cached_property
356
- def chat(self) -> ChatResourceWithRawResponse:
357
- return ChatResourceWithRawResponse(self._v1.chat)
358
-
359
- @cached_property
360
- def tests(self) -> TestsResourceWithRawResponse:
361
- return TestsResourceWithRawResponse(self._v1.tests)
362
-
363
- @cached_property
364
- def audio_recaps(self) -> AudioRecapsResourceWithRawResponse:
365
- return AudioRecapsResourceWithRawResponse(self._v1.audio_recaps)
366
-
367
- @cached_property
368
- def flashcards(self) -> FlashcardsResourceWithRawResponse:
369
- return FlashcardsResourceWithRawResponse(self._v1.flashcards)
370
-
371
- @cached_property
372
- def scenarios(self) -> ScenariosResourceWithRawResponse:
373
- return ScenariosResourceWithRawResponse(self._v1.scenarios)
374
-
375
- @cached_property
376
- def explainers(self) -> ExplainersResourceWithRawResponse:
377
- return ExplainersResourceWithRawResponse(self._v1.explainers)
378
-
379
243
  @cached_property
380
244
  def upload(self) -> UploadResourceWithRawResponse:
381
245
  return UploadResourceWithRawResponse(self._v1.upload)
@@ -384,10 +248,6 @@ class V1ResourceWithRawResponse:
384
248
  def assignment_grader(self) -> AssignmentGraderResourceWithRawResponse:
385
249
  return AssignmentGraderResourceWithRawResponse(self._v1.assignment_grader)
386
250
 
387
- @cached_property
388
- def data_analyst(self) -> DataAnalystResourceWithRawResponse:
389
- return DataAnalystResourceWithRawResponse(self._v1.data_analyst)
390
-
391
251
 
392
252
  class AsyncV1ResourceWithRawResponse:
393
253
  def __init__(self, v1: AsyncV1Resource) -> None:
@@ -417,30 +277,6 @@ class AsyncV1ResourceWithRawResponse:
417
277
  def embed(self) -> AsyncEmbedResourceWithRawResponse:
418
278
  return AsyncEmbedResourceWithRawResponse(self._v1.embed)
419
279
 
420
- @cached_property
421
- def chat(self) -> AsyncChatResourceWithRawResponse:
422
- return AsyncChatResourceWithRawResponse(self._v1.chat)
423
-
424
- @cached_property
425
- def tests(self) -> AsyncTestsResourceWithRawResponse:
426
- return AsyncTestsResourceWithRawResponse(self._v1.tests)
427
-
428
- @cached_property
429
- def audio_recaps(self) -> AsyncAudioRecapsResourceWithRawResponse:
430
- return AsyncAudioRecapsResourceWithRawResponse(self._v1.audio_recaps)
431
-
432
- @cached_property
433
- def flashcards(self) -> AsyncFlashcardsResourceWithRawResponse:
434
- return AsyncFlashcardsResourceWithRawResponse(self._v1.flashcards)
435
-
436
- @cached_property
437
- def scenarios(self) -> AsyncScenariosResourceWithRawResponse:
438
- return AsyncScenariosResourceWithRawResponse(self._v1.scenarios)
439
-
440
- @cached_property
441
- def explainers(self) -> AsyncExplainersResourceWithRawResponse:
442
- return AsyncExplainersResourceWithRawResponse(self._v1.explainers)
443
-
444
280
  @cached_property
445
281
  def upload(self) -> AsyncUploadResourceWithRawResponse:
446
282
  return AsyncUploadResourceWithRawResponse(self._v1.upload)
@@ -449,10 +285,6 @@ class AsyncV1ResourceWithRawResponse:
449
285
  def assignment_grader(self) -> AsyncAssignmentGraderResourceWithRawResponse:
450
286
  return AsyncAssignmentGraderResourceWithRawResponse(self._v1.assignment_grader)
451
287
 
452
- @cached_property
453
- def data_analyst(self) -> AsyncDataAnalystResourceWithRawResponse:
454
- return AsyncDataAnalystResourceWithRawResponse(self._v1.data_analyst)
455
-
456
288
 
457
289
  class V1ResourceWithStreamingResponse:
458
290
  def __init__(self, v1: V1Resource) -> None:
@@ -482,30 +314,6 @@ class V1ResourceWithStreamingResponse:
482
314
  def embed(self) -> EmbedResourceWithStreamingResponse:
483
315
  return EmbedResourceWithStreamingResponse(self._v1.embed)
484
316
 
485
- @cached_property
486
- def chat(self) -> ChatResourceWithStreamingResponse:
487
- return ChatResourceWithStreamingResponse(self._v1.chat)
488
-
489
- @cached_property
490
- def tests(self) -> TestsResourceWithStreamingResponse:
491
- return TestsResourceWithStreamingResponse(self._v1.tests)
492
-
493
- @cached_property
494
- def audio_recaps(self) -> AudioRecapsResourceWithStreamingResponse:
495
- return AudioRecapsResourceWithStreamingResponse(self._v1.audio_recaps)
496
-
497
- @cached_property
498
- def flashcards(self) -> FlashcardsResourceWithStreamingResponse:
499
- return FlashcardsResourceWithStreamingResponse(self._v1.flashcards)
500
-
501
- @cached_property
502
- def scenarios(self) -> ScenariosResourceWithStreamingResponse:
503
- return ScenariosResourceWithStreamingResponse(self._v1.scenarios)
504
-
505
- @cached_property
506
- def explainers(self) -> ExplainersResourceWithStreamingResponse:
507
- return ExplainersResourceWithStreamingResponse(self._v1.explainers)
508
-
509
317
  @cached_property
510
318
  def upload(self) -> UploadResourceWithStreamingResponse:
511
319
  return UploadResourceWithStreamingResponse(self._v1.upload)
@@ -514,10 +322,6 @@ class V1ResourceWithStreamingResponse:
514
322
  def assignment_grader(self) -> AssignmentGraderResourceWithStreamingResponse:
515
323
  return AssignmentGraderResourceWithStreamingResponse(self._v1.assignment_grader)
516
324
 
517
- @cached_property
518
- def data_analyst(self) -> DataAnalystResourceWithStreamingResponse:
519
- return DataAnalystResourceWithStreamingResponse(self._v1.data_analyst)
520
-
521
325
 
522
326
  class AsyncV1ResourceWithStreamingResponse:
523
327
  def __init__(self, v1: AsyncV1Resource) -> None:
@@ -547,30 +351,6 @@ class AsyncV1ResourceWithStreamingResponse:
547
351
  def embed(self) -> AsyncEmbedResourceWithStreamingResponse:
548
352
  return AsyncEmbedResourceWithStreamingResponse(self._v1.embed)
549
353
 
550
- @cached_property
551
- def chat(self) -> AsyncChatResourceWithStreamingResponse:
552
- return AsyncChatResourceWithStreamingResponse(self._v1.chat)
553
-
554
- @cached_property
555
- def tests(self) -> AsyncTestsResourceWithStreamingResponse:
556
- return AsyncTestsResourceWithStreamingResponse(self._v1.tests)
557
-
558
- @cached_property
559
- def audio_recaps(self) -> AsyncAudioRecapsResourceWithStreamingResponse:
560
- return AsyncAudioRecapsResourceWithStreamingResponse(self._v1.audio_recaps)
561
-
562
- @cached_property
563
- def flashcards(self) -> AsyncFlashcardsResourceWithStreamingResponse:
564
- return AsyncFlashcardsResourceWithStreamingResponse(self._v1.flashcards)
565
-
566
- @cached_property
567
- def scenarios(self) -> AsyncScenariosResourceWithStreamingResponse:
568
- return AsyncScenariosResourceWithStreamingResponse(self._v1.scenarios)
569
-
570
- @cached_property
571
- def explainers(self) -> AsyncExplainersResourceWithStreamingResponse:
572
- return AsyncExplainersResourceWithStreamingResponse(self._v1.explainers)
573
-
574
354
  @cached_property
575
355
  def upload(self) -> AsyncUploadResourceWithStreamingResponse:
576
356
  return AsyncUploadResourceWithStreamingResponse(self._v1.upload)
@@ -578,7 +358,3 @@ class AsyncV1ResourceWithStreamingResponse:
578
358
  @cached_property
579
359
  def assignment_grader(self) -> AsyncAssignmentGraderResourceWithStreamingResponse:
580
360
  return AsyncAssignmentGraderResourceWithStreamingResponse(self._v1.assignment_grader)
581
-
582
- @cached_property
583
- def data_analyst(self) -> AsyncDataAnalystResourceWithStreamingResponse:
584
- return AsyncDataAnalystResourceWithStreamingResponse(self._v1.data_analyst)