mixpeek 0.12.0__py3-none-any.whl → 0.13__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/__init__.py +5 -79
- mixpeek/_hooks/__init__.py +5 -0
- mixpeek/_hooks/registration.py +13 -0
- mixpeek/_hooks/sdkhooks.py +76 -0
- mixpeek/_hooks/types.py +94 -0
- mixpeek/_version.py +11 -3
- mixpeek/assets.py +1561 -0
- mixpeek/basesdk.py +350 -0
- mixpeek/collections.py +1029 -0
- mixpeek/featureextractors.py +205 -0
- mixpeek/features.py +1181 -0
- mixpeek/health.py +167 -0
- mixpeek/httpclient.py +84 -0
- mixpeek/ingest.py +831 -0
- mixpeek/interactions.py +221 -0
- mixpeek/models/__init__.py +751 -0
- mixpeek/models/actionusage.py +16 -0
- mixpeek/models/apierror.py +22 -0
- mixpeek/models/apikey.py +25 -0
- mixpeek/models/apikeyupdate.py +49 -0
- mixpeek/models/assetfeatures.py +55 -0
- mixpeek/models/assetresponse.py +166 -0
- mixpeek/models/assets_model_searchquery.py +21 -0
- mixpeek/models/assetupdate.py +28 -0
- mixpeek/models/availableindexesresponse.py +23 -0
- mixpeek/models/availablemodels.py +12 -0
- mixpeek/models/boolindexparams.py +18 -0
- mixpeek/models/collectionmodel.py +70 -0
- mixpeek/models/collectionresult.py +73 -0
- mixpeek/models/create_api_key_organizations_users_user_email_api_keys_postop.py +23 -0
- mixpeek/models/create_collection_collections_postop.py +62 -0
- mixpeek/models/create_interaction_features_search_interactions_postop.py +59 -0
- mixpeek/models/createcollectionrequest.py +59 -0
- mixpeek/models/createnamespacerequest.py +62 -0
- mixpeek/models/datetimeindexparams.py +18 -0
- mixpeek/models/dateusage.py +22 -0
- mixpeek/models/db_model_paginationresponse.py +59 -0
- mixpeek/models/db_model_taskresponse.py +20 -0
- mixpeek/models/delete_api_key_organizations_users_user_email_api_keys_key_name_deleteop.py +23 -0
- mixpeek/models/delete_asset_assets_asset_id_deleteop.py +57 -0
- mixpeek/models/delete_collection_collections_collection_deleteop.py +59 -0
- mixpeek/models/delete_feature_features_feature_id_deleteop.py +57 -0
- mixpeek/models/delete_interaction_features_search_interactions_interaction_id_deleteop.py +59 -0
- mixpeek/models/delete_namespace_namespaces_namespace_deleteop.py +18 -0
- mixpeek/models/delete_user_organizations_users_user_email_deleteop.py +16 -0
- mixpeek/models/denseembedding.py +16 -0
- mixpeek/models/embeddingrequest.py +59 -0
- mixpeek/models/embeddingresponse.py +64 -0
- mixpeek/models/errormessage.py +13 -0
- mixpeek/models/errorresponse.py +21 -0
- mixpeek/models/facedetectsettings.py +52 -0
- mixpeek/models/featureextractionembeddingrequest.py +54 -0
- mixpeek/models/featureresponse.py +74 -0
- mixpeek/models/features_model_paginationresponse.py +59 -0
- mixpeek/models/featureupdaterequest.py +21 -0
- mixpeek/models/filtercondition.py +74 -0
- mixpeek/models/floatindexparams.py +18 -0
- mixpeek/models/full_asset_update_assets_asset_id_putop.py +69 -0
- mixpeek/models/full_feature_update_features_feature_id_putop.py +69 -0
- mixpeek/models/geoindexparams.py +18 -0
- mixpeek/models/get_asset_assets_asset_id_getop.py +73 -0
- mixpeek/models/get_asset_with_features_assets_asset_id_features_getop.py +73 -0
- mixpeek/models/get_collection_collections_collection_getop.py +59 -0
- mixpeek/models/get_feature_features_feature_id_getop.py +70 -0
- mixpeek/models/get_interaction_features_search_interactions_interaction_id_getop.py +59 -0
- mixpeek/models/get_namespace_namespaces_namespace_getop.py +18 -0
- mixpeek/models/get_task_tasks_task_id_getop.py +57 -0
- mixpeek/models/get_user_organizations_users_user_email_getop.py +16 -0
- mixpeek/models/groupbyoptions.py +71 -0
- mixpeek/models/groupbyoptionsasset.py +71 -0
- mixpeek/models/groupedassetdata.py +18 -0
- mixpeek/models/healthcheckresponse.py +13 -0
- mixpeek/models/httpvalidationerror.py +21 -0
- mixpeek/models/imagedescribesettings.py +82 -0
- mixpeek/models/imagedetectsettings.py +53 -0
- mixpeek/models/imagereadsettings.py +71 -0
- mixpeek/models/imagesettings.py +79 -0
- mixpeek/models/ingest_image_url_ingest_images_url_postop.py +59 -0
- mixpeek/models/ingest_text_ingest_text_postop.py +59 -0
- mixpeek/models/ingest_video_url_ingest_videos_url_postop.py +59 -0
- mixpeek/models/inputtype.py +11 -0
- mixpeek/models/integerindexparams.py +24 -0
- mixpeek/models/interactionresponse.py +87 -0
- mixpeek/models/interactiontype.py +11 -0
- mixpeek/models/jsonimageoutputsettings.py +55 -0
- mixpeek/models/jsontextoutputsettings.py +55 -0
- mixpeek/models/jsonvideooutputsettings.py +55 -0
- mixpeek/models/keywordindexparams.py +21 -0
- mixpeek/models/kill_task_tasks_task_id_deleteop.py +57 -0
- mixpeek/models/list_assets_assets_postop.py +77 -0
- mixpeek/models/list_collections_collections_getop.py +65 -0
- mixpeek/models/list_features_features_postop.py +79 -0
- mixpeek/models/list_interactions_features_search_interactions_getop.py +96 -0
- mixpeek/models/listassetsrequest.py +75 -0
- mixpeek/models/listassetsresponse.py +22 -0
- mixpeek/models/listcollectionsresponse.py +22 -0
- mixpeek/models/listfeaturesrequest.py +77 -0
- mixpeek/models/listfeaturesresponse.py +22 -0
- mixpeek/models/logicaloperator_input.py +88 -0
- mixpeek/models/logicaloperator_output.py +103 -0
- mixpeek/models/logodetectsettings.py +52 -0
- mixpeek/models/modality.py +13 -0
- mixpeek/models/modeldetails.py +57 -0
- mixpeek/models/namespaceresponse.py +54 -0
- mixpeek/models/organizationmodel.py +45 -0
- mixpeek/models/partial_asset_update_assets_asset_id_patchop.py +69 -0
- mixpeek/models/payloadindexconfig.py +94 -0
- mixpeek/models/payloadindextype.py +17 -0
- mixpeek/models/payloadschematype.py +15 -0
- mixpeek/models/percolaterequest.py +57 -0
- mixpeek/models/permission.py +10 -0
- mixpeek/models/processimageurlinput.py +99 -0
- mixpeek/models/processtextinput.py +94 -0
- mixpeek/models/processvideourlinput.py +99 -0
- mixpeek/models/querysettings.py +56 -0
- mixpeek/models/rerankingoptions.py +47 -0
- mixpeek/models/search_assets_assets_search_postop.py +59 -0
- mixpeek/models/search_features_features_search_postop.py +96 -0
- mixpeek/models/search_model_searchquery_input.py +76 -0
- mixpeek/models/searchassetsrequest.py +78 -0
- mixpeek/models/searchinteraction.py +82 -0
- mixpeek/models/searchquery_output.py +79 -0
- mixpeek/models/searchrequestfeatures_input.py +151 -0
- mixpeek/models/searchrequestfeatures_output.py +151 -0
- mixpeek/models/sortoption.py +28 -0
- mixpeek/models/sparseembedding.py +21 -0
- mixpeek/models/tasks_model_taskresponse.py +24 -0
- mixpeek/models/taskstatus.py +16 -0
- mixpeek/models/textindexparams.py +31 -0
- mixpeek/models/textsettings.py +61 -0
- mixpeek/models/tokenizertype.py +11 -0
- mixpeek/models/update_api_key_organizations_users_user_email_api_keys_key_name_patchop.py +30 -0
- mixpeek/models/update_collection_collections_collection_putop.py +74 -0
- mixpeek/models/update_namespace_namespaces_namespace_putop.py +28 -0
- mixpeek/models/updateassetrequest.py +60 -0
- mixpeek/models/updatenamespacerequest.py +26 -0
- mixpeek/models/usage.py +18 -0
- mixpeek/models/usermodel_input.py +36 -0
- mixpeek/models/usermodel_output.py +36 -0
- mixpeek/models/uuidindexparams.py +21 -0
- mixpeek/models/validationerror.py +26 -0
- mixpeek/models/vectormodel.py +11 -0
- mixpeek/models/vectortype.py +9 -0
- mixpeek/models/videodescribesettings.py +82 -0
- mixpeek/models/videodetectsettings.py +53 -0
- mixpeek/models/videoreadsettings.py +71 -0
- mixpeek/models/videosettings.py +101 -0
- mixpeek/models/videotranscriptionsettings.py +69 -0
- mixpeek/namespaces.py +1143 -0
- mixpeek/organizations.py +1508 -0
- mixpeek/py.typed +1 -0
- mixpeek/sdk.py +135 -0
- mixpeek/sdkconfiguration.py +45 -0
- mixpeek/searchinteractions.py +647 -0
- mixpeek/tasks.py +387 -0
- mixpeek/types/__init__.py +19 -29
- mixpeek/types/basemodel.py +39 -0
- mixpeek/utils/__init__.py +97 -0
- mixpeek/utils/annotations.py +55 -0
- mixpeek/utils/enums.py +34 -0
- mixpeek/utils/eventstreaming.py +238 -0
- mixpeek/utils/forms.py +202 -0
- mixpeek/utils/headers.py +136 -0
- mixpeek/utils/logger.py +27 -0
- mixpeek/utils/metadata.py +118 -0
- mixpeek/utils/queryparams.py +205 -0
- mixpeek/utils/requestbodies.py +66 -0
- mixpeek/utils/retries.py +217 -0
- mixpeek/utils/security.py +174 -0
- mixpeek/utils/serializers.py +215 -0
- mixpeek/utils/url.py +155 -0
- mixpeek/utils/values.py +134 -0
- mixpeek-0.13.dist-info/METADATA +439 -0
- mixpeek-0.13.dist-info/RECORD +176 -0
- {mixpeek-0.12.0.dist-info → mixpeek-0.13.dist-info}/WHEEL +1 -1
- py.typed +1 -0
- mixpeek/_base_client.py +0 -2041
- mixpeek/_client.py +0 -444
- mixpeek/_compat.py +0 -221
- mixpeek/_constants.py +0 -14
- mixpeek/_exceptions.py +0 -108
- mixpeek/_files.py +0 -123
- mixpeek/_models.py +0 -788
- mixpeek/_qs.py +0 -150
- mixpeek/_resource.py +0 -43
- mixpeek/_response.py +0 -824
- mixpeek/_streaming.py +0 -333
- mixpeek/_types.py +0 -219
- mixpeek/_utils/__init__.py +0 -56
- mixpeek/_utils/_logs.py +0 -25
- mixpeek/_utils/_proxy.py +0 -62
- mixpeek/_utils/_reflection.py +0 -42
- mixpeek/_utils/_streams.py +0 -12
- mixpeek/_utils/_sync.py +0 -81
- mixpeek/_utils/_transform.py +0 -387
- mixpeek/_utils/_typing.py +0 -120
- mixpeek/_utils/_utils.py +0 -414
- mixpeek/lib/.keep +0 -4
- mixpeek/resources/__init__.py +0 -117
- mixpeek/resources/accounts.py +0 -271
- mixpeek/resources/assets/__init__.py +0 -33
- mixpeek/resources/assets/assets.py +0 -708
- mixpeek/resources/assets/features.py +0 -172
- mixpeek/resources/collections.py +0 -283
- mixpeek/resources/entities/__init__.py +0 -47
- mixpeek/resources/entities/entities.py +0 -134
- mixpeek/resources/entities/faces.py +0 -514
- mixpeek/resources/entities/labels.py +0 -388
- mixpeek/resources/features/__init__.py +0 -33
- mixpeek/resources/features/features.py +0 -562
- mixpeek/resources/features/search.py +0 -731
- mixpeek/resources/healthcheck.py +0 -135
- mixpeek/resources/index/__init__.py +0 -47
- mixpeek/resources/index/images.py +0 -249
- mixpeek/resources/index/index.py +0 -289
- mixpeek/resources/index/videos.py +0 -249
- mixpeek/resources/tasks.py +0 -258
- mixpeek/types/account_update_params.py +0 -28
- mixpeek/types/asset_create_params.py +0 -36
- mixpeek/types/asset_create_response.py +0 -15
- mixpeek/types/asset_response.py +0 -46
- mixpeek/types/asset_search_params.py +0 -43
- mixpeek/types/asset_search_response.py +0 -15
- mixpeek/types/asset_update_params.py +0 -25
- mixpeek/types/asset_update_response.py +0 -11
- mixpeek/types/assets/__init__.py +0 -3
- mixpeek/types/collection_list_params.py +0 -19
- mixpeek/types/collection_list_response.py +0 -14
- mixpeek/types/entities/__init__.py +0 -13
- mixpeek/types/entities/face_create_params.py +0 -21
- mixpeek/types/entities/face_list_params.py +0 -18
- mixpeek/types/entities/face_list_response.py +0 -15
- mixpeek/types/entities/face_response.py +0 -17
- mixpeek/types/entities/face_update_params.py +0 -22
- mixpeek/types/entities/label_list_params.py +0 -18
- mixpeek/types/entities/label_list_response.py +0 -30
- mixpeek/types/entities/label_response.py +0 -30
- mixpeek/types/entities/label_update_params.py +0 -21
- mixpeek/types/feature.py +0 -32
- mixpeek/types/feature_list_params.py +0 -37
- mixpeek/types/feature_list_response.py +0 -28
- mixpeek/types/feature_retrieve_params.py +0 -18
- mixpeek/types/feature_update_params.py +0 -16
- mixpeek/types/features/__init__.py +0 -8
- mixpeek/types/features/search_feedback_params.py +0 -23
- mixpeek/types/features/search_file_params.py +0 -29
- mixpeek/types/features/search_text_params.py +0 -72
- mixpeek/types/features/search_url_params.py +0 -72
- mixpeek/types/grouped_asset_data.py +0 -24
- mixpeek/types/health_check_response.py +0 -10
- mixpeek/types/index/__init__.py +0 -8
- mixpeek/types/index/image_url_params.py +0 -135
- mixpeek/types/index/image_url_response.py +0 -20
- mixpeek/types/index/video_url_params.py +0 -154
- mixpeek/types/index/video_url_response.py +0 -20
- mixpeek/types/index_text_params.py +0 -77
- mixpeek/types/index_text_response.py +0 -14
- mixpeek/types/shared/__init__.py +0 -7
- mixpeek/types/shared/filter_condition.py +0 -19
- mixpeek/types/shared/logical_operator.py +0 -12
- mixpeek/types/shared/model_pagination_response.py +0 -21
- mixpeek/types/shared/sort_option.py +0 -15
- mixpeek/types/shared/task_response.py +0 -15
- mixpeek/types/shared_params/__init__.py +0 -4
- mixpeek/types/shared_params/logical_operator.py +0 -13
- mixpeek/types/shared_params/sort_option.py +0 -15
- mixpeek/types/user.py +0 -34
- mixpeek-0.12.0.dist-info/METADATA +0 -345
- mixpeek-0.12.0.dist-info/RECORD +0 -99
- mixpeek-0.12.0.dist-info/licenses/LICENSE +0 -201
@@ -1,708 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
from typing import Any, List, Iterable, Optional, cast
|
6
|
-
|
7
|
-
import httpx
|
8
|
-
|
9
|
-
from ...types import asset_create_params, asset_search_params, asset_update_params
|
10
|
-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
11
|
-
from ..._utils import (
|
12
|
-
maybe_transform,
|
13
|
-
strip_not_given,
|
14
|
-
async_maybe_transform,
|
15
|
-
)
|
16
|
-
from .features import (
|
17
|
-
FeaturesResource,
|
18
|
-
AsyncFeaturesResource,
|
19
|
-
FeaturesResourceWithRawResponse,
|
20
|
-
AsyncFeaturesResourceWithRawResponse,
|
21
|
-
FeaturesResourceWithStreamingResponse,
|
22
|
-
AsyncFeaturesResourceWithStreamingResponse,
|
23
|
-
)
|
24
|
-
from ..._compat import cached_property
|
25
|
-
from ..._resource import SyncAPIResource, AsyncAPIResource
|
26
|
-
from ..._response import (
|
27
|
-
to_raw_response_wrapper,
|
28
|
-
to_streamed_response_wrapper,
|
29
|
-
async_to_raw_response_wrapper,
|
30
|
-
async_to_streamed_response_wrapper,
|
31
|
-
)
|
32
|
-
from ..._base_client import make_request_options
|
33
|
-
from ...types.asset_response import AssetResponse
|
34
|
-
from ...types.asset_create_response import AssetCreateResponse
|
35
|
-
from ...types.asset_search_response import AssetSearchResponse
|
36
|
-
from ...types.asset_update_response import AssetUpdateResponse
|
37
|
-
from ...types.shared_params.sort_option import SortOption
|
38
|
-
from ...types.shared_params.logical_operator import LogicalOperator
|
39
|
-
|
40
|
-
__all__ = ["AssetsResource", "AsyncAssetsResource"]
|
41
|
-
|
42
|
-
|
43
|
-
class AssetsResource(SyncAPIResource):
|
44
|
-
@cached_property
|
45
|
-
def features(self) -> FeaturesResource:
|
46
|
-
return FeaturesResource(self._client)
|
47
|
-
|
48
|
-
@cached_property
|
49
|
-
def with_raw_response(self) -> AssetsResourceWithRawResponse:
|
50
|
-
"""
|
51
|
-
This property can be used as a prefix for any HTTP method call to return the
|
52
|
-
the raw response object instead of the parsed content.
|
53
|
-
|
54
|
-
For more information, see https://www.github.com/mixpeek/python-client#accessing-raw-response-data-eg-headers
|
55
|
-
"""
|
56
|
-
return AssetsResourceWithRawResponse(self)
|
57
|
-
|
58
|
-
@cached_property
|
59
|
-
def with_streaming_response(self) -> AssetsResourceWithStreamingResponse:
|
60
|
-
"""
|
61
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
62
|
-
|
63
|
-
For more information, see https://www.github.com/mixpeek/python-client#with_streaming_response
|
64
|
-
"""
|
65
|
-
return AssetsResourceWithStreamingResponse(self)
|
66
|
-
|
67
|
-
def create(
|
68
|
-
self,
|
69
|
-
*,
|
70
|
-
collection_ids: List[str],
|
71
|
-
page: Optional[int] | NotGiven = NOT_GIVEN,
|
72
|
-
page_size: int | NotGiven = NOT_GIVEN,
|
73
|
-
filters: Optional[LogicalOperator] | NotGiven = NOT_GIVEN,
|
74
|
-
select: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
|
75
|
-
sort: Optional[SortOption] | NotGiven = NOT_GIVEN,
|
76
|
-
index_id: str | NotGiven = NOT_GIVEN,
|
77
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
78
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
79
|
-
extra_headers: Headers | None = None,
|
80
|
-
extra_query: Query | None = None,
|
81
|
-
extra_body: Body | None = None,
|
82
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
83
|
-
) -> AssetCreateResponse:
|
84
|
-
"""
|
85
|
-
List Assets
|
86
|
-
|
87
|
-
Args:
|
88
|
-
collection_ids: Collection IDs to filter features
|
89
|
-
|
90
|
-
filters: Complex nested query filters
|
91
|
-
|
92
|
-
select: List of fields to return in results, supports dot notation.
|
93
|
-
|
94
|
-
sort: List of fields to sort by, with direction (asc or desc). NOTE: fields will
|
95
|
-
require a specialty index to use this, consult with the team
|
96
|
-
|
97
|
-
index_id: filter by organization
|
98
|
-
|
99
|
-
extra_headers: Send extra headers
|
100
|
-
|
101
|
-
extra_query: Add additional query parameters to the request
|
102
|
-
|
103
|
-
extra_body: Add additional JSON properties to the request
|
104
|
-
|
105
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
106
|
-
"""
|
107
|
-
extra_headers = {**strip_not_given({"index-id": index_id}), **(extra_headers or {})}
|
108
|
-
return self._post(
|
109
|
-
"/assets",
|
110
|
-
body=maybe_transform(
|
111
|
-
{
|
112
|
-
"collection_ids": collection_ids,
|
113
|
-
"filters": filters,
|
114
|
-
"select": select,
|
115
|
-
"sort": sort,
|
116
|
-
},
|
117
|
-
asset_create_params.AssetCreateParams,
|
118
|
-
),
|
119
|
-
options=make_request_options(
|
120
|
-
extra_headers=extra_headers,
|
121
|
-
extra_query=extra_query,
|
122
|
-
extra_body=extra_body,
|
123
|
-
timeout=timeout,
|
124
|
-
query=maybe_transform(
|
125
|
-
{
|
126
|
-
"page": page,
|
127
|
-
"page_size": page_size,
|
128
|
-
},
|
129
|
-
asset_create_params.AssetCreateParams,
|
130
|
-
),
|
131
|
-
),
|
132
|
-
cast_to=AssetCreateResponse,
|
133
|
-
)
|
134
|
-
|
135
|
-
def retrieve(
|
136
|
-
self,
|
137
|
-
asset_id: str,
|
138
|
-
*,
|
139
|
-
index_id: str | NotGiven = NOT_GIVEN,
|
140
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
141
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
142
|
-
extra_headers: Headers | None = None,
|
143
|
-
extra_query: Query | None = None,
|
144
|
-
extra_body: Body | None = None,
|
145
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
146
|
-
) -> AssetResponse:
|
147
|
-
"""
|
148
|
-
Get basic asset details
|
149
|
-
|
150
|
-
Args:
|
151
|
-
index_id: filter by organization
|
152
|
-
|
153
|
-
extra_headers: Send extra headers
|
154
|
-
|
155
|
-
extra_query: Add additional query parameters to the request
|
156
|
-
|
157
|
-
extra_body: Add additional JSON properties to the request
|
158
|
-
|
159
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
160
|
-
"""
|
161
|
-
if not asset_id:
|
162
|
-
raise ValueError(f"Expected a non-empty value for `asset_id` but received {asset_id!r}")
|
163
|
-
extra_headers = {**strip_not_given({"index-id": index_id}), **(extra_headers or {})}
|
164
|
-
return self._get(
|
165
|
-
f"/assets/{asset_id}",
|
166
|
-
options=make_request_options(
|
167
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
168
|
-
),
|
169
|
-
cast_to=AssetResponse,
|
170
|
-
)
|
171
|
-
|
172
|
-
def update(
|
173
|
-
self,
|
174
|
-
asset_id: str,
|
175
|
-
*,
|
176
|
-
metadata: object | NotGiven = NOT_GIVEN,
|
177
|
-
propagate_features: Optional[bool] | NotGiven = NOT_GIVEN,
|
178
|
-
index_id: str | NotGiven = NOT_GIVEN,
|
179
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
180
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
181
|
-
extra_headers: Headers | None = None,
|
182
|
-
extra_query: Query | None = None,
|
183
|
-
extra_body: Body | None = None,
|
184
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
185
|
-
) -> AssetUpdateResponse:
|
186
|
-
"""Partial Asset Update
|
187
|
-
|
188
|
-
Args:
|
189
|
-
metadata: Updated metadata for the asset.
|
190
|
-
|
191
|
-
This can include any key-value pairs that should
|
192
|
-
be updated or added to the asset's metadata.
|
193
|
-
|
194
|
-
propagate_features: If True, the features will be propagated to all assets with the same asset_id
|
195
|
-
|
196
|
-
index_id: filter by organization
|
197
|
-
|
198
|
-
extra_headers: Send extra headers
|
199
|
-
|
200
|
-
extra_query: Add additional query parameters to the request
|
201
|
-
|
202
|
-
extra_body: Add additional JSON properties to the request
|
203
|
-
|
204
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
205
|
-
"""
|
206
|
-
if not asset_id:
|
207
|
-
raise ValueError(f"Expected a non-empty value for `asset_id` but received {asset_id!r}")
|
208
|
-
extra_headers = {**strip_not_given({"index-id": index_id}), **(extra_headers or {})}
|
209
|
-
return cast(
|
210
|
-
AssetUpdateResponse,
|
211
|
-
self._patch(
|
212
|
-
f"/assets/{asset_id}",
|
213
|
-
body=maybe_transform(
|
214
|
-
{
|
215
|
-
"metadata": metadata,
|
216
|
-
"propagate_features": propagate_features,
|
217
|
-
},
|
218
|
-
asset_update_params.AssetUpdateParams,
|
219
|
-
),
|
220
|
-
options=make_request_options(
|
221
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
222
|
-
),
|
223
|
-
cast_to=cast(
|
224
|
-
Any, AssetUpdateResponse
|
225
|
-
), # Union types cannot be passed in as arguments in the type system
|
226
|
-
),
|
227
|
-
)
|
228
|
-
|
229
|
-
def delete(
|
230
|
-
self,
|
231
|
-
asset_id: str,
|
232
|
-
*,
|
233
|
-
index_id: str | NotGiven = NOT_GIVEN,
|
234
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
235
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
236
|
-
extra_headers: Headers | None = None,
|
237
|
-
extra_query: Query | None = None,
|
238
|
-
extra_body: Body | None = None,
|
239
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
240
|
-
) -> object:
|
241
|
-
"""
|
242
|
-
Delete Asset
|
243
|
-
|
244
|
-
Args:
|
245
|
-
index_id: filter by organization
|
246
|
-
|
247
|
-
extra_headers: Send extra headers
|
248
|
-
|
249
|
-
extra_query: Add additional query parameters to the request
|
250
|
-
|
251
|
-
extra_body: Add additional JSON properties to the request
|
252
|
-
|
253
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
254
|
-
"""
|
255
|
-
if not asset_id:
|
256
|
-
raise ValueError(f"Expected a non-empty value for `asset_id` but received {asset_id!r}")
|
257
|
-
extra_headers = {**strip_not_given({"index-id": index_id}), **(extra_headers or {})}
|
258
|
-
return self._delete(
|
259
|
-
f"/assets/{asset_id}",
|
260
|
-
options=make_request_options(
|
261
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
262
|
-
),
|
263
|
-
cast_to=object,
|
264
|
-
)
|
265
|
-
|
266
|
-
def search(
|
267
|
-
self,
|
268
|
-
*,
|
269
|
-
collection_ids: List[str],
|
270
|
-
filters: Optional[LogicalOperator] | NotGiven = NOT_GIVEN,
|
271
|
-
query: Optional[asset_search_params.Query] | NotGiven = NOT_GIVEN,
|
272
|
-
select: Optional[List[str]] | NotGiven = NOT_GIVEN,
|
273
|
-
sort: Optional[SortOption] | NotGiven = NOT_GIVEN,
|
274
|
-
index_id: str | NotGiven = NOT_GIVEN,
|
275
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
276
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
277
|
-
extra_headers: Headers | None = None,
|
278
|
-
extra_query: Query | None = None,
|
279
|
-
extra_body: Body | None = None,
|
280
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
281
|
-
) -> AssetSearchResponse:
|
282
|
-
"""
|
283
|
-
Search Assets
|
284
|
-
|
285
|
-
Args:
|
286
|
-
collection_ids: List of Collection IDs to search within, required
|
287
|
-
|
288
|
-
filters: Complex nested query filters
|
289
|
-
|
290
|
-
query: Structured query object specifying which fields to search in and what to search
|
291
|
-
for
|
292
|
-
|
293
|
-
select: List of fields to return in results
|
294
|
-
|
295
|
-
sort: List of fields to sort by
|
296
|
-
|
297
|
-
index_id: filter by organization
|
298
|
-
|
299
|
-
extra_headers: Send extra headers
|
300
|
-
|
301
|
-
extra_query: Add additional query parameters to the request
|
302
|
-
|
303
|
-
extra_body: Add additional JSON properties to the request
|
304
|
-
|
305
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
306
|
-
"""
|
307
|
-
extra_headers = {**strip_not_given({"index-id": index_id}), **(extra_headers or {})}
|
308
|
-
return self._post(
|
309
|
-
"/assets/search",
|
310
|
-
body=maybe_transform(
|
311
|
-
{
|
312
|
-
"collection_ids": collection_ids,
|
313
|
-
"filters": filters,
|
314
|
-
"query": query,
|
315
|
-
"select": select,
|
316
|
-
"sort": sort,
|
317
|
-
},
|
318
|
-
asset_search_params.AssetSearchParams,
|
319
|
-
),
|
320
|
-
options=make_request_options(
|
321
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
322
|
-
),
|
323
|
-
cast_to=AssetSearchResponse,
|
324
|
-
)
|
325
|
-
|
326
|
-
|
327
|
-
class AsyncAssetsResource(AsyncAPIResource):
|
328
|
-
@cached_property
|
329
|
-
def features(self) -> AsyncFeaturesResource:
|
330
|
-
return AsyncFeaturesResource(self._client)
|
331
|
-
|
332
|
-
@cached_property
|
333
|
-
def with_raw_response(self) -> AsyncAssetsResourceWithRawResponse:
|
334
|
-
"""
|
335
|
-
This property can be used as a prefix for any HTTP method call to return the
|
336
|
-
the raw response object instead of the parsed content.
|
337
|
-
|
338
|
-
For more information, see https://www.github.com/mixpeek/python-client#accessing-raw-response-data-eg-headers
|
339
|
-
"""
|
340
|
-
return AsyncAssetsResourceWithRawResponse(self)
|
341
|
-
|
342
|
-
@cached_property
|
343
|
-
def with_streaming_response(self) -> AsyncAssetsResourceWithStreamingResponse:
|
344
|
-
"""
|
345
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
346
|
-
|
347
|
-
For more information, see https://www.github.com/mixpeek/python-client#with_streaming_response
|
348
|
-
"""
|
349
|
-
return AsyncAssetsResourceWithStreamingResponse(self)
|
350
|
-
|
351
|
-
async def create(
|
352
|
-
self,
|
353
|
-
*,
|
354
|
-
collection_ids: List[str],
|
355
|
-
page: Optional[int] | NotGiven = NOT_GIVEN,
|
356
|
-
page_size: int | NotGiven = NOT_GIVEN,
|
357
|
-
filters: Optional[LogicalOperator] | NotGiven = NOT_GIVEN,
|
358
|
-
select: Optional[Iterable[object]] | NotGiven = NOT_GIVEN,
|
359
|
-
sort: Optional[SortOption] | NotGiven = NOT_GIVEN,
|
360
|
-
index_id: str | NotGiven = NOT_GIVEN,
|
361
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
362
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
363
|
-
extra_headers: Headers | None = None,
|
364
|
-
extra_query: Query | None = None,
|
365
|
-
extra_body: Body | None = None,
|
366
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
367
|
-
) -> AssetCreateResponse:
|
368
|
-
"""
|
369
|
-
List Assets
|
370
|
-
|
371
|
-
Args:
|
372
|
-
collection_ids: Collection IDs to filter features
|
373
|
-
|
374
|
-
filters: Complex nested query filters
|
375
|
-
|
376
|
-
select: List of fields to return in results, supports dot notation.
|
377
|
-
|
378
|
-
sort: List of fields to sort by, with direction (asc or desc). NOTE: fields will
|
379
|
-
require a specialty index to use this, consult with the team
|
380
|
-
|
381
|
-
index_id: filter by organization
|
382
|
-
|
383
|
-
extra_headers: Send extra headers
|
384
|
-
|
385
|
-
extra_query: Add additional query parameters to the request
|
386
|
-
|
387
|
-
extra_body: Add additional JSON properties to the request
|
388
|
-
|
389
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
390
|
-
"""
|
391
|
-
extra_headers = {**strip_not_given({"index-id": index_id}), **(extra_headers or {})}
|
392
|
-
return await self._post(
|
393
|
-
"/assets",
|
394
|
-
body=await async_maybe_transform(
|
395
|
-
{
|
396
|
-
"collection_ids": collection_ids,
|
397
|
-
"filters": filters,
|
398
|
-
"select": select,
|
399
|
-
"sort": sort,
|
400
|
-
},
|
401
|
-
asset_create_params.AssetCreateParams,
|
402
|
-
),
|
403
|
-
options=make_request_options(
|
404
|
-
extra_headers=extra_headers,
|
405
|
-
extra_query=extra_query,
|
406
|
-
extra_body=extra_body,
|
407
|
-
timeout=timeout,
|
408
|
-
query=await async_maybe_transform(
|
409
|
-
{
|
410
|
-
"page": page,
|
411
|
-
"page_size": page_size,
|
412
|
-
},
|
413
|
-
asset_create_params.AssetCreateParams,
|
414
|
-
),
|
415
|
-
),
|
416
|
-
cast_to=AssetCreateResponse,
|
417
|
-
)
|
418
|
-
|
419
|
-
async def retrieve(
|
420
|
-
self,
|
421
|
-
asset_id: str,
|
422
|
-
*,
|
423
|
-
index_id: str | NotGiven = NOT_GIVEN,
|
424
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
425
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
426
|
-
extra_headers: Headers | None = None,
|
427
|
-
extra_query: Query | None = None,
|
428
|
-
extra_body: Body | None = None,
|
429
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
430
|
-
) -> AssetResponse:
|
431
|
-
"""
|
432
|
-
Get basic asset details
|
433
|
-
|
434
|
-
Args:
|
435
|
-
index_id: filter by organization
|
436
|
-
|
437
|
-
extra_headers: Send extra headers
|
438
|
-
|
439
|
-
extra_query: Add additional query parameters to the request
|
440
|
-
|
441
|
-
extra_body: Add additional JSON properties to the request
|
442
|
-
|
443
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
444
|
-
"""
|
445
|
-
if not asset_id:
|
446
|
-
raise ValueError(f"Expected a non-empty value for `asset_id` but received {asset_id!r}")
|
447
|
-
extra_headers = {**strip_not_given({"index-id": index_id}), **(extra_headers or {})}
|
448
|
-
return await self._get(
|
449
|
-
f"/assets/{asset_id}",
|
450
|
-
options=make_request_options(
|
451
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
452
|
-
),
|
453
|
-
cast_to=AssetResponse,
|
454
|
-
)
|
455
|
-
|
456
|
-
async def update(
|
457
|
-
self,
|
458
|
-
asset_id: str,
|
459
|
-
*,
|
460
|
-
metadata: object | NotGiven = NOT_GIVEN,
|
461
|
-
propagate_features: Optional[bool] | NotGiven = NOT_GIVEN,
|
462
|
-
index_id: str | NotGiven = NOT_GIVEN,
|
463
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
464
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
465
|
-
extra_headers: Headers | None = None,
|
466
|
-
extra_query: Query | None = None,
|
467
|
-
extra_body: Body | None = None,
|
468
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
469
|
-
) -> AssetUpdateResponse:
|
470
|
-
"""Partial Asset Update
|
471
|
-
|
472
|
-
Args:
|
473
|
-
metadata: Updated metadata for the asset.
|
474
|
-
|
475
|
-
This can include any key-value pairs that should
|
476
|
-
be updated or added to the asset's metadata.
|
477
|
-
|
478
|
-
propagate_features: If True, the features will be propagated to all assets with the same asset_id
|
479
|
-
|
480
|
-
index_id: filter by organization
|
481
|
-
|
482
|
-
extra_headers: Send extra headers
|
483
|
-
|
484
|
-
extra_query: Add additional query parameters to the request
|
485
|
-
|
486
|
-
extra_body: Add additional JSON properties to the request
|
487
|
-
|
488
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
489
|
-
"""
|
490
|
-
if not asset_id:
|
491
|
-
raise ValueError(f"Expected a non-empty value for `asset_id` but received {asset_id!r}")
|
492
|
-
extra_headers = {**strip_not_given({"index-id": index_id}), **(extra_headers or {})}
|
493
|
-
return cast(
|
494
|
-
AssetUpdateResponse,
|
495
|
-
await self._patch(
|
496
|
-
f"/assets/{asset_id}",
|
497
|
-
body=await async_maybe_transform(
|
498
|
-
{
|
499
|
-
"metadata": metadata,
|
500
|
-
"propagate_features": propagate_features,
|
501
|
-
},
|
502
|
-
asset_update_params.AssetUpdateParams,
|
503
|
-
),
|
504
|
-
options=make_request_options(
|
505
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
506
|
-
),
|
507
|
-
cast_to=cast(
|
508
|
-
Any, AssetUpdateResponse
|
509
|
-
), # Union types cannot be passed in as arguments in the type system
|
510
|
-
),
|
511
|
-
)
|
512
|
-
|
513
|
-
async def delete(
|
514
|
-
self,
|
515
|
-
asset_id: str,
|
516
|
-
*,
|
517
|
-
index_id: str | NotGiven = NOT_GIVEN,
|
518
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
519
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
520
|
-
extra_headers: Headers | None = None,
|
521
|
-
extra_query: Query | None = None,
|
522
|
-
extra_body: Body | None = None,
|
523
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
524
|
-
) -> object:
|
525
|
-
"""
|
526
|
-
Delete Asset
|
527
|
-
|
528
|
-
Args:
|
529
|
-
index_id: filter by organization
|
530
|
-
|
531
|
-
extra_headers: Send extra headers
|
532
|
-
|
533
|
-
extra_query: Add additional query parameters to the request
|
534
|
-
|
535
|
-
extra_body: Add additional JSON properties to the request
|
536
|
-
|
537
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
538
|
-
"""
|
539
|
-
if not asset_id:
|
540
|
-
raise ValueError(f"Expected a non-empty value for `asset_id` but received {asset_id!r}")
|
541
|
-
extra_headers = {**strip_not_given({"index-id": index_id}), **(extra_headers or {})}
|
542
|
-
return await self._delete(
|
543
|
-
f"/assets/{asset_id}",
|
544
|
-
options=make_request_options(
|
545
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
546
|
-
),
|
547
|
-
cast_to=object,
|
548
|
-
)
|
549
|
-
|
550
|
-
async def search(
|
551
|
-
self,
|
552
|
-
*,
|
553
|
-
collection_ids: List[str],
|
554
|
-
filters: Optional[LogicalOperator] | NotGiven = NOT_GIVEN,
|
555
|
-
query: Optional[asset_search_params.Query] | NotGiven = NOT_GIVEN,
|
556
|
-
select: Optional[List[str]] | NotGiven = NOT_GIVEN,
|
557
|
-
sort: Optional[SortOption] | NotGiven = NOT_GIVEN,
|
558
|
-
index_id: str | NotGiven = NOT_GIVEN,
|
559
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
560
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
561
|
-
extra_headers: Headers | None = None,
|
562
|
-
extra_query: Query | None = None,
|
563
|
-
extra_body: Body | None = None,
|
564
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
565
|
-
) -> AssetSearchResponse:
|
566
|
-
"""
|
567
|
-
Search Assets
|
568
|
-
|
569
|
-
Args:
|
570
|
-
collection_ids: List of Collection IDs to search within, required
|
571
|
-
|
572
|
-
filters: Complex nested query filters
|
573
|
-
|
574
|
-
query: Structured query object specifying which fields to search in and what to search
|
575
|
-
for
|
576
|
-
|
577
|
-
select: List of fields to return in results
|
578
|
-
|
579
|
-
sort: List of fields to sort by
|
580
|
-
|
581
|
-
index_id: filter by organization
|
582
|
-
|
583
|
-
extra_headers: Send extra headers
|
584
|
-
|
585
|
-
extra_query: Add additional query parameters to the request
|
586
|
-
|
587
|
-
extra_body: Add additional JSON properties to the request
|
588
|
-
|
589
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
590
|
-
"""
|
591
|
-
extra_headers = {**strip_not_given({"index-id": index_id}), **(extra_headers or {})}
|
592
|
-
return await self._post(
|
593
|
-
"/assets/search",
|
594
|
-
body=await async_maybe_transform(
|
595
|
-
{
|
596
|
-
"collection_ids": collection_ids,
|
597
|
-
"filters": filters,
|
598
|
-
"query": query,
|
599
|
-
"select": select,
|
600
|
-
"sort": sort,
|
601
|
-
},
|
602
|
-
asset_search_params.AssetSearchParams,
|
603
|
-
),
|
604
|
-
options=make_request_options(
|
605
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
606
|
-
),
|
607
|
-
cast_to=AssetSearchResponse,
|
608
|
-
)
|
609
|
-
|
610
|
-
|
611
|
-
class AssetsResourceWithRawResponse:
|
612
|
-
def __init__(self, assets: AssetsResource) -> None:
|
613
|
-
self._assets = assets
|
614
|
-
|
615
|
-
self.create = to_raw_response_wrapper(
|
616
|
-
assets.create,
|
617
|
-
)
|
618
|
-
self.retrieve = to_raw_response_wrapper(
|
619
|
-
assets.retrieve,
|
620
|
-
)
|
621
|
-
self.update = to_raw_response_wrapper(
|
622
|
-
assets.update,
|
623
|
-
)
|
624
|
-
self.delete = to_raw_response_wrapper(
|
625
|
-
assets.delete,
|
626
|
-
)
|
627
|
-
self.search = to_raw_response_wrapper(
|
628
|
-
assets.search,
|
629
|
-
)
|
630
|
-
|
631
|
-
@cached_property
|
632
|
-
def features(self) -> FeaturesResourceWithRawResponse:
|
633
|
-
return FeaturesResourceWithRawResponse(self._assets.features)
|
634
|
-
|
635
|
-
|
636
|
-
class AsyncAssetsResourceWithRawResponse:
|
637
|
-
def __init__(self, assets: AsyncAssetsResource) -> None:
|
638
|
-
self._assets = assets
|
639
|
-
|
640
|
-
self.create = async_to_raw_response_wrapper(
|
641
|
-
assets.create,
|
642
|
-
)
|
643
|
-
self.retrieve = async_to_raw_response_wrapper(
|
644
|
-
assets.retrieve,
|
645
|
-
)
|
646
|
-
self.update = async_to_raw_response_wrapper(
|
647
|
-
assets.update,
|
648
|
-
)
|
649
|
-
self.delete = async_to_raw_response_wrapper(
|
650
|
-
assets.delete,
|
651
|
-
)
|
652
|
-
self.search = async_to_raw_response_wrapper(
|
653
|
-
assets.search,
|
654
|
-
)
|
655
|
-
|
656
|
-
@cached_property
|
657
|
-
def features(self) -> AsyncFeaturesResourceWithRawResponse:
|
658
|
-
return AsyncFeaturesResourceWithRawResponse(self._assets.features)
|
659
|
-
|
660
|
-
|
661
|
-
class AssetsResourceWithStreamingResponse:
|
662
|
-
def __init__(self, assets: AssetsResource) -> None:
|
663
|
-
self._assets = assets
|
664
|
-
|
665
|
-
self.create = to_streamed_response_wrapper(
|
666
|
-
assets.create,
|
667
|
-
)
|
668
|
-
self.retrieve = to_streamed_response_wrapper(
|
669
|
-
assets.retrieve,
|
670
|
-
)
|
671
|
-
self.update = to_streamed_response_wrapper(
|
672
|
-
assets.update,
|
673
|
-
)
|
674
|
-
self.delete = to_streamed_response_wrapper(
|
675
|
-
assets.delete,
|
676
|
-
)
|
677
|
-
self.search = to_streamed_response_wrapper(
|
678
|
-
assets.search,
|
679
|
-
)
|
680
|
-
|
681
|
-
@cached_property
|
682
|
-
def features(self) -> FeaturesResourceWithStreamingResponse:
|
683
|
-
return FeaturesResourceWithStreamingResponse(self._assets.features)
|
684
|
-
|
685
|
-
|
686
|
-
class AsyncAssetsResourceWithStreamingResponse:
|
687
|
-
def __init__(self, assets: AsyncAssetsResource) -> None:
|
688
|
-
self._assets = assets
|
689
|
-
|
690
|
-
self.create = async_to_streamed_response_wrapper(
|
691
|
-
assets.create,
|
692
|
-
)
|
693
|
-
self.retrieve = async_to_streamed_response_wrapper(
|
694
|
-
assets.retrieve,
|
695
|
-
)
|
696
|
-
self.update = async_to_streamed_response_wrapper(
|
697
|
-
assets.update,
|
698
|
-
)
|
699
|
-
self.delete = async_to_streamed_response_wrapper(
|
700
|
-
assets.delete,
|
701
|
-
)
|
702
|
-
self.search = async_to_streamed_response_wrapper(
|
703
|
-
assets.search,
|
704
|
-
)
|
705
|
-
|
706
|
-
@cached_property
|
707
|
-
def features(self) -> AsyncFeaturesResourceWithStreamingResponse:
|
708
|
-
return AsyncFeaturesResourceWithStreamingResponse(self._assets.features)
|