mixpeek 0.18.12__py3-none-any.whl → 0.18.14__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/namespaces.py CHANGED
@@ -93,20 +93,26 @@ class Namespaces(BaseSDK):
93
93
  retry_config=retry_config,
94
94
  )
95
95
 
96
- data: Any = None
96
+ response_data: Any = None
97
97
  if utils.match_response(http_res, "200", "application/json"):
98
98
  return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
99
99
  if utils.match_response(
100
100
  http_res, ["400", "401", "403", "404"], "application/json"
101
101
  ):
102
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
103
- raise models.ErrorResponse(data=data)
102
+ response_data = utils.unmarshal_json(
103
+ http_res.text, models.ErrorResponseData
104
+ )
105
+ raise models.ErrorResponse(data=response_data)
104
106
  if utils.match_response(http_res, "422", "application/json"):
105
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
106
- raise models.HTTPValidationError(data=data)
107
+ response_data = utils.unmarshal_json(
108
+ http_res.text, models.HTTPValidationErrorData
109
+ )
110
+ raise models.HTTPValidationError(data=response_data)
107
111
  if utils.match_response(http_res, "500", "application/json"):
108
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
109
- raise models.ErrorResponse(data=data)
112
+ response_data = utils.unmarshal_json(
113
+ http_res.text, models.ErrorResponseData
114
+ )
115
+ raise models.ErrorResponse(data=response_data)
110
116
  if utils.match_response(http_res, "4XX", "*"):
111
117
  http_res_text = utils.stream_to_text(http_res)
112
118
  raise models.APIError(
@@ -211,20 +217,26 @@ class Namespaces(BaseSDK):
211
217
  retry_config=retry_config,
212
218
  )
213
219
 
214
- data: Any = None
220
+ response_data: Any = None
215
221
  if utils.match_response(http_res, "200", "application/json"):
216
222
  return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
217
223
  if utils.match_response(
218
224
  http_res, ["400", "401", "403", "404"], "application/json"
219
225
  ):
220
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
221
- raise models.ErrorResponse(data=data)
226
+ response_data = utils.unmarshal_json(
227
+ http_res.text, models.ErrorResponseData
228
+ )
229
+ raise models.ErrorResponse(data=response_data)
222
230
  if utils.match_response(http_res, "422", "application/json"):
223
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
224
- raise models.HTTPValidationError(data=data)
231
+ response_data = utils.unmarshal_json(
232
+ http_res.text, models.HTTPValidationErrorData
233
+ )
234
+ raise models.HTTPValidationError(data=response_data)
225
235
  if utils.match_response(http_res, "500", "application/json"):
226
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
227
- raise models.ErrorResponse(data=data)
236
+ response_data = utils.unmarshal_json(
237
+ http_res.text, models.ErrorResponseData
238
+ )
239
+ raise models.ErrorResponse(data=response_data)
228
240
  if utils.match_response(http_res, "4XX", "*"):
229
241
  http_res_text = await utils.stream_to_text_async(http_res)
230
242
  raise models.APIError(
@@ -306,20 +318,26 @@ class Namespaces(BaseSDK):
306
318
  retry_config=retry_config,
307
319
  )
308
320
 
309
- data: Any = None
321
+ response_data: Any = None
310
322
  if utils.match_response(http_res, "200", "application/json"):
311
323
  return utils.unmarshal_json(http_res.text, List[models.NamespaceResponse])
312
324
  if utils.match_response(
313
325
  http_res, ["400", "401", "403", "404"], "application/json"
314
326
  ):
315
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
316
- raise models.ErrorResponse(data=data)
327
+ response_data = utils.unmarshal_json(
328
+ http_res.text, models.ErrorResponseData
329
+ )
330
+ raise models.ErrorResponse(data=response_data)
317
331
  if utils.match_response(http_res, "422", "application/json"):
318
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
319
- raise models.HTTPValidationError(data=data)
332
+ response_data = utils.unmarshal_json(
333
+ http_res.text, models.HTTPValidationErrorData
334
+ )
335
+ raise models.HTTPValidationError(data=response_data)
320
336
  if utils.match_response(http_res, "500", "application/json"):
321
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
322
- raise models.ErrorResponse(data=data)
337
+ response_data = utils.unmarshal_json(
338
+ http_res.text, models.ErrorResponseData
339
+ )
340
+ raise models.ErrorResponse(data=response_data)
323
341
  if utils.match_response(http_res, "4XX", "*"):
