mixpeek 0.17.2__tar.gz → 0.17.4__tar.gz

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.
Files changed (196) hide show
  1. {mixpeek-0.17.2 → mixpeek-0.17.4}/PKG-INFO +10 -6
  2. {mixpeek-0.17.2 → mixpeek-0.17.4}/README-PYPI.md +9 -5
  3. {mixpeek-0.17.2 → mixpeek-0.17.4}/pyproject.toml +1 -1
  4. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/_version.py +3 -3
  5. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/assets.py +140 -28
  6. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/collections.py +100 -20
  7. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/feature_extractors.py +20 -4
  8. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/feature_search.py +20 -4
  9. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/features.py +80 -16
  10. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/health.py +12 -2
  11. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/ingest_assets.py +60 -12
  12. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/__init__.py +1 -3
  13. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/availablemodels.py +0 -1
  14. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/createnamespacerequest.py +2 -2
  15. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/imagedetectsettings.py +2 -8
  16. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/internal/__init__.py +2 -4
  17. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/vectormodel.py +0 -1
  18. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/videodetectsettings.py +2 -8
  19. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/namespaces.py +122 -26
  20. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/organizations.py +160 -32
  21. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/tasks.py +40 -8
  22. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/taxonomy_entities.py +200 -40
  23. mixpeek-0.17.2/src/mixpeek/models/facedetectsettings.py +0 -52
  24. {mixpeek-0.17.2 → mixpeek-0.17.4}/py.typed +0 -0
  25. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/__init__.py +0 -0
  26. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/_hooks/__init__.py +0 -0
  27. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/_hooks/registration.py +0 -0
  28. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/_hooks/sdkhooks.py +0 -0
  29. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/_hooks/types.py +0 -0
  30. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/basesdk.py +0 -0
  31. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/httpclient.py +0 -0
  32. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/actionusage.py +0 -0
  33. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/apierror.py +0 -0
  34. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/apikey.py +0 -0
  35. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/apikeyupdate.py +0 -0
  36. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/assetfeatures.py +0 -0
  37. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/assetresponse.py +0 -0
  38. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/assets_model_searchquery.py +0 -0
  39. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/assetupdate.py +0 -0
  40. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/assignmentconfig.py +0 -0
  41. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/availablemodelsresponse.py +0 -0
  42. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/boolindexparams.py +0 -0
  43. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/classificationmatch.py +0 -0
  44. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/classificationwithfeature.py +0 -0
  45. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/classify_features_v1_entities_taxonomies_taxonomy_classify_postop.py +0 -0
  46. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/collectionmodel.py +0 -0
  47. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/collectionresult.py +0 -0
  48. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/create_api_key_v1_organizations_users_user_email_api_keys_postop.py +0 -0
  49. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/create_collection_v1_collections_postop.py +0 -0
  50. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/create_taxonomy_v1_entities_taxonomies_postop.py +0 -0
  51. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/createcollectionrequest.py +0 -0
  52. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/datetimeindexparams.py +0 -0
  53. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/dateusage.py +0 -0
  54. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/db_model_paginationresponse.py +0 -0
  55. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/delete_api_key_v1_organizations_users_user_email_api_keys_key_name_deleteop.py +0 -0
  56. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/delete_asset_v1_assets_asset_id_deleteop.py +0 -0
  57. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/delete_classifications_v1_entities_taxonomies_taxonomy_classifications_classification_id_deleteop.py +0 -0
  58. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/delete_collection_v1_collections_collection_deleteop.py +0 -0
  59. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/delete_feature_v1_features_feature_id_deleteop.py +0 -0
  60. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/delete_namespace_v1_namespaces_namespace_deleteop.py +0 -0
  61. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/delete_taxonomy_v1_entities_taxonomies_taxonomy_deleteop.py +0 -0
  62. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/delete_user_v1_organizations_users_user_email_deleteop.py +0 -0
  63. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/denseembedding.py +0 -0
  64. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/discoverrequest.py +0 -0
  65. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/embeddingconfig.py +0 -0
  66. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/embeddingrequest.py +0 -0
  67. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/embeddingresponse.py +0 -0
  68. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/entitysettings.py +0 -0
  69. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/errordetail.py +0 -0
  70. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/errorresponse.py +0 -0
  71. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/featureextractionembeddingrequest.py +0 -0
  72. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/featureoptions.py +0 -0
  73. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/featureresponse.py +0 -0
  74. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/features_model_paginationresponse.py +0 -0
  75. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/featureupdaterequest.py +0 -0
  76. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/filtercondition.py +0 -0
  77. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/floatindexparams.py +0 -0
  78. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/full_asset_update_v1_assets_asset_id_putop.py +0 -0
  79. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/full_feature_update_v1_features_feature_id_putop.py +0 -0
  80. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/genericsuccessresponse.py +0 -0
  81. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/geoindexparams.py +0 -0
  82. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/get_asset_v1_assets_asset_id_getop.py +0 -0
  83. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/get_asset_with_features_v1_assets_asset_id_features_getop.py +0 -0
  84. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/get_collection_v1_collections_collection_getop.py +0 -0
  85. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/get_feature_v1_features_feature_id_getop.py +0 -0
  86. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/get_namespace_v1_namespaces_namespace_getop.py +0 -0
  87. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/get_task_v1_tasks_task_id_getop.py +0 -0
  88. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/get_taxonomy_node_v1_entities_taxonomies_nodes_node_getop.py +0 -0
  89. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/get_taxonomy_v1_entities_taxonomies_taxonomy_getop.py +0 -0
  90. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/get_user_v1_organizations_users_user_email_getop.py +0 -0
  91. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/groupbyoptions.py +0 -0
  92. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/groupbyoptionsasset.py +0 -0
  93. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/groupedassetdata.py +0 -0
  94. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/healthcheckresponse.py +0 -0
  95. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/httpvalidationerror.py +0 -0
  96. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/imagedescribesettings.py +0 -0
  97. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/imagereadsettings.py +0 -0
  98. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/imagesettings.py +0 -0
  99. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/ingest_image_url_v1_ingest_images_url_postop.py +0 -0
  100. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/ingest_text_v1_ingest_text_postop.py +0 -0
  101. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/ingest_video_url_v1_ingest_videos_url_postop.py +0 -0
  102. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/inputtype.py +0 -0
  103. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/integerindexparams.py +0 -0
  104. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/internal/globals.py +0 -0
  105. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/jsonimageoutputsettings.py +0 -0
  106. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/jsontextoutputsettings.py +0 -0
  107. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/jsonvideooutputsettings.py +0 -0
  108. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/keywordindexparams.py +0 -0
  109. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/kill_task_v1_tasks_task_id_deleteop.py +0 -0
  110. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/list_assets_v1_assets_postop.py +0 -0
  111. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/list_classifications_v1_entities_taxonomies_taxonomy_classifications_postop.py +0 -0
  112. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/list_collections_v1_collections_getop.py +0 -0
  113. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/list_features_v1_features_postop.py +0 -0
  114. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/list_taxonomies_v1_entities_taxonomies_getop.py +0 -0
  115. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/listassetsrequest.py +0 -0
  116. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/listassetsresponse.py +0 -0
  117. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/listclassificationsrequest.py +0 -0
  118. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/listclassificationsresponse.py +0 -0
  119. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/listcollectionsresponse.py +0 -0
  120. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/listfeaturesrequest.py +0 -0
  121. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/listfeaturesresponse.py +0 -0
  122. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/listtaxonomiesresponse.py +0 -0
  123. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/logicaloperator.py +0 -0
  124. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/logodetectsettings.py +0 -0
  125. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/modality.py +0 -0
  126. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/modeldetails.py +0 -0
  127. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/namespaceresponse.py +0 -0
  128. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/nodeoptions.py +0 -0
  129. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/nodeupdate.py +0 -0
  130. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/organizationmodel.py +0 -0
  131. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/partial_asset_update_v1_assets_asset_id_patchop.py +0 -0
  132. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/payloadindexconfig.py +0 -0
  133. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/payloadindextype.py +0 -0
  134. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/payloadschematype.py +0 -0
  135. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/permission.py +0 -0
  136. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/processimageurlinput.py +0 -0
  137. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/processtextinput.py +0 -0
  138. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/processvideourlinput.py +0 -0
  139. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/querysettings.py +0 -0
  140. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/rerankingoptions.py +0 -0
  141. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/search_assets_v1_assets_search_postop.py +0 -0
  142. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/search_features_v1_features_search_postop.py +0 -0
  143. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/search_model_searchquery.py +0 -0
  144. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/searchassetsrequest.py +0 -0
  145. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/searchrequestfeatures.py +0 -0
  146. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/security.py +0 -0
  147. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/sortoption.py +0 -0
  148. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/sparseembedding.py +0 -0
  149. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/taskresponse.py +0 -0
  150. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/taskstatus.py +0 -0
  151. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/taxonomycreate.py +0 -0
  152. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/taxonomyextractionconfig.py +0 -0
  153. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/taxonomymodel.py +0 -0
  154. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/taxonomynode.py +0 -0
  155. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/taxonomynodecreate.py +0 -0
  156. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/taxonomyupdate.py +0 -0
  157. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/textindexparams.py +0 -0
  158. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/textsettings.py +0 -0
  159. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/tokenizertype.py +0 -0
  160. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/update_api_key_v1_organizations_users_user_email_api_keys_key_name_patchop.py +0 -0
  161. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/update_collection_v1_collections_collection_putop.py +0 -0
  162. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/update_namespace_v1_namespaces_namespace_putop.py +0 -0
  163. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/update_node_v1_entities_taxonomies_nodes_node_patchop.py +0 -0
  164. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/update_taxonomy_v1_entities_taxonomies_taxonomy_patchop.py +0 -0
  165. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/updateassetrequest.py +0 -0
  166. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/updatenamespacerequest.py +0 -0
  167. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/usage.py +0 -0
  168. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/usermodel_input.py +0 -0
  169. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/usermodel_output.py +0 -0
  170. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/uuidindexparams.py +0 -0
  171. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/validationerror.py +0 -0
  172. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/vectortype.py +0 -0
  173. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/videodescribesettings.py +0 -0
  174. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/videoreadsettings.py +0 -0
  175. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/videosettings.py +0 -0
  176. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/models/videotranscriptionsettings.py +0 -0
  177. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/py.typed +0 -0
  178. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/sdk.py +0 -0
  179. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/sdkconfiguration.py +0 -0
  180. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/types/__init__.py +0 -0
  181. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/types/basemodel.py +0 -0
  182. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/utils/__init__.py +0 -0
  183. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/utils/annotations.py +0 -0
  184. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/utils/enums.py +0 -0
  185. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/utils/eventstreaming.py +0 -0
  186. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/utils/forms.py +0 -0
  187. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/utils/headers.py +0 -0
  188. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/utils/logger.py +0 -0
  189. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/utils/metadata.py +0 -0
  190. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/utils/queryparams.py +0 -0
  191. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/utils/requestbodies.py +0 -0
  192. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/utils/retries.py +0 -0
  193. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/utils/security.py +0 -0
  194. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/utils/serializers.py +0 -0
  195. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/utils/url.py +0 -0
  196. {mixpeek-0.17.2 → mixpeek-0.17.4}/src/mixpeek/utils/values.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mixpeek
