mixpeek 0.13.3__py3-none-any.whl → 0.14.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/_version.py +1 -1
- mixpeek/assets.py +65 -22
- mixpeek/basesdk.py +1 -1
- mixpeek/collections.py +49 -18
- mixpeek/featureextractors.py +11 -4
- mixpeek/features.py +45 -14
- mixpeek/health.py +11 -4
- mixpeek/ingest.py +31 -12
- mixpeek/interactions.py +9 -2
- mixpeek/models/__init__.py +3 -0
- mixpeek/models/security.py +25 -0
- mixpeek/namespaces.py +61 -24
- mixpeek/organizations.py +79 -30
- mixpeek/sdk.py +11 -2
- mixpeek/sdkconfiguration.py +6 -4
- mixpeek/searchinteractions.py +31 -12
- mixpeek/tasks.py +21 -8
- mixpeek/utils/__init__.py +3 -1
- mixpeek/utils/security.py +18 -0
- {mixpeek-0.13.3.dist-info → mixpeek-0.14.0.dist-info}/METADATA +50 -5
- {mixpeek-0.13.3.dist-info → mixpeek-0.14.0.dist-info}/RECORD +22 -21
- {mixpeek-0.13.3.dist-info → mixpeek-0.14.0.dist-info}/WHEEL +0 -0
mixpeek/_version.py
CHANGED
mixpeek/assets.py
CHANGED
@@ -4,6 +4,7 @@ from .basesdk import BaseSDK
|
|
4
4
|
from mixpeek import models, utils
|
5
5
|
from mixpeek._hooks import HookContext
|
6
6
|
from mixpeek.types import OptionalNullable, UNSET
|
7
|
+
from mixpeek.utils import get_security_from_env
|
7
8
|
from typing import Any, List, Mapping, Optional, Union
|
8
9
|
|
9
10
|
|
@@ -57,6 +58,7 @@ class Assets(BaseSDK):
|
|
57
58
|
user_agent_header="user-agent",
|
58
59
|
accept_header_value="application/json",
|
59
60
|
http_headers=http_headers,
|
61
|
+
security=self.sdk_configuration.security,
|
60
62
|
timeout_ms=timeout_ms,
|
61
63
|
)
|
62
64
|
|
@@ -72,7 +74,9 @@ class Assets(BaseSDK):
|
|
72
74
|
hook_ctx=HookContext(
|
73
75
|
operation_id="get_asset_assets__asset_id__get",
|
74
76
|
oauth2_scopes=[],
|
75
|
-
security_source=
|
77
|
+
security_source=get_security_from_env(
|
78
|
+
self.sdk_configuration.security, models.Security
|
79
|
+
),
|
76
80
|
),
|
77
81
|
request=req,
|
78
82
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -154,6 +158,7 @@ class Assets(BaseSDK):
|
|
154
158
|
user_agent_header="user-agent",
|
155
159
|
accept_header_value="application/json",
|
156
160
|
http_headers=http_headers,
|
161
|
+
security=self.sdk_configuration.security,
|
157
162
|
timeout_ms=timeout_ms,
|
158
163
|
)
|
159
164
|
|
@@ -169,7 +174,9 @@ class Assets(BaseSDK):
|
|
169
174
|
hook_ctx=HookContext(
|
170
175
|
operation_id="get_asset_assets__asset_id__get",
|
171
176
|
oauth2_scopes=[],
|
172
|
-
security_source=
|
177
|
+
security_source=get_security_from_env(
|
178
|
+
self.sdk_configuration.security, models.Security
|
179
|
+
),
|
173
180
|
),
|
174
181
|
request=req,
|
175
182
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -242,10 +249,11 @@ class Assets(BaseSDK):
|
|
242
249
|
request=request,
|
243
250
|
request_body_required=False,
|
244
251
|
request_has_path_params=True,
|
245
|
-
request_has_query_params=
|
252
|
+
request_has_query_params=True,
|
246
253
|
user_agent_header="user-agent",
|
247
254
|
accept_header_value="application/json",
|
248
255
|
http_headers=http_headers,
|
256
|
+
security=self.sdk_configuration.security,
|
249
257
|
timeout_ms=timeout_ms,
|
250
258
|
)
|
251
259
|
|
@@ -261,7 +269,9 @@ class Assets(BaseSDK):
|
|
261
269
|
hook_ctx=HookContext(
|
262
270
|
operation_id="delete_asset_assets__asset_id__delete",
|
263
271
|
oauth2_scopes=[],
|
264
|
-
security_source=
|
272
|
+
security_source=get_security_from_env(
|
273
|
+
self.sdk_configuration.security, models.Security
|
274
|
+
),
|
265
275
|
),
|
266
276
|
request=req,
|
267
277
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -334,10 +344,11 @@ class Assets(BaseSDK):
|
|
334
344
|
request=request,
|
335
345
|
request_body_required=False,
|
336
346
|
request_has_path_params=True,
|
337
|
-
request_has_query_params=
|
347
|
+
request_has_query_params=True,
|
338
348
|
user_agent_header="user-agent",
|
339
349
|
accept_header_value="application/json",
|
340
350
|
http_headers=http_headers,
|
351
|
+
security=self.sdk_configuration.security,
|
341
352
|
timeout_ms=timeout_ms,
|
342
353
|
)
|
343
354
|
|
@@ -353,7 +364,9 @@ class Assets(BaseSDK):
|
|
353
364
|
hook_ctx=HookContext(
|
354
365
|
operation_id="delete_asset_assets__asset_id__delete",
|
355
366
|
oauth2_scopes=[],
|
356
|
-
security_source=
|
367
|
+
security_source=get_security_from_env(
|
368
|
+
self.sdk_configuration.security, models.Security
|
369
|
+
),
|
357
370
|
),
|
358
371
|
request=req,
|
359
372
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -441,10 +454,11 @@ class Assets(BaseSDK):
|
|
441
454
|
request=request,
|
442
455
|
request_body_required=True,
|
443
456
|
request_has_path_params=True,
|
444
|
-
request_has_query_params=
|
457
|
+
request_has_query_params=True,
|
445
458
|
user_agent_header="user-agent",
|
446
459
|
accept_header_value="application/json",
|
447
460
|
http_headers=http_headers,
|
461
|
+
security=self.sdk_configuration.security,
|
448
462
|
get_serialized_body=lambda: utils.serialize_request_body(
|
449
463
|
request.update_asset_request,
|
450
464
|
False,
|
@@ -467,7 +481,9 @@ class Assets(BaseSDK):
|
|
467
481
|
hook_ctx=HookContext(
|
468
482
|
operation_id="full_asset_update_assets__asset_id__put",
|
469
483
|
oauth2_scopes=[],
|
470
|
-
security_source=
|
484
|
+
security_source=get_security_from_env(
|
485
|
+
self.sdk_configuration.security, models.Security
|
486
|
+
),
|
471
487
|
),
|
472
488
|
request=req,
|
473
489
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -555,10 +571,11 @@ class Assets(BaseSDK):
|
|
555
571
|
request=request,
|
556
572
|
request_body_required=True,
|
557
573
|
request_has_path_params=True,
|
558
|
-
request_has_query_params=
|
574
|
+
request_has_query_params=True,
|
559
575
|
user_agent_header="user-agent",
|
560
576
|
accept_header_value="application/json",
|
561
577
|
http_headers=http_headers,
|
578
|
+
security=self.sdk_configuration.security,
|
562
579
|
get_serialized_body=lambda: utils.serialize_request_body(
|
563
580
|
request.update_asset_request,
|
564
581
|
False,
|
@@ -581,7 +598,9 @@ class Assets(BaseSDK):
|
|
581
598
|
hook_ctx=HookContext(
|
582
599
|
operation_id="full_asset_update_assets__asset_id__put",
|
583
600
|
oauth2_scopes=[],
|
584
|
-
security_source=
|
601
|
+
security_source=get_security_from_env(
|
602
|
+
self.sdk_configuration.security, models.Security
|
603
|
+
),
|
585
604
|
),
|
586
605
|
request=req,
|
587
606
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -669,10 +688,11 @@ class Assets(BaseSDK):
|
|
669
688
|
request=request,
|
670
689
|
request_body_required=True,
|
671
690
|
request_has_path_params=True,
|
672
|
-
request_has_query_params=
|
691
|
+
request_has_query_params=True,
|
673
692
|
user_agent_header="user-agent",
|
674
693
|
accept_header_value="application/json",
|
675
694
|
http_headers=http_headers,
|
695
|
+
security=self.sdk_configuration.security,
|
676
696
|
get_serialized_body=lambda: utils.serialize_request_body(
|
677
697
|
request.update_asset_request,
|
678
698
|
False,
|
@@ -695,7 +715,9 @@ class Assets(BaseSDK):
|
|
695
715
|
hook_ctx=HookContext(
|
696
716
|
operation_id="partial_asset_update_assets__asset_id__patch",
|
697
717
|
oauth2_scopes=[],
|
698
|
-
security_source=
|
718
|
+
security_source=get_security_from_env(
|
719
|
+
self.sdk_configuration.security, models.Security
|
720
|
+
),
|
699
721
|
),
|
700
722
|
request=req,
|
701
723
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -783,10 +805,11 @@ class Assets(BaseSDK):
|
|
783
805
|
request=request,
|
784
806
|
request_body_required=True,
|
785
807
|
request_has_path_params=True,
|
786
|
-
request_has_query_params=
|
808
|
+
request_has_query_params=True,
|
787
809
|
user_agent_header="user-agent",
|
788
810
|
accept_header_value="application/json",
|
789
811
|
http_headers=http_headers,
|
812
|
+
security=self.sdk_configuration.security,
|
790
813
|
get_serialized_body=lambda: utils.serialize_request_body(
|
791
814
|
request.update_asset_request,
|
792
815
|
False,
|
@@ -809,7 +832,9 @@ class Assets(BaseSDK):
|
|
809
832
|
hook_ctx=HookContext(
|
810
833
|
operation_id="partial_asset_update_assets__asset_id__patch",
|
811
834
|
oauth2_scopes=[],
|
812
|
-
security_source=
|
835
|
+
security_source=get_security_from_env(
|
836
|
+
self.sdk_configuration.security, models.Security
|
837
|
+
),
|
813
838
|
),
|
814
839
|
request=req,
|
815
840
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -891,6 +916,7 @@ class Assets(BaseSDK):
|
|
891
916
|
user_agent_header="user-agent",
|
892
917
|
accept_header_value="application/json",
|
893
918
|
http_headers=http_headers,
|
919
|
+
security=self.sdk_configuration.security,
|
894
920
|
timeout_ms=timeout_ms,
|
895
921
|
)
|
896
922
|
|
@@ -906,7 +932,9 @@ class Assets(BaseSDK):
|
|
906
932
|
hook_ctx=HookContext(
|
907
933
|
operation_id="get_asset_with_features_assets__asset_id__features_get",
|
908
934
|
oauth2_scopes=[],
|
909
|
-
security_source=
|
935
|
+
security_source=get_security_from_env(
|
936
|
+
self.sdk_configuration.security, models.Security
|
937
|
+
),
|
910
938
|
),
|
911
939
|
request=req,
|
912
940
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -988,6 +1016,7 @@ class Assets(BaseSDK):
|
|
988
1016
|
user_agent_header="user-agent",
|
989
1017
|
accept_header_value="application/json",
|
990
1018
|
http_headers=http_headers,
|
1019
|
+
security=self.sdk_configuration.security,
|
991
1020
|
timeout_ms=timeout_ms,
|
992
1021
|
)
|
993
1022
|
|
@@ -1003,7 +1032,9 @@ class Assets(BaseSDK):
|
|
1003
1032
|
hook_ctx=HookContext(
|
1004
1033
|
operation_id="get_asset_with_features_assets__asset_id__features_get",
|
1005
1034
|
oauth2_scopes=[],
|
1006
|
-
security_source=
|
1035
|
+
security_source=get_security_from_env(
|
1036
|
+
self.sdk_configuration.security, models.Security
|
1037
|
+
),
|
1007
1038
|
),
|
1008
1039
|
request=req,
|
1009
1040
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -1115,6 +1146,7 @@ class Assets(BaseSDK):
|
|
1115
1146
|
user_agent_header="user-agent",
|
1116
1147
|
accept_header_value="application/json",
|
1117
1148
|
http_headers=http_headers,
|
1149
|
+
security=self.sdk_configuration.security,
|
1118
1150
|
get_serialized_body=lambda: utils.serialize_request_body(
|
1119
1151
|
request.list_assets_request,
|
1120
1152
|
False,
|
@@ -1137,7 +1169,9 @@ class Assets(BaseSDK):
|
|
1137
1169
|
hook_ctx=HookContext(
|
1138
1170
|
operation_id="list_assets_assets_post",
|
1139
1171
|
oauth2_scopes=[],
|
1140
|
-
security_source=
|
1172
|
+
security_source=get_security_from_env(
|
1173
|
+
self.sdk_configuration.security, models.Security
|
1174
|
+
),
|
1141
1175
|
),
|
1142
1176
|
request=req,
|
1143
1177
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -1249,6 +1283,7 @@ class Assets(BaseSDK):
|
|
1249
1283
|
user_agent_header="user-agent",
|
1250
1284
|
accept_header_value="application/json",
|
1251
1285
|
http_headers=http_headers,
|
1286
|
+
security=self.sdk_configuration.security,
|
1252
1287
|
get_serialized_body=lambda: utils.serialize_request_body(
|
1253
1288
|
request.list_assets_request,
|
1254
1289
|
False,
|
@@ -1271,7 +1306,9 @@ class Assets(BaseSDK):
|
|
1271
1306
|
hook_ctx=HookContext(
|
1272
1307
|
operation_id="list_assets_assets_post",
|
1273
1308
|
oauth2_scopes=[],
|
1274
|
-
security_source=
|
1309
|
+
security_source=get_security_from_env(
|
1310
|
+
self.sdk_configuration.security, models.Security
|
1311
|
+
),
|
1275
1312
|
),
|
1276
1313
|
request=req,
|
1277
1314
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -1373,10 +1410,11 @@ class Assets(BaseSDK):
|
|
1373
1410
|
request=request,
|
1374
1411
|
request_body_required=True,
|
1375
1412
|
request_has_path_params=False,
|
1376
|
-
request_has_query_params=
|
1413
|
+
request_has_query_params=True,
|
1377
1414
|
user_agent_header="user-agent",
|
1378
1415
|
accept_header_value="application/json",
|
1379
1416
|
http_headers=http_headers,
|
1417
|
+
security=self.sdk_configuration.security,
|
1380
1418
|
get_serialized_body=lambda: utils.serialize_request_body(
|
1381
1419
|
request.search_assets_request,
|
1382
1420
|
False,
|
@@ -1399,7 +1437,9 @@ class Assets(BaseSDK):
|
|
1399
1437
|
hook_ctx=HookContext(
|
1400
1438
|
operation_id="search_assets_assets_search_post",
|
1401
1439
|
oauth2_scopes=[],
|
1402
|
-
security_source=
|
1440
|
+
security_source=get_security_from_env(
|
1441
|
+
self.sdk_configuration.security, models.Security
|
1442
|
+
),
|
1403
1443
|
),
|
1404
1444
|
request=req,
|
1405
1445
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -1501,10 +1541,11 @@ class Assets(BaseSDK):
|
|
1501
1541
|
request=request,
|
1502
1542
|
request_body_required=True,
|
1503
1543
|
request_has_path_params=False,
|
1504
|
-
request_has_query_params=
|
1544
|
+
request_has_query_params=True,
|
1505
1545
|
user_agent_header="user-agent",
|
1506
1546
|
accept_header_value="application/json",
|
1507
1547
|
http_headers=http_headers,
|
1548
|
+
security=self.sdk_configuration.security,
|
1508
1549
|
get_serialized_body=lambda: utils.serialize_request_body(
|
1509
1550
|
request.search_assets_request,
|
1510
1551
|
False,
|
@@ -1527,7 +1568,9 @@ class Assets(BaseSDK):
|
|
1527
1568
|
hook_ctx=HookContext(
|
1528
1569
|
operation_id="search_assets_assets_search_post",
|
1529
1570
|
oauth2_scopes=[],
|
1530
|
-
security_source=
|
1571
|
+
security_source=get_security_from_env(
|
1572
|
+
self.sdk_configuration.security, models.Security
|
1573
|
+
),
|
1531
1574
|
),
|
1532
1575
|
request=req,
|
1533
1576
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
mixpeek/basesdk.py
CHANGED
@@ -161,7 +161,7 @@ class BaseSDK:
|
|
161
161
|
if security is not None:
|
162
162
|
if callable(security):
|
163
163
|
security = security()
|
164
|
-
|
164
|
+
security = utils.get_security_from_env(security, models.Security)
|
165
165
|
if security is not None:
|
166
166
|
security_headers, security_query_params = utils.get_security(security)
|
167
167
|
headers = {**headers, **security_headers}
|
mixpeek/collections.py
CHANGED
@@ -4,6 +4,7 @@ from .basesdk import BaseSDK
|
|
4
4
|
from mixpeek import models, utils
|
5
5
|
from mixpeek._hooks import HookContext
|
6
6
|
from mixpeek.types import OptionalNullable, UNSET
|
7
|
+
from mixpeek.utils import get_security_from_env
|
7
8
|
from typing import Any, Mapping, Optional, Union
|
8
9
|
|
9
10
|
|
@@ -55,6 +56,7 @@ class Collections(BaseSDK):
|
|
55
56
|
user_agent_header="user-agent",
|
56
57
|
accept_header_value="application/json",
|
57
58
|
http_headers=http_headers,
|
59
|
+
security=self.sdk_configuration.security,
|
58
60
|
timeout_ms=timeout_ms,
|
59
61
|
)
|
60
62
|
|
@@ -70,7 +72,9 @@ class Collections(BaseSDK):
|
|
70
72
|
hook_ctx=HookContext(
|
71
73
|
operation_id="list_collections_collections_get",
|
72
74
|
oauth2_scopes=[],
|
73
|
-
security_source=
|
75
|
+
security_source=get_security_from_env(
|
76
|
+
self.sdk_configuration.security, models.Security
|
77
|
+
),
|
74
78
|
),
|
75
79
|
request=req,
|
76
80
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -150,6 +154,7 @@ class Collections(BaseSDK):
|
|
150
154
|
user_agent_header="user-agent",
|
151
155
|
accept_header_value="application/json",
|
152
156
|
http_headers=http_headers,
|
157
|
+
security=self.sdk_configuration.security,
|
153
158
|
timeout_ms=timeout_ms,
|
154
159
|
)
|
155
160
|
|
@@ -165,7 +170,9 @@ class Collections(BaseSDK):
|
|
165
170
|
hook_ctx=HookContext(
|
166
171
|
operation_id="list_collections_collections_get",
|
167
172
|
oauth2_scopes=[],
|
168
|
-
security_source=
|
173
|
+
security_source=get_security_from_env(
|
174
|
+
self.sdk_configuration.security, models.Security
|
175
|
+
),
|
169
176
|
),
|
170
177
|
request=req,
|
171
178
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -250,10 +257,11 @@ class Collections(BaseSDK):
|
|
250
257
|
request=request,
|
251
258
|
request_body_required=True,
|
252
259
|
request_has_path_params=False,
|
253
|
-
request_has_query_params=
|
260
|
+
request_has_query_params=True,
|
254
261
|
user_agent_header="user-agent",
|
255
262
|
accept_header_value="application/json",
|
256
263
|
http_headers=http_headers,
|
264
|
+
security=self.sdk_configuration.security,
|
257
265
|
get_serialized_body=lambda: utils.serialize_request_body(
|
258
266
|
request.create_collection_request,
|
259
267
|
False,
|
@@ -276,7 +284,9 @@ class Collections(BaseSDK):
|
|
276
284
|
hook_ctx=HookContext(
|
277
285
|
operation_id="create_collection_collections_post",
|
278
286
|
oauth2_scopes=[],
|
279
|
-
security_source=
|
287
|
+
security_source=get_security_from_env(
|
288
|
+
self.sdk_configuration.security, models.Security
|
289
|
+
),
|
280
290
|
),
|
281
291
|
request=req,
|
282
292
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -361,10 +371,11 @@ class Collections(BaseSDK):
|
|
361
371
|
request=request,
|
362
372
|
request_body_required=True,
|
363
373
|
request_has_path_params=False,
|
364
|
-
request_has_query_params=
|
374
|
+
request_has_query_params=True,
|
365
375
|
user_agent_header="user-agent",
|
366
376
|
accept_header_value="application/json",
|
367
377
|
http_headers=http_headers,
|
378
|
+
security=self.sdk_configuration.security,
|
368
379
|
get_serialized_body=lambda: utils.serialize_request_body(
|
369
380
|
request.create_collection_request,
|
370
381
|
False,
|
@@ -387,7 +398,9 @@ class Collections(BaseSDK):
|
|
387
398
|
hook_ctx=HookContext(
|
388
399
|
operation_id="create_collection_collections_post",
|
389
400
|
oauth2_scopes=[],
|
390
|
-
security_source=
|
401
|
+
security_source=get_security_from_env(
|
402
|
+
self.sdk_configuration.security, models.Security
|
403
|
+
),
|
391
404
|
),
|
392
405
|
request=req,
|
393
406
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -462,10 +475,11 @@ class Collections(BaseSDK):
|
|
462
475
|
request=request,
|
463
476
|
request_body_required=False,
|
464
477
|
request_has_path_params=True,
|
465
|
-
request_has_query_params=
|
478
|
+
request_has_query_params=True,
|
466
479
|
user_agent_header="user-agent",
|
467
480
|
accept_header_value="application/json",
|
468
481
|
http_headers=http_headers,
|
482
|
+
security=self.sdk_configuration.security,
|
469
483
|
timeout_ms=timeout_ms,
|
470
484
|
)
|
471
485
|
|
@@ -481,7 +495,9 @@ class Collections(BaseSDK):
|
|
481
495
|
hook_ctx=HookContext(
|
482
496
|
operation_id="delete_collection_collections__collection__delete",
|
483
497
|
oauth2_scopes=[],
|
484
|
-
security_source=
|
498
|
+
security_source=get_security_from_env(
|
499
|
+
self.sdk_configuration.security, models.Security
|
500
|
+
),
|
485
501
|
),
|
486
502
|
request=req,
|
487
503
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -556,10 +572,11 @@ class Collections(BaseSDK):
|
|
556
572
|
request=request,
|
557
573
|
request_body_required=False,
|
558
574
|
request_has_path_params=True,
|
559
|
-
request_has_query_params=
|
575
|
+
request_has_query_params=True,
|
560
576
|
user_agent_header="user-agent",
|
561
577
|
accept_header_value="application/json",
|
562
578
|
http_headers=http_headers,
|
579
|
+
security=self.sdk_configuration.security,
|
563
580
|
timeout_ms=timeout_ms,
|
564
581
|
)
|
565
582
|
|
@@ -575,7 +592,9 @@ class Collections(BaseSDK):
|
|
575
592
|
hook_ctx=HookContext(
|
576
593
|
operation_id="delete_collection_collections__collection__delete",
|
577
594
|
oauth2_scopes=[],
|
578
|
-
security_source=
|
595
|
+
security_source=get_security_from_env(
|
596
|
+
self.sdk_configuration.security, models.Security
|
597
|
+
),
|
579
598
|
),
|
580
599
|
request=req,
|
581
600
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -665,10 +684,11 @@ class Collections(BaseSDK):
|
|
665
684
|
request=request,
|
666
685
|
request_body_required=True,
|
667
686
|
request_has_path_params=True,
|
668
|
-
request_has_query_params=
|
687
|
+
request_has_query_params=True,
|
669
688
|
user_agent_header="user-agent",
|
670
689
|
accept_header_value="application/json",
|
671
690
|
http_headers=http_headers,
|
691
|
+
security=self.sdk_configuration.security,
|
672
692
|
get_serialized_body=lambda: utils.serialize_request_body(
|
673
693
|
request.create_collection_request,
|
674
694
|
False,
|
@@ -691,7 +711,9 @@ class Collections(BaseSDK):
|
|
691
711
|
hook_ctx=HookContext(
|
692
712
|
operation_id="update_collection_collections__collection__put",
|
693
713
|
oauth2_scopes=[],
|
694
|
-
security_source=
|
714
|
+
security_source=get_security_from_env(
|
715
|
+
self.sdk_configuration.security, models.Security
|
716
|
+
),
|
695
717
|
),
|
696
718
|
request=req,
|
697
719
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -781,10 +803,11 @@ class Collections(BaseSDK):
|
|
781
803
|
request=request,
|
782
804
|
request_body_required=True,
|
783
805
|
request_has_path_params=True,
|
784
|
-
request_has_query_params=
|
806
|
+
request_has_query_params=True,
|
785
807
|
user_agent_header="user-agent",
|
786
808
|
accept_header_value="application/json",
|
787
809
|
http_headers=http_headers,
|
810
|
+
security=self.sdk_configuration.security,
|
788
811
|
get_serialized_body=lambda: utils.serialize_request_body(
|
789
812
|
request.create_collection_request,
|
790
813
|
False,
|
@@ -807,7 +830,9 @@ class Collections(BaseSDK):
|
|
807
830
|
hook_ctx=HookContext(
|
808
831
|
operation_id="update_collection_collections__collection__put",
|
809
832
|
oauth2_scopes=[],
|
810
|
-
security_source=
|
833
|
+
security_source=get_security_from_env(
|
834
|
+
self.sdk_configuration.security, models.Security
|
835
|
+
),
|
811
836
|
),
|
812
837
|
request=req,
|
813
838
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -882,10 +907,11 @@ class Collections(BaseSDK):
|
|
882
907
|
request=request,
|
883
908
|
request_body_required=False,
|
884
909
|
request_has_path_params=True,
|
885
|
-
request_has_query_params=
|
910
|
+
request_has_query_params=True,
|
886
911
|
user_agent_header="user-agent",
|
887
912
|
accept_header_value="application/json",
|
888
913
|
http_headers=http_headers,
|
914
|
+
security=self.sdk_configuration.security,
|
889
915
|
timeout_ms=timeout_ms,
|
890
916
|
)
|
891
917
|
|
@@ -901,7 +927,9 @@ class Collections(BaseSDK):
|
|
901
927
|
hook_ctx=HookContext(
|
902
928
|
operation_id="get_collection_collections__collection__get",
|
903
929
|
oauth2_scopes=[],
|
904
|
-
security_source=
|
930
|
+
security_source=get_security_from_env(
|
931
|
+
self.sdk_configuration.security, models.Security
|
932
|
+
),
|
905
933
|
),
|
906
934
|
request=req,
|
907
935
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -976,10 +1004,11 @@ class Collections(BaseSDK):
|
|
976
1004
|
request=request,
|
977
1005
|
request_body_required=False,
|
978
1006
|
request_has_path_params=True,
|
979
|
-
request_has_query_params=
|
1007
|
+
request_has_query_params=True,
|
980
1008
|
user_agent_header="user-agent",
|
981
1009
|
accept_header_value="application/json",
|
982
1010
|
http_headers=http_headers,
|
1011
|
+
security=self.sdk_configuration.security,
|
983
1012
|
timeout_ms=timeout_ms,
|
984
1013
|
)
|
985
1014
|
|
@@ -995,7 +1024,9 @@ class Collections(BaseSDK):
|
|
995
1024
|
hook_ctx=HookContext(
|
996
1025
|
operation_id="get_collection_collections__collection__get",
|
997
1026
|
oauth2_scopes=[],
|
998
|
-
security_source=
|
1027
|
+
security_source=get_security_from_env(
|
1028
|
+
self.sdk_configuration.security, models.Security
|
1029
|
+
),
|
999
1030
|
),
|
1000
1031
|
request=req,
|
1001
1032
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
mixpeek/featureextractors.py
CHANGED
@@ -4,6 +4,7 @@ from .basesdk import BaseSDK
|
|
4
4
|
from mixpeek import models, utils
|
5
5
|
from mixpeek._hooks import HookContext
|
6
6
|
from mixpeek.types import OptionalNullable, UNSET
|
7
|
+
from mixpeek.utils import get_security_from_env
|
7
8
|
from typing import Any, Mapping, Optional
|
8
9
|
|
9
10
|
|
@@ -51,10 +52,11 @@ class FeatureExtractors(BaseSDK):
|
|
51
52
|
request=request,
|
52
53
|
request_body_required=True,
|
53
54
|
request_has_path_params=False,
|
54
|
-
request_has_query_params=
|
55
|
+
request_has_query_params=True,
|
55
56
|
user_agent_header="user-agent",
|
56
57
|
accept_header_value="application/json",
|
57
58
|
http_headers=http_headers,
|
59
|
+
security=self.sdk_configuration.security,
|
58
60
|
get_serialized_body=lambda: utils.serialize_request_body(
|
59
61
|
request, False, False, "json", models.FeatureExtractionEmbeddingRequest
|
60
62
|
),
|
@@ -73,7 +75,9 @@ class FeatureExtractors(BaseSDK):
|
|
73
75
|
hook_ctx=HookContext(
|
74
76
|
operation_id="extract_embeddings_features_extractors_embed_post",
|
75
77
|
oauth2_scopes=[],
|
76
|
-
security_source=
|
78
|
+
security_source=get_security_from_env(
|
79
|
+
self.sdk_configuration.security, models.Security
|
80
|
+
),
|
77
81
|
),
|
78
82
|
request=req,
|
79
83
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -149,10 +153,11 @@ class FeatureExtractors(BaseSDK):
|
|
149
153
|
request=request,
|
150
154
|
request_body_required=True,
|
151
155
|
request_has_path_params=False,
|
152
|
-
request_has_query_params=
|
156
|
+
request_has_query_params=True,
|
153
157
|
user_agent_header="user-agent",
|
154
158
|
accept_header_value="application/json",
|
155
159
|
http_headers=http_headers,
|
160
|
+
security=self.sdk_configuration.security,
|
156
161
|
get_serialized_body=lambda: utils.serialize_request_body(
|
157
162
|
request, False, False, "json", models.FeatureExtractionEmbeddingRequest
|
158
163
|
),
|
@@ -171,7 +176,9 @@ class FeatureExtractors(BaseSDK):
|
|
171
176
|
hook_ctx=HookContext(
|
172
177
|
operation_id="extract_embeddings_features_extractors_embed_post",
|
173
178
|
oauth2_scopes=[],
|
174
|
-
security_source=
|
179
|
+
security_source=get_security_from_env(
|
180
|
+
self.sdk_configuration.security, models.Security
|
181
|
+
),
|
175
182
|
),
|
176
183
|
request=req,
|
177
184
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|