mixpeek 0.17.2__py3-none-any.whl → 0.17.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.
mixpeek/_version.py CHANGED
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "mixpeek"
6
- __version__: str = "0.17.2"
6
+ __version__: str = "0.17.3"
7
7
  __openapi_doc_version__: str = "0.81"
8
- __gen_version__: str = "2.493.4"
9
- __user_agent__: str = "speakeasy-sdk/python 0.17.2 2.493.4 0.81 mixpeek"
8
+ __gen_version__: str = "2.493.13"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.17.3 2.493.13 0.81 mixpeek"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -123,7 +123,6 @@ from .embeddingresponse import (
123
123
  from .entitysettings import EntitySettings, EntitySettingsTypedDict
124
124
  from .errordetail import Details, DetailsTypedDict, ErrorDetail, ErrorDetailTypedDict
125
125
  from .errorresponse import ErrorResponse, ErrorResponseData
126
- from .facedetectsettings import FaceDetectSettings, FaceDetectSettingsTypedDict
127
126
  from .featureextractionembeddingrequest import (
128
127
  FeatureExtractionEmbeddingRequest,
129
128
  FeatureExtractionEmbeddingRequestTypedDict,
@@ -449,6 +448,7 @@ from .videotranscriptionsettings import (
449
448
  VideoTranscriptionSettingsTypedDict,
450
449
  )
451
450
 
451
+
452
452
  __all__ = [
453
453
  "APIError",
454
454
  "APIKey",
@@ -544,8 +544,6 @@ __all__ = [
544
544
  "ErrorDetailTypedDict",
545
545
  "ErrorResponse",
546
546
  "ErrorResponseData",
547
- "FaceDetectSettings",
548
- "FaceDetectSettingsTypedDict",
549
547
  "FeatureExtractionEmbeddingRequest",
550
548
  "FeatureExtractionEmbeddingRequestTypedDict",
551
549
  "FeatureOptions",
@@ -14,4 +14,3 @@ class AvailableModels(str, Enum):
14
14
  VERTEX_MULTIMODAL = "vertex-multimodal"
15
15
  OPENAI_CLIP_VIT_BASE_PATCH32 = "openai-clip-vit-base-patch32"
16
16
  BAAI_BGE_M3 = "baai-bge-m3"
17
- ANSWERAI_MODERNBERT_BASE = "answerai-modernbert-base"
@@ -14,7 +14,7 @@ class CreateNamespaceRequestTypedDict(TypedDict):
14
14
  namespace_name: str
15
15
  r"""Name of the namespace to create"""
16
16
  embedding_models: List[str]
17
- r"""List of vector indexes to be used within this namespace. Must be one of: 'image', 'openai-clip-vit-base-patch32', 'multimodal', 'vertex-multimodal', 'text', 'baai-bge-m3', 'keyword', 'naver-splade-v3', 'answerai-modern-bert'"""
17
+ r"""List of vector indexes to be used within this namespace. Must be one of: 'image', 'openai-clip-vit-base-patch32', 'multimodal', 'vertex-multimodal', 'text', 'baai-bge-m3', 'keyword', 'naver-splade-v3'"""
18
18
  payload_indexes: NotRequired[Nullable[List[PayloadIndexConfigTypedDict]]]
19
19
  r"""List of payload index configurations"""
20
20
 
@@ -26,7 +26,7 @@ class CreateNamespaceRequest(BaseModel):
26
26
  r"""Name of the namespace to create"""
27
27
 
28
28
  embedding_models: List[str]
29
- r"""List of vector indexes to be used within this namespace. Must be one of: 'image', 'openai-clip-vit-base-patch32', 'multimodal', 'vertex-multimodal', 'text', 'baai-bge-m3', 'keyword', 'naver-splade-v3', 'answerai-modern-bert'"""
29
+ r"""List of vector indexes to be used within this namespace. Must be one of: 'image', 'openai-clip-vit-base-patch32', 'multimodal', 'vertex-multimodal', 'text', 'baai-bge-m3', 'keyword', 'naver-splade-v3'"""
30
30
 
31
31
  payload_indexes: OptionalNullable[List[PayloadIndexConfig]] = UNSET
32
32
  r"""List of payload index configurations"""
@@ -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 .facedetectsettings import FaceDetectSettings, FaceDetectSettingsTypedDict
5
4
  from .logodetectsettings import LogoDetectSettings, LogoDetectSettingsTypedDict
6
5
  from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
7
6
  from pydantic import model_serializer
@@ -9,23 +8,18 @@ from typing_extensions import NotRequired, TypedDict
9
8
 
10
9
 
11
10
  class ImageDetectSettingsTypedDict(TypedDict):
12
- faces: NotRequired[Nullable[FaceDetectSettingsTypedDict]]
13
- r"""Settings for face detection"""
14
11
  logos: NotRequired[Nullable[LogoDetectSettingsTypedDict]]
15
12
  r"""Settings for logo detection"""
16
13
 
17
14
 
18
15
  class ImageDetectSettings(BaseModel):
19
- faces: OptionalNullable[FaceDetectSettings] = UNSET
20
- r"""Settings for face detection"""
21
-
22
16
  logos: OptionalNullable[LogoDetectSettings] = UNSET
23
17
  r"""Settings for logo detection"""
24
18
 
25
19
  @model_serializer(mode="wrap")
26
20
  def serialize_model(self, handler):
27
- optional_fields = ["faces", "logos"]
28
- nullable_fields = ["faces", "logos"]
21
+ optional_fields = ["logos"]
22
+ nullable_fields = ["logos"]
29
23
  null_default_fields = []
30
24
 
31
25
  serialized = handler(self)
@@ -2,7 +2,5 @@
2
2
 
3
3
  from .globals import Globals, GlobalsTypedDict
4
4
 
5
- __all__ = [
6
- "Globals",
7
- "GlobalsTypedDict",
8
- ]
5
+
6
+ __all__ = ["Globals", "GlobalsTypedDict"]
@@ -13,4 +13,3 @@ class VectorModel(str, Enum):
13
13
  BAAI_BGE_M3 = "baai-bge-m3"
14
14
  KEYWORD = "keyword"
15
15
  NAVER_SPLADE_V3 = "naver-splade-v3"
16
- ANSWERAI_MODERN_BERT = "answerai-modern-bert"
@@ -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 .facedetectsettings import FaceDetectSettings, FaceDetectSettingsTypedDict
5
4
  from .logodetectsettings import LogoDetectSettings, LogoDetectSettingsTypedDict
6
5
  from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
7
6
  from pydantic import model_serializer
@@ -9,23 +8,18 @@ from typing_extensions import NotRequired, TypedDict
9
8
 
10
9
 
11
10
  class VideoDetectSettingsTypedDict(TypedDict):
12
- faces: NotRequired[Nullable[FaceDetectSettingsTypedDict]]
13
- r"""Settings for face detection"""
14
11
  logos: NotRequired[Nullable[LogoDetectSettingsTypedDict]]
15
12
  r"""Settings for logo detection"""
16
13
 
17
14
 
18
15
  class VideoDetectSettings(BaseModel):
19
- faces: OptionalNullable[FaceDetectSettings] = UNSET
20
- r"""Settings for face detection"""
21
-
22
16
  logos: OptionalNullable[LogoDetectSettings] = UNSET
23
17
  r"""Settings for logo detection"""
24
18
 
25
19
  @model_serializer(mode="wrap")
26
20
  def serialize_model(self, handler):
27
- optional_fields = ["faces", "logos"]
28
- nullable_fields = ["faces", "logos"]
21
+ optional_fields = ["logos"]
22
+ nullable_fields = ["logos"]
29
23
  null_default_fields = []
30
24
 
31
25
  serialized = handler(self)
mixpeek/namespaces.py CHANGED
@@ -30,7 +30,7 @@ class Namespaces(BaseSDK):
30
30
  Creates a new namespace with the specified configuration
31
31
 
32
32
  :param namespace_name: Name of the namespace to create
33
- :param embedding_models: List of vector indexes to be used within this namespace. Must be one of: 'image', 'openai-clip-vit-base-patch32', 'multimodal', 'vertex-multimodal', 'text', 'baai-bge-m3', 'keyword', 'naver-splade-v3', 'answerai-modern-bert'
33
+ :param embedding_models: List of vector indexes to be used within this namespace. Must be one of: 'image', 'openai-clip-vit-base-patch32', 'multimodal', 'vertex-multimodal', 'text', 'baai-bge-m3', 'keyword', 'naver-splade-v3'
34
34
  :param payload_indexes: List of payload index configurations
35
35
  :param retries: Override the default retry configuration for this method
36
36
  :param server_url: Override the default server URL for this method
@@ -140,7 +140,7 @@ class Namespaces(BaseSDK):
140
140
  Creates a new namespace with the specified configuration
141
141
 
142
142
  :param namespace_name: Name of the namespace to create
143
- :param embedding_models: List of vector indexes to be used within this namespace. Must be one of: 'image', 'openai-clip-vit-base-patch32', 'multimodal', 'vertex-multimodal', 'text', 'baai-bge-m3', 'keyword', 'naver-splade-v3', 'answerai-modern-bert'
143
+ :param embedding_models: List of vector indexes to be used within this namespace. Must be one of: 'image', 'openai-clip-vit-base-patch32', 'multimodal', 'vertex-multimodal', 'text', 'baai-bge-m3', 'keyword', 'naver-splade-v3'
144
144
  :param payload_indexes: List of payload index configurations
145
145
  :param retries: Override the default retry configuration for this method
146
146
  :param server_url: Override the default server URL for this method
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mixpeek
3
- Version: 0.17.2
3
+ Version: 0.17.3
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Speakeasy
6
6
  Requires-Python: >=3.9
@@ -3,7 +3,7 @@ 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=HMEPeYgRh-Zk1i5ydkgzuH_flk9DmB5dEcdR0R2Han0,456
6
+ mixpeek/_version.py,sha256=pZZC7G5YjP2NH8VMa9OjgMnnpni_j1BDNhohrUZGSsU,458
7
7
  mixpeek/assets.py,sha256=cHLz0gzqQAtdZlssqJJnMBdYKSKIeBH-eNIwDpDCDiI,69712
8
8
  mixpeek/basesdk.py,sha256=j_PZqE6WgIfx1cPCK5gAVn-rgPy9iLhUN5ELtefoEU0,11976
9
9
  mixpeek/collections.py,sha256=ebsOO4uWkx2g7mn-1h6_cSicIULr6i_51SVcStJNmSQ,45017
@@ -13,7 +13,7 @@ mixpeek/features.py,sha256=hG5l0OgVYwURoaQF0LSVXL_-GcdZr3OPG3QjEpVtSlE,38270
13
13
  mixpeek/health.py,sha256=WHt-S9BJvonMSIPGF8VSCDqLMhmigk-FhC0-0tIK9_8,6254
14
14
  mixpeek/httpclient.py,sha256=WDbLpMzo7qmWki_ryOJcCAYNI1T4uyWKV08rRuCdNII,2688
15
15
  mixpeek/ingest_assets.py,sha256=altqmRREAzKxXiKlJojO5U9W-x5j1-fspXwJoEXG30Q,37958
16
- mixpeek/models/__init__.py,sha256=uzyvJIOJ-7KgaXhaY54g5mS2m6hiyK8losqQw0jeJi0,30906
16
+ mixpeek/models/__init__.py,sha256=lIcW_0WjkANI-oHes13BEGfofe_BbeL5y-_HMzoPR6M,30766
17
17
  mixpeek/models/actionusage.py,sha256=WAnnBVTeQ9j0dtIrubfyyJQwbBamxManfS8fc2OFNyo,324
18
18
  mixpeek/models/apierror.py,sha256=9mTyJSyvUAOnSfW_1HWt9dGl8IDlpQ68DebwYsDNdug,528
19
19
  mixpeek/models/apikey.py,sha256=P99SWsu6wgc6HStE2MteANIGShUkM2dwQnbQvdg5AOc,654
@@ -23,7 +23,7 @@ mixpeek/models/assetresponse.py,sha256=XR0gM7agzRnGIOqqPqrotZRg1hdN1o-rfW6x9-esE
23
23
  mixpeek/models/assets_model_searchquery.py,sha256=F8TTe7lCD2IF_5ik-GwlvAR2437SBsWCI7IDipft904,664
24
24
  mixpeek/models/assetupdate.py,sha256=xVL49RVIsc7ytm0yVJ9xq1GcSykiswMiC8GeWnZMKB4,670
25
25
  mixpeek/models/assignmentconfig.py,sha256=MrgnPQNNlV8RSDr3OovDQyFjORdMocmfZRZN3NhgHLo,939
26
- mixpeek/models/availablemodels.py,sha256=zQA2L_bVRuXFs20rkDOnpBywWoMtkzAyo6E7d1fD7hQ,518
26
+ mixpeek/models/availablemodels.py,sha256=raBZi6xCmWbYNgvX-N5LzWLwEfbEskcJ_nJfTst9u5U,460
27
27
  mixpeek/models/availablemodelsresponse.py,sha256=DDo0FaQx38Dls2A-4K4pTdpFydzXS533WkJQz9zBADE,1072
28
28
  mixpeek/models/boolindexparams.py,sha256=bg7Hy6y9acpu7AxMpHTsYjEphDd0HnrqFPSgIDpgdZc,454
29
29
  mixpeek/models/classificationmatch.py,sha256=uMvpleNraudDlSq4aug8Yh7TXjQQXYZ_rul1L6Sr_yk,2127
@@ -35,7 +35,7 @@ mixpeek/models/create_api_key_v1_organizations_users_user_email_api_keys_postop.
35
35
  mixpeek/models/create_collection_v1_collections_postop.py,sha256=GtPTeR2PC2LfGFN_hMwn1G7bSB_I_rFX9pTZF2tOcH0,2387
36
36
  mixpeek/models/create_taxonomy_v1_entities_taxonomies_postop.py,sha256=_qjE2LEInNh2j5Gb4AFvdiCmpT9J_rezMy1EXzmBMJQ,2319
37
37
  mixpeek/models/createcollectionrequest.py,sha256=SrM6TNu1qqWWPwLC91e1X1NvmVUXzE0a5e5B1LIOzRQ,1787
38
- mixpeek/models/createnamespacerequest.py,sha256=yQVoSAr9hfEKTLYcjy7ifuQfIUK4-21CtlZNu3VVVFE,2435
38
+ mixpeek/models/createnamespacerequest.py,sha256=4xHtJibncj5N_8RG2LGBHTyWcDHOzLXW6ISHo9JZlG0,2387
39
39
  mixpeek/models/datetimeindexparams.py,sha256=i8SJBTEnWQEMOaOcN7Pt_Zptr6fxYJyO0Mx95-0EC68,468
40
40
  mixpeek/models/dateusage.py,sha256=SjrU7Wk9CirF48u01L8UUjMs9BbkJnhozTnmxkXYupA,541
41
41
  mixpeek/models/db_model_paginationresponse.py,sha256=1uY3GVZsfRXB5ZvnnwNdWnetVbmoPAgT6mYJCZs6H0c,1530
@@ -55,7 +55,6 @@ mixpeek/models/embeddingresponse.py,sha256=1H6OWwIIO0ktqhmK0mIGdo3Bqv8saM7jFaFll
55
55
  mixpeek/models/entitysettings.py,sha256=L3v0AttBjp5Y75wOt1tYNgT9ij4wfJpA9XV6tFCq9yg,1684
56
56
  mixpeek/models/errordetail.py,sha256=j7QNqtNrAHjznF8F-eBuxwEedFhYIqP5YKOyX8dSlcg,1510
57
57
  mixpeek/models/errorresponse.py,sha256=YIbCFc44szh_OIUoQ3BByHWouYwa2Tqedm9NJcrNvyQ,582
58
- mixpeek/models/facedetectsettings.py,sha256=mU78KWd0x1Uy_8FqyWSWPPJcDbwFhxIcAc1RJeR8uL4,1710
59
58
  mixpeek/models/featureextractionembeddingrequest.py,sha256=7aHPcCdd3PoYX2Ozznnf8jsvqqI5beycYgZ56djPLnE,1770
60
59
  mixpeek/models/featureoptions.py,sha256=pwxSNknZglFVPTLdWdMz7SoyBKahRVbdsG9xgtPTsK8,875
61
60
  mixpeek/models/featureresponse.py,sha256=eWsnn1FSccueE9UZOSxVOH_4IimfuKbbsS1bKNPvJhs,2521
@@ -82,7 +81,7 @@ mixpeek/models/groupedassetdata.py,sha256=jezVBoyKu3muLIyeks5M3MqvJWBisQkkPGA1Jy
82
81
  mixpeek/models/healthcheckresponse.py,sha256=PK3C50wcUdZeLl6qfSYGBli2B3wPzCDTaLtSEtq4ZVY,305
83
82
  mixpeek/models/httpvalidationerror.py,sha256=sjKOM2oJR4c4Z24vHmyhtEfqaQeUdKZUMEclKu23OLc,600
84
83
  mixpeek/models/imagedescribesettings.py,sha256=ulaQrF4AgdbmkJL-TB098W8TzhS_iG7QymGA58oisyw,2796
85
- mixpeek/models/imagedetectsettings.py,sha256=isbyJubebMoiA1K8bEBu2yQvEBDZSiM_DoNrU3MLyDY,1846
84
+ mixpeek/models/imagedetectsettings.py,sha256=zY8bpydUQ8AYjSPd4qTFy_peP0DzjBrvOahvgZrOzY0,1551
86
85
  mixpeek/models/imagereadsettings.py,sha256=kGsvK00Wn6RIW7Qg2MJZ0IKYmeOVZJvyV695hBcVU6E,2495
87
86
  mixpeek/models/imagesettings.py,sha256=2LSeuO-uIW82woZjXAdXRBz9KpgKVmOc6XV6YU8owZU,3706
88
87
  mixpeek/models/ingest_image_url_v1_ingest_images_url_postop.py,sha256=_7pSPSI9rr6_w_aX5R3YIUWCyca3BMfTmh9nxdG5EFA,2359
@@ -90,7 +89,7 @@ mixpeek/models/ingest_text_v1_ingest_text_postop.py,sha256=ZYJPM3woJ_9Nsa65QDLJ0
90
89
  mixpeek/models/ingest_video_url_v1_ingest_videos_url_postop.py,sha256=KPKrgMs9J4xVFpD45eAUhNrH3MWR7W6-gyzsiWaTzRo,2359
91
90
  mixpeek/models/inputtype.py,sha256=e71-3dFq8sWgy3Ue0P-gADus3j1MLWvdHETlwBU7HjM,234
92
91
  mixpeek/models/integerindexparams.py,sha256=r6nNOjihSSptcYwOdfrZTFRX_4bKWHbasGjEjdCLqM8,591
93
- mixpeek/models/internal/__init__.py,sha256=ncH_f1D2MC0JgTxerkfsDsayl5SUY6KAlEBuPZ7XiKM,174
92
+ mixpeek/models/internal/__init__.py,sha256=6khoka0i1AXj5YsxEjzmIs1UYeD8DggU2Z69bLfmxvE,164
94
93
  mixpeek/models/internal/globals.py,sha256=7PIqZPXMkyWKGGhRqEtmZiESK7Cbo-9dQjCjTi8yL1s,979
95
94
  mixpeek/models/jsonimageoutputsettings.py,sha256=edd5mFi9AmKSpHTCNiP0huzu3_9_IVIN_3LqdXoQS94,1716
96
95
  mixpeek/models/jsontextoutputsettings.py,sha256=EGbFfuSFSXQO6A3_Gkj58qPVsEU5NE55dxMUcvK_CHk,1622
@@ -159,14 +158,14 @@ mixpeek/models/usermodel_input.py,sha256=MfBJ_huhtCyiRQDLOySSjUEssmgMk0wE0dVxJyv
159
158
  mixpeek/models/usermodel_output.py,sha256=uEngREhhuEiAGq4Aid0sQUAoI_0I2Bw5AKq3Fz2IYF4,887
160
159
  mixpeek/models/uuidindexparams.py,sha256=2vR4nn9tJ5UeCKlpvUraBiLKIWSzgiErcrweV2Dsnpo,520
161
160
  mixpeek/models/validationerror.py,sha256=g2zeZtOeoeEIsftPV67bjp5kqiIqBmM1hu7s3psh-Mc,524
162
- mixpeek/models/vectormodel.py,sha256=8jNOwQAqDrp2DQItx8jc3lI5KtSwFNTwD5uEtZyyGjU,486
161
+ mixpeek/models/vectormodel.py,sha256=x-nWHCbDrU20Rhd1OfddZ_3ddbI6FgyPAp3nI1thdxQ,436
163
162
  mixpeek/models/vectortype.py,sha256=ZIeRoKRmNCojOWTNgco4a2ZYAmcsizA9OyRARzGhYjE,203
164
163
  mixpeek/models/videodescribesettings.py,sha256=_99zl9xc_c3KWU5sm61FeSq2qRpQff2a7zrpr5z5plo,2796
165
- mixpeek/models/videodetectsettings.py,sha256=3l8pOw2USpDQIyPX27yStSPkrgLADPY9wHdsgtCYBMw,1846
164
+ mixpeek/models/videodetectsettings.py,sha256=tb_r0ahLA1IejuX5Er0I-N5AFbobL5OW7yHfXX792iU,1551
166
165
  mixpeek/models/videoreadsettings.py,sha256=qFtWMM2XXZwlPgB4L-a3fQ3koxDLNtWOcGSkp7FPNdw,2427
167
166
  mixpeek/models/videosettings.py,sha256=sNww8ZgmL4O4pp3wTgp76ZNzA6mC9NtOD2p-sC72pbM,4530
168
167
  mixpeek/models/videotranscriptionsettings.py,sha256=70EN-PX2QiQAQjDLYaV2coUCnVjRJI2Y1pXNQYUBH2g,2471
169
- mixpeek/namespaces.py,sha256=2n8traMUAaqZFEquiELpsKpiXK8PYdHFjQTYZlExVA0,49060
168
+ mixpeek/namespaces.py,sha256=6nkYPITiNgsKU6USaoLJPpjkc1aT4nAKuPc5ZD8xbMs,49012
170
169
  mixpeek/organizations.py,sha256=xiI87NMxPeRQ3uDZoGPw3T0NqpfwxdDSVjx0e0LszfM,63769
171
170
  mixpeek/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
172
171
  mixpeek/sdk.py,sha256=K7nIws2PhKEHC79up5B5E2T7l8XYUCzV51efONbdQTA,5995
@@ -190,6 +189,6 @@ mixpeek/utils/security.py,sha256=XoK-R2YMyZtVWQte7FoezfGJS-dea9jz4qQ7w5dwNWc,600
190
189
  mixpeek/utils/serializers.py,sha256=BSJT7kBOkNBFyP7KREyMoe14JGbgijD1M6AXFMbdmco,4924
191
190
  mixpeek/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
192
191
  mixpeek/utils/values.py,sha256=_89YXPTI_BU6SXJBzFR4pIzTCBPQW9tsOTN1jeBBIDs,3428
193
- mixpeek-0.17.2.dist-info/METADATA,sha256=mWoSC2A1E6CyiRnMdZsu8MhrXhSKh9IZP-0_lUq2umE,23979
194
- mixpeek-0.17.2.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
195
- mixpeek-0.17.2.dist-info/RECORD,,
192
+ mixpeek-0.17.3.dist-info/METADATA,sha256=4XvFv-BlpRRpSWNuEY3mDH_WXu0Wt2zuzYePSmFdW0w,23979
193
+ mixpeek-0.17.3.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
194
+ mixpeek-0.17.3.dist-info/RECORD,,
@@ -1,52 +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 import Optional
7
- from typing_extensions import NotRequired, TypedDict
8
-
9
-
10
- class FaceDetectSettingsTypedDict(TypedDict):
11
- enabled: NotRequired[bool]
12
- r"""Enable face detection"""
13
- confidence_threshold: NotRequired[Nullable[float]]
14
- r"""Minimum confidence threshold for detected objects"""
15
-
16
-
17
- class FaceDetectSettings(BaseModel):
18
- enabled: Optional[bool] = True
19
- r"""Enable face detection"""
20
-
21
- confidence_threshold: OptionalNullable[float] = UNSET
22
- r"""Minimum confidence threshold for detected objects"""
23
-
24
- @model_serializer(mode="wrap")
25
- def serialize_model(self, handler):
26
- optional_fields = ["enabled", "confidence_threshold"]
27
- nullable_fields = ["confidence_threshold"]
28
- null_default_fields = []
29
-
30
- serialized = handler(self)
31
-
32
- m = {}
33
-
34
- for n, f in self.model_fields.items():
35
- k = f.alias or n
36
- val = serialized.get(k)
37
- serialized.pop(k, None)
38
-
39
- optional_nullable = k in optional_fields and k in nullable_fields
40
- is_set = (
41
- self.__pydantic_fields_set__.intersection({n})
42
- or k in null_default_fields
43
- ) # pylint: disable=no-member
44
-
45
- if val is not None and val != UNSET_SENTINEL:
46
- m[k] = val
47
- elif val != UNSET_SENTINEL and (
48
- not k in optional_fields or (optional_nullable and is_set)
49
- ):
50
- m[k] = val
51
-
52
- return m