mixpeek 0.15.1__py3-none-any.whl → 0.16.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mixpeek/_hooks/__init__.py +0 -1
- mixpeek/_hooks/sdkhooks.py +0 -2
- mixpeek/_version.py +1 -1
- mixpeek/assets.py +74 -56
- mixpeek/collections.py +46 -40
- mixpeek/{featureextractors.py → feature_extractors.py} +6 -6
- mixpeek/feature_search.py +330 -0
- mixpeek/features.py +44 -356
- mixpeek/health.py +3 -15
- mixpeek/{ingest.py → ingest_assets.py} +43 -25
- mixpeek/models/__init__.py +291 -160
- mixpeek/models/assignmentconfig.py +25 -0
- mixpeek/models/availablemodels.py +2 -1
- mixpeek/models/{availableindexesresponse.py → availablemodelsresponse.py} +8 -4
- mixpeek/models/classificationmatch.py +72 -0
- mixpeek/models/classificationwithfeature.py +73 -0
- mixpeek/models/classify_features_v1_entities_taxonomies_taxonomy_classify_postop.py +73 -0
- mixpeek/models/{create_api_key_organizations_users_user_email_api_keys_postop.py → create_api_key_v1_organizations_users_user_email_api_keys_postop.py} +2 -2
- mixpeek/models/{create_collection_collections_postop.py → create_collection_v1_collections_postop.py} +2 -2
- mixpeek/models/create_taxonomy_v1_entities_taxonomies_postop.py +59 -0
- mixpeek/models/createnamespacerequest.py +2 -2
- mixpeek/models/{delete_api_key_organizations_users_user_email_api_keys_key_name_deleteop.py → delete_api_key_v1_organizations_users_user_email_api_keys_key_name_deleteop.py} +2 -2
- mixpeek/models/{delete_asset_assets_asset_id_deleteop.py → delete_asset_v1_assets_asset_id_deleteop.py} +2 -2
- mixpeek/models/delete_classifications_v1_entities_taxonomies_taxonomy_classifications_classification_id_deleteop.py +70 -0
- mixpeek/models/{delete_collection_collections_collection_deleteop.py → delete_collection_v1_collections_collection_deleteop.py} +2 -2
- mixpeek/models/{delete_feature_features_feature_id_deleteop.py → delete_feature_v1_features_feature_id_deleteop.py} +2 -2
- mixpeek/models/{delete_namespace_namespaces_namespace_deleteop.py → delete_namespace_v1_namespaces_namespace_deleteop.py} +2 -2
- mixpeek/models/delete_taxonomy_v1_entities_taxonomies_taxonomy_deleteop.py +59 -0
- mixpeek/models/{delete_user_organizations_users_user_email_deleteop.py → delete_user_v1_organizations_users_user_email_deleteop.py} +2 -2
- mixpeek/models/discoverrequest.py +74 -0
- mixpeek/models/embeddingconfig.py +33 -0
- mixpeek/models/embeddingrequest.py +40 -7
- mixpeek/models/featureoptions.py +25 -0
- mixpeek/models/{full_asset_update_assets_asset_id_putop.py → full_asset_update_v1_assets_asset_id_putop.py} +2 -2
- mixpeek/models/{full_feature_update_features_feature_id_putop.py → full_feature_update_v1_features_feature_id_putop.py} +2 -2
- mixpeek/models/genericsuccessresponse.py +17 -0
- mixpeek/models/{get_asset_assets_asset_id_getop.py → get_asset_v1_assets_asset_id_getop.py} +2 -2
- mixpeek/models/{get_asset_with_features_assets_asset_id_features_getop.py → get_asset_with_features_v1_assets_asset_id_features_getop.py} +2 -2
- mixpeek/models/{get_collection_collections_collection_getop.py → get_collection_v1_collections_collection_getop.py} +2 -2
- mixpeek/models/{get_feature_features_feature_id_getop.py → get_feature_v1_features_feature_id_getop.py} +2 -2
- mixpeek/models/{get_namespace_namespaces_namespace_getop.py → get_namespace_v1_namespaces_namespace_getop.py} +2 -2
- mixpeek/models/{get_task_tasks_task_id_getop.py → get_task_v1_tasks_task_id_getop.py} +2 -2
- mixpeek/models/get_taxonomy_node_v1_entities_taxonomies_nodes_node_getop.py +59 -0
- mixpeek/models/get_taxonomy_v1_entities_taxonomies_taxonomy_getop.py +59 -0
- mixpeek/models/{get_user_organizations_users_user_email_getop.py → get_user_v1_organizations_users_user_email_getop.py} +2 -2
- mixpeek/models/{ingest_image_url_ingest_images_url_postop.py → ingest_image_url_v1_ingest_images_url_postop.py} +2 -2
- mixpeek/models/{ingest_text_ingest_text_postop.py → ingest_text_v1_ingest_text_postop.py} +2 -2
- mixpeek/models/{ingest_video_url_ingest_videos_url_postop.py → ingest_video_url_v1_ingest_videos_url_postop.py} +2 -2
- mixpeek/models/{kill_task_tasks_task_id_deleteop.py → kill_task_v1_tasks_task_id_deleteop.py} +2 -2
- mixpeek/models/{list_assets_assets_postop.py → list_assets_v1_assets_postop.py} +2 -2
- mixpeek/models/list_classifications_v1_entities_taxonomies_taxonomy_classifications_postop.py +92 -0
- mixpeek/models/{list_collections_collections_getop.py → list_collections_v1_collections_getop.py} +2 -2
- mixpeek/models/{list_features_features_postop.py → list_features_v1_features_postop.py} +2 -2
- mixpeek/models/list_taxonomies_v1_entities_taxonomies_getop.py +67 -0
- mixpeek/models/listclassificationsrequest.py +69 -0
- mixpeek/models/listclassificationsresponse.py +31 -0
- mixpeek/models/listtaxonomiesresponse.py +24 -0
- mixpeek/models/modeldetails.py +9 -5
- mixpeek/models/nodeoptions.py +16 -0
- mixpeek/models/nodeupdate.py +51 -0
- mixpeek/models/{partial_asset_update_assets_asset_id_patchop.py → partial_asset_update_v1_assets_asset_id_patchop.py} +2 -2
- mixpeek/models/permission.py +12 -0
- mixpeek/models/{search_assets_assets_search_postop.py → search_assets_v1_assets_search_postop.py} +2 -2
- mixpeek/models/{search_features_features_search_postop.py → search_features_v1_features_search_postop.py} +4 -4
- mixpeek/models/taxonomycreate.py +20 -0
- mixpeek/models/taxonomymodel.py +27 -0
- mixpeek/models/taxonomynode.py +101 -0
- mixpeek/models/taxonomynodecreate.py +63 -0
- mixpeek/models/taxonomyupdate.py +55 -0
- mixpeek/models/{update_api_key_organizations_users_user_email_api_keys_key_name_patchop.py → update_api_key_v1_organizations_users_user_email_api_keys_key_name_patchop.py} +2 -2
- mixpeek/models/{update_collection_collections_collection_putop.py → update_collection_v1_collections_collection_putop.py} +2 -2
- mixpeek/models/{update_namespace_namespaces_namespace_putop.py → update_namespace_v1_namespaces_namespace_putop.py} +2 -2
- mixpeek/models/update_node_v1_entities_taxonomies_nodes_node_patchop.py +71 -0
- mixpeek/models/update_taxonomy_v1_entities_taxonomies_taxonomy_patchop.py +71 -0
- mixpeek/models/vectormodel.py +1 -0
- mixpeek/namespaces.py +56 -56
- mixpeek/organizations.py +82 -58
- mixpeek/sdk.py +12 -6
- mixpeek/sdkconfiguration.py +4 -4
- mixpeek/tasks.py +22 -16
- mixpeek/taxonomy_entities.py +2214 -0
- {mixpeek-0.15.1.dist-info → mixpeek-0.16.0.dist-info}/METADATA +64 -49
- {mixpeek-0.15.1.dist-info → mixpeek-0.16.0.dist-info}/RECORD +84 -55
- {mixpeek-0.15.1.dist-info → mixpeek-0.16.0.dist-info}/WHEEL +1 -1
mixpeek/tasks.py
CHANGED
@@ -9,7 +9,7 @@ from typing import Any, Mapping, Optional
|
|
9
9
|
|
10
10
|
|
11
11
|
class Tasks(BaseSDK):
|
12
|
-
def
|
12
|
+
def kill_task_v1_tasks_task_id_delete(
|
13
13
|
self,
|
14
14
|
*,
|
15
15
|
task_id: str,
|
@@ -21,6 +21,9 @@ class Tasks(BaseSDK):
|
|
21
21
|
) -> Any:
|
22
22
|
r"""Kill Task
|
23
23
|
|
24
|
+
**Requirements:**
|
25
|
+
- Required permissions: write
|
26
|
+
|
24
27
|
:param task_id:
|
25
28
|
:param x_namespace: 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.
|
26
29
|
:param retries: Override the default retry configuration for this method
|
@@ -36,14 +39,14 @@ class Tasks(BaseSDK):
|
|
36
39
|
if server_url is not None:
|
37
40
|
base_url = server_url
|
38
41
|
|
39
|
-
request = models.
|
42
|
+
request = models.KillTaskV1TasksTaskIDDeleteRequest(
|
40
43
|
task_id=task_id,
|
41
44
|
x_namespace=x_namespace,
|
42
45
|
)
|
43
46
|
|
44
47
|
req = self._build_request(
|
45
48
|
method="DELETE",
|
46
|
-
path="/tasks/{task_id}",
|
49
|
+
path="/v1/tasks/{task_id}",
|
47
50
|
base_url=base_url,
|
48
51
|
url_variables=url_variables,
|
49
52
|
request=request,
|
@@ -67,7 +70,7 @@ class Tasks(BaseSDK):
|
|
67
70
|
|
68
71
|
http_res = self.do_request(
|
69
72
|
hook_ctx=HookContext(
|
70
|
-
operation_id="
|
73
|
+
operation_id="kill_task_v1_tasks__task_id__delete",
|
71
74
|
oauth2_scopes=[],
|
72
75
|
security_source=get_security_from_env(
|
73
76
|
self.sdk_configuration.security, models.Security
|
@@ -104,7 +107,7 @@ class Tasks(BaseSDK):
|
|
104
107
|
http_res,
|
105
108
|
)
|
106
109
|
|
107
|
-
async def
|
110
|
+
async def kill_task_v1_tasks_task_id_delete_async(
|
108
111
|
self,
|
109
112
|
*,
|
110
113
|
task_id: str,
|
@@ -116,6 +119,9 @@ class Tasks(BaseSDK):
|
|
116
119
|
) -> Any:
|
117
120
|
r"""Kill Task
|
118
121
|
|
122
|
+
**Requirements:**
|
123
|
+
- Required permissions: write
|
124
|
+
|
119
125
|
:param task_id:
|
120
126
|
:param x_namespace: 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.
|
121
127
|
:param retries: Override the default retry configuration for this method
|
@@ -131,14 +137,14 @@ class Tasks(BaseSDK):
|
|
131
137
|
if server_url is not None:
|
132
138
|
base_url = server_url
|
133
139
|
|
134
|
-
request = models.
|
140
|
+
request = models.KillTaskV1TasksTaskIDDeleteRequest(
|
135
141
|
task_id=task_id,
|
136
142
|
x_namespace=x_namespace,
|
137
143
|
)
|
138
144
|
|
139
145
|
req = self._build_request_async(
|
140
146
|
method="DELETE",
|
141
|
-
path="/tasks/{task_id}",
|
147
|
+
path="/v1/tasks/{task_id}",
|
142
148
|
base_url=base_url,
|
143
149
|
url_variables=url_variables,
|
144
150
|
request=request,
|
@@ -162,7 +168,7 @@ class Tasks(BaseSDK):
|
|
162
168
|
|
163
169
|
http_res = await self.do_request_async(
|
164
170
|
hook_ctx=HookContext(
|
165
|
-
operation_id="
|
171
|
+
operation_id="kill_task_v1_tasks__task_id__delete",
|
166
172
|
oauth2_scopes=[],
|
167
173
|
security_source=get_security_from_env(
|
168
174
|
self.sdk_configuration.security, models.Security
|
@@ -199,7 +205,7 @@ class Tasks(BaseSDK):
|
|
199
205
|
http_res,
|
200
206
|
)
|
201
207
|
|
202
|
-
def
|
208
|
+
def get_task_v1_tasks_task_id_get(
|
203
209
|
self,
|
204
210
|
*,
|
205
211
|
task_id: str,
|
@@ -231,14 +237,14 @@ class Tasks(BaseSDK):
|
|
231
237
|
if server_url is not None:
|
232
238
|
base_url = server_url
|
233
239
|
|
234
|
-
request = models.
|
240
|
+
request = models.GetTaskV1TasksTaskIDGetRequest(
|
235
241
|
task_id=task_id,
|
236
242
|
x_namespace=x_namespace,
|
237
243
|
)
|
238
244
|
|
239
245
|
req = self._build_request(
|
240
246
|
method="GET",
|
241
|
-
path="/tasks/{task_id}",
|
247
|
+
path="/v1/tasks/{task_id}",
|
242
248
|
base_url=base_url,
|
243
249
|
url_variables=url_variables,
|
244
250
|
request=request,
|
@@ -262,7 +268,7 @@ class Tasks(BaseSDK):
|
|
262
268
|
|
263
269
|
http_res = self.do_request(
|
264
270
|
hook_ctx=HookContext(
|
265
|
-
operation_id="
|
271
|
+
operation_id="get_task_v1_tasks__task_id__get",
|
266
272
|
oauth2_scopes=[],
|
267
273
|
security_source=get_security_from_env(
|
268
274
|
self.sdk_configuration.security, models.Security
|
@@ -299,7 +305,7 @@ class Tasks(BaseSDK):
|
|
299
305
|
http_res,
|
300
306
|
)
|
301
307
|
|
302
|
-
async def
|
308
|
+
async def get_task_v1_tasks_task_id_get_async(
|
303
309
|
self,
|
304
310
|
*,
|
305
311
|
task_id: str,
|
@@ -331,14 +337,14 @@ class Tasks(BaseSDK):
|
|
331
337
|
if server_url is not None:
|
332
338
|
base_url = server_url
|
333
339
|
|
334
|
-
request = models.
|
340
|
+
request = models.GetTaskV1TasksTaskIDGetRequest(
|
335
341
|
task_id=task_id,
|
336
342
|
x_namespace=x_namespace,
|
337
343
|
)
|
338
344
|
|
339
345
|
req = self._build_request_async(
|
340
346
|
method="GET",
|
341
|
-
path="/tasks/{task_id}",
|
347
|
+
path="/v1/tasks/{task_id}",
|
342
348
|
base_url=base_url,
|
343
349
|
url_variables=url_variables,
|
344
350
|
request=request,
|
@@ -362,7 +368,7 @@ class Tasks(BaseSDK):
|
|
362
368
|
|
363
369
|
http_res = await self.do_request_async(
|
364
370
|
hook_ctx=HookContext(
|
365
|
-
operation_id="
|
371
|
+
operation_id="get_task_v1_tasks__task_id__get",
|
366
372
|
oauth2_scopes=[],
|
367
373
|
security_source=get_security_from_env(
|
368
374
|
self.sdk_configuration.security, models.Security
|