studyfetch-sdk 0.1.0a3__py3-none-any.whl → 0.1.0a5__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/_version.py +1 -1
- studyfetch_sdk/resources/v1/chat/chat.py +7 -7
- studyfetch_sdk/resources/v1/components.py +9 -8
- studyfetch_sdk/resources/v1/explainers.py +154 -9
- studyfetch_sdk/resources/v1/flashcards.py +16 -16
- studyfetch_sdk/resources/v1/scenarios/component.py +116 -12
- studyfetch_sdk/resources/v1/scenarios/scenarios.py +245 -9
- studyfetch_sdk/types/v1/__init__.py +2 -0
- studyfetch_sdk/types/v1/chat_send_message_params.py +3 -3
- studyfetch_sdk/types/v1/component_create_params.py +349 -3
- studyfetch_sdk/types/v1/component_create_response.py +3 -1
- studyfetch_sdk/types/v1/component_embed_params.py +3 -2
- studyfetch_sdk/types/v1/component_list_response.py +3 -1
- studyfetch_sdk/types/v1/component_retrieve_response.py +3 -1
- studyfetch_sdk/types/v1/component_update_response.py +3 -1
- studyfetch_sdk/types/v1/explainer_create_params.py +45 -0
- studyfetch_sdk/types/v1/explainer_handle_webhook_params.py +45 -3
- studyfetch_sdk/types/v1/flashcard_get_all_params.py +2 -2
- studyfetch_sdk/types/v1/flashcard_get_due_params.py +1 -1
- studyfetch_sdk/types/v1/flashcard_get_stats_params.py +2 -2
- studyfetch_sdk/types/v1/scenario_create_params.py +39 -2
- studyfetch_sdk/types/v1/scenario_submit_params.py +18 -0
- studyfetch_sdk/types/v1/scenario_update_params.py +39 -2
- studyfetch_sdk/types/v1/scenarios/component_update_params.py +39 -2
- {studyfetch_sdk-0.1.0a3.dist-info → studyfetch_sdk-0.1.0a5.dist-info}/METADATA +1 -1
- {studyfetch_sdk-0.1.0a3.dist-info → studyfetch_sdk-0.1.0a5.dist-info}/RECORD +28 -26
- {studyfetch_sdk-0.1.0a3.dist-info → studyfetch_sdk-0.1.0a5.dist-info}/WHEEL +0 -0
- {studyfetch_sdk-0.1.0a3.dist-info → studyfetch_sdk-0.1.0a5.dist-info}/licenses/LICENSE +0 -0
studyfetch_sdk/_version.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
4
|
|
5
|
-
from typing import Iterable
|
5
|
+
from typing import List, Iterable
|
6
6
|
|
7
7
|
import httpx
|
8
8
|
|
@@ -148,7 +148,7 @@ class ChatResource(SyncAPIResource):
|
|
148
148
|
message: chat_send_message_params.Message,
|
149
149
|
x_component_id: str,
|
150
150
|
context: object | NotGiven = NOT_GIVEN,
|
151
|
-
|
151
|
+
group_ids: List[str] | NotGiven = NOT_GIVEN,
|
152
152
|
session_id: str | NotGiven = NOT_GIVEN,
|
153
153
|
user_id: str | NotGiven = NOT_GIVEN,
|
154
154
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
@@ -166,7 +166,7 @@ class ChatResource(SyncAPIResource):
|
|
166
166
|
|
167
167
|
context: Additional context data
|
168
168
|
|
169
|
-
|
169
|
+
group_ids: Group IDs for collaboration
|
170
170
|
|
171
171
|
session_id: Session ID for conversation continuity
|
172
172
|
|
@@ -189,7 +189,7 @@ class ChatResource(SyncAPIResource):
|
|
189
189
|
"component_id": component_id,
|
190
190
|
"message": message,
|
191
191
|
"context": context,
|
192
|
-
"
|
192
|
+
"group_ids": group_ids,
|
193
193
|
"session_id": session_id,
|
194
194
|
"user_id": user_id,
|
195
195
|
},
|
@@ -360,7 +360,7 @@ class AsyncChatResource(AsyncAPIResource):
|
|
360
360
|
message: chat_send_message_params.Message,
|
361
361
|
x_component_id: str,
|
362
362
|
context: object | NotGiven = NOT_GIVEN,
|
363
|
-
|
363
|
+
group_ids: List[str] | NotGiven = NOT_GIVEN,
|
364
364
|
session_id: str | NotGiven = NOT_GIVEN,
|
365
365
|
user_id: str | NotGiven = NOT_GIVEN,
|
366
366
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
@@ -378,7 +378,7 @@ class AsyncChatResource(AsyncAPIResource):
|
|
378
378
|
|
379
379
|
context: Additional context data
|
380
380
|
|
381
|
-
|
381
|
+
group_ids: Group IDs for collaboration
|
382
382
|
|
383
383
|
session_id: Session ID for conversation continuity
|
384
384
|
|
@@ -401,7 +401,7 @@ class AsyncChatResource(AsyncAPIResource):
|
|
401
401
|
"component_id": component_id,
|
402
402
|
"message": message,
|
403
403
|
"context": context,
|
404
|
-
"
|
404
|
+
"group_ids": group_ids,
|
405
405
|
"session_id": session_id,
|
406
406
|
"user_id": user_id,
|
407
407
|
},
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
4
|
|
5
|
+
from typing import List
|
5
6
|
from typing_extensions import Literal
|
6
7
|
|
7
8
|
import httpx
|
@@ -50,7 +51,7 @@ class ComponentsResource(SyncAPIResource):
|
|
50
51
|
def create(
|
51
52
|
self,
|
52
53
|
*,
|
53
|
-
config:
|
54
|
+
config: component_create_params.Config,
|
54
55
|
name: str,
|
55
56
|
origin: Literal["chat", "classroom", "upload", "console", "api"],
|
56
57
|
type: Literal[
|
@@ -322,7 +323,7 @@ class ComponentsResource(SyncAPIResource):
|
|
322
323
|
*,
|
323
324
|
expiry_hours: float | NotGiven = NOT_GIVEN,
|
324
325
|
features: component_embed_params.Features | NotGiven = NOT_GIVEN,
|
325
|
-
|
326
|
+
group_ids: List[str] | NotGiven = NOT_GIVEN,
|
326
327
|
height: str | NotGiven = NOT_GIVEN,
|
327
328
|
session_id: str | NotGiven = NOT_GIVEN,
|
328
329
|
theme: component_embed_params.Theme | NotGiven = NOT_GIVEN,
|
@@ -343,7 +344,7 @@ class ComponentsResource(SyncAPIResource):
|
|
343
344
|
|
344
345
|
features: Feature toggles
|
345
346
|
|
346
|
-
|
347
|
+
group_ids: Group IDs for collaboration
|
347
348
|
|
348
349
|
height: Embed height (e.g., "400px", "100vh")
|
349
350
|
|
@@ -371,7 +372,7 @@ class ComponentsResource(SyncAPIResource):
|
|
371
372
|
{
|
372
373
|
"expiry_hours": expiry_hours,
|
373
374
|
"features": features,
|
374
|
-
"
|
375
|
+
"group_ids": group_ids,
|
375
376
|
"height": height,
|
376
377
|
"session_id": session_id,
|
377
378
|
"theme": theme,
|
@@ -442,7 +443,7 @@ class AsyncComponentsResource(AsyncAPIResource):
|
|
442
443
|
async def create(
|
443
444
|
self,
|
444
445
|
*,
|
445
|
-
config:
|
446
|
+
config: component_create_params.Config,
|
446
447
|
name: str,
|
447
448
|
origin: Literal["chat", "classroom", "upload", "console", "api"],
|
448
449
|
type: Literal[
|
@@ -714,7 +715,7 @@ class AsyncComponentsResource(AsyncAPIResource):
|
|
714
715
|
*,
|
715
716
|
expiry_hours: float | NotGiven = NOT_GIVEN,
|
716
717
|
features: component_embed_params.Features | NotGiven = NOT_GIVEN,
|
717
|
-
|
718
|
+
group_ids: List[str] | NotGiven = NOT_GIVEN,
|
718
719
|
height: str | NotGiven = NOT_GIVEN,
|
719
720
|
session_id: str | NotGiven = NOT_GIVEN,
|
720
721
|
theme: component_embed_params.Theme | NotGiven = NOT_GIVEN,
|
@@ -735,7 +736,7 @@ class AsyncComponentsResource(AsyncAPIResource):
|
|
735
736
|
|
736
737
|
features: Feature toggles
|
737
738
|
|
738
|
-
|
739
|
+
group_ids: Group IDs for collaboration
|
739
740
|
|
740
741
|
height: Embed height (e.g., "400px", "100vh")
|
741
742
|
|
@@ -763,7 +764,7 @@ class AsyncComponentsResource(AsyncAPIResource):
|
|
763
764
|
{
|
764
765
|
"expiry_hours": expiry_hours,
|
765
766
|
"features": features,
|
766
|
-
"
|
767
|
+
"group_ids": group_ids,
|
767
768
|
"height": height,
|
768
769
|
"session_id": session_id,
|
769
770
|
"theme": theme,
|
@@ -2,12 +2,15 @@
|
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
4
|
|
5
|
+
from typing import List
|
6
|
+
from typing_extensions import Literal
|
7
|
+
|
5
8
|
import httpx
|
6
9
|
|
7
10
|
from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
|
8
11
|
from ..._utils import maybe_transform, async_maybe_transform
|
9
12
|
from ..._compat import cached_property
|
10
|
-
from ...types.v1 import explainer_handle_webhook_params
|
13
|
+
from ...types.v1 import explainer_create_params, explainer_handle_webhook_params
|
11
14
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
12
15
|
from ..._response import (
|
13
16
|
to_raw_response_wrapper,
|
@@ -43,6 +46,17 @@ class ExplainersResource(SyncAPIResource):
|
|
43
46
|
def create(
|
44
47
|
self,
|
45
48
|
*,
|
49
|
+
component_id: str,
|
50
|
+
folder_ids: List[str],
|
51
|
+
material_ids: List[str],
|
52
|
+
target_length: float,
|
53
|
+
title: str,
|
54
|
+
image_search: bool | NotGiven = NOT_GIVEN,
|
55
|
+
model: str | NotGiven = NOT_GIVEN,
|
56
|
+
style: str | NotGiven = NOT_GIVEN,
|
57
|
+
user_id: str | NotGiven = NOT_GIVEN,
|
58
|
+
vertical_video: bool | NotGiven = NOT_GIVEN,
|
59
|
+
web_search: bool | NotGiven = NOT_GIVEN,
|
46
60
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
47
61
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
48
62
|
extra_headers: Headers | None = None,
|
@@ -50,10 +64,59 @@ class ExplainersResource(SyncAPIResource):
|
|
50
64
|
extra_body: Body | None = None,
|
51
65
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
52
66
|
) -> None:
|
53
|
-
"""
|
67
|
+
"""
|
68
|
+
Create explainers component
|
69
|
+
|
70
|
+
Args:
|
71
|
+
component_id: Component ID
|
72
|
+
|
73
|
+
folder_ids: Folder IDs to include
|
74
|
+
|
75
|
+
material_ids: Material IDs to include
|
76
|
+
|
77
|
+
target_length: Target video length in seconds
|
78
|
+
|
79
|
+
title: Title for the explainer video
|
80
|
+
|
81
|
+
image_search: Enable image search for visuals
|
82
|
+
|
83
|
+
model: AI model to use
|
84
|
+
|
85
|
+
style: Video style
|
86
|
+
|
87
|
+
user_id: User ID
|
88
|
+
|
89
|
+
vertical_video: Create vertical video format (9:16)
|
90
|
+
|
91
|
+
web_search: Enable web search for additional content
|
92
|
+
|
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
|
+
"""
|
54
101
|
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
55
102
|
return self._post(
|
56
103
|
"/api/v1/explainers/create",
|
104
|
+
body=maybe_transform(
|
105
|
+
{
|
106
|
+
"component_id": component_id,
|
107
|
+
"folder_ids": folder_ids,
|
108
|
+
"material_ids": material_ids,
|
109
|
+
"target_length": target_length,
|
110
|
+
"title": title,
|
111
|
+
"image_search": image_search,
|
112
|
+
"model": model,
|
113
|
+
"style": style,
|
114
|
+
"user_id": user_id,
|
115
|
+
"vertical_video": vertical_video,
|
116
|
+
"web_search": web_search,
|
117
|
+
},
|
118
|
+
explainer_create_params.ExplainerCreateParams,
|
119
|
+
),
|
57
120
|
options=make_request_options(
|
58
121
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
59
122
|
),
|
@@ -63,7 +126,8 @@ class ExplainersResource(SyncAPIResource):
|
|
63
126
|
def handle_webhook(
|
64
127
|
self,
|
65
128
|
*,
|
66
|
-
|
129
|
+
event: Literal["video.completed", "video.progress", "video.failed"],
|
130
|
+
video: explainer_handle_webhook_params.Video,
|
67
131
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
68
132
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
69
133
|
extra_headers: Headers | None = None,
|
@@ -72,9 +136,13 @@ class ExplainersResource(SyncAPIResource):
|
|
72
136
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
73
137
|
) -> None:
|
74
138
|
"""
|
75
|
-
Handle webhook events
|
139
|
+
Handle explainer video webhook events
|
76
140
|
|
77
141
|
Args:
|
142
|
+
event: Webhook event type
|
143
|
+
|
144
|
+
video: Video data
|
145
|
+
|
78
146
|
extra_headers: Send extra headers
|
79
147
|
|
80
148
|
extra_query: Add additional query parameters to the request
|
@@ -86,7 +154,13 @@ class ExplainersResource(SyncAPIResource):
|
|
86
154
|
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
87
155
|
return self._post(
|
88
156
|
"/api/v1/explainers/webhook",
|
89
|
-
body=maybe_transform(
|
157
|
+
body=maybe_transform(
|
158
|
+
{
|
159
|
+
"event": event,
|
160
|
+
"video": video,
|
161
|
+
},
|
162
|
+
explainer_handle_webhook_params.ExplainerHandleWebhookParams,
|
163
|
+
),
|
90
164
|
options=make_request_options(
|
91
165
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
92
166
|
),
|
@@ -117,6 +191,17 @@ class AsyncExplainersResource(AsyncAPIResource):
|
|
117
191
|
async def create(
|
118
192
|
self,
|
119
193
|
*,
|
194
|
+
component_id: str,
|
195
|
+
folder_ids: List[str],
|
196
|
+
material_ids: List[str],
|
197
|
+
target_length: float,
|
198
|
+
title: str,
|
199
|
+
image_search: bool | NotGiven = NOT_GIVEN,
|
200
|
+
model: str | NotGiven = NOT_GIVEN,
|
201
|
+
style: str | NotGiven = NOT_GIVEN,
|
202
|
+
user_id: str | NotGiven = NOT_GIVEN,
|
203
|
+
vertical_video: bool | NotGiven = NOT_GIVEN,
|
204
|
+
web_search: bool | NotGiven = NOT_GIVEN,
|
120
205
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
121
206
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
122
207
|
extra_headers: Headers | None = None,
|
@@ -124,10 +209,59 @@ class AsyncExplainersResource(AsyncAPIResource):
|
|
124
209
|
extra_body: Body | None = None,
|
125
210
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
126
211
|
) -> None:
|
127
|
-
"""
|
212
|
+
"""
|
213
|
+
Create explainers component
|
214
|
+
|
215
|
+
Args:
|
216
|
+
component_id: Component ID
|
217
|
+
|
218
|
+
folder_ids: Folder IDs to include
|
219
|
+
|
220
|
+
material_ids: Material IDs to include
|
221
|
+
|
222
|
+
target_length: Target video length in seconds
|
223
|
+
|
224
|
+
title: Title for the explainer video
|
225
|
+
|
226
|
+
image_search: Enable image search for visuals
|
227
|
+
|
228
|
+
model: AI model to use
|
229
|
+
|
230
|
+
style: Video style
|
231
|
+
|
232
|
+
user_id: User ID
|
233
|
+
|
234
|
+
vertical_video: Create vertical video format (9:16)
|
235
|
+
|
236
|
+
web_search: Enable web search for additional content
|
237
|
+
|
238
|
+
extra_headers: Send extra headers
|
239
|
+
|
240
|
+
extra_query: Add additional query parameters to the request
|
241
|
+
|
242
|
+
extra_body: Add additional JSON properties to the request
|
243
|
+
|
244
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
245
|
+
"""
|
128
246
|
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
129
247
|
return await self._post(
|
130
248
|
"/api/v1/explainers/create",
|
249
|
+
body=await async_maybe_transform(
|
250
|
+
{
|
251
|
+
"component_id": component_id,
|
252
|
+
"folder_ids": folder_ids,
|
253
|
+
"material_ids": material_ids,
|
254
|
+
"target_length": target_length,
|
255
|
+
"title": title,
|
256
|
+
"image_search": image_search,
|
257
|
+
"model": model,
|
258
|
+
"style": style,
|
259
|
+
"user_id": user_id,
|
260
|
+
"vertical_video": vertical_video,
|
261
|
+
"web_search": web_search,
|
262
|
+
},
|
263
|
+
explainer_create_params.ExplainerCreateParams,
|
264
|
+
),
|
131
265
|
options=make_request_options(
|
132
266
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
133
267
|
),
|
@@ -137,7 +271,8 @@ class AsyncExplainersResource(AsyncAPIResource):
|
|
137
271
|
async def handle_webhook(
|
138
272
|
self,
|
139
273
|
*,
|
140
|
-
|
274
|
+
event: Literal["video.completed", "video.progress", "video.failed"],
|
275
|
+
video: explainer_handle_webhook_params.Video,
|
141
276
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
142
277
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
143
278
|
extra_headers: Headers | None = None,
|
@@ -146,9 +281,13 @@ class AsyncExplainersResource(AsyncAPIResource):
|
|
146
281
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
147
282
|
) -> None:
|
148
283
|
"""
|
149
|
-
Handle webhook events
|
284
|
+
Handle explainer video webhook events
|
150
285
|
|
151
286
|
Args:
|
287
|
+
event: Webhook event type
|
288
|
+
|
289
|
+
video: Video data
|
290
|
+
|
152
291
|
extra_headers: Send extra headers
|
153
292
|
|
154
293
|
extra_query: Add additional query parameters to the request
|
@@ -160,7 +299,13 @@ class AsyncExplainersResource(AsyncAPIResource):
|
|
160
299
|
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
161
300
|
return await self._post(
|
162
301
|
"/api/v1/explainers/webhook",
|
163
|
-
body=await async_maybe_transform(
|
302
|
+
body=await async_maybe_transform(
|
303
|
+
{
|
304
|
+
"event": event,
|
305
|
+
"video": video,
|
306
|
+
},
|
307
|
+
explainer_handle_webhook_params.ExplainerHandleWebhookParams,
|
308
|
+
),
|
164
309
|
options=make_request_options(
|
165
310
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
166
311
|
),
|
@@ -122,7 +122,7 @@ class FlashcardsResource(SyncAPIResource):
|
|
122
122
|
self,
|
123
123
|
component_id: str,
|
124
124
|
*,
|
125
|
-
|
125
|
+
group_ids: str | NotGiven = NOT_GIVEN,
|
126
126
|
limit: float | NotGiven = NOT_GIVEN,
|
127
127
|
offset: float | NotGiven = NOT_GIVEN,
|
128
128
|
user_id: str | NotGiven = NOT_GIVEN,
|
@@ -137,7 +137,7 @@ class FlashcardsResource(SyncAPIResource):
|
|
137
137
|
Get all flashcards for component
|
138
138
|
|
139
139
|
Args:
|
140
|
-
|
140
|
+
group_ids: Group IDs (comma-separated)
|
141
141
|
|
142
142
|
limit: Max number of cards
|
143
143
|
|
@@ -165,7 +165,7 @@ class FlashcardsResource(SyncAPIResource):
|
|
165
165
|
timeout=timeout,
|
166
166
|
query=maybe_transform(
|
167
167
|
{
|
168
|
-
"
|
168
|
+
"group_ids": group_ids,
|
169
169
|
"limit": limit,
|
170
170
|
"offset": offset,
|
171
171
|
"user_id": user_id,
|
@@ -180,7 +180,7 @@ class FlashcardsResource(SyncAPIResource):
|
|
180
180
|
self,
|
181
181
|
component_id: str,
|
182
182
|
*,
|
183
|
-
|
183
|
+
group_ids: str,
|
184
184
|
limit: float | NotGiven = NOT_GIVEN,
|
185
185
|
user_id: str | NotGiven = NOT_GIVEN,
|
186
186
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
@@ -218,7 +218,7 @@ class FlashcardsResource(SyncAPIResource):
|
|
218
218
|
timeout=timeout,
|
219
219
|
query=maybe_transform(
|
220
220
|
{
|
221
|
-
"
|
221
|
+
"group_ids": group_ids,
|
222
222
|
"limit": limit,
|
223
223
|
"user_id": user_id,
|
224
224
|
},
|
@@ -232,7 +232,7 @@ class FlashcardsResource(SyncAPIResource):
|
|
232
232
|
self,
|
233
233
|
component_id: str,
|
234
234
|
*,
|
235
|
-
|
235
|
+
group_ids: str | NotGiven = NOT_GIVEN,
|
236
236
|
user_id: str | NotGiven = NOT_GIVEN,
|
237
237
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
238
238
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
@@ -245,7 +245,7 @@ class FlashcardsResource(SyncAPIResource):
|
|
245
245
|
Get flashcard statistics
|
246
246
|
|
247
247
|
Args:
|
248
|
-
|
248
|
+
group_ids: Group IDs (comma-separated)
|
249
249
|
|
250
250
|
user_id: User ID
|
251
251
|
|
@@ -269,7 +269,7 @@ class FlashcardsResource(SyncAPIResource):
|
|
269
269
|
timeout=timeout,
|
270
270
|
query=maybe_transform(
|
271
271
|
{
|
272
|
-
"
|
272
|
+
"group_ids": group_ids,
|
273
273
|
"user_id": user_id,
|
274
274
|
},
|
275
275
|
flashcard_get_stats_params.FlashcardGetStatsParams,
|
@@ -444,7 +444,7 @@ class AsyncFlashcardsResource(AsyncAPIResource):
|
|
444
444
|
self,
|
445
445
|
component_id: str,
|
446
446
|
*,
|
447
|
-
|
447
|
+
group_ids: str | NotGiven = NOT_GIVEN,
|
448
448
|
limit: float | NotGiven = NOT_GIVEN,
|
449
449
|
offset: float | NotGiven = NOT_GIVEN,
|
450
450
|
user_id: str | NotGiven = NOT_GIVEN,
|
@@ -459,7 +459,7 @@ class AsyncFlashcardsResource(AsyncAPIResource):
|
|
459
459
|
Get all flashcards for component
|
460
460
|
|
461
461
|
Args:
|
462
|
-
|
462
|
+
group_ids: Group IDs (comma-separated)
|
463
463
|
|
464
464
|
limit: Max number of cards
|
465
465
|
|
@@ -487,7 +487,7 @@ class AsyncFlashcardsResource(AsyncAPIResource):
|
|
487
487
|
timeout=timeout,
|
488
488
|
query=await async_maybe_transform(
|
489
489
|
{
|
490
|
-
"
|
490
|
+
"group_ids": group_ids,
|
491
491
|
"limit": limit,
|
492
492
|
"offset": offset,
|
493
493
|
"user_id": user_id,
|
@@ -502,7 +502,7 @@ class AsyncFlashcardsResource(AsyncAPIResource):
|
|
502
502
|
self,
|
503
503
|
component_id: str,
|
504
504
|
*,
|
505
|
-
|
505
|
+
group_ids: str,
|
506
506
|
limit: float | NotGiven = NOT_GIVEN,
|
507
507
|
user_id: str | NotGiven = NOT_GIVEN,
|
508
508
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
@@ -540,7 +540,7 @@ class AsyncFlashcardsResource(AsyncAPIResource):
|
|
540
540
|
timeout=timeout,
|
541
541
|
query=await async_maybe_transform(
|
542
542
|
{
|
543
|
-
"
|
543
|
+
"group_ids": group_ids,
|
544
544
|
"limit": limit,
|
545
545
|
"user_id": user_id,
|
546
546
|
},
|
@@ -554,7 +554,7 @@ class AsyncFlashcardsResource(AsyncAPIResource):
|
|
554
554
|
self,
|
555
555
|
component_id: str,
|
556
556
|
*,
|
557
|
-
|
557
|
+
group_ids: str | NotGiven = NOT_GIVEN,
|
558
558
|
user_id: str | NotGiven = NOT_GIVEN,
|
559
559
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
560
560
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
@@ -567,7 +567,7 @@ class AsyncFlashcardsResource(AsyncAPIResource):
|
|
567
567
|
Get flashcard statistics
|
568
568
|
|
569
569
|
Args:
|
570
|
-
|
570
|
+
group_ids: Group IDs (comma-separated)
|
571
571
|
|
572
572
|
user_id: User ID
|
573
573
|
|
@@ -591,7 +591,7 @@ class AsyncFlashcardsResource(AsyncAPIResource):
|
|
591
591
|
timeout=timeout,
|
592
592
|
query=await async_maybe_transform(
|
593
593
|
{
|
594
|
-
"
|
594
|
+
"group_ids": group_ids,
|
595
595
|
"user_id": user_id,
|
596
596
|
},
|
597
597
|
flashcard_get_stats_params.FlashcardGetStatsParams,
|