3
- Version: 0.17.2
3
+ Version: 0.17.4
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Speakeasy
6
6
  Requires-Python: >=3.9
@@ -301,11 +301,12 @@ By default, an API error will raise a models.APIError exception, which has the f
301
301
 
302
302
  When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `get_organization_v1_organizations_get_async` method may raise the following exceptions:
303
303
 
304
- | Error Type | Status Code | Content Type |
305
- | -------------------------- | ----------------------- | ---------------- |
306
- | models.ErrorResponse | 400, 401, 403, 404, 500 | application/json |
307
- | models.HTTPValidationError | 422 | application/json |
308
- | models.APIError | 4XX, 5XX | \*/\* |
304
+ | Error Type | Status Code | Content Type |
305
+ | -------------------------- | ------------------ | ---------------- |
306
+ | models.ErrorResponse | 400, 401, 403, 404 | application/json |
307
+ | models.HTTPValidationError | 422 | application/json |
308
+ | models.ErrorResponse | 500 | application/json |
309
+ | models.APIError | 4XX, 5XX | \*/\* |
309
310
 
310
311
  ### Example
311
312
 
@@ -330,6 +331,9 @@ with Mixpeek(
330
331
  except models.HTTPValidationError as e:
331
332
  # handle e.data: models.HTTPValidationErrorData
332
333
  raise(e)
334
+ except models.ErrorResponse as e:
335
+ # handle e.data: models.ErrorResponseData
336
+ raise(e)
333
337
  except models.APIError as e:
334
338
  # handle exception
335
339
  raise(e)
@@ -280,11 +280,12 @@ By default, an API error will raise a models.APIError exception, which has the f
280
280
 
281
281
  When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `get_organization_v1_organizations_get_async` method may raise the following exceptions:
282
282
 
283
- | Error Type | Status Code | Content Type |
284
- | -------------------------- | ----------------------- | ---------------- |
285
- | models.ErrorResponse | 400, 401, 403, 404, 500 | application/json |
286
- | models.HTTPValidationError | 422 | application/json |
287
- | models.APIError | 4XX, 5XX | \*/\* |
283
+ | Error Type | Status Code | Content Type |
284
+ | -------------------------- | ------------------ | ---------------- |
285
+ | models.ErrorResponse | 400, 401, 403, 404 | application/json |
286
+ | models.HTTPValidationError | 422 | application/json |
287
+ | models.ErrorResponse | 500 | application/json |
288
+ | models.APIError | 4XX, 5XX | \*/\* |
288
289
 
289
290
  ### Example
290
291
 
@@ -309,6 +310,9 @@ with Mixpeek(
309
310
  except models.HTTPValidationError as e:
310
311
  # handle e.data: models.HTTPValidationErrorData
311
312
  raise(e)
313
+ except models.ErrorResponse as e:
314
+ # handle e.data: models.ErrorResponseData
315
+ raise(e)
312
316
  except models.APIError as e:
313
317
  # handle exception
314
318
  raise(e)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mixpeek"
3
- version = "0.17.2"
3
+ version = "0.17.4"
4
4
  description = "Python Client SDK Generated by Speakeasy."
5
5
  authors = [{ name = "Speakeasy" },]
6
6
  readme = "README-PYPI.md"
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "mixpeek"
6
- __version__: str = "0.17.2"
6
+ __version__: str = "0.17.4"
7
7
  __openapi_doc_version__: str = "0.81"
8
- __gen_version__: str = "2.493.4"
9
- __user_agent__: str = "speakeasy-sdk/python 0.17.2 2.493.4 0.81 mixpeek"
8
+ __gen_version__: str = "2.493.19"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.17.4 2.493.19 0.81 mixpeek"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -87,14 +87,22 @@ class Assets(BaseSDK):
87
87
  if utils.match_response(http_res, "200", "application/json"):
88
88
  return utils.unmarshal_json(http_res.text, models.AssetResponse)
89
89
  if utils.match_response(
90
- http_res, ["400", "401", "403", "404", "500"], "application/json"
90
+ http_res, ["400", "401", "403", "404"], "application/json"
91
91
  ):
92
92
  data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
93
93
  raise models.ErrorResponse(data=data)
94
94
  if utils.match_response(http_res, "422", "application/json"):
95
95
  data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
96
96
  raise models.HTTPValidationError(data=data)
97
- if utils.match_response(http_res, ["4XX", "5XX"], "*"):
97
+ if utils.match_response(http_res, "500", "application/json"):
98
+ data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
99
+ raise models.ErrorResponse(data=data)
100
+ if utils.match_response(http_res, "4XX", "*"):
101
+ http_res_text = utils.stream_to_text(http_res)
102
+ raise models.APIError(
103
+ "API error occurred", http_res.status_code, http_res_text, http_res
104
+ )
105
+ if utils.match_response(http_res, "5XX", "*"):
98
106
  http_res_text = utils.stream_to_text(http_res)
99
107
  raise models.APIError(
100
108
  "API error occurred", http_res.status_code, http_res_text, http_res
@@ -187,14 +195,22 @@ class Assets(BaseSDK):
187
195
  if utils.match_response(http_res, "200", "application/json"):
188
196
  return utils.unmarshal_json(http_res.text, models.AssetResponse)
189
197
  if utils.match_response(
190
- http_res, ["400", "401", "403", "404", "500"], "application/json"
198
+ http_res, ["400", "401", "403", "404"], "application/json"
191
199
  ):
192
200
  data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
193
201
  raise models.ErrorResponse(data=data)
194
202
  if utils.match_response(http_res, "422", "application/json"):
195
203
  data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
196
204
  raise models.HTTPValidationError(data=data)
197
- if utils.match_response(http_res, ["4XX", "5XX"], "*"):
205
+ if utils.match_response(http_res, "500", "application/json"):
206
+ data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
207
+ raise models.ErrorResponse(data=data)
208
+ if utils.match_response(http_res, "4XX", "*"):
209
+ http_res_text = await utils.stream_to_text_async(http_res)
210
+ raise models.APIError(
211
+ "API error occurred", http_res.status_code, http_res_text, http_res
212
+ )
213
+ if utils.match_response(http_res, "5XX", "*"):
198
214
  http_res_text = await utils.stream_to_text_async(http_res)
199
215
  raise models.APIError(
200
216
  "API error occurred", http_res.status_code, http_res_text, http_res
@@ -285,14 +301,22 @@ class Assets(BaseSDK):
285
301
  if utils.match_response(http_res, "200", "application/json"):
286
302
  return utils.unmarshal_json(http_res.text, Any)
287
303
  if utils.match_response(
288
- http_res, ["400", "401", "403", "404", "500"], "application/json"
304
+ http_res, ["400", "401", "403", "404"], "application/json"
289
305
  ):
290
306
  data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
291
307
  raise models.ErrorResponse(data=data)
292
308
  if utils.match_response(http_res, "422", "application/json"):
293
309
  data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
294
310
  raise models.HTTPValidationError(data=data)
295
- if utils.match_response(http_res, ["4XX", "5XX"], "*"):
311
+ if utils.match_response(http_res, "500", "application/json"):
312
+ data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
313
+ raise models.ErrorResponse(data=data)
314
+ if utils.match_response(http_res, "4XX", "*"):
315
+ http_res_text = utils.stream_to_text(http_res)
316
+ raise models.APIError(
317
+ "API error occurred", http_res.status_code, http_res_text, http_res
318
+ )
319
+ if utils.match_response(http_res, "5XX", "*"):
296
320
  http_res_text = utils.stream_to_text(http_res)
297
321
  raise models.APIError(
298
322
  "API error occurred", http_res.status_code, http_res_text, http_res
@@ -383,14 +407,22 @@ class Assets(BaseSDK):
383
407
  if utils.match_response(http_res, "200", "application/json"):
384
408
  return utils.unmarshal_json(http_res.text, Any)
385
409
  if utils.match_response(
386
- http_res, ["400", "401", "403", "404", "500"], "application/json"
410
+ http_res, ["400", "401", "403", "404"], "application/json"
387
411
  ):
388
412
  data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
389
413
  raise models.ErrorResponse(data=data)
390
414
  if utils.match_response(http_res, "422", "application/json"):
391
415
  data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
392
416
  raise models.HTTPValidationError(data=data)
393
- if utils.match_response(http_res, ["4XX", "5XX"], "*"):
417
+ if utils.match_response(http_res, "500", "application/json"):
418
+ data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
419
+ raise models.ErrorResponse(data=data)
420
+ if utils.match_response(http_res, "4XX", "*"):
421
+ http_res_text = await utils.stream_to_text_async(http_res)
422
+ raise models.APIError(
423
+ "API error occurred", http_res.status_code, http_res_text, http_res
424
+ )
425
+ if utils.match_response(http_res, "5XX", "*"):
394
426
  http_res_text = await utils.stream_to_text_async(http_res)
395
427
  raise models.APIError(
396
428
  "API error occurred", http_res.status_code, http_res_text, http_res
@@ -503,14 +535,22 @@ class Assets(BaseSDK):
503
535
  if utils.match_response(http_res, "200", "application/json"):
504
536
  return utils.unmarshal_json(http_res.text, models.AssetResponse)
505
537
  if utils.match_response(
506
- http_res, ["400", "401", "403", "404", "500"], "application/json"
538
+ http_res, ["400", "401", "403", "404"], "application/json"
507
539
  ):
508
540
  data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
509
541
  raise models.ErrorResponse(data=data)
510
542
  if utils.match_response(http_res, "422", "application/json"):
511
543
  data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
512
544
  raise models.HTTPValidationError(data=data)
513
- if utils.match_response(http_res, ["4XX", "5XX"], "*"):
545
+ if utils.match_response(http_res, "500", "application/json"):
546
+ data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
547
+ raise models.ErrorResponse(data=data)
548
+ if utils.match_response(http_res, "4XX", "*"):
549
+ http_res_text = utils.stream_to_text(http_res)
550
+ raise models.APIError(
551
+ "API error occurred", http_res.status_code, http_res_text, http_res
552
+ )
553
+ if utils.match_response(http_res, "5XX", "*"):
514
554
  http_res_text = utils.stream_to_text(http_res)
515
555
  raise models.APIError(
516
556
  "API error occurred", http_res.status_code, http_res_text, http_res
@@ -623,14 +663,22 @@ class Assets(BaseSDK):
623
663
  if utils.match_response(http_res, "200", "application/json"):
624
664
  return utils.unmarshal_json(http_res.text, models.AssetResponse)
625
665
  if utils.match_response(
626
- http_res, ["400", "401", "403", "404", "500"], "application/json"
666
+ http_res, ["400", "401", "403", "404"], "application/json"
627
667
  ):
628
668
  data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
629
669
  raise models.ErrorResponse(data=data)
630
670
  if utils.match_response(http_res, "422", "application/json"):
631
671
  data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
632
672
  raise models.HTTPValidationError(data=data)
633
- if utils.match_response(http_res, ["4XX", "5XX"], "*"):
673
+ if utils.match_response(http_res, "500", "application/json"):
674
+ data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
675
+ raise models.ErrorResponse(data=data)
676
+ if utils.match_response(http_res, "4XX", "*"):
677
+ http_res_text = await utils.stream_to_text_async(http_res)
678
+ raise models.APIError(
679
+ "API error occurred", http_res.status_code, http_res_text, http_res
680
+ )
681
+ if utils.match_response(http_res, "5XX", "*"):
634
682
  http_res_text = await utils.stream_to_text_async(http_res)
635
683
  raise models.APIError(
636
684
  "API error occurred", http_res.status_code, http_res_text, http_res
@@ -743,14 +791,22 @@ class Assets(BaseSDK):
743
791
  if utils.match_response(http_res, "200", "application/json"):
744
792
  return utils.unmarshal_json(http_res.text, models.AssetResponse)
745
793
  if utils.match_response(
746
- http_res, ["400", "401", "403", "404", "500"], "application/json"
794
+ http_res, ["400", "401", "403", "404"], "application/json"
747
795
  ):
748
796
  data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
749
797
  raise models.ErrorResponse(data=data)
750
798
  if utils.match_response(http_res, "422", "application/json"):
751
799
  data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
752
800
  raise models.HTTPValidationError(data=data)
753
- if utils.match_response(http_res, ["4XX", "5XX"], "*"):
801
+ if utils.match_response(http_res, "500", "application/json"):
802
+ data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
803
+ raise models.ErrorResponse(data=data)
804
+ if utils.match_response(http_res, "4XX", "*"):
805
+ http_res_text = utils.stream_to_text(http_res)
806
+ raise models.APIError(
807
+ "API error occurred", http_res.status_code, http_res_text, http_res
808
+ )
809
+ if utils.match_response(http_res, "5XX", "*"):
754
810
  http_res_text = utils.stream_to_text(http_res)
755
811
  raise models.APIError(
756
812
  "API error occurred", http_res.status_code, http_res_text, http_res
@@ -863,14 +919,22 @@ class Assets(BaseSDK):
863
919
  if utils.match_response(http_res, "200", "application/json"):
864
920
  return utils.unmarshal_json(http_res.text, models.AssetResponse)
865
921
  if utils.match_response(
866
- http_res, ["400", "401", "403", "404", "500"], "application/json"
922
+ http_res, ["400", "401", "403", "404"], "application/json"
867
923
  ):
868
924
  data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
869
925
  raise models.ErrorResponse(data=data)
870
926
  if utils.match_response(http_res, "422", "application/json"):
871
927
  data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
872
928
  raise models.HTTPValidationError(data=data)
873
- if utils.match_response(http_res, ["4XX", "5XX"], "*"):
929
+ if utils.match_response(http_res, "500", "application/json"):
930
+ data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
931
+ raise models.ErrorResponse(data=data)
932
+ if utils.match_response(http_res, "4XX", "*"):
933
+ http_res_text = await utils.stream_to_text_async(http_res)
934
+ raise models.APIError(
935
+ "API error occurred", http_res.status_code, http_res_text, http_res
936
+ )
937
+ if utils.match_response(http_res, "5XX", "*"):
874
938
  http_res_text = await utils.stream_to_text_async(http_res)
875
939
  raise models.APIError(
876
940
  "API error occurred", http_res.status_code, http_res_text, http_res
@@ -963,14 +1027,22 @@ class Assets(BaseSDK):
963
1027
  if utils.match_response(http_res, "200", "application/json"):
964
1028
  return utils.unmarshal_json(http_res.text, models.GroupedAssetData)
965
1029
  if utils.match_response(
966
- http_res, ["400", "401", "403", "404", "500"], "application/json"
1030
+ http_res, ["400", "401", "403", "404"], "application/json"
967
1031
  ):
968
1032
  data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
969
1033
  raise models.ErrorResponse(data=data)
970
1034
  if utils.match_response(http_res, "422", "application/json"):
971
1035
  data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
972
1036
  raise models.HTTPValidationError(data=data)
973
- if utils.match_response(http_res, ["4XX", "5XX"], "*"):
1037
+ if utils.match_response(http_res, "500", "application/json"):
1038
+ data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1039
+ raise models.ErrorResponse(data=data)
1040
+ if utils.match_response(http_res, "4XX", "*"):
1041
+ http_res_text = utils.stream_to_text(http_res)
1042
+ raise models.APIError(
1043
+ "API error occurred", http_res.status_code, http_res_text, http_res
1044
+ )
1045
+ if utils.match_response(http_res, "5XX", "*"):
974
1046
  http_res_text = utils.stream_to_text(http_res)
975
1047
  raise models.APIError(
976
1048
  "API error occurred", http_res.status_code, http_res_text, http_res
@@ -1063,14 +1135,22 @@ class Assets(BaseSDK):
1063
1135
  if utils.match_response(http_res, "200", "application/json"):
1064
1136
  return utils.unmarshal_json(http_res.text, models.GroupedAssetData)
1065
1137
  if utils.match_response(
1066
- http_res, ["400", "401", "403", "404", "500"], "application/json"
1138
+ http_res, ["400", "401", "403", "404"], "application/json"
1067
1139
  ):
1068
1140
  data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1069
1141
  raise models.ErrorResponse(data=data)
1070
1142
  if utils.match_response(http_res, "422", "application/json"):
1071
1143
  data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1072
1144
  raise models.HTTPValidationError(data=data)
1073
- if utils.match_response(http_res, ["4XX", "5XX"], "*"):
1145
+ if utils.match_response(http_res, "500", "application/json"):
1146
+ data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1147
+ raise models.ErrorResponse(data=data)
1148
+ if utils.match_response(http_res, "4XX", "*"):
1149
+ http_res_text = await utils.stream_to_text_async(http_res)
1150
+ raise models.APIError(
1151
+ "API error occurred", http_res.status_code, http_res_text, http_res
1152
+ )
1153
+ if utils.match_response(http_res, "5XX", "*"):
1074
1154
  http_res_text = await utils.stream_to_text_async(http_res)
1075
1155
  raise models.APIError(
1076
1156
  "API error occurred", http_res.status_code, http_res_text, http_res
@@ -1200,14 +1280,22 @@ class Assets(BaseSDK):
1200
1280
  if utils.match_response(http_res, "200", "application/json"):
1201
1281
  return utils.unmarshal_json(http_res.text, models.ListAssetsResponse)
1202
1282
  if utils.match_response(
1203
- http_res, ["400", "401", "403", "404", "500"], "application/json"
1283
+ http_res, ["400", "401", "403", "404"], "application/json"
1204
1284
  ):
1205
1285
  data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1206
1286
  raise models.ErrorResponse(data=data)
1207
1287
  if utils.match_response(http_res, "422", "application/json"):
1208
1288
  data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1209
1289
  raise models.HTTPValidationError(data=data)
1210
- if utils.match_response(http_res, ["4XX", "5XX"], "*"):
1290
+ if utils.match_response(http_res, "500", "application/json"):
1291
+ data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1292
+ raise models.ErrorResponse(data=data)
1293
+ if utils.match_response(http_res, "4XX", "*"):
1294
+ http_res_text = utils.stream_to_text(http_res)
1295
+ raise models.APIError(
1296
+ "API error occurred", http_res.status_code, http_res_text, http_res
1297
+ )
1298
+ if utils.match_response(http_res, "5XX", "*"):
1211
1299
  http_res_text = utils.stream_to_text(http_res)
1212
1300
  raise models.APIError(
1213
1301
  "API error occurred", http_res.status_code, http_res_text, http_res
@@ -1337,14 +1425,22 @@ class Assets(BaseSDK):
1337
1425
  if utils.match_response(http_res, "200", "application/json"):
1338
1426
  return utils.unmarshal_json(http_res.text, models.ListAssetsResponse)
1339
1427
  if utils.match_response(
1340
- http_res, ["400", "401", "403", "404", "500"], "application/json"
1428
+ http_res, ["400", "401", "403", "404"], "application/json"
1341
1429
  ):
1342
1430
  data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1343
1431
  raise models.ErrorResponse(data=data)
1344
1432
  if utils.match_response(http_res, "422", "application/json"):
1345
1433
  data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1346
1434
  raise models.HTTPValidationError(data=data)
1347
- if utils.match_response(http_res, ["4XX", "5XX"], "*"):
1435
+ if utils.match_response(http_res, "500", "application/json"):
1436
+ data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1437
+ raise models.ErrorResponse(data=data)
1438
+ if utils.match_response(http_res, "4XX", "*"):
1439
+ http_res_text = await utils.stream_to_text_async(http_res)
1440
+ raise models.APIError(
1441
+ "API error occurred", http_res.status_code, http_res_text, http_res
1442
+ )
1443
+ if utils.match_response(http_res, "5XX", "*"):
1348
1444
  http_res_text = await utils.stream_to_text_async(http_res)
1349
1445
  raise models.APIError(
1350
1446
  "API error occurred", http_res.status_code, http_res_text, http_res
@@ -1468,14 +1564,22 @@ class Assets(BaseSDK):
1468
1564
  if utils.match_response(http_res, "200", "application/json"):
1469
1565
  return utils.unmarshal_json(http_res.text, models.ListAssetsResponse)
1470
1566
  if utils.match_response(
1471
- http_res, ["400", "401", "403", "404", "500"], "application/json"
1567
+ http_res, ["400", "401", "403", "404"], "application/json"
1472
1568
  ):
1473
1569
  data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1474
1570
  raise models.ErrorResponse(data=data)
1475
1571
  if utils.match_response(http_res, "422", "application/json"):
1476
1572
  data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1477
1573
  raise models.HTTPValidationError(data=data)
1478
- if utils.match_response(http_res, ["4XX", "5XX"], "*"):
1574
+ if utils.match_response(http_res, "500", "application/json"):
1575
+ data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1576
+ raise models.ErrorResponse(data=data)
1577
+ if utils.match_response(http_res, "4XX", "*"):
1578
+ http_res_text = utils.stream_to_text(http_res)
1579
+ raise models.APIError(
1580
+ "API error occurred", http_res.status_code, http_res_text, http_res
1581
+ )
1582
+ if utils.match_response(http_res, "5XX", "*"):
1479
1583
  http_res_text = utils.stream_to_text(http_res)
1480
1584
  raise models.APIError(
1481
1585
  "API error occurred", http_res.status_code, http_res_text, http_res
@@ -1599,14 +1703,22 @@ class Assets(BaseSDK):
1599
1703
  if utils.match_response(http_res, "200", "application/json"):
1600
1704
  return utils.unmarshal_json(http_res.text, models.ListAssetsResponse)
1601
1705
  if utils.match_response(
1602
- http_res, ["400", "401", "403", "404", "500"], "application/json"
1706
+ http_res, ["400", "401", "403", "404"], "application/json"
1603
1707
  ):
1604
1708
  data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1605
1709
  raise models.ErrorResponse(data=data)
1606
1710
  if utils.match_response(http_res, "422", "application/json"):
1607
1711
  data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
1608
1712
  raise models.HTTPValidationError(data=data)
1609
- if utils.match_response(http_res, ["4XX", "5XX"], "*"):
1713
+ if utils.match_response(http_res, "500", "application/json"):
1714
+ data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
1715
+ raise models.ErrorResponse(data=data)
1716
+ if utils.match_response(http_res, "4XX", "*"):
1717
+ http_res_text = await utils.stream_to_text_async(http_res)
1718
+ raise models.APIError(
1719
+ "API error occurred", http_res.status_code, http_res_text, http_res
1720
+ )
1721
+ if utils.match_response(http_res, "5XX", "*"):
1610
1722
  http_res_text = await utils.stream_to_text_async(http_res)
1611
1723
  raise models.APIError(
1612
1724
  "API error occurred", http_res.status_code, http_res_text, http_res