324
342
  http_res_text = utils.stream_to_text(http_res)
325
343
  raise models.APIError(
@@ -401,20 +419,26 @@ class Namespaces(BaseSDK):
401
419
  retry_config=retry_config,
402
420
  )
403
421
 
404
- data: Any = None
422
+ response_data: Any = None
405
423
  if utils.match_response(http_res, "200", "application/json"):
406
424
  return utils.unmarshal_json(http_res.text, List[models.NamespaceResponse])
407
425
  if utils.match_response(
408
426
  http_res, ["400", "401", "403", "404"], "application/json"
409
427
  ):
410
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
411
- raise models.ErrorResponse(data=data)
428
+ response_data = utils.unmarshal_json(
429
+ http_res.text, models.ErrorResponseData
430
+ )
431
+ raise models.ErrorResponse(data=response_data)
412
432
  if utils.match_response(http_res, "422", "application/json"):
413
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
414
- raise models.HTTPValidationError(data=data)
433
+ response_data = utils.unmarshal_json(
434
+ http_res.text, models.HTTPValidationErrorData
435
+ )
436
+ raise models.HTTPValidationError(data=response_data)
415
437
  if utils.match_response(http_res, "500", "application/json"):
416
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
417
- raise models.ErrorResponse(data=data)
438
+ response_data = utils.unmarshal_json(
439
+ http_res.text, models.ErrorResponseData
440
+ )
441
+ raise models.ErrorResponse(data=response_data)
418
442
  if utils.match_response(http_res, "4XX", "*"):
419
443
  http_res_text = await utils.stream_to_text_async(http_res)
420
444
  raise models.APIError(
@@ -503,20 +527,26 @@ class Namespaces(BaseSDK):
503
527
  retry_config=retry_config,
504
528
  )
505
529
 
506
- data: Any = None
530
+ response_data: Any = None
507
531
  if utils.match_response(http_res, "200", "application/json"):
508
532
  return utils.unmarshal_json(http_res.text, models.TaskResponse)
509
533
  if utils.match_response(
510
534
  http_res, ["400", "401", "403", "404"], "application/json"
511
535
  ):
512
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
513
- raise models.ErrorResponse(data=data)
536
+ response_data = utils.unmarshal_json(
537
+ http_res.text, models.ErrorResponseData
538
+ )
539
+ raise models.ErrorResponse(data=response_data)
514
540
  if utils.match_response(http_res, "422", "application/json"):
515
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
516
- raise models.HTTPValidationError(data=data)
541
+ response_data = utils.unmarshal_json(
542
+ http_res.text, models.HTTPValidationErrorData
543
+ )
544
+ raise models.HTTPValidationError(data=response_data)
517
545
  if utils.match_response(http_res, "500", "application/json"):
518
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
519
- raise models.ErrorResponse(data=data)
546
+ response_data = utils.unmarshal_json(
547
+ http_res.text, models.ErrorResponseData
548
+ )
549
+ raise models.ErrorResponse(data=response_data)
520
550
  if utils.match_response(http_res, "4XX", "*"):
521
551
  http_res_text = utils.stream_to_text(http_res)
522
552
  raise models.APIError(
@@ -605,20 +635,26 @@ class Namespaces(BaseSDK):
605
635
  retry_config=retry_config,
606
636
  )
607
637
 
608
- data: Any = None
638
+ response_data: Any = None
609
639
  if utils.match_response(http_res, "200", "application/json"):
610
640
  return utils.unmarshal_json(http_res.text, models.TaskResponse)
611
641
  if utils.match_response(
612
642
  http_res, ["400", "401", "403", "404"], "application/json"
613
643
  ):
614
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
615
- raise models.ErrorResponse(data=data)
644
+ response_data = utils.unmarshal_json(
645
+ http_res.text, models.ErrorResponseData
646
+ )
647
+ raise models.ErrorResponse(data=response_data)
616
648
  if utils.match_response(http_res, "422", "application/json"):
617
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
618
- raise models.HTTPValidationError(data=data)
649
+ response_data = utils.unmarshal_json(
650
+ http_res.text, models.HTTPValidationErrorData
651
+ )
652
+ raise models.HTTPValidationError(data=response_data)
619
653
  if utils.match_response(http_res, "500", "application/json"):
