mixpeek 0.18.17__py3-none-any.whl → 0.18.18__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/_version.py CHANGED
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "mixpeek"
6
- __version__: str = "0.18.17"
6
+ __version__: str = "0.18.18"
7
7
  __openapi_doc_version__: str = "0.81"
8
- __gen_version__: str = "2.502.0"
9
- __user_agent__: str = "speakeasy-sdk/python 0.18.17 2.502.0 0.81 mixpeek"
8
+ __gen_version__: str = "2.503.2"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.18.18 2.503.2 0.81 mixpeek"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
mixpeek/collections.py CHANGED
@@ -992,8 +992,8 @@ class Collections(BaseSDK):
992
992
  server_url: Optional[str] = None,
993
993
  timeout_ms: Optional[int] = None,
994
994
  http_headers: Optional[Mapping[str, str]] = None,
995
- ) -> models.CollectionModel:
996
- r"""Get Collection
995
+ ) -> models.CollectionDetailsResponse:
996
+ r"""Get Collection Details
997
997
 
998
998
  Get a collection using either its name or ID
999
999
 
@@ -1012,7 +1012,7 @@ class Collections(BaseSDK):
1012
1012
  if server_url is not None:
1013
1013
  base_url = server_url
1014
1014
 
1015
- request = models.GetCollectionV1CollectionsCollectionGetRequest(
1015
+ request = models.GetCollectionDetailsV1CollectionsCollectionGetRequest(
1016
1016
  collection=collection,
1017
1017
  x_namespace=x_namespace,
1018
1018
  )
@@ -1043,7 +1043,7 @@ class Collections(BaseSDK):
1043
1043
 
1044
1044
  http_res = self.do_request(
1045
1045
  hook_ctx=HookContext(
1046
- operation_id="get_collection_v1_collections__collection__get",
1046
+ operation_id="get_collection_details_v1_collections__collection__get",
1047
1047
  oauth2_scopes=[],
1048
1048
  security_source=get_security_from_env(
1049
1049
  self.sdk_configuration.security, models.Security
@@ -1056,7 +1056,7 @@ class Collections(BaseSDK):
1056
1056
 
1057
1057
  response_data: Any = None
1058
1058
  if utils.match_response(http_res, "200", "application/json"):
1059
- return utils.unmarshal_json(http_res.text, models.CollectionModel)
1059
+ return utils.unmarshal_json(http_res.text, models.CollectionDetailsResponse)
1060
1060
  if utils.match_response(
1061
1061
  http_res, ["400", "401", "403", "404"], "application/json"
1062
1062
  ):
@@ -1103,8 +1103,8 @@ class Collections(BaseSDK):
1103
1103
  server_url: Optional[str] = None,
1104
1104
  timeout_ms: Optional[int] = None,
1105
1105
  http_headers: Optional[Mapping[str, str]] = None,
1106
- ) -> models.CollectionModel:
1107
- r"""Get Collection
1106
+ ) -> models.CollectionDetailsResponse:
1107
+ r"""Get Collection Details
1108
1108
 
1109
1109
  Get a collection using either its name or ID
1110
1110
 
@@ -1123,7 +1123,7 @@ class Collections(BaseSDK):
1123
1123
  if server_url is not None:
1124
1124
  base_url = server_url
1125
1125
 
1126
- request = models.GetCollectionV1CollectionsCollectionGetRequest(
1126
+ request = models.GetCollectionDetailsV1CollectionsCollectionGetRequest(
1127
1127
  collection=collection,
1128
1128
  x_namespace=x_namespace,
1129
1129
  )
@@ -1154,7 +1154,7 @@ class Collections(BaseSDK):
1154
1154
 
1155
1155
  http_res = await self.do_request_async(
1156
1156
  hook_ctx=HookContext(
1157
- operation_id="get_collection_v1_collections__collection__get",
1157
+ operation_id="get_collection_details_v1_collections__collection__get",
1158
1158
  oauth2_scopes=[],
1159
1159
  security_source=get_security_from_env(
1160
1160
  self.sdk_configuration.security, models.Security
@@ -1167,7 +1167,7 @@ class Collections(BaseSDK):
1167
1167
 
1168
1168
  response_data: Any = None
1169
1169
  if utils.match_response(http_res, "200", "application/json"):
1170
- return utils.unmarshal_json(http_res.text, models.CollectionModel)
1170
+ return utils.unmarshal_json(http_res.text, models.CollectionDetailsResponse)
1171
1171
  if utils.match_response(
1172
1172
  http_res, ["400", "401", "403", "404"], "application/json"
1173
1173
  ):
@@ -35,6 +35,12 @@ from .classify_features_v1_entities_taxonomies_taxonomy_classify_postop import (
35
35
  ClassifyFeaturesV1EntitiesTaxonomiesTaxonomyClassifyPostRequest,
36
36
  ClassifyFeaturesV1EntitiesTaxonomiesTaxonomyClassifyPostRequestTypedDict,
37
37
  )
38
+ from .collectiondetailsresponse import (
39
+ CollectionDetailsResponse,
40
+ CollectionDetailsResponseMetadata,
41
+ CollectionDetailsResponseMetadataTypedDict,
42
+ CollectionDetailsResponseTypedDict,
43
+ )
38
44
  from .collectionmodel import (
39
45
  CollectionModel,
40
46
  CollectionModelMetadata,
@@ -163,9 +169,9 @@ from .get_asset_with_features_v1_assets_asset_id_features_getop import (
163
169
  GetAssetWithFeaturesV1AssetsAssetIDFeaturesGetRequest,
164
170
  GetAssetWithFeaturesV1AssetsAssetIDFeaturesGetRequestTypedDict,
165
171
  )
166
- from .get_collection_v1_collections_collection_getop import (
167
- GetCollectionV1CollectionsCollectionGetRequest,
168
- GetCollectionV1CollectionsCollectionGetRequestTypedDict,
172
+ from .get_collection_details_v1_collections_collection_getop import (
173
+ GetCollectionDetailsV1CollectionsCollectionGetRequest,
174
+ GetCollectionDetailsV1CollectionsCollectionGetRequestTypedDict,
169
175
  )
170
176
  from .get_feature_v1_features_feature_id_getop import (
171
177
  GetFeatureV1FeaturesFeatureIDGetRequest,
@@ -491,6 +497,10 @@ __all__ = [
491
497
  "ClassificationWithFeatureTypedDict",
492
498
  "ClassifyFeaturesV1EntitiesTaxonomiesTaxonomyClassifyPostRequest",
493
499
  "ClassifyFeaturesV1EntitiesTaxonomiesTaxonomyClassifyPostRequestTypedDict",
500
+ "CollectionDetailsResponse",
501
+ "CollectionDetailsResponseMetadata",
502
+ "CollectionDetailsResponseMetadataTypedDict",
503
+ "CollectionDetailsResponseTypedDict",
494
504
  "CollectionModel",
495
505
  "CollectionModelMetadata",
496
506
  "CollectionModelMetadataTypedDict",
@@ -587,8 +597,8 @@ __all__ = [
587
597
  "GetAssetV1AssetsAssetIDGetRequestTypedDict",
588
598
  "GetAssetWithFeaturesV1AssetsAssetIDFeaturesGetRequest",
589
599
  "GetAssetWithFeaturesV1AssetsAssetIDFeaturesGetRequestTypedDict",
590
- "GetCollectionV1CollectionsCollectionGetRequest",
591
- "GetCollectionV1CollectionsCollectionGetRequestTypedDict",
600
+ "GetCollectionDetailsV1CollectionsCollectionGetRequest",
601
+ "GetCollectionDetailsV1CollectionsCollectionGetRequestTypedDict",
592
602
  "GetFeatureV1FeaturesFeatureIDGetRequest",
593
603
  "GetFeatureV1FeaturesFeatureIDGetRequestTypedDict",
594
604
  "GetNamespaceV1NamespacesNamespaceGetRequest",
@@ -0,0 +1,83 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from datetime import datetime
5
+ from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
6
+ from pydantic import model_serializer
7
+ from typing_extensions import NotRequired, TypedDict
8
+
9
+
10
+ class CollectionDetailsResponseMetadataTypedDict(TypedDict):
11
+ pass
12
+
13
+
14
+ class CollectionDetailsResponseMetadata(BaseModel):
15
+ pass
16
+
17
+
18
+ class CollectionDetailsResponseTypedDict(TypedDict):
19
+ collection_id: str
20
+ collection_name: str
21
+ count: NotRequired[Nullable[int]]
22
+ last_updated: NotRequired[Nullable[datetime]]
23
+ preview_url: NotRequired[Nullable[str]]
24
+ metadata: NotRequired[Nullable[CollectionDetailsResponseMetadataTypedDict]]
25
+ unique_hashes: NotRequired[Nullable[int]]
26
+
27
+
28
+ class CollectionDetailsResponse(BaseModel):
29
+ collection_id: str
30
+
31
+ collection_name: str
32
+
33
+ count: OptionalNullable[int] = UNSET
34
+
35
+ last_updated: OptionalNullable[datetime] = UNSET
36
+
37
+ preview_url: OptionalNullable[str] = UNSET
38
+
39
+ metadata: OptionalNullable[CollectionDetailsResponseMetadata] = UNSET
40
+
41
+ unique_hashes: OptionalNullable[int] = UNSET
42
+
43
+ @model_serializer(mode="wrap")
44
+ def serialize_model(self, handler):
45
+ optional_fields = [
46
+ "count",
47
+ "last_updated",
48
+ "preview_url",
49
+ "metadata",
50
+ "unique_hashes",
51
+ ]
52
+ nullable_fields = [
53
+ "count",
54
+ "last_updated",
55
+ "preview_url",
56
+ "metadata",
57
+ "unique_hashes",
58
+ ]
59
+ null_default_fields = []
60
+
61
+ serialized = handler(self)
62
+
63
+ m = {}
64
+
65
+ for n, f in 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
@@ -1,7 +1,6 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from datetime import datetime
5
4
  from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
6
5
  from pydantic import model_serializer
7
6
  from typing_extensions import NotRequired, TypedDict
@@ -16,36 +15,22 @@ class CollectionResultMetadata(BaseModel):
16
15
 
17
16
 
18
17
  class CollectionResultTypedDict(TypedDict):
19
- count: int
20
- size_bytes: int
21
- last_updated: datetime
22
- r"""MongoDB datetime format"""
23
18
  collection_id: str
24
- preview_url: NotRequired[Nullable[str]]
25
- metadata: NotRequired[Nullable[CollectionResultMetadataTypedDict]]
26
19
  collection_name: NotRequired[Nullable[str]]
20
+ metadata: NotRequired[Nullable[CollectionResultMetadataTypedDict]]
27
21
 
28
22
 
29
23
  class CollectionResult(BaseModel):
30
- count: int
31
-
32
- size_bytes: int
33
-
34
- last_updated: datetime
35
- r"""MongoDB datetime format"""
36
-
37
24
  collection_id: str
38
25
 
39
- preview_url: OptionalNullable[str] = UNSET
26
+ collection_name: OptionalNullable[str] = UNSET
40
27
 
41
28
  metadata: OptionalNullable[CollectionResultMetadata] = UNSET
42
29
 
43
- collection_name: OptionalNullable[str] = UNSET
44
-
45
30
  @model_serializer(mode="wrap")
46
31
  def serialize_model(self, handler):
47
- optional_fields = ["preview_url", "metadata", "collection_name"]
48
- nullable_fields = ["preview_url", "metadata", "collection_name"]
32
+ optional_fields = ["collection_name", "metadata"]
33
+ nullable_fields = ["collection_name", "metadata"]
49
34
  null_default_fields = []
50
35
 
51
36
  serialized = handler(self)
@@ -8,14 +8,14 @@ from pydantic import model_serializer
8
8
  from typing_extensions import Annotated, NotRequired, TypedDict
9
9
 
10
10
 
11
- class GetCollectionV1CollectionsCollectionGetRequestTypedDict(TypedDict):
11
+ class GetCollectionDetailsV1CollectionsCollectionGetRequestTypedDict(TypedDict):
12
12
  collection: str
13
13
  r"""Either the collection name or collection ID"""
14
14
  x_namespace: NotRequired[Nullable[str]]
15
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
16
 
17
17
 
18
- class GetCollectionV1CollectionsCollectionGetRequest(BaseModel):
18
+ class GetCollectionDetailsV1CollectionsCollectionGetRequest(BaseModel):
19
19
  collection: Annotated[
20
20
  str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
21
21
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mixpeek
3
- Version: 0.18.17
3
+ Version: 0.18.18
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Speakeasy
6
6
  Requires-Python: >=3.9
@@ -214,7 +214,7 @@ with Mixpeek(
214
214
  * [create](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/collections/README.md#create) - Create Collection
215
215
  * [delete](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/collections/README.md#delete) - Delete Collection
216
216
  * [update](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/collections/README.md#update) - Update Collection
217
- * [get](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/collections/README.md#get) - Get Collection
217
+ * [get](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/collections/README.md#get) - Get Collection Details
218
218
 
219
219
  ### [feature_extractors](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/featureextractors/README.md)
220
220
 
@@ -3,16 +3,16 @@ mixpeek/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpvjjVwk,11
3
3
  mixpeek/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
4
4
  mixpeek/_hooks/sdkhooks.py,sha256=T0xbVPw8mvvFszHZlrZdtFrJBovAqE-JQfw4dS9Xi7Y,2495
5
5
  mixpeek/_hooks/types.py,sha256=Qh9pO5ndynMrWpMLPkJUsOmAJ1AJHntJAXb5Yxe_a4o,2568
6
- mixpeek/_version.py,sha256=FfhcxaFOX-nt7202i0GDASFoAzeGm2Hv-Jrl0RNGkts,458
6
+ mixpeek/_version.py,sha256=543go9gJd90KROdr2Jy3Cu5Fr1ltC0bopScGDseSm-U,458
7
7
  mixpeek/assets.py,sha256=mWSeAD2lzan5eTLX-MrzLQsMDETekvKtGn8aUpg7YzI,77660
8
8
  mixpeek/basesdk.py,sha256=j_PZqE6WgIfx1cPCK5gAVn-rgPy9iLhUN5ELtefoEU0,11976
9
- mixpeek/collections.py,sha256=HAnUG8JYwFbpM7sOIXyGINQ0wdGs-LsV9g2U3U9FePI,50551
9
+ mixpeek/collections.py,sha256=VkUrqKXKlle4-l0kTS6L94d9JXhxPrH92Vpf7NjLxd4,50637
10
10
  mixpeek/featureextractors.py,sha256=7AKXR-5oteJ8GOYcqB0Mn3BpORENvGgzXYQ6M53vh_A,9904
11
11
  mixpeek/features.py,sha256=l_-VmpwqRcawEwuduyFz-D0od21CqicEQNXkEdQoeyY,60382
12
12
  mixpeek/health.py,sha256=4i7KHGS2bYHCAE0nyHDw5g24MXcTZYVaTviQNKPW5o0,6742
13
13
  mixpeek/httpclient.py,sha256=N-D-srtDBykpfyVKacTY4upDGvNLqdWlEYqhJvta99E,4194
14
14
  mixpeek/ingestassets.py,sha256=W6ln_UHa7HeFTMIuqsq_Gjge5S2y6XokL39Ect-Vorw,41360
15
- mixpeek/models/__init__.py,sha256=-HwPt1eIHoKGw9ZMmBvHUmm-UxPFISwYXlc3qS4oBd0,31490
15
+ mixpeek/models/__init__.py,sha256=Gvyvq_f99L65JlfwafRkx_UpbaFwAK27DYEvVHSvzuc,31893
16
16
  mixpeek/models/actionusage.py,sha256=WAnnBVTeQ9j0dtIrubfyyJQwbBamxManfS8fc2OFNyo,324
17
17
  mixpeek/models/apierror.py,sha256=9mTyJSyvUAOnSfW_1HWt9dGl8IDlpQ68DebwYsDNdug,528
18
18
  mixpeek/models/apikey.py,sha256=P99SWsu6wgc6HStE2MteANIGShUkM2dwQnbQvdg5AOc,654
@@ -29,8 +29,9 @@ mixpeek/models/boolindexparams.py,sha256=bg7Hy6y9acpu7AxMpHTsYjEphDd0HnrqFPSgIDp
29
29
  mixpeek/models/classificationmatch.py,sha256=v-GrwYCivo8JhbFC-yoB87a_4ahbMJeI2F0XGfq914k,2246
30
30
  mixpeek/models/classificationwithfeature.py,sha256=LVxK0arDuqBTc7QDAgdOOx0-H1RvKdTGWhjT_67z_-o,2366
31
31
  mixpeek/models/classify_features_v1_entities_taxonomies_taxonomy_classify_postop.py,sha256=wKLV5ZC-0EwlH_2rKWukmvUGpI_E-hzeveMO4mpb1lA,2666
32
+ mixpeek/models/collectiondetailsresponse.py,sha256=HhoMXJC2HPFfu7D39GqcPIqvL82Mw0W60XdF6BLJDdo,2338
32
33
  mixpeek/models/collectionmodel.py,sha256=iCh87KQXyc2QPD12Dzr8OhhsqkflyLSAKrYSm00STEc,2163
33
- mixpeek/models/collectionresult.py,sha256=ijKOo_rtJKQnH6_EUfTnlhqlmz-c8HP3IF8dAeAlkik,2062
34
+ mixpeek/models/collectionresult.py,sha256=k9AvRrrLAqKkmUDrMz7-m7Ad8_uy7nKaQkyMY8_N074,1713
34
35
  mixpeek/models/create_api_key_v1_organizations_users_user_email_api_keys_postop.py,sha256=FpJUoFZ0nn3FEvgiVoF-fVdp1K8NJKGkkKX4rJ2cWjw,794
35
36
  mixpeek/models/create_collection_v1_collections_postop.py,sha256=GtPTeR2PC2LfGFN_hMwn1G7bSB_I_rFX9pTZF2tOcH0,2387
36
37
  mixpeek/models/create_taxonomy_v1_entities_taxonomies_postop.py,sha256=_qjE2LEInNh2j5Gb4AFvdiCmpT9J_rezMy1EXzmBMJQ,2319
@@ -68,7 +69,7 @@ mixpeek/models/genericsuccessresponse.py,sha256=0Ce1Rab7ED1vQrVP6nAtjFYz-_o0nV0r
68
69
  mixpeek/models/geoindexparams.py,sha256=wMb-04qAYhBZW1tCMzr8ZLRf5s43aWp_b4u_17bV5AE,443
69
70
  mixpeek/models/get_asset_v1_assets_asset_id_getop.py,sha256=2V-O6nYeHcydDPXOvYbgLzvcX3_8BThjCPW50JwtGgw,2811
70
71
  mixpeek/models/get_asset_with_features_v1_assets_asset_id_features_getop.py,sha256=LF8ebuHH0jFjsiyXjwq8vBi_Z3Cz9ospxXYSGcRX6kE,2852
71
- mixpeek/models/get_collection_v1_collections_collection_getop.py,sha256=8M0ujX7hTmppjGfB1V-Oophri6guzRPJ89xTyJm9Yac,2314
72
+ mixpeek/models/get_collection_details_v1_collections_collection_getop.py,sha256=g1V3S_LUs8FUlIr0ygSN7waDlo3rT7qxgqF-hECC3pg,2328
72
73
  mixpeek/models/get_feature_v1_features_feature_id_getop.py,sha256=kD27iLRuZsBI861uGONBXFh5_sWvFuZc6LP2dyKhUAI,2628
73
74
  mixpeek/models/get_namespace_v1_namespaces_namespace_getop.py,sha256=21luHlRdFzWL2xm0klDBPSZFLjKBw7hudQN5YzhsSA0,630
74
75
  mixpeek/models/get_task_v1_tasks_task_id_getop.py,sha256=ECgUzq0iUExfA3wjHrBoSTs-8-9zAGuStRU9sJitMXI,2166
@@ -194,6 +195,6 @@ mixpeek/utils/security.py,sha256=XoK-R2YMyZtVWQte7FoezfGJS-dea9jz4qQ7w5dwNWc,600
194
195
  mixpeek/utils/serializers.py,sha256=BSJT7kBOkNBFyP7KREyMoe14JGbgijD1M6AXFMbdmco,4924
195
196
  mixpeek/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
196
197
  mixpeek/utils/values.py,sha256=_89YXPTI_BU6SXJBzFR4pIzTCBPQW9tsOTN1jeBBIDs,3428
197
- mixpeek-0.18.17.dist-info/METADATA,sha256=QXOtrUhOvSl-y0THQvizAZYvp4QySPBtZtnCbgXckJ4,23241
198
- mixpeek-0.18.17.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
199
- mixpeek-0.18.17.dist-info/RECORD,,
198
+ mixpeek-0.18.18.dist-info/METADATA,sha256=hoTA4IFFmjV_XlGvockZtQTIJuxOOvMVYFBZzZRKH68,23249
199
+ mixpeek-0.18.18.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
200
+ mixpeek-0.18.18.dist-info/RECORD,,