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
mixpeek/models/update_document_v1_collections_collection_identifier_documents_document_id_putop.py
DELETED
@@ -1,83 +0,0 @@
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
from .documentupdate import DocumentUpdate, DocumentUpdateTypedDict
|
5
|
-
from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
6
|
-
from mixpeek.utils import (
|
7
|
-
FieldMetadata,
|
8
|
-
HeaderMetadata,
|
9
|
-
PathParamMetadata,
|
10
|
-
RequestMetadata,
|
11
|
-
)
|
12
|
-
import pydantic
|
13
|
-
from pydantic import model_serializer
|
14
|
-
from typing import Optional
|
15
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
16
|
-
|
17
|
-
|
18
|
-
class UpdateDocumentV1CollectionsCollectionIdentifierDocumentsDocumentIDPutRequestTypedDict(
|
19
|
-
TypedDict
|
20
|
-
):
|
21
|
-
collection_identifier: str
|
22
|
-
r"""The ID of the collection"""
|
23
|
-
document_id: str
|
24
|
-
r"""The ID of the document to update"""
|
25
|
-
x_namespace: NotRequired[Nullable[str]]
|
26
|
-
r"""Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint."""
|
27
|
-
document_update: NotRequired[DocumentUpdateTypedDict]
|
28
|
-
|
29
|
-
|
30
|
-
class UpdateDocumentV1CollectionsCollectionIdentifierDocumentsDocumentIDPutRequest(
|
31
|
-
BaseModel
|
32
|
-
):
|
33
|
-
collection_identifier: Annotated[
|
34
|
-
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
35
|
-
]
|
36
|
-
r"""The ID of the collection"""
|
37
|
-
|
38
|
-
document_id: Annotated[
|
39
|
-
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
40
|
-
]
|
41
|
-
r"""The ID of the document to update"""
|
42
|
-
|
43
|
-
x_namespace: Annotated[
|
44
|
-
OptionalNullable[str],
|
45
|
-
pydantic.Field(alias="X-Namespace"),
|
46
|
-
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
47
|
-
] = UNSET
|
48
|
-
r"""Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint."""
|
49
|
-
|
50
|
-
document_update: Annotated[
|
51
|
-
Optional[DocumentUpdate],
|
52
|
-
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
53
|
-
] = None
|
54
|
-
|
55
|
-
@model_serializer(mode="wrap")
|
56
|
-
def serialize_model(self, handler):
|
57
|
-
optional_fields = ["X-Namespace", "DocumentUpdate"]
|
58
|
-
nullable_fields = ["X-Namespace"]
|
59
|
-
null_default_fields = []
|
60
|
-
|
61
|
-
serialized = handler(self)
|
62
|
-
|
63
|
-
m = {}
|
64
|
-
|
65
|
-
for n, f in type(self).model_fields.items():
|
66
|
-
k = f.alias or n
|
67
|
-
val = serialized.get(k)
|
68
|
-
serialized.pop(k, None)
|
69
|
-
|
70
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
71
|
-
is_set = (
|
72
|
-
self.__pydantic_fields_set__.intersection({n})
|
73
|
-
or k in null_default_fields
|
74
|
-
) # pylint: disable=no-member
|
75
|
-
|
76
|
-
if val is not None and val != UNSET_SENTINEL:
|
77
|
-
m[k] = val
|
78
|
-
elif val != UNSET_SENTINEL and (
|
79
|
-
not k in optional_fields or (optional_nullable and is_set)
|
80
|
-
):
|
81
|
-
m[k] = val
|
82
|
-
|
83
|
-
return m
|