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/features.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
|
|
@@ -55,6 +56,7 @@ class Features(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 Features(BaseSDK):
|
|
70
72
|
hook_ctx=HookContext(
|
71
73
|
operation_id="get_feature_features__feature_id__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 Features(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 Features(BaseSDK):
|
|
165
170
|
hook_ctx=HookContext(
|
166
171
|
operation_id="get_feature_features__feature_id__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"],
|
@@ -238,10 +245,11 @@ class Features(BaseSDK):
|
|
238
245
|
request=request,
|
239
246
|
request_body_required=False,
|
240
247
|
request_has_path_params=True,
|
241
|
-
request_has_query_params=
|
248
|
+
request_has_query_params=True,
|
242
249
|
user_agent_header="user-agent",
|
243
250
|
accept_header_value="application/json",
|
244
251
|
http_headers=http_headers,
|
252
|
+
security=self.sdk_configuration.security,
|
245
253
|
timeout_ms=timeout_ms,
|
246
254
|
)
|
247
255
|
|
@@ -257,7 +265,9 @@ class Features(BaseSDK):
|
|
257
265
|
hook_ctx=HookContext(
|
258
266
|
operation_id="delete_feature_features__feature_id__delete",
|
259
267
|
oauth2_scopes=[],
|
260
|
-
security_source=
|
268
|
+
security_source=get_security_from_env(
|
269
|
+
self.sdk_configuration.security, models.Security
|
270
|
+
),
|
261
271
|
),
|
262
272
|
request=req,
|
263
273
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -330,10 +340,11 @@ class Features(BaseSDK):
|
|
330
340
|
request=request,
|
331
341
|
request_body_required=False,
|
332
342
|
request_has_path_params=True,
|
333
|
-
request_has_query_params=
|
343
|
+
request_has_query_params=True,
|
334
344
|
user_agent_header="user-agent",
|
335
345
|
accept_header_value="application/json",
|
336
346
|
http_headers=http_headers,
|
347
|
+
security=self.sdk_configuration.security,
|
337
348
|
timeout_ms=timeout_ms,
|
338
349
|
)
|
339
350
|
|
@@ -349,7 +360,9 @@ class Features(BaseSDK):
|
|
349
360
|
hook_ctx=HookContext(
|
350
361
|
operation_id="delete_feature_features__feature_id__delete",
|
351
362
|
oauth2_scopes=[],
|
352
|
-
security_source=
|
363
|
+
security_source=get_security_from_env(
|
364
|
+
self.sdk_configuration.security, models.Security
|
365
|
+
),
|
353
366
|
),
|
354
367
|
request=req,
|
355
368
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -432,10 +445,11 @@ class Features(BaseSDK):
|
|
432
445
|
request=request,
|
433
446
|
request_body_required=True,
|
434
447
|
request_has_path_params=True,
|
435
|
-
request_has_query_params=
|
448
|
+
request_has_query_params=True,
|
436
449
|
user_agent_header="user-agent",
|
437
450
|
accept_header_value="application/json",
|
438
451
|
http_headers=http_headers,
|
452
|
+
security=self.sdk_configuration.security,
|
439
453
|
get_serialized_body=lambda: utils.serialize_request_body(
|
440
454
|
request.feature_update_request,
|
441
455
|
False,
|
@@ -458,7 +472,9 @@ class Features(BaseSDK):
|
|
458
472
|
hook_ctx=HookContext(
|
459
473
|
operation_id="full_feature_update_features__feature_id__put",
|
460
474
|
oauth2_scopes=[],
|
461
|
-
security_source=
|
475
|
+
security_source=get_security_from_env(
|
476
|
+
self.sdk_configuration.security, models.Security
|
477
|
+
),
|
462
478
|
),
|
463
479
|
request=req,
|
464
480
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -541,10 +557,11 @@ class Features(BaseSDK):
|
|
541
557
|
request=request,
|
542
558
|
request_body_required=True,
|
543
559
|
request_has_path_params=True,
|
544
|
-
request_has_query_params=
|
560
|
+
request_has_query_params=True,
|
545
561
|
user_agent_header="user-agent",
|
546
562
|
accept_header_value="application/json",
|
547
563
|
http_headers=http_headers,
|
564
|
+
security=self.sdk_configuration.security,
|
548
565
|
get_serialized_body=lambda: utils.serialize_request_body(
|
549
566
|
request.feature_update_request,
|
550
567
|
False,
|
@@ -567,7 +584,9 @@ class Features(BaseSDK):
|
|
567
584
|
hook_ctx=HookContext(
|
568
585
|
operation_id="full_feature_update_features__feature_id__put",
|
569
586
|
oauth2_scopes=[],
|
570
|
-
security_source=
|
587
|
+
security_source=get_security_from_env(
|
588
|
+
self.sdk_configuration.security, models.Security
|
589
|
+
),
|
571
590
|
),
|
572
591
|
request=req,
|
573
592
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -676,6 +695,7 @@ class Features(BaseSDK):
|
|
676
695
|
user_agent_header="user-agent",
|
677
696
|
accept_header_value="application/json",
|
678
697
|
http_headers=http_headers,
|
698
|
+
security=self.sdk_configuration.security,
|
679
699
|
get_serialized_body=lambda: utils.serialize_request_body(
|
680
700
|
request.list_features_request,
|
681
701
|
False,
|
@@ -698,7 +718,9 @@ class Features(BaseSDK):
|
|
698
718
|
hook_ctx=HookContext(
|
699
719
|
operation_id="list_features_features_post",
|
700
720
|
oauth2_scopes=[],
|
701
|
-
security_source=
|
721
|
+
security_source=get_security_from_env(
|
722
|
+
self.sdk_configuration.security, models.Security
|
723
|
+
),
|
702
724
|
),
|
703
725
|
request=req,
|
704
726
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -807,6 +829,7 @@ class Features(BaseSDK):
|
|
807
829
|
user_agent_header="user-agent",
|
808
830
|
accept_header_value="application/json",
|
809
831
|
http_headers=http_headers,
|
832
|
+
security=self.sdk_configuration.security,
|
810
833
|
get_serialized_body=lambda: utils.serialize_request_body(
|
811
834
|
request.list_features_request,
|
812
835
|
False,
|
@@ -829,7 +852,9 @@ class Features(BaseSDK):
|
|
829
852
|
hook_ctx=HookContext(
|
830
853
|
operation_id="list_features_features_post",
|
831
854
|
oauth2_scopes=[],
|
832
|
-
security_source=
|
855
|
+
security_source=get_security_from_env(
|
856
|
+
self.sdk_configuration.security, models.Security
|
857
|
+
),
|
833
858
|
),
|
834
859
|
request=req,
|
835
860
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -963,6 +988,7 @@ class Features(BaseSDK):
|
|
963
988
|
user_agent_header="user-agent",
|
964
989
|
accept_header_value="application/json",
|
965
990
|
http_headers=http_headers,
|
991
|
+
security=self.sdk_configuration.security,
|
966
992
|
get_serialized_body=lambda: utils.serialize_request_body(
|
967
993
|
request.search_request_features_input,
|
968
994
|
False,
|
@@ -985,7 +1011,9 @@ class Features(BaseSDK):
|
|
985
1011
|
hook_ctx=HookContext(
|
986
1012
|
operation_id="search_features_features_search_post",
|
987
1013
|
oauth2_scopes=[],
|
988
|
-
security_source=
|
1014
|
+
security_source=get_security_from_env(
|
1015
|
+
self.sdk_configuration.security, models.Security
|
1016
|
+
),
|
989
1017
|
),
|
990
1018
|
request=req,
|
991
1019
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -1122,6 +1150,7 @@ class Features(BaseSDK):
|
|
1122
1150
|
user_agent_header="user-agent",
|
1123
1151
|
accept_header_value="application/json",
|
1124
1152
|
http_headers=http_headers,
|
1153
|
+
security=self.sdk_configuration.security,
|
1125
1154
|
get_serialized_body=lambda: utils.serialize_request_body(
|
1126
1155
|
request.search_request_features_input,
|
1127
1156
|
False,
|
@@ -1144,7 +1173,9 @@ class Features(BaseSDK):
|
|
1144
1173
|
hook_ctx=HookContext(
|
1145
1174
|
operation_id="search_features_features_search_post",
|
1146
1175
|
oauth2_scopes=[],
|
1147
|
-
security_source=
|
1176
|
+
security_source=get_security_from_env(
|
1177
|
+
self.sdk_configuration.security, models.Security
|
1178
|
+
),
|
1148
1179
|
),
|
1149
1180
|
request=req,
|
1150
1181
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
mixpeek/health.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
|
|
@@ -38,10 +39,11 @@ class Health(BaseSDK):
|
|
38
39
|
request=None,
|
39
40
|
request_body_required=False,
|
40
41
|
request_has_path_params=False,
|
41
|
-
request_has_query_params=
|
42
|
+
request_has_query_params=True,
|
42
43
|
user_agent_header="user-agent",
|
43
44
|
accept_header_value="application/json",
|
44
45
|
http_headers=http_headers,
|
46
|
+
security=self.sdk_configuration.security,
|
45
47
|
timeout_ms=timeout_ms,
|
46
48
|
)
|
47
49
|
|
@@ -57,7 +59,9 @@ class Health(BaseSDK):
|
|
57
59
|
hook_ctx=HookContext(
|
58
60
|
operation_id="healthcheck_healthcheck_get",
|
59
61
|
oauth2_scopes=[],
|
60
|
-
security_source=
|
62
|
+
security_source=get_security_from_env(
|
63
|
+
self.sdk_configuration.security, models.Security
|
64
|
+
),
|
61
65
|
),
|
62
66
|
request=req,
|
63
67
|
error_status_codes=["400", "401", "403", "404", "4XX", "500", "5XX"],
|
@@ -117,10 +121,11 @@ class Health(BaseSDK):
|
|
117
121
|
request=None,
|
118
122
|
request_body_required=False,
|
119
123
|
request_has_path_params=False,
|
120
|
-
request_has_query_params=
|
124
|
+
request_has_query_params=True,
|
121
125
|
user_agent_header="user-agent",
|
122
126
|
accept_header_value="application/json",
|
123
127
|
http_headers=http_headers,
|
128
|
+
security=self.sdk_configuration.security,
|
124
129
|
timeout_ms=timeout_ms,
|
125
130
|
)
|
126
131
|
|
@@ -136,7 +141,9 @@ class Health(BaseSDK):
|
|
136
141
|
hook_ctx=HookContext(
|
137
142
|
operation_id="healthcheck_healthcheck_get",
|
138
143
|
oauth2_scopes=[],
|
139
|
-
security_source=
|
144
|
+
security_source=get_security_from_env(
|
145
|
+
self.sdk_configuration.security, models.Security
|
146
|
+
),
|
140
147
|
),
|
141
148
|
request=req,
|
142
149
|
error_status_codes=["400", "401", "403", "404", "4XX", "500", "5XX"],
|
mixpeek/ingest.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
|
|
@@ -84,10 +85,11 @@ class Ingest(BaseSDK):
|
|
84
85
|
request=request,
|
85
86
|
request_body_required=True,
|
86
87
|
request_has_path_params=False,
|
87
|
-
request_has_query_params=
|
88
|
+
request_has_query_params=True,
|
88
89
|
user_agent_header="user-agent",
|
89
90
|
accept_header_value="application/json",
|
90
91
|
http_headers=http_headers,
|
92
|
+
security=self.sdk_configuration.security,
|
91
93
|
get_serialized_body=lambda: utils.serialize_request_body(
|
92
94
|
request.process_text_input,
|
93
95
|
False,
|
@@ -110,7 +112,9 @@ class Ingest(BaseSDK):
|
|
110
112
|
hook_ctx=HookContext(
|
111
113
|
operation_id="ingest_text_ingest_text_post",
|
112
114
|
oauth2_scopes=[],
|
113
|
-
security_source=
|
115
|
+
security_source=get_security_from_env(
|
116
|
+
self.sdk_configuration.security, models.Security
|
117
|
+
),
|
114
118
|
),
|
115
119
|
request=req,
|
116
120
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -219,10 +223,11 @@ class Ingest(BaseSDK):
|
|
219
223
|
request=request,
|
220
224
|
request_body_required=True,
|
221
225
|
request_has_path_params=False,
|
222
|
-
request_has_query_params=
|
226
|
+
request_has_query_params=True,
|
223
227
|
user_agent_header="user-agent",
|
224
228
|
accept_header_value="application/json",
|
225
229
|
http_headers=http_headers,
|
230
|
+
security=self.sdk_configuration.security,
|
226
231
|
get_serialized_body=lambda: utils.serialize_request_body(
|
227
232
|
request.process_text_input,
|
228
233
|
False,
|
@@ -245,7 +250,9 @@ class Ingest(BaseSDK):
|
|
245
250
|
hook_ctx=HookContext(
|
246
251
|
operation_id="ingest_text_ingest_text_post",
|
247
252
|
oauth2_scopes=[],
|
248
|
-
security_source=
|
253
|
+
security_source=get_security_from_env(
|
254
|
+
self.sdk_configuration.security, models.Security
|
255
|
+
),
|
249
256
|
),
|
250
257
|
request=req,
|
251
258
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -357,10 +364,11 @@ class Ingest(BaseSDK):
|
|
357
364
|
request=request,
|
358
365
|
request_body_required=True,
|
359
366
|
request_has_path_params=False,
|
360
|
-
request_has_query_params=
|
367
|
+
request_has_query_params=True,
|
361
368
|
user_agent_header="user-agent",
|
362
369
|
accept_header_value="application/json",
|
363
370
|
http_headers=http_headers,
|
371
|
+
security=self.sdk_configuration.security,
|
364
372
|
get_serialized_body=lambda: utils.serialize_request_body(
|
365
373
|
request.process_video_url_input,
|
366
374
|
False,
|
@@ -383,7 +391,9 @@ class Ingest(BaseSDK):
|
|
383
391
|
hook_ctx=HookContext(
|
384
392
|
operation_id="ingest_video_url_ingest_videos_url_post",
|
385
393
|
oauth2_scopes=[],
|
386
|
-
security_source=
|
394
|
+
security_source=get_security_from_env(
|
395
|
+
self.sdk_configuration.security, models.Security
|
396
|
+
),
|
387
397
|
),
|
388
398
|
request=req,
|
389
399
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -495,10 +505,11 @@ class Ingest(BaseSDK):
|
|
495
505
|
request=request,
|
496
506
|
request_body_required=True,
|
497
507
|
request_has_path_params=False,
|
498
|
-
request_has_query_params=
|
508
|
+
request_has_query_params=True,
|
499
509
|
user_agent_header="user-agent",
|
500
510
|
accept_header_value="application/json",
|
501
511
|
http_headers=http_headers,
|
512
|
+
security=self.sdk_configuration.security,
|
502
513
|
get_serialized_body=lambda: utils.serialize_request_body(
|
503
514
|
request.process_video_url_input,
|
504
515
|
False,
|
@@ -521,7 +532,9 @@ class Ingest(BaseSDK):
|
|
521
532
|
hook_ctx=HookContext(
|
522
533
|
operation_id="ingest_video_url_ingest_videos_url_post",
|
523
534
|
oauth2_scopes=[],
|
524
|
-
security_source=
|
535
|
+
security_source=get_security_from_env(
|
536
|
+
self.sdk_configuration.security, models.Security
|
537
|
+
),
|
525
538
|
),
|
526
539
|
request=req,
|
527
540
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -633,10 +646,11 @@ class Ingest(BaseSDK):
|
|
633
646
|
request=request,
|
634
647
|
request_body_required=True,
|
635
648
|
request_has_path_params=False,
|
636
|
-
request_has_query_params=
|
649
|
+
request_has_query_params=True,
|
637
650
|
user_agent_header="user-agent",
|
638
651
|
accept_header_value="application/json",
|
639
652
|
http_headers=http_headers,
|
653
|
+
security=self.sdk_configuration.security,
|
640
654
|
get_serialized_body=lambda: utils.serialize_request_body(
|
641
655
|
request.process_image_url_input,
|
642
656
|
False,
|
@@ -659,7 +673,9 @@ class Ingest(BaseSDK):
|
|
659
673
|
hook_ctx=HookContext(
|
660
674
|
operation_id="ingest_image_url_ingest_images_url_post",
|
661
675
|
oauth2_scopes=[],
|
662
|
-
security_source=
|
676
|
+
security_source=get_security_from_env(
|
677
|
+
self.sdk_configuration.security, models.Security
|
678
|
+
),
|
663
679
|
),
|
664
680
|
request=req,
|
665
681
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -771,10 +787,11 @@ class Ingest(BaseSDK):
|
|
771
787
|
request=request,
|
772
788
|
request_body_required=True,
|
773
789
|
request_has_path_params=False,
|
774
|
-
request_has_query_params=
|
790
|
+
request_has_query_params=True,
|
775
791
|
user_agent_header="user-agent",
|
776
792
|
accept_header_value="application/json",
|
777
793
|
http_headers=http_headers,
|
794
|
+
security=self.sdk_configuration.security,
|
778
795
|
get_serialized_body=lambda: utils.serialize_request_body(
|
779
796
|
request.process_image_url_input,
|
780
797
|
False,
|
@@ -797,7 +814,9 @@ class Ingest(BaseSDK):
|
|
797
814
|
hook_ctx=HookContext(
|
798
815
|
operation_id="ingest_image_url_ingest_images_url_post",
|
799
816
|
oauth2_scopes=[],
|
800
|
-
security_source=
|
817
|
+
security_source=get_security_from_env(
|
818
|
+
self.sdk_configuration.security, models.Security
|
819
|
+
),
|
801
820
|
),
|
802
821
|
request=req,
|
803
822
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
mixpeek/interactions.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
|
8
9
|
|
9
10
|
|
@@ -66,6 +67,7 @@ class Interactions(BaseSDK):
|
|
66
67
|
user_agent_header="user-agent",
|
67
68
|
accept_header_value="application/json",
|
68
69
|
http_headers=http_headers,
|
70
|
+
security=self.sdk_configuration.security,
|
69
71
|
timeout_ms=timeout_ms,
|
70
72
|
)
|
71
73
|
|
@@ -81,7 +83,9 @@ class Interactions(BaseSDK):
|
|
81
83
|
hook_ctx=HookContext(
|
82
84
|
operation_id="list_interactions_features_search_interactions_get",
|
83
85
|
oauth2_scopes=[],
|
84
|
-
security_source=
|
86
|
+
security_source=get_security_from_env(
|
87
|
+
self.sdk_configuration.security, models.Security
|
88
|
+
),
|
85
89
|
),
|
86
90
|
request=req,
|
87
91
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -172,6 +176,7 @@ class Interactions(BaseSDK):
|
|
172
176
|
user_agent_header="user-agent",
|
173
177
|
accept_header_value="application/json",
|
174
178
|
http_headers=http_headers,
|
179
|
+
security=self.sdk_configuration.security,
|
175
180
|
timeout_ms=timeout_ms,
|
176
181
|
)
|
177
182
|
|
@@ -187,7 +192,9 @@ class Interactions(BaseSDK):
|
|
187
192
|
hook_ctx=HookContext(
|
188
193
|
operation_id="list_interactions_features_search_interactions_get",
|
189
194
|
oauth2_scopes=[],
|
190
|
-
security_source=
|
195
|
+
security_source=get_security_from_env(
|
196
|
+
self.sdk_configuration.security, models.Security
|
197
|
+
),
|
191
198
|
),
|
192
199
|
request=req,
|
193
200
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
mixpeek/models/__init__.py
CHANGED
@@ -348,6 +348,7 @@ from .searchrequestfeatures_output import (
|
|
348
348
|
SearchRequestFeaturesOutput,
|
349
349
|
SearchRequestFeaturesOutputTypedDict,
|
350
350
|
)
|
351
|
+
from .security import Security, SecurityTypedDict
|
351
352
|
from .sortoption import Direction, SortOption, SortOptionTypedDict
|
352
353
|
from .sparseembedding import SparseEmbedding, SparseEmbeddingTypedDict
|
353
354
|
from .tasks_model_taskresponse import (
|
@@ -695,6 +696,8 @@ __all__ = [
|
|
695
696
|
"SearchRequestFeaturesInputTypedDict",
|
696
697
|
"SearchRequestFeaturesOutput",
|
697
698
|
"SearchRequestFeaturesOutputTypedDict",
|
699
|
+
"Security",
|
700
|
+
"SecurityTypedDict",
|
698
701
|
"SortOption",
|
699
702
|
"SortOptionTypedDict",
|
700
703
|
"SparseEmbedding",
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from mixpeek.types import BaseModel
|
5
|
+
from mixpeek.utils import FieldMetadata, SecurityMetadata
|
6
|
+
from typing import Optional
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
8
|
+
|
9
|
+
|
10
|
+
class SecurityTypedDict(TypedDict):
|
11
|
+
bearer_auth: NotRequired[str]
|
12
|
+
|
13
|
+
|
14
|
+
class Security(BaseModel):
|
15
|
+
bearer_auth: Annotated[
|
16
|
+
Optional[str],
|
17
|
+
FieldMetadata(
|
18
|
+
security=SecurityMetadata(
|
19
|
+
scheme=True,
|
20
|
+
scheme_type="http",
|
21
|
+
sub_type="bearer",
|
22
|
+
field_name="Authorization",
|
23
|
+
)
|
24
|
+
),
|
25
|
+
] = None
|