mixpeek 0.8.41__py3-none-any.whl → 0.10.0__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.
- mixpeek/__init__.py +93 -1
- mixpeek/_base_client.py +2041 -0
- mixpeek/_client.py +444 -0
- mixpeek/_compat.py +219 -0
- mixpeek/_constants.py +14 -0
- mixpeek/_exceptions.py +108 -0
- mixpeek/_files.py +123 -0
- mixpeek/_models.py +785 -0
- mixpeek/_qs.py +150 -0
- mixpeek/_resource.py +43 -0
- mixpeek/_response.py +824 -0
- mixpeek/_streaming.py +333 -0
- mixpeek/_types.py +217 -0
- mixpeek/_utils/__init__.py +55 -0
- mixpeek/_utils/_logs.py +25 -0
- mixpeek/_utils/_proxy.py +62 -0
- mixpeek/_utils/_reflection.py +42 -0
- mixpeek/_utils/_streams.py +12 -0
- mixpeek/_utils/_sync.py +81 -0
- mixpeek/_utils/_transform.py +382 -0
- mixpeek/_utils/_typing.py +120 -0
- mixpeek/_utils/_utils.py +397 -0
- mixpeek/_version.py +4 -0
- mixpeek/lib/.keep +4 -0
- mixpeek/resources/__init__.py +159 -0
- mixpeek/resources/accounts/__init__.py +33 -0
- mixpeek/resources/accounts/accounts.py +102 -0
- mixpeek/resources/accounts/private.py +232 -0
- mixpeek/resources/agent/__init__.py +33 -0
- mixpeek/resources/agent/agent.py +225 -0
- mixpeek/resources/agent/task.py +189 -0
- mixpeek/resources/collections/__init__.py +33 -0
- mixpeek/resources/collections/collections.py +459 -0
- mixpeek/resources/collections/files.py +679 -0
- mixpeek/resources/describe.py +338 -0
- mixpeek/resources/embed.py +234 -0
- mixpeek/resources/indexes.py +506 -0
- mixpeek/resources/read.py +183 -0
- mixpeek/resources/recognize.py +183 -0
- mixpeek/resources/search.py +542 -0
- mixpeek/resources/tasks.py +294 -0
- mixpeek/resources/transcribe.py +192 -0
- mixpeek/types/__init__.py +19 -0
- mixpeek/types/accounts/__init__.py +6 -0
- mixpeek/types/accounts/private_update_params.py +25 -0
- mixpeek/types/accounts/user.py +32 -0
- mixpeek/types/agent/__init__.py +3 -0
- mixpeek/types/agent_create_params.py +18 -0
- mixpeek/types/agentresponse.py +11 -0
- mixpeek/types/collection_search_params.py +29 -0
- mixpeek/types/collections/__init__.py +9 -0
- mixpeek/types/collections/file_create_params.py +31 -0
- mixpeek/types/collections/file_full_params.py +22 -0
- mixpeek/types/collections/file_update_params.py +18 -0
- mixpeek/types/collections/fileresponse.py +23 -0
- mixpeek/types/collections/groupedfiledata.py +38 -0
- mixpeek/types/describe_upload_params.py +21 -0
- mixpeek/types/describe_url_params.py +20 -0
- mixpeek/types/embed_create_params.py +29 -0
- mixpeek/types/embeddingresponse.py +15 -0
- mixpeek/types/index_face_params.py +23 -0
- mixpeek/types/index_upload_params.py +27 -0
- mixpeek/types/index_url_params.py +159 -0
- mixpeek/types/search_text_params.py +45 -0
- mixpeek/types/search_upload_params.py +25 -0
- mixpeek/types/search_url_params.py +45 -0
- mixpeek/types/taskresponse.py +15 -0
- mixpeek/types/transcribe_url_params.py +18 -0
- mixpeek-0.10.0.dist-info/METADATA +356 -0
- mixpeek-0.10.0.dist-info/RECORD +73 -0
- {mixpeek-0.8.41.dist-info → mixpeek-0.10.0.dist-info}/WHEEL +1 -2
- mixpeek-0.10.0.dist-info/licenses/LICENSE +201 -0
- mixpeek/client.py +0 -27
- mixpeek/endpoints/collections.py +0 -86
- mixpeek/endpoints/embed.py +0 -66
- mixpeek/endpoints/index.py +0 -51
- mixpeek/endpoints/register.py +0 -34
- mixpeek/endpoints/search.py +0 -67
- mixpeek/endpoints/tasks.py +0 -26
- mixpeek/endpoints/tools.py +0 -138
- mixpeek/exceptions.py +0 -13
- mixpeek-0.8.41.dist-info/METADATA +0 -375
- mixpeek-0.8.41.dist-info/RECORD +0 -15
- mixpeek-0.8.41.dist-info/top_level.txt +0 -1
- /mixpeek/{endpoints/__init__.py → py.typed} +0 -0
@@ -0,0 +1,22 @@
|
|
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__ = ["FileFullParams"]
|
10
|
+
|
11
|
+
|
12
|
+
class FileFullParams(TypedDict, total=False):
|
13
|
+
modality: str
|
14
|
+
|
15
|
+
page: int
|
16
|
+
|
17
|
+
page_size: int
|
18
|
+
|
19
|
+
authorization: Annotated[str, PropertyInfo(alias="Authorization")]
|
20
|
+
|
21
|
+
index_id: Annotated[str, PropertyInfo(alias="index-id")]
|
22
|
+
"""filter by organization"""
|
@@ -0,0 +1,18 @@
|
|
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__ = ["FileUpdateParams"]
|
10
|
+
|
11
|
+
|
12
|
+
class FileUpdateParams(TypedDict, total=False):
|
13
|
+
body: Required[object]
|
14
|
+
|
15
|
+
authorization: Annotated[str, PropertyInfo(alias="Authorization")]
|
16
|
+
|
17
|
+
index_id: Annotated[str, PropertyInfo(alias="index-id")]
|
18
|
+
"""filter by organization"""
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
+
|
3
|
+
from datetime import datetime
|
4
|
+
|
5
|
+
from ..._models import BaseModel
|
6
|
+
|
7
|
+
__all__ = ["Fileresponse"]
|
8
|
+
|
9
|
+
|
10
|
+
class Fileresponse(BaseModel):
|
11
|
+
collection_id: str
|
12
|
+
|
13
|
+
created_at: datetime
|
14
|
+
|
15
|
+
file_id: str
|
16
|
+
|
17
|
+
index_id: str
|
18
|
+
|
19
|
+
metadata: object
|
20
|
+
|
21
|
+
status: str
|
22
|
+
|
23
|
+
url: str
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
+
|
3
|
+
from typing import Dict, List, Optional
|
4
|
+
from datetime import datetime
|
5
|
+
|
6
|
+
from ..._models import BaseModel
|
7
|
+
|
8
|
+
__all__ = ["Groupedfiledata", "ImageDetails"]
|
9
|
+
|
10
|
+
|
11
|
+
class ImageDetails(BaseModel):
|
12
|
+
caption: Optional[str] = None
|
13
|
+
|
14
|
+
description: Optional[str] = None
|
15
|
+
|
16
|
+
detect: Optional[object] = None
|
17
|
+
|
18
|
+
text: Optional[str] = None
|
19
|
+
|
20
|
+
|
21
|
+
class Groupedfiledata(BaseModel):
|
22
|
+
collection_id: str
|
23
|
+
|
24
|
+
created_at: datetime
|
25
|
+
|
26
|
+
file_id: str
|
27
|
+
|
28
|
+
index_id: str
|
29
|
+
|
30
|
+
metadata: object
|
31
|
+
|
32
|
+
status: str
|
33
|
+
|
34
|
+
url: str
|
35
|
+
|
36
|
+
image_details: Optional[ImageDetails] = None
|
37
|
+
|
38
|
+
video_segments: Optional[List[Dict[str, object]]] = None
|
@@ -0,0 +1,21 @@
|
|
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 .._types import FileTypes
|
8
|
+
from .._utils import PropertyInfo
|
9
|
+
|
10
|
+
__all__ = ["DescribeUploadParams"]
|
11
|
+
|
12
|
+
|
13
|
+
class DescribeUploadParams(TypedDict, total=False):
|
14
|
+
file: Required[FileTypes]
|
15
|
+
|
16
|
+
prompt: Required[str]
|
17
|
+
|
18
|
+
authorization: Annotated[str, PropertyInfo(alias="Authorization")]
|
19
|
+
|
20
|
+
index_id: Annotated[str, PropertyInfo(alias="index-id")]
|
21
|
+
"""filter by organization"""
|
@@ -0,0 +1,20 @@
|
|
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__ = ["DescribeURLParams"]
|
10
|
+
|
11
|
+
|
12
|
+
class DescribeURLParams(TypedDict, total=False):
|
13
|
+
prompt: Required[str]
|
14
|
+
|
15
|
+
url: Required[str]
|
16
|
+
|
17
|
+
authorization: Annotated[str, PropertyInfo(alias="Authorization")]
|
18
|
+
|
19
|
+
index_id: Annotated[str, PropertyInfo(alias="index-id")]
|
20
|
+
"""filter by organization"""
|
@@ -0,0 +1,29 @@
|
|
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 Optional
|
6
|
+
from typing_extensions import Literal, Required, Annotated, TypedDict
|
7
|
+
|
8
|
+
from .._utils import PropertyInfo
|
9
|
+
|
10
|
+
__all__ = ["EmbedCreateParams"]
|
11
|
+
|
12
|
+
|
13
|
+
class EmbedCreateParams(TypedDict, total=False):
|
14
|
+
input: Required[str]
|
15
|
+
"""The input data to be processed."""
|
16
|
+
|
17
|
+
input_type: Optional[Literal["text", "base64", "url"]]
|
18
|
+
"""The type of input data. Can be text, base64, or url."""
|
19
|
+
|
20
|
+
modality: Optional[Literal["video", "image"]]
|
21
|
+
"""The modality of the input data."""
|
22
|
+
|
23
|
+
model_id: Optional[object]
|
24
|
+
"""The model to be used for processing."""
|
25
|
+
|
26
|
+
authorization: Annotated[str, PropertyInfo(alias="Authorization")]
|
27
|
+
|
28
|
+
index_id: Annotated[str, PropertyInfo(alias="index-id")]
|
29
|
+
"""filter by organization"""
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
+
|
3
|
+
from typing import List, Optional
|
4
|
+
|
5
|
+
from .._models import BaseModel
|
6
|
+
|
7
|
+
__all__ = ["Embeddingresponse"]
|
8
|
+
|
9
|
+
|
10
|
+
class Embeddingresponse(BaseModel):
|
11
|
+
embedding: List[float]
|
12
|
+
"""The embedding of the processed data."""
|
13
|
+
|
14
|
+
elapsed_time: Optional[float] = None
|
15
|
+
"""The time taken to process the data."""
|
@@ -0,0 +1,23 @@
|
|
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 .._types import FileTypes
|
8
|
+
from .._utils import PropertyInfo
|
9
|
+
|
10
|
+
__all__ = ["IndexFaceParams"]
|
11
|
+
|
12
|
+
|
13
|
+
class IndexFaceParams(TypedDict, total=False):
|
14
|
+
collection_id: Required[str]
|
15
|
+
|
16
|
+
file: Required[FileTypes]
|
17
|
+
|
18
|
+
metadata: str
|
19
|
+
|
20
|
+
authorization: Annotated[str, PropertyInfo(alias="Authorization")]
|
21
|
+
|
22
|
+
index_id: Annotated[str, PropertyInfo(alias="index-id")]
|
23
|
+
"""filter by organization"""
|
@@ -0,0 +1,27 @@
|
|
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 .._types import FileTypes
|
8
|
+
from .._utils import PropertyInfo
|
9
|
+
|
10
|
+
__all__ = ["IndexUploadParams"]
|
11
|
+
|
12
|
+
|
13
|
+
class IndexUploadParams(TypedDict, total=False):
|
14
|
+
collection_id: Required[str]
|
15
|
+
|
16
|
+
file: Required[FileTypes]
|
17
|
+
|
18
|
+
image_settings: str
|
19
|
+
|
20
|
+
metadata: str
|
21
|
+
|
22
|
+
video_settings: str
|
23
|
+
|
24
|
+
authorization: Annotated[str, PropertyInfo(alias="Authorization")]
|
25
|
+
|
26
|
+
index_id: Annotated[str, PropertyInfo(alias="index-id")]
|
27
|
+
"""filter by organization"""
|
@@ -0,0 +1,159 @@
|
|
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 Optional
|
6
|
+
from typing_extensions import Literal, Required, Annotated, TypedDict
|
7
|
+
|
8
|
+
from .._utils import PropertyInfo
|
9
|
+
|
10
|
+
__all__ = [
|
11
|
+
"IndexURLParams",
|
12
|
+
"ImageSettings",
|
13
|
+
"ImageSettingsDescribe",
|
14
|
+
"ImageSettingsDetect",
|
15
|
+
"ImageSettingsDetectFaces",
|
16
|
+
"ImageSettingsEmbed",
|
17
|
+
"ImageSettingsJsonOutput",
|
18
|
+
"ImageSettingsRead",
|
19
|
+
"VideoSettings",
|
20
|
+
"VideoSettingsDescribe",
|
21
|
+
"VideoSettingsDetect",
|
22
|
+
"VideoSettingsDetectFaces",
|
23
|
+
"VideoSettingsEmbed",
|
24
|
+
"VideoSettingsJsonOutput",
|
25
|
+
"VideoSettingsRead",
|
26
|
+
"VideoSettingsTranscribe",
|
27
|
+
]
|
28
|
+
|
29
|
+
|
30
|
+
class IndexURLParams(TypedDict, total=False):
|
31
|
+
collection_id: Required[str]
|
32
|
+
|
33
|
+
url: Required[str]
|
34
|
+
|
35
|
+
image_settings: Optional[ImageSettings]
|
36
|
+
|
37
|
+
metadata: object
|
38
|
+
"""Additional metadata associated with the file"""
|
39
|
+
|
40
|
+
should_save: Optional[bool]
|
41
|
+
"""Whether to upload the processed file to S3"""
|
42
|
+
|
43
|
+
video_settings: Optional[VideoSettings]
|
44
|
+
|
45
|
+
authorization: Annotated[str, PropertyInfo(alias="Authorization")]
|
46
|
+
|
47
|
+
index_id: Annotated[str, PropertyInfo(alias="index-id")]
|
48
|
+
"""filter by organization"""
|
49
|
+
|
50
|
+
|
51
|
+
class ImageSettingsDescribe(TypedDict, total=False):
|
52
|
+
model_id: Optional[Literal["image-descriptor-v1"]]
|
53
|
+
|
54
|
+
prompt: Optional[str]
|
55
|
+
"""Prompt for image description"""
|
56
|
+
|
57
|
+
|
58
|
+
class ImageSettingsDetectFaces(TypedDict, total=False):
|
59
|
+
model_id: Optional[Literal["face-detector-v1"]]
|
60
|
+
"""Model ID for face detection"""
|
61
|
+
|
62
|
+
|
63
|
+
class ImageSettingsDetect(TypedDict, total=False):
|
64
|
+
faces: Optional[ImageSettingsDetectFaces]
|
65
|
+
"""Settings for face detection"""
|
66
|
+
|
67
|
+
|
68
|
+
class ImageSettingsEmbed(TypedDict, total=False):
|
69
|
+
model_id: Optional[Literal["image-embed-v1", "multimodal-v1"]]
|
70
|
+
|
71
|
+
|
72
|
+
class ImageSettingsJsonOutput(TypedDict, total=False):
|
73
|
+
prompt: Optional[str]
|
74
|
+
|
75
|
+
response_shape: Optional[object]
|
76
|
+
|
77
|
+
|
78
|
+
class ImageSettingsRead(TypedDict, total=False):
|
79
|
+
json_format: object
|
80
|
+
"""JSON format for the response"""
|
81
|
+
|
82
|
+
model_id: Optional[Literal["image-descriptor-v1"]]
|
83
|
+
|
84
|
+
prompt: Optional[str]
|
85
|
+
"""Prompt for reading on-screen text"""
|
86
|
+
|
87
|
+
|
88
|
+
class ImageSettings(TypedDict, total=False):
|
89
|
+
describe: Optional[ImageSettingsDescribe]
|
90
|
+
|
91
|
+
detect: Optional[ImageSettingsDetect]
|
92
|
+
|
93
|
+
embed: Optional[ImageSettingsEmbed]
|
94
|
+
|
95
|
+
json_output: Optional[ImageSettingsJsonOutput]
|
96
|
+
|
97
|
+
read: Optional[ImageSettingsRead]
|
98
|
+
|
99
|
+
|
100
|
+
class VideoSettingsDescribe(TypedDict, total=False):
|
101
|
+
model_id: Optional[Literal["video-descriptor-v1"]]
|
102
|
+
|
103
|
+
prompt: Optional[str]
|
104
|
+
"""Prompt for video description"""
|
105
|
+
|
106
|
+
|
107
|
+
class VideoSettingsDetectFaces(TypedDict, total=False):
|
108
|
+
model_id: Optional[Literal["face-detector-v1"]]
|
109
|
+
"""Model ID for face detection"""
|
110
|
+
|
111
|
+
|
112
|
+
class VideoSettingsDetect(TypedDict, total=False):
|
113
|
+
faces: Optional[VideoSettingsDetectFaces]
|
114
|
+
"""Settings for face detection"""
|
115
|
+
|
116
|
+
|
117
|
+
class VideoSettingsEmbed(TypedDict, total=False):
|
118
|
+
contextual_text: Optional[str]
|
119
|
+
|
120
|
+
model_id: Optional[Literal["vuse-generic-v1", "multimodal-v1"]]
|
121
|
+
|
122
|
+
|
123
|
+
class VideoSettingsJsonOutput(TypedDict, total=False):
|
124
|
+
prompt: Optional[str]
|
125
|
+
|
126
|
+
response_shape: Optional[object]
|
127
|
+
|
128
|
+
|
129
|
+
class VideoSettingsRead(TypedDict, total=False):
|
130
|
+
json_format: object
|
131
|
+
"""JSON format for the response"""
|
132
|
+
|
133
|
+
model_id: Optional[Literal["video-descriptor-v1"]]
|
134
|
+
|
135
|
+
prompt: Optional[str]
|
136
|
+
"""Prompt for reading on-screen text"""
|
137
|
+
|
138
|
+
|
139
|
+
class VideoSettingsTranscribe(TypedDict, total=False):
|
140
|
+
model_id: Optional[Literal["polyglot-v1"]]
|
141
|
+
|
142
|
+
prompt: Optional[str]
|
143
|
+
|
144
|
+
|
145
|
+
class VideoSettings(TypedDict, total=False):
|
146
|
+
describe: Optional[VideoSettingsDescribe]
|
147
|
+
|
148
|
+
detect: Optional[VideoSettingsDetect]
|
149
|
+
|
150
|
+
embed: Optional[VideoSettingsEmbed]
|
151
|
+
|
152
|
+
interval_sec: int
|
153
|
+
"""Interval in seconds for processing video"""
|
154
|
+
|
155
|
+
json_output: Optional[VideoSettingsJsonOutput]
|
156
|
+
|
157
|
+
read: Optional[VideoSettingsRead]
|
158
|
+
|
159
|
+
transcribe: Optional[VideoSettingsTranscribe]
|
@@ -0,0 +1,45 @@
|
|
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 Optional
|
6
|
+
from typing_extensions import Required, Annotated, TypedDict
|
7
|
+
|
8
|
+
from .._utils import PropertyInfo
|
9
|
+
|
10
|
+
__all__ = ["SearchTextParams", "Pagination"]
|
11
|
+
|
12
|
+
|
13
|
+
class SearchTextParams(TypedDict, total=False):
|
14
|
+
input: Required[str]
|
15
|
+
"""url, text, or base64 input"""
|
16
|
+
|
17
|
+
filters: object
|
18
|
+
"""Additional filters for the search"""
|
19
|
+
|
20
|
+
group_by_file: bool
|
21
|
+
"""Whether to group search results by file"""
|
22
|
+
|
23
|
+
input_type: Optional[str]
|
24
|
+
|
25
|
+
modality: Optional[str]
|
26
|
+
|
27
|
+
model_id: Optional[str]
|
28
|
+
|
29
|
+
pagination: Pagination
|
30
|
+
"""Pagination parameters"""
|
31
|
+
|
32
|
+
source: Optional[str]
|
33
|
+
|
34
|
+
authorization: Annotated[str, PropertyInfo(alias="Authorization")]
|
35
|
+
|
36
|
+
index_id: Annotated[str, PropertyInfo(alias="index-id")]
|
37
|
+
"""filter by organization"""
|
38
|
+
|
39
|
+
|
40
|
+
class Pagination(TypedDict, total=False):
|
41
|
+
page: int
|
42
|
+
"""Page number"""
|
43
|
+
|
44
|
+
page_size: int
|
45
|
+
"""Number of items per page"""
|
@@ -0,0 +1,25 @@
|
|
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 .._types import FileTypes
|
8
|
+
from .._utils import PropertyInfo
|
9
|
+
|
10
|
+
__all__ = ["SearchUploadParams"]
|
11
|
+
|
12
|
+
|
13
|
+
class SearchUploadParams(TypedDict, total=False):
|
14
|
+
file: Required[FileTypes]
|
15
|
+
|
16
|
+
filters: str
|
17
|
+
|
18
|
+
page: int
|
19
|
+
|
20
|
+
page_size: int
|
21
|
+
|
22
|
+
authorization: Annotated[str, PropertyInfo(alias="Authorization")]
|
23
|
+
|
24
|
+
index_id: Annotated[str, PropertyInfo(alias="index-id")]
|
25
|
+
"""filter by organization"""
|
@@ -0,0 +1,45 @@
|
|
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 Optional
|
6
|
+
from typing_extensions import Required, Annotated, TypedDict
|
7
|
+
|
8
|
+
from .._utils import PropertyInfo
|
9
|
+
|
10
|
+
__all__ = ["SearchURLParams", "Pagination"]
|
11
|
+
|
12
|
+
|
13
|
+
class SearchURLParams(TypedDict, total=False):
|
14
|
+
input: Required[str]
|
15
|
+
"""url, text, or base64 input"""
|
16
|
+
|
17
|
+
filters: object
|
18
|
+
"""Additional filters for the search"""
|
19
|
+
|
20
|
+
group_by_file: bool
|
21
|
+
"""Whether to group search results by file"""
|
22
|
+
|
23
|
+
input_type: Optional[str]
|
24
|
+
|
25
|
+
modality: Optional[str]
|
26
|
+
|
27
|
+
model_id: Optional[str]
|
28
|
+
|
29
|
+
pagination: Pagination
|
30
|
+
"""Pagination parameters"""
|
31
|
+
|
32
|
+
source: Optional[str]
|
33
|
+
|
34
|
+
authorization: Annotated[str, PropertyInfo(alias="Authorization")]
|
35
|
+
|
36
|
+
index_id: Annotated[str, PropertyInfo(alias="index-id")]
|
37
|
+
"""filter by organization"""
|
38
|
+
|
39
|
+
|
40
|
+
class Pagination(TypedDict, total=False):
|
41
|
+
page: int
|
42
|
+
"""Page number"""
|
43
|
+
|
44
|
+
page_size: int
|
45
|
+
"""Number of items per page"""
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
+
|
3
|
+
from typing_extensions import Literal
|
4
|
+
|
5
|
+
from .._models import BaseModel
|
6
|
+
|
7
|
+
__all__ = ["Taskresponse"]
|
8
|
+
|
9
|
+
|
10
|
+
class Taskresponse(BaseModel):
|
11
|
+
file_id: str
|
12
|
+
|
13
|
+
status: Literal["DONE", "FAILED", "PROCESSING", "DOWNLOADING", "INITIALIZING"]
|
14
|
+
|
15
|
+
task_id: str
|
@@ -0,0 +1,18 @@
|
|
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__ = ["TranscribeURLParams"]
|
10
|
+
|
11
|
+
|
12
|
+
class TranscribeURLParams(TypedDict, total=False):
|
13
|
+
url: Required[str]
|
14
|
+
|
15
|
+
authorization: Annotated[str, PropertyInfo(alias="Authorization")]
|
16
|
+
|
17
|
+
index_id: Annotated[str, PropertyInfo(alias="index-id")]
|
18
|
+
"""filter by organization"""
|