mixpeek 0.1.2__py3-none-any.whl → 0.3__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 (180) hide show
  1. mixpeek/__init__.py +70 -6
  2. mixpeek-0.3.dist-info/LICENSE.rst +20 -0
  3. mixpeek-0.3.dist-info/METADATA +12 -0
  4. mixpeek-0.3.dist-info/RECORD +6 -0
  5. {mixpeek-0.1.2.dist-info → mixpeek-0.3.dist-info}/WHEEL +2 -1
  6. mixpeek-0.3.dist-info/top_level.txt +1 -0
  7. mixpeek/_hooks/__init__.py +0 -5
  8. mixpeek/_hooks/registration.py +0 -13
  9. mixpeek/_hooks/sdkhooks.py +0 -76
  10. mixpeek/_hooks/types.py +0 -94
  11. mixpeek/_version.py +0 -12
  12. mixpeek/assets.py +0 -1561
  13. mixpeek/basesdk.py +0 -350
  14. mixpeek/collections.py +0 -1029
  15. mixpeek/featureextractors.py +0 -205
  16. mixpeek/features.py +0 -1181
  17. mixpeek/health.py +0 -167
  18. mixpeek/httpclient.py +0 -84
  19. mixpeek/ingest.py +0 -831
  20. mixpeek/interactions.py +0 -221
  21. mixpeek/models/__init__.py +0 -751
  22. mixpeek/models/actionusage.py +0 -16
  23. mixpeek/models/apierror.py +0 -22
  24. mixpeek/models/apikey.py +0 -25
  25. mixpeek/models/apikeyupdate.py +0 -49
  26. mixpeek/models/assetfeatures.py +0 -55
  27. mixpeek/models/assetresponse.py +0 -166
  28. mixpeek/models/assets_model_searchquery.py +0 -21
  29. mixpeek/models/assetupdate.py +0 -28
  30. mixpeek/models/availableindexesresponse.py +0 -23
  31. mixpeek/models/availablemodels.py +0 -12
  32. mixpeek/models/boolindexparams.py +0 -18
  33. mixpeek/models/collectionmodel.py +0 -70
  34. mixpeek/models/collectionresult.py +0 -73
  35. mixpeek/models/create_api_key_organizations_users_user_email_api_keys_postop.py +0 -23
  36. mixpeek/models/create_collection_collections_postop.py +0 -62
  37. mixpeek/models/create_interaction_features_search_interactions_postop.py +0 -59
  38. mixpeek/models/createcollectionrequest.py +0 -59
  39. mixpeek/models/createnamespacerequest.py +0 -62
  40. mixpeek/models/datetimeindexparams.py +0 -18
  41. mixpeek/models/dateusage.py +0 -22
  42. mixpeek/models/db_model_paginationresponse.py +0 -59
  43. mixpeek/models/db_model_taskresponse.py +0 -20
  44. mixpeek/models/delete_api_key_organizations_users_user_email_api_keys_key_name_deleteop.py +0 -23
  45. mixpeek/models/delete_asset_assets_asset_id_deleteop.py +0 -57
  46. mixpeek/models/delete_collection_collections_collection_deleteop.py +0 -59
  47. mixpeek/models/delete_feature_features_feature_id_deleteop.py +0 -57
  48. mixpeek/models/delete_interaction_features_search_interactions_interaction_id_deleteop.py +0 -59
  49. mixpeek/models/delete_namespace_namespaces_namespace_deleteop.py +0 -18
  50. mixpeek/models/delete_user_organizations_users_user_email_deleteop.py +0 -16
  51. mixpeek/models/denseembedding.py +0 -16
  52. mixpeek/models/embeddingrequest.py +0 -59
  53. mixpeek/models/embeddingresponse.py +0 -64
  54. mixpeek/models/errormessage.py +0 -13
  55. mixpeek/models/errorresponse.py +0 -21
  56. mixpeek/models/facedetectsettings.py +0 -52
  57. mixpeek/models/featureextractionembeddingrequest.py +0 -54
  58. mixpeek/models/featureresponse.py +0 -74
  59. mixpeek/models/features_model_paginationresponse.py +0 -59
  60. mixpeek/models/featureupdaterequest.py +0 -21
  61. mixpeek/models/filtercondition.py +0 -74
  62. mixpeek/models/floatindexparams.py +0 -18
  63. mixpeek/models/full_asset_update_assets_asset_id_putop.py +0 -69
  64. mixpeek/models/full_feature_update_features_feature_id_putop.py +0 -69
  65. mixpeek/models/geoindexparams.py +0 -18
  66. mixpeek/models/get_asset_assets_asset_id_getop.py +0 -73
  67. mixpeek/models/get_asset_with_features_assets_asset_id_features_getop.py +0 -73
  68. mixpeek/models/get_collection_collections_collection_getop.py +0 -59
  69. mixpeek/models/get_feature_features_feature_id_getop.py +0 -70
  70. mixpeek/models/get_interaction_features_search_interactions_interaction_id_getop.py +0 -59
  71. mixpeek/models/get_namespace_namespaces_namespace_getop.py +0 -18
  72. mixpeek/models/get_task_tasks_task_id_getop.py +0 -57
  73. mixpeek/models/get_user_organizations_users_user_email_getop.py +0 -16
  74. mixpeek/models/groupbyoptions.py +0 -71
  75. mixpeek/models/groupbyoptionsasset.py +0 -71
  76. mixpeek/models/groupedassetdata.py +0 -18
  77. mixpeek/models/healthcheckresponse.py +0 -13
  78. mixpeek/models/httpvalidationerror.py +0 -21
  79. mixpeek/models/imagedescribesettings.py +0 -82
  80. mixpeek/models/imagedetectsettings.py +0 -53
  81. mixpeek/models/imagereadsettings.py +0 -71
  82. mixpeek/models/imagesettings.py +0 -79
  83. mixpeek/models/ingest_image_url_ingest_images_url_postop.py +0 -59
  84. mixpeek/models/ingest_text_ingest_text_postop.py +0 -59
  85. mixpeek/models/ingest_video_url_ingest_videos_url_postop.py +0 -59
  86. mixpeek/models/inputtype.py +0 -11
  87. mixpeek/models/integerindexparams.py +0 -24
  88. mixpeek/models/interactionresponse.py +0 -87
  89. mixpeek/models/interactiontype.py +0 -11
  90. mixpeek/models/jsonimageoutputsettings.py +0 -55
  91. mixpeek/models/jsontextoutputsettings.py +0 -55
  92. mixpeek/models/jsonvideooutputsettings.py +0 -55
  93. mixpeek/models/keywordindexparams.py +0 -21
  94. mixpeek/models/kill_task_tasks_task_id_deleteop.py +0 -57
  95. mixpeek/models/list_assets_assets_postop.py +0 -77
  96. mixpeek/models/list_collections_collections_getop.py +0 -65
  97. mixpeek/models/list_features_features_postop.py +0 -79
  98. mixpeek/models/list_interactions_features_search_interactions_getop.py +0 -96
  99. mixpeek/models/listassetsrequest.py +0 -75
  100. mixpeek/models/listassetsresponse.py +0 -22
  101. mixpeek/models/listcollectionsresponse.py +0 -22
  102. mixpeek/models/listfeaturesrequest.py +0 -77
  103. mixpeek/models/listfeaturesresponse.py +0 -22
  104. mixpeek/models/logicaloperator_input.py +0 -88
  105. mixpeek/models/logicaloperator_output.py +0 -103
  106. mixpeek/models/logodetectsettings.py +0 -52
  107. mixpeek/models/modality.py +0 -13
  108. mixpeek/models/modeldetails.py +0 -57
  109. mixpeek/models/namespaceresponse.py +0 -54
  110. mixpeek/models/organizationmodel.py +0 -45
  111. mixpeek/models/partial_asset_update_assets_asset_id_patchop.py +0 -69
  112. mixpeek/models/payloadindexconfig.py +0 -94
  113. mixpeek/models/payloadindextype.py +0 -17
  114. mixpeek/models/payloadschematype.py +0 -15
  115. mixpeek/models/percolaterequest.py +0 -57
  116. mixpeek/models/permission.py +0 -10
  117. mixpeek/models/processimageurlinput.py +0 -99
  118. mixpeek/models/processtextinput.py +0 -94
  119. mixpeek/models/processvideourlinput.py +0 -99
  120. mixpeek/models/querysettings.py +0 -56
  121. mixpeek/models/rerankingoptions.py +0 -47
  122. mixpeek/models/search_assets_assets_search_postop.py +0 -59
  123. mixpeek/models/search_features_features_search_postop.py +0 -96
  124. mixpeek/models/search_model_searchquery_input.py +0 -76
  125. mixpeek/models/searchassetsrequest.py +0 -78
  126. mixpeek/models/searchinteraction.py +0 -82
  127. mixpeek/models/searchquery_output.py +0 -79
  128. mixpeek/models/searchrequestfeatures_input.py +0 -151
  129. mixpeek/models/searchrequestfeatures_output.py +0 -151
  130. mixpeek/models/sortoption.py +0 -28
  131. mixpeek/models/sparseembedding.py +0 -21
  132. mixpeek/models/tasks_model_taskresponse.py +0 -24
  133. mixpeek/models/taskstatus.py +0 -16
  134. mixpeek/models/textindexparams.py +0 -31
  135. mixpeek/models/textsettings.py +0 -61
  136. mixpeek/models/tokenizertype.py +0 -11
  137. mixpeek/models/update_api_key_organizations_users_user_email_api_keys_key_name_patchop.py +0 -30
  138. mixpeek/models/update_collection_collections_collection_putop.py +0 -74
  139. mixpeek/models/update_namespace_namespaces_namespace_putop.py +0 -28
  140. mixpeek/models/updateassetrequest.py +0 -60
  141. mixpeek/models/updatenamespacerequest.py +0 -26
  142. mixpeek/models/usage.py +0 -18
  143. mixpeek/models/usermodel_input.py +0 -36
  144. mixpeek/models/usermodel_output.py +0 -36
  145. mixpeek/models/uuidindexparams.py +0 -21
  146. mixpeek/models/validationerror.py +0 -26
  147. mixpeek/models/vectormodel.py +0 -11
  148. mixpeek/models/vectortype.py +0 -9
  149. mixpeek/models/videodescribesettings.py +0 -82
  150. mixpeek/models/videodetectsettings.py +0 -53
  151. mixpeek/models/videoreadsettings.py +0 -71
  152. mixpeek/models/videosettings.py +0 -101
  153. mixpeek/models/videotranscriptionsettings.py +0 -69
  154. mixpeek/namespaces.py +0 -1143
  155. mixpeek/organizations.py +0 -1508
  156. mixpeek/py.typed +0 -1
  157. mixpeek/sdk.py +0 -135
  158. mixpeek/sdkconfiguration.py +0 -45
  159. mixpeek/searchinteractions.py +0 -647
  160. mixpeek/tasks.py +0 -387
  161. mixpeek/types/__init__.py +0 -21
  162. mixpeek/types/basemodel.py +0 -39
  163. mixpeek/utils/__init__.py +0 -97
  164. mixpeek/utils/annotations.py +0 -55
  165. mixpeek/utils/enums.py +0 -34
  166. mixpeek/utils/eventstreaming.py +0 -238
  167. mixpeek/utils/forms.py +0 -202
  168. mixpeek/utils/headers.py +0 -136
  169. mixpeek/utils/logger.py +0 -27
  170. mixpeek/utils/metadata.py +0 -118
  171. mixpeek/utils/queryparams.py +0 -205
  172. mixpeek/utils/requestbodies.py +0 -66
  173. mixpeek/utils/retries.py +0 -217
  174. mixpeek/utils/security.py +0 -174
  175. mixpeek/utils/serializers.py +0 -215
  176. mixpeek/utils/url.py +0 -155
  177. mixpeek/utils/values.py +0 -134
  178. mixpeek-0.1.2.dist-info/METADATA +0 -439
  179. mixpeek-0.1.2.dist-info/RECORD +0 -176
  180. py.typed +0 -1
