studyfetch-sdk 0.1.0a2__py3-none-any.whl → 0.1.0a4__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/__init__.py +0 -14
- studyfetch_sdk/resources/v1/auth/__init__.py +0 -28
- studyfetch_sdk/resources/v1/auth/auth.py +0 -504
- studyfetch_sdk/resources/v1/auth/number_2fa.py +1 -294
- studyfetch_sdk/resources/v1/chat/chat.py +7 -7
- studyfetch_sdk/resources/v1/components.py +9 -8
- studyfetch_sdk/resources/v1/flashcards.py +16 -16
- studyfetch_sdk/resources/v1/usage.py +1 -593
- studyfetch_sdk/resources/v1/v1.py +0 -32
- studyfetch_sdk/types/v1/__init__.py +0 -5
- studyfetch_sdk/types/v1/auth/__init__.py +0 -8
- studyfetch_sdk/types/v1/chat_send_message_params.py +3 -3
- studyfetch_sdk/types/v1/component_create_params.py +295 -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/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-0.1.0a2.dist-info → studyfetch_sdk-0.1.0a4.dist-info}/METADATA +11 -35
- {studyfetch_sdk-0.1.0a2.dist-info → studyfetch_sdk-0.1.0a4.dist-info}/RECORD +26 -54
- studyfetch_sdk/resources/v1/auth/login.py +0 -374
- studyfetch_sdk/resources/v1/auth/organization_invites.py +0 -160
- studyfetch_sdk/resources/v1/organizations/__init__.py +0 -103
- studyfetch_sdk/resources/v1/organizations/api_keys.py +0 -260
- studyfetch_sdk/resources/v1/organizations/logo/__init__.py +0 -33
- studyfetch_sdk/resources/v1/organizations/logo/logo.py +0 -166
- studyfetch_sdk/resources/v1/organizations/logo/upload.py +0 -184
- studyfetch_sdk/resources/v1/organizations/organizations.py +0 -428
- studyfetch_sdk/resources/v1/organizations/profile/__init__.py +0 -47
- studyfetch_sdk/resources/v1/organizations/profile/models.py +0 -134
- studyfetch_sdk/resources/v1/organizations/profile/profile.py +0 -248
- studyfetch_sdk/resources/v1/organizations/profile/team.py +0 -462
- studyfetch_sdk/resources/v1/organizations/team/__init__.py +0 -33
- studyfetch_sdk/resources/v1/organizations/team/invite.py +0 -236
- studyfetch_sdk/resources/v1/organizations/team/team.py +0 -564
- studyfetch_sdk/resources/v1/organizations/theme.py +0 -184
- studyfetch_sdk/resources/v1/organizations/usage.py +0 -210
- studyfetch_sdk/types/v1/auth/login_authenticate_params.py +0 -15
- studyfetch_sdk/types/v1/auth/login_verify_2fa_params.py +0 -15
- studyfetch_sdk/types/v1/auth/login_verify_backup_code_params.py +0 -17
- studyfetch_sdk/types/v1/auth/number_2fa_disable_params.py +0 -12
- studyfetch_sdk/types/v1/auth/number_2fa_enable_params.py +0 -12
- studyfetch_sdk/types/v1/auth/number_2fa_regenerate_backup_codes_params.py +0 -12
- studyfetch_sdk/types/v1/auth_register_new_user_params.py +0 -23
- studyfetch_sdk/types/v1/auth_request_password_reset_params.py +0 -12
- studyfetch_sdk/types/v1/auth_reset_password_params.py +0 -17
- studyfetch_sdk/types/v1/usage_track_chat_params.py +0 -54
- studyfetch_sdk/types/v1/usage_track_event_params.py +0 -128
- {studyfetch_sdk-0.1.0a2.dist-info → studyfetch_sdk-0.1.0a4.dist-info}/WHEEL +0 -0
- {studyfetch_sdk-0.1.0a2.dist-info → studyfetch_sdk-0.1.0a4.dist-info}/licenses/LICENSE +0 -0
@@ -15,12 +15,7 @@ from ...._response import (
|
|
15
15
|
async_to_streamed_response_wrapper,
|
16
16
|
)
|
17
17
|
from ...._base_client import make_request_options
|
18
|
-
from ....types.v1.auth import
|
19
|
-
number_2fa_enable_params,
|
20
|
-
number_2fa_disable_params,
|
21
|
-
number_2fa_send_code_params,
|
22
|
-
number_2fa_regenerate_backup_codes_params,
|
23
|
-
)
|
18
|
+
from ....types.v1.auth import number_2fa_send_code_params
|
24
19
|
|
25
20
|
__all__ = ["Number2faResource", "AsyncNumber2faResource"]
|
26
21
|
|
@@ -45,126 +40,6 @@ class Number2faResource(SyncAPIResource):
|
|
45
40
|
"""
|
46
41
|
return Number2faResourceWithStreamingResponse(self)
|
47
42
|
|
48
|
-
def disable(
|
49
|
-
self,
|
50
|
-
*,
|
51
|
-
password: str,
|
52
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
53
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
54
|
-
extra_headers: Headers | None = None,
|
55
|
-
extra_query: Query | None = None,
|
56
|
-
extra_body: Body | None = None,
|
57
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
58
|
-
) -> None:
|
59
|
-
"""
|
60
|
-
Args:
|
61
|
-
password: User password for verification
|
62
|
-
|
63
|
-
extra_headers: Send extra headers
|
64
|
-
|
65
|
-
extra_query: Add additional query parameters to the request
|
66
|
-
|
67
|
-
extra_body: Add additional JSON properties to the request
|
68
|
-
|
69
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
70
|
-
"""
|
71
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
72
|
-
return self._post(
|
73
|
-
"/api/v1/auth/2fa/disable",
|
74
|
-
body=maybe_transform({"password": password}, number_2fa_disable_params.Number2faDisableParams),
|
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
|
-
def enable(
|
82
|
-
self,
|
83
|
-
*,
|
84
|
-
password: str,
|
85
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
86
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
87
|
-
extra_headers: Headers | None = None,
|
88
|
-
extra_query: Query | None = None,
|
89
|
-
extra_body: Body | None = None,
|
90
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
91
|
-
) -> None:
|
92
|
-
"""
|
93
|
-
Args:
|
94
|
-
password: User password for verification
|
95
|
-
|
96
|
-
extra_headers: Send extra headers
|
97
|
-
|
98
|
-
extra_query: Add additional query parameters to the request
|
99
|
-
|
100
|
-
extra_body: Add additional JSON properties to the request
|
101
|
-
|
102
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
103
|
-
"""
|
104
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
105
|
-
return self._post(
|
106
|
-
"/api/v1/auth/2fa/enable",
|
107
|
-
body=maybe_transform({"password": password}, number_2fa_enable_params.Number2faEnableParams),
|
108
|
-
options=make_request_options(
|
109
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
110
|
-
),
|
111
|
-
cast_to=NoneType,
|
112
|
-
)
|
113
|
-
|
114
|
-
def get_status(
|
115
|
-
self,
|
116
|
-
*,
|
117
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
118
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
119
|
-
extra_headers: Headers | None = None,
|
120
|
-
extra_query: Query | None = None,
|
121
|
-
extra_body: Body | None = None,
|
122
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
123
|
-
) -> None:
|
124
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
125
|
-
return self._get(
|
126
|
-
"/api/v1/auth/2fa/status",
|
127
|
-
options=make_request_options(
|
128
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
129
|
-
),
|
130
|
-
cast_to=NoneType,
|
131
|
-
)
|
132
|
-
|
133
|
-
def regenerate_backup_codes(
|
134
|
-
self,
|
135
|
-
*,
|
136
|
-
password: str,
|
137
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
138
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
139
|
-
extra_headers: Headers | None = None,
|
140
|
-
extra_query: Query | None = None,
|
141
|
-
extra_body: Body | None = None,
|
142
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
143
|
-
) -> None:
|
144
|
-
"""
|
145
|
-
Args:
|
146
|
-
password: User password for verification
|
147
|
-
|
148
|
-
extra_headers: Send extra headers
|
149
|
-
|
150
|
-
extra_query: Add additional query parameters to the request
|
151
|
-
|
152
|
-
extra_body: Add additional JSON properties to the request
|
153
|
-
|
154
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
155
|
-
"""
|
156
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
157
|
-
return self._post(
|
158
|
-
"/api/v1/auth/2fa/regenerate-backup-codes",
|
159
|
-
body=maybe_transform(
|
160
|
-
{"password": password}, number_2fa_regenerate_backup_codes_params.Number2faRegenerateBackupCodesParams
|
161
|
-
),
|
162
|
-
options=make_request_options(
|
163
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
164
|
-
),
|
165
|
-
cast_to=NoneType,
|
166
|
-
)
|
167
|
-
|
168
43
|
def send_code(
|
169
44
|
self,
|
170
45
|
*,
|
@@ -219,126 +94,6 @@ class AsyncNumber2faResource(AsyncAPIResource):
|
|
219
94
|
"""
|
220
95
|
return AsyncNumber2faResourceWithStreamingResponse(self)
|
221
96
|
|
222
|
-
async def disable(
|
223
|
-
self,
|
224
|
-
*,
|
225
|
-
password: str,
|
226
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
227
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
228
|
-
extra_headers: Headers | None = None,
|
229
|
-
extra_query: Query | None = None,
|
230
|
-
extra_body: Body | None = None,
|
231
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
232
|
-
) -> None:
|
233
|
-
"""
|
234
|
-
Args:
|
235
|
-
password: User password for verification
|
236
|
-
|
237
|
-
extra_headers: Send extra headers
|
238
|
-
|
239
|
-
extra_query: Add additional query parameters to the request
|
240
|
-
|
241
|
-
extra_body: Add additional JSON properties to the request
|
242
|
-
|
243
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
244
|
-
"""
|
245
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
246
|
-
return await self._post(
|
247
|
-
"/api/v1/auth/2fa/disable",
|
248
|
-
body=await async_maybe_transform({"password": password}, number_2fa_disable_params.Number2faDisableParams),
|
249
|
-
options=make_request_options(
|
250
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
251
|
-
),
|
252
|
-
cast_to=NoneType,
|
253
|
-
)
|
254
|
-
|
255
|
-
async def enable(
|
256
|
-
self,
|
257
|
-
*,
|
258
|
-
password: str,
|
259
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
260
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
261
|
-
extra_headers: Headers | None = None,
|
262
|
-
extra_query: Query | None = None,
|
263
|
-
extra_body: Body | None = None,
|
264
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
265
|
-
) -> None:
|
266
|
-
"""
|
267
|
-
Args:
|
268
|
-
password: User password for verification
|
269
|
-
|
270
|
-
extra_headers: Send extra headers
|
271
|
-
|
272
|
-
extra_query: Add additional query parameters to the request
|
273
|
-
|
274
|
-
extra_body: Add additional JSON properties to the request
|
275
|
-
|
276
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
277
|
-
"""
|
278
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
279
|
-
return await self._post(
|
280
|
-
"/api/v1/auth/2fa/enable",
|
281
|
-
body=await async_maybe_transform({"password": password}, number_2fa_enable_params.Number2faEnableParams),
|
282
|
-
options=make_request_options(
|
283
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
284
|
-
),
|
285
|
-
cast_to=NoneType,
|
286
|
-
)
|
287
|
-
|
288
|
-
async def get_status(
|
289
|
-
self,
|
290
|
-
*,
|
291
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
292
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
293
|
-
extra_headers: Headers | None = None,
|
294
|
-
extra_query: Query | None = None,
|
295
|
-
extra_body: Body | None = None,
|
296
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
297
|
-
) -> None:
|
298
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
299
|
-
return await self._get(
|
300
|
-
"/api/v1/auth/2fa/status",
|
301
|
-
options=make_request_options(
|
302
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
303
|
-
),
|
304
|
-
cast_to=NoneType,
|
305
|
-
)
|
306
|
-
|
307
|
-
async def regenerate_backup_codes(
|
308
|
-
self,
|
309
|
-
*,
|
310
|
-
password: str,
|
311
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
312
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
313
|
-
extra_headers: Headers | None = None,
|
314
|
-
extra_query: Query | None = None,
|
315
|
-
extra_body: Body | None = None,
|
316
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
317
|
-
) -> None:
|
318
|
-
"""
|
319
|
-
Args:
|
320
|
-
password: User password for verification
|
321
|
-
|
322
|
-
extra_headers: Send extra headers
|
323
|
-
|
324
|
-
extra_query: Add additional query parameters to the request
|
325
|
-
|
326
|
-
extra_body: Add additional JSON properties to the request
|
327
|
-
|
328
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
329
|
-
"""
|
330
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
331
|
-
return await self._post(
|
332
|
-
"/api/v1/auth/2fa/regenerate-backup-codes",
|
333
|
-
body=await async_maybe_transform(
|
334
|
-
{"password": password}, number_2fa_regenerate_backup_codes_params.Number2faRegenerateBackupCodesParams
|
335
|
-
),
|
336
|
-
options=make_request_options(
|
337
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
338
|
-
),
|
339
|
-
cast_to=NoneType,
|
340
|
-
)
|
341
|
-
|
342
97
|
async def send_code(
|
343
98
|
self,
|
344
99
|
*,
|
@@ -377,18 +132,6 @@ class Number2faResourceWithRawResponse:
|
|
377
132
|
def __init__(self, number_2fa: Number2faResource) -> None:
|
378
133
|
self._number_2fa = number_2fa
|
379
134
|
|
380
|
-
self.disable = to_raw_response_wrapper(
|
381
|
-
number_2fa.disable,
|
382
|
-
)
|
383
|
-
self.enable = to_raw_response_wrapper(
|
384
|
-
number_2fa.enable,
|
385
|
-
)
|
386
|
-
self.get_status = to_raw_response_wrapper(
|
387
|
-
number_2fa.get_status,
|
388
|
-
)
|
389
|
-
self.regenerate_backup_codes = to_raw_response_wrapper(
|
390
|
-
number_2fa.regenerate_backup_codes,
|
391
|
-
)
|
392
135
|
self.send_code = to_raw_response_wrapper(
|
393
136
|
number_2fa.send_code,
|
394
137
|
)
|
@@ -398,18 +141,6 @@ class AsyncNumber2faResourceWithRawResponse:
|
|
398
141
|
def __init__(self, number_2fa: AsyncNumber2faResource) -> None:
|
399
142
|
self._number_2fa = number_2fa
|
400
143
|
|
401
|
-
self.disable = async_to_raw_response_wrapper(
|
402
|
-
number_2fa.disable,
|
403
|
-
)
|
404
|
-
self.enable = async_to_raw_response_wrapper(
|
405
|
-
number_2fa.enable,
|
406
|
-
)
|
407
|
-
self.get_status = async_to_raw_response_wrapper(
|
408
|
-
number_2fa.get_status,
|
409
|
-
)
|
410
|
-
self.regenerate_backup_codes = async_to_raw_response_wrapper(
|
411
|
-
number_2fa.regenerate_backup_codes,
|
412
|
-
)
|
413
144
|
self.send_code = async_to_raw_response_wrapper(
|
414
145
|
number_2fa.send_code,
|
415
146
|
)
|
@@ -419,18 +150,6 @@ class Number2faResourceWithStreamingResponse:
|
|
419
150
|
def __init__(self, number_2fa: Number2faResource) -> None:
|
420
151
|
self._number_2fa = number_2fa
|
421
152
|
|
422
|
-
self.disable = to_streamed_response_wrapper(
|
423
|
-
number_2fa.disable,
|
424
|
-
)
|
425
|
-
self.enable = to_streamed_response_wrapper(
|
426
|
-
number_2fa.enable,
|
427
|
-
)
|
428
|
-
self.get_status = to_streamed_response_wrapper(
|
429
|
-
number_2fa.get_status,
|
430
|
-
)
|
431
|
-
self.regenerate_backup_codes = to_streamed_response_wrapper(
|
432
|
-
number_2fa.regenerate_backup_codes,
|
433
|
-
)
|
434
153
|
self.send_code = to_streamed_response_wrapper(
|
435
154
|
number_2fa.send_code,
|
436
155
|
)
|
@@ -440,18 +159,6 @@ class AsyncNumber2faResourceWithStreamingResponse:
|
|
440
159
|
def __init__(self, number_2fa: AsyncNumber2faResource) -> None:
|
441
160
|
self._number_2fa = number_2fa
|
442
161
|
|
443
|
-
self.disable = async_to_streamed_response_wrapper(
|
444
|
-
number_2fa.disable,
|
445
|
-
)
|
446
|
-
self.enable = async_to_streamed_response_wrapper(
|
447
|
-
number_2fa.enable,
|
448
|
-
)
|
449
|
-
self.get_status = async_to_streamed_response_wrapper(
|
450
|
-
number_2fa.get_status,
|
451
|
-
)
|
452
|
-
self.regenerate_backup_codes = async_to_streamed_response_wrapper(
|
453
|
-
number_2fa.regenerate_backup_codes,
|
454
|
-
)
|
455
162
|
self.send_code = async_to_streamed_response_wrapper(
|
456
163
|
number_2fa.send_code,
|
457
164
|
)
|
@@ -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,
|
@@ -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,
|