620
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
621
- raise models.ErrorResponse(data=data)
654
+ response_data = utils.unmarshal_json(
655
+ http_res.text, models.ErrorResponseData
656
+ )
657
+ raise models.ErrorResponse(data=response_data)
622
658
  if utils.match_response(http_res, "4XX", "*"):
623
659
  http_res_text = await utils.stream_to_text_async(http_res)
624
660
  raise models.APIError(
@@ -729,20 +765,26 @@ class Namespaces(BaseSDK):
729
765
  retry_config=retry_config,
730
766
  )
731
767
 
732
- data: Any = None
768
+ response_data: Any = None
733
769
  if utils.match_response(http_res, "200", "application/json"):
734
770
  return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
735
771
  if utils.match_response(
736
772
  http_res, ["400", "401", "403", "404"], "application/json"
737
773
  ):
738
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
739
- raise models.ErrorResponse(data=data)
774
+ response_data = utils.unmarshal_json(
775
+ http_res.text, models.ErrorResponseData
776
+ )
777
+ raise models.ErrorResponse(data=response_data)
740
778
  if utils.match_response(http_res, "422", "application/json"):
741
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
742
- raise models.HTTPValidationError(data=data)
779
+ response_data = utils.unmarshal_json(
780
+ http_res.text, models.HTTPValidationErrorData
781
+ )
782
+ raise models.HTTPValidationError(data=response_data)
743
783
  if utils.match_response(http_res, "500", "application/json"):
744
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
745
- raise models.ErrorResponse(data=data)
784
+ response_data = utils.unmarshal_json(
785
+ http_res.text, models.ErrorResponseData
786
+ )
787
+ raise models.ErrorResponse(data=response_data)
746
788
  if utils.match_response(http_res, "4XX", "*"):
747
789
  http_res_text = utils.stream_to_text(http_res)
748
790
  raise models.APIError(
@@ -853,20 +895,26 @@ class Namespaces(BaseSDK):
853
895
  retry_config=retry_config,
854
896
  )
855
897
 
856
- data: Any = None
898
+ response_data: Any = None
857
899
  if utils.match_response(http_res, "200", "application/json"):
858
900
  return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
859
901
  if utils.match_response(
860
902
  http_res, ["400", "401", "403", "404"], "application/json"
861
903
  ):
862
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
863
- raise models.ErrorResponse(data=data)
904
+ response_data = utils.unmarshal_json(
905
+ http_res.text, models.ErrorResponseData
906
+ )
907
+ raise models.ErrorResponse(data=response_data)
864
908
  if utils.match_response(http_res, "422", "application/json"):
865
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
866
- raise models.HTTPValidationError(data=data)
909
+ response_data = utils.unmarshal_json(
910
+ http_res.text, models.HTTPValidationErrorData
911
+ )
912
+ raise models.HTTPValidationError(data=response_data)
867
913
  if utils.match_response(http_res, "500", "application/json"):
868
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
869
- raise models.ErrorResponse(data=data)
914
+ response_data = utils.unmarshal_json(
915
+ http_res.text, models.ErrorResponseData
916
+ )
917
+ raise models.ErrorResponse(data=response_data)
870
918
  if utils.match_response(http_res, "4XX", "*"):
871
919
  http_res_text = await utils.stream_to_text_async(http_res)
872
920
  raise models.APIError(
@@ -977,20 +1025,26 @@ class Namespaces(BaseSDK):
977
1025
  retry_config=retry_config,
978
1026
  )
979
1027
 
980
- data: Any = None
1028
+ response_data: Any = None
981
1029
  if utils.match_response(http_res, "200", "application/json"):
982
1030
  return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
983
1031
  if utils.match_response(
984
1032
  http_res, ["400", "401", "403", "404"], "application/json"
985
1033
  ):
986
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
987
- raise models.ErrorResponse(data=data)
1034
+ response_data = utils.unmarshal_json(
1035
+ http_res.text, models.ErrorResponseData
1036
+ )
1037
+ raise models.ErrorResponse(data=response_data)
988
1038
  if utils.match_response(http_res, "422", "application/json"):
