mixpeek 0.13.2__tar.gz → 0.13.3__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.
- {mixpeek-0.13.2 → mixpeek-0.13.3}/PKG-INFO +6 -9
- {mixpeek-0.13.2 → mixpeek-0.13.3}/README-PYPI.md +5 -8
- {mixpeek-0.13.2 → mixpeek-0.13.3}/pyproject.toml +1 -1
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/_version.py +1 -1
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/__init__.py +5 -3
- mixpeek-0.13.3/src/mixpeek/models/errordetail.py +58 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/errorresponse.py +8 -4
- mixpeek-0.13.3/src/mixpeek/sdk.py +135 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/sdkconfiguration.py +2 -2
- mixpeek-0.13.2/src/mixpeek/models/errormessage.py +0 -13
- mixpeek-0.13.2/src/mixpeek/sdk.py +0 -281
- {mixpeek-0.13.2 → mixpeek-0.13.3}/py.typed +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/__init__.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/_hooks/__init__.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/_hooks/registration.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/_hooks/sdkhooks.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/_hooks/types.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/assets.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/basesdk.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/collections.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/featureextractors.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/features.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/health.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/httpclient.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/ingest.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/interactions.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/actionusage.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/apierror.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/apikey.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/apikeyupdate.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/assetfeatures.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/assetresponse.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/assets_model_searchquery.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/assetupdate.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/availableindexesresponse.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/availablemodels.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/boolindexparams.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/collectionmodel.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/collectionresult.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/create_api_key_organizations_users_user_email_api_keys_postop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/create_collection_collections_postop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/create_interaction_features_search_interactions_postop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/createcollectionrequest.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/createnamespacerequest.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/datetimeindexparams.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/dateusage.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/db_model_paginationresponse.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/db_model_taskresponse.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/delete_api_key_organizations_users_user_email_api_keys_key_name_deleteop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/delete_asset_assets_asset_id_deleteop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/delete_collection_collections_collection_deleteop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/delete_feature_features_feature_id_deleteop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/delete_interaction_features_search_interactions_interaction_id_deleteop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/delete_namespace_namespaces_namespace_deleteop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/delete_user_organizations_users_user_email_deleteop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/denseembedding.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/embeddingrequest.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/embeddingresponse.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/facedetectsettings.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/featureextractionembeddingrequest.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/featureresponse.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/features_model_paginationresponse.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/featureupdaterequest.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/filtercondition.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/floatindexparams.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/full_asset_update_assets_asset_id_putop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/full_feature_update_features_feature_id_putop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/geoindexparams.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/get_asset_assets_asset_id_getop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/get_asset_with_features_assets_asset_id_features_getop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/get_collection_collections_collection_getop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/get_feature_features_feature_id_getop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/get_interaction_features_search_interactions_interaction_id_getop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/get_namespace_namespaces_namespace_getop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/get_task_tasks_task_id_getop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/get_user_organizations_users_user_email_getop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/groupbyoptions.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/groupbyoptionsasset.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/groupedassetdata.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/healthcheckresponse.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/httpvalidationerror.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/imagedescribesettings.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/imagedetectsettings.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/imagereadsettings.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/imagesettings.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/ingest_image_url_ingest_images_url_postop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/ingest_text_ingest_text_postop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/ingest_video_url_ingest_videos_url_postop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/inputtype.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/integerindexparams.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/interactionresponse.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/interactiontype.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/jsonimageoutputsettings.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/jsontextoutputsettings.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/jsonvideooutputsettings.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/keywordindexparams.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/kill_task_tasks_task_id_deleteop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/list_assets_assets_postop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/list_collections_collections_getop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/list_features_features_postop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/list_interactions_features_search_interactions_getop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/listassetsrequest.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/listassetsresponse.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/listcollectionsresponse.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/listfeaturesrequest.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/listfeaturesresponse.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/logicaloperator_input.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/logicaloperator_output.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/logodetectsettings.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/modality.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/modeldetails.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/namespaceresponse.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/organizationmodel.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/partial_asset_update_assets_asset_id_patchop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/payloadindexconfig.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/payloadindextype.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/payloadschematype.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/percolaterequest.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/permission.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/processimageurlinput.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/processtextinput.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/processvideourlinput.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/querysettings.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/rerankingoptions.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/search_assets_assets_search_postop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/search_features_features_search_postop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/search_model_searchquery_input.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/searchassetsrequest.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/searchinteraction.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/searchquery_output.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/searchrequestfeatures_input.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/searchrequestfeatures_output.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/sortoption.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/sparseembedding.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/tasks_model_taskresponse.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/taskstatus.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/textindexparams.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/textsettings.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/tokenizertype.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/update_api_key_organizations_users_user_email_api_keys_key_name_patchop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/update_collection_collections_collection_putop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/update_namespace_namespaces_namespace_putop.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/updateassetrequest.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/updatenamespacerequest.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/usage.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/usermodel_input.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/usermodel_output.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/uuidindexparams.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/validationerror.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/vectormodel.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/vectortype.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/videodescribesettings.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/videodetectsettings.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/videoreadsettings.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/videosettings.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/models/videotranscriptionsettings.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/namespaces.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/organizations.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/py.typed +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/searchinteractions.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/tasks.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/types/__init__.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/types/basemodel.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/utils/__init__.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/utils/annotations.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/utils/enums.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/utils/eventstreaming.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/utils/forms.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/utils/headers.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/utils/logger.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/utils/metadata.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/utils/queryparams.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/utils/requestbodies.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/utils/retries.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/utils/security.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/utils/serializers.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/utils/url.py +0 -0
- {mixpeek-0.13.2 → mixpeek-0.13.3}/src/mixpeek/utils/values.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: mixpeek
|
3
|
-
Version: 0.13.
|
3
|
+
Version: 0.13.3
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
5
5
|
Home-page: https://github.com/mixpeek/python-sdk.git
|
6
6
|
Author: Speakeasy
|
@@ -93,7 +93,7 @@ from mixpeek import Mixpeek
|
|
93
93
|
|
94
94
|
with Mixpeek() as mixpeek:
|
95
95
|
|
96
|
-
res = mixpeek.
|
96
|
+
res = mixpeek.organizations.get()
|
97
97
|
|
98
98
|
# Handle response
|
99
99
|
print(res)
|
@@ -110,7 +110,7 @@ from mixpeek import Mixpeek
|
|
110
110
|
async def main():
|
111
111
|
async with Mixpeek() as mixpeek:
|
112
112
|
|
113
|
-
res = await mixpeek.
|
113
|
+
res = await mixpeek.organizations.get_async()
|
114
114
|
|
115
115
|
# Handle response
|
116
116
|
print(res)
|
@@ -169,9 +169,6 @@ asyncio.run(main())
|
|
169
169
|
|
170
170
|
* [list](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/interactions/README.md#list) - List Interactions
|
171
171
|
|
172
|
-
### [Mixpeek SDK](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/mixpeek/README.md)
|
173
|
-
|
174
|
-
* [debug_openapi_debug_openapi_get](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/mixpeek/README.md#debug_openapi_debug_openapi_get) - Debug Openapi
|
175
172
|
|
176
173
|
### [namespaces](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/namespaces/README.md)
|
177
174
|
|
@@ -219,7 +216,7 @@ from mixpeek.utils import BackoffStrategy, RetryConfig
|
|
219
216
|
|
220
217
|
with Mixpeek() as mixpeek:
|
221
218
|
|
222
|
-
res = mixpeek.
|
219
|
+
res = mixpeek.organizations.get(,
|
223
220
|
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
|
224
221
|
|
225
222
|
# Handle response
|
@@ -236,7 +233,7 @@ with Mixpeek(
|
|
236
233
|
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
|
237
234
|
) as mixpeek:
|
238
235
|
|
239
|
-
res = mixpeek.
|
236
|
+
res = mixpeek.organizations.get()
|
240
237
|
|
241
238
|
# Handle response
|
242
239
|
print(res)
|
@@ -305,7 +302,7 @@ with Mixpeek(
|
|
305
302
|
server_url="https://api.mixpeek.com/",
|
306
303
|
) as mixpeek:
|
307
304
|
|
308
|
-
res = mixpeek.
|
305
|
+
res = mixpeek.organizations.get()
|
309
306
|
|
310
307
|
# Handle response
|
311
308
|
print(res)
|
@@ -70,7 +70,7 @@ from mixpeek import Mixpeek
|
|
70
70
|
|
71
71
|
with Mixpeek() as mixpeek:
|
72
72
|
|
73
|
-
res = mixpeek.
|
73
|
+
res = mixpeek.organizations.get()
|
74
74
|
|
75
75
|
# Handle response
|
76
76
|
print(res)
|
@@ -87,7 +87,7 @@ from mixpeek import Mixpeek
|
|
87
87
|
async def main():
|
88
88
|
async with Mixpeek() as mixpeek:
|
89
89
|
|
90
|
-
res = await mixpeek.
|
90
|
+
res = await mixpeek.organizations.get_async()
|
91
91
|
|
92
92
|
# Handle response
|
93
93
|
print(res)
|
@@ -146,9 +146,6 @@ asyncio.run(main())
|
|
146
146
|
|
147
147
|
* [list](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/interactions/README.md#list) - List Interactions
|
148
148
|
|
149
|
-
### [Mixpeek SDK](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/mixpeek/README.md)
|
150
|
-
|
151
|
-
* [debug_openapi_debug_openapi_get](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/mixpeek/README.md#debug_openapi_debug_openapi_get) - Debug Openapi
|
152
149
|
|
153
150
|
### [namespaces](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/namespaces/README.md)
|
154
151
|
|
@@ -196,7 +193,7 @@ from mixpeek.utils import BackoffStrategy, RetryConfig
|
|
196
193
|
|
197
194
|
with Mixpeek() as mixpeek:
|
198
195
|
|
199
|
-
res = mixpeek.
|
196
|
+
res = mixpeek.organizations.get(,
|
200
197
|
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
|
201
198
|
|
202
199
|
# Handle response
|
@@ -213,7 +210,7 @@ with Mixpeek(
|
|
213
210
|
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
|
214
211
|
) as mixpeek:
|
215
212
|
|
216
|
-
res = mixpeek.
|
213
|
+
res = mixpeek.organizations.get()
|
217
214
|
|
218
215
|
# Handle response
|
219
216
|
print(res)
|
@@ -282,7 +279,7 @@ with Mixpeek(
|
|
282
279
|
server_url="https://api.mixpeek.com/",
|
283
280
|
) as mixpeek:
|
284
281
|
|
285
|
-
res = mixpeek.
|
282
|
+
res = mixpeek.organizations.get()
|
286
283
|
|
287
284
|
# Handle response
|
288
285
|
print(res)
|
@@ -101,7 +101,7 @@ from .embeddingresponse import (
|
|
101
101
|
EmbeddingResponseTypedDict,
|
102
102
|
EmbeddingTypedDict,
|
103
103
|
)
|
104
|
-
from .
|
104
|
+
from .errordetail import Details, DetailsTypedDict, ErrorDetail, ErrorDetailTypedDict
|
105
105
|
from .errorresponse import ErrorResponse, ErrorResponseData
|
106
106
|
from .facedetectsettings import FaceDetectSettings, FaceDetectSettingsTypedDict
|
107
107
|
from .featureextractionembeddingrequest import (
|
@@ -492,6 +492,8 @@ __all__ = [
|
|
492
492
|
"DeleteUserOrganizationsUsersUserEmailDeleteRequestTypedDict",
|
493
493
|
"DenseEmbedding",
|
494
494
|
"DenseEmbeddingTypedDict",
|
495
|
+
"Details",
|
496
|
+
"DetailsTypedDict",
|
495
497
|
"Direction",
|
496
498
|
"Embedding",
|
497
499
|
"EmbeddingRequest",
|
@@ -499,8 +501,8 @@ __all__ = [
|
|
499
501
|
"EmbeddingResponse",
|
500
502
|
"EmbeddingResponseTypedDict",
|
501
503
|
"EmbeddingTypedDict",
|
502
|
-
"
|
503
|
-
"
|
504
|
+
"ErrorDetail",
|
505
|
+
"ErrorDetailTypedDict",
|
504
506
|
"ErrorResponse",
|
505
507
|
"ErrorResponseData",
|
506
508
|
"FaceDetectSettings",
|
@@ -0,0 +1,58 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
5
|
+
from pydantic import model_serializer
|
6
|
+
from typing_extensions import NotRequired, TypedDict
|
7
|
+
|
8
|
+
|
9
|
+
class DetailsTypedDict(TypedDict):
|
10
|
+
pass
|
11
|
+
|
12
|
+
|
13
|
+
class Details(BaseModel):
|
14
|
+
pass
|
15
|
+
|
16
|
+
|
17
|
+
class ErrorDetailTypedDict(TypedDict):
|
18
|
+
message: str
|
19
|
+
type: str
|
20
|
+
details: NotRequired[Nullable[DetailsTypedDict]]
|
21
|
+
|
22
|
+
|
23
|
+
class ErrorDetail(BaseModel):
|
24
|
+
message: str
|
25
|
+
|
26
|
+
type: str
|
27
|
+
|
28
|
+
details: OptionalNullable[Details] = UNSET
|
29
|
+
|
30
|
+
@model_serializer(mode="wrap")
|
31
|
+
def serialize_model(self, handler):
|
32
|
+
optional_fields = ["details"]
|
33
|
+
nullable_fields = ["details"]
|
34
|
+
null_default_fields = []
|
35
|
+
|
36
|
+
serialized = handler(self)
|
37
|
+
|
38
|
+
m = {}
|
39
|
+
|
40
|
+
for n, f in self.model_fields.items():
|
41
|
+
k = f.alias or n
|
42
|
+
val = serialized.get(k)
|
43
|
+
serialized.pop(k, None)
|
44
|
+
|
45
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
46
|
+
is_set = (
|
47
|
+
self.__pydantic_fields_set__.intersection({n})
|
48
|
+
or k in null_default_fields
|
49
|
+
) # pylint: disable=no-member
|
50
|
+
|
51
|
+
if val is not None and val != UNSET_SENTINEL:
|
52
|
+
m[k] = val
|
53
|
+
elif val != UNSET_SENTINEL and (
|
54
|
+
not k in optional_fields or (optional_nullable and is_set)
|
55
|
+
):
|
56
|
+
m[k] = val
|
57
|
+
|
58
|
+
return m
|
@@ -1,14 +1,18 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
from .
|
4
|
+
from .errordetail import ErrorDetail
|
5
5
|
from mixpeek import utils
|
6
|
-
from mixpeek.types import BaseModel
|
7
|
-
from typing import
|
6
|
+
from mixpeek.types import BaseModel
|
7
|
+
from typing import Optional
|
8
8
|
|
9
9
|
|
10
10
|
class ErrorResponseData(BaseModel):
|
11
|
-
|
11
|
+
status: int
|
12
|
+
|
13
|
+
error: ErrorDetail
|
14
|
+
|
15
|
+
success: Optional[bool] = False
|
12
16
|
|
13
17
|
|
14
18
|
class ErrorResponse(Exception):
|
@@ -0,0 +1,135 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from .basesdk import BaseSDK
|
4
|
+
from .httpclient import AsyncHttpClient, HttpClient
|
5
|
+
from .sdkconfiguration import SDKConfiguration
|
6
|
+
from .utils.logger import Logger, get_default_logger
|
7
|
+
from .utils.retries import RetryConfig
|
8
|
+
import httpx
|
9
|
+
from mixpeek import utils
|
10
|
+
from mixpeek._hooks import SDKHooks
|
11
|
+
from mixpeek.assets import Assets
|
12
|
+
from mixpeek.collections import Collections
|
13
|
+
from mixpeek.featureextractors import FeatureExtractors
|
14
|
+
from mixpeek.features import Features
|
15
|
+
from mixpeek.health import Health
|
16
|
+
from mixpeek.ingest import Ingest
|
17
|
+
from mixpeek.interactions import Interactions
|
18
|
+
from mixpeek.namespaces import Namespaces
|
19
|
+
from mixpeek.organizations import Organizations
|
20
|
+
from mixpeek.searchinteractions import SearchInteractions
|
21
|
+
from mixpeek.tasks import Tasks
|
22
|
+
from mixpeek.types import OptionalNullable, UNSET
|
23
|
+
from typing import Dict, Optional
|
24
|
+
|
25
|
+
|
26
|
+
class Mixpeek(BaseSDK):
|
27
|
+
r"""Mixpeek API: This is the Mixpeek API, providing access to various endpoints for data processing and retrieval."""
|
28
|
+
|
29
|
+
organizations: Organizations
|
30
|
+
namespaces: Namespaces
|
31
|
+
features: Features
|
32
|
+
search_interactions: SearchInteractions
|
33
|
+
interactions: Interactions
|
34
|
+
feature_extractors: FeatureExtractors
|
35
|
+
ingest: Ingest
|
36
|
+
assets: Assets
|
37
|
+
collections: Collections
|
38
|
+
tasks: Tasks
|
39
|
+
health: Health
|
40
|
+
|
41
|
+
def __init__(
|
42
|
+
self,
|
43
|
+
server_idx: Optional[int] = None,
|
44
|
+
server_url: Optional[str] = None,
|
45
|
+
url_params: Optional[Dict[str, str]] = None,
|
46
|
+
client: Optional[HttpClient] = None,
|
47
|
+
async_client: Optional[AsyncHttpClient] = None,
|
48
|
+
retry_config: OptionalNullable[RetryConfig] = UNSET,
|
49
|
+
timeout_ms: Optional[int] = None,
|
50
|
+
debug_logger: Optional[Logger] = None,
|
51
|
+
) -> None:
|
52
|
+
r"""Instantiates the SDK configuring it with the provided parameters.
|
53
|
+
|
54
|
+
:param server_idx: The index of the server to use for all methods
|
55
|
+
:param server_url: The server URL to use for all methods
|
56
|
+
:param url_params: Parameters to optionally template the server URL with
|
57
|
+
:param client: The HTTP client to use for all synchronous methods
|
58
|
+
:param async_client: The Async HTTP client to use for all asynchronous methods
|
59
|
+
:param retry_config: The retry configuration to use for all supported methods
|
60
|
+
:param timeout_ms: Optional request timeout applied to each operation in milliseconds
|
61
|
+
"""
|
62
|
+
if client is None:
|
63
|
+
client = httpx.Client()
|
64
|
+
|
65
|
+
assert issubclass(
|
66
|
+
type(client), HttpClient
|
67
|
+
), "The provided client must implement the HttpClient protocol."
|
68
|
+
|
69
|
+
if async_client is None:
|
70
|
+
async_client = httpx.AsyncClient()
|
71
|
+
|
72
|
+
if debug_logger is None:
|
73
|
+
debug_logger = get_default_logger()
|
74
|
+
|
75
|
+
assert issubclass(
|
76
|
+
type(async_client), AsyncHttpClient
|
77
|
+
), "The provided async_client must implement the AsyncHttpClient protocol."
|
78
|
+
|
79
|
+
if server_url is not None:
|
80
|
+
if url_params is not None:
|
81
|
+
server_url = utils.template_url(server_url, url_params)
|
82
|
+
|
83
|
+
BaseSDK.__init__(
|
84
|
+
self,
|
85
|
+
SDKConfiguration(
|
86
|
+
client=client,
|
87
|
+
async_client=async_client,
|
88
|
+
server_url=server_url,
|
89
|
+
server_idx=server_idx,
|
90
|
+
retry_config=retry_config,
|
91
|
+
timeout_ms=timeout_ms,
|
92
|
+
debug_logger=debug_logger,
|
93
|
+
),
|
94
|
+
)
|
95
|
+
|
96
|
+
hooks = SDKHooks()
|
97
|
+
|
98
|
+
current_server_url, *_ = self.sdk_configuration.get_server_details()
|
99
|
+
server_url, self.sdk_configuration.client = hooks.sdk_init(
|
100
|
+
current_server_url, self.sdk_configuration.client
|
101
|
+
)
|
102
|
+
if current_server_url != server_url:
|
103
|
+
self.sdk_configuration.server_url = server_url
|
104
|
+
|
105
|
+
# pylint: disable=protected-access
|
106
|
+
self.sdk_configuration.__dict__["_hooks"] = hooks
|
107
|
+
|
108
|
+
self._init_sdks()
|
109
|
+
|
110
|
+
def _init_sdks(self):
|
111
|
+
self.organizations = Organizations(self.sdk_configuration)
|
112
|
+
self.namespaces = Namespaces(self.sdk_configuration)
|
113
|
+
self.features = Features(self.sdk_configuration)
|
114
|
+
self.search_interactions = SearchInteractions(self.sdk_configuration)
|
115
|
+
self.interactions = Interactions(self.sdk_configuration)
|
116
|
+
self.feature_extractors = FeatureExtractors(self.sdk_configuration)
|
117
|
+
self.ingest = Ingest(self.sdk_configuration)
|
118
|
+
self.assets = Assets(self.sdk_configuration)
|
119
|
+
self.collections = Collections(self.sdk_configuration)
|
120
|
+
self.tasks = Tasks(self.sdk_configuration)
|
121
|
+
self.health = Health(self.sdk_configuration)
|
122
|
+
|
123
|
+
def __enter__(self):
|
124
|
+
return self
|
125
|
+
|
126
|
+
async def __aenter__(self):
|
127
|
+
return self
|
128
|
+
|
129
|
+
def __exit__(self, exc_type, exc_val, exc_tb):
|
130
|
+
if self.sdk_configuration.client is not None:
|
131
|
+
self.sdk_configuration.client.close()
|
132
|
+
|
133
|
+
async def __aexit__(self, exc_type, exc_val, exc_tb):
|
134
|
+
if self.sdk_configuration.async_client is not None:
|
135
|
+
await self.sdk_configuration.async_client.aclose()
|
@@ -24,9 +24,9 @@ class SDKConfiguration:
|
|
24
24
|
server_idx: Optional[int] = 0
|
25
25
|
language: str = "python"
|
26
26
|
openapi_doc_version: str = "0.81"
|
27
|
-
sdk_version: str = "0.13.
|
27
|
+
sdk_version: str = "0.13.3"
|
28
28
|
gen_version: str = "2.483.6"
|
29
|
-
user_agent: str = "speakeasy-sdk/python 0.13.
|
29
|
+
user_agent: str = "speakeasy-sdk/python 0.13.3 2.483.6 0.81 mixpeek"
|
30
30
|
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
|
31
31
|
timeout_ms: Optional[int] = None
|
32
32
|
|
@@ -1,13 +0,0 @@
|
|
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 typing_extensions import TypedDict
|
6
|
-
|
7
|
-
|
8
|
-
class ErrorMessageTypedDict(TypedDict):
|
9
|
-
msg: str
|
10
|
-
|
11
|
-
|
12
|
-
class ErrorMessage(BaseModel):
|
13
|
-
msg: str
|
@@ -1,281 +0,0 @@
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
-
|
3
|
-
from .basesdk import BaseSDK
|
4
|
-
from .httpclient import AsyncHttpClient, HttpClient
|
5
|
-
from .sdkconfiguration import SDKConfiguration
|
6
|
-
from .utils.logger import Logger, get_default_logger
|
7
|
-
from .utils.retries import RetryConfig
|
8
|
-
import httpx
|
9
|
-
from mixpeek import models, utils
|
10
|
-
from mixpeek._hooks import HookContext, SDKHooks
|
11
|
-
from mixpeek.assets import Assets
|
12
|
-
from mixpeek.collections import Collections
|
13
|
-
from mixpeek.featureextractors import FeatureExtractors
|
14
|
-
from mixpeek.features import Features
|
15
|
-
from mixpeek.health import Health
|
16
|
-
from mixpeek.ingest import Ingest
|
17
|
-
from mixpeek.interactions import Interactions
|
18
|
-
from mixpeek.namespaces import Namespaces
|
19
|
-
from mixpeek.organizations import Organizations
|
20
|
-
from mixpeek.searchinteractions import SearchInteractions
|
21
|
-
from mixpeek.tasks import Tasks
|
22
|
-
from mixpeek.types import OptionalNullable, UNSET
|
23
|
-
from typing import Any, Dict, Mapping, Optional
|
24
|
-
|
25
|
-
|
26
|
-
class Mixpeek(BaseSDK):
|
27
|
-
r"""Mixpeek API: This is the Mixpeek API, providing access to various endpoints for data processing and retrieval."""
|
28
|
-
|
29
|
-
organizations: Organizations
|
30
|
-
namespaces: Namespaces
|
31
|
-
features: Features
|
32
|
-
search_interactions: SearchInteractions
|
33
|
-
interactions: Interactions
|
34
|
-
feature_extractors: FeatureExtractors
|
35
|
-
ingest: Ingest
|
36
|
-
assets: Assets
|
37
|
-
collections: Collections
|
38
|
-
tasks: Tasks
|
39
|
-
health: Health
|
40
|
-
|
41
|
-
def __init__(
|
42
|
-
self,
|
43
|
-
server_idx: Optional[int] = None,
|
44
|
-
server_url: Optional[str] = None,
|
45
|
-
url_params: Optional[Dict[str, str]] = None,
|
46
|
-
client: Optional[HttpClient] = None,
|
47
|
-
async_client: Optional[AsyncHttpClient] = None,
|
48
|
-
retry_config: OptionalNullable[RetryConfig] = UNSET,
|
49
|
-
timeout_ms: Optional[int] = None,
|
50
|
-
debug_logger: Optional[Logger] = None,
|
51
|
-
) -> None:
|
52
|
-
r"""Instantiates the SDK configuring it with the provided parameters.
|
53
|
-
|
54
|
-
:param server_idx: The index of the server to use for all methods
|
55
|
-
:param server_url: The server URL to use for all methods
|
56
|
-
:param url_params: Parameters to optionally template the server URL with
|
57
|
-
:param client: The HTTP client to use for all synchronous methods
|
58
|
-
:param async_client: The Async HTTP client to use for all asynchronous methods
|
59
|
-
:param retry_config: The retry configuration to use for all supported methods
|
60
|
-
:param timeout_ms: Optional request timeout applied to each operation in milliseconds
|
61
|
-
"""
|
62
|
-
if client is None:
|
63
|
-
client = httpx.Client()
|
64
|
-
|
65
|
-
assert issubclass(
|
66
|
-
type(client), HttpClient
|
67
|
-
), "The provided client must implement the HttpClient protocol."
|
68
|
-
|
69
|
-
if async_client is None:
|
70
|
-
async_client = httpx.AsyncClient()
|
71
|
-
|
72
|
-
if debug_logger is None:
|
73
|
-
debug_logger = get_default_logger()
|
74
|
-
|
75
|
-
assert issubclass(
|
76
|
-
type(async_client), AsyncHttpClient
|
77
|
-
), "The provided async_client must implement the AsyncHttpClient protocol."
|
78
|
-
|
79
|
-
if server_url is not None:
|
80
|
-
if url_params is not None:
|
81
|
-
server_url = utils.template_url(server_url, url_params)
|
82
|
-
|
83
|
-
BaseSDK.__init__(
|
84
|
-
self,
|
85
|
-
SDKConfiguration(
|
86
|
-
client=client,
|
87
|
-
async_client=async_client,
|
88
|
-
server_url=server_url,
|
89
|
-
server_idx=server_idx,
|
90
|
-
retry_config=retry_config,
|
91
|
-
timeout_ms=timeout_ms,
|
92
|
-
debug_logger=debug_logger,
|
93
|
-
),
|
94
|
-
)
|
95
|
-
|
96
|
-
hooks = SDKHooks()
|
97
|
-
|
98
|
-
current_server_url, *_ = self.sdk_configuration.get_server_details()
|
99
|
-
server_url, self.sdk_configuration.client = hooks.sdk_init(
|
100
|
-
current_server_url, self.sdk_configuration.client
|
101
|
-
)
|
102
|
-
if current_server_url != server_url:
|
103
|
-
self.sdk_configuration.server_url = server_url
|
104
|
-
|
105
|
-
# pylint: disable=protected-access
|
106
|
-
self.sdk_configuration.__dict__["_hooks"] = hooks
|
107
|
-
|
108
|
-
self._init_sdks()
|
109
|
-
|
110
|
-
def _init_sdks(self):
|
111
|
-
self.organizations = Organizations(self.sdk_configuration)
|
112
|
-
self.namespaces = Namespaces(self.sdk_configuration)
|
113
|
-
self.features = Features(self.sdk_configuration)
|
114
|
-
self.search_interactions = SearchInteractions(self.sdk_configuration)
|
115
|
-
self.interactions = Interactions(self.sdk_configuration)
|
116
|
-
self.feature_extractors = FeatureExtractors(self.sdk_configuration)
|
117
|
-
self.ingest = Ingest(self.sdk_configuration)
|
118
|
-
self.assets = Assets(self.sdk_configuration)
|
119
|
-
self.collections = Collections(self.sdk_configuration)
|
120
|
-
self.tasks = Tasks(self.sdk_configuration)
|
121
|
-
self.health = Health(self.sdk_configuration)
|
122
|
-
|
123
|
-
def __enter__(self):
|
124
|
-
return self
|
125
|
-
|
126
|
-
async def __aenter__(self):
|
127
|
-
return self
|
128
|
-
|
129
|
-
def __exit__(self, exc_type, exc_val, exc_tb):
|
130
|
-
if self.sdk_configuration.client is not None:
|
131
|
-
self.sdk_configuration.client.close()
|
132
|
-
|
133
|
-
async def __aexit__(self, exc_type, exc_val, exc_tb):
|
134
|
-
if self.sdk_configuration.async_client is not None:
|
135
|
-
await self.sdk_configuration.async_client.aclose()
|
136
|
-
|
137
|
-
def debug_openapi_debug_openapi_get(
|
138
|
-
self,
|
139
|
-
*,
|
140
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
141
|
-
server_url: Optional[str] = None,
|
142
|
-
timeout_ms: Optional[int] = None,
|
143
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
144
|
-
) -> Any:
|
145
|
-
r"""Debug Openapi
|
146
|
-
|
147
|
-
:param retries: Override the default retry configuration for this method
|
148
|
-
:param server_url: Override the default server URL for this method
|
149
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
150
|
-
:param http_headers: Additional headers to set or replace on requests.
|
151
|
-
"""
|
152
|
-
base_url = None
|
153
|
-
url_variables = None
|
154
|
-
if timeout_ms is None:
|
155
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
156
|
-
|
157
|
-
if server_url is not None:
|
158
|
-
base_url = server_url
|
159
|
-
req = self._build_request(
|
160
|
-
method="GET",
|
161
|
-
path="/debug-openapi",
|
162
|
-
base_url=base_url,
|
163
|
-
url_variables=url_variables,
|
164
|
-
request=None,
|
165
|
-
request_body_required=False,
|
166
|
-
request_has_path_params=False,
|
167
|
-
request_has_query_params=False,
|
168
|
-
user_agent_header="user-agent",
|
169
|
-
accept_header_value="application/json",
|
170
|
-
http_headers=http_headers,
|
171
|
-
timeout_ms=timeout_ms,
|
172
|
-
)
|
173
|
-
|
174
|
-
if retries == UNSET:
|
175
|
-
if self.sdk_configuration.retry_config is not UNSET:
|
176
|
-
retries = self.sdk_configuration.retry_config
|
177
|
-
|
178
|
-
retry_config = None
|
179
|
-
if isinstance(retries, utils.RetryConfig):
|
180
|
-
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
181
|
-
|
182
|
-
http_res = self.do_request(
|
183
|
-
hook_ctx=HookContext(
|
184
|
-
operation_id="debug_openapi_debug_openapi_get",
|
185
|
-
oauth2_scopes=[],
|
186
|
-
security_source=None,
|
187
|
-
),
|
188
|
-
request=req,
|
189
|
-
error_status_codes=["4XX", "5XX"],
|
190
|
-
retry_config=retry_config,
|
191
|
-
)
|
192
|
-
|
193
|
-
if utils.match_response(http_res, "200", "application/json"):
|
194
|
-
return utils.unmarshal_json(http_res.text, Any)
|
195
|
-
if utils.match_response(http_res, ["4XX", "5XX"], "*"):
|
196
|
-
http_res_text = utils.stream_to_text(http_res)
|
197
|
-
raise models.APIError(
|
198
|
-
"API error occurred", http_res.status_code, http_res_text, http_res
|
199
|
-
)
|
200
|
-
|
201
|
-
content_type = http_res.headers.get("Content-Type")
|
202
|
-
http_res_text = utils.stream_to_text(http_res)
|
203
|
-
raise models.APIError(
|
204
|
-
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
205
|
-
http_res.status_code,
|
206
|
-
http_res_text,
|
207
|
-
http_res,
|
208
|
-
)
|
209
|
-
|
210
|
-
async def debug_openapi_debug_openapi_get_async(
|
211
|
-
self,
|
212
|
-
*,
|
213
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
214
|
-
server_url: Optional[str] = None,
|
215
|
-
timeout_ms: Optional[int] = None,
|
216
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
217
|
-
) -> Any:
|
218
|
-
r"""Debug Openapi
|
219
|
-
|
220
|
-
:param retries: Override the default retry configuration for this method
|
221
|
-
:param server_url: Override the default server URL for this method
|
222
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
223
|
-
:param http_headers: Additional headers to set or replace on requests.
|
224
|
-
"""
|
225
|
-
base_url = None
|
226
|
-
url_variables = None
|
227
|
-
if timeout_ms is None:
|
228
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
229
|
-
|
230
|
-
if server_url is not None:
|
231
|
-
base_url = server_url
|
232
|
-
req = self._build_request_async(
|
233
|
-
method="GET",
|
234
|
-
path="/debug-openapi",
|
235
|
-
base_url=base_url,
|
236
|
-
url_variables=url_variables,
|
237
|
-
request=None,
|
238
|
-
request_body_required=False,
|
239
|
-
request_has_path_params=False,
|
240
|
-
request_has_query_params=False,
|
241
|
-
user_agent_header="user-agent",
|
242
|
-
accept_header_value="application/json",
|
243
|
-
http_headers=http_headers,
|
244
|
-
timeout_ms=timeout_ms,
|
245
|
-
)
|
246
|
-
|
247
|
-
if retries == UNSET:
|
248
|
-
if self.sdk_configuration.retry_config is not UNSET:
|
249
|
-
retries = self.sdk_configuration.retry_config
|
250
|
-
|
251
|
-
retry_config = None
|
252
|
-
if isinstance(retries, utils.RetryConfig):
|
253
|
-
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
254
|
-
|
255
|
-
http_res = await self.do_request_async(
|
256
|
-
hook_ctx=HookContext(
|
257
|
-
operation_id="debug_openapi_debug_openapi_get",
|
258
|
-
oauth2_scopes=[],
|
259
|
-
security_source=None,
|
260
|
-
),
|
261
|
-
request=req,
|
262
|
-
error_status_codes=["4XX", "5XX"],
|
263
|
-
retry_config=retry_config,
|
264
|
-
)
|
265
|
-
|
266
|
-
if utils.match_response(http_res, "200", "application/json"):
|
267
|
-
return utils.unmarshal_json(http_res.text, Any)
|
268
|
-
if utils.match_response(http_res, ["4XX", "5XX"], "*"):
|
269
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
270
|
-
raise models.APIError(
|
271
|
-
"API error occurred", http_res.status_code, http_res_text, http_res
|
272
|
-
)
|
273
|
-
|
274
|
-
content_type = http_res.headers.get("Content-Type")
|
275
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
276
|
-
raise models.APIError(
|
277
|
-
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
278
|
-
http_res.status_code,
|
279
|
-
http_res_text,
|
280
|
-
http_res,
|
281
|
-
)
|
File without changes
|