studyfetch-sdk 0.1.0a19__py3-none-any.whl → 0.1.0a21__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/_models.py +23 -2
- studyfetch_sdk/_version.py +1 -1
- studyfetch_sdk/resources/v1/__init__.py +6 -104
- studyfetch_sdk/resources/v1/chat.py +246 -0
- studyfetch_sdk/resources/v1/materials/materials.py +304 -0
- studyfetch_sdk/resources/v1/materials/upload.py +30 -14
- studyfetch_sdk/resources/v1/v1.py +20 -244
- studyfetch_sdk/types/v1/__init__.py +3 -22
- studyfetch_sdk/types/v1/chat_stream_params.py +39 -7
- studyfetch_sdk/types/v1/component_create_params.py +24 -0
- studyfetch_sdk/types/v1/component_generate_embed_params.py +7 -1
- studyfetch_sdk/types/v1/generated_material.py +65 -0
- studyfetch_sdk/types/v1/material_generate_and_process_params.py +38 -0
- studyfetch_sdk/types/v1/material_generate_params.py +32 -0
- studyfetch_sdk/types/v1/materials/upload_complete_upload_params.py +2 -5
- studyfetch_sdk/types/v1/materials/upload_create_presigned_url_params.py +3 -0
- studyfetch_sdk/types/v1/materials/upload_upload_file_and_process_params.py +4 -1
- studyfetch_sdk/types/v1/materials/upload_upload_file_params.py +3 -0
- {studyfetch_sdk-0.1.0a19.dist-info → studyfetch_sdk-0.1.0a21.dist-info}/METADATA +1 -1
- {studyfetch_sdk-0.1.0a19.dist-info → studyfetch_sdk-0.1.0a21.dist-info}/RECORD +22 -83
- studyfetch_sdk/resources/v1/audio_recaps/__init__.py +0 -33
- studyfetch_sdk/resources/v1/audio_recaps/audio_recaps.py +0 -328
- studyfetch_sdk/resources/v1/audio_recaps/sections.py +0 -250
- studyfetch_sdk/resources/v1/chat/__init__.py +0 -47
- studyfetch_sdk/resources/v1/chat/chat.py +0 -574
- studyfetch_sdk/resources/v1/chat/sessions.py +0 -222
- studyfetch_sdk/resources/v1/chat/test.py +0 -190
- studyfetch_sdk/resources/v1/data_analyst/__init__.py +0 -47
- studyfetch_sdk/resources/v1/data_analyst/data_analyst.py +0 -582
- studyfetch_sdk/resources/v1/data_analyst/sessions.py +0 -222
- studyfetch_sdk/resources/v1/data_analyst/test.py +0 -190
- studyfetch_sdk/resources/v1/explainers.py +0 -441
- studyfetch_sdk/resources/v1/flashcards.py +0 -783
- studyfetch_sdk/resources/v1/scenarios/__init__.py +0 -61
- studyfetch_sdk/resources/v1/scenarios/component.py +0 -426
- studyfetch_sdk/resources/v1/scenarios/scenarios.py +0 -936
- studyfetch_sdk/resources/v1/scenarios/sessions.py +0 -236
- studyfetch_sdk/resources/v1/scenarios/submissions/__init__.py +0 -33
- studyfetch_sdk/resources/v1/scenarios/submissions/submissions.py +0 -102
- studyfetch_sdk/resources/v1/scenarios/submissions/user.py +0 -210
- studyfetch_sdk/resources/v1/tests/__init__.py +0 -33
- studyfetch_sdk/resources/v1/tests/component.py +0 -160
- studyfetch_sdk/resources/v1/tests/tests.py +0 -682
- studyfetch_sdk/resources/v1/upload/__init__.py +0 -33
- studyfetch_sdk/resources/v1/upload/component.py +0 -572
- studyfetch_sdk/resources/v1/upload/upload.py +0 -102
- studyfetch_sdk/types/v1/audio_recaps/__init__.py +0 -3
- studyfetch_sdk/types/v1/chat/__init__.py +0 -5
- studyfetch_sdk/types/v1/chat/session_retrieve_params.py +0 -11
- studyfetch_sdk/types/v1/chat_get_session_params.py +0 -13
- studyfetch_sdk/types/v1/chat_send_message_params.py +0 -54
- studyfetch_sdk/types/v1/data_analyst/__init__.py +0 -5
- studyfetch_sdk/types/v1/data_analyst/session_retrieve_params.py +0 -11
- studyfetch_sdk/types/v1/data_analyst_retrieve_session_params.py +0 -13
- studyfetch_sdk/types/v1/data_analyst_send_message_params.py +0 -54
- studyfetch_sdk/types/v1/data_analyst_stream_params.py +0 -28
- studyfetch_sdk/types/v1/explainer_create_params.py +0 -45
- studyfetch_sdk/types/v1/explainer_handle_webhook_params.py +0 -53
- studyfetch_sdk/types/v1/flashcard_batch_process_params.py +0 -36
- studyfetch_sdk/types/v1/flashcard_batch_process_response.py +0 -39
- studyfetch_sdk/types/v1/flashcard_get_algorithm_response.py +0 -37
- studyfetch_sdk/types/v1/flashcard_get_all_params.py +0 -23
- studyfetch_sdk/types/v1/flashcard_get_due_params.py +0 -19
- studyfetch_sdk/types/v1/flashcard_get_stats_params.py +0 -17
- studyfetch_sdk/types/v1/flashcard_get_types_response.py +0 -14
- studyfetch_sdk/types/v1/flashcard_rate_params.py +0 -23
- studyfetch_sdk/types/v1/scenario_create_params.py +0 -48
- studyfetch_sdk/types/v1/scenario_submit_answer_params.py +0 -18
- studyfetch_sdk/types/v1/scenario_update_params.py +0 -45
- studyfetch_sdk/types/v1/scenarios/__init__.py +0 -5
- studyfetch_sdk/types/v1/scenarios/component_update_params.py +0 -45
- studyfetch_sdk/types/v1/scenarios/submissions/__init__.py +0 -3
- studyfetch_sdk/types/v1/test_create_params.py +0 -20
- studyfetch_sdk/types/v1/test_retake_params.py +0 -14
- studyfetch_sdk/types/v1/test_submit_answer_params.py +0 -20
- studyfetch_sdk/types/v1/test_submit_params.py +0 -14
- studyfetch_sdk/types/v1/tests/__init__.py +0 -3
- studyfetch_sdk/types/v1/upload/__init__.py +0 -11
- studyfetch_sdk/types/v1/upload/component_complete_upload_params.py +0 -20
- studyfetch_sdk/types/v1/upload/component_complete_upload_response.py +0 -16
- studyfetch_sdk/types/v1/upload/component_get_presigned_url_params.py +0 -23
- studyfetch_sdk/types/v1/upload/component_get_presigned_url_response.py +0 -15
- studyfetch_sdk/types/v1/upload/component_upload_file_params.py +0 -21
- studyfetch_sdk/types/v1/upload/component_upload_url_params.py +0 -23
- studyfetch_sdk/types/v1/upload/file_upload_response.py +0 -24
- {studyfetch_sdk-0.1.0a19.dist-info → studyfetch_sdk-0.1.0a21.dist-info}/WHEEL +0 -0
- {studyfetch_sdk-0.1.0a19.dist-info → studyfetch_sdk-0.1.0a21.dist-info}/licenses/LICENSE +0 -0
@@ -1,102 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
from .component import (
|
6
|
-
ComponentResource,
|
7
|
-
AsyncComponentResource,
|
8
|
-
ComponentResourceWithRawResponse,
|
9
|
-
AsyncComponentResourceWithRawResponse,
|
10
|
-
ComponentResourceWithStreamingResponse,
|
11
|
-
AsyncComponentResourceWithStreamingResponse,
|
12
|
-
)
|
13
|
-
from ...._compat import cached_property
|
14
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
15
|
-
|
16
|
-
__all__ = ["UploadResource", "AsyncUploadResource"]
|
17
|
-
|
18
|
-
|
19
|
-
class UploadResource(SyncAPIResource):
|
20
|
-
@cached_property
|
21
|
-
def component(self) -> ComponentResource:
|
22
|
-
return ComponentResource(self._client)
|
23
|
-
|
24
|
-
@cached_property
|
25
|
-
def with_raw_response(self) -> UploadResourceWithRawResponse:
|
26
|
-
"""
|
27
|
-
This property can be used as a prefix for any HTTP method call to return
|
28
|
-
the raw response object instead of the parsed content.
|
29
|
-
|
30
|
-
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
|
31
|
-
"""
|
32
|
-
return UploadResourceWithRawResponse(self)
|
33
|
-
|
34
|
-
@cached_property
|
35
|
-
def with_streaming_response(self) -> UploadResourceWithStreamingResponse:
|
36
|
-
"""
|
37
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
38
|
-
|
39
|
-
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
|
40
|
-
"""
|
41
|
-
return UploadResourceWithStreamingResponse(self)
|
42
|
-
|
43
|
-
|
44
|
-
class AsyncUploadResource(AsyncAPIResource):
|
45
|
-
@cached_property
|
46
|
-
def component(self) -> AsyncComponentResource:
|
47
|
-
return AsyncComponentResource(self._client)
|
48
|
-
|
49
|
-
@cached_property
|
50
|
-
def with_raw_response(self) -> AsyncUploadResourceWithRawResponse:
|
51
|
-
"""
|
52
|
-
This property can be used as a prefix for any HTTP method call to return
|
53
|
-
the raw response object instead of the parsed content.
|
54
|
-
|
55
|
-
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
|
56
|
-
"""
|
57
|
-
return AsyncUploadResourceWithRawResponse(self)
|
58
|
-
|
59
|
-
@cached_property
|
60
|
-
def with_streaming_response(self) -> AsyncUploadResourceWithStreamingResponse:
|
61
|
-
"""
|
62
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
63
|
-
|
64
|
-
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
|
65
|
-
"""
|
66
|
-
return AsyncUploadResourceWithStreamingResponse(self)
|
67
|
-
|
68
|
-
|
69
|
-
class UploadResourceWithRawResponse:
|
70
|
-
def __init__(self, upload: UploadResource) -> None:
|
71
|
-
self._upload = upload
|
72
|
-
|
73
|
-
@cached_property
|
74
|
-
def component(self) -> ComponentResourceWithRawResponse:
|
75
|
-
return ComponentResourceWithRawResponse(self._upload.component)
|
76
|
-
|
77
|
-
|
78
|
-
class AsyncUploadResourceWithRawResponse:
|
79
|
-
def __init__(self, upload: AsyncUploadResource) -> None:
|
80
|
-
self._upload = upload
|
81
|
-
|
82
|
-
@cached_property
|
83
|
-
def component(self) -> AsyncComponentResourceWithRawResponse:
|
84
|
-
return AsyncComponentResourceWithRawResponse(self._upload.component)
|
85
|
-
|
86
|
-
|
87
|
-
class UploadResourceWithStreamingResponse:
|
88
|
-
def __init__(self, upload: UploadResource) -> None:
|
89
|
-
self._upload = upload
|
90
|
-
|
91
|
-
@cached_property
|
92
|
-
def component(self) -> ComponentResourceWithStreamingResponse:
|
93
|
-
return ComponentResourceWithStreamingResponse(self._upload.component)
|
94
|
-
|
95
|
-
|
96
|
-
class AsyncUploadResourceWithStreamingResponse:
|
97
|
-
def __init__(self, upload: AsyncUploadResource) -> None:
|
98
|
-
self._upload = upload
|
99
|
-
|
100
|
-
@cached_property
|
101
|
-
def component(self) -> AsyncComponentResourceWithStreamingResponse:
|
102
|
-
return AsyncComponentResourceWithStreamingResponse(self._upload.component)
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
from typing_extensions import Required, TypedDict
|
6
|
-
|
7
|
-
__all__ = ["SessionRetrieveParams"]
|
8
|
-
|
9
|
-
|
10
|
-
class SessionRetrieveParams(TypedDict, total=False):
|
11
|
-
limit: Required[str]
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
from typing_extensions import Required, Annotated, TypedDict
|
6
|
-
|
7
|
-
from ..._utils import PropertyInfo
|
8
|
-
|
9
|
-
__all__ = ["ChatGetSessionParams"]
|
10
|
-
|
11
|
-
|
12
|
-
class ChatGetSessionParams(TypedDict, total=False):
|
13
|
-
user_id: Required[Annotated[str, PropertyInfo(alias="userId")]]
|
@@ -1,54 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
from typing import List, Iterable
|
6
|
-
from typing_extensions import Required, Annotated, TypedDict
|
7
|
-
|
8
|
-
from ..._utils import PropertyInfo
|
9
|
-
|
10
|
-
__all__ = ["ChatSendMessageParams", "Message", "MessageImage"]
|
11
|
-
|
12
|
-
|
13
|
-
class ChatSendMessageParams(TypedDict, total=False):
|
14
|
-
component_id: Required[Annotated[str, PropertyInfo(alias="componentId")]]
|
15
|
-
"""Component ID for context"""
|
16
|
-
|
17
|
-
message: Required[Message]
|
18
|
-
"""Chat message content"""
|
19
|
-
|
20
|
-
x_component_id: Required[Annotated[str, PropertyInfo(alias="x-component-id")]]
|
21
|
-
|
22
|
-
context: object
|
23
|
-
"""Additional context data"""
|
24
|
-
|
25
|
-
group_ids: Annotated[List[str], PropertyInfo(alias="groupIds")]
|
26
|
-
"""Group IDs for collaboration"""
|
27
|
-
|
28
|
-
session_id: Annotated[str, PropertyInfo(alias="sessionId")]
|
29
|
-
"""Session ID for conversation continuity"""
|
30
|
-
|
31
|
-
user_id: Annotated[str, PropertyInfo(alias="userId")]
|
32
|
-
"""User ID for tracking"""
|
33
|
-
|
34
|
-
|
35
|
-
class MessageImage(TypedDict, total=False):
|
36
|
-
base64: str
|
37
|
-
"""Base64 encoded image data"""
|
38
|
-
|
39
|
-
caption: str
|
40
|
-
"""Caption for the image"""
|
41
|
-
|
42
|
-
mime_type: Annotated[str, PropertyInfo(alias="mimeType")]
|
43
|
-
"""MIME type of the image"""
|
44
|
-
|
45
|
-
url: str
|
46
|
-
"""URL of the image"""
|
47
|
-
|
48
|
-
|
49
|
-
class Message(TypedDict, total=False):
|
50
|
-
images: Iterable[MessageImage]
|
51
|
-
"""Images attached to the message"""
|
52
|
-
|
53
|
-
text: str
|
54
|
-
"""Text content of the message"""
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
from typing_extensions import Required, TypedDict
|
6
|
-
|
7
|
-
__all__ = ["SessionRetrieveParams"]
|
8
|
-
|
9
|
-
|
10
|
-
class SessionRetrieveParams(TypedDict, total=False):
|
11
|
-
limit: Required[str]
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
from typing_extensions import Required, Annotated, TypedDict
|
6
|
-
|
7
|
-
from ..._utils import PropertyInfo
|
8
|
-
|
9
|
-
__all__ = ["DataAnalystRetrieveSessionParams"]
|
10
|
-
|
11
|
-
|
12
|
-
class DataAnalystRetrieveSessionParams(TypedDict, total=False):
|
13
|
-
user_id: Required[Annotated[str, PropertyInfo(alias="userId")]]
|
@@ -1,54 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
from typing import List, Iterable
|
6
|
-
from typing_extensions import Required, Annotated, TypedDict
|
7
|
-
|
8
|
-
from ..._utils import PropertyInfo
|
9
|
-
|
10
|
-
__all__ = ["DataAnalystSendMessageParams", "Message", "MessageImage"]
|
11
|
-
|
12
|
-
|
13
|
-
class DataAnalystSendMessageParams(TypedDict, total=False):
|
14
|
-
component_id: Required[Annotated[str, PropertyInfo(alias="componentId")]]
|
15
|
-
"""Component ID for context"""
|
16
|
-
|
17
|
-
message: Required[Message]
|
18
|
-
"""Chat message content"""
|
19
|
-
|
20
|
-
x_component_id: Required[Annotated[str, PropertyInfo(alias="x-component-id")]]
|
21
|
-
|
22
|
-
context: object
|
23
|
-
"""Additional context data"""
|
24
|
-
|
25
|
-
group_ids: Annotated[List[str], PropertyInfo(alias="groupIds")]
|
26
|
-
"""Group IDs for collaboration"""
|
27
|
-
|
28
|
-
session_id: Annotated[str, PropertyInfo(alias="sessionId")]
|
29
|
-
"""Session ID for conversation continuity"""
|
30
|
-
|
31
|
-
user_id: Annotated[str, PropertyInfo(alias="userId")]
|
32
|
-
"""User ID for tracking"""
|
33
|
-
|
34
|
-
|
35
|
-
class MessageImage(TypedDict, total=False):
|
36
|
-
base64: str
|
37
|
-
"""Base64 encoded image data"""
|
38
|
-
|
39
|
-
caption: str
|
40
|
-
"""Caption for the image"""
|
41
|
-
|
42
|
-
mime_type: Annotated[str, PropertyInfo(alias="mimeType")]
|
43
|
-
"""MIME type of the image"""
|
44
|
-
|
45
|
-
url: str
|
46
|
-
"""URL of the image"""
|
47
|
-
|
48
|
-
|
49
|
-
class Message(TypedDict, total=False):
|
50
|
-
images: Iterable[MessageImage]
|
51
|
-
"""Images attached to the message"""
|
52
|
-
|
53
|
-
text: str
|
54
|
-
"""Text content of the message"""
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
from typing import Iterable
|
6
|
-
from typing_extensions import Literal, Annotated, TypedDict
|
7
|
-
|
8
|
-
from ..._utils import PropertyInfo
|
9
|
-
|
10
|
-
__all__ = ["DataAnalystStreamParams", "Message"]
|
11
|
-
|
12
|
-
|
13
|
-
class DataAnalystStreamParams(TypedDict, total=False):
|
14
|
-
context: object
|
15
|
-
|
16
|
-
group_id: Annotated[str, PropertyInfo(alias="groupId")]
|
17
|
-
|
18
|
-
messages: Iterable[Message]
|
19
|
-
|
20
|
-
user_id: Annotated[str, PropertyInfo(alias="userId")]
|
21
|
-
|
22
|
-
x_component_id: Annotated[str, PropertyInfo(alias="x-component-id")]
|
23
|
-
|
24
|
-
|
25
|
-
class Message(TypedDict, total=False):
|
26
|
-
content: str
|
27
|
-
|
28
|
-
role: Literal["user", "assistant", "system"]
|
@@ -1,45 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
from typing import List
|
6
|
-
from typing_extensions import Required, Annotated, TypedDict
|
7
|
-
|
8
|
-
from ..._utils import PropertyInfo
|
9
|
-
|
10
|
-
__all__ = ["ExplainerCreateParams"]
|
11
|
-
|
12
|
-
|
13
|
-
class ExplainerCreateParams(TypedDict, total=False):
|
14
|
-
component_id: Required[Annotated[str, PropertyInfo(alias="componentId")]]
|
15
|
-
"""Component ID"""
|
16
|
-
|
17
|
-
folder_ids: Required[Annotated[List[str], PropertyInfo(alias="folderIds")]]
|
18
|
-
"""Folder IDs to include"""
|
19
|
-
|
20
|
-
material_ids: Required[Annotated[List[str], PropertyInfo(alias="materialIds")]]
|
21
|
-
"""Material IDs to include"""
|
22
|
-
|
23
|
-
target_length: Required[Annotated[float, PropertyInfo(alias="targetLength")]]
|
24
|
-
"""Target video length in seconds"""
|
25
|
-
|
26
|
-
title: Required[str]
|
27
|
-
"""Title for the explainer video"""
|
28
|
-
|
29
|
-
image_search: Annotated[bool, PropertyInfo(alias="imageSearch")]
|
30
|
-
"""Enable image search for visuals"""
|
31
|
-
|
32
|
-
model: str
|
33
|
-
"""AI model to use"""
|
34
|
-
|
35
|
-
style: str
|
36
|
-
"""Video style"""
|
37
|
-
|
38
|
-
user_id: Annotated[str, PropertyInfo(alias="userId")]
|
39
|
-
"""User ID"""
|
40
|
-
|
41
|
-
vertical_video: Annotated[bool, PropertyInfo(alias="verticalVideo")]
|
42
|
-
"""Create vertical video format (9:16)"""
|
43
|
-
|
44
|
-
web_search: Annotated[bool, PropertyInfo(alias="webSearch")]
|
45
|
-
"""Enable web search for additional content"""
|
@@ -1,53 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
from typing import List
|
6
|
-
from typing_extensions import Literal, Required, Annotated, TypedDict
|
7
|
-
|
8
|
-
from ..._utils import PropertyInfo
|
9
|
-
|
10
|
-
__all__ = ["ExplainerHandleWebhookParams", "Video"]
|
11
|
-
|
12
|
-
|
13
|
-
class ExplainerHandleWebhookParams(TypedDict, total=False):
|
14
|
-
event: Required[Literal["video.completed", "video.progress", "video.failed"]]
|
15
|
-
"""Webhook event type"""
|
16
|
-
|
17
|
-
video: Required[Video]
|
18
|
-
"""Video data"""
|
19
|
-
|
20
|
-
|
21
|
-
class Video(TypedDict, total=False):
|
22
|
-
id: Required[str]
|
23
|
-
"""Video ID"""
|
24
|
-
|
25
|
-
image_sources: Annotated[object, PropertyInfo(alias="imageSources")]
|
26
|
-
"""Image sources"""
|
27
|
-
|
28
|
-
progress: float
|
29
|
-
"""Progress percentage"""
|
30
|
-
|
31
|
-
sections: List[str]
|
32
|
-
"""Video sections"""
|
33
|
-
|
34
|
-
stream_id: Annotated[str, PropertyInfo(alias="streamId")]
|
35
|
-
"""Stream ID"""
|
36
|
-
|
37
|
-
stream_url: Annotated[str, PropertyInfo(alias="streamUrl")]
|
38
|
-
"""Stream URL"""
|
39
|
-
|
40
|
-
thumbnail_url: Annotated[str, PropertyInfo(alias="thumbnailUrl")]
|
41
|
-
"""Thumbnail URL"""
|
42
|
-
|
43
|
-
transcript: str
|
44
|
-
"""Video transcript"""
|
45
|
-
|
46
|
-
video_url: Annotated[str, PropertyInfo(alias="videoUrl")]
|
47
|
-
"""Video URL"""
|
48
|
-
|
49
|
-
web_search_results: Annotated[object, PropertyInfo(alias="webSearchResults")]
|
50
|
-
"""Web search results"""
|
51
|
-
|
52
|
-
web_search_sources: Annotated[object, PropertyInfo(alias="webSearchSources")]
|
53
|
-
"""Web search sources"""
|
@@ -1,36 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
from typing import Iterable
|
6
|
-
from typing_extensions import Literal, Required, Annotated, TypedDict
|
7
|
-
|
8
|
-
from ..._utils import PropertyInfo
|
9
|
-
|
10
|
-
__all__ = ["FlashcardBatchProcessParams", "Operation"]
|
11
|
-
|
12
|
-
|
13
|
-
class FlashcardBatchProcessParams(TypedDict, total=False):
|
14
|
-
operations: Required[Iterable[Operation]]
|
15
|
-
|
16
|
-
group_id: Annotated[str, PropertyInfo(alias="groupId")]
|
17
|
-
"""Group ID (optional)"""
|
18
|
-
|
19
|
-
user_id: Annotated[str, PropertyInfo(alias="userId")]
|
20
|
-
"""User ID (optional)"""
|
21
|
-
|
22
|
-
|
23
|
-
class Operation(TypedDict, total=False):
|
24
|
-
action: Required[Literal["rate", "get_due", "get_all", "get_stats"]]
|
25
|
-
|
26
|
-
card_id: Required[Annotated[str, PropertyInfo(alias="cardId")]]
|
27
|
-
"""Flashcard ID"""
|
28
|
-
|
29
|
-
group_id: Annotated[str, PropertyInfo(alias="groupId")]
|
30
|
-
"""Group ID (optional)"""
|
31
|
-
|
32
|
-
rating: float
|
33
|
-
"""Rating for rate action (0-3)"""
|
34
|
-
|
35
|
-
user_id: Annotated[str, PropertyInfo(alias="userId")]
|
36
|
-
"""User ID (optional)"""
|
@@ -1,39 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from typing import List, Optional
|
4
|
-
|
5
|
-
from pydantic import Field as FieldInfo
|
6
|
-
|
7
|
-
from ..._models import BaseModel
|
8
|
-
|
9
|
-
__all__ = ["FlashcardBatchProcessResponse", "Result"]
|
10
|
-
|
11
|
-
|
12
|
-
class Result(BaseModel):
|
13
|
-
card_id: str = FieldInfo(alias="cardId")
|
14
|
-
"""Flashcard ID"""
|
15
|
-
|
16
|
-
success: bool
|
17
|
-
"""Operation success"""
|
18
|
-
|
19
|
-
error: Optional[str] = None
|
20
|
-
"""Error message if failed"""
|
21
|
-
|
22
|
-
result: Optional[object] = None
|
23
|
-
"""Operation result"""
|
24
|
-
|
25
|
-
|
26
|
-
class FlashcardBatchProcessResponse(BaseModel):
|
27
|
-
failed: Optional[float] = None
|
28
|
-
"""Failed operations"""
|
29
|
-
|
30
|
-
processed: Optional[float] = None
|
31
|
-
"""Total operations processed"""
|
32
|
-
|
33
|
-
results: Optional[List[Result]] = None
|
34
|
-
|
35
|
-
success: Optional[bool] = None
|
36
|
-
"""Overall success"""
|
37
|
-
|
38
|
-
successful: Optional[float] = None
|
39
|
-
"""Successful operations"""
|
@@ -1,37 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from typing import Dict, List, Optional
|
4
|
-
|
5
|
-
from ..._models import BaseModel
|
6
|
-
|
7
|
-
__all__ = ["FlashcardGetAlgorithmResponse", "Intervals", "Ratings"]
|
8
|
-
|
9
|
-
|
10
|
-
class Intervals(BaseModel):
|
11
|
-
graduated: Optional[str] = None
|
12
|
-
"""Description of graduated intervals"""
|
13
|
-
|
14
|
-
lapse: Optional[str] = None
|
15
|
-
"""Description of lapse intervals"""
|
16
|
-
|
17
|
-
learning: Optional[List[float]] = None
|
18
|
-
"""Learning intervals in minutes"""
|
19
|
-
|
20
|
-
|
21
|
-
class Ratings(BaseModel):
|
22
|
-
description: str
|
23
|
-
"""Rating description"""
|
24
|
-
|
25
|
-
name: str
|
26
|
-
"""Rating name"""
|
27
|
-
|
28
|
-
|
29
|
-
class FlashcardGetAlgorithmResponse(BaseModel):
|
30
|
-
algorithm: Optional[str] = None
|
31
|
-
"""Algorithm name"""
|
32
|
-
|
33
|
-
intervals: Optional[Intervals] = None
|
34
|
-
|
35
|
-
phases: Optional[Dict[str, str]] = None
|
36
|
-
|
37
|
-
ratings: Optional[Dict[str, Ratings]] = None
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
from typing_extensions import Annotated, TypedDict
|
6
|
-
|
7
|
-
from ..._utils import PropertyInfo
|
8
|
-
|
9
|
-
__all__ = ["FlashcardGetAllParams"]
|
10
|
-
|
11
|
-
|
12
|
-
class FlashcardGetAllParams(TypedDict, total=False):
|
13
|
-
group_ids: Annotated[str, PropertyInfo(alias="groupIds")]
|
14
|
-
"""Group IDs (comma-separated)"""
|
15
|
-
|
16
|
-
limit: float
|
17
|
-
"""Max number of cards"""
|
18
|
-
|
19
|
-
offset: float
|
20
|
-
"""Offset"""
|
21
|
-
|
22
|
-
user_id: Annotated[str, PropertyInfo(alias="userId")]
|
23
|
-
"""User ID"""
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
from typing_extensions import Required, Annotated, TypedDict
|
6
|
-
|
7
|
-
from ..._utils import PropertyInfo
|
8
|
-
|
9
|
-
__all__ = ["FlashcardGetDueParams"]
|
10
|
-
|
11
|
-
|
12
|
-
class FlashcardGetDueParams(TypedDict, total=False):
|
13
|
-
group_ids: Required[Annotated[str, PropertyInfo(alias="groupIds")]]
|
14
|
-
|
15
|
-
limit: float
|
16
|
-
"""Max number of cards"""
|
17
|
-
|
18
|
-
user_id: Annotated[str, PropertyInfo(alias="userId")]
|
19
|
-
"""User ID"""
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
from typing_extensions import Annotated, TypedDict
|
6
|
-
|
7
|
-
from ..._utils import PropertyInfo
|
8
|
-
|
9
|
-
__all__ = ["FlashcardGetStatsParams"]
|
10
|
-
|
11
|
-
|
12
|
-
class FlashcardGetStatsParams(TypedDict, total=False):
|
13
|
-
group_ids: Annotated[str, PropertyInfo(alias="groupIds")]
|
14
|
-
"""Group IDs (comma-separated)"""
|
15
|
-
|
16
|
-
user_id: Annotated[str, PropertyInfo(alias="userId")]
|
17
|
-
"""User ID"""
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from typing import Dict, List, Optional
|
4
|
-
|
5
|
-
from ..._models import BaseModel
|
6
|
-
|
7
|
-
__all__ = ["FlashcardGetTypesResponse"]
|
8
|
-
|
9
|
-
|
10
|
-
class FlashcardGetTypesResponse(BaseModel):
|
11
|
-
descriptions: Optional[Dict[str, str]] = None
|
12
|
-
|
13
|
-
types: Optional[List[str]] = None
|
14
|
-
"""List of flashcard types"""
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
from typing_extensions import Required, Annotated, TypedDict
|
6
|
-
|
7
|
-
from ..._utils import PropertyInfo
|
8
|
-
|
9
|
-
__all__ = ["FlashcardRateParams"]
|
10
|
-
|
11
|
-
|
12
|
-
class FlashcardRateParams(TypedDict, total=False):
|
13
|
-
card_id: Required[Annotated[str, PropertyInfo(alias="cardId")]]
|
14
|
-
"""Flashcard ID"""
|
15
|
-
|
16
|
-
rating: Required[float]
|
17
|
-
"""Rating (0-3)"""
|
18
|
-
|
19
|
-
group_id: Annotated[str, PropertyInfo(alias="groupId")]
|
20
|
-
"""Group ID (optional)"""
|
21
|
-
|
22
|
-
user_id: Annotated[str, PropertyInfo(alias="userId")]
|
23
|
-
"""User ID (optional)"""
|