989
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
990
- raise models.HTTPValidationError(data=data)
1039
+ response_data = utils.unmarshal_json(
1040
+ http_res.text, models.HTTPValidationErrorData
1041
+ )
1042
+ raise models.HTTPValidationError(data=response_data)
991
1043
  if utils.match_response(http_res, "500", "application/json"):
992
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
993
- raise models.ErrorResponse(data=data)
1044
+ response_data = utils.unmarshal_json(
1045
+ http_res.text, models.ErrorResponseData
1046
+ )
1047
+ raise models.ErrorResponse(data=response_data)
994
1048
  if utils.match_response(http_res, "4XX", "*"):
995
1049
  http_res_text = utils.stream_to_text(http_res)
996
1050
  raise models.APIError(
@@ -1101,20 +1155,26 @@ class Namespaces(BaseSDK):
1101
1155
  retry_config=retry_config,
1102
1156
  )
1103
1157
 
1104
- data: Any = None
1158
+ response_data: Any = None
1105
1159
  if utils.match_response(http_res, "200", "application/json"):
1106
1160
  return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
1107
1161
  if utils.match_response(
1108
1162
  http_res, ["400", "401", "403", "404"], "application/json"
1109
1163
  ):
1110
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1111
- raise models.ErrorResponse(data=data)
1164
+ response_data = utils.unmarshal_json(
1165
+ http_res.text, models.ErrorResponseData
1166
+ )
1167
+ raise models.ErrorResponse(data=response_data)
1112
1168
  if utils.match_response(http_res, "422", "application/json"):
1113
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1114
- raise models.HTTPValidationError(data=data)
1169
+ response_data = utils.unmarshal_json(
1170
+ http_res.text, models.HTTPValidationErrorData
1171
+ )
1172
+ raise models.HTTPValidationError(data=response_data)
1115
1173
  if utils.match_response(http_res, "500", "application/json"):
1116
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1117
- raise models.ErrorResponse(data=data)
1174
+ response_data = utils.unmarshal_json(
1175
+ http_res.text, models.ErrorResponseData
1176
+ )
1177
+ raise models.ErrorResponse(data=response_data)
1118
1178
  if utils.match_response(http_res, "4XX", "*"):
1119
1179
  http_res_text = await utils.stream_to_text_async(http_res)
1120
1180
  raise models.APIError(
@@ -1203,20 +1263,26 @@ class Namespaces(BaseSDK):
1203
1263
  retry_config=retry_config,
1204
1264
  )
1205
1265
 
1206
- data: Any = None
1266
+ response_data: Any = None
1207
1267
  if utils.match_response(http_res, "200", "application/json"):
1208
1268
  return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
1209
1269
  if utils.match_response(
1210
1270
  http_res, ["400", "401", "403", "404"], "application/json"
1211
1271
  ):
1212
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1213
- raise models.ErrorResponse(data=data)
1272
+ response_data = utils.unmarshal_json(
1273
+ http_res.text, models.ErrorResponseData
1274
+ )
1275
+ raise models.ErrorResponse(data=response_data)
1214
1276
  if utils.match_response(http_res, "422", "application/json"):
1215
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1216
- raise models.HTTPValidationError(data=data)
1277
+ response_data = utils.unmarshal_json(
1278
+ http_res.text, models.HTTPValidationErrorData
1279
+ )
1280
+ raise models.HTTPValidationError(data=response_data)
1217
1281
  if utils.match_response(http_res, "500", "application/json"):
1218
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1219
- raise models.ErrorResponse(data=data)
1282
+ response_data = utils.unmarshal_json(
1283
+ http_res.text, models.ErrorResponseData
1284
+ )
1285
+ raise models.ErrorResponse(data=response_data)
1220
1286
  if utils.match_response(http_res, "4XX", "*"):
1221
1287
  http_res_text = utils.stream_to_text(http_res)
1222
1288
  raise models.APIError(
@@ -1305,20 +1371,26 @@ class Namespaces(BaseSDK):
1305
1371
  retry_config=retry_config,
1306
1372
  )
1307
1373
 
1308
- data: Any = None
1374
+ response_data: Any = None
1309
1375
  if utils.match_response(http_res, "200", "application/json"):
1310
1376
  return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
1311
1377
  if utils.match_response(
1312
1378
  http_res, ["400", "401", "403", "404"], "application/json"
1313
1379
  ):
