mixpeek 0.12.0__py3-none-any.whl → 0.13__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. mixpeek/__init__.py +5 -79
  2. mixpeek/_hooks/__init__.py +5 -0
  3. mixpeek/_hooks/registration.py +13 -0
  4. mixpeek/_hooks/sdkhooks.py +76 -0
  5. mixpeek/_hooks/types.py +94 -0
  6. mixpeek/_version.py +11 -3
  7. mixpeek/assets.py +1561 -0
  8. mixpeek/basesdk.py +350 -0
  9. mixpeek/collections.py +1029 -0
  10. mixpeek/featureextractors.py +205 -0
  11. mixpeek/features.py +1181 -0
  12. mixpeek/health.py +167 -0
  13. mixpeek/httpclient.py +84 -0
  14. mixpeek/ingest.py +831 -0
  15. mixpeek/interactions.py +221 -0
  16. mixpeek/models/__init__.py +751 -0
  17. mixpeek/models/actionusage.py +16 -0
  18. mixpeek/models/apierror.py +22 -0
  19. mixpeek/models/apikey.py +25 -0
  20. mixpeek/models/apikeyupdate.py +49 -0
  21. mixpeek/models/assetfeatures.py +55 -0
  22. mixpeek/models/assetresponse.py +166 -0
  23. mixpeek/models/assets_model_searchquery.py +21 -0
  24. mixpeek/models/assetupdate.py +28 -0
  25. mixpeek/models/availableindexesresponse.py +23 -0
  26. mixpeek/models/availablemodels.py +12 -0
  27. mixpeek/models/boolindexparams.py +18 -0
  28. mixpeek/models/collectionmodel.py +70 -0
  29. mixpeek/models/collectionresult.py +73 -0
  30. mixpeek/models/create_api_key_organizations_users_user_email_api_keys_postop.py +23 -0
  31. mixpeek/models/create_collection_collections_postop.py +62 -0
  32. mixpeek/models/create_interaction_features_search_interactions_postop.py +59 -0
  33. mixpeek/models/createcollectionrequest.py +59 -0
  34. mixpeek/models/createnamespacerequest.py +62 -0
  35. mixpeek/models/datetimeindexparams.py +18 -0
  36. mixpeek/models/dateusage.py +22 -0
  37. mixpeek/models/db_model_paginationresponse.py +59 -0
  38. mixpeek/models/db_model_taskresponse.py +20 -0
  39. mixpeek/models/delete_api_key_organizations_users_user_email_api_keys_key_name_deleteop.py +23 -0
  40. mixpeek/models/delete_asset_assets_asset_id_deleteop.py +57 -0
  41. mixpeek/models/delete_collection_collections_collection_deleteop.py +59 -0
  42. mixpeek/models/delete_feature_features_feature_id_deleteop.py +57 -0
  43. mixpeek/models/delete_interaction_features_search_interactions_interaction_id_deleteop.py +59 -0
  44. mixpeek/models/delete_namespace_namespaces_namespace_deleteop.py +18 -0
  45. mixpeek/models/delete_user_organizations_users_user_email_deleteop.py +16 -0
  46. mixpeek/models/denseembedding.py +16 -0
  47. mixpeek/models/embeddingrequest.py +59 -0
  48. mixpeek/models/embeddingresponse.py +64 -0
  49. mixpeek/models/errormessage.py +13 -0
  50. mixpeek/models/errorresponse.py +21 -0
  51. mixpeek/models/facedetectsettings.py +52 -0
  52. mixpeek/models/featureextractionembeddingrequest.py +54 -0
  53. mixpeek/models/featureresponse.py +74 -0
  54. mixpeek/models/features_model_paginationresponse.py +59 -0
  55. mixpeek/models/featureupdaterequest.py +21 -0
  56. mixpeek/models/filtercondition.py +74 -0
  57. mixpeek/models/floatindexparams.py +18 -0
  58. mixpeek/models/full_asset_update_assets_asset_id_putop.py +69 -0
  59. mixpeek/models/full_feature_update_features_feature_id_putop.py +69 -0
  60. mixpeek/models/geoindexparams.py +18 -0
  61. mixpeek/models/get_asset_assets_asset_id_getop.py +73 -0
  62. mixpeek/models/get_asset_with_features_assets_asset_id_features_getop.py +73 -0
  63. mixpeek/models/get_collection_collections_collection_getop.py +59 -0
  64. mixpeek/models/get_feature_features_feature_id_getop.py +70 -0
  65. mixpeek/models/get_interaction_features_search_interactions_interaction_id_getop.py +59 -0
  66. mixpeek/models/get_namespace_namespaces_namespace_getop.py +18 -0
  67. mixpeek/models/get_task_tasks_task_id_getop.py +57 -0
  68. mixpeek/models/get_user_organizations_users_user_email_getop.py +16 -0
  69. mixpeek/models/groupbyoptions.py +71 -0
  70. mixpeek/models/groupbyoptionsasset.py +71 -0
  71. mixpeek/models/groupedassetdata.py +18 -0
  72. mixpeek/models/healthcheckresponse.py +13 -0
  73. mixpeek/models/httpvalidationerror.py +21 -0
  74. mixpeek/models/imagedescribesettings.py +82 -0
  75. mixpeek/models/imagedetectsettings.py +53 -0
  76. mixpeek/models/imagereadsettings.py +71 -0
  77. mixpeek/models/imagesettings.py +79 -0
  78. mixpeek/models/ingest_image_url_ingest_images_url_postop.py +59 -0
  79. mixpeek/models/ingest_text_ingest_text_postop.py +59 -0
  80. mixpeek/models/ingest_video_url_ingest_videos_url_postop.py +59 -0
  81. mixpeek/models/inputtype.py +11 -0
  82. mixpeek/models/integerindexparams.py +24 -0
  83. mixpeek/models/interactionresponse.py +87 -0
  84. mixpeek/models/interactiontype.py +11 -0
  85. mixpeek/models/jsonimageoutputsettings.py +55 -0
  86. mixpeek/models/jsontextoutputsettings.py +55 -0
  87. mixpeek/models/jsonvideooutputsettings.py +55 -0
  88. mixpeek/models/keywordindexparams.py +21 -0
  89. mixpeek/models/kill_task_tasks_task_id_deleteop.py +57 -0
  90. mixpeek/models/list_assets_assets_postop.py +77 -0
  91. mixpeek/models/list_collections_collections_getop.py +65 -0
  92. mixpeek/models/list_features_features_postop.py +79 -0
  93. mixpeek/models/list_interactions_features_search_interactions_getop.py +96 -0
  94. mixpeek/models/listassetsrequest.py +75 -0
  95. mixpeek/models/listassetsresponse.py +22 -0
  96. mixpeek/models/listcollectionsresponse.py +22 -0
  97. mixpeek/models/listfeaturesrequest.py +77 -0
  98. mixpeek/models/listfeaturesresponse.py +22 -0
  99. mixpeek/models/logicaloperator_input.py +88 -0
  100. mixpeek/models/logicaloperator_output.py +103 -0
  101. mixpeek/models/logodetectsettings.py +52 -0
  102. mixpeek/models/modality.py +13 -0
  103. mixpeek/models/modeldetails.py +57 -0
  104. mixpeek/models/namespaceresponse.py +54 -0
  105. mixpeek/models/organizationmodel.py +45 -0
  106. mixpeek/models/partial_asset_update_assets_asset_id_patchop.py +69 -0
  107. mixpeek/models/payloadindexconfig.py +94 -0
  108. mixpeek/models/payloadindextype.py +17 -0
  109. mixpeek/models/payloadschematype.py +15 -0
  110. mixpeek/models/percolaterequest.py +57 -0
  111. mixpeek/models/permission.py +10 -0
  112. mixpeek/models/processimageurlinput.py +99 -0
  113. mixpeek/models/processtextinput.py +94 -0
  114. mixpeek/models/processvideourlinput.py +99 -0
  115. mixpeek/models/querysettings.py +56 -0
  116. mixpeek/models/rerankingoptions.py +47 -0
  117. mixpeek/models/search_assets_assets_search_postop.py +59 -0
  118. mixpeek/models/search_features_features_search_postop.py +96 -0
  119. mixpeek/models/search_model_searchquery_input.py +76 -0
  120. mixpeek/models/searchassetsrequest.py +78 -0
  121. mixpeek/models/searchinteraction.py +82 -0
  122. mixpeek/models/searchquery_output.py +79 -0
  123. mixpeek/models/searchrequestfeatures_input.py +151 -0
  124. mixpeek/models/searchrequestfeatures_output.py +151 -0
  125. mixpeek/models/sortoption.py +28 -0
  126. mixpeek/models/sparseembedding.py +21 -0
  127. mixpeek/models/tasks_model_taskresponse.py +24 -0
  128. mixpeek/models/taskstatus.py +16 -0
  129. mixpeek/models/textindexparams.py +31 -0
  130. mixpeek/models/textsettings.py +61 -0
  131. mixpeek/models/tokenizertype.py +11 -0
  132. mixpeek/models/update_api_key_organizations_users_user_email_api_keys_key_name_patchop.py +30 -0
  133. mixpeek/models/update_collection_collections_collection_putop.py +74 -0
  134. mixpeek/models/update_namespace_namespaces_namespace_putop.py +28 -0
  135. mixpeek/models/updateassetrequest.py +60 -0
  136. mixpeek/models/updatenamespacerequest.py +26 -0
  137. mixpeek/models/usage.py +18 -0
  138. mixpeek/models/usermodel_input.py +36 -0
  139. mixpeek/models/usermodel_output.py +36 -0
  140. mixpeek/models/uuidindexparams.py +21 -0
  141. mixpeek/models/validationerror.py +26 -0
  142. mixpeek/models/vectormodel.py +11 -0
  143. mixpeek/models/vectortype.py +9 -0
  144. mixpeek/models/videodescribesettings.py +82 -0
  145. mixpeek/models/videodetectsettings.py +53 -0
  146. mixpeek/models/videoreadsettings.py +71 -0
  147. mixpeek/models/videosettings.py +101 -0
  148. mixpeek/models/videotranscriptionsettings.py +69 -0
  149. mixpeek/namespaces.py +1143 -0
  150. mixpeek/organizations.py +1508 -0
  151. mixpeek/py.typed +1 -0
  152. mixpeek/sdk.py +135 -0
  153. mixpeek/sdkconfiguration.py +45 -0
  154. mixpeek/searchinteractions.py +647 -0
  155. mixpeek/tasks.py +387 -0
  156. mixpeek/types/__init__.py +19 -29
  157. mixpeek/types/basemodel.py +39 -0
  158. mixpeek/utils/__init__.py +97 -0
  159. mixpeek/utils/annotations.py +55 -0
  160. mixpeek/utils/enums.py +34 -0
  161. mixpeek/utils/eventstreaming.py +238 -0
  162. mixpeek/utils/forms.py +202 -0
  163. mixpeek/utils/headers.py +136 -0
  164. mixpeek/utils/logger.py +27 -0
  165. mixpeek/utils/metadata.py +118 -0
  166. mixpeek/utils/queryparams.py +205 -0
  167. mixpeek/utils/requestbodies.py +66 -0
  168. mixpeek/utils/retries.py +217 -0
  169. mixpeek/utils/security.py +174 -0
  170. mixpeek/utils/serializers.py +215 -0
  171. mixpeek/utils/url.py +155 -0
  172. mixpeek/utils/values.py +134 -0
  173. mixpeek-0.13.dist-info/METADATA +439 -0
  174. mixpeek-0.13.dist-info/RECORD +176 -0
  175. {mixpeek-0.12.0.dist-info → mixpeek-0.13.dist-info}/WHEEL +1 -1
  176. py.typed +1 -0
  177. mixpeek/_base_client.py +0 -2041
  178. mixpeek/_client.py +0 -444
  179. mixpeek/_compat.py +0 -221
  180. mixpeek/_constants.py +0 -14
  181. mixpeek/_exceptions.py +0 -108
  182. mixpeek/_files.py +0 -123
  183. mixpeek/_models.py +0 -788
  184. mixpeek/_qs.py +0 -150
  185. mixpeek/_resource.py +0 -43
  186. mixpeek/_response.py +0 -824
  187. mixpeek/_streaming.py +0 -333
  188. mixpeek/_types.py +0 -219
  189. mixpeek/_utils/__init__.py +0 -56
  190. mixpeek/_utils/_logs.py +0 -25
  191. mixpeek/_utils/_proxy.py +0 -62
  192. mixpeek/_utils/_reflection.py +0 -42
  193. mixpeek/_utils/_streams.py +0 -12
  194. mixpeek/_utils/_sync.py +0 -81
  195. mixpeek/_utils/_transform.py +0 -387
  196. mixpeek/_utils/_typing.py +0 -120
  197. mixpeek/_utils/_utils.py +0 -414
  198. mixpeek/lib/.keep +0 -4
  199. mixpeek/resources/__init__.py +0 -117
  200. mixpeek/resources/accounts.py +0 -271
  201. mixpeek/resources/assets/__init__.py +0 -33
  202. mixpeek/resources/assets/assets.py +0 -708
  203. mixpeek/resources/assets/features.py +0 -172
  204. mixpeek/resources/collections.py +0 -283
  205. mixpeek/resources/entities/__init__.py +0 -47
  206. mixpeek/resources/entities/entities.py +0 -134
  207. mixpeek/resources/entities/faces.py +0 -514
  208. mixpeek/resources/entities/labels.py +0 -388
  209. mixpeek/resources/features/__init__.py +0 -33
  210. mixpeek/resources/features/features.py +0 -562
  211. mixpeek/resources/features/search.py +0 -731
  212. mixpeek/resources/healthcheck.py +0 -135
  213. mixpeek/resources/index/__init__.py +0 -47
  214. mixpeek/resources/index/images.py +0 -249
  215. mixpeek/resources/index/index.py +0 -289
  216. mixpeek/resources/index/videos.py +0 -249
  217. mixpeek/resources/tasks.py +0 -258
  218. mixpeek/types/account_update_params.py +0 -28
  219. mixpeek/types/asset_create_params.py +0 -36
  220. mixpeek/types/asset_create_response.py +0 -15
  221. mixpeek/types/asset_response.py +0 -46
  222. mixpeek/types/asset_search_params.py +0 -43
  223. mixpeek/types/asset_search_response.py +0 -15
  224. mixpeek/types/asset_update_params.py +0 -25
  225. mixpeek/types/asset_update_response.py +0 -11
  226. mixpeek/types/assets/__init__.py +0 -3
  227. mixpeek/types/collection_list_params.py +0 -19
  228. mixpeek/types/collection_list_response.py +0 -14
  229. mixpeek/types/entities/__init__.py +0 -13
  230. mixpeek/types/entities/face_create_params.py +0 -21
  231. mixpeek/types/entities/face_list_params.py +0 -18
  232. mixpeek/types/entities/face_list_response.py +0 -15
  233. mixpeek/types/entities/face_response.py +0 -17
  234. mixpeek/types/entities/face_update_params.py +0 -22
  235. mixpeek/types/entities/label_list_params.py +0 -18
  236. mixpeek/types/entities/label_list_response.py +0 -30
  237. mixpeek/types/entities/label_response.py +0 -30
  238. mixpeek/types/entities/label_update_params.py +0 -21
  239. mixpeek/types/feature.py +0 -32
  240. mixpeek/types/feature_list_params.py +0 -37
  241. mixpeek/types/feature_list_response.py +0 -28
  242. mixpeek/types/feature_retrieve_params.py +0 -18
  243. mixpeek/types/feature_update_params.py +0 -16
  244. mixpeek/types/features/__init__.py +0 -8
  245. mixpeek/types/features/search_feedback_params.py +0 -23
  246. mixpeek/types/features/search_file_params.py +0 -29
  247. mixpeek/types/features/search_text_params.py +0 -72
  248. mixpeek/types/features/search_url_params.py +0 -72
  249. mixpeek/types/grouped_asset_data.py +0 -24
  250. mixpeek/types/health_check_response.py +0 -10
  251. mixpeek/types/index/__init__.py +0 -8
  252. mixpeek/types/index/image_url_params.py +0 -135
  253. mixpeek/types/index/image_url_response.py +0 -20
  254. mixpeek/types/index/video_url_params.py +0 -154
  255. mixpeek/types/index/video_url_response.py +0 -20
  256. mixpeek/types/index_text_params.py +0 -77
  257. mixpeek/types/index_text_response.py +0 -14
  258. mixpeek/types/shared/__init__.py +0 -7
  259. mixpeek/types/shared/filter_condition.py +0 -19
  260. mixpeek/types/shared/logical_operator.py +0 -12
  261. mixpeek/types/shared/model_pagination_response.py +0 -21
  262. mixpeek/types/shared/sort_option.py +0 -15
  263. mixpeek/types/shared/task_response.py +0 -15
  264. mixpeek/types/shared_params/__init__.py +0 -4
  265. mixpeek/types/shared_params/logical_operator.py +0 -13
  266. mixpeek/types/shared_params/sort_option.py +0 -15
  267. mixpeek/types/user.py +0 -34
  268. mixpeek-0.12.0.dist-info/METADATA +0 -345
  269. mixpeek-0.12.0.dist-info/RECORD +0 -99
  270. mixpeek-0.12.0.dist-info/licenses/LICENSE +0 -201