@@ -1,59 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .searchinteraction import SearchInteraction, SearchInteractionTypedDict
5
- from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
6
- from mixpeek.utils import FieldMetadata, HeaderMetadata, RequestMetadata
7
- import pydantic
8
- from pydantic import model_serializer
9
- from typing_extensions import Annotated, NotRequired, TypedDict
10
-
11
-
12
- class CreateInteractionFeaturesSearchInteractionsPostRequestTypedDict(TypedDict):
13
- search_interaction: SearchInteractionTypedDict
14
- x_namespace: NotRequired[Nullable[str]]
15
- 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."""
16
-
17
-
18
- class CreateInteractionFeaturesSearchInteractionsPostRequest(BaseModel):
19
- search_interaction: Annotated[
20
- SearchInteraction,
21
- FieldMetadata(request=RequestMetadata(media_type="application/json")),
22
- ]
23
-
24
- x_namespace: Annotated[
25
- OptionalNullable[str],
26
- pydantic.Field(alias="X-Namespace"),
27
- FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
28
- ] = UNSET
29
- 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."""
30
-
31
- @model_serializer(mode="wrap")
32
- def serialize_model(self, handler):
33
- optional_fields = ["X-Namespace"]
34
- nullable_fields = ["X-Namespace"]
35
- null_default_fields = []
36
-
37
- serialized = handler(self)
38
-
39
- m = {}
40
-
41
- for n, f in self.model_fields.items():
42
- k = f.alias or n
43
- val = serialized.get(k)
44
- serialized.pop(k, None)
45
-
46
- optional_nullable = k in optional_fields and k in nullable_fields
47
- is_set = (
48
- self.__pydantic_fields_set__.intersection({n})
49
- or k in null_default_fields
50
- ) # pylint: disable=no-member
51
-
52
- if val is not None and val != UNSET_SENTINEL:
53
- m[k] = val
54
- elif val != UNSET_SENTINEL and (
55
- not k in optional_fields or (optional_nullable and is_set)
56
- ):
57
- m[k] = val
58
-
59
- return m
@@ -1,59 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
5
- from pydantic import model_serializer
6
- from typing_extensions import NotRequired, TypedDict
7
-
8
-
9
- class CreateCollectionRequestMetadataTypedDict(TypedDict):
10
- pass
11
-
12
-
13
- class CreateCollectionRequestMetadata(BaseModel):
14
- pass
15
-
16
-
17
- class CreateCollectionRequestTypedDict(TypedDict):
18
- collection_name: str
19
- r"""Name for the collection"""
20
- metadata: NotRequired[Nullable[CreateCollectionRequestMetadataTypedDict]]
21
- r"""Optional metadata for the collection"""
22
-
23
-
24
- class CreateCollectionRequest(BaseModel):
25
- collection_name: str
26
- r"""Name for the collection"""
27
-
28
- metadata: OptionalNullable[CreateCollectionRequestMetadata] = UNSET
29
- r"""Optional metadata for the collection"""
30
-
31
- @model_serializer(mode="wrap")
32
- def serialize_model(self, handler):
33
- optional_fields = ["metadata"]
34
- nullable_fields = ["metadata"]
35
- null_default_fields = []
36
-
37
- serialized = handler(self)
38
-
39
- m = {}
40
-
41
- for n, f in self.model_fields.items():
42
- k = f.alias or n
43
- val = serialized.get(k)
44
- serialized.pop(k, None)
45
-
46
- optional_nullable = k in optional_fields and k in nullable_fields
47
- is_set = (
48
- self.__pydantic_fields_set__.intersection({n})
49
- or k in null_default_fields
50
- ) # pylint: disable=no-member
51
-
52
- if val is not None and val != UNSET_SENTINEL:
53
- m[k] = val
54
- elif val != UNSET_SENTINEL and (
55
- not k in optional_fields or (optional_nullable and is_set)
56
- ):
57
- m[k] = val
58
-
59
- return m
@@ -1,62 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .payloadindexconfig import PayloadIndexConfig, PayloadIndexConfigTypedDict
5
- from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
6
- from pydantic import model_serializer
7
- from typing import List
8
- from typing_extensions import NotRequired, TypedDict
9
-
10
-
11
- class CreateNamespaceRequestTypedDict(TypedDict):
12
- r"""Request schema for creating a new namespace"""
13
-
14
- namespace_name: str
15
- r"""Name of the namespace to create"""
16
- vector_indexes: List[str]
17
- r"""List of vector indexes to be used within this namespace. Must be one of: 'image', 'multimodal', 'text', 'keyword'"""
18
- payload_indexes: NotRequired[Nullable[List[PayloadIndexConfigTypedDict]]]
19
- r"""List of payload index configurations"""
20
-
21
-
22
- class CreateNamespaceRequest(BaseModel):
23
- r"""Request schema for creating a new namespace"""
24
-
25
- namespace_name: str
26
- r"""Name of the namespace to create"""
27
-
28
- vector_indexes: List[str]
29
- r"""List of vector indexes to be used within this namespace. Must be one of: 'image', 'multimodal', 'text', 'keyword'"""
30
-
31
- payload_indexes: OptionalNullable[List[PayloadIndexConfig]] = UNSET
32
- r"""List of payload index configurations"""
33
-
34
- @model_serializer(mode="wrap")
35
- def serialize_model(self, handler):
36
- optional_fields = ["payload_indexes"]
37
- nullable_fields = ["payload_indexes"]
38
- null_default_fields = []
39
-
40
- serialized = handler(self)
41
-
42
- m = {}
43
-
44
- for n, f in self.model_fields.items():
45
- k = f.alias or n
46
- val = serialized.get(k)
47
- serialized.pop(k, None)
48
-
49
- optional_nullable = k in optional_fields and k in nullable_fields
50
- is_set = (
51
- self.__pydantic_fields_set__.intersection({n})
52
- or k in null_default_fields
53
- ) # pylint: disable=no-member
54
-
55
- if val is not None and val != UNSET_SENTINEL:
56
- m[k] = val
57
- elif val != UNSET_SENTINEL and (
58
- not k in optional_fields or (optional_nullable and is_set)
59
- ):
60
- m[k] = val
61
-
62
- return m
@@ -1,18 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from mixpeek.types import BaseModel
5
- from typing import Optional
6
- from typing_extensions import NotRequired, TypedDict
7
-
8
-
9
- class DatetimeIndexParamsTypedDict(TypedDict):
10
- r"""Configuration for datetime index"""
11
-
12
- type: NotRequired[str]
13
-
14
-
15
- class DatetimeIndexParams(BaseModel):
16
- r"""Configuration for datetime index"""
17
-
18
- type: Optional[str] = "datetime"
@@ -1,22 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .actionusage import ActionUsage, ActionUsageTypedDict
5
- from mixpeek.types import BaseModel
6
- import pydantic
7
- from typing import List
8
- from typing_extensions import Annotated, TypedDict
9
-
10
-
11
- class DateUsageTypedDict(TypedDict):
12
- date_: str
13
- credits: int
14
- actions: List[ActionUsageTypedDict]
15
-
16
-
17
- class DateUsage(BaseModel):
18
- date_: Annotated[str, pydantic.Field(alias="date")]
19
-
20
- credits: int
21
-
22
- actions: List[ActionUsage]
@@ -1,59 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from mixpeek.types import BaseModel, Nullable, UNSET_SENTINEL
5
- from pydantic import model_serializer
6
- from typing_extensions import TypedDict
7
-
8
-
9
- class DbModelPaginationResponseTypedDict(TypedDict):
10
- total: int
11
- page: int
12
- page_size: int
13
- total_pages: int
14
- next_page: Nullable[str]
15
- previous_page: Nullable[str]
16
-
17
-
18
- class DbModelPaginationResponse(BaseModel):
19
- total: int
20
-
21
- page: int
22
-
23
- page_size: int
24
-
25
- total_pages: int
26
-
27
- next_page: Nullable[str]
28
-
29
- previous_page: Nullable[str]
30
-
31
- @model_serializer(mode="wrap")
32
- def serialize_model(self, handler):
33
- optional_fields = []
34
- nullable_fields = ["next_page", "previous_page"]
35
- null_default_fields = []
36
-
37
- serialized = handler(self)
38
-
39
- m = {}
40
-
41
- for n, f in self.model_fields.items():
42
- k = f.alias or n
43
- val = serialized.get(k)
44
- serialized.pop(k, None)
45
-
46
- optional_nullable = k in optional_fields and k in nullable_fields
47
- is_set = (
48
- self.__pydantic_fields_set__.intersection({n})
49
- or k in null_default_fields
50
- ) # pylint: disable=no-member
51
-
52
- if val is not None and val != UNSET_SENTINEL:
53
- m[k] = val
54
- elif val != UNSET_SENTINEL and (
55
- not k in optional_fields or (optional_nullable and is_set)
56
- ):
57
- m[k] = val
58
-
59
- return m
@@ -1,20 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from mixpeek.types import BaseModel
5
- from typing_extensions import TypedDict
6
-
7
-
8
- class DbModelTaskResponseTypedDict(TypedDict):
9
- message: str
10
- r"""A message describing the status of the task"""
11
- task_id: str
12
- r"""The unique identifier for the processing task"""
13
-
14
-
15
- class DbModelTaskResponse(BaseModel):
16
- message: str
17
- r"""A message describing the status of the task"""
18
-
19
- task_id: str
20
- r"""The unique identifier for the processing task"""
@@ -1,23 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from mixpeek.types import BaseModel
5
- from mixpeek.utils import FieldMetadata, PathParamMetadata
6
- from typing_extensions import Annotated, TypedDict
7
-
8
-
9
- class DeleteAPIKeyOrganizationsUsersUserEmailAPIKeysKeyNameDeleteRequestTypedDict(
10
- TypedDict
11
- ):
12
- user_email: str
13
- key_name: str
14
-
15
-
16
- class DeleteAPIKeyOrganizationsUsersUserEmailAPIKeysKeyNameDeleteRequest(BaseModel):
17
- user_email: Annotated[
18
- str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
19
- ]
20
-
21
- key_name: Annotated[
22
- str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
23
- ]
@@ -1,57 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
5
- from mixpeek.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
6
- import pydantic
7
- from pydantic import model_serializer
8
- from typing_extensions import Annotated, NotRequired, TypedDict
9
-
10
-
11
- class DeleteAssetAssetsAssetIDDeleteRequestTypedDict(TypedDict):
12
- asset_id: str
13
- x_namespace: NotRequired[Nullable[str]]
14
- 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."""
15
-
16
-
17
- class DeleteAssetAssetsAssetIDDeleteRequest(BaseModel):
18
- asset_id: Annotated[
19
- str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
20
- ]
21
-
22
- x_namespace: Annotated[
23
- OptionalNullable[str],
24
- pydantic.Field(alias="X-Namespace"),
25
- FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
26
- ] = UNSET
27
- 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."""
28
-
29
- @model_serializer(mode="wrap")
30
- def serialize_model(self, handler):
31
- optional_fields = ["X-Namespace"]
32
- nullable_fields = ["X-Namespace"]
33
- null_default_fields = []
34
-
35
- serialized = handler(self)
36
-
37
- m = {}
38
-
39
- for n, f in self.model_fields.items():
40
- k = f.alias or n
41
- val = serialized.get(k)
42
- serialized.pop(k, None)
43
-
44
- optional_nullable = k in optional_fields and k in nullable_fields
45
- is_set = (
46
- self.__pydantic_fields_set__.intersection({n})
47
- or k in null_default_fields
48
- ) # pylint: disable=no-member
49
-
50
- if val is not None and val != UNSET_SENTINEL:
51
- m[k] = val
52
- elif val != UNSET_SENTINEL and (
53
- not k in optional_fields or (optional_nullable and is_set)
54
- ):
55
- m[k] = val
56
-
57
- return m
@@ -1,59 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
5
- from mixpeek.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
6
- import pydantic
7
- from pydantic import model_serializer
8
- from typing_extensions import Annotated, NotRequired, TypedDict
9
-
10
-
11
- class DeleteCollectionCollectionsCollectionDeleteRequestTypedDict(TypedDict):
12
- collection: str
13
- r"""Either the collection name or collection ID"""
14
- x_namespace: NotRequired[Nullable[str]]
15
- 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."""
16
-
17
-
18
- class DeleteCollectionCollectionsCollectionDeleteRequest(BaseModel):
19
- collection: Annotated[
20
- str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
21
- ]
22
- r"""Either the collection name or collection ID"""
23
-
24
- x_namespace: Annotated[
25
- OptionalNullable[str],
26
- pydantic.Field(alias="X-Namespace"),
27
- FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
28
- ] = UNSET
29
- 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."""
30
-
31
- @model_serializer(mode="wrap")
32
- def serialize_model(self, handler):
33
- optional_fields = ["X-Namespace"]
34
- nullable_fields = ["X-Namespace"]
35
- null_default_fields = []
36
-
37
- serialized = handler(self)
38
-
39
- m = {}
40
-
41
- for n, f in self.model_fields.items():
42
- k = f.alias or n
43
- val = serialized.get(k)
44
- serialized.pop(k, None)
45
-
46
- optional_nullable = k in optional_fields and k in nullable_fields
47
- is_set = (
48
- self.__pydantic_fields_set__.intersection({n})
49
- or k in null_default_fields
50
- ) # pylint: disable=no-member
51
-
52
- if val is not None and val != UNSET_SENTINEL:
53
- m[k] = val
54
- elif val != UNSET_SENTINEL and (
55
- not k in optional_fields or (optional_nullable and is_set)
56
- ):
57
- m[k] = val
58
-
59
- return m
@@ -1,57 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
5
- from mixpeek.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
6
- import pydantic
7
- from pydantic import model_serializer
8
- from typing_extensions import Annotated, NotRequired, TypedDict
9
-
10
-
11
- class DeleteFeatureFeaturesFeatureIDDeleteRequestTypedDict(TypedDict):
12
- feature_id: str
13
- x_namespace: NotRequired[Nullable[str]]
14
- 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."""
15
-
16
-
17
- class DeleteFeatureFeaturesFeatureIDDeleteRequest(BaseModel):
18
- feature_id: Annotated[
19
- str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
20
- ]
21
-
22
- x_namespace: Annotated[
23
- OptionalNullable[str],
24
- pydantic.Field(alias="X-Namespace"),
25
- FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
26
- ] = UNSET
27
- 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."""
28
-
29
- @model_serializer(mode="wrap")
30
- def serialize_model(self, handler):
31
- optional_fields = ["X-Namespace"]
32
- nullable_fields = ["X-Namespace"]
33
- null_default_fields = []
34
-
35
- serialized = handler(self)
36
-
37
- m = {}
38
-
39
- for n, f in self.model_fields.items():
40
- k = f.alias or n
41
- val = serialized.get(k)
42
- serialized.pop(k, None)
43
-
44
- optional_nullable = k in optional_fields and k in nullable_fields
45
- is_set = (
46
- self.__pydantic_fields_set__.intersection({n})
47
- or k in null_default_fields
48
- ) # pylint: disable=no-member
49
-
50
- if val is not None and val != UNSET_SENTINEL:
51
- m[k] = val
52
- elif val != UNSET_SENTINEL and (
53
- not k in optional_fields or (optional_nullable and is_set)
54
- ):
55
- m[k] = val
56
-
57
- return m
@@ -1,59 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
5
- from mixpeek.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
6
- import pydantic
7
- from pydantic import model_serializer
8
- from typing_extensions import Annotated, NotRequired, TypedDict
9
-
10
-
11
- class DeleteInteractionFeaturesSearchInteractionsInteractionIDDeleteRequestTypedDict(
12
- TypedDict
13
- ):
14
- interaction_id: str
15
- x_namespace: NotRequired[Nullable[str]]
16
- 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."""
17
-
18
-
19
- class DeleteInteractionFeaturesSearchInteractionsInteractionIDDeleteRequest(BaseModel):
20
- interaction_id: Annotated[
21
- str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
22
- ]
23
-
24
- x_namespace: Annotated[
25
- OptionalNullable[str],
26
- pydantic.Field(alias="X-Namespace"),
27
- FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
28
- ] = UNSET
29
- 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."""
30
-
31
- @model_serializer(mode="wrap")
32
- def serialize_model(self, handler):
33
- optional_fields = ["X-Namespace"]
34
- nullable_fields = ["X-Namespace"]
35
- null_default_fields = []
36
-
37
- serialized = handler(self)
38
-
39
- m = {}
40
-
41
- for n, f in self.model_fields.items():
42
- k = f.alias or n
43
- val = serialized.get(k)
44
- serialized.pop(k, None)
45
-
46
- optional_nullable = k in optional_fields and k in nullable_fields
47
- is_set = (
48
- self.__pydantic_fields_set__.intersection({n})
49
- or k in null_default_fields
50
- ) # pylint: disable=no-member
51
-
52
- if val is not None and val != UNSET_SENTINEL:
53
- m[k] = val
54
- elif val != UNSET_SENTINEL and (
55
- not k in optional_fields or (optional_nullable and is_set)
56
- ):
57
- m[k] = val
58
-
59
- return m
@@ -1,18 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from mixpeek.types import BaseModel
5
- from mixpeek.utils import FieldMetadata, PathParamMetadata
6
- from typing_extensions import Annotated, TypedDict
7
-
8
-
9
- class DeleteNamespaceNamespacesNamespaceDeleteRequestTypedDict(TypedDict):
10
- namespace: str
11
- r"""Either the namespace name or namespace ID"""
12
-
13
-
14
- class DeleteNamespaceNamespacesNamespaceDeleteRequest(BaseModel):
15
- namespace: Annotated[
16
- str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
17
- ]
18
- r"""Either the namespace name or namespace ID"""
@@ -1,16 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from mixpeek.types import BaseModel
5
- from mixpeek.utils import FieldMetadata, PathParamMetadata
6
- from typing_extensions import Annotated, TypedDict
7
-
8
-
9
- class DeleteUserOrganizationsUsersUserEmailDeleteRequestTypedDict(TypedDict):
10
- user_email: str
11
-
12
-
13
- class DeleteUserOrganizationsUsersUserEmailDeleteRequest(BaseModel):
14
- user_email: Annotated[
15
- str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
16
- ]
@@ -1,16 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from mixpeek.types import BaseModel
5
- from typing import List
6
- from typing_extensions import TypedDict
7
-
8
-
9
- class DenseEmbeddingTypedDict(TypedDict):
10
- vector: List[float]
11
- r"""Dense vector representation"""
12
-
13
-
14
- class DenseEmbedding(BaseModel):
15
- vector: List[float]
16
- r"""Dense vector representation"""
@@ -1,59 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .inputtype import InputType
5
- from .vectormodel import VectorModel
6
- from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
7
- from pydantic import model_serializer
8
- from typing_extensions import NotRequired, TypedDict
9
-
10
-
11
- class EmbeddingRequestTypedDict(TypedDict):
12
- type: InputType
13
- vector_index: VectorModel
14
- value: NotRequired[Nullable[str]]
15
- r"""The input content to embed. Could be a URL, text content, file path, or base64 encoded string"""
16
- field_name: NotRequired[Nullable[str]]
17
- r"""Field name to insert into the database, if not provided, the embedding will be inserted into the default field"""
18
-
19
-
20
- class EmbeddingRequest(BaseModel):
21
- type: InputType
22
-
23
- vector_index: VectorModel
24
-
25
- value: OptionalNullable[str] = UNSET
26
- r"""The input content to embed. Could be a URL, text content, file path, or base64 encoded string"""
27
-
28
- field_name: OptionalNullable[str] = UNSET
29
- r"""Field name to insert into the database, if not provided, the embedding will be inserted into the default field"""
30
-
31
- @model_serializer(mode="wrap")
32
- def serialize_model(self, handler):
33
- optional_fields = ["value", "field_name"]
34
- nullable_fields = ["value", "field_name"]
35
- null_default_fields = []
36
-
37
- serialized = handler(self)
38
-
39
- m = {}
40
-
41
- for n, f in self.model_fields.items():
42
- k = f.alias or n
43
- val = serialized.get(k)
44
- serialized.pop(k, None)
45
-
46
- optional_nullable = k in optional_fields and k in nullable_fields
47
- is_set = (
48
- self.__pydantic_fields_set__.intersection({n})
49
- or k in null_default_fields
50
- ) # pylint: disable=no-member
51
-
52
- if val is not None and val != UNSET_SENTINEL:
53
- m[k] = val
54
- elif val != UNSET_SENTINEL and (
55
- not k in optional_fields or (optional_nullable and is_set)
56
- ):
57
- m[k] = val
58
-
59
- return m