1314
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1315
- raise models.ErrorResponse(data=data)
1380
+ response_data = utils.unmarshal_json(
1381
+ http_res.text, models.ErrorResponseData
1382
+ )
1383
+ raise models.ErrorResponse(data=response_data)
1316
1384
  if utils.match_response(http_res, "422", "application/json"):
1317
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1318
- raise models.HTTPValidationError(data=data)
1385
+ response_data = utils.unmarshal_json(
1386
+ http_res.text, models.HTTPValidationErrorData
1387
+ )
1388
+ raise models.HTTPValidationError(data=response_data)
1319
1389
  if utils.match_response(http_res, "500", "application/json"):
1320
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1321
- raise models.ErrorResponse(data=data)
1390
+ response_data = utils.unmarshal_json(
1391
+ http_res.text, models.ErrorResponseData
1392
+ )
1393
+ raise models.ErrorResponse(data=response_data)
1322
1394
  if utils.match_response(http_res, "4XX", "*"):
1323
1395
  http_res_text = await utils.stream_to_text_async(http_res)
1324
1396
  raise models.APIError(
@@ -1400,20 +1472,26 @@ class Namespaces(BaseSDK):
1400
1472
  retry_config=retry_config,
1401
1473
  )
1402
1474
 
1403
- data: Any = None
1475
+ response_data: Any = None
1404
1476
  if utils.match_response(http_res, "200", "application/json"):
1405
1477
  return utils.unmarshal_json(http_res.text, models.AvailableModelsResponse)
1406
1478
  if utils.match_response(
1407
1479
  http_res, ["400", "401", "403", "404"], "application/json"
1408
1480
  ):
1409
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1410
- raise models.ErrorResponse(data=data)
1481
+ response_data = utils.unmarshal_json(
1482
+ http_res.text, models.ErrorResponseData
1483
+ )
1484
+ raise models.ErrorResponse(data=response_data)
1411
1485
  if utils.match_response(http_res, "422", "application/json"):
1412
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1413
- raise models.HTTPValidationError(data=data)
1486
+ response_data = utils.unmarshal_json(
1487
+ http_res.text, models.HTTPValidationErrorData
1488
+ )
1489
+ raise models.HTTPValidationError(data=response_data)
1414
1490
  if utils.match_response(http_res, "500", "application/json"):
1415
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1416
- raise models.ErrorResponse(data=data)
1491
+ response_data = utils.unmarshal_json(
1492
+ http_res.text, models.ErrorResponseData
1493
+ )
1494
+ raise models.ErrorResponse(data=response_data)
1417
1495
  if utils.match_response(http_res, "4XX", "*"):
1418
1496
  http_res_text = utils.stream_to_text(http_res)
1419
1497
  raise models.APIError(
@@ -1495,20 +1573,26 @@ class Namespaces(BaseSDK):
1495
1573
  retry_config=retry_config,
1496
1574
  )
1497
1575
 
1498
- data: Any = None
1576
+ response_data: Any = None
1499
1577
  if utils.match_response(http_res, "200", "application/json"):
1500
1578
  return utils.unmarshal_json(http_res.text, models.AvailableModelsResponse)
1501
1579
  if utils.match_response(
1502
1580
  http_res, ["400", "401", "403", "404"], "application/json"
1503
1581
  ):
1504
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1505
- raise models.ErrorResponse(data=data)
1582
+ response_data = utils.unmarshal_json(
1583
+ http_res.text, models.ErrorResponseData
1584
+ )
1585
+ raise models.ErrorResponse(data=response_data)
1506
1586
  if utils.match_response(http_res, "422", "application/json"):
1507
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1508
- raise models.HTTPValidationError(data=data)
1587
+ response_data = utils.unmarshal_json(
1588
+ http_res.text, models.HTTPValidationErrorData
1589
+ )
1590
+ raise models.HTTPValidationError(data=response_data)
1509
1591
  if utils.match_response(http_res, "500", "application/json"):
1510
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1511
- raise models.ErrorResponse(data=data)
1592
+ response_data = utils.unmarshal_json(
1593
+ http_res.text, models.ErrorResponseData
1594
+ )
1595
+ raise models.ErrorResponse(data=response_data)
1512
1596
  if utils.match_response(http_res, "4XX", "*"):
1513
1597
  http_res_text = await utils.stream_to_text_async(http_res)
1514
1598
  raise models.APIError(