@@ -1,154 +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, Optional
6
- from typing_extensions import Literal, Required, Annotated, TypedDict
7
-
8
- from ..._utils import PropertyInfo
9
-
10
- __all__ = [
11
- "VideoURLParams",
12
- "AssetUpdate",
13
- "VideoSetting",
14
- "VideoSettingDescribe",
15
- "VideoSettingDetect",
16
- "VideoSettingDetectFaces",
17
- "VideoSettingDetectLogos",
18
- "VideoSettingEmbed",
19
- "VideoSettingJsonOutput",
20
- "VideoSettingRead",
21
- "VideoSettingTranscribe",
22
- ]
23
-
24
-
25
- class VideoURLParams(TypedDict, total=False):
26
- collection_id: Required[str]
27
- """Unique identifier for the collection where the processed asset will be stored."""
28
-
29
- url: Required[str]
30
- """The URL of the asset to be processed. Must be a valid HTTP or HTTPS URL."""
31
-
32
- asset_update: Optional[AssetUpdate]
33
- """Asset update information for existing assets"""
34
-
35
- metadata: object
36
- """Additional metadata associated with the asset.
37
-
38
- Can include any key-value pairs relevant to the asset.
39
- """
40
-
41
- prevent_duplicate: Optional[bool]
42
- """Indicates whether to prevent duplicate processing of the same URL."""
43
-
44
- should_save: Optional[bool]
45
- """Indicates whether the processed asset should be uploaded to S3 storage."""
46
-
47
- video_settings: Optional[Iterable[VideoSetting]]
48
- """Settings for video processing.
49
-
50
- Only applicable if the URL points to a video file.
51
- """
52
-
53
- index_id: Annotated[str, PropertyInfo(alias="index-id")]
54
- """filter by organization"""
55
-
56
-
57
- class AssetUpdate(TypedDict, total=False):
58
- asset_id: Required[str]
59
- """Unique identifier for the asset to be updated"""
60
-
61
- mode: Required[Literal["replace", "append"]]
62
- """Update mode: 'replace' or 'append'"""
63
-
64
-
65
- class VideoSettingDescribe(TypedDict, total=False):
66
- json_output: object
67
- """JSON format for the response"""
68
-
69
- max_length: Optional[int]
70
- """Maximum length of the description"""
71
-
72
- model_id: Optional[Literal["video-descriptor-v1"]]
73
-
74
- prompt: Optional[str]
75
- """Prompt for video description"""
76
-
77
-
78
- class VideoSettingDetectFaces(TypedDict, total=False):
79
- confidence_threshold: Optional[float]
80
- """Minimum confidence threshold for detected objects"""
81
-
82
- model_id: Optional[Literal["face-detector-v1"]]
83
- """Model ID for face detection"""
84
-
85
-
86
- class VideoSettingDetectLogos(TypedDict, total=False):
87
- confidence_threshold: Optional[float]
88
- """Minimum confidence threshold for detected logos"""
89
-
90
- model_id: Optional[Literal["logo-detector-v1"]]
91
- """Model ID for logo detection"""
92
-
93
-
94
- class VideoSettingDetect(TypedDict, total=False):
95
- faces: Optional[VideoSettingDetectFaces]
96
- """Settings for face detection"""
97
-
98
- logos: Optional[VideoSettingDetectLogos]
99
- """Settings for logo detection"""
100
-
101
-
102
- class VideoSettingEmbed(TypedDict, total=False):
103
- model_id: Optional[Literal["multimodal-v1"]]
104
-
105
-
106
- class VideoSettingJsonOutput(TypedDict, total=False):
107
- prompt: Optional[str]
108
-
109
- response_shape: Optional[object]
110
-
111
-
112
- class VideoSettingRead(TypedDict, total=False):
113
- json_output: object
114
- """JSON format for the response"""
115
-
116
- model_id: Optional[Literal["video-descriptor-v1"]]
117
-
118
- prompt: Optional[str]
119
- """Prompt for reading on-screen text"""
120
-
121
-
122
- class VideoSettingTranscribe(TypedDict, total=False):
123
- json_output: object
124
- """JSON format for the response"""
125
-
126
- model_id: Optional[Literal["polyglot-v1"]]
127
-
128
- prompt: Optional[str]
129
-
130
-
131
- class VideoSetting(TypedDict, total=False):
132
- describe: Optional[VideoSettingDescribe]
133
- """Settings for generating video descriptions."""
134
-
135
- detect: Optional[VideoSettingDetect]
136
- """Settings for object detection in video frames."""
137
-
138
- embed: Optional[VideoSettingEmbed]
139
- """Settings for generating video embeddings."""
140
-
141
- interval_sec: int
142
- """Interval in seconds for processing video.
143
-
144
- Must be greater than or equal to 5, less than 120.
145
- """
146
-
147
- json_output: Optional[VideoSettingJsonOutput]
148
- """Settings for structured JSON output of video analysis."""
149
-
150
- read: Optional[VideoSettingRead]
151
- """Settings for reading and analyzing video content."""
152
-
153
- transcribe: Optional[VideoSettingTranscribe]
154
- """Settings for transcribing video audio."""
@@ -1,20 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Union
4
- from typing_extensions import TypeAlias
5
-
6
- from ..._models import BaseModel
7
- from ..asset_response import AssetResponse
8
-
9
- __all__ = ["VideoURLResponse", "DBModelTaskResponse"]
10
-
11
-
12
- class DBModelTaskResponse(BaseModel):
13
- message: str
14
- """A message describing the status of the task"""
15
-
16
- task_id: str
17
- """The unique identifier for the processing task"""
18
-
19
-
20
- VideoURLResponse: TypeAlias = Union[AssetResponse, DBModelTaskResponse]
@@ -1,77 +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 Optional
6
- from typing_extensions import Literal, Required, Annotated, TypedDict
7
-
8
- from .._utils import PropertyInfo
9
-
10
- __all__ = [
11
- "IndexTextParams",
12
- "AssetUpdate",
13
- "TextSettings",
14
- "TextSettingsEmbed",
15
- "TextSettingsFulltext",
16
- "TextSettingsJsonOutput",
17
- ]
18
-
19
-
20
- class IndexTextParams(TypedDict, total=False):
21
- collection_id: Required[str]
22
- """Unique identifier for the collection where the processed asset will be stored."""
23
-
24
- text: Required[str]
25
- """The text to be processed."""
26
-
27
- asset_update: Optional[AssetUpdate]
28
- """Asset update information for existing assets"""
29
-
30
- metadata: object
31
- """Additional metadata associated with the file.
32
-
33
- Can include any key-value pairs relevant to the file.
34
- """
35
-
36
- text_settings: Optional[TextSettings]
37
- """Settings for text processing."""
38
-
39
- index_id: Annotated[str, PropertyInfo(alias="index-id")]
40
- """filter by organization"""
41
-
42
-
43
- class AssetUpdate(TypedDict, total=False):
44
- asset_id: Required[str]
45
- """Unique identifier for the asset to be updated"""
46
-
47
- mode: Required[Literal["replace", "append"]]
48
- """Update mode: 'replace' or 'append'"""
49
-
50
-
51
- class TextSettingsEmbed(TypedDict, total=False):
52
- model_id: Optional[Literal["multimodal-v1"]]
53
-
54
-
55
- class TextSettingsFulltext(TypedDict, total=False):
56
- model_id: Literal["splade-v3"]
57
- """Model ID for fulltext indexing. Only 'splade-v3' is currently supported."""
58
-
59
-
60
- class TextSettingsJsonOutput(TypedDict, total=False):
61
- prompt: Optional[str]
62
-
63
- response_shape: Optional[object]
64
-
65
-
66
- class TextSettings(TypedDict, total=False):
67
- embed: Optional[TextSettingsEmbed]
68
- """Settings for generating text embeddings. Only multimodal-v1 is supported."""
69
-
70
- fulltext: Optional[TextSettingsFulltext]
71
- """Field names to be used for fulltext indexing.
72
-
73
- Only one field is supported initially.
74
- """
75
-
76
- json_output: Optional[TextSettingsJsonOutput]
77
- """Settings for structured JSON output of text analysis."""
@@ -1,14 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
-
4
- from .._models import BaseModel
5
-
6
- __all__ = ["IndexTextResponse"]
7
-
8
-
9
- class IndexTextResponse(BaseModel):
10
- message: str
11
- """A message describing the status of the task"""
12
-
13
- task_id: str
14
- """The unique identifier for the processing task"""
@@ -1,7 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from .sort_option import SortOption as SortOption
4
- from .task_response import TaskResponse as TaskResponse
5
- from .filter_condition import FilterCondition as FilterCondition
6
- from .logical_operator import LogicalOperator as LogicalOperator
7
- from .model_pagination_response import ModelPaginationResponse as ModelPaginationResponse
@@ -1,19 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Optional
4
- from typing_extensions import Literal
5
-
6
- from ..._models import BaseModel
7
-
8
- __all__ = ["FilterCondition"]
9
-
10
-
11
- class FilterCondition(BaseModel):
12
- key: str
13
- """Field name to filter on"""
14
-
15
- operator: Optional[Literal["eq", "ne", "gt", "lt", "gte", "lte", "in", "nin", "is_null", "text", "exists"]] = None
16
- """Comparison operator"""
17
-
18
- value: Optional[object] = None
19
- """Value to compare against"""
@@ -1,12 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Optional
4
-
5
- from ..._models import BaseModel
6
-
7
- __all__ = ["LogicalOperator"]
8
-
9
-
10
- class LogicalOperator(BaseModel):
11
- case_sensitive: Optional[bool] = None
12
- """Whether to perform case-sensitive matching"""
@@ -1,21 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Optional
4
-
5
- from ..._models import BaseModel
6
-
7
- __all__ = ["ModelPaginationResponse"]
8
-
9
-
10
- class ModelPaginationResponse(BaseModel):
11
- next_page: Optional[str] = None
12
-
13
- page: int
14
-
15
- page_size: int
16
-
17
- previous_page: Optional[str] = None
18
-
19
- total: int
20
-
21
- total_pages: int
@@ -1,15 +0,0 @@
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__ = ["SortOption"]
8
-
9
-
10
- class SortOption(BaseModel):
11
- direction: Literal["asc", "desc"]
12
- """Sort direction"""
13
-
14
- field: str
15
- """Field to sort by, supports dot notation for nested fields"""
@@ -1,15 +0,0 @@
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
- asset_id: str
12
-
13
- status: Literal["DONE", "FAILED", "PROCESSING", "DOWNLOADING", "INITIALIZING"]
14
-
15
- task_id: str
@@ -1,4 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from .sort_option import SortOption as SortOption
4
- from .logical_operator import LogicalOperator as LogicalOperator
@@ -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 import Optional
6
- from typing_extensions import TypedDict
7
-
8
- __all__ = ["LogicalOperator"]
9
-
10
-
11
- class LogicalOperator(TypedDict, total=False):
12
- case_sensitive: Optional[bool]
13
- """Whether to perform case-sensitive matching"""
@@ -1,15 +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 Literal, Required, TypedDict
6
-
7
- __all__ = ["SortOption"]
8
-
9
-
10
- class SortOption(TypedDict, total=False):
11
- direction: Required[Literal["asc", "desc"]]
12
- """Sort direction"""
13
-
14
- field: Required[str]
15
- """Field to sort by, supports dot notation for nested fields"""
mixpeek/types/user.py DELETED
@@ -1,34 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import List, Optional
4
- from datetime import datetime
5
-
6
- from .._models import BaseModel
7
-
8
- __all__ = ["User", "APIKey"]
9
-
10
-
11
- class APIKey(BaseModel):
12
- created_at: Optional[datetime] = None
13
-
14
- key: Optional[str] = None
15
-
16
- name: Optional[str] = None
17
-
18
-
19
- class User(BaseModel):
20
- email: str
21
-
22
- account_type: Optional[str] = None
23
-
24
- api_keys: Optional[List[APIKey]] = None
25
-
26
- credit_count: Optional[int] = None
27
-
28
- feature_indexes: Optional[object] = None
29
-
30
- index_ids: Optional[List[str]] = None
31
-
32
- metadata: Optional[object] = None
33
-
34
- user_id: Optional[str] = None