mixpeek 0.21.8__py3-none-any.whl → 0.22.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/_hooks/types.py +7 -0
- mixpeek/_version.py +3 -3
- mixpeek/basesdk.py +12 -20
- mixpeek/bucketobjects.py +19 -37
- mixpeek/buckets.py +19 -31
- mixpeek/clusters.py +2 -0
- mixpeek/collectioncache.py +6 -0
- mixpeek/collections.py +13 -19
- mixpeek/features.py +4 -0
- mixpeek/health.py +2 -0
- mixpeek/httpclient.py +6 -16
- mixpeek/models/__init__.py +744 -596
- mixpeek/models/blobmodel.py +3 -11
- mixpeek/models/bucketcreaterequest.py +3 -11
- mixpeek/models/bucketresponse.py +3 -11
- mixpeek/models/bucketschemafield_input.py +6 -22
- mixpeek/models/bucketschemafield_output.py +6 -22
- mixpeek/models/bucketschemafieldbase.py +81 -0
- mixpeek/models/bucketschemafieldtype.py +1 -0
- mixpeek/models/bucketupdaterequest.py +3 -10
- mixpeek/models/collectionmodel.py +3 -11
- mixpeek/models/createblobrequest.py +3 -11
- mixpeek/models/createcollectionrequest.py +3 -11
- mixpeek/models/createnamespacerequest.py +9 -9
- mixpeek/models/createobjectrequest.py +3 -11
- mixpeek/models/createretrieverrequest.py +3 -11
- mixpeek/models/errordetail.py +3 -10
- mixpeek/models/featureextractorconfig.py +3 -11
- mixpeek/models/featureextractordefinition.py +26 -46
- mixpeek/models/interactionresponse.py +3 -11
- mixpeek/models/internal/__init__.py +35 -1
- mixpeek/models/logicaloperator_input.py +30 -36
- mixpeek/models/logicaloperator_output.py +39 -45
- mixpeek/models/logicaloperatorbase_input.py +74 -0
- mixpeek/models/logicaloperatorbase_output.py +74 -0
- mixpeek/models/namespaceresponse.py +17 -6
- mixpeek/models/namespacestatus.py +10 -0
- mixpeek/models/objectresponse.py +3 -11
- mixpeek/models/organizationmodel.py +3 -11
- mixpeek/models/retrieverbinding.py +3 -10
- mixpeek/models/retrievermodel.py +3 -11
- mixpeek/models/retrieverqueryrequest.py +3 -11
- mixpeek/models/retrieverschemafield_input.py +6 -26
- mixpeek/models/retrieverschemafield_output.py +6 -26
- mixpeek/models/searchinteraction.py +3 -11
- mixpeek/models/stageconfig_input.py +8 -16
- mixpeek/models/stageconfig_output.py +8 -16
- mixpeek/models/stagedefinition.py +28 -17
- mixpeek/models/stageresponse.py +3 -11
- mixpeek/models/updateobjectrequest.py +3 -11
- mixpeek/models/usermodel_input.py +3 -11
- mixpeek/models/usermodel_output.py +3 -11
- mixpeek/namespaces.py +28 -22
- mixpeek/organizationnotifications.py +2 -0
- mixpeek/organizations.py +13 -13
- mixpeek/organizationsusage.py +2 -0
- mixpeek/research.py +2 -0
- mixpeek/retrieverinteractions.py +13 -19
- mixpeek/retrievers.py +15 -33
- mixpeek/retrieverstages.py +2 -0
- mixpeek/sdk.py +94 -65
- mixpeek/sdkconfiguration.py +0 -7
- mixpeek/tasks.py +6 -0
- mixpeek/taxonomies.py +2 -0
- mixpeek/users.py +6 -0
- mixpeek/utils/__init__.py +131 -45
- mixpeek/utils/datetimes.py +23 -0
- mixpeek/utils/serializers.py +32 -3
- {mixpeek-0.21.8.dist-info → mixpeek-0.22.0.dist-info}/METADATA +3 -15
- {mixpeek-0.21.8.dist-info → mixpeek-0.22.0.dist-info}/RECORD +71 -77
- {mixpeek-0.21.8.dist-info → mixpeek-0.22.0.dist-info}/WHEEL +1 -1
- mixpeek/collectiondocuments.py +0 -1564
- mixpeek/models/batch_delete_documents_v1_collections_collection_identifier_documents_batch_deleteop.py +0 -75
- mixpeek/models/batch_update_documents_v1_collections_collection_identifier_documents_batch_putop.py +0 -84
- mixpeek/models/delete_document_v1_collections_collection_identifier_documents_document_id_deleteop.py +0 -70
- mixpeek/models/documentlistresponse.py +0 -56
- mixpeek/models/documentresponse.py +0 -87
- mixpeek/models/documentupdate.py +0 -60
- mixpeek/models/genericsuccessresponse.py +0 -17
- mixpeek/models/get_document_v1_collections_collection_identifier_documents_document_id_getop.py +0 -70
- mixpeek/models/list_documents_v1_collections_collection_identifier_documents_getop.py +0 -114
- mixpeek/models/update_document_v1_collections_collection_identifier_documents_document_id_putop.py +0 -83
@@ -4,24 +4,16 @@ from __future__ import annotations
|
|
4
4
|
from .apikey import APIKey, APIKeyTypedDict
|
5
5
|
from datetime import datetime
|
6
6
|
from mixpeek.types import BaseModel
|
7
|
-
from typing import List, Optional
|
7
|
+
from typing import Any, Dict, List, Optional
|
8
8
|
from typing_extensions import NotRequired, TypedDict
|
9
9
|
|
10
10
|
|
11
|
-
class UserModelInputMetadataTypedDict(TypedDict):
|
12
|
-
pass
|
13
|
-
|
14
|
-
|
15
|
-
class UserModelInputMetadata(BaseModel):
|
16
|
-
pass
|
17
|
-
|
18
|
-
|
19
11
|
class UserModelInputTypedDict(TypedDict):
|
20
12
|
email: str
|
21
13
|
user_id: NotRequired[str]
|
22
14
|
user_name: NotRequired[str]
|
23
15
|
api_keys: NotRequired[List[APIKeyTypedDict]]
|
24
|
-
metadata: NotRequired[
|
16
|
+
metadata: NotRequired[Dict[str, Any]]
|
25
17
|
created_at: NotRequired[datetime]
|
26
18
|
|
27
19
|
|
@@ -34,6 +26,6 @@ class UserModelInput(BaseModel):
|
|
34
26
|
|
35
27
|
api_keys: Optional[List[APIKey]] = None
|
36
28
|
|
37
|
-
metadata: Optional[
|
29
|
+
metadata: Optional[Dict[str, Any]] = None
|
38
30
|
|
39
31
|
created_at: Optional[datetime] = None
|
@@ -4,24 +4,16 @@ from __future__ import annotations
|
|
4
4
|
from .apikey import APIKey, APIKeyTypedDict
|
5
5
|
from datetime import datetime
|
6
6
|
from mixpeek.types import BaseModel
|
7
|
-
from typing import List, Optional
|
7
|
+
from typing import Any, Dict, List, Optional
|
8
8
|
from typing_extensions import NotRequired, TypedDict
|
9
9
|
|
10
10
|
|
11
|
-
class UserModelOutputMetadataTypedDict(TypedDict):
|
12
|
-
pass
|
13
|
-
|
14
|
-
|
15
|
-
class UserModelOutputMetadata(BaseModel):
|
16
|
-
pass
|
17
|
-
|
18
|
-
|
19
11
|
class UserModelOutputTypedDict(TypedDict):
|
20
12
|
email: str
|
21
13
|
user_id: NotRequired[str]
|
22
14
|
user_name: NotRequired[str]
|
23
15
|
api_keys: NotRequired[List[APIKeyTypedDict]]
|
24
|
-
metadata: NotRequired[
|
16
|
+
metadata: NotRequired[Dict[str, Any]]
|
25
17
|
created_at: NotRequired[datetime]
|
26
18
|
|
27
19
|
|
@@ -34,6 +26,6 @@ class UserModelOutput(BaseModel):
|
|
34
26
|
|
35
27
|
api_keys: Optional[List[APIKey]] = None
|
36
28
|
|
37
|
-
metadata: Optional[
|
29
|
+
metadata: Optional[Dict[str, Any]] = None
|
38
30
|
|
39
31
|
created_at: Optional[datetime] = None
|
mixpeek/namespaces.py
CHANGED
@@ -13,13 +13,11 @@ class Namespaces(BaseSDK):
|
|
13
13
|
self,
|
14
14
|
*,
|
15
15
|
namespace_name: str,
|
16
|
+
feature_extractors: Union[
|
17
|
+
List[models.BasicFeatureExtractor],
|
18
|
+
List[models.BasicFeatureExtractorTypedDict],
|
19
|
+
],
|
16
20
|
description: OptionalNullable[str] = UNSET,
|
17
|
-
feature_extractors: Optional[
|
18
|
-
Union[
|
19
|
-
List[models.BasicFeatureExtractor],
|
20
|
-
List[models.BasicFeatureExtractorTypedDict],
|
21
|
-
]
|
22
|
-
] = None,
|
23
21
|
payload_indexes: OptionalNullable[
|
24
22
|
Union[
|
25
23
|
List[models.PayloadIndexConfig],
|
@@ -33,12 +31,12 @@ class Namespaces(BaseSDK):
|
|
33
31
|
) -> models.NamespaceResponse:
|
34
32
|
r"""Create Namespace
|
35
33
|
|
36
|
-
Creates a new namespace with
|
34
|
+
Creates a new namespace with specified feature extractors and payload indexes.
|
37
35
|
|
38
36
|
:param namespace_name: Name of the namespace to create
|
37
|
+
:param feature_extractors: List of feature extractors to use. At least one feature extractor must be provided.
|
39
38
|
:param description: Description of the namespace
|
40
|
-
:param
|
41
|
-
:param payload_indexes: List of payload index configurations
|
39
|
+
:param payload_indexes: Optional list of custom payload index configurations. Indexes required by selected feature extractors will be added automatically.
|
42
40
|
:param retries: Override the default retry configuration for this method
|
43
41
|
:param server_url: Override the default server URL for this method
|
44
42
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
@@ -58,7 +56,7 @@ class Namespaces(BaseSDK):
|
|
58
56
|
namespace_name=namespace_name,
|
59
57
|
description=description,
|
60
58
|
feature_extractors=utils.get_pydantic_model(
|
61
|
-
feature_extractors,
|
59
|
+
feature_extractors, List[models.BasicFeatureExtractor]
|
62
60
|
),
|
63
61
|
payload_indexes=utils.get_pydantic_model(
|
64
62
|
payload_indexes, OptionalNullable[List[models.PayloadIndexConfig]]
|
@@ -94,6 +92,7 @@ class Namespaces(BaseSDK):
|
|
94
92
|
|
95
93
|
http_res = self.do_request(
|
96
94
|
hook_ctx=HookContext(
|
95
|
+
config=self.sdk_configuration,
|
97
96
|
base_url=base_url or "",
|
98
97
|
operation_id="create_namespace_v1_namespaces_post",
|
99
98
|
oauth2_scopes=[],
|
@@ -107,7 +106,7 @@ class Namespaces(BaseSDK):
|
|
107
106
|
)
|
108
107
|
|
109
108
|
response_data: Any = None
|
110
|
-
if utils.match_response(http_res, "
|
109
|
+
if utils.match_response(http_res, "201", "application/json"):
|
111
110
|
return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
|
112
111
|
if utils.match_response(
|
113
112
|
http_res, ["400", "401", "403", "404"], "application/json"
|
@@ -150,13 +149,11 @@ class Namespaces(BaseSDK):
|
|
150
149
|
self,
|
151
150
|
*,
|
152
151
|
namespace_name: str,
|
152
|
+
feature_extractors: Union[
|
153
|
+
List[models.BasicFeatureExtractor],
|
154
|
+
List[models.BasicFeatureExtractorTypedDict],
|
155
|
+
],
|
153
156
|
description: OptionalNullable[str] = UNSET,
|
154
|
-
feature_extractors: Optional[
|
155
|
-
Union[
|
156
|
-
List[models.BasicFeatureExtractor],
|
157
|
-
List[models.BasicFeatureExtractorTypedDict],
|
158
|
-
]
|
159
|
-
] = None,
|
160
157
|
payload_indexes: OptionalNullable[
|
161
158
|
Union[
|
162
159
|
List[models.PayloadIndexConfig],
|
@@ -170,12 +167,12 @@ class Namespaces(BaseSDK):
|
|
170
167
|
) -> models.NamespaceResponse:
|
171
168
|
r"""Create Namespace
|
172
169
|
|
173
|
-
Creates a new namespace with
|
170
|
+
Creates a new namespace with specified feature extractors and payload indexes.
|
174
171
|
|
175
172
|
:param namespace_name: Name of the namespace to create
|
173
|
+
:param feature_extractors: List of feature extractors to use. At least one feature extractor must be provided.
|
176
174
|
:param description: Description of the namespace
|
177
|
-
:param
|
178
|
-
:param payload_indexes: List of payload index configurations
|
175
|
+
:param payload_indexes: Optional list of custom payload index configurations. Indexes required by selected feature extractors will be added automatically.
|
179
176
|
:param retries: Override the default retry configuration for this method
|
180
177
|
:param server_url: Override the default server URL for this method
|
181
178
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
@@ -195,7 +192,7 @@ class Namespaces(BaseSDK):
|
|
195
192
|
namespace_name=namespace_name,
|
196
193
|
description=description,
|
197
194
|
feature_extractors=utils.get_pydantic_model(
|
198
|
-
feature_extractors,
|
195
|
+
feature_extractors, List[models.BasicFeatureExtractor]
|
199
196
|
),
|
200
197
|
payload_indexes=utils.get_pydantic_model(
|
201
198
|
payload_indexes, OptionalNullable[List[models.PayloadIndexConfig]]
|
@@ -231,6 +228,7 @@ class Namespaces(BaseSDK):
|
|
231
228
|
|
232
229
|
http_res = await self.do_request_async(
|
233
230
|
hook_ctx=HookContext(
|
231
|
+
config=self.sdk_configuration,
|
234
232
|
base_url=base_url or "",
|
235
233
|
operation_id="create_namespace_v1_namespaces_post",
|
236
234
|
oauth2_scopes=[],
|
@@ -244,7 +242,7 @@ class Namespaces(BaseSDK):
|
|
244
242
|
)
|
245
243
|
|
246
244
|
response_data: Any = None
|
247
|
-
if utils.match_response(http_res, "
|
245
|
+
if utils.match_response(http_res, "201", "application/json"):
|
248
246
|
return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
|
249
247
|
if utils.match_response(
|
250
248
|
http_res, ["400", "401", "403", "404"], "application/json"
|
@@ -335,6 +333,7 @@ class Namespaces(BaseSDK):
|
|
335
333
|
|
336
334
|
http_res = self.do_request(
|
337
335
|
hook_ctx=HookContext(
|
336
|
+
config=self.sdk_configuration,
|
338
337
|
base_url=base_url or "",
|
339
338
|
operation_id="list_namespaces_v1_namespaces_get",
|
340
339
|
oauth2_scopes=[],
|
@@ -439,6 +438,7 @@ class Namespaces(BaseSDK):
|
|
439
438
|
|
440
439
|
http_res = await self.do_request_async(
|
441
440
|
hook_ctx=HookContext(
|
441
|
+
config=self.sdk_configuration,
|
442
442
|
base_url=base_url or "",
|
443
443
|
operation_id="list_namespaces_v1_namespaces_get",
|
444
444
|
oauth2_scopes=[],
|
@@ -550,6 +550,7 @@ class Namespaces(BaseSDK):
|
|
550
550
|
|
551
551
|
http_res = self.do_request(
|
552
552
|
hook_ctx=HookContext(
|
553
|
+
config=self.sdk_configuration,
|
553
554
|
base_url=base_url or "",
|
554
555
|
operation_id="delete_namespace_v1_namespaces__namespace__delete",
|
555
556
|
oauth2_scopes=[],
|
@@ -661,6 +662,7 @@ class Namespaces(BaseSDK):
|
|
661
662
|
|
662
663
|
http_res = await self.do_request_async(
|
663
664
|
hook_ctx=HookContext(
|
665
|
+
config=self.sdk_configuration,
|
664
666
|
base_url=base_url or "",
|
665
667
|
operation_id="delete_namespace_v1_namespaces__namespace__delete",
|
666
668
|
oauth2_scopes=[],
|
@@ -794,6 +796,7 @@ class Namespaces(BaseSDK):
|
|
794
796
|
|
795
797
|
http_res = self.do_request(
|
796
798
|
hook_ctx=HookContext(
|
799
|
+
config=self.sdk_configuration,
|
797
800
|
base_url=base_url or "",
|
798
801
|
operation_id="update_namespace_v1_namespaces__namespace__put",
|
799
802
|
oauth2_scopes=[],
|
@@ -927,6 +930,7 @@ class Namespaces(BaseSDK):
|
|
927
930
|
|
928
931
|
http_res = await self.do_request_async(
|
929
932
|
hook_ctx=HookContext(
|
933
|
+
config=self.sdk_configuration,
|
930
934
|
base_url=base_url or "",
|
931
935
|
operation_id="update_namespace_v1_namespaces__namespace__put",
|
932
936
|
oauth2_scopes=[],
|
@@ -1038,6 +1042,7 @@ class Namespaces(BaseSDK):
|
|
1038
1042
|
|
1039
1043
|
http_res = self.do_request(
|
1040
1044
|
hook_ctx=HookContext(
|
1045
|
+
config=self.sdk_configuration,
|
1041
1046
|
base_url=base_url or "",
|
1042
1047
|
operation_id="get_namespace_v1_namespaces__namespace__get",
|
1043
1048
|
oauth2_scopes=[],
|
@@ -1149,6 +1154,7 @@ class Namespaces(BaseSDK):
|
|
1149
1154
|
|
1150
1155
|
http_res = await self.do_request_async(
|
1151
1156
|
hook_ctx=HookContext(
|
1157
|
+
config=self.sdk_configuration,
|
1152
1158
|
base_url=base_url or "",
|
1153
1159
|
operation_id="get_namespace_v1_namespaces__namespace__get",
|
1154
1160
|
oauth2_scopes=[],
|
@@ -59,6 +59,7 @@ class OrganizationNotifications(BaseSDK):
|
|
59
59
|
|
60
60
|
http_res = self.do_request(
|
61
61
|
hook_ctx=HookContext(
|
62
|
+
config=self.sdk_configuration,
|
62
63
|
base_url=base_url or "",
|
63
64
|
operation_id="send_notification_v1_organizations_notifications_send_post",
|
64
65
|
oauth2_scopes=[],
|
@@ -161,6 +162,7 @@ class OrganizationNotifications(BaseSDK):
|
|
161
162
|
|
162
163
|
http_res = await self.do_request_async(
|
163
164
|
hook_ctx=HookContext(
|
165
|
+
config=self.sdk_configuration,
|
164
166
|
base_url=base_url or "",
|
165
167
|
operation_id="send_notification_v1_organizations_notifications_send_post",
|
166
168
|
oauth2_scopes=[],
|
mixpeek/organizations.py
CHANGED
@@ -6,7 +6,7 @@ from mixpeek import models, utils
|
|
6
6
|
from mixpeek._hooks import HookContext
|
7
7
|
from mixpeek.types import OptionalNullable, UNSET
|
8
8
|
from mixpeek.utils import get_security_from_env
|
9
|
-
from typing import Any, List, Mapping, Optional, Union
|
9
|
+
from typing import Any, Dict, List, Mapping, Optional, Union
|
10
10
|
|
11
11
|
|
12
12
|
class Organizations(BaseSDK):
|
@@ -63,6 +63,7 @@ class Organizations(BaseSDK):
|
|
63
63
|
|
64
64
|
http_res = self.do_request(
|
65
65
|
hook_ctx=HookContext(
|
66
|
+
config=self.sdk_configuration,
|
66
67
|
base_url=base_url or "",
|
67
68
|
operation_id="get_organization_v1_organizations_get",
|
68
69
|
oauth2_scopes=[],
|
@@ -168,6 +169,7 @@ class Organizations(BaseSDK):
|
|
168
169
|
|
169
170
|
http_res = await self.do_request_async(
|
170
171
|
hook_ctx=HookContext(
|
172
|
+
config=self.sdk_configuration,
|
171
173
|
base_url=base_url or "",
|
172
174
|
operation_id="get_organization_v1_organizations_get",
|
173
175
|
oauth2_scopes=[],
|
@@ -229,9 +231,7 @@ class Organizations(BaseSDK):
|
|
229
231
|
api_keys: Optional[
|
230
232
|
Union[List[models.APIKey], List[models.APIKeyTypedDict]]
|
231
233
|
] = None,
|
232
|
-
metadata: Optional[
|
233
|
-
Union[models.UserModelInputMetadata, models.UserModelInputMetadataTypedDict]
|
234
|
-
] = None,
|
234
|
+
metadata: Optional[Dict[str, Any]] = None,
|
235
235
|
created_at: Optional[datetime] = None,
|
236
236
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
237
237
|
server_url: Optional[str] = None,
|
@@ -269,9 +269,7 @@ class Organizations(BaseSDK):
|
|
269
269
|
user_name=user_name,
|
270
270
|
email=email,
|
271
271
|
api_keys=utils.get_pydantic_model(api_keys, Optional[List[models.APIKey]]),
|
272
|
-
metadata=
|
273
|
-
metadata, Optional[models.UserModelInputMetadata]
|
274
|
-
),
|
272
|
+
metadata=metadata,
|
275
273
|
created_at=created_at,
|
276
274
|
)
|
277
275
|
|
@@ -304,6 +302,7 @@ class Organizations(BaseSDK):
|
|
304
302
|
|
305
303
|
http_res = self.do_request(
|
306
304
|
hook_ctx=HookContext(
|
305
|
+
config=self.sdk_configuration,
|
307
306
|
base_url=base_url or "",
|
308
307
|
operation_id="add_user_v1_organizations_users_post",
|
309
308
|
oauth2_scopes=[],
|
@@ -365,9 +364,7 @@ class Organizations(BaseSDK):
|
|
365
364
|
api_keys: Optional[
|
366
365
|
Union[List[models.APIKey], List[models.APIKeyTypedDict]]
|
367
366
|
] = None,
|
368
|
-
metadata: Optional[
|
369
|
-
Union[models.UserModelInputMetadata, models.UserModelInputMetadataTypedDict]
|
370
|
-
] = None,
|
367
|
+
metadata: Optional[Dict[str, Any]] = None,
|
371
368
|
created_at: Optional[datetime] = None,
|
372
369
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
373
370
|
server_url: Optional[str] = None,
|
@@ -405,9 +402,7 @@ class Organizations(BaseSDK):
|
|
405
402
|
user_name=user_name,
|
406
403
|
email=email,
|
407
404
|
api_keys=utils.get_pydantic_model(api_keys, Optional[List[models.APIKey]]),
|
408
|
-
metadata=
|
409
|
-
metadata, Optional[models.UserModelInputMetadata]
|
410
|
-
),
|
405
|
+
metadata=metadata,
|
411
406
|
created_at=created_at,
|
412
407
|
)
|
413
408
|
|
@@ -440,6 +435,7 @@ class Organizations(BaseSDK):
|
|
440
435
|
|
441
436
|
http_res = await self.do_request_async(
|
442
437
|
hook_ctx=HookContext(
|
438
|
+
config=self.sdk_configuration,
|
443
439
|
base_url=base_url or "",
|
444
440
|
operation_id="add_user_v1_organizations_users_post",
|
445
441
|
oauth2_scopes=[],
|
@@ -556,6 +552,7 @@ class Organizations(BaseSDK):
|
|
556
552
|
|
557
553
|
http_res = self.do_request(
|
558
554
|
hook_ctx=HookContext(
|
555
|
+
config=self.sdk_configuration,
|
559
556
|
base_url=base_url or "",
|
560
557
|
operation_id="delete_api_key_v1_organizations_users__user_email__api_keys__key_name__delete",
|
561
558
|
oauth2_scopes=[],
|
@@ -672,6 +669,7 @@ class Organizations(BaseSDK):
|
|
672
669
|
|
673
670
|
http_res = await self.do_request_async(
|
674
671
|
hook_ctx=HookContext(
|
672
|
+
config=self.sdk_configuration,
|
675
673
|
base_url=base_url or "",
|
676
674
|
operation_id="delete_api_key_v1_organizations_users__user_email__api_keys__key_name__delete",
|
677
675
|
oauth2_scopes=[],
|
@@ -799,6 +797,7 @@ class Organizations(BaseSDK):
|
|
799
797
|
|
800
798
|
http_res = self.do_request(
|
801
799
|
hook_ctx=HookContext(
|
800
|
+
config=self.sdk_configuration,
|
802
801
|
base_url=base_url or "",
|
803
802
|
operation_id="update_api_key_v1_organizations_users__user_email__api_keys__key_name__patch",
|
804
803
|
oauth2_scopes=[],
|
@@ -926,6 +925,7 @@ class Organizations(BaseSDK):
|
|
926
925
|
|
927
926
|
http_res = await self.do_request_async(
|
928
927
|
hook_ctx=HookContext(
|
928
|
+
config=self.sdk_configuration,
|
929
929
|
base_url=base_url or "",
|
930
930
|
operation_id="update_api_key_v1_organizations_users__user_email__api_keys__key_name__patch",
|
931
931
|
oauth2_scopes=[],
|
mixpeek/organizationsusage.py
CHANGED
@@ -71,6 +71,7 @@ class OrganizationsUsage(BaseSDK):
|
|
71
71
|
|
72
72
|
http_res = self.do_request(
|
73
73
|
hook_ctx=HookContext(
|
74
|
+
config=self.sdk_configuration,
|
74
75
|
base_url=base_url or "",
|
75
76
|
operation_id="get_usage_v1_organizations_usage_post",
|
76
77
|
oauth2_scopes=[],
|
@@ -185,6 +186,7 @@ class OrganizationsUsage(BaseSDK):
|
|
185
186
|
|
186
187
|
http_res = await self.do_request_async(
|
187
188
|
hook_ctx=HookContext(
|
189
|
+
config=self.sdk_configuration,
|
188
190
|
base_url=base_url or "",
|
189
191
|
operation_id="get_usage_v1_organizations_usage_post",
|
190
192
|
oauth2_scopes=[],
|
mixpeek/research.py
CHANGED
@@ -66,6 +66,7 @@ class Research(BaseSDK):
|
|
66
66
|
|
67
67
|
http_res = self.do_request(
|
68
68
|
hook_ctx=HookContext(
|
69
|
+
config=self.sdk_configuration,
|
69
70
|
base_url=base_url or "",
|
70
71
|
operation_id="get_research_v1_research_get",
|
71
72
|
oauth2_scopes=[],
|
@@ -175,6 +176,7 @@ class Research(BaseSDK):
|
|
175
176
|
|
176
177
|
http_res = await self.do_request_async(
|
177
178
|
hook_ctx=HookContext(
|
179
|
+
config=self.sdk_configuration,
|
178
180
|
base_url=base_url or "",
|
179
181
|
operation_id="get_research_v1_research_get",
|
180
182
|
oauth2_scopes=[],
|
mixpeek/retrieverinteractions.py
CHANGED
@@ -5,7 +5,7 @@ from mixpeek import models, utils
|
|
5
5
|
from mixpeek._hooks import HookContext
|
6
6
|
from mixpeek.types import OptionalNullable, UNSET
|
7
7
|
from mixpeek.utils import get_security_from_env
|
8
|
-
from typing import Any, List, Mapping, Optional
|
8
|
+
from typing import Any, Dict, List, Mapping, Optional
|
9
9
|
|
10
10
|
|
11
11
|
class RetrieverInteractions(BaseSDK):
|
@@ -16,12 +16,7 @@ class RetrieverInteractions(BaseSDK):
|
|
16
16
|
interaction_type: List[models.InteractionType],
|
17
17
|
x_namespace: OptionalNullable[str] = UNSET,
|
18
18
|
position: OptionalNullable[int] = UNSET,
|
19
|
-
metadata: OptionalNullable[
|
20
|
-
Union[
|
21
|
-
models.SearchInteractionMetadata,
|
22
|
-
models.SearchInteractionMetadataTypedDict,
|
23
|
-
]
|
24
|
-
] = UNSET,
|
19
|
+
metadata: OptionalNullable[Dict[str, Any]] = UNSET,
|
25
20
|
user_id: OptionalNullable[str] = UNSET,
|
26
21
|
session_id: OptionalNullable[str] = UNSET,
|
27
22
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
@@ -64,9 +59,7 @@ class RetrieverInteractions(BaseSDK):
|
|
64
59
|
feature_id=feature_id,
|
65
60
|
interaction_type=interaction_type,
|
66
61
|
position=position,
|
67
|
-
metadata=
|
68
|
-
metadata, OptionalNullable[models.SearchInteractionMetadata]
|
69
|
-
),
|
62
|
+
metadata=metadata,
|
70
63
|
user_id=user_id,
|
71
64
|
session_id=session_id,
|
72
65
|
),
|
@@ -105,6 +98,7 @@ class RetrieverInteractions(BaseSDK):
|
|
105
98
|
|
106
99
|
http_res = self.do_request(
|
107
100
|
hook_ctx=HookContext(
|
101
|
+
config=self.sdk_configuration,
|
108
102
|
base_url=base_url or "",
|
109
103
|
operation_id="create_interaction_v1_retrievers_interactions_post",
|
110
104
|
oauth2_scopes=[],
|
@@ -164,12 +158,7 @@ class RetrieverInteractions(BaseSDK):
|
|
164
158
|
interaction_type: List[models.InteractionType],
|
165
159
|
x_namespace: OptionalNullable[str] = UNSET,
|
166
160
|
position: OptionalNullable[int] = UNSET,
|
167
|
-
metadata: OptionalNullable[
|
168
|
-
Union[
|
169
|
-
models.SearchInteractionMetadata,
|
170
|
-
models.SearchInteractionMetadataTypedDict,
|
171
|
-
]
|
172
|
-
] = UNSET,
|
161
|
+
metadata: OptionalNullable[Dict[str, Any]] = UNSET,
|
173
162
|
user_id: OptionalNullable[str] = UNSET,
|
174
163
|
session_id: OptionalNullable[str] = UNSET,
|
175
164
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
@@ -212,9 +201,7 @@ class RetrieverInteractions(BaseSDK):
|
|
212
201
|
feature_id=feature_id,
|
213
202
|
interaction_type=interaction_type,
|
214
203
|
position=position,
|
215
|
-
metadata=
|
216
|
-
metadata, OptionalNullable[models.SearchInteractionMetadata]
|
217
|
-
),
|
204
|
+
metadata=metadata,
|
218
205
|
user_id=user_id,
|
219
206
|
session_id=session_id,
|
220
207
|
),
|
@@ -253,6 +240,7 @@ class RetrieverInteractions(BaseSDK):
|
|
253
240
|
|
254
241
|
http_res = await self.do_request_async(
|
255
242
|
hook_ctx=HookContext(
|
243
|
+
config=self.sdk_configuration,
|
256
244
|
base_url=base_url or "",
|
257
245
|
operation_id="create_interaction_v1_retrievers_interactions_post",
|
258
246
|
oauth2_scopes=[],
|
@@ -382,6 +370,7 @@ class RetrieverInteractions(BaseSDK):
|
|
382
370
|
|
383
371
|
http_res = self.do_request(
|
384
372
|
hook_ctx=HookContext(
|
373
|
+
config=self.sdk_configuration,
|
385
374
|
base_url=base_url or "",
|
386
375
|
operation_id="list_interactions_v1_retrievers_interactions_get",
|
387
376
|
oauth2_scopes=[],
|
@@ -511,6 +500,7 @@ class RetrieverInteractions(BaseSDK):
|
|
511
500
|
|
512
501
|
http_res = await self.do_request_async(
|
513
502
|
hook_ctx=HookContext(
|
503
|
+
config=self.sdk_configuration,
|
514
504
|
base_url=base_url or "",
|
515
505
|
operation_id="list_interactions_v1_retrievers_interactions_get",
|
516
506
|
oauth2_scopes=[],
|
@@ -628,6 +618,7 @@ class RetrieverInteractions(BaseSDK):
|
|
628
618
|
|
629
619
|
http_res = self.do_request(
|
630
620
|
hook_ctx=HookContext(
|
621
|
+
config=self.sdk_configuration,
|
631
622
|
base_url=base_url or "",
|
632
623
|
operation_id="get_interaction_v1_retrievers_interactions__interaction_id__get",
|
633
624
|
oauth2_scopes=[],
|
@@ -745,6 +736,7 @@ class RetrieverInteractions(BaseSDK):
|
|
745
736
|
|
746
737
|
http_res = await self.do_request_async(
|
747
738
|
hook_ctx=HookContext(
|
739
|
+
config=self.sdk_configuration,
|
748
740
|
base_url=base_url or "",
|
749
741
|
operation_id="get_interaction_v1_retrievers_interactions__interaction_id__get",
|
750
742
|
oauth2_scopes=[],
|
@@ -864,6 +856,7 @@ class RetrieverInteractions(BaseSDK):
|
|
864
856
|
|
865
857
|
http_res = self.do_request(
|
866
858
|
hook_ctx=HookContext(
|
859
|
+
config=self.sdk_configuration,
|
867
860
|
base_url=base_url or "",
|
868
861
|
operation_id="delete_interaction_v1_retrievers_interactions__interaction_id__delete",
|
869
862
|
oauth2_scopes=[],
|
@@ -983,6 +976,7 @@ class RetrieverInteractions(BaseSDK):
|
|
983
976
|
|
984
977
|
http_res = await self.do_request_async(
|
985
978
|
hook_ctx=HookContext(
|
979
|
+
config=self.sdk_configuration,
|
986
980
|
base_url=base_url or "",
|
987
981
|
operation_id="delete_interaction_v1_retrievers_interactions__interaction_id__delete",
|
988
982
|
oauth2_scopes=[],
|
mixpeek/retrievers.py
CHANGED
@@ -5,7 +5,7 @@ from mixpeek import models, utils
|
|
5
5
|
from mixpeek._hooks import HookContext
|
6
6
|
from mixpeek.types import OptionalNullable, UNSET
|
7
7
|
from mixpeek.utils import get_security_from_env
|
8
|
-
from typing import Any, List, Mapping, Optional, Union
|
8
|
+
from typing import Any, Dict, List, Mapping, Optional, Union
|
9
9
|
|
10
10
|
|
11
11
|
class Retrievers(BaseSDK):
|
@@ -22,12 +22,7 @@ class Retrievers(BaseSDK):
|
|
22
22
|
],
|
23
23
|
x_namespace: OptionalNullable[str] = UNSET,
|
24
24
|
description: OptionalNullable[str] = UNSET,
|
25
|
-
metadata: Optional[
|
26
|
-
Union[
|
27
|
-
models.CreateRetrieverRequestMetadata,
|
28
|
-
models.CreateRetrieverRequestMetadataTypedDict,
|
29
|
-
]
|
30
|
-
] = None,
|
25
|
+
metadata: Optional[Dict[str, Any]] = None,
|
31
26
|
cache_config: OptionalNullable[
|
32
27
|
Union[models.RetrieverCacheConfig, models.RetrieverCacheConfigTypedDict]
|
33
28
|
] = UNSET,
|
@@ -71,9 +66,7 @@ class Retrievers(BaseSDK):
|
|
71
66
|
),
|
72
67
|
collection_ids=collection_ids,
|
73
68
|
stages=utils.get_pydantic_model(stages, List[models.StageConfigInput]),
|
74
|
-
metadata=
|
75
|
-
metadata, Optional[models.CreateRetrieverRequestMetadata]
|
76
|
-
),
|
69
|
+
metadata=metadata,
|
77
70
|
cache_config=utils.get_pydantic_model(
|
78
71
|
cache_config, OptionalNullable[models.RetrieverCacheConfig]
|
79
72
|
),
|
@@ -113,6 +106,7 @@ class Retrievers(BaseSDK):
|
|
113
106
|
|
114
107
|
http_res = self.do_request(
|
115
108
|
hook_ctx=HookContext(
|
109
|
+
config=self.sdk_configuration,
|
116
110
|
base_url=base_url or "",
|
117
111
|
operation_id="create_retriever_v1_retrievers_retrievers_post",
|
118
112
|
oauth2_scopes=[],
|
@@ -178,12 +172,7 @@ class Retrievers(BaseSDK):
|
|
178
172
|
],
|
179
173
|
x_namespace: OptionalNullable[str] = UNSET,
|
180
174
|
description: OptionalNullable[str] = UNSET,
|
181
|
-
metadata: Optional[
|
182
|
-
Union[
|
183
|
-
models.CreateRetrieverRequestMetadata,
|
184
|
-
models.CreateRetrieverRequestMetadataTypedDict,
|
185
|
-
]
|
186
|
-
] = None,
|
175
|
+
metadata: Optional[Dict[str, Any]] = None,
|
187
176
|
cache_config: OptionalNullable[
|
188
177
|
Union[models.RetrieverCacheConfig, models.RetrieverCacheConfigTypedDict]
|
189
178
|
] = UNSET,
|
@@ -227,9 +216,7 @@ class Retrievers(BaseSDK):
|
|
227
216
|
),
|
228
217
|
collection_ids=collection_ids,
|
229
218
|
stages=utils.get_pydantic_model(stages, List[models.StageConfigInput]),
|
230
|
-
metadata=
|
231
|
-
metadata, Optional[models.CreateRetrieverRequestMetadata]
|
232
|
-
),
|
219
|
+
metadata=metadata,
|
233
220
|
cache_config=utils.get_pydantic_model(
|
234
221
|
cache_config, OptionalNullable[models.RetrieverCacheConfig]
|
235
222
|
),
|
@@ -269,6 +256,7 @@ class Retrievers(BaseSDK):
|
|
269
256
|
|
270
257
|
http_res = await self.do_request_async(
|
271
258
|
hook_ctx=HookContext(
|
259
|
+
config=self.sdk_configuration,
|
272
260
|
base_url=base_url or "",
|
273
261
|
operation_id="create_retriever_v1_retrievers_retrievers_post",
|
274
262
|
oauth2_scopes=[],
|
@@ -381,6 +369,7 @@ class Retrievers(BaseSDK):
|
|
381
369
|
|
382
370
|
http_res = self.do_request(
|
383
371
|
hook_ctx=HookContext(
|
372
|
+
config=self.sdk_configuration,
|
384
373
|
base_url=base_url or "",
|
385
374
|
operation_id="get_retriever_v1_retrievers_retrievers__retriever_id__get",
|
386
375
|
oauth2_scopes=[],
|
@@ -493,6 +482,7 @@ class Retrievers(BaseSDK):
|
|
493
482
|
|
494
483
|
http_res = await self.do_request_async(
|
495
484
|
hook_ctx=HookContext(
|
485
|
+
config=self.sdk_configuration,
|
496
486
|
base_url=base_url or "",
|
497
487
|
operation_id="get_retriever_v1_retrievers_retrievers__retriever_id__get",
|
498
488
|
oauth2_scopes=[],
|
@@ -549,10 +539,7 @@ class Retrievers(BaseSDK):
|
|
549
539
|
self,
|
550
540
|
*,
|
551
541
|
retriever_id: str,
|
552
|
-
inputs:
|
553
|
-
models.RetrieverQueryRequestInputs,
|
554
|
-
models.RetrieverQueryRequestInputsTypedDict,
|
555
|
-
],
|
542
|
+
inputs: Dict[str, Any],
|
556
543
|
x_namespace: OptionalNullable[str] = UNSET,
|
557
544
|
filters: OptionalNullable[
|
558
545
|
Union[models.LogicalOperatorInput, models.LogicalOperatorInputTypedDict]
|
@@ -602,9 +589,7 @@ class Retrievers(BaseSDK):
|
|
602
589
|
retriever_id=retriever_id,
|
603
590
|
x_namespace=x_namespace,
|
604
591
|
retriever_query_request=models.RetrieverQueryRequest(
|
605
|
-
inputs=
|
606
|
-
inputs, models.RetrieverQueryRequestInputs
|
607
|
-
),
|
592
|
+
inputs=inputs,
|
608
593
|
filters=utils.get_pydantic_model(
|
609
594
|
filters, OptionalNullable[models.LogicalOperatorInput]
|
610
595
|
),
|
@@ -653,6 +638,7 @@ class Retrievers(BaseSDK):
|
|
653
638
|
|
654
639
|
http_res = self.do_request(
|
655
640
|
hook_ctx=HookContext(
|
641
|
+
config=self.sdk_configuration,
|
656
642
|
base_url=base_url or "",
|
657
643
|
operation_id="execute_retriever_v1_retrievers_retrievers__retriever_id__execute_post",
|
658
644
|
oauth2_scopes=[],
|
@@ -709,10 +695,7 @@ class Retrievers(BaseSDK):
|
|
709
695
|
self,
|
710
696
|
*,
|
711
697
|
retriever_id: str,
|
712
|
-
inputs:
|
713
|
-
models.RetrieverQueryRequestInputs,
|
714
|
-
models.RetrieverQueryRequestInputsTypedDict,
|
715
|
-
],
|
698
|
+
inputs: Dict[str, Any],
|
716
699
|
x_namespace: OptionalNullable[str] = UNSET,
|
717
700
|
filters: OptionalNullable[
|
718
701
|
Union[models.LogicalOperatorInput, models.LogicalOperatorInputTypedDict]
|
@@ -762,9 +745,7 @@ class Retrievers(BaseSDK):
|
|
762
745
|
retriever_id=retriever_id,
|
763
746
|
x_namespace=x_namespace,
|
764
747
|
retriever_query_request=models.RetrieverQueryRequest(
|
765
|
-
inputs=
|
766
|
-
inputs, models.RetrieverQueryRequestInputs
|
767
|
-
),
|
748
|
+
inputs=inputs,
|
768
749
|
filters=utils.get_pydantic_model(
|
769
750
|
filters, OptionalNullable[models.LogicalOperatorInput]
|
770
751
|
),
|
@@ -813,6 +794,7 @@ class Retrievers(BaseSDK):
|
|
813
794
|
|
814
795
|
http_res = await self.do_request_async(
|
815
796
|
hook_ctx=HookContext(
|
797
|
+
config=self.sdk_configuration,
|
816
798
|
base_url=base_url or "",
|
817
799
|
operation_id="execute_retriever_v1_retrievers_retrievers__retriever_id__execute_post",
|
818
800
|
oauth2_scopes=[],
|