From ddb77b6dcddf65c3ee625003b5abd57410913bea Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 31 Jul 2026 13:38:25 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.763.6 --- .speakeasy/gen.lock | 923 +++--- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 12 +- README.md | 82 +- RELEASES.md | 12 +- ...1observabilityspansaggregatepostrequest.md | 10 + ...observabilitytracesaggregatepostrequest.md | 10 + docs/models/aggregation.md | 9 + docs/models/aggregationmeta.md | 10 + docs/models/aggregationrequest.md | 13 + ...sponseschemamodel.md => aggregationrow.md} | 11 +- docs/models/confidencescoresgranularity.md | 1 + ...ectoractivateforconsumerv1consumerscope.md | 15 + .../connectoractivateforconsumerv1request.md | 9 + ...nnectoractivatefororganizationv1request.md | 9 - .../connectoractivateforuserv1request.md | 9 - .../connectoractivateforworkspacev1request.md | 9 - ...tordeactivateforconsumerv1consumerscope.md | 15 + ...connectordeactivateforconsumerv1request.md | 9 + ...ectordeactivatefororganizationv1request.md | 8 - .../connectordeactivateforuserv1request.md | 8 - ...onnectordeactivateforworkspacev1request.md | 8 - docs/models/connectorgetauthurlv1request.md | 1 + docs/models/deploymentworkerlistresponse.md | 9 + docs/models/direction.md | 14 + ...masschemaschemaidretrievablesgetrequest.md | 10 - ...ievablesretrievabledocumentidgetrequest.md | 10 - ...indexidsummaryfieldlanguagepostlanguage.md | 21 - ...xindexidsummaryfieldlanguagepostrequest.md | 9 - ...maryfieldlanguagepostsummarystreamtypes.md | 25 - ...chemaidsummaryfieldlanguagepostlanguage.md | 21 - ...schemaidsummaryfieldlanguagepostrequest.md | 10 - ...maryfieldlanguagepostsummarystreamtypes.md | 25 - ...idschemasschemaschemaiddetailgetrequest.md | 9 - ...exidschemasschemaschemaidfilegetrequest.md | 9 - ...xindexidsummaryfieldlanguagegetlanguage.md | 21 - ...exindexidsummaryfieldlanguagegetrequest.md | 9 - ...schedulesv1workflowsschedulesgetrequest.md | 3 +- ...schemaidsummaryfieldlanguagegetlanguage.md | 21 - ...aschemaidsummaryfieldlanguagegetrequest.md | 10 - .../getsearchindexdetailresponseindex.md | 15 - ...getsearchindexdetailresponseindexstatus.md | 18 - ...getsearchindexschemadetailresponsefield.md | 11 - ...rchindexschemadetailresponseschemamodel.md | 10 - ...etsearchindexschemasdfileresponsesdfile.md | 8 - docs/models/getsearchindexsummaryresponse.md | 8 + docs/models/getsummaryresponsesummary.md | 10 - docs/models/granularity.md | 19 + .../jobsapiroutesbatchgetbatchjobsorderby.md | 14 + .../jobsapiroutesbatchgetbatchjobsrequest.md | 22 +- ...ploymentsv1workflowsdeploymentsgetorder.md | 16 + ...oymentsv1workflowsdeploymentsgetorderby.md | 16 + ...oymentsv1workflowsdeploymentsgetrequest.md | 20 +- ...rkflowsdeploymentsnameworkersgetrequest.md | 11 + docs/models/listsortdirection.md | 15 + docs/models/listsortfield.md | 17 + docs/models/metricaggregation.md | 26 + docs/models/metricdefinition.md | 9 + docs/models/metricvalue.md | 17 + docs/models/ocrasidetextblock.md | 17 +- docs/models/ocrblockconfidencescores.md | 16 + docs/models/ocrcaptionblock.md | 17 +- docs/models/ocrcodeblock.md | 17 +- docs/models/ocrequationblock.md | 17 +- docs/models/ocrfooterblock.md | 17 +- docs/models/ocrheaderblock.md | 17 +- docs/models/ocrimageblock.md | 19 +- docs/models/ocrlistblock.md | 17 +- docs/models/ocrpageconfidencescores.md | 12 +- docs/models/ocrreferencesblock.md | 17 +- docs/models/ocrrequest.md | 2 +- docs/models/ocrsignatureblock.md | 17 +- docs/models/ocrtableblock.md | 19 +- docs/models/ocrtextblock.md | 17 +- docs/models/ocrtitleblock.md | 17 +- docs/models/orderby.md | 14 - docs/models/orderbyclause.md | 9 + docs/models/otelfielddefinition.md | 3 +- docs/models/promptslistrequest.md | 16 +- docs/models/schemafielddatatype.md | 4 - docs/models/schemafieldindex.md | 4 - docs/models/schemafieldstorage.md | 4 - ...xindexidsummaryfieldlanguageputlanguage.md | 21 - ...exindexidsummaryfieldlanguageputrequest.md | 10 - ...schemaidsummaryfieldlanguageputlanguage.md | 21 - ...aschemaidsummaryfieldlanguageputrequest.md | 11 - docs/models/skillslistrequest.md | 16 +- docs/models/summarychunk.md | 10 - docs/models/summaryerror.md | 10 - docs/models/summarymetadata.md | 11 - docs/models/summarystatus.md | 19 - docs/models/summarystatusdollardefs.md | 19 - docs/models/timedimension.md | 8 + ...hindexv1ragindexesindexiddeleterequest.md} | 2 +- ...exv1ragindexesindexindexiddeleterequest.md | 8 - ...csv1ragindexesindexidmetricsputrequest.md} | 2 +- docs/models/updatesummaryrequestsummary.md | 10 - .../updatesummaryrequestsummarystatus.md | 14 - .../vespagetretrievableresponseretrievable.md | 9 - docs/models/workerstatus.md | 16 + docs/models/workflowexecutionrequest.md | 1 + docs/sdks/betaprompts/README.md | 18 +- docs/sdks/connectors/README.md | 219 +- docs/sdks/datasets/README.md | 24 +- docs/sdks/deployments/README.md | 69 +- docs/sdks/jobs/README.md | 24 +- docs/sdks/ocr/README.md | 2 +- docs/sdks/records/README.md | 12 +- docs/sdks/schedules/README.md | 3 +- docs/sdks/searchindexes/README.md | 587 +--- docs/sdks/skills/README.md | 18 +- docs/sdks/spans/README.md | 52 + docs/sdks/traces/README.md | 52 + docs/sdks/workflows/README.md | 6 +- src/mistralai/client/_version.py | 4 +- src/mistralai/client/beta_prompts.py | 32 + src/mistralai/client/connectors.py | 984 +------ src/mistralai/client/datasets.py | 24 +- src/mistralai/client/deployments.py | 224 ++ src/mistralai/client/jobs.py | 4 +- src/mistralai/client/models/__init__.py | 426 +-- ...1_observability_spans_aggregate_postop.py} | 43 +- ..._observability_traces_aggregate_postop.py} | 43 +- src/mistralai/client/models/aggregation.py | 20 + ...r_workspace_v1op.py => aggregationmeta.py} | 36 +- .../client/models/aggregationrequest.py | 67 + src/mistralai/client/models/aggregationrow.py | 63 + .../connector_activate_for_consumer_v1op.py | 31 + .../connector_deactivate_for_consumer_v1op.py | 31 + ...nector_deactivate_for_organization_v1op.py | 17 - .../connector_deactivate_for_user_v1op.py | 17 - ...connector_deactivate_for_workspace_v1op.py | 17 - .../models/connector_get_auth_url_v1op.py | 11 +- ...del.py => deploymentworkerlistresponse.py} | 27 +- ...mas_schema_schema_id_retrievables_getop.py | 66 - ...rievables_retrievable_document_id_getop.py | 33 - ..._index_id_summary_field_language_postop.py | 60 - ...schema_id_summary_field_language_postop.py | 63 - ...d_schemas_schema_schema_id_detail_getop.py | 26 - ..._id_schemas_schema_schema_id_file_getop.py | 26 - ...x_index_id_summary_field_language_getop.py | 39 - ..._schedules_v1_workflows_schedules_getop.py | 30 +- ..._schema_id_summary_field_language_getop.py | 46 - .../getsearchindexdetailresponseindex.py | 65 - ...getsearchindexdetailresponseschemamodel.py | 42 - ...getsearchindexschemadetailresponsefield.py | 41 - ...etsearchindexschemasdfileresponsesdfile.py | 29 - .../models/getsearchindexsummaryresponse.py | 19 + .../models/getsummaryresponsesummary.py | 21 - src/mistralai/client/models/granularity.py | 16 + .../jobs_api_routes_batch_get_batch_jobsop.py | 6 +- ...orkflows_deployments_name_workers_getop.py | 83 + ...loyments_v1_workflows_deployments_getop.py | 35 +- .../client/models/listsortdirection.py | 12 + src/mistralai/client/models/listsortfield.py | 14 + ...{summarystatus.py => metricaggregation.py} | 17 +- .../client/models/metricdefinition.py | 18 + .../client/models/ocrasidetextblock.py | 45 +- .../client/models/ocrblockconfidencescores.py | 84 + .../client/models/ocrcaptionblock.py | 45 +- src/mistralai/client/models/ocrcodeblock.py | 45 +- .../client/models/ocrequationblock.py | 45 +- src/mistralai/client/models/ocrfooterblock.py | 45 +- src/mistralai/client/models/ocrheaderblock.py | 45 +- src/mistralai/client/models/ocrimageblock.py | 45 +- src/mistralai/client/models/ocrlistblock.py | 45 +- .../client/models/ocrpageconfidencescores.py | 24 +- .../client/models/ocrreferencesblock.py | 45 +- src/mistralai/client/models/ocrrequest.py | 5 +- .../client/models/ocrsignatureblock.py | 45 +- src/mistralai/client/models/ocrtableblock.py | 13 +- src/mistralai/client/models/ocrtextblock.py | 45 +- src/mistralai/client/models/ocrtitleblock.py | 45 +- src/mistralai/client/models/orderbyclause.py | 41 + .../client/models/otelfielddefinition.py | 4 + src/mistralai/client/models/prompts_listop.py | 50 +- .../client/models/schemafielddatatype.py | 20 +- .../client/models/schemafieldindex.py | 14 +- .../client/models/schemafieldstorage.py | 12 +- ...x_index_id_summary_field_language_putop.py | 49 - ..._schema_id_summary_field_language_putop.py | 56 - src/mistralai/client/models/skills_listop.py | 50 +- src/mistralai/client/models/summarychunk.py | 18 - src/mistralai/client/models/summaryerror.py | 18 - .../client/models/summarymetadata.py | 22 - .../models/summarystatus_dollar_defs.py | 16 - src/mistralai/client/models/timedimension.py | 33 + ...index_v1_rag_indexes_index_id_deleteop.py} | 6 +- ..._v1_rag_indexes_index_index_id_deleteop.py | 17 - ..._v1_rag_indexes_index_id_metrics_putop.py} | 6 +- .../models/updatesummaryrequestsummary.py | 27 - .../vespagetretrievableresponseretrievable.py | 18 - .../client/models/workflowexecutionrequest.py | 6 + src/mistralai/client/ocr.py | 4 +- src/mistralai/client/records.py | 12 +- src/mistralai/client/schedules.py | 12 +- src/mistralai/client/search_indexes.py | 2496 +---------------- src/mistralai/client/skills.py | 32 + src/mistralai/client/spans.py | 264 +- src/mistralai/client/traces.py | 264 +- src/mistralai/client/utils/jsonl.py | 156 -- src/mistralai/client/workflows.py | 12 + 202 files changed, 3827 insertions(+), 6828 deletions(-) create mode 100644 docs/models/aggregatespansv1observabilityspansaggregatepostrequest.md create mode 100644 docs/models/aggregatetracesv1observabilitytracesaggregatepostrequest.md create mode 100644 docs/models/aggregation.md create mode 100644 docs/models/aggregationmeta.md create mode 100644 docs/models/aggregationrequest.md rename docs/models/{getsearchindexdetailresponseschemamodel.md => aggregationrow.md} (56%) create mode 100644 docs/models/connectoractivateforconsumerv1consumerscope.md create mode 100644 docs/models/connectoractivateforconsumerv1request.md delete mode 100644 docs/models/connectoractivatefororganizationv1request.md delete mode 100644 docs/models/connectoractivateforuserv1request.md delete mode 100644 docs/models/connectoractivateforworkspacev1request.md create mode 100644 docs/models/connectordeactivateforconsumerv1consumerscope.md create mode 100644 docs/models/connectordeactivateforconsumerv1request.md delete mode 100644 docs/models/connectordeactivatefororganizationv1request.md delete mode 100644 docs/models/connectordeactivateforuserv1request.md delete mode 100644 docs/models/connectordeactivateforworkspacev1request.md create mode 100644 docs/models/deploymentworkerlistresponse.md create mode 100644 docs/models/direction.md delete mode 100644 docs/models/documentfetchv1ragindexesindexindexidschemasschemaschemaidretrievablesgetrequest.md delete mode 100644 docs/models/documentlookupv1ragindexesindexindexidschemasschemaschemaidretrievablesretrievabledocumentidgetrequest.md delete mode 100644 docs/models/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepostlanguage.md delete mode 100644 docs/models/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepostrequest.md delete mode 100644 docs/models/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepostsummarystreamtypes.md delete mode 100644 docs/models/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepostlanguage.md delete mode 100644 docs/models/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepostrequest.md delete mode 100644 docs/models/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepostsummarystreamtypes.md delete mode 100644 docs/models/getindexschemadetailv1ragindexesindexindexidschemasschemaschemaiddetailgetrequest.md delete mode 100644 docs/models/getindexschemafilev1ragindexesindexindexidschemasschemaschemaidfilegetrequest.md delete mode 100644 docs/models/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguagegetlanguage.md delete mode 100644 docs/models/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguagegetrequest.md delete mode 100644 docs/models/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagegetlanguage.md delete mode 100644 docs/models/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagegetrequest.md delete mode 100644 docs/models/getsearchindexdetailresponseindex.md delete mode 100644 docs/models/getsearchindexdetailresponseindexstatus.md delete mode 100644 docs/models/getsearchindexschemadetailresponsefield.md delete mode 100644 docs/models/getsearchindexschemadetailresponseschemamodel.md delete mode 100644 docs/models/getsearchindexschemasdfileresponsesdfile.md create mode 100644 docs/models/getsearchindexsummaryresponse.md delete mode 100644 docs/models/getsummaryresponsesummary.md create mode 100644 docs/models/granularity.md create mode 100644 docs/models/jobsapiroutesbatchgetbatchjobsorderby.md create mode 100644 docs/models/listdeploymentsv1workflowsdeploymentsgetorder.md create mode 100644 docs/models/listdeploymentsv1workflowsdeploymentsgetorderby.md create mode 100644 docs/models/listdeploymentworkersv1workflowsdeploymentsnameworkersgetrequest.md create mode 100644 docs/models/listsortdirection.md create mode 100644 docs/models/listsortfield.md create mode 100644 docs/models/metricaggregation.md create mode 100644 docs/models/metricdefinition.md create mode 100644 docs/models/metricvalue.md create mode 100644 docs/models/ocrblockconfidencescores.md delete mode 100644 docs/models/orderby.md create mode 100644 docs/models/orderbyclause.md delete mode 100644 docs/models/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageputlanguage.md delete mode 100644 docs/models/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageputrequest.md delete mode 100644 docs/models/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageputlanguage.md delete mode 100644 docs/models/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageputrequest.md delete mode 100644 docs/models/summarychunk.md delete mode 100644 docs/models/summaryerror.md delete mode 100644 docs/models/summarymetadata.md delete mode 100644 docs/models/summarystatus.md delete mode 100644 docs/models/summarystatusdollardefs.md create mode 100644 docs/models/timedimension.md rename docs/models/{getindexdetailsv1ragindexesindexindexiddetailgetrequest.md => unregistersearchindexv1ragindexesindexiddeleterequest.md} (82%) delete mode 100644 docs/models/unregistersearchindexv1ragindexesindexindexiddeleterequest.md rename docs/models/{updateindexmetricsv1ragindexesindexindexidmetricsputrequest.md => updateindexmetricsv1ragindexesindexidmetricsputrequest.md} (92%) delete mode 100644 docs/models/updatesummaryrequestsummary.md delete mode 100644 docs/models/updatesummaryrequestsummarystatus.md delete mode 100644 docs/models/vespagetretrievableresponseretrievable.md create mode 100644 docs/models/workerstatus.md rename src/mistralai/client/models/{connector_activate_for_organization_v1op.py => aggregate_spans_v1_observability_spans_aggregate_postop.py} (53%) rename src/mistralai/client/models/{connector_activate_for_user_v1op.py => aggregate_traces_v1_observability_traces_aggregate_postop.py} (53%) create mode 100644 src/mistralai/client/models/aggregation.py rename src/mistralai/client/models/{connector_activate_for_workspace_v1op.py => aggregationmeta.py} (50%) create mode 100644 src/mistralai/client/models/aggregationrequest.py create mode 100644 src/mistralai/client/models/aggregationrow.py create mode 100644 src/mistralai/client/models/connector_activate_for_consumer_v1op.py create mode 100644 src/mistralai/client/models/connector_deactivate_for_consumer_v1op.py delete mode 100644 src/mistralai/client/models/connector_deactivate_for_organization_v1op.py delete mode 100644 src/mistralai/client/models/connector_deactivate_for_user_v1op.py delete mode 100644 src/mistralai/client/models/connector_deactivate_for_workspace_v1op.py rename src/mistralai/client/models/{getsearchindexschemadetailresponseschemamodel.py => deploymentworkerlistresponse.py} (51%) delete mode 100644 src/mistralai/client/models/document_fetch_v1_rag_indexes_index_index_id_schemas_schema_schema_id_retrievables_getop.py delete mode 100644 src/mistralai/client/models/document_lookup_v1_rag_indexes_index_index_id_schemas_schema_schema_id_retrievables_retrievable_document_id_getop.py delete mode 100644 src/mistralai/client/models/generate_index_summary_v1_rag_indexes_index_index_id_summary_field_language_postop.py delete mode 100644 src/mistralai/client/models/generate_schema_summary_post_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_postop.py delete mode 100644 src/mistralai/client/models/get_index_schema_detail_v1_rag_indexes_index_index_id_schemas_schema_schema_id_detail_getop.py delete mode 100644 src/mistralai/client/models/get_index_schema_file_v1_rag_indexes_index_index_id_schemas_schema_schema_id_file_getop.py delete mode 100644 src/mistralai/client/models/get_index_summary_v1_rag_indexes_index_index_id_summary_field_language_getop.py delete mode 100644 src/mistralai/client/models/get_schema_summary_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_getop.py delete mode 100644 src/mistralai/client/models/getsearchindexdetailresponseindex.py delete mode 100644 src/mistralai/client/models/getsearchindexdetailresponseschemamodel.py delete mode 100644 src/mistralai/client/models/getsearchindexschemadetailresponsefield.py delete mode 100644 src/mistralai/client/models/getsearchindexschemasdfileresponsesdfile.py create mode 100644 src/mistralai/client/models/getsearchindexsummaryresponse.py delete mode 100644 src/mistralai/client/models/getsummaryresponsesummary.py create mode 100644 src/mistralai/client/models/granularity.py create mode 100644 src/mistralai/client/models/list_deployment_workers_v1_workflows_deployments_name_workers_getop.py create mode 100644 src/mistralai/client/models/listsortdirection.py create mode 100644 src/mistralai/client/models/listsortfield.py rename src/mistralai/client/models/{summarystatus.py => metricaggregation.py} (51%) create mode 100644 src/mistralai/client/models/metricdefinition.py create mode 100644 src/mistralai/client/models/ocrblockconfidencescores.py create mode 100644 src/mistralai/client/models/orderbyclause.py delete mode 100644 src/mistralai/client/models/set_index_summary_v1_rag_indexes_index_index_id_summary_field_language_putop.py delete mode 100644 src/mistralai/client/models/set_schema_summary_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_putop.py delete mode 100644 src/mistralai/client/models/summarychunk.py delete mode 100644 src/mistralai/client/models/summaryerror.py delete mode 100644 src/mistralai/client/models/summarymetadata.py delete mode 100644 src/mistralai/client/models/summarystatus_dollar_defs.py create mode 100644 src/mistralai/client/models/timedimension.py rename src/mistralai/client/models/{get_index_details_v1_rag_indexes_index_index_id_detail_getop.py => unregister_search_index_v1_rag_indexes_index_id_deleteop.py} (68%) delete mode 100644 src/mistralai/client/models/unregister_search_index_v1_rag_indexes_index_index_id_deleteop.py rename src/mistralai/client/models/{update_index_metrics_v1_rag_indexes_index_index_id_metrics_putop.py => update_index_metrics_v1_rag_indexes_index_id_metrics_putop.py} (87%) delete mode 100644 src/mistralai/client/models/updatesummaryrequestsummary.py delete mode 100644 src/mistralai/client/models/vespagetretrievableresponseretrievable.py delete mode 100644 src/mistralai/client/utils/jsonl.py diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 1077a6f5d..8a21e58f4 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 2d045ec7-2ebb-4f4d-ad25-40953b132161 management: - docChecksum: 7183c1ca1dff967d47ab5b85fe624edd + docChecksum: 2afe71a4666db00d14ca7b3f8f85ee48 docVersion: 1.0.0 speakeasyVersion: 1.763.6 generationVersion: 2.884.13 - releaseVersion: 2.8.0 - configChecksum: 0e14e5f78f084bd56361e365eb91e465 + releaseVersion: 2.9.0 + configChecksum: d6eb316cf3d0b1ea24ff52ba7328920a repoURL: https://github.com/mistralai/client-python.git installationURL: https://github.com/mistralai/client-python.git published: true persistentEdits: - generation_id: 57ac53f4-7a4c-47ab-a035-9d851ae1a22c - pristine_commit_hash: 5c904afc0e6ac09d0ff58e939908a0ddadf0f096 - pristine_tree_hash: 79e2f1153f19968d5bf817f4cbb863cfd399edb5 + generation_id: 58269e7e-e8a2-4ac0-82f3-d81d537853ce + pristine_commit_hash: 21ece14838b3901c4016f0d2cae15ec91b6446f2 + pristine_tree_hash: 0a021e4b9a9287fee5cc109d3cb9a64f2d2984b4 features: python: acceptHeaders: 3.0.0 @@ -38,7 +38,6 @@ features: globalServerURLs: 3.2.1 ignores: 3.0.1 includes: 3.0.0 - jsonlResponses: 0.2.2 methodArguments: 1.0.2 methodSecurity: 3.0.3 multipartFileContentType: 1.0.0 @@ -277,6 +276,30 @@ trackedFiles: id: 513b8b7bc0b7 last_write_checksum: sha1:8dedf7bcaa05492689ce0828e5644380258d5a7e pristine_git_object: 0722e955359c8569a219f3c2c9b3d9dbb7449ee0 + docs/models/aggregatespansv1observabilityspansaggregatepostrequest.md: + id: 71333abc025a + last_write_checksum: sha1:8a38edff34faedbad4967eb6946c810f1e832e0c + pristine_git_object: 369ba751e4045d44f76163c3b16e8f21fa201870 + docs/models/aggregatetracesv1observabilitytracesaggregatepostrequest.md: + id: 9316c770dd8c + last_write_checksum: sha1:3d21b53eb2441b951aedd310dcc9e8a632998b78 + pristine_git_object: 626b214e94e4954b1bfa000ef6bff62bc6f760e1 + docs/models/aggregation.md: + id: 8eec6ac0a876 + last_write_checksum: sha1:d7e471cbbd27b45a43b25a5898b28f7a91382132 + pristine_git_object: 696981e807106f9cc8d9df2fd7c00cdb4b6f6306 + docs/models/aggregationmeta.md: + id: 12f4fb51b755 + last_write_checksum: sha1:a2736f5b9f2caa7a23bc8d5056e96faa7bbfdeab + pristine_git_object: 60a38539aa0ea1234e4e9634e10c68bb404d76c6 + docs/models/aggregationrequest.md: + id: f1eb9262a0ec + last_write_checksum: sha1:7a53d91b91feebab7b73a4b57f006fd7da121232 + pristine_git_object: a31ca056adfaeeb54b4b120b0c5a0410c9374561 + docs/models/aggregationrow.md: + id: 69163ad7d3d1 + last_write_checksum: sha1:56298f77ea207439de683402349f6696be1832c5 + pristine_git_object: 702f85a247bd92e660ee839404f95da7e3e6406c docs/models/aliaslist.md: id: 22901617b59b last_write_checksum: sha1:14632d3cfc2a9a604841734c4dbc945260397e56 @@ -607,8 +630,8 @@ trackedFiles: pristine_git_object: 73f3dbd808434667d062496e94a7e14fc41c267b docs/models/confidencescoresgranularity.md: id: 76a175c65878 - last_write_checksum: sha1:5287635d80d2f4e285cacfd0f571d3f06c01e962 - pristine_git_object: 29646c918aa6090b4b08c349c6de04c06d57387b + last_write_checksum: sha1:29b96ed4bf1aa8bbc76b00fa262f877e26971c5f + pristine_git_object: 9fc348b6f4d1cd867683a66eb4b3abfed2feb46e docs/models/confirmation.md: id: 19b9e48a3c2e last_write_checksum: sha1:6e199c756ce35e2bff3b67df5d97b4520518b271 @@ -629,18 +652,14 @@ trackedFiles: id: cbf7c2c53983 last_write_checksum: sha1:860c42fe124757044da5c779f14f8c10f378248a pristine_git_object: c5022a1f8c5522c988fea43348903889a7f67b64 - docs/models/connectoractivatefororganizationv1request.md: - id: 3a15b69f7e51 - last_write_checksum: sha1:ae29bb24fdf11ccf8c08e2a1a2909d55d4cbaf6c - pristine_git_object: 40469996995ac4e446584780ac77981a0a5c67bc - docs/models/connectoractivateforuserv1request.md: - id: a4645ace44a1 - last_write_checksum: sha1:c4302c00ee924529d626c75ecb9374b416bcb028 - pristine_git_object: bdf73b8aca4293b69ef96f3c72f0acbf5d7546b7 - docs/models/connectoractivateforworkspacev1request.md: - id: da9da37e67ba - last_write_checksum: sha1:c7b677341c095afaac4adaeacd9e7337307e3174 - pristine_git_object: e4dbaf1dbf5632919eb3cc8fac7aa67ceee01e1c + docs/models/connectoractivateforconsumerv1consumerscope.md: + id: 6e19349718fd + last_write_checksum: sha1:501077cc852483307aa3568bfe11a4bc5c441584 + pristine_git_object: 3c94dd46ba3c0754924b702fd5f8f9ea6fcaaab3 + docs/models/connectoractivateforconsumerv1request.md: + id: 4fc51fc21787 + last_write_checksum: sha1:28684bcc4d0246b172e43e429d83b4bb70541f9b + pristine_git_object: 6ea43c808d5104ba0e29528b6daea4a3b866541e docs/models/connectorauthenticationheader.md: id: bb5e842caa63 last_write_checksum: sha1:7c721f916ed1ce2d4155734bb8190e11de6bf4ac @@ -665,18 +684,14 @@ trackedFiles: id: 10c159720bae last_write_checksum: sha1:e86b1952360e4f41550603b9dc16fddeff6127e7 pristine_git_object: 310cdcde0039e9fdb4faa53644265a6a614d9b20 - docs/models/connectordeactivatefororganizationv1request.md: - id: c4310041f3ab - last_write_checksum: sha1:a1ae31f8e5b836d9300ff4e64ecc2a11c9db7a7f - pristine_git_object: 1fd64004b3bd61e1ff3f789566bc3e587f2e2cf8 - docs/models/connectordeactivateforuserv1request.md: - id: 72bcb9fcabe5 - last_write_checksum: sha1:02be33e6a0ed87d60d7e8130c80e85426b2f1db7 - pristine_git_object: 992603b0f86d60714acded1498c661d170b0e40a - docs/models/connectordeactivateforworkspacev1request.md: - id: 42c92923f1ae - last_write_checksum: sha1:f4f8dbfde3ca68ae68028ddce150dc9761bf3a24 - pristine_git_object: 15033f293dcbb35daef48119419bedd779d8f06a + docs/models/connectordeactivateforconsumerv1consumerscope.md: + id: 78da9e4297c7 + last_write_checksum: sha1:eadf86ff28693452e048eaab9f63dc8ab613370e + pristine_git_object: d28c74e1024ccb5bbb3c48a196b3de3f81901dce + docs/models/connectordeactivateforconsumerv1request.md: + id: dac689429b22 + last_write_checksum: sha1:8f58b179f3ac2466c59019eb3319596f4dc454dd + pristine_git_object: 7adf0b067933b294309a495931a367d1a5656aed docs/models/connectordeleteallusercredentialsv1request.md: id: aee76bcb9648 last_write_checksum: sha1:495f75627085cf18c0c0346a8c2ed93dc178dd34 @@ -703,8 +718,8 @@ trackedFiles: pristine_git_object: 3a62c0106481edc9d8137689c4d7d7649f812397 docs/models/connectorgetauthurlv1request.md: id: 8a02a6af19ab - last_write_checksum: sha1:0226075802544d82a0568f983299c169c4977499 - pristine_git_object: ed99f517acc30cf86574c740c43c66f85d27f4dc + last_write_checksum: sha1:13847897e7d57bc0ab35a45bde30c6ce7b36f9a2 + pristine_git_object: bc1f53389615a2762ecc013468c23e37a983bfad docs/models/connectorgetv1request.md: id: 844c1f489684 last_write_checksum: sha1:1eab3b3b0f1a780df635aeca9393d667221b8e30 @@ -1165,6 +1180,10 @@ trackedFiles: id: b039895c72a9 last_write_checksum: sha1:fe2f0489b2fea1fa58454ea8abe7426d01b17794 pristine_git_object: 3d1ba1c336f9b30153dee42f35fca10d4986f023 + docs/models/deploymentworkerlistresponse.md: + id: f2ef6914ea67 + last_write_checksum: sha1:1d744c53143d2abe59b67dc66df454a172de0659 + pristine_git_object: 0fd43a5d7e47ab074a640af516f3c7eb2a2a4cfe docs/models/deploymentworkerresponse.md: id: 07cd9c89237a last_write_checksum: sha1:b4ecb28489bd72302e5f56dd9d54f40378dae3e2 @@ -1177,22 +1196,18 @@ trackedFiles: id: cad5b4a16cab last_write_checksum: sha1:ae08adad3f2ef65723285cd729eca2b368582871 pristine_git_object: 8c9114c6c9413be7ac7d4dd61def65dfdc8a845c + docs/models/direction.md: + id: 5c2dbb7995cb + last_write_checksum: sha1:2dfedff8ff7b59bf8b7a72c78400152970362e1d + pristine_git_object: 8e02b553fdbe78542391267a9c2ebea33767088d docs/models/document.md: id: cd1d2a444370 last_write_checksum: sha1:7aeb84c1a0efa2b3bf15808714405fe29b930296 pristine_git_object: ff0238ea7afcba3ef690a303574f74744ba31ecd - docs/models/documentfetchv1ragindexesindexindexidschemasschemaschemaidretrievablesgetrequest.md: - id: 895b3d4d0fa6 - last_write_checksum: sha1:4c992a6253dde5322e0f78679effd806c95ea11c - pristine_git_object: 0c0b76c4722c4e4c27edf6949d2ee9447433ae1c docs/models/documentlibrarytool.md: id: 68083b0ef8f3 last_write_checksum: sha1:76b9f47c399915a338abe929cb10c1b37282eadf pristine_git_object: 95c3fa52ee3ff29e72bc0240a98c0afaa0cd5f62 - docs/models/documentlookupv1ragindexesindexindexidschemasschemaschemaidretrievablesretrievabledocumentidgetrequest.md: - id: b4336f39d8a0 - last_write_checksum: sha1:0752ed727a37abf92ccfa37af39bbc8aee715ccb - pristine_git_object: 2b5a739dc11712d5d83f688af3c4c395ab4a40d8 docs/models/documenttextcontent.md: id: 29587399f346 last_write_checksum: sha1:93382da0228027a02501abbcf681f247814d3d68 @@ -1497,30 +1512,6 @@ trackedFiles: id: 5fb499088cdf last_write_checksum: sha1:a9a3b6530b1c48a8575402b48cde7b65efb33a7d pristine_git_object: 0226b7045c9d82186e1111bb2025e96a4de90bd6 - docs/models/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepostlanguage.md: - id: e7c53b340b03 - last_write_checksum: sha1:837dea8b081e84210110356b2b54e58f4b5bf45b - pristine_git_object: 6eafe637fbcebcc6f987d817e90cd2cee5801dee - docs/models/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepostrequest.md: - id: 6d6771b3b405 - last_write_checksum: sha1:d9b97f5b8a0578872e660a84362ab270f45615cb - pristine_git_object: 093d9569f81516e61e41bb38f86c891b8855acd7 - docs/models/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepostsummarystreamtypes.md: - id: 6c7315301f02 - last_write_checksum: sha1:6b8b8e3e7494d158b38e269adaea4629eb1bea38 - pristine_git_object: c49200774c77fefd8e6812089b7d165c6071e921 - docs/models/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepostlanguage.md: - id: 24769ccd7fa2 - last_write_checksum: sha1:644d9897116e47a76f6b09b1b95d5b1f7d1a5c8b - pristine_git_object: cb5485f9b1b05e47b9b79f9e8f8f9b0b8e9c3e32 - docs/models/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepostrequest.md: - id: 36fa2e75dba2 - last_write_checksum: sha1:3bb8c3ebbf4aefc386a02074ef4607930f9116b2 - pristine_git_object: 97dd42bcec0530f08a5f86c01b49a6df4a37500d - docs/models/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepostsummarystreamtypes.md: - id: 3436fec934de - last_write_checksum: sha1:4a7303102773f48bff5ce0aecfb75959bd0771d9 - pristine_git_object: 8ff73a296d577cbeb0102b330cf170b4c263e806 docs/models/getcampaignbyidv1observabilitycampaignscampaignidgetrequest.md: id: 159acf508d84 last_write_checksum: sha1:e26a519f087140a799466e9fb530d1d37211dd7e @@ -1593,26 +1584,6 @@ trackedFiles: id: a983b3c8acd6 last_write_checksum: sha1:643a3c92ce26f21a915bd485fc4af7817e79f864 pristine_git_object: 38ad49438c06b48ed8eeecf773d4bed51cdb1c9d - docs/models/getindexdetailsv1ragindexesindexindexiddetailgetrequest.md: - id: b2f23ca79a04 - last_write_checksum: sha1:8101e32fd7be07c03820d0e5df9fa4e8c41cf624 - pristine_git_object: 9f6896f85f4a2eca2ad6873698b8cd8a1aef82b7 - docs/models/getindexschemadetailv1ragindexesindexindexidschemasschemaschemaiddetailgetrequest.md: - id: fae50c1770f9 - last_write_checksum: sha1:01610264fa080dba76335ec1edb24ff3ff019198 - pristine_git_object: 8e5b91eab7f95eb74607927c4400d8e2fcd1e7fc - docs/models/getindexschemafilev1ragindexesindexindexidschemasschemaschemaidfilegetrequest.md: - id: d8dc0f08e7e0 - last_write_checksum: sha1:893656950a8f2b2154be2b37f0171e441a52c01c - pristine_git_object: a6897d21e743eed55e45ef18c512deb11e5f75cd - docs/models/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguagegetlanguage.md: - id: 4f6691f2824e - last_write_checksum: sha1:0a52a0cd87f8b27f14407a5f48bed23e267617d4 - pristine_git_object: e0e92d0cc2d8b7d5c7ebb99cc0180834c997dfd8 - docs/models/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguagegetrequest.md: - id: cf0b80a95fe2 - last_write_checksum: sha1:7ae04590de2501b3435d054acc4883f2a7e73b3d - pristine_git_object: 91512b1fa4759bc6a0730d1453b464b972d947d0 docs/models/getjudgebyidv1observabilityjudgesjudgeidgetrequest.md: id: 06b097dd2a61 last_write_checksum: sha1:089d9b646a90f2180dbfc85271804e0857204b34 @@ -1651,8 +1622,8 @@ trackedFiles: pristine_git_object: 6b03369064e2bb2fedffa606d8bff20d9fceae00 docs/models/getschedulesv1workflowsschedulesgetrequest.md: id: ee97a7eb1a05 - last_write_checksum: sha1:07207cb74124d3e2085d26c5c609f0bef3b6ad54 - pristine_git_object: d510c27db9c7b0b495a578c0caee3428a3794e1a + last_write_checksum: sha1:0a0d90df1b6248993238f109e81edce66442db67 + pristine_git_object: 9ffb30cd697d2822f50c664bfc0730fcaabef206 docs/models/getschedulesv1workflowsschedulesgetresponse.md: id: b6b4b4eebe6e last_write_checksum: sha1:07a546ef6090188411e55380341fa6fc6377c752 @@ -1665,38 +1636,10 @@ trackedFiles: id: 52b58a6705e8 last_write_checksum: sha1:d4af59b2276baf70a151680d2276c71a6944fe43 pristine_git_object: e681e674a011fcd31373c4885c862717a04a6b6f - docs/models/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagegetlanguage.md: - id: c3bb52b07a5b - last_write_checksum: sha1:9f589273596241fe2017918891693b8dc39dea5e - pristine_git_object: 058c7bf683bbbd0df992330fd2c3ce5c3dfc66bc - docs/models/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagegetrequest.md: - id: 042a5c64ed19 - last_write_checksum: sha1:4e2ce0443bf7519b08f1caf01f0f3c7db575b13d - pristine_git_object: 3e2ee916cd977ef4a78aae3c2699e163bbefe913 - docs/models/getsearchindexdetailresponseindex.md: - id: 0501ff5d9d55 - last_write_checksum: sha1:a381c1840d6fbc7270fe25816fd4e4e0fd901932 - pristine_git_object: 72f42a78f9fd8d266c1abef3cc238239957ed4b5 - docs/models/getsearchindexdetailresponseindexstatus.md: - id: 51008962dba3 - last_write_checksum: sha1:44212b51423fa069fdfd6abe81583d00a2f4a62e - pristine_git_object: 066e93419f179c1737cc77150d804ceaecf69a3c - docs/models/getsearchindexdetailresponseschemamodel.md: - id: a8a129ea69c6 - last_write_checksum: sha1:31feec7a0bc41f6c691f22da8361bdded2b01da9 - pristine_git_object: 7ece62e4330786e96e673d64bae0da4823840af4 - docs/models/getsearchindexschemadetailresponsefield.md: - id: 56780eb11149 - last_write_checksum: sha1:995321573c7e233524263553469d3279312f91f6 - pristine_git_object: 03275624e97ee642821fc620295002a57a5feeb7 - docs/models/getsearchindexschemadetailresponseschemamodel.md: - id: b84ac3bcd14c - last_write_checksum: sha1:f90854f20fc02278c9cdbf61044af4579f64a8cf - pristine_git_object: 5120af9cbf89c1cb8648f545f17aa9424e5c818f - docs/models/getsearchindexschemasdfileresponsesdfile.md: - id: c110a39e7cee - last_write_checksum: sha1:be632a61fe4ee7f850b7ac39fe51aa1d6e4dfb25 - pristine_git_object: 3e1e463bb3276ca68d17eb4a7be28483458a851a + docs/models/getsearchindexsummaryresponse.md: + id: 985016e78ef4 + last_write_checksum: sha1:46190862310db17de399024b82670f226bc49bc3 + pristine_git_object: b391c694fff8a9a878ebb6afc1f730165ff60e75 docs/models/getsearchindexsummaryresponseindex.md: id: 1b7de2679e47 last_write_checksum: sha1:adc205357bb9df1fd16e44877aadb2f02be4f6e4 @@ -1785,10 +1728,6 @@ trackedFiles: id: 5d958d2ebde1 last_write_checksum: sha1:93bf911787d8414267112e8f9ef2314b4ba747b9 pristine_git_object: 75fb7f2a339bf5c5ec1e626f054ea66192521e5b - docs/models/getsummaryresponsesummary.md: - id: 4fa145d2a43e - last_write_checksum: sha1:f70acb65d1653e26e05b0215be6633a3c0f2ff6c - pristine_git_object: 8c959e39e9e98f88886eb1d80190fba365447684 docs/models/gettrace.md: id: e6e0f02a25b6 last_write_checksum: sha1:a9c760d6f33d97e5a3d657646cbfc53dbdd4a4ac @@ -1897,6 +1836,10 @@ trackedFiles: id: ddc86b6b1bf9 last_write_checksum: sha1:63f5d6e78e90572125d1b366ccc0c75a897210e7 pristine_git_object: 2f5c2b4dc84095a1b00bac6c728c86dd1f80c2b2 + docs/models/granularity.md: + id: 3cee51c03dea + last_write_checksum: sha1:7ac3b029b14105672460c3fab1b8ae56637fb979 + pristine_git_object: d409e523ec385ba2170afb8b7299ab2f971c9c4a docs/models/guardrailconfig.md: id: f60bf2eefb45 last_write_checksum: sha1:e8dd384d2fd18d731753ba8d45a2975379c97052 @@ -1981,10 +1924,14 @@ trackedFiles: id: e83a7ec84f8a last_write_checksum: sha1:d661875832b4b9d5f545262216c9fcb9a77c8cd0 pristine_git_object: 8c259bea9bef11f779fd609f1212565d574457e2 + docs/models/jobsapiroutesbatchgetbatchjobsorderby.md: + id: aa63e13a4264 + last_write_checksum: sha1:fe907957ada8c3756169bc9a6e086e021d805c4a + pristine_git_object: e9a446c05fbe7e173207f379de018032164ae528 docs/models/jobsapiroutesbatchgetbatchjobsrequest.md: id: 5b9c44ad4d31 - last_write_checksum: sha1:1d7c05337b7cfe68f85a36576d060e1a890f9f96 - pristine_git_object: 5ceb0b2c40f079ffbe2cc4c82f6c3f94276980b4 + last_write_checksum: sha1:1455e1913a9aee6d75f846d25307f4de9f0c89c5 + pristine_git_object: 92ee6299bc2f9f2a7946300c826b8af2e10b2952 docs/models/jobsapiroutesfinetuningarchivefinetunedmodelrequest.md: id: 8eb8c127091e last_write_checksum: sha1:2b93a6bed5743461bb03c8337fb25dfc5a15522e @@ -2201,10 +2148,22 @@ trackedFiles: id: a776dbfbc267 last_write_checksum: sha1:abba75226b6bc439381777ea05d83bc8e910e53c pristine_git_object: af046696ebac829f4d7f6333075a4e5b26dd855e + docs/models/listdeploymentsv1workflowsdeploymentsgetorder.md: + id: 2749e1bd3a00 + last_write_checksum: sha1:adc9004e99ea20515534447841782ba242dba891 + pristine_git_object: 1f31b91797edbe4afc819ad4f8ee421f0c6f77b6 + docs/models/listdeploymentsv1workflowsdeploymentsgetorderby.md: + id: d2b4975575dd + last_write_checksum: sha1:23cad8cab97f57ed59be9fdf3ea60a05631052ef + pristine_git_object: 554266f5c9bd5d25d8735e58a62f32347f016915 docs/models/listdeploymentsv1workflowsdeploymentsgetrequest.md: id: 7c9f534b899b - last_write_checksum: sha1:e4a39508a4dbe40a89a8e313842d5b4f1ff9e4d2 - pristine_git_object: 8f44ea00fd0a464e97cd096d1545b7d5b3d7ad58 + last_write_checksum: sha1:ff227baa5fc54d285f741897443f0d9420c16d15 + pristine_git_object: 31ce3c8044d96e285f851235c7bc2069658c45a0 + docs/models/listdeploymentworkersv1workflowsdeploymentsnameworkersgetrequest.md: + id: fbdc29434ada + last_write_checksum: sha1:fb828cc92b49284efe410dddc8c128d2b7937fc6 + pristine_git_object: 6be2d8bd266469583d63858185700abd4c743cbf docs/models/listdocumentsresponse.md: id: f2091cee0405 last_write_checksum: sha1:335d0ccd3a448e65739d5a0cfa2c67614daec031 @@ -2261,6 +2220,14 @@ trackedFiles: id: cba9caeaa194 last_write_checksum: sha1:15793e3b2e77e6541558c97cd2ce0febe9aac35a pristine_git_object: f9c376f7c5f96d0b019fe860cfbe58f7741ae0be + docs/models/listsortdirection.md: + id: 9cf7868f4de5 + last_write_checksum: sha1:b805ae8a806d6c7c0c4fe8bd0654c1e6c23f33c5 + pristine_git_object: 0ab5cfd86b52cae8ad045d81946a001f2a26e34b + docs/models/listsortfield.md: + id: 6d0348014cf3 + last_write_checksum: sha1:1b0db546c947944285a6d10cc7615cc55f2056bf + pristine_git_object: f4a4df8f701b307b6dc58e13011c88ed93a7d704 docs/models/listvoicesv1audiovoicesgetrequest.md: id: 2728f62b4ff4 last_write_checksum: sha1:ef9581d0fa6fbabde734174727c9600fd46c9938 @@ -2401,10 +2368,22 @@ trackedFiles: id: c348c2448aaa last_write_checksum: sha1:5f99a25a3f689030756a63e925113030121c5d7e pristine_git_object: 427e09b524964c521a6b63962e5f71ae0ca1b485 + docs/models/metricaggregation.md: + id: 0f926158669d + last_write_checksum: sha1:20df8cfe3aa53bce14350d5d0dfa00b8a5a0e930 + pristine_git_object: 9b127bc0014e6c87b1a650f7f7efc28a775b4bcb + docs/models/metricdefinition.md: + id: c6bb0db68c7a + last_write_checksum: sha1:a1775ce770440b0b6c51230264f75373c11a6891 + pristine_git_object: 314a67165a20e8672602f1bc3c1d3bac6e1aec6d docs/models/metricsdata.md: id: 4681c89ef9b1 last_write_checksum: sha1:e1b3b0ed9dc801dbabe3504dfd002723e7608129 pristine_git_object: 4800972a39a59c90f32b4616d90f4f36f3ab6a83 + docs/models/metricvalue.md: + id: c89bb1d44735 + last_write_checksum: sha1:8f36d4793766d968dca93be6bf526fcf435c7c0f + pristine_git_object: 21bdd1baf6bddb016673e979db013afe572c307c docs/models/mistralpromptmode.md: id: d17d5db4d3b6 last_write_checksum: sha1:d7804c45f10f2e929276d4a00bf6c2b966a78fb5 @@ -2483,48 +2462,52 @@ trackedFiles: pristine_git_object: a95e25c91c54edc4948ef82c1626773975190110 docs/models/ocrasidetextblock.md: id: f70a1dee9058 - last_write_checksum: sha1:87fc47392b5587ad4b10ee128b7a4e01906c04a8 - pristine_git_object: 6bf9f26f54e256c88106cd5ac042ca711d81f459 + last_write_checksum: sha1:fecb19af70295e3b1fbfc7ac5eac0a2c212e6fdf + pristine_git_object: 3b63094f9ed1faeb29f8f8828af288a17fc33e51 + docs/models/ocrblockconfidencescores.md: + id: 2f91539c992b + last_write_checksum: sha1:dd9b8d43211673cf2c09e00334733bc9643de160 + pristine_git_object: 49f84a7010cc805b8c4ed095c1952d9911dfb056 docs/models/ocrcaptionblock.md: id: 8dee3ae7cc64 - last_write_checksum: sha1:53fceb8b426087f746fdf28990d877a758d64845 - pristine_git_object: 31ee417932dc05b290057ee4f75437e2c16169a2 + last_write_checksum: sha1:0d1827b3c9d4c384f860e73ff2edeb253bd5fb6a + pristine_git_object: 612909b7907f0d5d020412cd42207db2e743beeb docs/models/ocrcodeblock.md: id: cf573ee145ef - last_write_checksum: sha1:19f8eb8db694b341c712a36fa0639c9acb55c8a7 - pristine_git_object: 564528893d7cb980993a9a31613fd9f5067f6fda + last_write_checksum: sha1:2836e6a8476acaa1b163ee8049c6f8b71edeb128 + pristine_git_object: f20ecd13d261d4e1e2a330f98dee7e70565852c2 docs/models/ocrconfidencescore.md: id: 44a3cb211acc last_write_checksum: sha1:d88c21a3aa36f24e00c2b24c31bc54944d1fc73f pristine_git_object: 73fdcb28b1044bb7122ba6609708979c17a46e5e docs/models/ocrequationblock.md: id: a9450fe13197 - last_write_checksum: sha1:6870063bce791334cb5d62445409ec09b13856de - pristine_git_object: 4c71e4910427d776ce9ffed0c2d68a0a9bed978c + last_write_checksum: sha1:f22676944efff0cee3f5aeb228d1758880da7085 + pristine_git_object: 9e8368fa8a41aadf94773b494b0b018b58da4f5a docs/models/ocrfooterblock.md: id: 8f726428e66d - last_write_checksum: sha1:fce976d77fdb8e5982de7ab6907e25a5d93ead24 - pristine_git_object: cc7ff354f77a3841d46e2c503de38cc4c1d5d0c9 + last_write_checksum: sha1:b5e742a200b4c5f73af084596d5e35f63626bafc + pristine_git_object: a19ade852b629738d9a8322436a338e45219dfe7 docs/models/ocrheaderblock.md: id: 2fd90b301b1a - last_write_checksum: sha1:fc5bac58718bed5e19eb02adf9b71889b7507c5d - pristine_git_object: 0b000251ea4992b86eecadaa153d996f98f2c2c7 + last_write_checksum: sha1:09683ee224e7845f416fc87a27f14019ae4194c7 + pristine_git_object: 28c72ae61c218a454e922f3c1cd159fc12dd8e53 docs/models/ocrimageblock.md: id: 7ec5340dab29 - last_write_checksum: sha1:e4d0996294a9ccb64838a23326aa36eb3c4c01f4 - pristine_git_object: 5744a5a6f07b33970cbab60107ec0272a838881f + last_write_checksum: sha1:f71027dfd8acb9f11276ffecead8472375745d40 + pristine_git_object: ef84f54ce833d1b12e86fdccfec25eb3f65ffe3e docs/models/ocrimageobject.md: id: b72f3c5853b2 last_write_checksum: sha1:90c5158dec6a7b31c858677b6a8efa1e3cabd504 pristine_git_object: 3c0d5544a80499b011467f29ef83d49f53801af6 docs/models/ocrlistblock.md: id: 6a1b9aa88a44 - last_write_checksum: sha1:035e5cbbd71babdab775b56020a2fa09416e2713 - pristine_git_object: 0fce7a1a660673bcb1168d3c119b12e3a7feacb1 + last_write_checksum: sha1:27bf895637aff07d0c9c330714da8b8ba6d41b77 + pristine_git_object: f560d217a6ab387ff859b6d671f8a2c7c293692a docs/models/ocrpageconfidencescores.md: id: 4bc78fe53e38 - last_write_checksum: sha1:26733f345c69b188d372290784688a972fe39dbf - pristine_git_object: bffb214868dd74e617c87ff19e3909419d9acc97 + last_write_checksum: sha1:f61bc8d1243a719cdd296683859e1817f7f7baa4 + pristine_git_object: 1c56b63e31795e40f347e44ad8e3086929180802 docs/models/ocrpagedimensions.md: id: b3429f9883f5 last_write_checksum: sha1:6435aa56e6153b0c90a546818ed780105ae1042a @@ -2535,36 +2518,36 @@ trackedFiles: pristine_git_object: 5f5c3cd5b274bb92228106b3204cba7d2a63c73b docs/models/ocrreferencesblock.md: id: c1614ca10b63 - last_write_checksum: sha1:68a20e60403c4ea7ce6ee0d5cd7e33709d830cf0 - pristine_git_object: 5893eacfe1fd5ddc0bc52b83612af918345cc0f3 + last_write_checksum: sha1:1cc3d011b6ae9852d039b8b233bdbd39b5430e39 + pristine_git_object: 99f93108ee39c9386aa6fd6ed3aa3d23eebecf45 docs/models/ocrrequest.md: id: 6862a3fc2d0f - last_write_checksum: sha1:11afbba1a3e91a4aa9336d089c645067883ab3d3 - pristine_git_object: 4bc19e381e632fa8e2ffbdb571500991fc2906a2 + last_write_checksum: sha1:7df5292b35534a2f69ed41872e966b8f3635c674 + pristine_git_object: b9bf8894584d6d94f71cf88cbf90b2f4a71019b8 docs/models/ocrresponse.md: id: 30042328fb78 last_write_checksum: sha1:8e4a4ae404ea752f3e9f1108c2a5f89ed6cfb143 pristine_git_object: 0a309317644eedc643009b6cec3a7dbb142b1a15 docs/models/ocrsignatureblock.md: id: 9d55fdaa416a - last_write_checksum: sha1:1c1fc41b61092bef33eea167bf4a2fdfe9d548ad - pristine_git_object: de2b4f60199ce3935adf167d8f25fbd4ba9e86fc + last_write_checksum: sha1:f61720d405af6d191890a0c87aab587c55071c82 + pristine_git_object: 62c189fee1e67da5825fd3fbf8504521eb585a57 docs/models/ocrtableblock.md: id: 0077842c24d0 - last_write_checksum: sha1:ebe772782a1f47335cabeeb15ce5a77243217d36 - pristine_git_object: c0e1f8abaf0cbe81aa6f4b42c3c8d215ef341e3f + last_write_checksum: sha1:8e10ae182c3d497e967f24c9a58940f45dd03ca6 + pristine_git_object: 0d5f962abc3ed8368816e98b6caa551e7e1f000b docs/models/ocrtableobject.md: id: c967796380e6 last_write_checksum: sha1:deb1715d618330b4f791b7237955e697d26c6bc2 pristine_git_object: 2da8f6105dd83d7f4d067c74298316ab512c9c3f docs/models/ocrtextblock.md: id: ec731e2067f3 - last_write_checksum: sha1:8560306c52628f855b4806b69e1b41402e1571b9 - pristine_git_object: 1eab8e1273cebfb605508ed9b1466f49eaa46c8b + last_write_checksum: sha1:6960cd4611007d4d2f607256d5307bceddfadb29 + pristine_git_object: 718df621b650245440ae89beaece0ca896a096e7 docs/models/ocrtitleblock.md: id: 2602d3e1db41 - last_write_checksum: sha1:8bccfc2aacd5713767f7344e5b8532ecadf1194d - pristine_git_object: 59c68c9f8fb8698f0185c93f652ab85b4f73708c + last_write_checksum: sha1:f5b2783e278fe6b1ee07a3807604e889ae834ae4 + pristine_git_object: f13cc07829e5f24f09ad2823cd88ab633ef7803c docs/models/ocrusageinfo.md: id: 419abbb8353a last_write_checksum: sha1:6e717a3f3de3c464e8b3237f06867cdfecec339e @@ -2589,14 +2572,14 @@ trackedFiles: id: 5d2682daf79b last_write_checksum: sha1:eb8abef7e4c2e2e5691823f89b59f5789a58eac4 pristine_git_object: 3c78f582244a5174c2d922abe8e8f6e3c158e6d6 - docs/models/orderby.md: - id: 9e749ed80f72 - last_write_checksum: sha1:4f6dd8e684dd11e4856d3d6cf2c0f2e2d1a01640 - pristine_git_object: d778621f6b1e6788aecbe25bd741d27a0d863990 + docs/models/orderbyclause.md: + id: 75e31a43e29c + last_write_checksum: sha1:9d0f87458b3c9ec39ac11de493e7b91edc2541c7 + pristine_git_object: 4d9604b0792dbfe133c77c83637bbbcd0a6e3a64 docs/models/otelfielddefinition.md: id: a631910a6c2c - last_write_checksum: sha1:9554a3efc5abf7b8a4ee5618fde6c8679a7b91d7 - pristine_git_object: 366c9bc4cb79cb68d549acfdde5d5750df7459b8 + last_write_checksum: sha1:a23e35c6228a6c9084dc8e09ab7cc9603c857e03 + pristine_git_object: 59035bff00998c36142b3d2d0834d437b9b2a4a1 docs/models/otelfielddefinitionsupportedoperator.md: id: afeaa2445347 last_write_checksum: sha1:a88cd75f094b57638c06ab385071b7d2c0d5b151 @@ -2739,8 +2722,8 @@ trackedFiles: pristine_git_object: bb256960c9fa1161698deb1fc83fb5c7c1ac9f1c docs/models/promptslistrequest.md: id: 28dc8918a66f - last_write_checksum: sha1:14fe0b8878607467c25ba53c99bc2a046349cce4 - pristine_git_object: 176e948700361931e1a74823ce53f1f96813af60 + last_write_checksum: sha1:1674fbe85c03c94ab38fe25fbef32c7e1d544934 + pristine_git_object: cea8ca0688b6eb0615e18b2ebff478950598a27e docs/models/promptslistresponse.md: id: 3cb5b91ffce4 last_write_checksum: sha1:2a4bc52ab62a082a9c73b82e6c55e9c7ca94ac53 @@ -3063,20 +3046,20 @@ trackedFiles: pristine_git_object: f849e1ae2896ee6db55c7af27f575f9f6c8c9132 docs/models/schemafielddatatype.md: id: 98f2fef83098 - last_write_checksum: sha1:14210521769a0a074a8ab1ca0a4c9ff1ec4bd772 - pristine_git_object: 685b8a2a6eab6843030450b3227dcced6baf9a85 + last_write_checksum: sha1:1fcc6144cb3ab7fbee303296af8af897658cc454 + pristine_git_object: de32192291d17b8d5be84336597f27b8f66d5f42 docs/models/schemafieldindex.md: id: 341817a0930d - last_write_checksum: sha1:a3fc674c3a9bc392cd4e7e91ed842fc452c2e490 - pristine_git_object: 93572ec444349c962c63934b73defd4eb7a84e4b + last_write_checksum: sha1:4367667f5418b674ad906f70bf471db32d063dca + pristine_git_object: a30cc0c7a86860607dc87b9a68518299840eff59 docs/models/schemafieldrankingtype.md: id: e0db6aeb7ff3 last_write_checksum: sha1:b010c47e642446932fe01d53bdc0242ac20373bd pristine_git_object: 6236c7f4bc704c35bc271aafcf47c1978255449d docs/models/schemafieldstorage.md: id: 730b7561c028 - last_write_checksum: sha1:8e700af937def11ebca2c7c8c39fe693f434e978 - pristine_git_object: 82893a86eb7828b0e52952f450833024ac68de6f + last_write_checksum: sha1:b791db71979818dcf8cb9e5f3e11a962926d6795 + pristine_git_object: f0bd62641ea2b56175adbf28f64bd8e3ea8ebd6a docs/models/scope.md: id: c7d8338540ba last_write_checksum: sha1:08e688325601e4c4614cc6b7264ea4d2f631da36 @@ -3137,22 +3120,6 @@ trackedFiles: id: e4a1bc46b776 last_write_checksum: sha1:4b65e7809ee82055dc1fedb6885eff2469cd0092 pristine_git_object: 65c8593c38a0bf6a435223d352e848ea0f88e83a - docs/models/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageputlanguage.md: - id: ac5975330ef0 - last_write_checksum: sha1:1e152cb53d35b520d91aaee6fd1161061b3b82ae - pristine_git_object: 3044121df8f497d08fba67f8b4278b4e922bc8b3 - docs/models/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageputrequest.md: - id: 28dc1d00c96a - last_write_checksum: sha1:684ff2e6c1fe5b9b50df92173fee800fdb5df82c - pristine_git_object: be0f2e166bea2d090b3f258d98e74758a853c254 - docs/models/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageputlanguage.md: - id: b3436485e694 - last_write_checksum: sha1:7af329a47d90675f0df5783842b4ea0c2dd52b88 - pristine_git_object: 8b506c08e67dd436383cadcf614c07c1a8b6675f - docs/models/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageputrequest.md: - id: c70609f98f16 - last_write_checksum: sha1:7432d642f2a99f08ce91f61178913c2eabd6fec8 - pristine_git_object: 3f90b6f21805218b4cca69088240c1b08fddacba docs/models/shareenum.md: id: 53a713500576 last_write_checksum: sha1:de5c59ca89596a3b28134a9f7318fed3b3e6af02 @@ -3227,8 +3194,8 @@ trackedFiles: pristine_git_object: 512806fbfbe9ff7a67e551cda72dae43a9f2565c docs/models/skillslistrequest.md: id: 98bee99e9885 - last_write_checksum: sha1:3a97aa0cbc99a050b088ae709f2ae137e816461e - pristine_git_object: e98446ff76e9c3a210a82266fd0db342b90ca863 + last_write_checksum: sha1:555b779d2a2b352d034152f9e7b7261c9e2a2029 + pristine_git_object: 322f5c2185adeba6ab5e2c5c26e134eb5b67ca4e docs/models/skillslistresponse.md: id: 086be6025c04 last_write_checksum: sha1:cb5a96c2bb085fa3b50fa924e66dbddfad2ddb15 @@ -3377,26 +3344,6 @@ trackedFiles: id: 5d8ed5fe8479 last_write_checksum: sha1:27c4bce66bdb6bfd651c5b38196d0dfb18fe74a9 pristine_git_object: 529000ed47267662ba7f2bfa125e2d0cd92ee654 - docs/models/summarychunk.md: - id: b87318de3bf6 - last_write_checksum: sha1:efc3c944a229227dfd59d36bb9115ed73981c147 - pristine_git_object: 3531b9af0f5c6f9fe9dab28ba2584bb77b7d3fd2 - docs/models/summaryerror.md: - id: a31873b3e66e - last_write_checksum: sha1:1c0dafb70a0e612d784604435fd16cee1bcca365 - pristine_git_object: 78a6e98dddf0a31e74e2561a1811aae0aaa6bd58 - docs/models/summarymetadata.md: - id: f97e6e0aa565 - last_write_checksum: sha1:749ece2b2087216bdbe33830460ce1bfee94bd82 - pristine_git_object: 74bf1e639c5e70fbc734bb01689e62fd36b576cf - docs/models/summarystatus.md: - id: 7224a876ad56 - last_write_checksum: sha1:2501719643e0bb276491c20e933f075a6cfc19ca - pristine_git_object: 21f0f6b1383e1c6c30d8ecaea879c4eac0b21703 - docs/models/summarystatusdollardefs.md: - id: 225eff35d60f - last_write_checksum: sha1:0a4855b522c08cbcfa4136098f5d7ee9b2576681 - pristine_git_object: 956e309b40fd2dd8e4ba616537112ba670ed12b2 docs/models/systemmessage.md: id: fdb7963e1cdf last_write_checksum: sha1:c7603c5ce77ba2bcbda9eff65eeafdb1e9ecbec7 @@ -3517,6 +3464,10 @@ trackedFiles: id: 07234f8dd364 last_write_checksum: sha1:90c0b34284137712678b0671e9f4bfb319548cbf pristine_git_object: d9e51d7dc93b24edd807b018393eab38143d46f4 + docs/models/timedimension.md: + id: e09354361a6a + last_write_checksum: sha1:599449474b17ffcb16794762eac9b9e70eeda501 + pristine_git_object: 20247793c488a890ef37c21ab6057f4a8c7d0d88 docs/models/timeseriesmetric.md: id: 64217edf3511 last_write_checksum: sha1:ca9fad09ddf36bb078950120f53d9011a98e0654 @@ -3709,10 +3660,10 @@ trackedFiles: id: 68ac0e7701d3 last_write_checksum: sha1:3ff86e1e4647f0787841ba5f267a16b730c60351 pristine_git_object: e25cd4bcc990fc9b6d583b8d771ce9b0c297d391 - docs/models/unregistersearchindexv1ragindexesindexindexiddeleterequest.md: - id: 14a227aad93c - last_write_checksum: sha1:bea091c8d1d41acb34b8180504ebc004c43b579f - pristine_git_object: 5db96ad3c911fd7cf29f7444ff571bc57777c37d + docs/models/unregistersearchindexv1ragindexesindexiddeleterequest.md: + id: 841c77fd0ca3 + last_write_checksum: sha1:bebae685fc6896850c7f477c9270399fec034f09 + pristine_git_object: 8d4acf5a601b15477569c39591aa54b0fbca2ea2 docs/models/unscheduleworkflowv1workflowsschedulesscheduleiddeleterequest.md: id: 40615902c1fe last_write_checksum: sha1:d42a893a1c281ddfc8db957e168d832311917fe8 @@ -3781,10 +3732,10 @@ trackedFiles: id: 2990f7e2ed4e last_write_checksum: sha1:89979ac3e892f949f1f011e216db74fc81033982 pristine_git_object: 7c8f2bb1524b105e4d4f660fbfa102ba888e145a - docs/models/updateindexmetricsv1ragindexesindexindexidmetricsputrequest.md: - id: 02a7f0b12d2e - last_write_checksum: sha1:6feaf4f87701fa0f3fc27470179d6538320f98ed - pristine_git_object: 50bf31c35cce8c702f1a6fd456e72a0fbaed476b + docs/models/updateindexmetricsv1ragindexesindexidmetricsputrequest.md: + id: e38bdb511166 + last_write_checksum: sha1:6f42e0ea5b4d7c3922e8d6eb3ba7134bc068581e + pristine_git_object: 434f3b46cbc8cef9c4e8d27c6c6eb21f9287fd3b docs/models/updateinvocationbody.md: id: d8b3b9cca5ae last_write_checksum: sha1:0fed6d77626ec76d3584e8d38b97ee228218a390 @@ -3841,14 +3792,6 @@ trackedFiles: id: edb8e00f3e06 last_write_checksum: sha1:7fa55b1500aa398fd0e6bf862c2c2396994a3ff0 pristine_git_object: 105d6ac3830539c9a6d8068b3115c23c3c0cfbcf - docs/models/updatesummaryrequestsummary.md: - id: 834791171d03 - last_write_checksum: sha1:5a61e789fb943af013ae27241c1dc5a5c865e355 - pristine_git_object: 46de9046cb5626527ebcd2a6a1a65b0d699c0086 - docs/models/updatesummaryrequestsummarystatus.md: - id: d6c9e362ff5c - last_write_checksum: sha1:0f19374b9927122ff98972605f2a0c1c6fba5054 - pristine_git_object: 6ac6bc80ad863f5f53acd5b620ac206c6165021b docs/models/updatevoicev1audiovoicesvoiceidpatchrequest.md: id: 0b7dfc68573f last_write_checksum: sha1:53d5d07d53d184d68b57185d251c8d68ff3cf4d4 @@ -3909,10 +3852,6 @@ trackedFiles: id: 304bdf06ef8b last_write_checksum: sha1:1f297f34069668f6107f2c0389606efe413ff5a8 pristine_git_object: 5bcea5b5d12e72222720af2c014d64ec4bdfee4a - docs/models/vespagetretrievableresponseretrievable.md: - id: facec1ece40c - last_write_checksum: sha1:1002da31c0cd223087489117c641c3b915fef7ca - pristine_git_object: 1c2bbbc500437dc93ae5363082fc0c3fe732e557 docs/models/visibility.md: id: 69ecc096de1e last_write_checksum: sha1:30226db515dbfeef9316552cf871cf6882f597d2 @@ -3941,6 +3880,10 @@ trackedFiles: id: fc4df52fb9b5 last_write_checksum: sha1:72636dc7ae74264bb5158d284ef6f83da5290b27 pristine_git_object: 4ca7333c412ad819e3e02c61debe402e3f9b0af9 + docs/models/workerstatus.md: + id: 571aceff5d27 + last_write_checksum: sha1:80aa73b5ab2009ddce7a65f01c370cebfbf60f55 + pristine_git_object: 1461e0275caa05b2b07b319f4bd83eea9e88f683 docs/models/workflow.md: id: a782201b7327 last_write_checksum: sha1:b43e95096bbe2a693f601444695f26c995444fc5 @@ -4023,8 +3966,8 @@ trackedFiles: pristine_git_object: ac50a894e5290f07d8531e25663baae090cf533e docs/models/workflowexecutionrequest.md: id: 44a6d9ef046a - last_write_checksum: sha1:a7c35ec35e8ba3a3c48c2e27b334ae54abff2ff5 - pristine_git_object: 4b61c7b7fad5d597639122a8b32b7ac3c375d669 + last_write_checksum: sha1:ed28ee678e1ead11ec9219b982dfa436b8a7f39b + pristine_git_object: 6b24d3743aa3cd18d390ada65bf3cf1a5c7d90be docs/models/workflowexecutionresponse.md: id: 73595cfc443f last_write_checksum: sha1:7621c93ced46e57411855bbe97746a4590a2d6af @@ -4191,8 +4134,8 @@ trackedFiles: pristine_git_object: ca1dc5033fb40d412882aad2d116676a192b4809 docs/sdks/betaprompts/README.md: id: 837896e7e5a0 - last_write_checksum: sha1:1a93adb9e6d5321f235dd2b59de094a8b87d5faa - pristine_git_object: 02077dbef71f52b8386924765edf8bb050ddba3f + last_write_checksum: sha1:aeb7b670785ee358d6b988d5f05847db3087eceb + pristine_git_object: dae671063ae2e4790b3275b14ff53271b15eaecd docs/sdks/campaigns/README.md: id: 18dcc3c717ca last_write_checksum: sha1:758413376668e53883ded94d41b1167cbc00fa04 @@ -4211,20 +4154,20 @@ trackedFiles: pristine_git_object: dc0f4984380b5b137266421e87a1505af5260e89 docs/sdks/connectors/README.md: id: 7633a87d946d - last_write_checksum: sha1:a7efa5416f8be87d341df2779d8fb5a380f47199 - pristine_git_object: 6c0c1efc7eb5d0de9a09e1d7e67b851a068bb6f5 + last_write_checksum: sha1:5dda84b84bd329a82a2f48c61abb0afa144c3a4c + pristine_git_object: b0d55909b4ebdddb425fb61ea4c49f2af556765c docs/sdks/conversations/README.md: id: e22a9d2c5424 last_write_checksum: sha1:68ede193fd35a89ab226aa92a92edaecf1eebb1a pristine_git_object: 63cd80a4a655a5c139be79239b0787c3f90cdea9 docs/sdks/datasets/README.md: id: deb5d90f4faf - last_write_checksum: sha1:68f8982980d4e4610fc0e03e26437fef46cbef66 - pristine_git_object: d609dd653933d817b9dee61aac14893f24240c24 + last_write_checksum: sha1:d42e9ea785159991d95b2a0b2006dbb10f547ea2 + pristine_git_object: 4fdc17180296cf2f6f36257e304dca2eef12cfdb docs/sdks/deployments/README.md: id: e7c5559ab768 - last_write_checksum: sha1:601b116e52611074c6b255b42d332d26fa8642ac - pristine_git_object: de3973fccbe73bb6321abf6dea4a9d97a0ac00b5 + last_write_checksum: sha1:d886fea23530948ea23a8f6a3cd396d31f537be3 + pristine_git_object: e37a188282fd7a8f398ce2d56e7ae02535b7acb4 docs/sdks/documents/README.md: id: 9758e88a0a9d last_write_checksum: sha1:7f1540110547b0ddb1350dc24422bb94bdf3bdd8 @@ -4259,8 +4202,8 @@ trackedFiles: pristine_git_object: 671a7182a9fb2622b68db2826640d6eeae93e6b0 docs/sdks/jobs/README.md: id: 7371cdc8b89a - last_write_checksum: sha1:ca7b55fb1705fa127f1750ec41bf31bc1f05c37d - pristine_git_object: b9655075680d5046d4b10d10de77d6b7b2ccea23 + last_write_checksum: sha1:2840eb2f036a54814db35ef37a924317f32f57d1 + pristine_git_object: 6aebf57e3fec78c34c470f9a81bc0c51700d1817 docs/sdks/judges/README.md: id: 330e067ff8b7 last_write_checksum: sha1:e21c7f2201ab3e2ed14c5be687e5291f7c6ee9cb @@ -4283,40 +4226,40 @@ trackedFiles: pristine_git_object: f585dcbeadeb87d5634a505450f3599af21df155 docs/sdks/ocr/README.md: id: 545e35d2613e - last_write_checksum: sha1:7f8e3e3cb74a3ff6af9a1fc2c611bbed659c3b4e - pristine_git_object: 70ce47242cd1893d4e22f2ef09738326aa48be2c + last_write_checksum: sha1:3077599661d6cee22e3ef4b017074fc8f115d361 + pristine_git_object: 31ab3bfd65826a3a07c224e10935768e839fea91 docs/sdks/records/README.md: id: db86bab024d3 - last_write_checksum: sha1:152a48dd9363439a754a4be50941669256fcf60e - pristine_git_object: a14cf4e9659088726be37da0a48eff14e3c14572 + last_write_checksum: sha1:becc43e06e8086bf32c5db5887c07b23ebd9cd84 + pristine_git_object: d6a095e3d7ab169613a8b3338fa72508235d0729 docs/sdks/runs/README.md: id: 4598fd39b715 last_write_checksum: sha1:787ad2cc3aea493f9cac63137e718917a5cdb219 pristine_git_object: 66a407748f96d8dcd7b663c4681d9ab3e1672e4d docs/sdks/schedules/README.md: id: 2f28c809a225 - last_write_checksum: sha1:3f644b41a399bc10b5bb9b667f4ee2b36d3d0651 - pristine_git_object: c13527752b33297648f99515c5e5fb7d706b0aed + last_write_checksum: sha1:ed27d25b618632207500e122efa02e948d7f9b38 + pristine_git_object: 693ddf7603e063695eea96134b8125f31b7ecb7b docs/sdks/searchindexes/README.md: id: b58e7a6ab4f1 - last_write_checksum: sha1:eb508a977e08c84f108c7fcd7341ef40652449d6 - pristine_git_object: b5961082eede521c25295e6de81443280cd18b42 + last_write_checksum: sha1:b7ccd2f1f80b7da1a9ba7b4456cfea16db13d110 + pristine_git_object: df668282cb99457e372f0c6e741e8895d3aee79a docs/sdks/skills/README.md: id: 3a14a5c90791 - last_write_checksum: sha1:2413d969c5b5643e2e1f242175b3a02cfec4967c - pristine_git_object: f45d8bb1af8159a436e19d7273bc65a5220183fd + last_write_checksum: sha1:5e498f1ec501078a518eda8eac0b54e5f3c06b21 + pristine_git_object: 93899c725ba88a178c24062b3563a0f400ce7c33 docs/sdks/spans/README.md: id: 594028be109d - last_write_checksum: sha1:6e403efcb00f0ca699242f30d8e19b11b571098f - pristine_git_object: f833e02fba4d9de4f101783f70457a03d2f66422 + last_write_checksum: sha1:131e21849ac1eead91ea7a14bc8e3fc3136b21e0 + pristine_git_object: 5865ef28befbde047b5663eb42c82973a2fcc9a1 docs/sdks/speech/README.md: id: d5924688d48c last_write_checksum: sha1:ad4d386e6d2b9b144d283ad72024eb140b7c5d96 pristine_git_object: f750cd3ac01f4fb818f0f0c63b48a13bde1db5dd docs/sdks/traces/README.md: id: f3d9b8dc85fd - last_write_checksum: sha1:a2c55e22aba98e6c66f50e14a946f72c1311df6f - pristine_git_object: 727fc32a49ca08dacbe05786fa47c467a9e119e9 + last_write_checksum: sha1:94dc57c390098d441aeebff53d1ce5ef3572aa1a + pristine_git_object: 5db6394cc71bcac7fa32fb8455c39d8844fbb0e4 docs/sdks/transcriptions/README.md: id: 089cf94ecf47 last_write_checksum: sha1:548786cb29e8500574afaaa771a5184c81fe2ebc @@ -4331,8 +4274,8 @@ trackedFiles: pristine_git_object: 4460111c987bcf347732eb103b09841c2a71bae7 docs/sdks/workflows/README.md: id: 80c76ce944c0 - last_write_checksum: sha1:2795262ee7c4100d7d2032b3d15b0f97964fa6a3 - pristine_git_object: e42985f4b5d161d41bcf97983a5fc38995920c9c + last_write_checksum: sha1:dd53c821fdb76c1cb5b34b9dc82da6e723cf59af + pristine_git_object: fe7ede0668903038bbf63d67d324c00352623e5a docs/sdks/workflowsevents/README.md: id: 514b42269280 last_write_checksum: sha1:34971ab6eef89b115d78375a85142f3d2612f431 @@ -4363,8 +4306,8 @@ trackedFiles: pristine_git_object: 036d44b8cfc51599873bd5c401a6aed30450536c src/mistralai/client/_version.py: id: cc807b30de19 - last_write_checksum: sha1:80b9ad2a551c2d632eec377adc10e13d70738eaa - pristine_git_object: 71442ec46af3e8322b1a56dd681924b6bed80349 + last_write_checksum: sha1:11f351220a70e580a5124c1c873ab00fe20434a1 + pristine_git_object: 9aefbab952728b7b32c8a95c9bdabe123383d3ee src/mistralai/client/accesses.py: id: 76fc53bfcf59 last_write_checksum: sha1:33d8a0663a647b7a7e1946064d05c3b40e538816 @@ -4395,8 +4338,8 @@ trackedFiles: pristine_git_object: 8e21dfc2018054414726f166f89af94d0ffc8e71 src/mistralai/client/beta_prompts.py: id: bb124f107a50 - last_write_checksum: sha1:ec47904f93aabd94ad0dcc25cbb49a21ab57d52f - pristine_git_object: 5189b7e0af8d4ce54b5f5340b9586c6b869d08ca + last_write_checksum: sha1:4c394645b5e1a5bbf542ed4bb874bde9fe52e0a3 + pristine_git_object: 442edd997ed2ac4a2c2154c014b47413eb2ef42e src/mistralai/client/campaigns.py: id: 9e64fcf4e60e last_write_checksum: sha1:b24ef9e6e88626463748b4ddee78b9eb40d76180 @@ -4415,20 +4358,20 @@ trackedFiles: pristine_git_object: a19206185ab23809971b395c522a34da4e399eea src/mistralai/client/connectors.py: id: 39da03126050 - last_write_checksum: sha1:a1d07aac49f5a1c64c3c2986d23ddcc0fb2658d4 - pristine_git_object: 53bac05ccce49c0798946d668bfe239d68137edb + last_write_checksum: sha1:3b777ac00b08bf1071c450e921657f8b408582af + pristine_git_object: e14f046993837e8a02048406dcecffbc3e056a42 src/mistralai/client/conversations.py: id: 40692a878064 last_write_checksum: sha1:b56c051f97ec84539028d736409289579b8df48d pristine_git_object: 6f4c29eeabd79ea4f18ee5aa61c8c5665e714a87 src/mistralai/client/datasets.py: id: e5a6ae2a2d85 - last_write_checksum: sha1:7b971b9595afe6027889b0b097bfd5c3defc4e05 - pristine_git_object: 0c9718747c15dce3e8c6580c9db14518985b0679 + last_write_checksum: sha1:e8e632a76be1fb20ceeb134c408b527bcfeee203 + pristine_git_object: 8736de9f794df7a9b1d9871a5417dc981666b7fa src/mistralai/client/deployments.py: id: a874b267fcb9 - last_write_checksum: sha1:92df6c76210d2b904a73deb755116f5f6708d66a - pristine_git_object: 0014e041917c6a33f9f029b2fbdeaad1d4842239 + last_write_checksum: sha1:41576b7ec508d5ae7fa20f98951cb4ce4eb76b3e + pristine_git_object: 91c4fb6f5fda28b5fd663ca46e91f305ccea36a5 src/mistralai/client/documents.py: id: bcc17286c31c last_write_checksum: sha1:4261eeb474387959cbf359911e8ff3cfe706f75f @@ -4495,8 +4438,8 @@ trackedFiles: pristine_git_object: 07606ff20b06e8fae71405675e835bab46aa412d src/mistralai/client/jobs.py: id: 22e6e695e52b - last_write_checksum: sha1:c3e59ba489509aabcd7b4dd2090080d838b5ef9a - pristine_git_object: a31f8f3ff229f4d80114d5d071de9e549a7aee80 + last_write_checksum: sha1:949a64171d4838c803aa8ae29e93f0c10d835f2f + pristine_git_object: bb041085dd92669a9fc805032eabe27616a815e0 src/mistralai/client/judges.py: id: b6024a41ecb4 last_write_checksum: sha1:70c54dcf594a04b8266ea4a67e734b9ac82be2b4 @@ -4515,8 +4458,8 @@ trackedFiles: pristine_git_object: d0b6b4fc091393e6e8a75f158363baa8e2ea21d4 src/mistralai/client/models/__init__.py: id: e0e8dad92725 - last_write_checksum: sha1:c30aac136065c301bb030807f32f160e84242435 - pristine_git_object: fcca02ee5c40f32b4c741ae2b848d05c49a7361b + last_write_checksum: sha1:1c0d800463263afe6c4eebeae6d53abbf15087ef + pristine_git_object: 941bf11792161a5bc079e0dd753bf822a99f7df4 src/mistralai/client/models/activitytaskcompletedattributesresponse.py: id: 8174941767cc last_write_checksum: sha1:b5246e203765ba0532a6a65d391bdd237ab2c891 @@ -4665,6 +4608,30 @@ trackedFiles: id: 1b73f90befc2 last_write_checksum: sha1:c9657a7501bc6ca9f9990c78814ecb43aebb5ef3 pristine_git_object: bb53879d7b590e19de74e183cb9658d7de6ba271 + src/mistralai/client/models/aggregate_spans_v1_observability_spans_aggregate_postop.py: + id: 402703d63097 + last_write_checksum: sha1:7bacd9cf0a5aba6604fdda000e2454978c57a758 + pristine_git_object: 721d0b7c4aa2745a84e04e884ecd4277c9c47399 + src/mistralai/client/models/aggregate_traces_v1_observability_traces_aggregate_postop.py: + id: 48b3b1b2debd + last_write_checksum: sha1:994d98a29a0e6134f339b7ff527c1fa7e0a6a5b6 + pristine_git_object: 147e37f836293334804756b9309cc2489ca4a287 + src/mistralai/client/models/aggregation.py: + id: e0f464c8bc95 + last_write_checksum: sha1:1b3d88c977df636cd112af812d9fbd2701dd3235 + pristine_git_object: 1da7c65a23d39ebf2be4b3ab61c71429d864ad9f + src/mistralai/client/models/aggregationmeta.py: + id: 2075ee6b10a3 + last_write_checksum: sha1:01563e0e01132f4af7b4b8b67cd8114b40e545ac + pristine_git_object: 88c7cd3ef616081d9e816cc52125bc208825ac1b + src/mistralai/client/models/aggregationrequest.py: + id: f35f9759a3f6 + last_write_checksum: sha1:21cbf703f42cca65abbe826a32166625664550f7 + pristine_git_object: 6ecc06ccf6f97e4dc844304d643c6d233cff05b2 + src/mistralai/client/models/aggregationrow.py: + id: 376cd8ead269 + last_write_checksum: sha1:b3d9623e4b378549cba088cd8833762bea4a96e8 + pristine_git_object: ac61d4b5105b47e92a0702f03d5bc413ff7d4b34 src/mistralai/client/models/aliaslist.py: id: 62e1e2ab1ce8 last_write_checksum: sha1:53eba1fc2cbd363982d3d2a8bd62591146dd70c5 @@ -4905,18 +4872,10 @@ trackedFiles: id: 1a4facac922d last_write_checksum: sha1:4a4b7a53bc1a5f20ad33e41739aee21775d32101 pristine_git_object: 3e208f73b29df047f38b365385ea2832bb00f078 - src/mistralai/client/models/connector_activate_for_organization_v1op.py: - id: 9b35397dd5cc - last_write_checksum: sha1:310d5c74ef6b89e604e94bec61efa51f853e7c88 - pristine_git_object: 1b0ec3b0bda16c406d70a8a8e97cbb92ee427f51 - src/mistralai/client/models/connector_activate_for_user_v1op.py: - id: 6bf45c78cfea - last_write_checksum: sha1:a821db048f3e675f4593d0355c1e361c49311e42 - pristine_git_object: e30126d48d593fc5c240fd58b98fbf6aba314caf - src/mistralai/client/models/connector_activate_for_workspace_v1op.py: - id: b6392712ddaf - last_write_checksum: sha1:b361b01a898a446d2ed9a953c8cfc95812341a9e - pristine_git_object: 00fe6699d18db79d9943dc55775eb337b3ad2846 + src/mistralai/client/models/connector_activate_for_consumer_v1op.py: + id: 810bc363ca55 + last_write_checksum: sha1:55f8fd3250f9eb0d77e191e285ee6301d02c2d42 + pristine_git_object: 78aa42ac4772daba89b0e2f79051c48d1213cc45 src/mistralai/client/models/connector_call_tool_v1op.py: id: 7948899b3068 last_write_checksum: sha1:c4388ac1594641c36f97daaedcf42b0e94753be7 @@ -4933,18 +4892,10 @@ trackedFiles: id: 7795b085704b last_write_checksum: sha1:70bffd65c359d4c295b0f4a419d5a783d50e03ea pristine_git_object: 43b3c1dc6576d9d9260a220097f52b51029e205a - src/mistralai/client/models/connector_deactivate_for_organization_v1op.py: - id: 850bece829b0 - last_write_checksum: sha1:b9dc305c9bc09d5979d650b5734d86eb416e23fd - pristine_git_object: 4c5c5458e79a3fcabf1b608895364e5aee21a536 - src/mistralai/client/models/connector_deactivate_for_user_v1op.py: - id: 1df4227a54f7 - last_write_checksum: sha1:8d2b440ae4983f8b43b9dd7fed5c97a5cd9c17a5 - pristine_git_object: 5d998877241cc05f2e67e6b28b8a349f18d866ef - src/mistralai/client/models/connector_deactivate_for_workspace_v1op.py: - id: d82c1a5321cc - last_write_checksum: sha1:5edfc695ffd5acfc57f2a08af655b609ffbdb05d - pristine_git_object: 9f02d887f7be47f64fdbb0d00f7e2d3be2f23517 + src/mistralai/client/models/connector_deactivate_for_consumer_v1op.py: + id: 5df1d67b0cc1 + last_write_checksum: sha1:316e219ab4f9fcec5990638362228406d2b2bf28 + pristine_git_object: 9b435f23877232073ffccc028a594b715e299115 src/mistralai/client/models/connector_delete_all_user_credentials_v1op.py: id: 7d0462b6586b last_write_checksum: sha1:1f356eb0414fd81f9fbbc6c5809441776317b1eb @@ -4967,8 +4918,8 @@ trackedFiles: pristine_git_object: a746ff5e09af76bf2aa4135b5fc675c816a8941f src/mistralai/client/models/connector_get_auth_url_v1op.py: id: 2e6b9ab43d1d - last_write_checksum: sha1:9c98e68496578681fca2466ed5ee45d5a85d9332 - pristine_git_object: 854fbcd3240d09b3e07e2e9fe032f9a19d27f2e9 + last_write_checksum: sha1:1e111ee2954a1c33960b1c73822aff15f23e0cde + pristine_git_object: 228f4b0773fe377c56d44f5d14a6c769ee79775e src/mistralai/client/models/connector_get_authentication_methods_v1op.py: id: 6861e4d57959 last_write_checksum: sha1:8114ef46326cfcdadbbcc73fdcdc9ab52f3d8e0d @@ -5353,6 +5304,10 @@ trackedFiles: id: ea15ddd64402 last_write_checksum: sha1:ab885c9d02a2f6029981e2d102254724a89f9dc3 pristine_git_object: c43d77e567ab0e64dfbbf7d5a0bf64494edb28d2 + src/mistralai/client/models/deploymentworkerlistresponse.py: + id: 29dddd42d9cc + last_write_checksum: sha1:edfb69f1c0ca8d33d7db792ea37299d7ef87db7e + pristine_git_object: 70edaeda0811e16e1b6b53101a83f07b691a8cd3 src/mistralai/client/models/deploymentworkerresponse.py: id: b11a9947bd19 last_write_checksum: sha1:c1e85f24e934d0fa99af34c3f906e55acacc092d @@ -5369,14 +5324,6 @@ trackedFiles: id: fbbf7428328c last_write_checksum: sha1:3cdd40229b126132d3eb60505cd1d635325a8372 pristine_git_object: c04512c130ee295c80548a2215b0f6bb428667bc - src/mistralai/client/models/document_fetch_v1_rag_indexes_index_index_id_schemas_schema_schema_id_retrievables_getop.py: - id: 302aa3933dbe - last_write_checksum: sha1:c62cd71474180eb50a13a74be24f88f59ac9ed23 - pristine_git_object: 9e16b293085b937e74025fe6ac15fc93dffe7193 - ? src/mistralai/client/models/document_lookup_v1_rag_indexes_index_index_id_schemas_schema_schema_id_retrievables_retrievable_document_id_getop.py - : id: c65495a73054 - last_write_checksum: sha1:61d89b3f3a29c2981f35daeace15e4bb38832127 - pristine_git_object: 4053d7f9ea3f1c2eab2f2e3153fa804a107760cb src/mistralai/client/models/documentlibrarytool.py: id: 3eb3c218f457 last_write_checksum: sha1:a84295aba7b9e7f70b68f279934d1a5ca0817f77 @@ -5641,14 +5588,6 @@ trackedFiles: id: 2e9ef5800117 last_write_checksum: sha1:bce744d77a3dac92d4776a37be497311674bdc7d pristine_git_object: eae872643c85115a825c2feda11d9a6c12a06b99 - src/mistralai/client/models/generate_index_summary_v1_rag_indexes_index_index_id_summary_field_language_postop.py: - id: d15c3d94a9de - last_write_checksum: sha1:fb36df939a3a29a12c944a0f6b84d5fe98363fed - pristine_git_object: 1a4f9959a0e102e2d83b496c749adeeb79b50342 - ? src/mistralai/client/models/generate_schema_summary_post_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_postop.py - : id: 55d8ae49b317 - last_write_checksum: sha1:f43bf44b6214c4f2ebc0d00b3a7a8cb42a7affe9 - pristine_git_object: c3f657b8eb6cb3e72a60ff21ac6ad57f12677620 src/mistralai/client/models/get_campaign_by_id_v1_observability_campaigns_campaign_id_getop.py: id: "288520184035" last_write_checksum: sha1:ba2f5a6ef8e1f7a2e859f014510ea4fffe4fd7ea @@ -5713,22 +5652,6 @@ trackedFiles: id: 3fae92e2573a last_write_checksum: sha1:2257627743f50ff58107762a69aae40ef5528214 pristine_git_object: 1f699bed56b6a40166274492d7b2ca4ff84a8f61 - src/mistralai/client/models/get_index_details_v1_rag_indexes_index_index_id_detail_getop.py: - id: f198b522bef3 - last_write_checksum: sha1:6bd8857d7b1ad0ef1ccfc7041754d3f52a908e80 - pristine_git_object: 20b41f59b13819ec190bcd11e2c4cb00c4738188 - src/mistralai/client/models/get_index_schema_detail_v1_rag_indexes_index_index_id_schemas_schema_schema_id_detail_getop.py: - id: 164c025cd3e0 - last_write_checksum: sha1:12fa95cb800a7797f8c93dcfc21f60e4c8b8a73c - pristine_git_object: fba44c48b006b75959b1f9083b0cfdc4f8fab001 - src/mistralai/client/models/get_index_schema_file_v1_rag_indexes_index_index_id_schemas_schema_schema_id_file_getop.py: - id: d431383a6c9a - last_write_checksum: sha1:a89de0e5434468d2570fba7f519ab2c8bbf428d6 - pristine_git_object: e28e2cbc2cd2e77c638646abc53d537c43c70a1f - src/mistralai/client/models/get_index_summary_v1_rag_indexes_index_index_id_summary_field_language_getop.py: - id: 06a036082c59 - last_write_checksum: sha1:7a9bd3beca87ed5aba895655f221ec10869525b5 - pristine_git_object: 54eda5e1b9fb7aefd6c9278d6d7ea090606bc9ca src/mistralai/client/models/get_judge_by_id_v1_observability_judges_judge_id_getop.py: id: 4201c3c5a891 last_write_checksum: sha1:44c9a7d21ea727e0f849cfc5dc4a02220bcf6e74 @@ -5755,12 +5678,8 @@ trackedFiles: pristine_git_object: d22d0515070d71858367cacdca0e2b83ee2a4cc0 src/mistralai/client/models/get_schedules_v1_workflows_schedules_getop.py: id: b5f0210eca23 - last_write_checksum: sha1:cf881ab5d08e4f97c4482522949059251406d4a8 - pristine_git_object: 62f8ece293aa947f86bc09938bbcd1ff6429edb9 - ? src/mistralai/client/models/get_schema_summary_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_getop.py - : id: ddde507d8031 - last_write_checksum: sha1:02e62bd6cd5f4b1d674f0d7e75b5704749030676 - pristine_git_object: b2b352f1dc17d4df312493ff95ea1670a1f8520a + last_write_checksum: sha1:babe5070a74471b86b61e645e3e077e0f58a1cff + pristine_git_object: 1bbea001e32e3894d432e95185602427c76bbaaa ? src/mistralai/client/models/get_similar_chat_completion_events_v1_observability_chat_completion_events_event_id_similar_events_getop.py : id: d651bdc06c1b last_write_checksum: sha1:25331ac322d230cb7d9fc2a6aff2d7db561fdf2f @@ -5873,26 +5792,10 @@ trackedFiles: id: e93e67a4d749 last_write_checksum: sha1:1a7bbdfbfe84ec6fa74dc30385d05249483e68a3 pristine_git_object: a6f91a87a723c9b738f3778b4e1a7a557ca2bfe3 - src/mistralai/client/models/getsearchindexdetailresponseindex.py: - id: 06fd24dda86b - last_write_checksum: sha1:403ab8f360b3c8e3de2981d31e72aa8d1ac278ca - pristine_git_object: 2c22a9f21d84285cb6f430593daf4196eb4a29c6 - src/mistralai/client/models/getsearchindexdetailresponseschemamodel.py: - id: 62dcfab09ce7 - last_write_checksum: sha1:708caf4232db3969beb450b782f22feea08912ea - pristine_git_object: 9afc479c2c218a66789bfaaf644c58980f52679d - src/mistralai/client/models/getsearchindexschemadetailresponsefield.py: - id: 9a63e248e0d3 - last_write_checksum: sha1:5907e479e5f397e73552c1e810a72b895339c9b4 - pristine_git_object: f378412960208d74e32eb50d60a0105deeaf282c - src/mistralai/client/models/getsearchindexschemadetailresponseschemamodel.py: - id: 3b8b1de4ac82 - last_write_checksum: sha1:1697b07bacc8d7b3fa3e92641f861388e33425c4 - pristine_git_object: d660378eeae357ddabb4ae6d46229e022c9f2af9 - src/mistralai/client/models/getsearchindexschemasdfileresponsesdfile.py: - id: c74f1019e999 - last_write_checksum: sha1:dd772fa0369b13fbed7bbdbbddfbbf1fe88670bc - pristine_git_object: a57a0089ffac26dc43ce07cecf7b49198fcb86e4 + src/mistralai/client/models/getsearchindexsummaryresponse.py: + id: 694db4804e72 + last_write_checksum: sha1:cd30dd604fd876a179041b881b9b90e2e4eda24b + pristine_git_object: 9c290556835c14c6083099acfbddcaa00626268d src/mistralai/client/models/getsearchindexsummaryresponseindex.py: id: bac96275e2e4 last_write_checksum: sha1:0c57ea0a932e1c9afbf7e488e39380506d9aa477 @@ -5941,10 +5844,6 @@ trackedFiles: id: c95cbe1b0843 last_write_checksum: sha1:9b8d86a2bf87a3bdba93bdb65bed0820c9027369 pristine_git_object: 5878cb5c3adfc719ef2d89b743f3068c932c363e - src/mistralai/client/models/getsummaryresponsesummary.py: - id: 0288dc3df057 - last_write_checksum: sha1:3153d02cf70f6ce6ac6a7fcd53b4697aecec616c - pristine_git_object: fdfcb2fdd65edf0493bffd6eb38da7835d2c3df9 src/mistralai/client/models/gettrace.py: id: 3c7e1abbc64a last_write_checksum: sha1:8076022da53ee339572c6676db06efef09a02a48 @@ -5961,6 +5860,10 @@ trackedFiles: id: d94016253ab3 last_write_checksum: sha1:bd40e57299f57d33cc8c0dbf566e3ec631ebbe9d pristine_git_object: 86d87ddd14d38aa488ae205fa3f8224a064b9ced + src/mistralai/client/models/granularity.py: + id: 5230c577800b + last_write_checksum: sha1:1cad36e5e3a6cd71a3e761bf22ecdcc80f1179a8 + pristine_git_object: 9dbac6325315b7190e9b38e1ef6a0ce07f6deb34 src/mistralai/client/models/guardrailconfig.py: id: c72b74412547 last_write_checksum: sha1:1688b51dafa47d23ff048e88975b21f24932f6c0 @@ -6039,8 +5942,8 @@ trackedFiles: pristine_git_object: 683da4af5412e7da90a4af83864c40dc53a9ed77 src/mistralai/client/models/jobs_api_routes_batch_get_batch_jobsop.py: id: d8f0af99c94d - last_write_checksum: sha1:04082f4aa3dcf94708c1fab8c3114e690959d6d1 - pristine_git_object: e5869656d9666768dcbfd53883ed6706304fd565 + last_write_checksum: sha1:8bfca7b33217a0723245150f46a8e1af74bece86 + pristine_git_object: f0649f3af47bb5ddaa495e200e923d29711bd2ab src/mistralai/client/models/jobs_api_routes_fine_tuning_archive_fine_tuned_modelop.py: id: 34f89d2af0ec last_write_checksum: sha1:3d5242f757ee9be10963af9cd5d47824fc83c71a @@ -6217,10 +6120,14 @@ trackedFiles: id: 028a34b08f9c last_write_checksum: sha1:b15f423354d9f938b6f39cc8ab19095f3203d74f pristine_git_object: 4ec8604c50da4154796b4267bb639cc4d377f6e6 + src/mistralai/client/models/list_deployment_workers_v1_workflows_deployments_name_workers_getop.py: + id: 6f9aeac1e00a + last_write_checksum: sha1:d7e819b3849b1735e22035d5ae7ac0d6b67ae0d0 + pristine_git_object: 8e499fe8a0f9a1a50f9f2bf0bfc530675ee7b9dc src/mistralai/client/models/list_deployments_v1_workflows_deployments_getop.py: id: 0c6586ffcab0 - last_write_checksum: sha1:ecc7ccbf3a34b2833c84127cf8d35f5fb3a11829 - pristine_git_object: e1c9c0a4c97e8c80787896dc0cb39526eef43401 + last_write_checksum: sha1:99b681bbb6adaee4aaba45f20c5fa6265ab9b029 + pristine_git_object: db22c7c610a50860332294893bf7a61ab78a714c src/mistralai/client/models/list_models_v1_models_getop.py: id: 1843a7aa68e5 last_write_checksum: sha1:018c32019aab6c4995285ace8abba54d88f41c0b @@ -6297,6 +6204,14 @@ trackedFiles: id: 7d5c6bc92aab last_write_checksum: sha1:e6ff60d8fc88037b411609920e816cd1830c6a57 pristine_git_object: 8c501d40dadfeef8063464e9470e68ba30b5d398 + src/mistralai/client/models/listsortdirection.py: + id: d0c804031d6c + last_write_checksum: sha1:a7d04ae4ecb7e7d7211d15269ebc139d830204a7 + pristine_git_object: fd7e3e4011b59d5f0cf542dbd105de1b08581d6e + src/mistralai/client/models/listsortfield.py: + id: 3c1f2de4fc89 + last_write_checksum: sha1:1dc4a77cc863192712f0aae606983da6987e938a + pristine_git_object: 9b3019b234418146e868ed18876e6548afa3eee8 src/mistralai/client/models/listworkfloweventresponse.py: id: 20a423148117 last_write_checksum: sha1:bdf75230150022794f0268453c9f59952580c524 @@ -6401,6 +6316,14 @@ trackedFiles: id: e2a5171d27c5 last_write_checksum: sha1:361fdea88fe10abec7f0e49ad918e8a02354a801 pristine_git_object: f3e292bd722e7a0a0b50a7c66a61b0f9808e7b4d + src/mistralai/client/models/metricaggregation.py: + id: d83c8202faad + last_write_checksum: sha1:40101cc7ab13ece5b0a01c3558ffde92cf769ea2 + pristine_git_object: 7a26fbbdb6bd0e61c87bd3bf59505d259ef19a48 + src/mistralai/client/models/metricdefinition.py: + id: 37663cc0cc75 + last_write_checksum: sha1:da6252f4b985e7a38d6baddeac2a927d3adee0f9 + pristine_git_object: e6c9504144c09878315a4134465c06d6e358fcd0 src/mistralai/client/models/mistralpromptmode.py: id: 95abc4ec799a last_write_checksum: sha1:a1417b987bb34daeb73ca4e015c085814e6c8ad2 @@ -6467,48 +6390,52 @@ trackedFiles: pristine_git_object: f1535352af02c0d32c573f431b0440da4dab2fd6 src/mistralai/client/models/ocrasidetextblock.py: id: 1960ecdcc21a - last_write_checksum: sha1:abb98c5335b7cdc1f98dd8960d25a3ad3392fa70 - pristine_git_object: 3d81d9d3fcd7aa94cdc1720e045ae69c6cb4bdaa + last_write_checksum: sha1:4f300686302cd8192a099aa3b26ece65229d1d39 + pristine_git_object: fed38e0f9dfb7c284346b90ba345d6f125a4a269 + src/mistralai/client/models/ocrblockconfidencescores.py: + id: 27e42b07192d + last_write_checksum: sha1:f10104bdaa588ac2a7ff90b8efc5f9ab9568e59b + pristine_git_object: 08a1fa03be43ea2728b9d3920935f6ab7633e2c1 src/mistralai/client/models/ocrcaptionblock.py: id: 84933d3975dd - last_write_checksum: sha1:539fbaa44cabf0e9f31d24aaebf039dd22eb4a83 - pristine_git_object: d1e0da834914534b5a6e6e430037788f3635b8d1 + last_write_checksum: sha1:7d8a24a843e183820c0e428bd83477e3ec9a7b8d + pristine_git_object: 80086d4692c60d59690d7c27669ddae584bd6eaa src/mistralai/client/models/ocrcodeblock.py: id: bacdc04c0c8d - last_write_checksum: sha1:2a00f62939c32ddadc98cb62f7d0657840788ac5 - pristine_git_object: 52ffee5980bd40f43a9e30b9e219935bc1afbb22 + last_write_checksum: sha1:d037aaf68b17356a8b3fcd060924b379fe12a27d + pristine_git_object: 1425cc337d15528f12665a956ad2ae4e52544844 src/mistralai/client/models/ocrconfidencescore.py: id: 15b75862a7bd last_write_checksum: sha1:daafce451f4ee4a0440db6f6444f10187a64fe67 pristine_git_object: 7fab8c9b542b1419bc4844d9d91d62c4f76f19ad src/mistralai/client/models/ocrequationblock.py: id: e8856fb2a77f - last_write_checksum: sha1:0b3a71740141c1b429fd6fd87aaacf72a8ea1f38 - pristine_git_object: 57a8eb3e2a23cc9ab6c367627a70364ad0ccb083 + last_write_checksum: sha1:f9ea73f0af6417e57ef9b3f0cccda666ff468442 + pristine_git_object: 11f9356bcf2c173530c50ec86200ae6fba2555ed src/mistralai/client/models/ocrfooterblock.py: id: 9435c879d4c4 - last_write_checksum: sha1:967f7db619bfb5dc29a49dcc32ed41f05b279ed0 - pristine_git_object: b3f4c18db886ae80526ee32515030b23418f8e97 + last_write_checksum: sha1:a562f82cff2f7790079c621a72af997dc67a8794 + pristine_git_object: 8c8b0860d90d5db918b4674752d5341c8d1726f3 src/mistralai/client/models/ocrheaderblock.py: id: 86d4b90e4056 - last_write_checksum: sha1:d2c1def9d9c8ed8ce38f0b804acf9639a0023ef3 - pristine_git_object: a2e30a98babaf7372fad7816e005ac8ee1803257 + last_write_checksum: sha1:c32a96e636e145cbdf701558525629de5e4d25d5 + pristine_git_object: 5a7ce42a4870384ef0982b38e29769068dfb669b src/mistralai/client/models/ocrimageblock.py: id: 9700f3ab6b59 - last_write_checksum: sha1:2c5acd9a1126607622c53b1d7ae75a2b6b764fd7 - pristine_git_object: 3381c47a53a91ebe5ae05802339c5af081a82a0f + last_write_checksum: sha1:a73b3c149c5a8f64533717e67e9ffd838d7d943c + pristine_git_object: b90cdbb7e9784f2805fc7fdb38723c5f95a6a9c8 src/mistralai/client/models/ocrimageobject.py: id: 685faeb41a80 last_write_checksum: sha1:a848d782d09e7b899e4a801d8ea43505783c853f pristine_git_object: 583cc38bf6046ff783ac2b5b2306fa42fa3c6fb5 src/mistralai/client/models/ocrlistblock.py: id: 20bdae8ad688 - last_write_checksum: sha1:4da4b1177c9a080b386d23d46c7784acd43b46e4 - pristine_git_object: 8d32c11af97a7bc0fd83796cd40a049d373e4c81 + last_write_checksum: sha1:f085425f416a7a0e08271ea1ea73626bad784f91 + pristine_git_object: 2d6cffcffdd0a8264bcc5e3b1900ca57f98aea53 src/mistralai/client/models/ocrpageconfidencescores.py: id: 7e4a07e4bdfd - last_write_checksum: sha1:5b1a3f6f27f8c45141bc9c445bbbd17636aae7f7 - pristine_git_object: 622171d06eca8212d9ec9435e777903c0b9fd8da + last_write_checksum: sha1:05184cb1dc7d3aaca45b49a27028fee0802ab98c + pristine_git_object: 74e3b3750e69824954a1f710b9ad565130339f31 src/mistralai/client/models/ocrpagedimensions.py: id: 02f763afbc9f last_write_checksum: sha1:f572ed8992ba1ba4d53b705c4e8c94c85ae1290e @@ -6519,44 +6446,48 @@ trackedFiles: pristine_git_object: 662326b0debf02aea468879c6097ce97ce4c7b85 src/mistralai/client/models/ocrreferencesblock.py: id: 24b57f5f1f99 - last_write_checksum: sha1:711341fe3e0fdff6fd4eecb448d4fc0cda3ede96 - pristine_git_object: 6294488cacbd6910a8edb6458ce37d1f0696ba43 + last_write_checksum: sha1:d14301b1857a2c1a6521c9ee41a497e8a9c781c7 + pristine_git_object: f59a6f871005d85d7c542e1bee6125266200c748 src/mistralai/client/models/ocrrequest.py: id: 36f204c64074 - last_write_checksum: sha1:f98b0c4b9f30f49fafc48293e36f416d8d9405b5 - pristine_git_object: f290a9f3fc84129f2f8c382d489704ce6dffc6c7 + last_write_checksum: sha1:61d593f068f171083d4c3dab46457e8fc6adffca + pristine_git_object: 4a377f7969c904295538e1948dec790032c8f75e src/mistralai/client/models/ocrresponse.py: id: 2fdfc881ca56 last_write_checksum: sha1:8e496f6122ea0798df0d23f50ea3046a29f0f8db pristine_git_object: ff4b96c30573a18c2e5665a6f3f10724f7a23f9a src/mistralai/client/models/ocrsignatureblock.py: id: 2e2939942241 - last_write_checksum: sha1:2368b8c7334df43bf5fb6b0ecbd1aa5983451333 - pristine_git_object: 0275466fa06d5a70d95642d994d47b767d3e3ea4 + last_write_checksum: sha1:6ec9b77bf73675e071e6b51604d11c607607bf92 + pristine_git_object: af0695d50699a937e9288997718d333723b51f00 src/mistralai/client/models/ocrtableblock.py: id: dada7ebd13b0 - last_write_checksum: sha1:23c9f6d6db7ac51e7ece61ad1443ab90384f5955 - pristine_git_object: 97c8adb79af95093fbd8dd3162804ac60cb503b3 + last_write_checksum: sha1:61e1d1e4f275a82ba434228dc5cef1634a6ac830 + pristine_git_object: 5831af82ecb6e52ea18763e97923e6dd250a3842 src/mistralai/client/models/ocrtableobject.py: id: d74dd0d2ddac last_write_checksum: sha1:fd0c1d3034011209de01a573952d1fd7f663504d pristine_git_object: 1cb59527b9c1892c789b099f04b99cb1e7169c6c src/mistralai/client/models/ocrtextblock.py: id: d329f1be53f7 - last_write_checksum: sha1:c35ec9568a14b1dc2cfe554a838bbbbd91fa3592 - pristine_git_object: bb6981f941675be259325d67ddc4230dcfaa92c3 + last_write_checksum: sha1:237ebc15a022f13660d687491215ee1738a77625 + pristine_git_object: e3381740e99259139f437eeb2fd6d35041d231ef src/mistralai/client/models/ocrtitleblock.py: id: 1a397a673c85 - last_write_checksum: sha1:c8d7cf2b035c12637594e87f1a002cc7be344aca - pristine_git_object: 951f80f4c0d7a459dbce36b8b9a7d46ba134d824 + last_write_checksum: sha1:675725f06eae4091d781520e04d6e67263db93ef + pristine_git_object: bdb91c823e16c676c7fcb998cf1c418dd9d234f1 src/mistralai/client/models/ocrusageinfo.py: id: 272b7e1785d5 last_write_checksum: sha1:eb223a88b7e5175056197f64bb4bce2c88ccea19 pristine_git_object: bfd748e0010e6acc404fdadfff40ee54ac52b9be + src/mistralai/client/models/orderbyclause.py: + id: c7a6d0430f04 + last_write_checksum: sha1:688204473a550cc070ee7cd4bdf12670173beb60 + pristine_git_object: aa94f6ab6663bcfd8ffe7aa3bda1aee247dbec81 src/mistralai/client/models/otelfielddefinition.py: id: 4bf75d7f4f70 - last_write_checksum: sha1:58c77cd17c2a2378fe2f94f8f1a517efc460dd5a - pristine_git_object: 2bd04c1ff32488a766d5eed2ed3e282bc61001cf + last_write_checksum: sha1:45044c3f95dd06df9d520f9419b352ffc848099f + pristine_git_object: d5ead98e1d9cd678448b344bd08f02d38668ef59 src/mistralai/client/models/outboundauthenticationtype.py: id: 705e7172ba40 last_write_checksum: sha1:d6adf36591b12a6ae41962bf985a74fa54574410 @@ -6675,8 +6606,8 @@ trackedFiles: pristine_git_object: b09b7d175342be1b2e1477179ef94c943b332cd4 src/mistralai/client/models/prompts_listop.py: id: 48f5a4a8009b - last_write_checksum: sha1:27df7c8dcb7af25d5482215888ceb6dd86e4a522 - pristine_git_object: a34cd19b20332ceb5018683169c5f31d7edc1739 + last_write_checksum: sha1:135072fe2504ba8025fe05f38ffd52811540666f + pristine_git_object: 2abd2daf144450555ef51c02de4cfa7f19b4c066 src/mistralai/client/models/prompts_update_version_metadataop.py: id: ca583af2c2fc last_write_checksum: sha1:a6c5849d4d3ce5ecd0c1bfa670cd90caeffb1129 @@ -6931,20 +6862,20 @@ trackedFiles: pristine_git_object: ad46a70d3b507aac0811d7250e5a11fb26d5b32b src/mistralai/client/models/schemafielddatatype.py: id: c391391d0988 - last_write_checksum: sha1:a08e9146ddaa797f2c27695894fff0759d7f980d - pristine_git_object: 4a35422eb43c90d7c4416e8506539b324570e0e4 + last_write_checksum: sha1:2d5b487ad7bb23eb9d6c4be75798344b11385b79 + pristine_git_object: aaa334590265fe9c464e53dc5b26407ce31a97d7 src/mistralai/client/models/schemafieldindex.py: id: 9501fc2b7fa1 - last_write_checksum: sha1:b9ffeb3c9ec02a67733289ed9f1c79e38b670836 - pristine_git_object: 14197c41c8627ff64d8a838e59979720abfcfded + last_write_checksum: sha1:f584ca3fbf9fbba8dbdd174213455b8468eeec30 + pristine_git_object: e1ef8b12e094cd6dd207d0fd1f787e2a3838082d src/mistralai/client/models/schemafieldrankingtype.py: id: a21364283a70 last_write_checksum: sha1:fe457fff5f014ceced101ba7ffb6d1cf6acea1a5 pristine_git_object: fc9cf182dc2f88d5eabf780f36bb504e9aea3efc src/mistralai/client/models/schemafieldstorage.py: id: 6ec367e3cfe5 - last_write_checksum: sha1:bca21bf0ae2126a129be44b1ebe0938f195bff69 - pristine_git_object: b330be9838052a7af3b11eed61c55358f132445e + last_write_checksum: sha1:4feaca3f1962448d05aceb1f585922835b0f1af0 + pristine_git_object: 544e1909c18879b3fc9c5231e338803ce959cf2e src/mistralai/client/models/search_latest_span_evaluations_v1_observability_spans_evaluations_search_latest_postop.py: id: 26821a9e16a7 last_write_checksum: sha1:670cb56fbed3d0ab3cf90f091643657a80e2db2b @@ -7001,14 +6932,6 @@ trackedFiles: id: 23cc8415f619 last_write_checksum: sha1:a57769f03d442fc70e5f448ee65876d1a2fff093 pristine_git_object: 2568507f11f1450dd4419e5dca7d38c9a6ebfcd9 - src/mistralai/client/models/set_index_summary_v1_rag_indexes_index_index_id_summary_field_language_putop.py: - id: 3d82ad6734f5 - last_write_checksum: sha1:fe1f951d8db01c736e66cee9f05e9c9ef7c5eb30 - pristine_git_object: 46a34cb53dd54c136705b1552dcc0be6defc4d22 - ? src/mistralai/client/models/set_schema_summary_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_putop.py - : id: 3dc4744355c8 - last_write_checksum: sha1:23259cee62e3ae163d11858bf16214dbc97f5cab - pristine_git_object: 564f9626123a4dffa382563cf321b3e683505183 src/mistralai/client/models/shareenum.py: id: a0e2a7a16bf8 last_write_checksum: sha1:15a84d57ceeb74cfb37275f714954e42d8e9b3ba @@ -7075,8 +6998,8 @@ trackedFiles: pristine_git_object: e60648a9026283f447d3328f323a9d3bfd93099c src/mistralai/client/models/skills_listop.py: id: b3600a24a06d - last_write_checksum: sha1:93154da1e0dcb58ff927f498033541c9af375811 - pristine_git_object: 21bcce37df2d438d1cce53a6dcd9e6bcad5d2101 + last_write_checksum: sha1:8e88675ad7cab3116141c00d774ea077771c193a + pristine_git_object: f5a43bc5bfb42477d5317d2933deeef1445be5fe src/mistralai/client/models/skills_update_version_metadataop.py: id: ae5f5535c372 last_write_checksum: sha1:50bd44142ff0414a0910325d0ce9db114f72d7d5 @@ -7161,26 +7084,6 @@ trackedFiles: id: 14c00c79de78 last_write_checksum: sha1:ea0a2d8e68a44783e47dc532307c7a2b1f717805 pristine_git_object: f24de860f5ad2ca115bac68b494caba4cd6ee800 - src/mistralai/client/models/summarychunk.py: - id: fcd9710a560b - last_write_checksum: sha1:596be6200ed263a8a6c8473939f0dd033df21fec - pristine_git_object: 3e96a4cddafcea253f488a12a24307cae9c63fb2 - src/mistralai/client/models/summaryerror.py: - id: e7372b57ed13 - last_write_checksum: sha1:861a0374f493e1d79595bee66c16440780ea204f - pristine_git_object: 2df932bc0bcf649a1f49963028ead6483c9df185 - src/mistralai/client/models/summarymetadata.py: - id: 53768f7691ec - last_write_checksum: sha1:f11f4e50e1a0f963e7e5d3359ce999f0e275da4e - pristine_git_object: ea186de7ca7d386becafcbc14f94a1989b14e8ff - src/mistralai/client/models/summarystatus.py: - id: 1cb3290c20dd - last_write_checksum: sha1:e45129d87fc9d675961ddb99c0fbd39fddfed10e - pristine_git_object: 5413b66e7a469b56b49a8956725d73a76e23a2c2 - src/mistralai/client/models/summarystatus_dollar_defs.py: - id: 1d2d0997d094 - last_write_checksum: sha1:773ab8d594632509961a103eafa2b7895a52200f - pristine_git_object: fc79aae9f507a967ed97096c4b5090ae9c357df3 src/mistralai/client/models/systemmessage.py: id: 500ef6e85ba1 last_write_checksum: sha1:a88de3fc70adab47943f867336659b3a1a6cdae0 @@ -7281,6 +7184,10 @@ trackedFiles: id: 294bfce193a4 last_write_checksum: sha1:d4cb78e98c29689beb2634a8c9d23fd360849ca5 pristine_git_object: d2af3da69462a2ad410bf9108861e1122ecdb7a9 + src/mistralai/client/models/timedimension.py: + id: 9bb5104c991f + last_write_checksum: sha1:a214d64e848f4a51e5ad34c39bceb3ccb05032ec + pristine_git_object: ca582175d7346044a4eb2e6b0eef1bed3f9747e5 src/mistralai/client/models/timeseriesmetric.py: id: 7f91751795ac last_write_checksum: sha1:e7871d8fa64b59e8448f0ae3be46f02c4d02eac8 @@ -7429,10 +7336,10 @@ trackedFiles: id: 22e2ccbb0c80 last_write_checksum: sha1:8ebdd49f2bef3c5934395808bf71701b46e512be pristine_git_object: 5cab4c2ef093236cacdc2a9e24b27c1a6c643ee9 - src/mistralai/client/models/unregister_search_index_v1_rag_indexes_index_index_id_deleteop.py: - id: a27016410db9 - last_write_checksum: sha1:0de3dd7c05d182522207dda5e7d15fa4ac955ef6 - pristine_git_object: 12b608b68e9a9a42707bbd06e4fe1c84b9731843 + src/mistralai/client/models/unregister_search_index_v1_rag_indexes_index_id_deleteop.py: + id: a9e89c12ff6c + last_write_checksum: sha1:d6975f93409a1a5ae7f9bd6c470f95ef65a92c36 + pristine_git_object: 0d76c3006d6b7de084f0c6cc8a70ae6f7e22a25f src/mistralai/client/models/unschedule_workflow_v1_workflows_schedules_schedule_id_deleteop.py: id: 114f67717003 last_write_checksum: sha1:f80651b63d89ef19a070c1ae7901b021914a0ddd @@ -7453,10 +7360,10 @@ trackedFiles: id: 10af4960601c last_write_checksum: sha1:b70a27d253ed1629513363c3966b01a1581cae70 pristine_git_object: e8662c69beb80afe34aa534191c7962b7e4f96bf - src/mistralai/client/models/update_index_metrics_v1_rag_indexes_index_index_id_metrics_putop.py: - id: a57bee1ef839 - last_write_checksum: sha1:35be085d91b75ab4ef9467645ce274ea6e5bd65e - pristine_git_object: dbbe330d02ca121133db87ef121cb2df0e7e42cd + src/mistralai/client/models/update_index_metrics_v1_rag_indexes_index_id_metrics_putop.py: + id: 9ac395a29805 + last_write_checksum: sha1:7713c6ee316b03dc093dc47eda0b177f962b358a + pristine_git_object: d56ff70dfa4d57953e0468fae498b1bd095f7c99 src/mistralai/client/models/update_judge_v1_observability_judges_judge_id_putop.py: id: a1bace5342e6 last_write_checksum: sha1:2fd7c698f8fe16e5df54e49c7aba85e247d3f19b @@ -7545,10 +7452,6 @@ trackedFiles: id: 4330bdaa00b9 last_write_checksum: sha1:57f94ec7b05a21ab4849deffaf32078b01161567 pristine_git_object: 91038d1d8f39b650ebd347afca60dc21c144856d - src/mistralai/client/models/updatesummaryrequestsummary.py: - id: c7ca84423c98 - last_write_checksum: sha1:aa4e3cd2d5b17bc6c410c84600b752b9eb56d707 - pristine_git_object: 515629c43bf17d0636f65e17d909de86daa4f507 src/mistralai/client/models/updateworkflowresponse.py: id: f5dcf717a0a1 last_write_checksum: sha1:f0da842336a6aef26bab3fab2f0c742deda2653e @@ -7589,10 +7492,6 @@ trackedFiles: id: 15df3c7368ab last_write_checksum: sha1:4acbbd9e47cf9b351336d552488d617270d37758 pristine_git_object: 5fe796db923badd9fb85dc4080a30496ed2b419b - src/mistralai/client/models/vespagetretrievableresponseretrievable.py: - id: 966bc630538b - last_write_checksum: sha1:b6320eac7050fc64f14f46b38a2a53ed31baa091 - pristine_git_object: 4bbbfea4e3582ee86aece4e93901ef098822f2eb src/mistralai/client/models/voicecreaterequest.py: id: 9a1752117dec last_write_checksum: sha1:10df54cddb9d940c53cecc591dd959c491b7a59f @@ -7699,8 +7598,8 @@ trackedFiles: pristine_git_object: ffebdb82a1a80d1d086b919da9b33e2f090388c4 src/mistralai/client/models/workflowexecutionrequest.py: id: 806340497ed4 - last_write_checksum: sha1:624af9c880e6fff244752469c3681e2913ce3bb7 - pristine_git_object: ea5e752df355fd5a771813a7e5c569539e66c90a + last_write_checksum: sha1:bd22cb3835819baf3d30ebf28bda506758da8e61 + pristine_git_object: 20c6741752ec09942f672769871948e166c0f6f9 src/mistralai/client/models/workflowexecutionresponse.py: id: 758786637be5 last_write_checksum: sha1:30c1fd49d20113d7c1fe5ba54078686bc3f3da79 @@ -7859,8 +7758,8 @@ trackedFiles: pristine_git_object: 4d07debc5757055464dd0fb3cd1b5b0aebd3cfe8 src/mistralai/client/ocr.py: id: 2f804a12fc62 - last_write_checksum: sha1:5be9eac7b87c08d75012eeac1771d9d5d6e3a2b3 - pristine_git_object: b4ff23a4dc2d238348ee5cf39808910956d7b423 + last_write_checksum: sha1:b03a2f3a60ed4f02027da6642349648a04fe31f6 + pristine_git_object: caed50bb72a4f48b0835ef571e51e840572007d5 src/mistralai/client/py.typed: id: d95cd1565e33 last_write_checksum: sha1:8efc425ffe830805ffcc0f3055871bdcdc542c60 @@ -7871,16 +7770,16 @@ trackedFiles: pristine_git_object: 934b2374571b475a573d38e59c8fdf40aa5ba3b8 src/mistralai/client/records.py: id: 10f90c990bd8 - last_write_checksum: sha1:f31202c87cc2f89990980fd57caabcff5840ae4a - pristine_git_object: 7bf1f05ff0ffbfe1506ac22da9e83b38abfb7f0a + last_write_checksum: sha1:7e6562deb51ae6e18f36ac0a50da5c62b32c1e96 + pristine_git_object: cdb3f6c2dcfc2a0cf517c335b6a7aaedc84e2bf1 src/mistralai/client/runs.py: id: 4297d58aeb21 last_write_checksum: sha1:9b348a00800aba4771869645aae5df859b754f73 pristine_git_object: 2943c0d564ea220f6b314c6f88fa0cfbd2ecd41b src/mistralai/client/schedules.py: id: d3b4fe452390 - last_write_checksum: sha1:154945ed08c7f8d9f1c51dd2f46d41dcbd7c5c0e - pristine_git_object: 59f1007274234587e2897cdbf39fc08d3cfc5d0e + last_write_checksum: sha1:5a0e04df142689e6db464d9eb1129537c0914a7d + pristine_git_object: 09c046b60e1a6af4e18b279a98bf6eb45f8f0623 src/mistralai/client/sdk.py: id: 48edbcb38d7e last_write_checksum: sha1:7c5dca6d4587ce1642f4488b38995f8418ae4d0b @@ -7891,24 +7790,24 @@ trackedFiles: pristine_git_object: 999e271724b5a7ccf309db60d71eae845011b3f8 src/mistralai/client/search_indexes.py: id: c5a0a7df993a - last_write_checksum: sha1:88c7d12ff48154fd35bb6b34987ce9d73aaefdcf - pristine_git_object: ced68f3d6d59319d1e791e8ad134715e1bb233ce + last_write_checksum: sha1:618792fe65d67c3f7169229dd31f97d734e97596 + pristine_git_object: 72c1736555184f04e206a59e8775a106453e1ead src/mistralai/client/skills.py: id: d00f9eb877ec - last_write_checksum: sha1:45a6c05ba2c5b81e51cfc3d71ba9f5971892a21b - pristine_git_object: 9931df2acad50754a7779bf90adb8de3b0369bae + last_write_checksum: sha1:84e01c84a8a3bf3d31a6b204d846d244c0fd2f11 + pristine_git_object: fdbd61c6869e8202e8176907ab4483e75129614d src/mistralai/client/spans.py: id: 408477ccb9d4 - last_write_checksum: sha1:71becbe6d3a3bcada2b35420bbc77dbfc09f2620 - pristine_git_object: 4305e1cfe4e05342b540584eb3d2d3bae5223ccd + last_write_checksum: sha1:fb80385a9b02a0f186df064f196fa0119a8c6316 + pristine_git_object: 817937cb3209d0b072e0ba85476b083bba32d8e5 src/mistralai/client/speech.py: id: 5c1f1109aa5e last_write_checksum: sha1:0220befc818b0413bb8b4fc99bbb457a7ed45024 pristine_git_object: 5d01b79d0e5b0cf90b3c2d52d62e6a327dba2901 src/mistralai/client/traces.py: id: 8af61cbcf718 - last_write_checksum: sha1:b457e4ee3cdc04bb79d85046f161e4f98b791da0 - pristine_git_object: 8b9fc5e9eec926aadba6ade1f61d573652a16fff + last_write_checksum: sha1:db247cfa512910046913d329230e62e4fc991705 + pristine_git_object: a42575c0e5d4f6ebb6b1c1c41549780cbb029c33 src/mistralai/client/transcriptions.py: id: 75b45780c978 last_write_checksum: sha1:fa1982fca3c87db33c525c7571ca11cd7572e6e1 @@ -7957,10 +7856,6 @@ trackedFiles: id: 9066de2ead8b last_write_checksum: sha1:bcd2f47b96bfaa54b3590c557a9267142d446be6 pristine_git_object: 6491187230b5f11c7ff13396891ac69099a73a79 - src/mistralai/client/utils/jsonl.py: - id: 220a4ce399b9 - last_write_checksum: sha1:4560a0026fc42b8ce3ac4ef8ed8334d3f29a05a3 - pristine_git_object: e8a042a08b4b5d8765f6f232e6f99c75cb97353b src/mistralai/client/utils/logger.py: id: 745023607a1f last_write_checksum: sha1:2582e0cb889b6293c12ce9671aba6281d46bad44 @@ -8011,8 +7906,8 @@ trackedFiles: pristine_git_object: 735c96b5fdd9da89140696033247a271c1e09459 src/mistralai/client/workflows.py: id: e2a0381191f6 - last_write_checksum: sha1:01bafa22afbea5b141f307767b81c575913c1730 - pristine_git_object: 0c9fad127ab0bc76c9cb52e4a44293907a1a4056 + last_write_checksum: sha1:8eec93d17e6452714860411cc3927d2f2ff23619 + pristine_git_object: e56141a3a09e2ffaec03c5b1188bb61a28d780a7 src/mistralai/client/workflows_events.py: id: 6d4f674ce8ef last_write_checksum: sha1:4dd98135be65602662a7191d116e44028d96c4b4 @@ -10087,7 +9982,7 @@ examples: path: workflow_identifier: "" requestBody: - application/json: {"wait_for_result": false} + application/json: {"wait_for_result": false, "force_new_trace": false} responses: "200": application/json: {"workflow_name": "", "execution_id": "", "root_execution_id": "", "status": "RUNNING", "start_time": "2026-01-16T18:23:52.214Z", "end_time": "2026-06-24T19:55:56.410Z", "result": ""} @@ -10099,7 +9994,7 @@ examples: path: workflow_registration_id: "de11d76a-e0fb-44dd-abd9-2e75fc275b94" requestBody: - application/json: {"wait_for_result": false} + application/json: {"wait_for_result": false, "force_new_trace": false} responses: "200": application/json: {"workflow_name": "", "execution_id": "", "root_execution_id": "", "status": "RETRYING_AFTER_ERROR", "start_time": "2025-02-03T00:07:08.284Z", "end_time": "2024-01-22T11:44:36.909Z", "result": ""} @@ -10420,6 +10315,7 @@ examples: parameters: query: active_only: true + order: "desc" responses: "200": application/json: {"deployments": [{"id": "404cb7bc-ee61-4a2e-aff3-75f69cf3ca94", "name": "", "is_active": true, "is_hardened": false, "created_at": "2026-10-31T16:44:16.117Z", "updated_at": "2025-01-02T22:50:15.704Z", "worker_count": 0, "active_worker_count": 0}], "next_cursor": "", "workspace_id": "404cb7bc-ee61-4a2e-aff3-75f69cf3ca94"} @@ -11462,6 +11358,83 @@ examples: application/json: {"message": ""} "422": application/json: {} + aggregate_traces_v1_observability_traces_aggregate_post: + speakeasy-default-aggregate-traces-v1-observability-traces-aggregate-post: + requestBody: + application/json: {"metric": {"measure": "", "aggregation": "p95"}, "limit": 1000} + responses: + "200": + application/json: {"data": [{"metric_name": ""}], "meta": {"from_timestamp": "2024-09-08T12:28:38.969Z", "to_timestamp": "2026-10-03T20:41:10.335Z"}} + "400": + application/json: {"detail": {"message": "", "error_code": "DATABASE_ERROR"}} + aggregate_spans_v1_observability_spans_aggregate_post: + speakeasy-default-aggregate-spans-v1-observability-spans-aggregate-post: + requestBody: + application/json: {"metric": {"measure": "", "aggregation": "p99"}, "limit": 1000} + responses: + "200": + application/json: {"data": [{"metric_name": ""}], "meta": {"from_timestamp": "2024-11-07T20:29:26.388Z", "to_timestamp": "2024-04-12T20:04:16.856Z"}} + "400": + application/json: {"detail": {"message": "", "error_code": "CAMPAIGN_NOT_FOUND"}} + connector_activate_for_consumer_v1: + speakeasy-default-connector-activate-for-consumer-v1: + parameters: + path: + connector_id: "1637d954-8ef0-4080-9228-89d4c05c915f" + consumer_scope: "workspace" + responses: + "200": + application/json: {"message": ""} + "422": + application/json: {} + connector_deactivate_for_consumer_v1: + speakeasy-default-connector-deactivate-for-consumer-v1: + parameters: + path: + connector_id: "1266a170-0379-4b3f-9305-d10fd2a83d29" + consumer_scope: "workspace" + responses: + "200": + application/json: {"message": ""} + "422": + application/json: {} + get_index_summaries_v1_rag_indexes_get: + speakeasy-default-get-index-summaries-v1-rag-indexes-get: + responses: + "200": + application/json: {"indexes": []} + unregister_search_index_v1_rag_indexes__index_id__delete: + speakeasy-default-unregister-search-index-v1-rag-indexes-index-id-delete: + parameters: + path: + index_id: "545b10f3-a041-4786-9d25-5a7b7ca281e2" + responses: + "200": + application/json: "" + "422": + application/json: {} + update_index_metrics_v1_rag_indexes__index_id__metrics_put: + speakeasy-default-update-index-metrics-v1-rag-indexes-index-id-metrics-put: + parameters: + path: + index_id: "8ab7ca9a-64c2-4c00-b9ba-9a6ce4268033" + requestBody: + application/json: {"status": "online", "document_count": 951726, "schema_metrics": [{"name": "", "document_count": 381376}]} + responses: + "200": + application/json: "" + list_deployment_workers_v1_workflows_deployments__name__workers_get: + speakeasy-default-list-deployment-workers-v1-workflows-deployments-name-workers-get: + parameters: + path: + name: "" + query: + limit: 50 + responses: + "200": + application/json: {"workers": [{"name": "", "created_at": "2024-04-03T23:06:06.027Z", "updated_at": "2024-07-31T11:02:59.557Z", "is_active": true}], "next_cursor": ""} + "422": + application/json: {} examplesVersion: 1.0.2 generatedTests: {} generatedFiles: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 39cf501b1..cc89ae673 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -32,7 +32,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 2.8.0 + version: 2.9.0 additionalDependencies: dev: pytest: ^8.2.2 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index c9db03087..bdc429ab0 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -16,11 +16,11 @@ sources: - speakeasy-mistralai-gcp-sdk-26292830187-1 mistral-openapi: sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:fd92984251174794ab0d1ec7c6017aefc443f6813027e8e1b1dbfaa320983e84 - sourceBlobDigest: sha256:962e580a9814038b9f41f068c4a5f8b4d422a7962d35db0df435409e4e11b15a + sourceRevisionDigest: sha256:293d745b03e7c944b3ccfb5f6e1372ec824069bdc25592b4b45469728d6fc294 + sourceBlobDigest: sha256:b4f7beb29b3a6d96dc5ce15245afddd8274c66c6fa927d251f0e1702f34f8eec tags: - latest - - speakeasy-mistralai-sdk-30366638574-1 + - speakeasy-mistralai-sdk-30634845471-2 targets: mistralai-azure-sdk: source: mistral-azure-source @@ -39,10 +39,10 @@ targets: mistralai-sdk: source: mistral-openapi sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:fd92984251174794ab0d1ec7c6017aefc443f6813027e8e1b1dbfaa320983e84 - sourceBlobDigest: sha256:962e580a9814038b9f41f068c4a5f8b4d422a7962d35db0df435409e4e11b15a + sourceRevisionDigest: sha256:293d745b03e7c944b3ccfb5f6e1372ec824069bdc25592b4b45469728d6fc294 + sourceBlobDigest: sha256:b4f7beb29b3a6d96dc5ce15245afddd8274c66c6fa927d251f0e1702f34f8eec codeSamplesNamespace: mistral-openapi-code-samples - codeSamplesRevisionDigest: sha256:a3bf79f5a7244ad0b7fc3bb3b646f86ac1bd56a04c681c43e42c6818e905ae01 + codeSamplesRevisionDigest: sha256:ffc1a4dc8fe9420b468bc17027aec056715a280a97ecba0de928bd7aa8e2d426 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.763.6 diff --git a/README.md b/README.md index e58049066..0710c3a8d 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,6 @@ Mistral AI API: Our Chat Completion and Embeddings APIs specification. Create yo * [Providers' SDKs Example Usage](#providers-sdks-example-usage) * [Available Resources and Operations](#available-resources-and-operations) * [Server-sent event streaming](#server-sent-event-streaming) - * [Json Streaming](#json-streaming) * [Pagination](#pagination) * [File uploads](#file-uploads) * [Retries](#retries) @@ -518,12 +517,8 @@ print(res.choices[0].message.content) * [get_auth_url](docs/sdks/connectors/README.md#get_auth_url) - Get the auth URL for a connector. * [share](docs/sdks/connectors/README.md#share) - Share a private connector to the current workspace. * [unshare](docs/sdks/connectors/README.md#unshare) - Unshare a connector from the current workspace. -* [activate_for_organization](docs/sdks/connectors/README.md#activate_for_organization) - Activate a connector for an organization. -* [deactivate_for_organization](docs/sdks/connectors/README.md#deactivate_for_organization) - Deactivate a connector for an organization. -* [activate_for_workspace](docs/sdks/connectors/README.md#activate_for_workspace) - Activate a connector for a workspace. -* [deactivate_for_workspace](docs/sdks/connectors/README.md#deactivate_for_workspace) - Deactivate a connector for a workspace. -* [activate_for_user](docs/sdks/connectors/README.md#activate_for_user) - Activate a connector for the current user. -* [deactivate_for_user](docs/sdks/connectors/README.md#deactivate_for_user) - Deactivate a connector for the current user. +* [activate_for_consumer](docs/sdks/connectors/README.md#activate_for_consumer) - Activate a connector for the given consumer (organization, workspace, user). +* [deactivate_for_consumer](docs/sdks/connectors/README.md#deactivate_for_consumer) - Deactivate a connector for the current consumer (at organization, workspace or user level). * [call_tool](docs/sdks/connectors/README.md#call_tool) - Call Connector Tool * [list_tools](docs/sdks/connectors/README.md#list_tools) - List tools for a connector. * [get_authentication_methods](docs/sdks/connectors/README.md#get_authentication_methods) - Get authentication methods for a connector. @@ -615,24 +610,24 @@ print(res.choices[0].message.content) * [delete](docs/sdks/datasets/README.md#delete) - Delete a dataset * [update](docs/sdks/datasets/README.md#update) - Patch dataset * [list_records](docs/sdks/datasets/README.md#list_records) - List existing records in the dataset -* [create_record](docs/sdks/datasets/README.md#create_record) - Add a conversation to the dataset -* [import_from_campaign](docs/sdks/datasets/README.md#import_from_campaign) - Populate the dataset with a campaign -* [import_from_explorer](docs/sdks/datasets/README.md#import_from_explorer) - Populate the dataset with samples from the explorer -* [import_from_file](docs/sdks/datasets/README.md#import_from_file) - Populate the dataset with samples from an uploaded file -* [import_from_playground](docs/sdks/datasets/README.md#import_from_playground) - Populate the dataset with samples from the playground -* [import_from_dataset_records](docs/sdks/datasets/README.md#import_from_dataset_records) - Populate the dataset with samples from another dataset +* [create_record](docs/sdks/datasets/README.md#create_record) - Add a record to the dataset +* [import_from_campaign](docs/sdks/datasets/README.md#import_from_campaign) - Populate the dataset with records from a campaign +* [import_from_explorer](docs/sdks/datasets/README.md#import_from_explorer) - Populate the dataset with records from the explorer +* [import_from_file](docs/sdks/datasets/README.md#import_from_file) - Populate the dataset with records from an uploaded file +* [import_from_playground](docs/sdks/datasets/README.md#import_from_playground) - Populate the dataset with records from playground conversations +* [import_from_dataset_records](docs/sdks/datasets/README.md#import_from_dataset_records) - Populate the dataset with records from another dataset * [export_to_jsonl](docs/sdks/datasets/README.md#export_to_jsonl) - Export to the Files API and retrieve presigned URL to download the resulting JSONL file * [fetch_task](docs/sdks/datasets/README.md#fetch_task) - Get status of a dataset import task * [list_tasks](docs/sdks/datasets/README.md#list_tasks) - List import tasks for the given dataset #### [Beta.Observability.Datasets.Records](docs/sdks/records/README.md) -* [fetch](docs/sdks/records/README.md#fetch) - Get the content of a given conversation from a dataset +* [fetch](docs/sdks/records/README.md#fetch) - Get the content of a given dataset record * [delete](docs/sdks/records/README.md#delete) - Delete a record from a dataset * [bulk_delete](docs/sdks/records/README.md#bulk_delete) - Delete multiple records from datasets * [judge](docs/sdks/records/README.md#judge) - Run Judge on a dataset record based on the given options -* [update_payload](docs/sdks/records/README.md#update_payload) - Update a dataset record conversation payload -* [update_properties](docs/sdks/records/README.md#update_properties) - Update conversation properties +* [update_payload](docs/sdks/records/README.md#update_payload) - Update a dataset record payload +* [update_properties](docs/sdks/records/README.md#update_properties) - Update dataset record properties ### [Beta.Observability.Judges](docs/sdks/judges/README.md) @@ -652,6 +647,7 @@ print(res.choices[0].message.content) ### [Beta.Observability.Spans](docs/sdks/spans/README.md) * [search_spans](docs/sdks/spans/README.md#search_spans) - Search spans +* [aggregate](docs/sdks/spans/README.md#aggregate) - Aggregate spans * [search_span_evaluations](docs/sdks/spans/README.md#search_span_evaluations) - Search span evaluations * [search_latest_span_evaluations](docs/sdks/spans/README.md#search_latest_span_evaluations) - Search latest span evaluations * [list_span_fields](docs/sdks/spans/README.md#list_span_fields) - Get span field definitions @@ -662,6 +658,7 @@ print(res.choices[0].message.content) ### [Beta.Observability.Traces](docs/sdks/traces/README.md) * [search](docs/sdks/traces/README.md#search) - Search traces +* [aggregate](docs/sdks/traces/README.md#aggregate) - Aggregate traces * [get_trace_fields](docs/sdks/traces/README.md#get_trace_fields) - Get trace field definitions * [get_trace_by_id](docs/sdks/traces/README.md#get_trace_by_id) - Get trace by id * [get_trace_spans](docs/sdks/traces/README.md#get_trace_spans) - Get trace spans @@ -688,21 +685,10 @@ print(res.choices[0].message.content) ### [Beta.Rag.SearchIndexes](docs/sdks/searchindexes/README.md) +* [get_indexes](docs/sdks/searchindexes/README.md#get_indexes) - Get Index Summaries * [register](docs/sdks/searchindexes/README.md#register) - Register (or re-register) a search index -* [get_index_summaries](docs/sdks/searchindexes/README.md#get_index_summaries) - Get Index Summaries * [unregister](docs/sdks/searchindexes/README.md#unregister) - Unregister Search Index * [update_index_metrics](docs/sdks/searchindexes/README.md#update_index_metrics) - Update Index Metrics -* [get_index_detail](docs/sdks/searchindexes/README.md#get_index_detail) - Get Index Details -* [get_index_summary](docs/sdks/searchindexes/README.md#get_index_summary) - Get Index Summary -* [generate_index_summary](docs/sdks/searchindexes/README.md#generate_index_summary) - Generate a summary field for an index -* [set_index_summary](docs/sdks/searchindexes/README.md#set_index_summary) - Set Index Summary -* [get_schema_summary](docs/sdks/searchindexes/README.md#get_schema_summary) - Get Schema Summary -* [generate_schema_summary](docs/sdks/searchindexes/README.md#generate_schema_summary) - Generate a summary field for a schema -* [set_schema_summary](docs/sdks/searchindexes/README.md#set_schema_summary) - Set Schema Summary -* [get_index_schema_detail](docs/sdks/searchindexes/README.md#get_index_schema_detail) - Get Index Schema Detail -* [get_index_schema_file](docs/sdks/searchindexes/README.md#get_index_schema_file) - Get Index Schema File -* [document_lookup](docs/sdks/searchindexes/README.md#document_lookup) - Document Lookup -* [documents_fetch](docs/sdks/searchindexes/README.md#documents_fetch) - Document Fetch ### [Beta.Skills](docs/sdks/skills/README.md) @@ -792,6 +778,7 @@ print(res.choices[0].message.content) * [stop_deployment](docs/sdks/deployments/README.md#stop_deployment) - Stop Deployment * [start_deployment](docs/sdks/deployments/README.md#start_deployment) - Start Deployment * [restart_deployment](docs/sdks/deployments/README.md#restart_deployment) - Restart Deployment +* [list_deployment_workers](docs/sdks/deployments/README.md#list_deployment_workers) - List Deployment Workers * [get_deployment_logs](docs/sdks/deployments/README.md#get_deployment_logs) - Get Deployment Logs * [stream_deployment_logs](docs/sdks/deployments/README.md#stream_deployment_logs) - Stream Deployment Logs @@ -890,41 +877,6 @@ with Mistral( [context-manager]: https://book.pythontips.com/en/latest/context_managers.html - -## Json Streaming - -Json Streaming ([jsonl][jsonl-format] / [x-ndjson][x-ndjson]) content type can be used to stream content from certain operations. These operations will expose the stream as [Generator][generator] that -can be consumed using a simple `for` loop. The loop will -terminate when the server no longer has any events to send and closes the -underlying connection. - -The stream is also a [Context Manager][context-manager] and can be used with the `with` statement and will close the -underlying connection when the context is exited. - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.rag.search_indexes.generate_index_summary(index_id="b0cfd77c-9cc3-46b6-ad70-1024386259b9", language="pl") - - with res as jsonl_stream: - for event in jsonl_stream: - # handle event - print(event, flush=True) - -``` - -[jsonl-format]: https://jsonlines.org/ -[x-ndjson]: https://github.com/ndjson/ndjson-spec -[generator]: https://book.pythontips.com/en/latest/generators.html -[context-manager]: https://book.pythontips.com/en/latest/context_managers.html - - ## Pagination @@ -1094,8 +1046,8 @@ with Mistral( **Inherit from [`MistralError`](./src/mistralai/client/errors/mistralerror.py)**: -* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 159 of 256 methods.* -* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 57 of 256 methods.* +* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 145 of 244 methods.* +* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 59 of 244 methods.* * [`ResponseValidationError`](./src/mistralai/client/errors/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute. diff --git a/RELEASES.md b/RELEASES.md index c555d35a1..ebf264fdf 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -798,4 +798,14 @@ Based on: ### Generated - [python v2.8.0] . ### Releases -- [PyPI v2.8.0] https://pypi.org/project/mistralai/2.8.0 - . \ No newline at end of file +- [PyPI v2.8.0] https://pypi.org/project/mistralai/2.8.0 - . + +## 2026-07-31 13:37:49 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.763.6 (2.884.13) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.9.0] . +### Releases +- [PyPI v2.9.0] https://pypi.org/project/mistralai/2.9.0 - . \ No newline at end of file diff --git a/docs/models/aggregatespansv1observabilityspansaggregatepostrequest.md b/docs/models/aggregatespansv1observabilityspansaggregatepostrequest.md new file mode 100644 index 000000000..369ba751e --- /dev/null +++ b/docs/models/aggregatespansv1observabilityspansaggregatepostrequest.md @@ -0,0 +1,10 @@ +# AggregateSpansV1ObservabilitySpansAggregatePostRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `from_` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `to` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `aggregation_request` | [models.AggregationRequest](../models/aggregationrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/aggregatetracesv1observabilitytracesaggregatepostrequest.md b/docs/models/aggregatetracesv1observabilitytracesaggregatepostrequest.md new file mode 100644 index 000000000..626b214e9 --- /dev/null +++ b/docs/models/aggregatetracesv1observabilitytracesaggregatepostrequest.md @@ -0,0 +1,10 @@ +# AggregateTracesV1ObservabilityTracesAggregatePostRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `from_` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `to` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `aggregation_request` | [models.AggregationRequest](../models/aggregationrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/aggregation.md b/docs/models/aggregation.md new file mode 100644 index 000000000..696981e80 --- /dev/null +++ b/docs/models/aggregation.md @@ -0,0 +1,9 @@ +# Aggregation + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `data` | List[[models.AggregationRow](../models/aggregationrow.md)] | :heavy_check_mark: | N/A | +| `meta` | [models.AggregationMeta](../models/aggregationmeta.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/aggregationmeta.md b/docs/models/aggregationmeta.md new file mode 100644 index 000000000..60a38539a --- /dev/null +++ b/docs/models/aggregationmeta.md @@ -0,0 +1,10 @@ +# AggregationMeta + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `from_timestamp` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | +| `to_timestamp` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | +| `granularity_seconds` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/aggregationrequest.md b/docs/models/aggregationrequest.md new file mode 100644 index 000000000..a31ca056a --- /dev/null +++ b/docs/models/aggregationrequest.md @@ -0,0 +1,13 @@ +# AggregationRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `metric` | [models.MetricDefinition](../models/metricdefinition.md) | :heavy_check_mark: | N/A | +| `dimensions` | List[*str*] | :heavy_minus_sign: | N/A | +| `time_dimension` | [OptionalNullable[models.TimeDimension]](../models/timedimension.md) | :heavy_minus_sign: | N/A | +| `search_expression` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `order_by` | List[[models.OrderByClause](../models/orderbyclause.md)] | :heavy_minus_sign: | N/A | +| `limit` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getsearchindexdetailresponseschemamodel.md b/docs/models/aggregationrow.md similarity index 56% rename from docs/models/getsearchindexdetailresponseschemamodel.md rename to docs/models/aggregationrow.md index 7ece62e43..702f85a24 100644 --- a/docs/models/getsearchindexdetailresponseschemamodel.md +++ b/docs/models/aggregationrow.md @@ -1,12 +1,11 @@ -# GetSearchIndexDetailResponseSchemaModel +# AggregationRow ## Fields | Field | Type | Required | Description | | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `name` | *str* | :heavy_check_mark: | N/A | -| `id` | *str* | :heavy_check_mark: | N/A | -| `document_count` | *Nullable[int]* | :heavy_check_mark: | N/A | -| `last_modified` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | -| `latency_p95_s_threshold` | *Nullable[float]* | :heavy_check_mark: | N/A | \ No newline at end of file +| `time_bucket` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `dimensions` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | +| `metric_name` | *str* | :heavy_check_mark: | N/A | +| `metric_value` | [OptionalNullable[models.MetricValue]](../models/metricvalue.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/confidencescoresgranularity.md b/docs/models/confidencescoresgranularity.md index 29646c918..9fc348b6f 100644 --- a/docs/models/confidencescoresgranularity.md +++ b/docs/models/confidencescoresgranularity.md @@ -12,3 +12,4 @@ value: ConfidenceScoresGranularity = "word" - `"word"` - `"page"` +- `"block"` diff --git a/docs/models/connectoractivateforconsumerv1consumerscope.md b/docs/models/connectoractivateforconsumerv1consumerscope.md new file mode 100644 index 000000000..3c94dd46b --- /dev/null +++ b/docs/models/connectoractivateforconsumerv1consumerscope.md @@ -0,0 +1,15 @@ +# ConnectorActivateForConsumerV1ConsumerScope + +## Example Usage + +```python +from mistralai.client.models import ConnectorActivateForConsumerV1ConsumerScope +value: ConnectorActivateForConsumerV1ConsumerScope = "user" +``` + + +## Values + +- `"user"` +- `"workspace"` +- `"organization"` diff --git a/docs/models/connectoractivateforconsumerv1request.md b/docs/models/connectoractivateforconsumerv1request.md new file mode 100644 index 000000000..6ea43c808 --- /dev/null +++ b/docs/models/connectoractivateforconsumerv1request.md @@ -0,0 +1,9 @@ +# ConnectorActivateForConsumerV1Request + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `connector_id` | *str* | :heavy_check_mark: | N/A | +| `consumer_scope` | [models.ConnectorActivateForConsumerV1ConsumerScope](../models/connectoractivateforconsumerv1consumerscope.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/connectoractivatefororganizationv1request.md b/docs/models/connectoractivatefororganizationv1request.md deleted file mode 100644 index 404699969..000000000 --- a/docs/models/connectoractivatefororganizationv1request.md +++ /dev/null @@ -1,9 +0,0 @@ -# ConnectorActivateForOrganizationV1Request - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `connector_id` | *str* | :heavy_check_mark: | N/A | -| `tool_execution_configuration` | [OptionalNullable[models.ToolExecutionConfiguration]](../models/toolexecutionconfiguration.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/connectoractivateforuserv1request.md b/docs/models/connectoractivateforuserv1request.md deleted file mode 100644 index bdf73b8ac..000000000 --- a/docs/models/connectoractivateforuserv1request.md +++ /dev/null @@ -1,9 +0,0 @@ -# ConnectorActivateForUserV1Request - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `connector_id` | *str* | :heavy_check_mark: | N/A | -| `tool_execution_configuration` | [OptionalNullable[models.ToolExecutionConfiguration]](../models/toolexecutionconfiguration.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/connectoractivateforworkspacev1request.md b/docs/models/connectoractivateforworkspacev1request.md deleted file mode 100644 index e4dbaf1db..000000000 --- a/docs/models/connectoractivateforworkspacev1request.md +++ /dev/null @@ -1,9 +0,0 @@ -# ConnectorActivateForWorkspaceV1Request - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `connector_id` | *str* | :heavy_check_mark: | N/A | -| `tool_execution_configuration` | [OptionalNullable[models.ToolExecutionConfiguration]](../models/toolexecutionconfiguration.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/connectordeactivateforconsumerv1consumerscope.md b/docs/models/connectordeactivateforconsumerv1consumerscope.md new file mode 100644 index 000000000..d28c74e10 --- /dev/null +++ b/docs/models/connectordeactivateforconsumerv1consumerscope.md @@ -0,0 +1,15 @@ +# ConnectorDeactivateForConsumerV1ConsumerScope + +## Example Usage + +```python +from mistralai.client.models import ConnectorDeactivateForConsumerV1ConsumerScope +value: ConnectorDeactivateForConsumerV1ConsumerScope = "user" +``` + + +## Values + +- `"user"` +- `"workspace"` +- `"organization"` diff --git a/docs/models/connectordeactivateforconsumerv1request.md b/docs/models/connectordeactivateforconsumerv1request.md new file mode 100644 index 000000000..7adf0b067 --- /dev/null +++ b/docs/models/connectordeactivateforconsumerv1request.md @@ -0,0 +1,9 @@ +# ConnectorDeactivateForConsumerV1Request + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `connector_id` | *str* | :heavy_check_mark: | N/A | +| `consumer_scope` | [models.ConnectorDeactivateForConsumerV1ConsumerScope](../models/connectordeactivateforconsumerv1consumerscope.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/connectordeactivatefororganizationv1request.md b/docs/models/connectordeactivatefororganizationv1request.md deleted file mode 100644 index 1fd64004b..000000000 --- a/docs/models/connectordeactivatefororganizationv1request.md +++ /dev/null @@ -1,8 +0,0 @@ -# ConnectorDeactivateForOrganizationV1Request - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `connector_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/connectordeactivateforuserv1request.md b/docs/models/connectordeactivateforuserv1request.md deleted file mode 100644 index 992603b0f..000000000 --- a/docs/models/connectordeactivateforuserv1request.md +++ /dev/null @@ -1,8 +0,0 @@ -# ConnectorDeactivateForUserV1Request - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `connector_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/connectordeactivateforworkspacev1request.md b/docs/models/connectordeactivateforworkspacev1request.md deleted file mode 100644 index 15033f293..000000000 --- a/docs/models/connectordeactivateforworkspacev1request.md +++ /dev/null @@ -1,8 +0,0 @@ -# ConnectorDeactivateForWorkspaceV1Request - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `connector_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/connectorgetauthurlv1request.md b/docs/models/connectorgetauthurlv1request.md index ed99f517a..bc1f53389 100644 --- a/docs/models/connectorgetauthurlv1request.md +++ b/docs/models/connectorgetauthurlv1request.md @@ -9,4 +9,5 @@ | `app_return_url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `method_type` | [Optional[models.OutboundAuthenticationType]](../models/outboundauthenticationtype.md) | :heavy_minus_sign: | Auth method type to use for the authorization URL. Required when the connector supports multiple interactive auth methods; otherwise the sole method is selected automatically. Use this to pick a specific method (e.g. 'oauth2' vs 'github_app'). | | `credentials_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `credentials_title` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `github_installation_link` | *Optional[bool]* | :heavy_minus_sign: | Only valid with method_type=oauth2. When true, returns a GitHub App installation URL (https://github.com/apps//installations/new) if the connector has the proper configuration The Github application needs to have 'Request user authorization (OAuth) during installation' enabled to perform the proper auth loop. | \ No newline at end of file diff --git a/docs/models/deploymentworkerlistresponse.md b/docs/models/deploymentworkerlistresponse.md new file mode 100644 index 000000000..0fd43a5d7 --- /dev/null +++ b/docs/models/deploymentworkerlistresponse.md @@ -0,0 +1,9 @@ +# DeploymentWorkerListResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `workers` | List[[models.DeploymentWorkerResponse](../models/deploymentworkerresponse.md)] | :heavy_check_mark: | Workers registered for the deployment | +| `next_cursor` | *Nullable[str]* | :heavy_check_mark: | Cursor for the next page of results | \ No newline at end of file diff --git a/docs/models/direction.md b/docs/models/direction.md new file mode 100644 index 000000000..8e02b553f --- /dev/null +++ b/docs/models/direction.md @@ -0,0 +1,14 @@ +# Direction + +## Example Usage + +```python +from mistralai.client.models import Direction +value: Direction = "asc" +``` + + +## Values + +- `"asc"` +- `"desc"` diff --git a/docs/models/documentfetchv1ragindexesindexindexidschemasschemaschemaidretrievablesgetrequest.md b/docs/models/documentfetchv1ragindexesindexindexidschemasschemaschemaidretrievablesgetrequest.md deleted file mode 100644 index 0c0b76c47..000000000 --- a/docs/models/documentfetchv1ragindexesindexindexidschemasschemaschemaidretrievablesgetrequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# DocumentFetchV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesGetRequest - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `schema_id` | *str* | :heavy_check_mark: | N/A | -| `group_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Only retrieve from this group | \ No newline at end of file diff --git a/docs/models/documentlookupv1ragindexesindexindexidschemasschemaschemaidretrievablesretrievabledocumentidgetrequest.md b/docs/models/documentlookupv1ragindexesindexindexidschemasschemaschemaidretrievablesretrievabledocumentidgetrequest.md deleted file mode 100644 index 2b5a739dc..000000000 --- a/docs/models/documentlookupv1ragindexesindexindexidschemasschemaschemaidretrievablesretrievabledocumentidgetrequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# DocumentLookupV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesRetrievableDocumentIDGetRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `schema_id` | *str* | :heavy_check_mark: | N/A | -| `document_id` | *str* | :heavy_check_mark: | the native ID in the underlying index | \ No newline at end of file diff --git a/docs/models/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepostlanguage.md b/docs/models/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepostlanguage.md deleted file mode 100644 index 6eafe637f..000000000 --- a/docs/models/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepostlanguage.md +++ /dev/null @@ -1,21 +0,0 @@ -# GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostLanguage - -## Example Usage - -```python -from mistralai.client.models import GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostLanguage -value: GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostLanguage = "en" -``` - - -## Values - -- `"en"` -- `"fr"` -- `"es"` -- `"de"` -- `"it"` -- `"pt_br"` -- `"pl"` -- `"ar"` -- `"nl"` diff --git a/docs/models/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepostrequest.md b/docs/models/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepostrequest.md deleted file mode 100644 index 093d9569f..000000000 --- a/docs/models/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepostrequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostRequest - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `language` | [models.GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostLanguage](../models/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepostlanguage.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepostsummarystreamtypes.md b/docs/models/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepostsummarystreamtypes.md deleted file mode 100644 index c49200774..000000000 --- a/docs/models/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepostsummarystreamtypes.md +++ /dev/null @@ -1,25 +0,0 @@ -# GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostSummaryStreamTypes - -Successful Response - - -## Supported Types - -### `models.SummaryMetadata` - -```python -value: models.SummaryMetadata = /* values here */ -``` - -### `models.SummaryChunk` - -```python -value: models.SummaryChunk = /* values here */ -``` - -### `models.SummaryError` - -```python -value: models.SummaryError = /* values here */ -``` - diff --git a/docs/models/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepostlanguage.md b/docs/models/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepostlanguage.md deleted file mode 100644 index cb5485f9b..000000000 --- a/docs/models/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepostlanguage.md +++ /dev/null @@ -1,21 +0,0 @@ -# GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostLanguage - -## Example Usage - -```python -from mistralai.client.models import GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostLanguage -value: GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostLanguage = "en" -``` - - -## Values - -- `"en"` -- `"fr"` -- `"es"` -- `"de"` -- `"it"` -- `"pt_br"` -- `"pl"` -- `"ar"` -- `"nl"` diff --git a/docs/models/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepostrequest.md b/docs/models/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepostrequest.md deleted file mode 100644 index 97dd42bce..000000000 --- a/docs/models/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepostrequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `schema_id` | *str* | :heavy_check_mark: | N/A | -| `language` | [models.GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostLanguage](../models/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepostlanguage.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepostsummarystreamtypes.md b/docs/models/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepostsummarystreamtypes.md deleted file mode 100644 index 8ff73a296..000000000 --- a/docs/models/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepostsummarystreamtypes.md +++ /dev/null @@ -1,25 +0,0 @@ -# GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostSummaryStreamTypes - -Successful Response - - -## Supported Types - -### `models.SummaryMetadata` - -```python -value: models.SummaryMetadata = /* values here */ -``` - -### `models.SummaryChunk` - -```python -value: models.SummaryChunk = /* values here */ -``` - -### `models.SummaryError` - -```python -value: models.SummaryError = /* values here */ -``` - diff --git a/docs/models/getindexschemadetailv1ragindexesindexindexidschemasschemaschemaiddetailgetrequest.md b/docs/models/getindexschemadetailv1ragindexesindexindexidschemasschemaschemaiddetailgetrequest.md deleted file mode 100644 index 8e5b91eab..000000000 --- a/docs/models/getindexschemadetailv1ragindexesindexindexidschemasschemaschemaiddetailgetrequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetIndexSchemaDetailV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDDetailGetRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `schema_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getindexschemafilev1ragindexesindexindexidschemasschemaschemaidfilegetrequest.md b/docs/models/getindexschemafilev1ragindexesindexindexidschemasschemaschemaidfilegetrequest.md deleted file mode 100644 index a6897d21e..000000000 --- a/docs/models/getindexschemafilev1ragindexesindexindexidschemasschemaschemaidfilegetrequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetIndexSchemaFileV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDFileGetRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `schema_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguagegetlanguage.md b/docs/models/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguagegetlanguage.md deleted file mode 100644 index e0e92d0cc..000000000 --- a/docs/models/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguagegetlanguage.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetLanguage - -## Example Usage - -```python -from mistralai.client.models import GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetLanguage -value: GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetLanguage = "en" -``` - - -## Values - -- `"en"` -- `"fr"` -- `"es"` -- `"de"` -- `"it"` -- `"pt_br"` -- `"pl"` -- `"ar"` -- `"nl"` diff --git a/docs/models/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguagegetrequest.md b/docs/models/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguagegetrequest.md deleted file mode 100644 index 91512b1fa..000000000 --- a/docs/models/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguagegetrequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetRequest - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `language` | [models.GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetLanguage](../models/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguagegetlanguage.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getschedulesv1workflowsschedulesgetrequest.md b/docs/models/getschedulesv1workflowsschedulesgetrequest.md index d510c27db..9ffb30cd6 100644 --- a/docs/models/getschedulesv1workflowsschedulesgetrequest.md +++ b/docs/models/getschedulesv1workflowsschedulesgetrequest.md @@ -5,8 +5,9 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `workflow_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by workflow name | +| `workflow_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by exact workflow name | | `user_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by user ID. Pass 'current' to resolve to the authenticated user's ID. | | `status` | [OptionalNullable[models.GetSchedulesV1WorkflowsSchedulesGetStatus]](../models/getschedulesv1workflowsschedulesgetstatus.md) | :heavy_minus_sign: | Filter by schedule status: 'active' or 'paused' | +| `search` | *OptionalNullable[str]* | :heavy_minus_sign: | Prefix search query for workflow name | | `page_size` | *OptionalNullable[int]* | :heavy_minus_sign: | Number of items per page. Omitting this parameter fetches all results at once (deprecated — pass page_size to use pagination). | | `next_page_token` | *OptionalNullable[str]* | :heavy_minus_sign: | Token for the next page of results | \ No newline at end of file diff --git a/docs/models/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagegetlanguage.md b/docs/models/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagegetlanguage.md deleted file mode 100644 index 058c7bf68..000000000 --- a/docs/models/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagegetlanguage.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetLanguage - -## Example Usage - -```python -from mistralai.client.models import GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetLanguage -value: GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetLanguage = "en" -``` - - -## Values - -- `"en"` -- `"fr"` -- `"es"` -- `"de"` -- `"it"` -- `"pt_br"` -- `"pl"` -- `"ar"` -- `"nl"` diff --git a/docs/models/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagegetrequest.md b/docs/models/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagegetrequest.md deleted file mode 100644 index 3e2ee916c..000000000 --- a/docs/models/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagegetrequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetRequest - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `schema_id` | *str* | :heavy_check_mark: | N/A | -| `language` | [models.GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetLanguage](../models/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagegetlanguage.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getsearchindexdetailresponseindex.md b/docs/models/getsearchindexdetailresponseindex.md deleted file mode 100644 index 72f42a78f..000000000 --- a/docs/models/getsearchindexdetailresponseindex.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetSearchIndexDetailResponseIndex - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `name` | *str* | :heavy_check_mark: | N/A | -| `creator_id` | *str* | :heavy_check_mark: | N/A | -| `document_count` | *int* | :heavy_check_mark: | N/A | -| `status` | [models.GetSearchIndexDetailResponseIndexStatus](../models/getsearchindexdetailresponseindexstatus.md) | :heavy_check_mark: | N/A | -| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | -| `modified_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | -| `vespa_version` | *Nullable[str]* | :heavy_check_mark: | N/A | -| `schemas` | List[[models.GetSearchIndexDetailResponseSchemaModel](../models/getsearchindexdetailresponseschemamodel.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getsearchindexdetailresponseindexstatus.md b/docs/models/getsearchindexdetailresponseindexstatus.md deleted file mode 100644 index 066e93419..000000000 --- a/docs/models/getsearchindexdetailresponseindexstatus.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetSearchIndexDetailResponseIndexStatus - -## Example Usage - -```python -from mistralai.client.models import GetSearchIndexDetailResponseIndexStatus - -# Open enum: unrecognized values are captured as UnrecognizedStr -value: GetSearchIndexDetailResponseIndexStatus = "online" -``` - - -## Values - -This is an open enum. Unrecognized values will not fail type checks. - -- `"online"` -- `"offline"` diff --git a/docs/models/getsearchindexschemadetailresponsefield.md b/docs/models/getsearchindexschemadetailresponsefield.md deleted file mode 100644 index 03275624e..000000000 --- a/docs/models/getsearchindexschemadetailresponsefield.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetSearchIndexSchemaDetailResponseField - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `name` | *str* | :heavy_check_mark: | N/A | -| `type` | [models.SchemaFieldDataType](../models/schemafielddatatype.md) | :heavy_check_mark: | N/A | -| `storage` | [models.SchemaFieldStorage](../models/schemafieldstorage.md) | :heavy_check_mark: | N/A | -| `index_type` | [Nullable[models.SchemaFieldIndex]](../models/schemafieldindex.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getsearchindexschemadetailresponseschemamodel.md b/docs/models/getsearchindexschemadetailresponseschemamodel.md deleted file mode 100644 index 5120af9cb..000000000 --- a/docs/models/getsearchindexschemadetailresponseschemamodel.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetSearchIndexSchemaDetailResponseSchemaModel - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `name` | *str* | :heavy_check_mark: | N/A | -| `embedding_dimensions` | *Nullable[int]* | :heavy_check_mark: | N/A | -| `fields` | List[[models.GetSearchIndexSchemaDetailResponseField](../models/getsearchindexschemadetailresponsefield.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getsearchindexschemasdfileresponsesdfile.md b/docs/models/getsearchindexschemasdfileresponsesdfile.md deleted file mode 100644 index 3e1e463bb..000000000 --- a/docs/models/getsearchindexschemasdfileresponsesdfile.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetSearchIndexSchemaSDFileResponseSDFile - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `content` | *Nullable[str]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getsearchindexsummaryresponse.md b/docs/models/getsearchindexsummaryresponse.md new file mode 100644 index 000000000..b391c694f --- /dev/null +++ b/docs/models/getsearchindexsummaryresponse.md @@ -0,0 +1,8 @@ +# GetSearchIndexSummaryResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `indexes` | List[[models.GetSearchIndexSummaryResponseIndex](../models/getsearchindexsummaryresponseindex.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getsummaryresponsesummary.md b/docs/models/getsummaryresponsesummary.md deleted file mode 100644 index 8c959e39e..000000000 --- a/docs/models/getsummaryresponsesummary.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetSummaryResponseSummary - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `content` | *str* | :heavy_check_mark: | N/A | -| `status` | [models.SummaryStatus](../models/summarystatus.md) | :heavy_check_mark: | N/A | -| `translated` | *bool* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/granularity.md b/docs/models/granularity.md new file mode 100644 index 000000000..d409e523e --- /dev/null +++ b/docs/models/granularity.md @@ -0,0 +1,19 @@ +# Granularity + +## Example Usage + +```python +from mistralai.client.models import Granularity +value: Granularity = "auto" +``` + + +## Values + +- `"auto"` +- `"second"` +- `"minute"` +- `"hour"` +- `"day"` +- `"week"` +- `"month"` diff --git a/docs/models/jobsapiroutesbatchgetbatchjobsorderby.md b/docs/models/jobsapiroutesbatchgetbatchjobsorderby.md new file mode 100644 index 000000000..e9a446c05 --- /dev/null +++ b/docs/models/jobsapiroutesbatchgetbatchjobsorderby.md @@ -0,0 +1,14 @@ +# JobsAPIRoutesBatchGetBatchJobsOrderBy + +## Example Usage + +```python +from mistralai.client.models import JobsAPIRoutesBatchGetBatchJobsOrderBy +value: JobsAPIRoutesBatchGetBatchJobsOrderBy = "created" +``` + + +## Values + +- `"created"` +- `"-created"` diff --git a/docs/models/jobsapiroutesbatchgetbatchjobsrequest.md b/docs/models/jobsapiroutesbatchgetbatchjobsrequest.md index 5ceb0b2c4..92ee6299b 100644 --- a/docs/models/jobsapiroutesbatchgetbatchjobsrequest.md +++ b/docs/models/jobsapiroutesbatchgetbatchjobsrequest.md @@ -3,14 +3,14 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `page` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `agent_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | -| `created_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | -| `created_by_me` | *Optional[bool]* | :heavy_minus_sign: | N/A | -| `status` | List[[models.BatchJobStatus](../models/batchjobstatus.md)] | :heavy_minus_sign: | N/A | -| `order_by` | [Optional[models.OrderBy]](../models/orderby.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `page` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `agent_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | +| `created_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `created_by_me` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `status` | List[[models.BatchJobStatus](../models/batchjobstatus.md)] | :heavy_minus_sign: | N/A | +| `order_by` | [Optional[models.JobsAPIRoutesBatchGetBatchJobsOrderBy]](../models/jobsapiroutesbatchgetbatchjobsorderby.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/listdeploymentsv1workflowsdeploymentsgetorder.md b/docs/models/listdeploymentsv1workflowsdeploymentsgetorder.md new file mode 100644 index 000000000..1f31b9179 --- /dev/null +++ b/docs/models/listdeploymentsv1workflowsdeploymentsgetorder.md @@ -0,0 +1,16 @@ +# ListDeploymentsV1WorkflowsDeploymentsGetOrder + +Sort direction. Applied to order_by when set, or within each activity group when omitted. + +## Example Usage + +```python +from mistralai.client.models import ListDeploymentsV1WorkflowsDeploymentsGetOrder +value: ListDeploymentsV1WorkflowsDeploymentsGetOrder = "asc" +``` + + +## Values + +- `"asc"` +- `"desc"` diff --git a/docs/models/listdeploymentsv1workflowsdeploymentsgetorderby.md b/docs/models/listdeploymentsv1workflowsdeploymentsgetorderby.md new file mode 100644 index 000000000..554266f5c --- /dev/null +++ b/docs/models/listdeploymentsv1workflowsdeploymentsgetorderby.md @@ -0,0 +1,16 @@ +# ListDeploymentsV1WorkflowsDeploymentsGetOrderBy + +Field to sort by. When omitted, active and managed deployments are grouped first, then sorted by created_at. When set, results are sorted purely by the specified field with no grouping. + +## Example Usage + +```python +from mistralai.client.models import ListDeploymentsV1WorkflowsDeploymentsGetOrderBy +value: ListDeploymentsV1WorkflowsDeploymentsGetOrderBy = "updated_at" +``` + + +## Values + +- `"updated_at"` +- `"created_at"` diff --git a/docs/models/listdeploymentsv1workflowsdeploymentsgetrequest.md b/docs/models/listdeploymentsv1workflowsdeploymentsgetrequest.md index 8f44ea00f..31ce3c804 100644 --- a/docs/models/listdeploymentsv1workflowsdeploymentsgetrequest.md +++ b/docs/models/listdeploymentsv1workflowsdeploymentsgetrequest.md @@ -3,12 +3,14 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `active_only` | *Optional[bool]* | :heavy_minus_sign: | N/A | -| `is_hardened` | *OptionalNullable[bool]* | :heavy_minus_sign: | Filter deployments by hardened status | -| `workflow_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `search` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter deployments by name or ID prefix | -| `limit` | *OptionalNullable[int]* | :heavy_minus_sign: | Maximum number of deployments to return | -| `cursor` | *OptionalNullable[str]* | :heavy_minus_sign: | Cursor from a previous response for pagination | -| `workspace_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Workspace ID to scope the request to. Defaults to the caller's context. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `active_only` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `is_hardened` | *OptionalNullable[bool]* | :heavy_minus_sign: | Filter deployments by hardened status | +| `workflow_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `search` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter deployments by name or ID prefix | +| `order_by` | [OptionalNullable[models.ListDeploymentsV1WorkflowsDeploymentsGetOrderBy]](../models/listdeploymentsv1workflowsdeploymentsgetorderby.md) | :heavy_minus_sign: | Field to sort by. When omitted, active and managed deployments are grouped first, then sorted by created_at. When set, results are sorted purely by the specified field with no grouping. | +| `order` | [Optional[models.ListDeploymentsV1WorkflowsDeploymentsGetOrder]](../models/listdeploymentsv1workflowsdeploymentsgetorder.md) | :heavy_minus_sign: | Sort direction. Applied to order_by when set, or within each activity group when omitted. | +| `limit` | *OptionalNullable[int]* | :heavy_minus_sign: | Maximum number of deployments to return | +| `cursor` | *OptionalNullable[str]* | :heavy_minus_sign: | Cursor from a previous response for pagination | +| `workspace_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Workspace ID to scope the request to. Defaults to the caller's context. | \ No newline at end of file diff --git a/docs/models/listdeploymentworkersv1workflowsdeploymentsnameworkersgetrequest.md b/docs/models/listdeploymentworkersv1workflowsdeploymentsnameworkersgetrequest.md new file mode 100644 index 000000000..6be2d8bd2 --- /dev/null +++ b/docs/models/listdeploymentworkersv1workflowsdeploymentsnameworkersgetrequest.md @@ -0,0 +1,11 @@ +# ListDeploymentWorkersV1WorkflowsDeploymentsNameWorkersGetRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `name` | *str* | :heavy_check_mark: | N/A | +| `worker_status` | [OptionalNullable[models.WorkerStatus]](../models/workerstatus.md) | :heavy_minus_sign: | Filter by worker activity. active=only active, inactive=only inactive, None=no filter | +| `limit` | *Optional[int]* | :heavy_minus_sign: | Maximum number of workers to return | +| `cursor` | *OptionalNullable[str]* | :heavy_minus_sign: | Cursor from a previous response's `next_cursor`. Resend `worker_status` unchanged alongside it. | \ No newline at end of file diff --git a/docs/models/listsortdirection.md b/docs/models/listsortdirection.md new file mode 100644 index 000000000..0ab5cfd86 --- /dev/null +++ b/docs/models/listsortdirection.md @@ -0,0 +1,15 @@ +# ListSortDirection + +## Example Usage + +```python +from mistralai.client.models import ListSortDirection +value: ListSortDirection = "list_sort_direction_unspecified" +``` + + +## Values + +- `"list_sort_direction_unspecified"` +- `"list_sort_direction_asc"` +- `"list_sort_direction_desc"` diff --git a/docs/models/listsortfield.md b/docs/models/listsortfield.md new file mode 100644 index 000000000..f4a4df8f7 --- /dev/null +++ b/docs/models/listsortfield.md @@ -0,0 +1,17 @@ +# ListSortField + +## Example Usage + +```python +from mistralai.client.models import ListSortField +value: ListSortField = "list_sort_field_unspecified" +``` + + +## Values + +- `"list_sort_field_unspecified"` +- `"list_sort_field_created_at"` +- `"list_sort_field_last_modified_at"` +- `"list_sort_field_name"` +- `"list_sort_field_title"` diff --git a/docs/models/metricaggregation.md b/docs/models/metricaggregation.md new file mode 100644 index 000000000..9b127bc00 --- /dev/null +++ b/docs/models/metricaggregation.md @@ -0,0 +1,26 @@ +# MetricAggregation + +## Example Usage + +```python +from mistralai.client.models import MetricAggregation + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: MetricAggregation = "count" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"count"` +- `"count_distinct"` +- `"sum"` +- `"avg"` +- `"min"` +- `"max"` +- `"p50"` +- `"p90"` +- `"p95"` +- `"p99"` diff --git a/docs/models/metricdefinition.md b/docs/models/metricdefinition.md new file mode 100644 index 000000000..314a67165 --- /dev/null +++ b/docs/models/metricdefinition.md @@ -0,0 +1,9 @@ +# MetricDefinition + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `measure` | *str* | :heavy_check_mark: | N/A | +| `aggregation` | [models.MetricAggregation](../models/metricaggregation.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/metricvalue.md b/docs/models/metricvalue.md new file mode 100644 index 000000000..21bdd1baf --- /dev/null +++ b/docs/models/metricvalue.md @@ -0,0 +1,17 @@ +# MetricValue + + +## Supported Types + +### `float` + +```python +value: float = /* values here */ +``` + +### `int` + +```python +value: int = /* values here */ +``` + diff --git a/docs/models/ocrasidetextblock.md b/docs/models/ocrasidetextblock.md index 6bf9f26f5..3b63094f9 100644 --- a/docs/models/ocrasidetextblock.md +++ b/docs/models/ocrasidetextblock.md @@ -3,11 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `top_left_x` | *int* | :heavy_check_mark: | N/A | -| `top_left_y` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | -| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | -| `type` | *Literal["aside_text"]* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `top_left_x` | *int* | :heavy_check_mark: | N/A | +| `top_left_y` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | +| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | +| `confidence_scores` | [OptionalNullable[models.OCRBlockConfidenceScores]](../models/ocrblockconfidencescores.md) | :heavy_minus_sign: | Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'. | +| `type` | *Literal["aside_text"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ocrblockconfidencescores.md b/docs/models/ocrblockconfidencescores.md new file mode 100644 index 000000000..49f84a701 --- /dev/null +++ b/docs/models/ocrblockconfidencescores.md @@ -0,0 +1,16 @@ +# OCRBlockConfidenceScores + +Per-block confidence scores, computed per-word from model logprobs. + +All fields ``None`` when the block couldn't be scored. +Individual fields ``None`` when that signal is absent — e.g. an image-only block has +no caption, so content scores are ``None``. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | +| `average_content_confidence_score` | *OptionalNullable[float]* | :heavy_minus_sign: | Average confidence over the block's content (caption) tokens. None when the block has no textual content (e.g. image-only entry). | +| `minimum_content_confidence_score` | *OptionalNullable[float]* | :heavy_minus_sign: | Minimum per-word content confidence in the block. None when the block has no textual content. | +| `block_type_confidence_score` | *OptionalNullable[float]* | :heavy_minus_sign: | Confidence in the block type (e.g. 'text', 'title', 'table'). None when the entry had no block type or the block type span could not be located. | \ No newline at end of file diff --git a/docs/models/ocrcaptionblock.md b/docs/models/ocrcaptionblock.md index 31ee41793..612909b79 100644 --- a/docs/models/ocrcaptionblock.md +++ b/docs/models/ocrcaptionblock.md @@ -3,11 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `top_left_x` | *int* | :heavy_check_mark: | N/A | -| `top_left_y` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | -| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | -| `type` | *Literal["caption"]* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `top_left_x` | *int* | :heavy_check_mark: | N/A | +| `top_left_y` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | +| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | +| `confidence_scores` | [OptionalNullable[models.OCRBlockConfidenceScores]](../models/ocrblockconfidencescores.md) | :heavy_minus_sign: | Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'. | +| `type` | *Literal["caption"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ocrcodeblock.md b/docs/models/ocrcodeblock.md index 564528893..f20ecd13d 100644 --- a/docs/models/ocrcodeblock.md +++ b/docs/models/ocrcodeblock.md @@ -3,11 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `top_left_x` | *int* | :heavy_check_mark: | N/A | -| `top_left_y` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | -| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | -| `type` | *Literal["code"]* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `top_left_x` | *int* | :heavy_check_mark: | N/A | +| `top_left_y` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | +| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | +| `confidence_scores` | [OptionalNullable[models.OCRBlockConfidenceScores]](../models/ocrblockconfidencescores.md) | :heavy_minus_sign: | Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'. | +| `type` | *Literal["code"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ocrequationblock.md b/docs/models/ocrequationblock.md index 4c71e4910..9e8368fa8 100644 --- a/docs/models/ocrequationblock.md +++ b/docs/models/ocrequationblock.md @@ -3,11 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `top_left_x` | *int* | :heavy_check_mark: | N/A | -| `top_left_y` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | -| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | -| `type` | *Literal["equation"]* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `top_left_x` | *int* | :heavy_check_mark: | N/A | +| `top_left_y` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | +| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | +| `confidence_scores` | [OptionalNullable[models.OCRBlockConfidenceScores]](../models/ocrblockconfidencescores.md) | :heavy_minus_sign: | Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'. | +| `type` | *Literal["equation"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ocrfooterblock.md b/docs/models/ocrfooterblock.md index cc7ff354f..a19ade852 100644 --- a/docs/models/ocrfooterblock.md +++ b/docs/models/ocrfooterblock.md @@ -3,11 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `top_left_x` | *int* | :heavy_check_mark: | N/A | -| `top_left_y` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | -| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | -| `type` | *Literal["footer"]* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `top_left_x` | *int* | :heavy_check_mark: | N/A | +| `top_left_y` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | +| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | +| `confidence_scores` | [OptionalNullable[models.OCRBlockConfidenceScores]](../models/ocrblockconfidencescores.md) | :heavy_minus_sign: | Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'. | +| `type` | *Literal["footer"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ocrheaderblock.md b/docs/models/ocrheaderblock.md index 0b000251e..28c72ae61 100644 --- a/docs/models/ocrheaderblock.md +++ b/docs/models/ocrheaderblock.md @@ -3,11 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `top_left_x` | *int* | :heavy_check_mark: | N/A | -| `top_left_y` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | -| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | -| `type` | *Literal["header"]* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `top_left_x` | *int* | :heavy_check_mark: | N/A | +| `top_left_y` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | +| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | +| `confidence_scores` | [OptionalNullable[models.OCRBlockConfidenceScores]](../models/ocrblockconfidencescores.md) | :heavy_minus_sign: | Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'. | +| `type` | *Literal["header"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ocrimageblock.md b/docs/models/ocrimageblock.md index 5744a5a6f..ef84f54ce 100644 --- a/docs/models/ocrimageblock.md +++ b/docs/models/ocrimageblock.md @@ -3,12 +3,13 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `top_left_x` | *int* | :heavy_check_mark: | N/A | -| `top_left_y` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | -| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | -| `type` | *Literal["image"]* | :heavy_check_mark: | N/A | -| `image_id` | *str* | :heavy_check_mark: | References the corresponding entry in OCRPageObject.images | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `top_left_x` | *int* | :heavy_check_mark: | N/A | +| `top_left_y` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | +| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | +| `confidence_scores` | [OptionalNullable[models.OCRBlockConfidenceScores]](../models/ocrblockconfidencescores.md) | :heavy_minus_sign: | Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'. | +| `type` | *Literal["image"]* | :heavy_check_mark: | N/A | +| `image_id` | *str* | :heavy_check_mark: | References the corresponding entry in OCRPageObject.images | \ No newline at end of file diff --git a/docs/models/ocrlistblock.md b/docs/models/ocrlistblock.md index 0fce7a1a6..f560d217a 100644 --- a/docs/models/ocrlistblock.md +++ b/docs/models/ocrlistblock.md @@ -3,11 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `top_left_x` | *int* | :heavy_check_mark: | N/A | -| `top_left_y` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | -| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | -| `type` | *Literal["list"]* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `top_left_x` | *int* | :heavy_check_mark: | N/A | +| `top_left_y` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | +| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | +| `confidence_scores` | [OptionalNullable[models.OCRBlockConfidenceScores]](../models/ocrblockconfidencescores.md) | :heavy_minus_sign: | Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'. | +| `type` | *Literal["list"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ocrpageconfidencescores.md b/docs/models/ocrpageconfidencescores.md index bffb21486..1c56b63e3 100644 --- a/docs/models/ocrpageconfidencescores.md +++ b/docs/models/ocrpageconfidencescores.md @@ -3,10 +3,14 @@ Confidence scores for an OCR page at various granularities. Note on page-level stats: -- For 'page' granularity: average/minimum are computed from per-token exp(logprob). -- For 'word' granularity: average/minimum are computed from per-word confidence, - where each word's confidence is exp(mean(token_logprobs)) — a geometric mean - over the word's subword tokens. +- For 'page' and 'block' granularity: average/minimum are computed from per-token + exp(logprob). Neither ``word_confidence_scores`` nor ``token_scores`` is populated. + Per-block scores are attached to response blocks separately for 'block' granularity. +- For 'word' granularity: average/minimum are computed from per-word confidence, where + each word's confidence is exp(mean(token_logprobs)) — a geometric mean over the + word's subword tokens. ``word_confidence_scores`` is populated. +- For 'token' granularity (internal): average/minimum are computed from + ``token_scores``; ``token_scores`` is populated. ## Fields diff --git a/docs/models/ocrreferencesblock.md b/docs/models/ocrreferencesblock.md index 5893eacfe..99f93108e 100644 --- a/docs/models/ocrreferencesblock.md +++ b/docs/models/ocrreferencesblock.md @@ -3,11 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `top_left_x` | *int* | :heavy_check_mark: | N/A | -| `top_left_y` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | -| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | -| `type` | *Literal["references"]* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `top_left_x` | *int* | :heavy_check_mark: | N/A | +| `top_left_y` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | +| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | +| `confidence_scores` | [OptionalNullable[models.OCRBlockConfidenceScores]](../models/ocrblockconfidencescores.md) | :heavy_minus_sign: | Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'. | +| `type` | *Literal["references"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ocrrequest.md b/docs/models/ocrrequest.md index 4bc19e381..b9bf88945 100644 --- a/docs/models/ocrrequest.md +++ b/docs/models/ocrrequest.md @@ -18,4 +18,4 @@ | `extract_header` | *Optional[bool]* | :heavy_minus_sign: | Extract the page header into the response's `header` field and remove it from the markdown content | | | `extract_footer` | *Optional[bool]* | :heavy_minus_sign: | Extract the page footer into the response's `footer` field and remove it from the markdown content | | | `include_blocks` | *Optional[bool]* | :heavy_minus_sign: | Return paragraph-level bounding boxes for all content blocks in the response | | -| `confidence_scores_granularity` | [OptionalNullable[models.ConfidenceScoresGranularity]](../models/confidencescoresgranularity.md) | :heavy_minus_sign: | Granularity for confidence scores: 'page' (aggregate only), 'word' (per-word scores). Defaults to None (no confidence scores) to keep response payload small. | | \ No newline at end of file +| `confidence_scores_granularity` | [OptionalNullable[models.ConfidenceScoresGranularity]](../models/confidencescoresgranularity.md) | :heavy_minus_sign: | Granularity for confidence scores: 'page' (aggregate only), 'word' (per-word scores), or 'block' (per-block scores). Defaults to None (no confidence scores) to keep response payload small. | | \ No newline at end of file diff --git a/docs/models/ocrsignatureblock.md b/docs/models/ocrsignatureblock.md index de2b4f601..62c189fee 100644 --- a/docs/models/ocrsignatureblock.md +++ b/docs/models/ocrsignatureblock.md @@ -5,11 +5,12 @@ Signature region. ``content`` is the transcribed name when legible, else ``""``. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `top_left_x` | *int* | :heavy_check_mark: | N/A | -| `top_left_y` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | -| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | -| `type` | *Literal["signature"]* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `top_left_x` | *int* | :heavy_check_mark: | N/A | +| `top_left_y` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | +| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | +| `confidence_scores` | [OptionalNullable[models.OCRBlockConfidenceScores]](../models/ocrblockconfidencescores.md) | :heavy_minus_sign: | Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'. | +| `type` | *Literal["signature"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ocrtableblock.md b/docs/models/ocrtableblock.md index c0e1f8aba..0d5f962ab 100644 --- a/docs/models/ocrtableblock.md +++ b/docs/models/ocrtableblock.md @@ -3,12 +3,13 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `top_left_x` | *int* | :heavy_check_mark: | N/A | -| `top_left_y` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | -| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | -| `type` | *Literal["table"]* | :heavy_check_mark: | N/A | -| `table_id` | *OptionalNullable[str]* | :heavy_minus_sign: | References the corresponding entry in OCRPageObject.tables, when tables are extracted | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `top_left_x` | *int* | :heavy_check_mark: | N/A | +| `top_left_y` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | +| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | +| `confidence_scores` | [OptionalNullable[models.OCRBlockConfidenceScores]](../models/ocrblockconfidencescores.md) | :heavy_minus_sign: | Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'. | +| `type` | *Literal["table"]* | :heavy_check_mark: | N/A | +| `table_id` | *OptionalNullable[str]* | :heavy_minus_sign: | References the corresponding entry in OCRPageObject.tables, when tables are extracted | \ No newline at end of file diff --git a/docs/models/ocrtextblock.md b/docs/models/ocrtextblock.md index 1eab8e127..718df621b 100644 --- a/docs/models/ocrtextblock.md +++ b/docs/models/ocrtextblock.md @@ -3,11 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `top_left_x` | *int* | :heavy_check_mark: | N/A | -| `top_left_y` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | -| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | -| `type` | *Literal["text"]* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `top_left_x` | *int* | :heavy_check_mark: | N/A | +| `top_left_y` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | +| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | +| `confidence_scores` | [OptionalNullable[models.OCRBlockConfidenceScores]](../models/ocrblockconfidencescores.md) | :heavy_minus_sign: | Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'. | +| `type` | *Literal["text"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ocrtitleblock.md b/docs/models/ocrtitleblock.md index 59c68c9f8..f13cc0782 100644 --- a/docs/models/ocrtitleblock.md +++ b/docs/models/ocrtitleblock.md @@ -3,11 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `top_left_x` | *int* | :heavy_check_mark: | N/A | -| `top_left_y` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | -| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | -| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | -| `type` | *Literal["title"]* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `top_left_x` | *int* | :heavy_check_mark: | N/A | +| `top_left_y` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_x` | *int* | :heavy_check_mark: | N/A | +| `bottom_right_y` | *int* | :heavy_check_mark: | N/A | +| `content` | *str* | :heavy_check_mark: | Text/markdown/html content of this block | +| `confidence_scores` | [OptionalNullable[models.OCRBlockConfidenceScores]](../models/ocrblockconfidencescores.md) | :heavy_minus_sign: | Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'. | +| `type` | *Literal["title"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/orderby.md b/docs/models/orderby.md deleted file mode 100644 index d778621f6..000000000 --- a/docs/models/orderby.md +++ /dev/null @@ -1,14 +0,0 @@ -# OrderBy - -## Example Usage - -```python -from mistralai.client.models import OrderBy -value: OrderBy = "created" -``` - - -## Values - -- `"created"` -- `"-created"` diff --git a/docs/models/orderbyclause.md b/docs/models/orderbyclause.md new file mode 100644 index 000000000..4d9604b07 --- /dev/null +++ b/docs/models/orderbyclause.md @@ -0,0 +1,9 @@ +# OrderByClause + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `field` | *str* | :heavy_check_mark: | N/A | +| `direction` | [Optional[models.Direction]](../models/direction.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/otelfielddefinition.md b/docs/models/otelfielddefinition.md index 366c9bc4c..59035bff0 100644 --- a/docs/models/otelfielddefinition.md +++ b/docs/models/otelfielddefinition.md @@ -9,4 +9,5 @@ | `label` | *str* | :heavy_check_mark: | N/A | | `type` | [models.OtelFieldDefinitionType](../models/otelfielddefinitiontype.md) | :heavy_check_mark: | N/A | | `group` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `supported_operators` | List[[models.OtelFieldDefinitionSupportedOperator](../models/otelfielddefinitionsupportedoperator.md)] | :heavy_check_mark: | N/A | \ No newline at end of file +| `supported_operators` | List[[models.OtelFieldDefinitionSupportedOperator](../models/otelfielddefinitionsupportedoperator.md)] | :heavy_check_mark: | N/A | +| `supported_aggregations` | List[[models.MetricAggregation](../models/metricaggregation.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/promptslistrequest.md b/docs/models/promptslistrequest.md index 176e94870..cea8ca068 100644 --- a/docs/models/promptslistrequest.md +++ b/docs/models/promptslistrequest.md @@ -3,9 +3,13 @@ ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `page_token` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `alias` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `fields` | List[*str*] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `page_token` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `alias` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `fields` | List[*str*] | :heavy_minus_sign: | N/A | +| `sort_field` | [Optional[models.ListSortField]](../models/listsortfield.md) | :heavy_minus_sign: | Defaults to created_at when omitted. | +| `sort_direction_query_parameter` | [Optional[models.ListSortDirection]](../models/listsortdirection.md) | :heavy_minus_sign: | Defaults to descending for timestamp fields and ascending for text fields. | +| `sort_by` | *Optional[str]* | :heavy_minus_sign: | REST-friendly alias for sort.field. Supported values: created_at, last_modified_at, name, title. | +| `sort_direction_query_parameter1` | *Optional[str]* | :heavy_minus_sign: | REST-friendly alias for sort.direction. Supported values: asc, desc. | \ No newline at end of file diff --git a/docs/models/schemafielddatatype.md b/docs/models/schemafielddatatype.md index 685b8a2a6..de3219229 100644 --- a/docs/models/schemafielddatatype.md +++ b/docs/models/schemafielddatatype.md @@ -4,16 +4,12 @@ ```python from mistralai.client.models import SchemaFieldDataType - -# Open enum: unrecognized values are captured as UnrecognizedStr value: SchemaFieldDataType = "int" ``` ## Values -This is an open enum. Unrecognized values will not fail type checks. - - `"int"` - `"bool"` - `"string"` diff --git a/docs/models/schemafieldindex.md b/docs/models/schemafieldindex.md index 93572ec44..a30cc0c7a 100644 --- a/docs/models/schemafieldindex.md +++ b/docs/models/schemafieldindex.md @@ -4,16 +4,12 @@ ```python from mistralai.client.models import SchemaFieldIndex - -# Open enum: unrecognized values are captured as UnrecognizedStr value: SchemaFieldIndex = "ann" ``` ## Values -This is an open enum. Unrecognized values will not fail type checks. - - `"ann"` - `"bm25"` - `"attribute"` diff --git a/docs/models/schemafieldstorage.md b/docs/models/schemafieldstorage.md index 82893a86e..f0bd62641 100644 --- a/docs/models/schemafieldstorage.md +++ b/docs/models/schemafieldstorage.md @@ -4,15 +4,11 @@ ```python from mistralai.client.models import SchemaFieldStorage - -# Open enum: unrecognized values are captured as UnrecognizedStr value: SchemaFieldStorage = "in_memory" ``` ## Values -This is an open enum. Unrecognized values will not fail type checks. - - `"in_memory"` - `"on_disk"` diff --git a/docs/models/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageputlanguage.md b/docs/models/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageputlanguage.md deleted file mode 100644 index 3044121df..000000000 --- a/docs/models/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageputlanguage.md +++ /dev/null @@ -1,21 +0,0 @@ -# SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutLanguage - -## Example Usage - -```python -from mistralai.client.models import SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutLanguage -value: SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutLanguage = "en" -``` - - -## Values - -- `"en"` -- `"fr"` -- `"es"` -- `"de"` -- `"it"` -- `"pt_br"` -- `"pl"` -- `"ar"` -- `"nl"` diff --git a/docs/models/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageputrequest.md b/docs/models/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageputrequest.md deleted file mode 100644 index be0f2e166..000000000 --- a/docs/models/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageputrequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutRequest - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `language` | [models.SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutLanguage](../models/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageputlanguage.md) | :heavy_check_mark: | N/A | -| `update_summary_request_summary` | [models.UpdateSummaryRequestSummary](../models/updatesummaryrequestsummary.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageputlanguage.md b/docs/models/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageputlanguage.md deleted file mode 100644 index 8b506c08e..000000000 --- a/docs/models/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageputlanguage.md +++ /dev/null @@ -1,21 +0,0 @@ -# SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutLanguage - -## Example Usage - -```python -from mistralai.client.models import SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutLanguage -value: SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutLanguage = "en" -``` - - -## Values - -- `"en"` -- `"fr"` -- `"es"` -- `"de"` -- `"it"` -- `"pt_br"` -- `"pl"` -- `"ar"` -- `"nl"` diff --git a/docs/models/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageputrequest.md b/docs/models/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageputrequest.md deleted file mode 100644 index 3f90b6f21..000000000 --- a/docs/models/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageputrequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutRequest - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `schema_id` | *str* | :heavy_check_mark: | N/A | -| `language` | [models.SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutLanguage](../models/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageputlanguage.md) | :heavy_check_mark: | N/A | -| `update_summary_request_summary` | [models.UpdateSummaryRequestSummary](../models/updatesummaryrequestsummary.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/skillslistrequest.md b/docs/models/skillslistrequest.md index e98446ff7..322f5c218 100644 --- a/docs/models/skillslistrequest.md +++ b/docs/models/skillslistrequest.md @@ -3,9 +3,13 @@ ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `page_token` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `alias` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `fields` | List[*str*] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `page_token` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `alias` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `fields` | List[*str*] | :heavy_minus_sign: | N/A | +| `sort_field` | [Optional[models.ListSortField]](../models/listsortfield.md) | :heavy_minus_sign: | Defaults to created_at when omitted. | +| `sort_direction_query_parameter` | [Optional[models.ListSortDirection]](../models/listsortdirection.md) | :heavy_minus_sign: | Defaults to descending for timestamp fields and ascending for text fields. | +| `sort_by` | *Optional[str]* | :heavy_minus_sign: | REST-friendly alias for sort.field. Supported values: created_at, last_modified_at, name, title. | +| `sort_direction_query_parameter1` | *Optional[str]* | :heavy_minus_sign: | REST-friendly alias for sort.direction. Supported values: asc, desc. | \ No newline at end of file diff --git a/docs/models/summarychunk.md b/docs/models/summarychunk.md deleted file mode 100644 index 3531b9af0..000000000 --- a/docs/models/summarychunk.md +++ /dev/null @@ -1,10 +0,0 @@ -# SummaryChunk - -Regular content. - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `content` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/summaryerror.md b/docs/models/summaryerror.md deleted file mode 100644 index 78a6e98dd..000000000 --- a/docs/models/summaryerror.md +++ /dev/null @@ -1,10 +0,0 @@ -# SummaryError - -If an error is encountered while streaming responses this is returned. - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `error` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/summarymetadata.md b/docs/models/summarymetadata.md deleted file mode 100644 index 74bf1e639..000000000 --- a/docs/models/summarymetadata.md +++ /dev/null @@ -1,11 +0,0 @@ -# SummaryMetadata - -Summary content. Expected to be the first value returned. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `status` | [models.SummaryStatusDollarDefs](../models/summarystatusdollardefs.md) | :heavy_check_mark: | N/A | -| `translated` | *bool* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/summarystatus.md b/docs/models/summarystatus.md deleted file mode 100644 index 21f0f6b13..000000000 --- a/docs/models/summarystatus.md +++ /dev/null @@ -1,19 +0,0 @@ -# SummaryStatus - -## Example Usage - -```python -from mistralai.client.models import SummaryStatus - -# Open enum: unrecognized values are captured as UnrecognizedStr -value: SummaryStatus = "handwritten" -``` - - -## Values - -This is an open enum. Unrecognized values will not fail type checks. - -- `"handwritten"` -- `"generated"` -- `"generated_confirmed"` diff --git a/docs/models/summarystatusdollardefs.md b/docs/models/summarystatusdollardefs.md deleted file mode 100644 index 956e309b4..000000000 --- a/docs/models/summarystatusdollardefs.md +++ /dev/null @@ -1,19 +0,0 @@ -# SummaryStatusDollarDefs - -## Example Usage - -```python -from mistralai.client.models import SummaryStatusDollarDefs - -# Open enum: unrecognized values are captured as UnrecognizedStr -value: SummaryStatusDollarDefs = "handwritten" -``` - - -## Values - -This is an open enum. Unrecognized values will not fail type checks. - -- `"handwritten"` -- `"generated"` -- `"generated_confirmed"` diff --git a/docs/models/timedimension.md b/docs/models/timedimension.md new file mode 100644 index 000000000..20247793c --- /dev/null +++ b/docs/models/timedimension.md @@ -0,0 +1,8 @@ +# TimeDimension + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `granularity` | [Optional[models.Granularity]](../models/granularity.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getindexdetailsv1ragindexesindexindexiddetailgetrequest.md b/docs/models/unregistersearchindexv1ragindexesindexiddeleterequest.md similarity index 82% rename from docs/models/getindexdetailsv1ragindexesindexindexiddetailgetrequest.md rename to docs/models/unregistersearchindexv1ragindexesindexiddeleterequest.md index 9f6896f85..8d4acf5a6 100644 --- a/docs/models/getindexdetailsv1ragindexesindexindexiddetailgetrequest.md +++ b/docs/models/unregistersearchindexv1ragindexesindexiddeleterequest.md @@ -1,4 +1,4 @@ -# GetIndexDetailsV1RagIndexesIndexIndexIDDetailGetRequest +# UnregisterSearchIndexV1RagIndexesIndexIDDeleteRequest ## Fields diff --git a/docs/models/unregistersearchindexv1ragindexesindexindexiddeleterequest.md b/docs/models/unregistersearchindexv1ragindexesindexindexiddeleterequest.md deleted file mode 100644 index 5db96ad3c..000000000 --- a/docs/models/unregistersearchindexv1ragindexesindexindexiddeleterequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# UnregisterSearchIndexV1RagIndexesIndexIndexIDDeleteRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `index_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateindexmetricsv1ragindexesindexindexidmetricsputrequest.md b/docs/models/updateindexmetricsv1ragindexesindexidmetricsputrequest.md similarity index 92% rename from docs/models/updateindexmetricsv1ragindexesindexindexidmetricsputrequest.md rename to docs/models/updateindexmetricsv1ragindexesindexidmetricsputrequest.md index 50bf31c35..434f3b46c 100644 --- a/docs/models/updateindexmetricsv1ragindexesindexindexidmetricsputrequest.md +++ b/docs/models/updateindexmetricsv1ragindexesindexidmetricsputrequest.md @@ -1,4 +1,4 @@ -# UpdateIndexMetricsV1RagIndexesIndexIndexIDMetricsPutRequest +# UpdateIndexMetricsV1RagIndexesIndexIDMetricsPutRequest ## Fields diff --git a/docs/models/updatesummaryrequestsummary.md b/docs/models/updatesummaryrequestsummary.md deleted file mode 100644 index 46de9046c..000000000 --- a/docs/models/updatesummaryrequestsummary.md +++ /dev/null @@ -1,10 +0,0 @@ -# UpdateSummaryRequestSummary - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `content` | *str* | :heavy_check_mark: | N/A | -| `status` | [models.UpdateSummaryRequestSummaryStatus](../models/updatesummaryrequestsummarystatus.md) | :heavy_check_mark: | N/A | -| `translated` | *bool* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatesummaryrequestsummarystatus.md b/docs/models/updatesummaryrequestsummarystatus.md deleted file mode 100644 index 6ac6bc80a..000000000 --- a/docs/models/updatesummaryrequestsummarystatus.md +++ /dev/null @@ -1,14 +0,0 @@ -# UpdateSummaryRequestSummaryStatus - -## Example Usage - -```python -from mistralai.client.models import UpdateSummaryRequestSummaryStatus -value: UpdateSummaryRequestSummaryStatus = "handwritten" -``` - - -## Values - -- `"handwritten"` -- `"generated_confirmed"` diff --git a/docs/models/vespagetretrievableresponseretrievable.md b/docs/models/vespagetretrievableresponseretrievable.md deleted file mode 100644 index 1c2bbbc50..000000000 --- a/docs/models/vespagetretrievableresponseretrievable.md +++ /dev/null @@ -1,9 +0,0 @@ -# VespaGetRetrievableResponseRetrievable - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `id` | *str* | :heavy_check_mark: | N/A | -| `fields` | Dict[str, *Any*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/workerstatus.md b/docs/models/workerstatus.md new file mode 100644 index 000000000..1461e0275 --- /dev/null +++ b/docs/models/workerstatus.md @@ -0,0 +1,16 @@ +# WorkerStatus + +Filter by worker activity. active=only active, inactive=only inactive, None=no filter + +## Example Usage + +```python +from mistralai.client.models import WorkerStatus +value: WorkerStatus = "active" +``` + + +## Values + +- `"active"` +- `"inactive"` diff --git a/docs/models/workflowexecutionrequest.md b/docs/models/workflowexecutionrequest.md index 4b61c7b7f..6b24d3743 100644 --- a/docs/models/workflowexecutionrequest.md +++ b/docs/models/workflowexecutionrequest.md @@ -10,6 +10,7 @@ | `wait_for_result` | *Optional[bool]* | :heavy_minus_sign: | If true, wait for the workflow to complete and return the result directly. | | `timeout_seconds` | *OptionalNullable[float]* | :heavy_minus_sign: | Maximum time to wait for completion when wait_for_result is true. | | `custom_tracing_attributes` | Dict[str, *str*] | :heavy_minus_sign: | N/A | +| `force_new_trace` | *Optional[bool]* | :heavy_minus_sign: | If true, ignore the caller's trace context and start a new, independent trace for this execution instead of joining the caller's trace. | | `extensions` | Dict[str, *Any*] | :heavy_minus_sign: | Plugin-specific data to propagate into WorkflowContext.extensions at execution time. | | ~~`task_queue`~~ | *OptionalNullable[str]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated. Use deployment_name instead. | | `deployment_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the deployment to route this execution to | \ No newline at end of file diff --git a/docs/sdks/betaprompts/README.md b/docs/sdks/betaprompts/README.md index 02077dbef..dae671063 100644 --- a/docs/sdks/betaprompts/README.md +++ b/docs/sdks/betaprompts/README.md @@ -41,13 +41,17 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `page_token` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `alias` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `fields` | List[*str*] | :heavy_minus_sign: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `page_token` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `alias` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `fields` | List[*str*] | :heavy_minus_sign: | N/A | +| `sort_field` | [Optional[models.ListSortField]](../../models/listsortfield.md) | :heavy_minus_sign: | Defaults to created_at when omitted. | +| `sort_direction_query_parameter` | [Optional[models.ListSortDirection]](../../models/listsortdirection.md) | :heavy_minus_sign: | Defaults to descending for timestamp fields and ascending for text fields. | +| `sort_by` | *Optional[str]* | :heavy_minus_sign: | REST-friendly alias for sort.field. Supported values: created_at, last_modified_at, name, title. | +| `sort_direction_query_parameter1` | *Optional[str]* | :heavy_minus_sign: | REST-friendly alias for sort.direction. Supported values: asc, desc. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response diff --git a/docs/sdks/connectors/README.md b/docs/sdks/connectors/README.md index 6c0c1efc7..b0d55909b 100644 --- a/docs/sdks/connectors/README.md +++ b/docs/sdks/connectors/README.md @@ -11,12 +11,8 @@ * [get_auth_url](#get_auth_url) - Get the auth URL for a connector. * [share](#share) - Share a private connector to the current workspace. * [unshare](#unshare) - Unshare a connector from the current workspace. -* [activate_for_organization](#activate_for_organization) - Activate a connector for an organization. -* [deactivate_for_organization](#deactivate_for_organization) - Deactivate a connector for an organization. -* [activate_for_workspace](#activate_for_workspace) - Activate a connector for a workspace. -* [deactivate_for_workspace](#deactivate_for_workspace) - Deactivate a connector for a workspace. -* [activate_for_user](#activate_for_user) - Activate a connector for the current user. -* [deactivate_for_user](#deactivate_for_user) - Deactivate a connector for the current user. +* [activate_for_consumer](#activate_for_consumer) - Activate a connector for the given consumer (organization, workspace, user). +* [deactivate_for_consumer](#deactivate_for_consumer) - Deactivate a connector for the current consumer (at organization, workspace or user level). * [call_tool](#call_tool) - Call Connector Tool * [list_tools](#list_tools) - List tools for a connector. * [get_authentication_methods](#get_authentication_methods) - Get authentication methods for a connector. @@ -159,6 +155,7 @@ with Mistral( | `app_return_url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `method_type` | [Optional[models.OutboundAuthenticationType]](../../models/outboundauthenticationtype.md) | :heavy_minus_sign: | Auth method type to use for the authorization URL. Required when the connector supports multiple interactive auth methods; otherwise the sole method is selected automatically. Use this to pick a specific method (e.g. 'oauth2' vs 'github_app'). | | `credentials_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `credentials_title` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `github_installation_link` | *Optional[bool]* | :heavy_minus_sign: | Only valid with method_type=oauth2. When true, returns a GitHub App installation URL (https://github.com/apps//installations/new) if the connector has the proper configuration The Github application needs to have 'Request user authorization (OAuth) during installation' enabled to perform the proper auth loop. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | @@ -255,13 +252,13 @@ with Mistral( | errors.HTTPValidationError | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | -## activate_for_organization +## activate_for_consumer -Enable a connector at the organization level so all members can use it. +Enable a connector for the consumer. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -271,7 +268,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.connectors.activate_for_organization(connector_id="a91bb4ec-caab-4cf2-be03-84b8343f4643") + res = mistral.beta.connectors.activate_for_consumer(connector_id="1637d954-8ef0-4080-9228-89d4c05c915f", consumer_scope="workspace") # Handle response print(res) @@ -280,14 +277,11 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `connector_id` | *str* | :heavy_check_mark: | N/A | -| `requires_confirmation` | [OptionalNullable[models.RequiresConfirmation]](../../models/requiresconfirmation.md) | :heavy_minus_sign: | N/A | -| `skip_confirmation` | [OptionalNullable[models.SkipConfirmation]](../../models/skipconfirmation.md) | :heavy_minus_sign: | N/A | -| `include` | List[*str*] | :heavy_minus_sign: | N/A | -| `exclude` | List[*str*] | :heavy_minus_sign: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| `connector_id` | *str* | :heavy_check_mark: | N/A | +| `consumer_scope` | [models.ConnectorActivateForConsumerV1ConsumerScope](../../models/connectoractivateforconsumerv1consumerscope.md) | :heavy_check_mark: | N/A | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -300,13 +294,13 @@ with Mistral( | errors.HTTPValidationError | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | -## deactivate_for_organization +## deactivate_for_consumer -Disable a connector at the organization level. +Disable a connector for the calling consumer only. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -316,7 +310,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.connectors.deactivate_for_organization(connector_id="8f4c1089-2a37-44b3-a3c4-830ca7a0e439") + res = mistral.beta.connectors.deactivate_for_consumer(connector_id="1266a170-0379-4b3f-9305-d10fd2a83d29", consumer_scope="workspace") # Handle response print(res) @@ -325,182 +319,11 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `connector_id` | *str* | :heavy_check_mark: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[models.MessageResponse](../../models/messageresponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## activate_for_workspace - -Enable a connector at the workspace level so all members of the workspace can use it. - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.connectors.activate_for_workspace(connector_id="2adfa8af-3618-41a9-8980-e5ea1486e58e") - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `connector_id` | *str* | :heavy_check_mark: | N/A | -| `requires_confirmation` | [OptionalNullable[models.RequiresConfirmation]](../../models/requiresconfirmation.md) | :heavy_minus_sign: | N/A | -| `skip_confirmation` | [OptionalNullable[models.SkipConfirmation]](../../models/skipconfirmation.md) | :heavy_minus_sign: | N/A | -| `include` | List[*str*] | :heavy_minus_sign: | N/A | -| `exclude` | List[*str*] | :heavy_minus_sign: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[models.MessageResponse](../../models/messageresponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## deactivate_for_workspace - -Disable a connector at the workspace level. - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.connectors.deactivate_for_workspace(connector_id="15b00e98-a9e7-4582-b0fc-87d28c3dac04") - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `connector_id` | *str* | :heavy_check_mark: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[models.MessageResponse](../../models/messageresponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## activate_for_user - -Enable a connector for the calling user only. - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.connectors.activate_for_user(connector_id="cd4fb4d2-de68-451f-8f2a-57fe39b33d96") - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `connector_id` | *str* | :heavy_check_mark: | N/A | -| `requires_confirmation` | [OptionalNullable[models.RequiresConfirmation]](../../models/requiresconfirmation.md) | :heavy_minus_sign: | N/A | -| `skip_confirmation` | [OptionalNullable[models.SkipConfirmation]](../../models/skipconfirmation.md) | :heavy_minus_sign: | N/A | -| `include` | List[*str*] | :heavy_minus_sign: | N/A | -| `exclude` | List[*str*] | :heavy_minus_sign: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[models.MessageResponse](../../models/messageresponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## deactivate_for_user - -Disable a connector for the calling user only. - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.connectors.deactivate_for_user(connector_id="99c6ed86-e6bb-40ed-b6ee-d22ba791a68f") - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `connector_id` | *str* | :heavy_check_mark: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `connector_id` | *str* | :heavy_check_mark: | N/A | +| `consumer_scope` | [models.ConnectorDeactivateForConsumerV1ConsumerScope](../../models/connectordeactivateforconsumerv1consumerscope.md) | :heavy_check_mark: | N/A | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response diff --git a/docs/sdks/datasets/README.md b/docs/sdks/datasets/README.md index d609dd653..4fdc17180 100644 --- a/docs/sdks/datasets/README.md +++ b/docs/sdks/datasets/README.md @@ -10,12 +10,12 @@ * [delete](#delete) - Delete a dataset * [update](#update) - Patch dataset * [list_records](#list_records) - List existing records in the dataset -* [create_record](#create_record) - Add a conversation to the dataset -* [import_from_campaign](#import_from_campaign) - Populate the dataset with a campaign -* [import_from_explorer](#import_from_explorer) - Populate the dataset with samples from the explorer -* [import_from_file](#import_from_file) - Populate the dataset with samples from an uploaded file -* [import_from_playground](#import_from_playground) - Populate the dataset with samples from the playground -* [import_from_dataset_records](#import_from_dataset_records) - Populate the dataset with samples from another dataset +* [create_record](#create_record) - Add a record to the dataset +* [import_from_campaign](#import_from_campaign) - Populate the dataset with records from a campaign +* [import_from_explorer](#import_from_explorer) - Populate the dataset with records from the explorer +* [import_from_file](#import_from_file) - Populate the dataset with records from an uploaded file +* [import_from_playground](#import_from_playground) - Populate the dataset with records from playground conversations +* [import_from_dataset_records](#import_from_dataset_records) - Populate the dataset with records from another dataset * [export_to_jsonl](#export_to_jsonl) - Export to the Files API and retrieve presigned URL to download the resulting JSONL file * [fetch_task](#fetch_task) - Get status of a dataset import task * [list_tasks](#list_tasks) - List import tasks for the given dataset @@ -270,7 +270,7 @@ with Mistral( ## create_record -Add a conversation to the dataset +Add a record to the dataset ### Example Usage @@ -323,7 +323,7 @@ with Mistral( ## import_from_campaign -Populate the dataset with a campaign +Populate the dataset with records from a campaign ### Example Usage @@ -365,7 +365,7 @@ with Mistral( ## import_from_explorer -Populate the dataset with samples from the explorer +Populate the dataset with records from the explorer ### Example Usage @@ -411,7 +411,7 @@ with Mistral( ## import_from_file -Populate the dataset with samples from an uploaded file +Populate the dataset with records from an uploaded file ### Example Usage @@ -453,7 +453,7 @@ with Mistral( ## import_from_playground -Populate the dataset with samples from the playground +Populate the dataset with records from playground conversations ### Example Usage @@ -495,7 +495,7 @@ with Mistral( ## import_from_dataset_records -Populate the dataset with samples from another dataset +Populate the dataset with records from another dataset ### Example Usage diff --git a/docs/sdks/deployments/README.md b/docs/sdks/deployments/README.md index de3973fcc..e37a18828 100644 --- a/docs/sdks/deployments/README.md +++ b/docs/sdks/deployments/README.md @@ -12,6 +12,7 @@ * [stop_deployment](#stop_deployment) - Stop Deployment * [start_deployment](#start_deployment) - Start Deployment * [restart_deployment](#restart_deployment) - Restart Deployment +* [list_deployment_workers](#list_deployment_workers) - List Deployment Workers * [get_deployment_logs](#get_deployment_logs) - Get Deployment Logs * [stream_deployment_logs](#stream_deployment_logs) - Stream Deployment Logs @@ -31,7 +32,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.workflows.deployments.list_deployments(active_only=True) + res = mistral.workflows.deployments.list_deployments(active_only=True, order="desc") # Handle response print(res) @@ -40,16 +41,18 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `active_only` | *Optional[bool]* | :heavy_minus_sign: | N/A | -| `is_hardened` | *OptionalNullable[bool]* | :heavy_minus_sign: | Filter deployments by hardened status | -| `workflow_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `search` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter deployments by name or ID prefix | -| `limit` | *OptionalNullable[int]* | :heavy_minus_sign: | Maximum number of deployments to return | -| `cursor` | *OptionalNullable[str]* | :heavy_minus_sign: | Cursor from a previous response for pagination | -| `workspace_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Workspace ID to scope the request to. Defaults to the caller's context. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `active_only` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `is_hardened` | *OptionalNullable[bool]* | :heavy_minus_sign: | Filter deployments by hardened status | +| `workflow_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `search` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter deployments by name or ID prefix | +| `order_by` | [OptionalNullable[models.ListDeploymentsV1WorkflowsDeploymentsGetOrderBy]](../../models/listdeploymentsv1workflowsdeploymentsgetorderby.md) | :heavy_minus_sign: | Field to sort by. When omitted, active and managed deployments are grouped first, then sorted by created_at. When set, results are sorted purely by the specified field with no grouping. | +| `order` | [Optional[models.ListDeploymentsV1WorkflowsDeploymentsGetOrder]](../../models/listdeploymentsv1workflowsdeploymentsgetorder.md) | :heavy_minus_sign: | Sort direction. Applied to order_by when set, or within each activity group when omitted. | +| `limit` | *OptionalNullable[int]* | :heavy_minus_sign: | Maximum number of deployments to return | +| `cursor` | *OptionalNullable[str]* | :heavy_minus_sign: | Cursor from a previous response for pagination | +| `workspace_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Workspace ID to scope the request to. Defaults to the caller's context. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -356,6 +359,50 @@ with Mistral( | errors.HTTPValidationError | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | +## list_deployment_workers + +List Deployment Workers + +### Example Usage + + +```python +from mistralai.client import Mistral +import os + + +with Mistral( + api_key=os.getenv("MISTRAL_API_KEY", ""), +) as mistral: + + res = mistral.workflows.deployments.list_deployment_workers(name="", limit=50) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `name` | *str* | :heavy_check_mark: | N/A | +| `worker_status` | [OptionalNullable[models.WorkerStatus]](../../models/workerstatus.md) | :heavy_minus_sign: | Filter by worker activity. active=only active, inactive=only inactive, None=no filter | +| `limit` | *Optional[int]* | :heavy_minus_sign: | Maximum number of workers to return | +| `cursor` | *OptionalNullable[str]* | :heavy_minus_sign: | Cursor from a previous response's `next_cursor`. Resend `worker_status` unchanged alongside it. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + +### Response + +**[models.DeploymentWorkerListResponse](../../models/deploymentworkerlistresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + ## get_deployment_logs Retrieve logs for a deployment (across all of its workers). diff --git a/docs/sdks/jobs/README.md b/docs/sdks/jobs/README.md index b96550756..6aebf57e3 100644 --- a/docs/sdks/jobs/README.md +++ b/docs/sdks/jobs/README.md @@ -35,18 +35,18 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `page` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `agent_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | -| `created_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | -| `created_by_me` | *Optional[bool]* | :heavy_minus_sign: | N/A | -| `status` | List[[models.BatchJobStatus](../../models/batchjobstatus.md)] | :heavy_minus_sign: | N/A | -| `order_by` | [Optional[models.OrderBy]](../../models/orderby.md) | :heavy_minus_sign: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `page` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `agent_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | +| `created_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `created_by_me` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `status` | List[[models.BatchJobStatus](../../models/batchjobstatus.md)] | :heavy_minus_sign: | N/A | +| `order_by` | [Optional[models.JobsAPIRoutesBatchGetBatchJobsOrderBy]](../../models/jobsapiroutesbatchgetbatchjobsorderby.md) | :heavy_minus_sign: | N/A | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response diff --git a/docs/sdks/ocr/README.md b/docs/sdks/ocr/README.md index 70ce47242..31ab3bfd6 100644 --- a/docs/sdks/ocr/README.md +++ b/docs/sdks/ocr/README.md @@ -55,7 +55,7 @@ with Mistral( | `extract_header` | *Optional[bool]* | :heavy_minus_sign: | Extract the page header into the response's `header` field and remove it from the markdown content | | | `extract_footer` | *Optional[bool]* | :heavy_minus_sign: | Extract the page footer into the response's `footer` field and remove it from the markdown content | | | `include_blocks` | *Optional[bool]* | :heavy_minus_sign: | Return paragraph-level bounding boxes for all content blocks in the response | | -| `confidence_scores_granularity` | [OptionalNullable[models.ConfidenceScoresGranularity]](../../models/confidencescoresgranularity.md) | :heavy_minus_sign: | Granularity for confidence scores: 'page' (aggregate only), 'word' (per-word scores). Defaults to None (no confidence scores) to keep response payload small. | | +| `confidence_scores_granularity` | [OptionalNullable[models.ConfidenceScoresGranularity]](../../models/confidencescoresgranularity.md) | :heavy_minus_sign: | Granularity for confidence scores: 'page' (aggregate only), 'word' (per-word scores), or 'block' (per-block scores). Defaults to None (no confidence scores) to keep response payload small. | | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response diff --git a/docs/sdks/records/README.md b/docs/sdks/records/README.md index a14cf4e96..d6a095e3d 100644 --- a/docs/sdks/records/README.md +++ b/docs/sdks/records/README.md @@ -4,16 +4,16 @@ ### Available Operations -* [fetch](#fetch) - Get the content of a given conversation from a dataset +* [fetch](#fetch) - Get the content of a given dataset record * [delete](#delete) - Delete a record from a dataset * [bulk_delete](#bulk_delete) - Delete multiple records from datasets * [judge](#judge) - Run Judge on a dataset record based on the given options -* [update_payload](#update_payload) - Update a dataset record conversation payload -* [update_properties](#update_properties) - Update conversation properties +* [update_payload](#update_payload) - Update a dataset record payload +* [update_properties](#update_properties) - Update dataset record properties ## fetch -Get the content of a given conversation from a dataset +Get the content of a given dataset record ### Example Usage @@ -188,7 +188,7 @@ with Mistral( ## update_payload -Update a dataset record conversation payload +Update a dataset record payload ### Example Usage @@ -237,7 +237,7 @@ with Mistral( ## update_properties -Update conversation properties +Update dataset record properties ### Example Usage diff --git a/docs/sdks/schedules/README.md b/docs/sdks/schedules/README.md index c13527752..693ddf760 100644 --- a/docs/sdks/schedules/README.md +++ b/docs/sdks/schedules/README.md @@ -42,9 +42,10 @@ with Mistral( | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | -| `workflow_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by workflow name | +| `workflow_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by exact workflow name | | `user_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by user ID. Pass 'current' to resolve to the authenticated user's ID. | | `status` | [OptionalNullable[models.GetSchedulesV1WorkflowsSchedulesGetStatus]](../../models/getschedulesv1workflowsschedulesgetstatus.md) | :heavy_minus_sign: | Filter by schedule status: 'active' or 'paused' | +| `search` | *OptionalNullable[str]* | :heavy_minus_sign: | Prefix search query for workflow name | | `page_size` | *OptionalNullable[int]* | :heavy_minus_sign: | Number of items per page. Omitting this parameter fetches all results at once (deprecated — pass page_size to use pagination). | | `next_page_token` | *OptionalNullable[str]* | :heavy_minus_sign: | Token for the next page of results | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | diff --git a/docs/sdks/searchindexes/README.md b/docs/sdks/searchindexes/README.md index b5961082e..df668282c 100644 --- a/docs/sdks/searchindexes/README.md +++ b/docs/sdks/searchindexes/README.md @@ -4,21 +4,49 @@ ### Available Operations +* [get_indexes](#get_indexes) - Get Index Summaries * [register](#register) - Register (or re-register) a search index -* [get_index_summaries](#get_index_summaries) - Get Index Summaries * [unregister](#unregister) - Unregister Search Index * [update_index_metrics](#update_index_metrics) - Update Index Metrics -* [get_index_detail](#get_index_detail) - Get Index Details -* [get_index_summary](#get_index_summary) - Get Index Summary -* [generate_index_summary](#generate_index_summary) - Generate a summary field for an index -* [set_index_summary](#set_index_summary) - Set Index Summary -* [get_schema_summary](#get_schema_summary) - Get Schema Summary -* [generate_schema_summary](#generate_schema_summary) - Generate a summary field for a schema -* [set_schema_summary](#set_schema_summary) - Set Schema Summary -* [get_index_schema_detail](#get_index_schema_detail) - Get Index Schema Detail -* [get_index_schema_file](#get_index_schema_file) - Get Index Schema File -* [document_lookup](#document_lookup) - Document Lookup -* [documents_fetch](#documents_fetch) - Document Fetch + +## get_indexes + +Fetch all indexes available to a user + +### Example Usage + + +```python +from mistralai.client import Mistral +import os + + +with Mistral( + api_key=os.getenv("MISTRAL_API_KEY", ""), +) as mistral: + + res = mistral.beta.rag.search_indexes.get_indexes() + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + +### Response + +**[models.GetSearchIndexSummaryResponse](../../models/getsearchindexsummaryresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 4XX, 5XX | \*/\* | ## register @@ -77,52 +105,13 @@ with Mistral( | errors.HTTPValidationError | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | -## get_index_summaries - -Fetch summary view of all indexes available to a user - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.rag.search_indexes.get_index_summaries() - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[List[models.GetSearchIndexSummaryResponseIndex]](../../models/.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4XX, 5XX | \*/\* | - ## unregister Delete all information about an index ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -132,7 +121,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.rag.search_indexes.unregister(index_id="0e59f390-f2e4-428e-a81c-c9c2f2ced09e") + res = mistral.beta.rag.search_indexes.unregister(index_id="545b10f3-a041-4786-9d25-5a7b7ca281e2") # Handle response print(res) @@ -163,7 +152,7 @@ Update the metrics for a given index ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -173,13 +162,13 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.rag.search_indexes.update_index_metrics(index_id="cb562a81-38ce-49a7-86ec-592676de32a8", request_body={ + res = mistral.beta.rag.search_indexes.update_index_metrics(index_id="8ab7ca9a-64c2-4c00-b9ba-9a6ce4268033", request_body={ "status": "online", - "document_count": 864436, + "document_count": 951726, "schema_metrics": [ { "name": "", - "document_count": 109412, + "document_count": 381376, }, ], }) @@ -205,486 +194,4 @@ with Mistral( | Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## get_index_detail - -Get a detailed view of the stored data for a single index - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.rag.search_indexes.get_index_detail(index_id="f6ffec01-1f00-47ec-bf94-a08bdc049edc") - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[models.GetSearchIndexDetailResponseIndex](../../models/getsearchindexdetailresponseindex.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## get_index_summary - -Retrieve the summary field for an index if it exists - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.rag.search_indexes.get_index_summary(index_id="d83e93f2-1d03-4133-90d2-fae51463c71e", language="pt_br") - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `language` | [models.GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetLanguage](../../models/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguagegetlanguage.md) | :heavy_check_mark: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[models.GetSummaryResponseSummary](../../models/getsummaryresponsesummary.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## generate_index_summary - -Streams a summary for the index in chunks of json. - -The first chunk contains metadata for the summary, the following contain -chunks of 'content' that should be joined together to form a full summary. - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.rag.search_indexes.generate_index_summary(index_id="b0cfd77c-9cc3-46b6-ad70-1024386259b9", language="pl") - - with res as jsonl_stream: - for event in jsonl_stream: - # handle event - print(event, flush=True) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `language` | [models.GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostLanguage](../../models/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepostlanguage.md) | :heavy_check_mark: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[Union[jsonl.JsonLStream[models.GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostSummaryStreamTypes], jsonl.JsonLStreamAsync[models.GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostSummaryStreamTypes]]](../../models/.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## set_index_summary - -Update the summary field for an index - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.rag.search_indexes.set_index_summary(index_id="e199a723-75b3-43fe-98fb-5d576435c591", language="pt_br", content="", status="handwritten", translated=True) - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `language` | [models.SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutLanguage](../../models/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageputlanguage.md) | :heavy_check_mark: | N/A | -| `content` | *str* | :heavy_check_mark: | N/A | -| `status` | [models.UpdateSummaryRequestSummaryStatus](../../models/updatesummaryrequestsummarystatus.md) | :heavy_check_mark: | N/A | -| `translated` | *bool* | :heavy_check_mark: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[Any](../../models/.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## get_schema_summary - -Retrieve the summary field for a schema if it exists - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.rag.search_indexes.get_schema_summary(index_id="077fb72c-10cd-442d-832e-51fd35136195", schema_id="39f80401-7fc3-4ade-8b1c-b2cd613bab20", language="en") - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `schema_id` | *str* | :heavy_check_mark: | N/A | -| `language` | [models.GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetLanguage](../../models/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagegetlanguage.md) | :heavy_check_mark: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[models.GetSummaryResponseSummary](../../models/getsummaryresponsesummary.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## generate_schema_summary - -Streams a summary for the schema in chunks of json. - -The first chunk contains metadata for the summary, the following contain -chunks of 'content' that should be joined together to form a full summary. - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.rag.search_indexes.generate_schema_summary(index_id="582076c8-276e-4a50-b7a6-2f266925a448", schema_id="5c471724-f36e-41cc-a302-af4f92ea7413", language="it") - - with res as jsonl_stream: - for event in jsonl_stream: - # handle event - print(event, flush=True) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `schema_id` | *str* | :heavy_check_mark: | N/A | -| `language` | [models.GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostLanguage](../../models/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepostlanguage.md) | :heavy_check_mark: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[Union[jsonl.JsonLStream[models.GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostSummaryStreamTypes], jsonl.JsonLStreamAsync[models.GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostSummaryStreamTypes]]](../../models/.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## set_schema_summary - -Update the summary field for an index - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.rag.search_indexes.set_schema_summary(index_id="d22ebdfa-6465-4f25-9a27-3e59d85ee544", schema_id="cc29f795-986b-483d-a658-acb000a16f70", language="nl", content="", status="generated_confirmed", translated=True) - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `schema_id` | *str* | :heavy_check_mark: | N/A | -| `language` | [models.SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutLanguage](../../models/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageputlanguage.md) | :heavy_check_mark: | N/A | -| `content` | *str* | :heavy_check_mark: | N/A | -| `status` | [models.UpdateSummaryRequestSummaryStatus](../../models/updatesummaryrequestsummarystatus.md) | :heavy_check_mark: | N/A | -| `translated` | *bool* | :heavy_check_mark: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[Any](../../models/.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## get_index_schema_detail - -Get a detailed view of the stored information for a schema - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.rag.search_indexes.get_index_schema_detail(index_id="af850b81-3290-4f41-83af-f0d2ac1b070d", schema_id="fc2825a7-a8ef-4bec-9729-f7486e8327cb") - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `schema_id` | *str* | :heavy_check_mark: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[models.GetSearchIndexSchemaDetailResponseSchemaModel](../../models/getsearchindexschemadetailresponseschemamodel.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## get_index_schema_file - -Get Index Schema File - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.rag.search_indexes.get_index_schema_file(index_id="252c6de5-4c9b-43b5-8c30-54524a59cb57", schema_id="93166e46-2e3c-4b20-b9a5-8607304372d2") - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `schema_id` | *str* | :heavy_check_mark: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[models.GetSearchIndexSchemaSDFileResponseSDFile](../../models/getsearchindexschemasdfileresponsesdfile.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## document_lookup - -Fetch stored information about a retrievable element stored in an index - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.rag.search_indexes.document_lookup(index_id="77308a24-2d8e-4392-9ab4-38770b2bb993", schema_id="1fe735e7-4ec0-4264-b715-12a944fe2b87", document_id="") - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `schema_id` | *str* | :heavy_check_mark: | N/A | -| `document_id` | *str* | :heavy_check_mark: | the native ID in the underlying index | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[models.VespaGetRetrievableResponseRetrievable](../../models/vespagetretrievableresponseretrievable.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## documents_fetch - -Fetch a few stored retrievable elements from the index/schema - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.rag.search_indexes.documents_fetch(index_id="7c9f7007-1a54-48fd-b6da-93e91f31f6aa", schema_id="7eb7703c-1b80-4ecc-8a8b-288b43e1f30e") - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `index_id` | *str* | :heavy_check_mark: | N/A | -| `schema_id` | *str* | :heavy_check_mark: | N/A | -| `group_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Only retrieve from this group | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[List[models.VespaGetRetrievableResponseRetrievable]](../../models/.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/skills/README.md b/docs/sdks/skills/README.md index f45d8bb1a..93899c725 100644 --- a/docs/sdks/skills/README.md +++ b/docs/sdks/skills/README.md @@ -41,13 +41,17 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `page_token` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `alias` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `fields` | List[*str*] | :heavy_minus_sign: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `page_token` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `alias` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `fields` | List[*str*] | :heavy_minus_sign: | N/A | +| `sort_field` | [Optional[models.ListSortField]](../../models/listsortfield.md) | :heavy_minus_sign: | Defaults to created_at when omitted. | +| `sort_direction_query_parameter` | [Optional[models.ListSortDirection]](../../models/listsortdirection.md) | :heavy_minus_sign: | Defaults to descending for timestamp fields and ascending for text fields. | +| `sort_by` | *Optional[str]* | :heavy_minus_sign: | REST-friendly alias for sort.field. Supported values: created_at, last_modified_at, name, title. | +| `sort_direction_query_parameter1` | *Optional[str]* | :heavy_minus_sign: | REST-friendly alias for sort.direction. Supported values: asc, desc. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response diff --git a/docs/sdks/spans/README.md b/docs/sdks/spans/README.md index f833e02fb..5865ef28b 100644 --- a/docs/sdks/spans/README.md +++ b/docs/sdks/spans/README.md @@ -5,6 +5,7 @@ ### Available Operations * [search_spans](#search_spans) - Search spans +* [aggregate](#aggregate) - Aggregate spans * [search_span_evaluations](#search_span_evaluations) - Search span evaluations * [search_latest_span_evaluations](#search_latest_span_evaluations) - Search latest span evaluations * [list_span_fields](#list_span_fields) - Get span field definitions @@ -57,6 +58,57 @@ with Mistral( | errors.ObservabilityError | 400, 404, 408, 409, 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | +## aggregate + +Aggregate spans + +### Example Usage + + +```python +from mistralai.client import Mistral +import os + + +with Mistral( + api_key=os.getenv("MISTRAL_API_KEY", ""), +) as mistral: + + res = mistral.beta.observability.spans.aggregate(metric={ + "measure": "", + "aggregation": "p99", + }, limit=1000) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `metric` | [models.MetricDefinition](../../models/metricdefinition.md) | :heavy_check_mark: | N/A | +| `from_` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `to` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `dimensions` | List[*str*] | :heavy_minus_sign: | N/A | +| `time_dimension` | [OptionalNullable[models.TimeDimension]](../../models/timedimension.md) | :heavy_minus_sign: | N/A | +| `search_expression` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `order_by` | List[[models.OrderByClause](../../models/orderbyclause.md)] | :heavy_minus_sign: | N/A | +| `limit` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + +### Response + +**[models.Aggregation](../../models/aggregation.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| errors.ObservabilityError | 400, 404, 408, 409, 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + ## search_span_evaluations Search span evaluations diff --git a/docs/sdks/traces/README.md b/docs/sdks/traces/README.md index 727fc32a4..5db6394cc 100644 --- a/docs/sdks/traces/README.md +++ b/docs/sdks/traces/README.md @@ -5,6 +5,7 @@ ### Available Operations * [search](#search) - Search traces +* [aggregate](#aggregate) - Aggregate traces * [get_trace_fields](#get_trace_fields) - Get trace field definitions * [get_trace_by_id](#get_trace_by_id) - Get trace by id * [get_trace_spans](#get_trace_spans) - Get trace spans @@ -56,6 +57,57 @@ with Mistral( | errors.ObservabilityError | 400, 404, 408, 409, 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | +## aggregate + +Aggregate traces + +### Example Usage + + +```python +from mistralai.client import Mistral +import os + + +with Mistral( + api_key=os.getenv("MISTRAL_API_KEY", ""), +) as mistral: + + res = mistral.beta.observability.traces.aggregate(metric={ + "measure": "", + "aggregation": "p95", + }, limit=1000) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `metric` | [models.MetricDefinition](../../models/metricdefinition.md) | :heavy_check_mark: | N/A | +| `from_` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `to` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `dimensions` | List[*str*] | :heavy_minus_sign: | N/A | +| `time_dimension` | [OptionalNullable[models.TimeDimension]](../../models/timedimension.md) | :heavy_minus_sign: | N/A | +| `search_expression` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `order_by` | List[[models.OrderByClause](../../models/orderbyclause.md)] | :heavy_minus_sign: | N/A | +| `limit` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + +### Response + +**[models.Aggregation](../../models/aggregation.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| errors.ObservabilityError | 400, 404, 408, 409, 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + ## get_trace_fields Get trace field definitions diff --git a/docs/sdks/workflows/README.md b/docs/sdks/workflows/README.md index e42985f4b..fe7ede066 100644 --- a/docs/sdks/workflows/README.md +++ b/docs/sdks/workflows/README.md @@ -136,7 +136,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.workflows.execute_workflow(workflow_identifier="", wait_for_result=False) + res = mistral.workflows.execute_workflow(workflow_identifier="", wait_for_result=False, force_new_trace=False) # Handle response print(res) @@ -153,6 +153,7 @@ with Mistral( | `wait_for_result` | *Optional[bool]* | :heavy_minus_sign: | If true, wait for the workflow to complete and return the result directly. | | `timeout_seconds` | *OptionalNullable[float]* | :heavy_minus_sign: | Maximum time to wait for completion when wait_for_result is true. | | `custom_tracing_attributes` | Dict[str, *str*] | :heavy_minus_sign: | N/A | +| `force_new_trace` | *Optional[bool]* | :heavy_minus_sign: | If true, ignore the caller's trace context and start a new, independent trace for this execution instead of joining the caller's trace. | | `extensions` | Dict[str, *Any*] | :heavy_minus_sign: | Plugin-specific data to propagate into WorkflowContext.extensions at execution time. | | `task_queue` | *OptionalNullable[str]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated. Use deployment_name instead. | | `deployment_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the deployment to route this execution to | @@ -187,7 +188,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.workflows.execute_workflow_registration(workflow_registration_id="de11d76a-e0fb-44dd-abd9-2e75fc275b94", wait_for_result=False) + res = mistral.workflows.execute_workflow_registration(workflow_registration_id="de11d76a-e0fb-44dd-abd9-2e75fc275b94", wait_for_result=False, force_new_trace=False) # Handle response print(res) @@ -204,6 +205,7 @@ with Mistral( | `wait_for_result` | *Optional[bool]* | :heavy_minus_sign: | If true, wait for the workflow to complete and return the result directly. | | `timeout_seconds` | *OptionalNullable[float]* | :heavy_minus_sign: | Maximum time to wait for completion when wait_for_result is true. | | `custom_tracing_attributes` | Dict[str, *str*] | :heavy_minus_sign: | N/A | +| `force_new_trace` | *Optional[bool]* | :heavy_minus_sign: | If true, ignore the caller's trace context and start a new, independent trace for this execution instead of joining the caller's trace. | | `extensions` | Dict[str, *Any*] | :heavy_minus_sign: | Plugin-specific data to propagate into WorkflowContext.extensions at execution time. | | `task_queue` | *OptionalNullable[str]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated. Use deployment_name instead. | | `deployment_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the deployment to route this execution to | diff --git a/src/mistralai/client/_version.py b/src/mistralai/client/_version.py index 71442ec46..9aefbab95 100644 --- a/src/mistralai/client/_version.py +++ b/src/mistralai/client/_version.py @@ -4,10 +4,10 @@ import importlib.metadata __title__: str = "mistralai" -__version__: str = "2.8.0" +__version__: str = "2.9.0" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.884.13" -__user_agent__: str = "speakeasy-sdk/python 2.8.0 2.884.13 1.0.0 mistralai" +__user_agent__: str = "speakeasy-sdk/python 2.9.0 2.884.13 1.0.0 mistralai" try: if __package__ is not None: diff --git a/src/mistralai/client/beta_prompts.py b/src/mistralai/client/beta_prompts.py index 5189b7e0a..442edd997 100644 --- a/src/mistralai/client/beta_prompts.py +++ b/src/mistralai/client/beta_prompts.py @@ -19,6 +19,10 @@ def list( page_token: Optional[str] = None, alias: Optional[str] = None, fields: Optional[List[str]] = None, + sort_field: Optional[models.ListSortField] = None, + sort_direction_query_parameter: Optional[models.ListSortDirection] = None, + sort_by: Optional[str] = None, + sort_direction_query_parameter1: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -30,6 +34,10 @@ def list( :param page_token: :param alias: :param fields: + :param sort_field: Defaults to created_at when omitted. + :param sort_direction_query_parameter: Defaults to descending for timestamp fields and ascending for text fields. + :param sort_by: REST-friendly alias for sort.field. Supported values: created_at, last_modified_at, name, title. + :param sort_direction_query_parameter1: REST-friendly alias for sort.direction. Supported values: asc, desc. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -53,6 +61,10 @@ def list( page_token=page_token, alias=alias, fields=fields, + sort_field=sort_field, + sort_direction_query_parameter=sort_direction_query_parameter, + sort_by=sort_by, + sort_direction_query_parameter1=sort_direction_query_parameter1, ) req = self._build_request( @@ -118,6 +130,10 @@ def next_func() -> Optional[models.PromptsListResponse]: page_token=next_cursor, alias=alias, fields=fields, + sort_field=sort_field, + sort_direction_query_parameter=sort_direction_query_parameter, + sort_by=sort_by, + sort_direction_query_parameter1=sort_direction_query_parameter1, retries=retries, server_url=server_url, timeout_ms=timeout_ms, @@ -145,6 +161,10 @@ async def list_async( page_token: Optional[str] = None, alias: Optional[str] = None, fields: Optional[List[str]] = None, + sort_field: Optional[models.ListSortField] = None, + sort_direction_query_parameter: Optional[models.ListSortDirection] = None, + sort_by: Optional[str] = None, + sort_direction_query_parameter1: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -156,6 +176,10 @@ async def list_async( :param page_token: :param alias: :param fields: + :param sort_field: Defaults to created_at when omitted. + :param sort_direction_query_parameter: Defaults to descending for timestamp fields and ascending for text fields. + :param sort_by: REST-friendly alias for sort.field. Supported values: created_at, last_modified_at, name, title. + :param sort_direction_query_parameter1: REST-friendly alias for sort.direction. Supported values: asc, desc. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -179,6 +203,10 @@ async def list_async( page_token=page_token, alias=alias, fields=fields, + sort_field=sort_field, + sort_direction_query_parameter=sort_direction_query_parameter, + sort_by=sort_by, + sort_direction_query_parameter1=sort_direction_query_parameter1, ) req = self._build_request_async( @@ -247,6 +275,10 @@ async def empty_result(): page_token=next_cursor, alias=alias, fields=fields, + sort_field=sort_field, + sort_direction_query_parameter=sort_direction_query_parameter, + sort_by=sort_by, + sort_direction_query_parameter1=sort_direction_query_parameter1, retries=retries, server_url=server_url, timeout_ms=timeout_ms, diff --git a/src/mistralai/client/connectors.py b/src/mistralai/client/connectors.py index 53bac05cc..e14f04699 100644 --- a/src/mistralai/client/connectors.py +++ b/src/mistralai/client/connectors.py @@ -506,6 +506,7 @@ def get_auth_url( app_return_url: OptionalNullable[str] = UNSET, method_type: Optional[models.OutboundAuthenticationType] = None, credentials_name: OptionalNullable[str] = UNSET, + credentials_title: OptionalNullable[str] = UNSET, github_installation_link: Optional[bool] = False, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -520,6 +521,7 @@ def get_auth_url( :param app_return_url: :param method_type: Auth method type to use for the authorization URL. Required when the connector supports multiple interactive auth methods; otherwise the sole method is selected automatically. Use this to pick a specific method (e.g. 'oauth2' vs 'github_app'). :param credentials_name: + :param credentials_title: :param github_installation_link: Only valid with method_type=oauth2. When true, returns a GitHub App installation URL (https://github.com/apps//installations/new) if the connector has the proper configuration The Github application needs to have 'Request user authorization (OAuth) during installation' enabled to perform the proper auth loop. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -544,6 +546,7 @@ def get_auth_url( app_return_url=app_return_url, method_type=method_type, credentials_name=credentials_name, + credentials_title=credentials_title, github_installation_link=github_installation_link, ) @@ -611,6 +614,7 @@ async def get_auth_url_async( app_return_url: OptionalNullable[str] = UNSET, method_type: Optional[models.OutboundAuthenticationType] = None, credentials_name: OptionalNullable[str] = UNSET, + credentials_title: OptionalNullable[str] = UNSET, github_installation_link: Optional[bool] = False, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -625,6 +629,7 @@ async def get_auth_url_async( :param app_return_url: :param method_type: Auth method type to use for the authorization URL. Required when the connector supports multiple interactive auth methods; otherwise the sole method is selected automatically. Use this to pick a specific method (e.g. 'oauth2' vs 'github_app'). :param credentials_name: + :param credentials_title: :param github_installation_link: Only valid with method_type=oauth2. When true, returns a GitHub App installation URL (https://github.com/apps//installations/new) if the connector has the proper configuration The Github application needs to have 'Request user authorization (OAuth) during installation' enabled to perform the proper auth loop. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -649,6 +654,7 @@ async def get_auth_url_async( app_return_url=app_return_url, method_type=method_type, credentials_name=credentials_name, + credentials_title=credentials_title, github_installation_link=github_installation_link, ) @@ -1081,892 +1087,22 @@ async def unshare_async( raise errors.SDKError("Unexpected response received", http_res) - def activate_for_organization( + def activate_for_consumer( self, *, connector_id: str, - requires_confirmation: OptionalNullable[ - Union[models.RequiresConfirmation, models.RequiresConfirmationTypedDict] - ] = UNSET, - skip_confirmation: OptionalNullable[ - Union[models.SkipConfirmation, models.SkipConfirmationTypedDict] - ] = UNSET, - include: OptionalNullable[List[str]] = UNSET, - exclude: OptionalNullable[List[str]] = UNSET, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.MessageResponse: - r"""Activate a connector for an organization. - - Enable a connector at the organization level so all members can use it. - - :param connector_id: - :param requires_confirmation: - :param skip_confirmation: - :param include: - :param exclude: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.ConnectorActivateForOrganizationV1Request( - connector_id=connector_id, - tool_execution_configuration=models.ToolExecutionConfiguration( - requires_confirmation=utils.get_pydantic_model( - requires_confirmation, OptionalNullable[models.RequiresConfirmation] - ), - skip_confirmation=utils.get_pydantic_model( - skip_confirmation, OptionalNullable[models.SkipConfirmation] - ), - include=include, - exclude=exclude, - ), - ) - - req = self._build_request( - method="POST", - path="/v1/connectors/{connector_id}/organization/activate", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.tool_execution_configuration if request is not None else None, - True, - True, - "json", - OptionalNullable[models.ToolExecutionConfiguration], - ), - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="connector_activate_for_organization_v1", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.MessageResponse, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - async def activate_for_organization_async( - self, - *, - connector_id: str, - requires_confirmation: OptionalNullable[ - Union[models.RequiresConfirmation, models.RequiresConfirmationTypedDict] - ] = UNSET, - skip_confirmation: OptionalNullable[ - Union[models.SkipConfirmation, models.SkipConfirmationTypedDict] - ] = UNSET, - include: OptionalNullable[List[str]] = UNSET, - exclude: OptionalNullable[List[str]] = UNSET, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.MessageResponse: - r"""Activate a connector for an organization. - - Enable a connector at the organization level so all members can use it. - - :param connector_id: - :param requires_confirmation: - :param skip_confirmation: - :param include: - :param exclude: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.ConnectorActivateForOrganizationV1Request( - connector_id=connector_id, - tool_execution_configuration=models.ToolExecutionConfiguration( - requires_confirmation=utils.get_pydantic_model( - requires_confirmation, OptionalNullable[models.RequiresConfirmation] - ), - skip_confirmation=utils.get_pydantic_model( - skip_confirmation, OptionalNullable[models.SkipConfirmation] - ), - include=include, - exclude=exclude, - ), - ) - - req = self._build_request_async( - method="POST", - path="/v1/connectors/{connector_id}/organization/activate", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.tool_execution_configuration if request is not None else None, - True, - True, - "json", - OptionalNullable[models.ToolExecutionConfiguration], - ), - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="connector_activate_for_organization_v1", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.MessageResponse, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - def deactivate_for_organization( - self, - *, - connector_id: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.MessageResponse: - r"""Deactivate a connector for an organization. - - Disable a connector at the organization level. - - :param connector_id: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.ConnectorDeactivateForOrganizationV1Request( - connector_id=connector_id, - ) - - req = self._build_request( - method="POST", - path="/v1/connectors/{connector_id}/organization/deactivate", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="connector_deactivate_for_organization_v1", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.MessageResponse, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - async def deactivate_for_organization_async( - self, - *, - connector_id: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.MessageResponse: - r"""Deactivate a connector for an organization. - - Disable a connector at the organization level. - - :param connector_id: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.ConnectorDeactivateForOrganizationV1Request( - connector_id=connector_id, - ) - - req = self._build_request_async( - method="POST", - path="/v1/connectors/{connector_id}/organization/deactivate", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="connector_deactivate_for_organization_v1", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.MessageResponse, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - def activate_for_workspace( - self, - *, - connector_id: str, - requires_confirmation: OptionalNullable[ - Union[models.RequiresConfirmation, models.RequiresConfirmationTypedDict] - ] = UNSET, - skip_confirmation: OptionalNullable[ - Union[models.SkipConfirmation, models.SkipConfirmationTypedDict] - ] = UNSET, - include: OptionalNullable[List[str]] = UNSET, - exclude: OptionalNullable[List[str]] = UNSET, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.MessageResponse: - r"""Activate a connector for a workspace. - - Enable a connector at the workspace level so all members of the workspace can use it. - - :param connector_id: - :param requires_confirmation: - :param skip_confirmation: - :param include: - :param exclude: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.ConnectorActivateForWorkspaceV1Request( - connector_id=connector_id, - tool_execution_configuration=models.ToolExecutionConfiguration( - requires_confirmation=utils.get_pydantic_model( - requires_confirmation, OptionalNullable[models.RequiresConfirmation] - ), - skip_confirmation=utils.get_pydantic_model( - skip_confirmation, OptionalNullable[models.SkipConfirmation] - ), - include=include, - exclude=exclude, - ), - ) - - req = self._build_request( - method="POST", - path="/v1/connectors/{connector_id}/workspace/activate", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.tool_execution_configuration if request is not None else None, - True, - True, - "json", - OptionalNullable[models.ToolExecutionConfiguration], - ), - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="connector_activate_for_workspace_v1", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.MessageResponse, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - async def activate_for_workspace_async( - self, - *, - connector_id: str, - requires_confirmation: OptionalNullable[ - Union[models.RequiresConfirmation, models.RequiresConfirmationTypedDict] - ] = UNSET, - skip_confirmation: OptionalNullable[ - Union[models.SkipConfirmation, models.SkipConfirmationTypedDict] - ] = UNSET, - include: OptionalNullable[List[str]] = UNSET, - exclude: OptionalNullable[List[str]] = UNSET, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.MessageResponse: - r"""Activate a connector for a workspace. - - Enable a connector at the workspace level so all members of the workspace can use it. - - :param connector_id: - :param requires_confirmation: - :param skip_confirmation: - :param include: - :param exclude: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.ConnectorActivateForWorkspaceV1Request( - connector_id=connector_id, - tool_execution_configuration=models.ToolExecutionConfiguration( - requires_confirmation=utils.get_pydantic_model( - requires_confirmation, OptionalNullable[models.RequiresConfirmation] - ), - skip_confirmation=utils.get_pydantic_model( - skip_confirmation, OptionalNullable[models.SkipConfirmation] - ), - include=include, - exclude=exclude, - ), - ) - - req = self._build_request_async( - method="POST", - path="/v1/connectors/{connector_id}/workspace/activate", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.tool_execution_configuration if request is not None else None, - True, - True, - "json", - OptionalNullable[models.ToolExecutionConfiguration], - ), - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="connector_activate_for_workspace_v1", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.MessageResponse, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - def deactivate_for_workspace( - self, - *, - connector_id: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.MessageResponse: - r"""Deactivate a connector for a workspace. - - Disable a connector at the workspace level. - - :param connector_id: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.ConnectorDeactivateForWorkspaceV1Request( - connector_id=connector_id, - ) - - req = self._build_request( - method="POST", - path="/v1/connectors/{connector_id}/workspace/deactivate", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="connector_deactivate_for_workspace_v1", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.MessageResponse, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - async def deactivate_for_workspace_async( - self, - *, - connector_id: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.MessageResponse: - r"""Deactivate a connector for a workspace. - - Disable a connector at the workspace level. - - :param connector_id: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.ConnectorDeactivateForWorkspaceV1Request( - connector_id=connector_id, - ) - - req = self._build_request_async( - method="POST", - path="/v1/connectors/{connector_id}/workspace/deactivate", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="connector_deactivate_for_workspace_v1", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.MessageResponse, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - def activate_for_user( - self, - *, - connector_id: str, - requires_confirmation: OptionalNullable[ - Union[models.RequiresConfirmation, models.RequiresConfirmationTypedDict] - ] = UNSET, - skip_confirmation: OptionalNullable[ - Union[models.SkipConfirmation, models.SkipConfirmationTypedDict] - ] = UNSET, - include: OptionalNullable[List[str]] = UNSET, - exclude: OptionalNullable[List[str]] = UNSET, + consumer_scope: models.ConnectorActivateForConsumerV1ConsumerScope, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.MessageResponse: - r"""Activate a connector for the current user. + r"""Activate a connector for the given consumer (organization, workspace, user). - Enable a connector for the calling user only. + Enable a connector for the consumer. :param connector_id: - :param requires_confirmation: - :param skip_confirmation: - :param include: - :param exclude: + :param consumer_scope: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -1985,23 +1121,14 @@ def activate_for_user( else: base_url = self._get_url(base_url, url_variables) - request = models.ConnectorActivateForUserV1Request( + request = models.ConnectorActivateForConsumerV1Request( connector_id=connector_id, - tool_execution_configuration=models.ToolExecutionConfiguration( - requires_confirmation=utils.get_pydantic_model( - requires_confirmation, OptionalNullable[models.RequiresConfirmation] - ), - skip_confirmation=utils.get_pydantic_model( - skip_confirmation, OptionalNullable[models.SkipConfirmation] - ), - include=include, - exclude=exclude, - ), + consumer_scope=consumer_scope, ) req = self._build_request( method="POST", - path="/v1/connectors/{connector_id}/user/activate", + path="/v1/connectors/{connector_id}/{consumer_scope}/activate", base_url=base_url, url_variables=url_variables, request=request, @@ -2012,13 +1139,6 @@ def activate_for_user( accept_header_value="application/json", http_headers=http_headers, security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.tool_execution_configuration if request is not None else None, - True, - True, - "json", - OptionalNullable[models.ToolExecutionConfiguration], - ), allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -2035,7 +1155,7 @@ def activate_for_user( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="connector_activate_for_user_v1", + operation_id="connector_activate_for_consumer_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -2063,32 +1183,22 @@ def activate_for_user( raise errors.SDKError("Unexpected response received", http_res) - async def activate_for_user_async( + async def activate_for_consumer_async( self, *, connector_id: str, - requires_confirmation: OptionalNullable[ - Union[models.RequiresConfirmation, models.RequiresConfirmationTypedDict] - ] = UNSET, - skip_confirmation: OptionalNullable[ - Union[models.SkipConfirmation, models.SkipConfirmationTypedDict] - ] = UNSET, - include: OptionalNullable[List[str]] = UNSET, - exclude: OptionalNullable[List[str]] = UNSET, + consumer_scope: models.ConnectorActivateForConsumerV1ConsumerScope, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.MessageResponse: - r"""Activate a connector for the current user. + r"""Activate a connector for the given consumer (organization, workspace, user). - Enable a connector for the calling user only. + Enable a connector for the consumer. :param connector_id: - :param requires_confirmation: - :param skip_confirmation: - :param include: - :param exclude: + :param consumer_scope: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -2107,23 +1217,14 @@ async def activate_for_user_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ConnectorActivateForUserV1Request( + request = models.ConnectorActivateForConsumerV1Request( connector_id=connector_id, - tool_execution_configuration=models.ToolExecutionConfiguration( - requires_confirmation=utils.get_pydantic_model( - requires_confirmation, OptionalNullable[models.RequiresConfirmation] - ), - skip_confirmation=utils.get_pydantic_model( - skip_confirmation, OptionalNullable[models.SkipConfirmation] - ), - include=include, - exclude=exclude, - ), + consumer_scope=consumer_scope, ) req = self._build_request_async( method="POST", - path="/v1/connectors/{connector_id}/user/activate", + path="/v1/connectors/{connector_id}/{consumer_scope}/activate", base_url=base_url, url_variables=url_variables, request=request, @@ -2134,13 +1235,6 @@ async def activate_for_user_async( accept_header_value="application/json", http_headers=http_headers, security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.tool_execution_configuration if request is not None else None, - True, - True, - "json", - OptionalNullable[models.ToolExecutionConfiguration], - ), allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -2157,7 +1251,7 @@ async def activate_for_user_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="connector_activate_for_user_v1", + operation_id="connector_activate_for_consumer_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -2185,20 +1279,22 @@ async def activate_for_user_async( raise errors.SDKError("Unexpected response received", http_res) - def deactivate_for_user( + def deactivate_for_consumer( self, *, connector_id: str, + consumer_scope: models.ConnectorDeactivateForConsumerV1ConsumerScope, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.MessageResponse: - r"""Deactivate a connector for the current user. + r"""Deactivate a connector for the current consumer (at organization, workspace or user level). - Disable a connector for the calling user only. + Disable a connector for the calling consumer only. :param connector_id: + :param consumer_scope: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -2217,13 +1313,14 @@ def deactivate_for_user( else: base_url = self._get_url(base_url, url_variables) - request = models.ConnectorDeactivateForUserV1Request( + request = models.ConnectorDeactivateForConsumerV1Request( connector_id=connector_id, + consumer_scope=consumer_scope, ) req = self._build_request( method="POST", - path="/v1/connectors/{connector_id}/user/deactivate", + path="/v1/connectors/{connector_id}/{consumer_scope}/deactivate", base_url=base_url, url_variables=url_variables, request=request, @@ -2250,7 +1347,7 @@ def deactivate_for_user( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="connector_deactivate_for_user_v1", + operation_id="connector_deactivate_for_consumer_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -2278,20 +1375,22 @@ def deactivate_for_user( raise errors.SDKError("Unexpected response received", http_res) - async def deactivate_for_user_async( + async def deactivate_for_consumer_async( self, *, connector_id: str, + consumer_scope: models.ConnectorDeactivateForConsumerV1ConsumerScope, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.MessageResponse: - r"""Deactivate a connector for the current user. + r"""Deactivate a connector for the current consumer (at organization, workspace or user level). - Disable a connector for the calling user only. + Disable a connector for the calling consumer only. :param connector_id: + :param consumer_scope: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -2310,13 +1409,14 @@ async def deactivate_for_user_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ConnectorDeactivateForUserV1Request( + request = models.ConnectorDeactivateForConsumerV1Request( connector_id=connector_id, + consumer_scope=consumer_scope, ) req = self._build_request_async( method="POST", - path="/v1/connectors/{connector_id}/user/deactivate", + path="/v1/connectors/{connector_id}/{consumer_scope}/deactivate", base_url=base_url, url_variables=url_variables, request=request, @@ -2343,7 +1443,7 @@ async def deactivate_for_user_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="connector_deactivate_for_user_v1", + operation_id="connector_deactivate_for_consumer_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security diff --git a/src/mistralai/client/datasets.py b/src/mistralai/client/datasets.py index 0c9718747..8736de9f7 100644 --- a/src/mistralai/client/datasets.py +++ b/src/mistralai/client/datasets.py @@ -1222,7 +1222,7 @@ def create_record( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.DatasetRecord: - r"""Add a conversation to the dataset + r"""Add a record to the dataset :param dataset_id: :param payload: Caller-authored input object stored on a dataset record. @@ -1330,7 +1330,7 @@ async def create_record_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.DatasetRecord: - r"""Add a conversation to the dataset + r"""Add a record to the dataset :param dataset_id: :param payload: Caller-authored input object stored on a dataset record. @@ -1437,7 +1437,7 @@ def import_from_campaign( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.DatasetImportTask: - r"""Populate the dataset with a campaign + r"""Populate the dataset with records from a campaign :param dataset_id: :param campaign_id: @@ -1542,7 +1542,7 @@ async def import_from_campaign_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.DatasetImportTask: - r"""Populate the dataset with a campaign + r"""Populate the dataset with records from a campaign :param dataset_id: :param campaign_id: @@ -1647,7 +1647,7 @@ def import_from_explorer( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.DatasetImportTask: - r"""Populate the dataset with samples from the explorer + r"""Populate the dataset with records from the explorer :param dataset_id: :param completion_event_ids: @@ -1752,7 +1752,7 @@ async def import_from_explorer_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.DatasetImportTask: - r"""Populate the dataset with samples from the explorer + r"""Populate the dataset with records from the explorer :param dataset_id: :param completion_event_ids: @@ -1857,7 +1857,7 @@ def import_from_file( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.DatasetImportTask: - r"""Populate the dataset with samples from an uploaded file + r"""Populate the dataset with records from an uploaded file :param dataset_id: :param file_id: @@ -1962,7 +1962,7 @@ async def import_from_file_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.DatasetImportTask: - r"""Populate the dataset with samples from an uploaded file + r"""Populate the dataset with records from an uploaded file :param dataset_id: :param file_id: @@ -2067,7 +2067,7 @@ def import_from_playground( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.DatasetImportTask: - r"""Populate the dataset with samples from the playground + r"""Populate the dataset with records from playground conversations :param dataset_id: :param conversation_ids: @@ -2172,7 +2172,7 @@ async def import_from_playground_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.DatasetImportTask: - r"""Populate the dataset with samples from the playground + r"""Populate the dataset with records from playground conversations :param dataset_id: :param conversation_ids: @@ -2277,7 +2277,7 @@ def import_from_dataset_records( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.DatasetImportTask: - r"""Populate the dataset with samples from another dataset + r"""Populate the dataset with records from another dataset :param dataset_id: :param dataset_record_ids: @@ -2382,7 +2382,7 @@ async def import_from_dataset_records_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.DatasetImportTask: - r"""Populate the dataset with samples from another dataset + r"""Populate the dataset with records from another dataset :param dataset_id: :param dataset_record_ids: diff --git a/src/mistralai/client/deployments.py b/src/mistralai/client/deployments.py index 0014e0419..91c4fb6f5 100644 --- a/src/mistralai/client/deployments.py +++ b/src/mistralai/client/deployments.py @@ -19,6 +19,10 @@ def list_deployments( is_hardened: OptionalNullable[bool] = UNSET, workflow_name: OptionalNullable[str] = UNSET, search: OptionalNullable[str] = UNSET, + order_by: OptionalNullable[ + models.ListDeploymentsV1WorkflowsDeploymentsGetOrderBy + ] = UNSET, + order: Optional[models.ListDeploymentsV1WorkflowsDeploymentsGetOrder] = "desc", limit: OptionalNullable[int] = UNSET, cursor: OptionalNullable[str] = UNSET, workspace_id: OptionalNullable[str] = UNSET, @@ -33,6 +37,8 @@ def list_deployments( :param is_hardened: Filter deployments by hardened status :param workflow_name: :param search: Filter deployments by name or ID prefix + :param order_by: Field to sort by. When omitted, active and managed deployments are grouped first, then sorted by created_at. When set, results are sorted purely by the specified field with no grouping. + :param order: Sort direction. Applied to order_by when set, or within each activity group when omitted. :param limit: Maximum number of deployments to return :param cursor: Cursor from a previous response for pagination :param workspace_id: Workspace ID to scope the request to. Defaults to the caller's context. @@ -59,6 +65,8 @@ def list_deployments( is_hardened=is_hardened, workflow_name=workflow_name, search=search, + order_by=order_by, + order=order, limit=limit, cursor=cursor, workspace_id=workspace_id, @@ -128,6 +136,10 @@ async def list_deployments_async( is_hardened: OptionalNullable[bool] = UNSET, workflow_name: OptionalNullable[str] = UNSET, search: OptionalNullable[str] = UNSET, + order_by: OptionalNullable[ + models.ListDeploymentsV1WorkflowsDeploymentsGetOrderBy + ] = UNSET, + order: Optional[models.ListDeploymentsV1WorkflowsDeploymentsGetOrder] = "desc", limit: OptionalNullable[int] = UNSET, cursor: OptionalNullable[str] = UNSET, workspace_id: OptionalNullable[str] = UNSET, @@ -142,6 +154,8 @@ async def list_deployments_async( :param is_hardened: Filter deployments by hardened status :param workflow_name: :param search: Filter deployments by name or ID prefix + :param order_by: Field to sort by. When omitted, active and managed deployments are grouped first, then sorted by created_at. When set, results are sorted purely by the specified field with no grouping. + :param order: Sort direction. Applied to order_by when set, or within each activity group when omitted. :param limit: Maximum number of deployments to return :param cursor: Cursor from a previous response for pagination :param workspace_id: Workspace ID to scope the request to. Defaults to the caller's context. @@ -168,6 +182,8 @@ async def list_deployments_async( is_hardened=is_hardened, workflow_name=workflow_name, search=search, + order_by=order_by, + order=order, limit=limit, cursor=cursor, workspace_id=workspace_id, @@ -1604,6 +1620,214 @@ async def restart_deployment_async( raise errors.SDKError("Unexpected response received", http_res) + def list_deployment_workers( + self, + *, + name: str, + worker_status: OptionalNullable[models.WorkerStatus] = UNSET, + limit: Optional[int] = 50, + cursor: OptionalNullable[str] = UNSET, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.DeploymentWorkerListResponse: + r"""List Deployment Workers + + :param name: + :param worker_status: Filter by worker activity. active=only active, inactive=only inactive, None=no filter + :param limit: Maximum number of workers to return + :param cursor: Cursor from a previous response's `next_cursor`. Resend `worker_status` unchanged alongside it. + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if timeout_ms is None: + timeout_ms = 300000 + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = ( + models.ListDeploymentWorkersV1WorkflowsDeploymentsNameWorkersGetRequest( + name=name, + worker_status=worker_status, + limit=limit, + cursor=cursor, + ) + ) + + req = self._build_request( + method="GET", + path="/v1/workflows/deployments/{name}/workers", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=False, + request_has_path_params=True, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = self.do_request( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="list_deployment_workers_v1_workflows_deployments__name__workers_get", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + response_data: Any = None + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response( + models.DeploymentWorkerListResponse, http_res + ) + if utils.match_response(http_res, "422", "application/json"): + response_data = unmarshal_json_response( + errors.HTTPValidationErrorData, http_res + ) + raise errors.HTTPValidationError(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) + + async def list_deployment_workers_async( + self, + *, + name: str, + worker_status: OptionalNullable[models.WorkerStatus] = UNSET, + limit: Optional[int] = 50, + cursor: OptionalNullable[str] = UNSET, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.DeploymentWorkerListResponse: + r"""List Deployment Workers + + :param name: + :param worker_status: Filter by worker activity. active=only active, inactive=only inactive, None=no filter + :param limit: Maximum number of workers to return + :param cursor: Cursor from a previous response's `next_cursor`. Resend `worker_status` unchanged alongside it. + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if timeout_ms is None: + timeout_ms = 300000 + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = ( + models.ListDeploymentWorkersV1WorkflowsDeploymentsNameWorkersGetRequest( + name=name, + worker_status=worker_status, + limit=limit, + cursor=cursor, + ) + ) + + req = self._build_request_async( + method="GET", + path="/v1/workflows/deployments/{name}/workers", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=False, + request_has_path_params=True, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = await self.do_request_async( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="list_deployment_workers_v1_workflows_deployments__name__workers_get", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + response_data: Any = None + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response( + models.DeploymentWorkerListResponse, http_res + ) + if utils.match_response(http_res, "422", "application/json"): + response_data = unmarshal_json_response( + errors.HTTPValidationErrorData, http_res + ) + raise errors.HTTPValidationError(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) + def get_deployment_logs( self, *, diff --git a/src/mistralai/client/jobs.py b/src/mistralai/client/jobs.py index a31f8f3ff..bb041085d 100644 --- a/src/mistralai/client/jobs.py +++ b/src/mistralai/client/jobs.py @@ -23,7 +23,7 @@ def list( created_after: OptionalNullable[datetime] = UNSET, created_by_me: Optional[bool] = False, status: OptionalNullable[List[models.BatchJobStatus]] = UNSET, - order_by: Optional[models.OrderBy] = "-created", + order_by: Optional[models.JobsAPIRoutesBatchGetBatchJobsOrderBy] = "-created", retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -134,7 +134,7 @@ async def list_async( created_after: OptionalNullable[datetime] = UNSET, created_by_me: Optional[bool] = False, status: OptionalNullable[List[models.BatchJobStatus]] = UNSET, - order_by: Optional[models.OrderBy] = "-created", + order_by: Optional[models.JobsAPIRoutesBatchGetBatchJobsOrderBy] = "-created", retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, diff --git a/src/mistralai/client/models/__init__.py b/src/mistralai/client/models/__init__.py index fcca02ee5..941bf1179 100644 --- a/src/mistralai/client/models/__init__.py +++ b/src/mistralai/client/models/__init__.py @@ -189,6 +189,23 @@ AgentsCompletionStreamRequestToolTypedDict, AgentsCompletionStreamRequestTypedDict, ) + from .aggregate_spans_v1_observability_spans_aggregate_postop import ( + AggregateSpansV1ObservabilitySpansAggregatePostRequest, + AggregateSpansV1ObservabilitySpansAggregatePostRequestTypedDict, + ) + from .aggregate_traces_v1_observability_traces_aggregate_postop import ( + AggregateTracesV1ObservabilityTracesAggregatePostRequest, + AggregateTracesV1ObservabilityTracesAggregatePostRequestTypedDict, + ) + from .aggregation import Aggregation, AggregationTypedDict + from .aggregationmeta import AggregationMeta, AggregationMetaTypedDict + from .aggregationrequest import AggregationRequest, AggregationRequestTypedDict + from .aggregationrow import ( + AggregationRow, + AggregationRowTypedDict, + MetricValue, + MetricValueTypedDict, + ) from .aliaslist import AliasList, AliasListTypedDict from .annotations import Annotations, AnnotationsTypedDict, Audience from .apiendpoint import APIEndpoint @@ -379,17 +396,10 @@ ConnectionPreferenceTypedDict, ) from .connector import Connector, ConnectorTypedDict - from .connector_activate_for_organization_v1op import ( - ConnectorActivateForOrganizationV1Request, - ConnectorActivateForOrganizationV1RequestTypedDict, - ) - from .connector_activate_for_user_v1op import ( - ConnectorActivateForUserV1Request, - ConnectorActivateForUserV1RequestTypedDict, - ) - from .connector_activate_for_workspace_v1op import ( - ConnectorActivateForWorkspaceV1Request, - ConnectorActivateForWorkspaceV1RequestTypedDict, + from .connector_activate_for_consumer_v1op import ( + ConnectorActivateForConsumerV1ConsumerScope, + ConnectorActivateForConsumerV1Request, + ConnectorActivateForConsumerV1RequestTypedDict, ) from .connector_call_tool_v1op import ( ConnectorCallToolV1Request, @@ -407,17 +417,10 @@ ConnectorCreateOrUpdateWorkspaceCredentialsV1Request, ConnectorCreateOrUpdateWorkspaceCredentialsV1RequestTypedDict, ) - from .connector_deactivate_for_organization_v1op import ( - ConnectorDeactivateForOrganizationV1Request, - ConnectorDeactivateForOrganizationV1RequestTypedDict, - ) - from .connector_deactivate_for_user_v1op import ( - ConnectorDeactivateForUserV1Request, - ConnectorDeactivateForUserV1RequestTypedDict, - ) - from .connector_deactivate_for_workspace_v1op import ( - ConnectorDeactivateForWorkspaceV1Request, - ConnectorDeactivateForWorkspaceV1RequestTypedDict, + from .connector_deactivate_for_consumer_v1op import ( + ConnectorDeactivateForConsumerV1ConsumerScope, + ConnectorDeactivateForConsumerV1Request, + ConnectorDeactivateForConsumerV1RequestTypedDict, ) from .connector_delete_all_user_credentials_v1op import ( ConnectorDeleteAllUserCredentialsV1Request, @@ -798,6 +801,10 @@ DeploymentResourceConfigUpdateTypedDict, ) from .deploymentresponse import DeploymentResponse, DeploymentResponseTypedDict + from .deploymentworkerlistresponse import ( + DeploymentWorkerListResponse, + DeploymentWorkerListResponseTypedDict, + ) from .deploymentworkerresponse import ( DeploymentWorkerResponse, DeploymentWorkerResponseTypedDict, @@ -811,14 +818,6 @@ DeploymentWorkerSpecResponseTypedDict, ) from .document import Document, DocumentTypedDict - from .document_fetch_v1_rag_indexes_index_index_id_schemas_schema_schema_id_retrievables_getop import ( - DocumentFetchV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesGetRequest, - DocumentFetchV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesGetRequestTypedDict, - ) - from .document_lookup_v1_rag_indexes_index_index_id_schemas_schema_schema_id_retrievables_retrievable_document_id_getop import ( - DocumentLookupV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesRetrievableDocumentIDGetRequest, - DocumentLookupV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesRetrievableDocumentIDGetRequestTypedDict, - ) from .documentlibrarytool import DocumentLibraryTool, DocumentLibraryToolTypedDict from .documenttextcontent import DocumentTextContent, DocumentTextContentTypedDict from .documenturlchunk import DocumentURLChunk, DocumentURLChunkTypedDict @@ -1004,20 +1003,6 @@ from .functionname import FunctionName, FunctionNameTypedDict from .functionresultentry import FunctionResultEntry, FunctionResultEntryTypedDict from .functiontool import FunctionTool, FunctionToolTypedDict - from .generate_index_summary_v1_rag_indexes_index_index_id_summary_field_language_postop import ( - GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostLanguage, - GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostRequest, - GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostRequestTypedDict, - GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostSummaryStreamTypes, - GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostSummaryStreamTypesTypedDict, - ) - from .generate_schema_summary_post_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_postop import ( - GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostLanguage, - GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostRequest, - GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostRequestTypedDict, - GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostSummaryStreamTypes, - GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostSummaryStreamTypesTypedDict, - ) from .get_campaign_by_id_v1_observability_campaigns_campaign_id_getop import ( GetCampaignByIDV1ObservabilityCampaignsCampaignIDGetRequest, GetCampaignByIDV1ObservabilityCampaignsCampaignIDGetRequestTypedDict, @@ -1084,23 +1069,6 @@ GetDeploymentV1WorkflowsDeploymentsNameGetRequest, GetDeploymentV1WorkflowsDeploymentsNameGetRequestTypedDict, ) - from .get_index_details_v1_rag_indexes_index_index_id_detail_getop import ( - GetIndexDetailsV1RagIndexesIndexIndexIDDetailGetRequest, - GetIndexDetailsV1RagIndexesIndexIndexIDDetailGetRequestTypedDict, - ) - from .get_index_schema_detail_v1_rag_indexes_index_index_id_schemas_schema_schema_id_detail_getop import ( - GetIndexSchemaDetailV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDDetailGetRequest, - GetIndexSchemaDetailV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDDetailGetRequestTypedDict, - ) - from .get_index_schema_file_v1_rag_indexes_index_index_id_schemas_schema_schema_id_file_getop import ( - GetIndexSchemaFileV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDFileGetRequest, - GetIndexSchemaFileV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDFileGetRequestTypedDict, - ) - from .get_index_summary_v1_rag_indexes_index_index_id_summary_field_language_getop import ( - GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetLanguage, - GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetRequest, - GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetRequestTypedDict, - ) from .get_judge_by_id_v1_observability_judges_judge_id_getop import ( GetJudgeByIDV1ObservabilityJudgesJudgeIDGetRequest, GetJudgeByIDV1ObservabilityJudgesJudgeIDGetRequestTypedDict, @@ -1132,11 +1100,6 @@ GetSchedulesV1WorkflowsSchedulesGetResponseTypedDict, GetSchedulesV1WorkflowsSchedulesGetStatus, ) - from .get_schema_summary_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_getop import ( - GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetLanguage, - GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetRequest, - GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetRequestTypedDict, - ) from .get_similar_chat_completion_events_v1_observability_chat_completion_events_event_id_similar_events_getop import ( GetSimilarChatCompletionEventsV1ObservabilityChatCompletionEventsEventIDSimilarEventsGetRequest, GetSimilarChatCompletionEventsV1ObservabilityChatCompletionEventsEventIDSimilarEventsGetRequestTypedDict, @@ -1246,26 +1209,9 @@ from .getlogfieldoptions import GetLogFieldOptions, GetLogFieldOptionsTypedDict from .getlogfields import GetLogFields, GetLogFieldsTypedDict from .getlogs import GetLogs, GetLogsTypedDict - from .getsearchindexdetailresponseindex import ( - GetSearchIndexDetailResponseIndex, - GetSearchIndexDetailResponseIndexStatus, - GetSearchIndexDetailResponseIndexTypedDict, - ) - from .getsearchindexdetailresponseschemamodel import ( - GetSearchIndexDetailResponseSchemaModel, - GetSearchIndexDetailResponseSchemaModelTypedDict, - ) - from .getsearchindexschemadetailresponsefield import ( - GetSearchIndexSchemaDetailResponseField, - GetSearchIndexSchemaDetailResponseFieldTypedDict, - ) - from .getsearchindexschemadetailresponseschemamodel import ( - GetSearchIndexSchemaDetailResponseSchemaModel, - GetSearchIndexSchemaDetailResponseSchemaModelTypedDict, - ) - from .getsearchindexschemasdfileresponsesdfile import ( - GetSearchIndexSchemaSDFileResponseSDFile, - GetSearchIndexSchemaSDFileResponseSDFileTypedDict, + from .getsearchindexsummaryresponse import ( + GetSearchIndexSummaryResponse, + GetSearchIndexSummaryResponseTypedDict, ) from .getsearchindexsummaryresponseindex import ( GetSearchIndexSummaryResponseIndex, @@ -1301,10 +1247,6 @@ from .getspanfieldoptions import GetSpanFieldOptions, GetSpanFieldOptionsTypedDict from .getspanfields import GetSpanFields, GetSpanFieldsTypedDict from .getspans import GetSpans, GetSpansTypedDict - from .getsummaryresponsesummary import ( - GetSummaryResponseSummary, - GetSummaryResponseSummaryTypedDict, - ) from .gettrace import GetTrace, GetTraceStatusCode, GetTraceTypedDict from .gettracefieldoptions import ( GetTraceFieldOptions, @@ -1312,6 +1254,7 @@ ) from .gettracefields import GetTraceFields, GetTraceFieldsTypedDict from .gettraces import GetTraces, GetTracesTypedDict + from .granularity import Granularity from .guardrailconfig import GuardrailConfig, GuardrailConfigTypedDict from .httpstatus import HTTPStatus from .imagecontent import ImageContent, ImageContentTypedDict @@ -1369,9 +1312,9 @@ JobsAPIRoutesBatchGetBatchJobRequestTypedDict, ) from .jobs_api_routes_batch_get_batch_jobsop import ( + JobsAPIRoutesBatchGetBatchJobsOrderBy, JobsAPIRoutesBatchGetBatchJobsRequest, JobsAPIRoutesBatchGetBatchJobsRequestTypedDict, - OrderBy, ) from .jobs_api_routes_fine_tuning_archive_fine_tuned_modelop import ( JobsAPIRoutesFineTuningArchiveFineTunedModelRequest, @@ -1532,7 +1475,14 @@ LibrariesUpdateV1RequestTypedDict, ) from .library import Library, LibraryTypedDict + from .list_deployment_workers_v1_workflows_deployments_name_workers_getop import ( + ListDeploymentWorkersV1WorkflowsDeploymentsNameWorkersGetRequest, + ListDeploymentWorkersV1WorkflowsDeploymentsNameWorkersGetRequestTypedDict, + WorkerStatus, + ) from .list_deployments_v1_workflows_deployments_getop import ( + ListDeploymentsV1WorkflowsDeploymentsGetOrder, + ListDeploymentsV1WorkflowsDeploymentsGetOrderBy, ListDeploymentsV1WorkflowsDeploymentsGetRequest, ListDeploymentsV1WorkflowsDeploymentsGetRequestTypedDict, ) @@ -1604,6 +1554,8 @@ ListSkillVersionsResponse, ListSkillVersionsResponseTypedDict, ) + from .listsortdirection import ListSortDirection + from .listsortfield import ListSortField from .listworkfloweventresponse import ( ListWorkflowEventResponse, ListWorkflowEventResponseEvent, @@ -1678,6 +1630,8 @@ ) from .messageresponse import MessageResponse, MessageResponseTypedDict from .messagetokens import MessageTokens, MessageTokensTypedDict + from .metricaggregation import MetricAggregation + from .metricdefinition import MetricDefinition, MetricDefinitionTypedDict from .mistralpromptmode import MistralPromptMode from .modelcapabilities import ModelCapabilities, ModelCapabilitiesTypedDict from .modelconversation import ( @@ -1722,6 +1676,10 @@ ObservabilityErrorDetailTypedDict, ) from .ocrasidetextblock import OCRAsideTextBlock, OCRAsideTextBlockTypedDict + from .ocrblockconfidencescores import ( + OCRBlockConfidenceScores, + OCRBlockConfidenceScoresTypedDict, + ) from .ocrcaptionblock import OCRCaptionBlock, OCRCaptionBlockTypedDict from .ocrcodeblock import OCRCodeBlock, OCRCodeBlockTypedDict from .ocrconfidencescore import OCRConfidenceScore, OCRConfidenceScoreTypedDict @@ -1761,6 +1719,7 @@ from .ocrtextblock import OCRTextBlock, OCRTextBlockTypedDict from .ocrtitleblock import OCRTitleBlock, OCRTitleBlockTypedDict from .ocrusageinfo import OCRUsageInfo, OCRUsageInfoTypedDict + from .orderbyclause import Direction, OrderByClause, OrderByClauseTypedDict from .otelfielddefinition import ( OtelFieldDefinition, OtelFieldDefinitionSupportedOperator, @@ -2089,16 +2048,6 @@ ServerTasksRequestsCapability, ServerTasksRequestsCapabilityTypedDict, ) - from .set_index_summary_v1_rag_indexes_index_index_id_summary_field_language_putop import ( - SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutLanguage, - SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutRequest, - SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutRequestTypedDict, - ) - from .set_schema_summary_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_putop import ( - SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutLanguage, - SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutRequest, - SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutRequestTypedDict, - ) from .shareenum import ShareEnum from .sharing import Sharing, SharingTypedDict from .sharingdelete import SharingDelete, SharingDeleteTypedDict @@ -2236,11 +2185,6 @@ StreamEventWorkflowContext, StreamEventWorkflowContextTypedDict, ) - from .summarychunk import SummaryChunk, SummaryChunkTypedDict - from .summaryerror import SummaryError, SummaryErrorTypedDict - from .summarymetadata import SummaryMetadata, SummaryMetadataTypedDict - from .summarystatus import SummaryStatus - from .summarystatus_dollar_defs import SummaryStatusDollarDefs from .systemmessage import ( SystemMessage, SystemMessageContent, @@ -2315,6 +2259,7 @@ TextResourceContentsTypedDict, ) from .thinkchunk import ThinkChunk, ThinkChunkTypedDict, Thinking, ThinkingTypedDict + from .timedimension import TimeDimension, TimeDimensionTypedDict from .timeseriesmetric import ( TimeSeriesMetric, TimeSeriesMetricTypedDict, @@ -2438,9 +2383,9 @@ UnarchiveModelResponse, UnarchiveModelResponseTypedDict, ) - from .unregister_search_index_v1_rag_indexes_index_index_id_deleteop import ( - UnregisterSearchIndexV1RagIndexesIndexIndexIDDeleteRequest, - UnregisterSearchIndexV1RagIndexesIndexIndexIDDeleteRequestTypedDict, + from .unregister_search_index_v1_rag_indexes_index_id_deleteop import ( + UnregisterSearchIndexV1RagIndexesIndexIDDeleteRequest, + UnregisterSearchIndexV1RagIndexesIndexIDDeleteRequestTypedDict, ) from .unschedule_workflow_v1_workflows_schedules_schedule_id_deleteop import ( UnscheduleWorkflowV1WorkflowsSchedulesScheduleIDDeleteRequest, @@ -2462,11 +2407,11 @@ UpdateDeploymentV1WorkflowsDeploymentsNamePatchRequest, UpdateDeploymentV1WorkflowsDeploymentsNamePatchRequestTypedDict, ) - from .update_index_metrics_v1_rag_indexes_index_index_id_metrics_putop import ( + from .update_index_metrics_v1_rag_indexes_index_id_metrics_putop import ( MetricsData, MetricsDataTypedDict, - UpdateIndexMetricsV1RagIndexesIndexIndexIDMetricsPutRequest, - UpdateIndexMetricsV1RagIndexesIndexIndexIDMetricsPutRequestTypedDict, + UpdateIndexMetricsV1RagIndexesIndexIDMetricsPutRequest, + UpdateIndexMetricsV1RagIndexesIndexIDMetricsPutRequestTypedDict, ) from .update_judge_v1_observability_judges_judge_id_putop import ( UpdateJudgeV1ObservabilityJudgesJudgeIDPutRequest, @@ -2555,11 +2500,6 @@ ) from .updatemodelrequest import UpdateModelRequest, UpdateModelRequestTypedDict from .updateruninfo import UpdateRunInfo, UpdateRunInfoTypedDict - from .updatesummaryrequestsummary import ( - UpdateSummaryRequestSummary, - UpdateSummaryRequestSummaryStatus, - UpdateSummaryRequestSummaryTypedDict, - ) from .updateworkflowresponse import ( UpdateWorkflowResponse, UpdateWorkflowResponseTypedDict, @@ -2594,10 +2534,6 @@ ValidationError, ValidationErrorTypedDict, ) - from .vespagetretrievableresponseretrievable import ( - VespaGetRetrievableResponseRetrievable, - VespaGetRetrievableResponseRetrievableTypedDict, - ) from .voicecreaterequest import VoiceCreateRequest, VoiceCreateRequestTypedDict from .voicelistresponse import VoiceListResponse, VoiceListResponseTypedDict from .voiceresponse import VoiceResponse, VoiceResponseTypedDict @@ -2922,6 +2858,18 @@ "AgentsCompletionStreamRequestToolChoiceTypedDict", "AgentsCompletionStreamRequestToolTypedDict", "AgentsCompletionStreamRequestTypedDict", + "AggregateSpansV1ObservabilitySpansAggregatePostRequest", + "AggregateSpansV1ObservabilitySpansAggregatePostRequestTypedDict", + "AggregateTracesV1ObservabilityTracesAggregatePostRequest", + "AggregateTracesV1ObservabilityTracesAggregatePostRequestTypedDict", + "Aggregation", + "AggregationMeta", + "AggregationMetaTypedDict", + "AggregationRequest", + "AggregationRequestTypedDict", + "AggregationRow", + "AggregationRowTypedDict", + "AggregationTypedDict", "AliasList", "AliasListTypedDict", "And", @@ -3080,12 +3028,9 @@ "ConnectionPreference", "ConnectionPreferenceTypedDict", "Connector", - "ConnectorActivateForOrganizationV1Request", - "ConnectorActivateForOrganizationV1RequestTypedDict", - "ConnectorActivateForUserV1Request", - "ConnectorActivateForUserV1RequestTypedDict", - "ConnectorActivateForWorkspaceV1Request", - "ConnectorActivateForWorkspaceV1RequestTypedDict", + "ConnectorActivateForConsumerV1ConsumerScope", + "ConnectorActivateForConsumerV1Request", + "ConnectorActivateForConsumerV1RequestTypedDict", "ConnectorAuthenticationHeader", "ConnectorAuthenticationHeaderTypedDict", "ConnectorCallToolRequest", @@ -3098,12 +3043,9 @@ "ConnectorCreateOrUpdateUserCredentialsV1RequestTypedDict", "ConnectorCreateOrUpdateWorkspaceCredentialsV1Request", "ConnectorCreateOrUpdateWorkspaceCredentialsV1RequestTypedDict", - "ConnectorDeactivateForOrganizationV1Request", - "ConnectorDeactivateForOrganizationV1RequestTypedDict", - "ConnectorDeactivateForUserV1Request", - "ConnectorDeactivateForUserV1RequestTypedDict", - "ConnectorDeactivateForWorkspaceV1Request", - "ConnectorDeactivateForWorkspaceV1RequestTypedDict", + "ConnectorDeactivateForConsumerV1ConsumerScope", + "ConnectorDeactivateForConsumerV1Request", + "ConnectorDeactivateForConsumerV1RequestTypedDict", "ConnectorDeleteAllUserCredentialsV1Request", "ConnectorDeleteAllUserCredentialsV1RequestTypedDict", "ConnectorDeleteOrganizationCredentialsV1Request", @@ -3338,19 +3280,18 @@ "DeploymentResponse", "DeploymentResponseTypedDict", "DeploymentStatus", + "DeploymentWorkerListResponse", + "DeploymentWorkerListResponseTypedDict", "DeploymentWorkerResponse", "DeploymentWorkerResponseTypedDict", "DeploymentWorkerSpecInput", "DeploymentWorkerSpecInputTypedDict", "DeploymentWorkerSpecResponse", "DeploymentWorkerSpecResponseTypedDict", + "Direction", "Document", - "DocumentFetchV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesGetRequest", - "DocumentFetchV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesGetRequestTypedDict", "DocumentLibraryTool", "DocumentLibraryToolTypedDict", - "DocumentLookupV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesRetrievableDocumentIDGetRequest", - "DocumentLookupV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesRetrievableDocumentIDGetRequestTypedDict", "DocumentTextContent", "DocumentTextContentTypedDict", "DocumentTypedDict", @@ -3490,16 +3431,6 @@ "FunctionTool", "FunctionToolTypedDict", "FunctionTypedDict", - "GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostLanguage", - "GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostRequest", - "GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostRequestTypedDict", - "GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostSummaryStreamTypes", - "GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostSummaryStreamTypesTypedDict", - "GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostLanguage", - "GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostRequest", - "GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostRequestTypedDict", - "GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostSummaryStreamTypes", - "GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostSummaryStreamTypesTypedDict", "GetCampaignByIDV1ObservabilityCampaignsCampaignIDGetRequest", "GetCampaignByIDV1ObservabilityCampaignsCampaignIDGetRequestTypedDict", "GetCampaignSelectedEventsV1ObservabilityCampaignsCampaignIDSelectedEventsGetRequest", @@ -3535,15 +3466,6 @@ "GetDeploymentV1WorkflowsDeploymentsNameGetRequestTypedDict", "GetFileResponse", "GetFileResponseTypedDict", - "GetIndexDetailsV1RagIndexesIndexIndexIDDetailGetRequest", - "GetIndexDetailsV1RagIndexesIndexIndexIDDetailGetRequestTypedDict", - "GetIndexSchemaDetailV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDDetailGetRequest", - "GetIndexSchemaDetailV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDDetailGetRequestTypedDict", - "GetIndexSchemaFileV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDFileGetRequest", - "GetIndexSchemaFileV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDFileGetRequestTypedDict", - "GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetLanguage", - "GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetRequest", - "GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetRequestTypedDict", "GetJudgeByIDV1ObservabilityJudgesJudgeIDGetRequest", "GetJudgeByIDV1ObservabilityJudgesJudgeIDGetRequestTypedDict", "GetJudgesV1ObservabilityJudgesGetRequest", @@ -3569,25 +3491,13 @@ "GetSchedulesV1WorkflowsSchedulesGetResponse", "GetSchedulesV1WorkflowsSchedulesGetResponseTypedDict", "GetSchedulesV1WorkflowsSchedulesGetStatus", - "GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetLanguage", - "GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetRequest", - "GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetRequestTypedDict", - "GetSearchIndexDetailResponseIndex", - "GetSearchIndexDetailResponseIndexStatus", - "GetSearchIndexDetailResponseIndexTypedDict", - "GetSearchIndexDetailResponseSchemaModel", - "GetSearchIndexDetailResponseSchemaModelTypedDict", - "GetSearchIndexSchemaDetailResponseField", - "GetSearchIndexSchemaDetailResponseFieldTypedDict", - "GetSearchIndexSchemaDetailResponseSchemaModel", - "GetSearchIndexSchemaDetailResponseSchemaModelTypedDict", - "GetSearchIndexSchemaSDFileResponseSDFile", - "GetSearchIndexSchemaSDFileResponseSDFileTypedDict", + "GetSearchIndexSummaryResponse", "GetSearchIndexSummaryResponseIndex", "GetSearchIndexSummaryResponseIndexIndex", "GetSearchIndexSummaryResponseIndexIndexTypedDict", "GetSearchIndexSummaryResponseIndexStatus", "GetSearchIndexSummaryResponseIndexTypedDict", + "GetSearchIndexSummaryResponseTypedDict", "GetSearchIndexSummaryResponseVespaIndex", "GetSearchIndexSummaryResponseVespaIndexTypedDict", "GetSearchIndexSummaryResponseVespaSchemaModel", @@ -3625,8 +3535,6 @@ "GetStreamEventsV1WorkflowsEventsStreamGetRequestTypedDict", "GetStreamEventsV1WorkflowsEventsStreamGetResponseBody", "GetStreamEventsV1WorkflowsEventsStreamGetResponseBodyTypedDict", - "GetSummaryResponseSummary", - "GetSummaryResponseSummaryTypedDict", "GetTrace", "GetTraceByIDV1ObservabilityTracesTraceIDGetRequest", "GetTraceByIDV1ObservabilityTracesTraceIDGetRequestTypedDict", @@ -3678,6 +3586,7 @@ "GetWorkflowsV1WorkflowsGetResponseTypedDict", "GetWorkflowsV1WorkflowsGetStatus", "GetWorkflowsV1WorkflowsGetStatusTypedDict", + "Granularity", "GuardrailConfig", "GuardrailConfigTypedDict", "HTTPStatus", @@ -3738,6 +3647,7 @@ "JobsAPIRoutesBatchDeleteBatchJobRequestTypedDict", "JobsAPIRoutesBatchGetBatchJobRequest", "JobsAPIRoutesBatchGetBatchJobRequestTypedDict", + "JobsAPIRoutesBatchGetBatchJobsOrderBy", "JobsAPIRoutesBatchGetBatchJobsRequest", "JobsAPIRoutesBatchGetBatchJobsRequestTypedDict", "JobsAPIRoutesFineTuningArchiveFineTunedModelRequest", @@ -3827,6 +3737,10 @@ "ListDatasetRecordsResponseTypedDict", "ListDatasetsResponse", "ListDatasetsResponseTypedDict", + "ListDeploymentWorkersV1WorkflowsDeploymentsNameWorkersGetRequest", + "ListDeploymentWorkersV1WorkflowsDeploymentsNameWorkersGetRequestTypedDict", + "ListDeploymentsV1WorkflowsDeploymentsGetOrder", + "ListDeploymentsV1WorkflowsDeploymentsGetOrderBy", "ListDeploymentsV1WorkflowsDeploymentsGetRequest", "ListDeploymentsV1WorkflowsDeploymentsGetRequestTypedDict", "ListDocumentsResponse", @@ -3856,6 +3770,8 @@ "ListSkillVersionsResponseTypedDict", "ListSkillsResponse", "ListSkillsResponseTypedDict", + "ListSortDirection", + "ListSortField", "ListVoicesV1AudioVoicesGetRequest", "ListVoicesV1AudioVoicesGetRequestTypedDict", "ListVoicesV1AudioVoicesGetType", @@ -3922,6 +3838,11 @@ "MessageResponseTypedDict", "MessageTokens", "MessageTokensTypedDict", + "MetricAggregation", + "MetricDefinition", + "MetricDefinitionTypedDict", + "MetricValue", + "MetricValueTypedDict", "MetricsData", "MetricsDataTypedDict", "MistralPromptMode", @@ -3958,6 +3879,8 @@ "OAuth2TokenTypedDict", "OCRAsideTextBlock", "OCRAsideTextBlockTypedDict", + "OCRBlockConfidenceScores", + "OCRBlockConfidenceScoresTypedDict", "OCRCaptionBlock", "OCRCaptionBlockTypedDict", "OCRCodeBlock", @@ -4010,7 +3933,8 @@ "Or", "OrTypedDict", "Order", - "OrderBy", + "OrderByClause", + "OrderByClauseTypedDict", "OtelFieldDefinition", "OtelFieldDefinitionSupportedOperator", "OtelFieldDefinitionType", @@ -4263,12 +4187,6 @@ "ServerTasksCapabilityTypedDict", "ServerTasksRequestsCapability", "ServerTasksRequestsCapabilityTypedDict", - "SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutLanguage", - "SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutRequest", - "SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutRequestTypedDict", - "SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutLanguage", - "SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutRequest", - "SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutRequestTypedDict", "ShareEnum", "Sharing", "SharingDelete", @@ -4372,14 +4290,6 @@ "StreamWorkflowExecutionLogsRequestTypedDict", "StreamWorkflowExecutionLogsResponseBody", "StreamWorkflowExecutionLogsResponseBodyTypedDict", - "SummaryChunk", - "SummaryChunkTypedDict", - "SummaryError", - "SummaryErrorTypedDict", - "SummaryMetadata", - "SummaryMetadataTypedDict", - "SummaryStatus", - "SummaryStatusDollarDefs", "SystemMessage", "SystemMessageContent", "SystemMessageContentChunks", @@ -4437,6 +4347,8 @@ "ThinkChunkTypedDict", "Thinking", "ThinkingTypedDict", + "TimeDimension", + "TimeDimensionTypedDict", "TimeSeriesMetric", "TimeSeriesMetricTypedDict", "TimeSeriesMetricValue1", @@ -4544,8 +4456,8 @@ "UnknownResponseRetrieveModelV1ModelsModelIDGet", "UnknownSpeechV1AudioSpeechPostData", "UnknownTranscriptionStreamEventsData", - "UnregisterSearchIndexV1RagIndexesIndexIndexIDDeleteRequest", - "UnregisterSearchIndexV1RagIndexesIndexIndexIDDeleteRequestTypedDict", + "UnregisterSearchIndexV1RagIndexesIndexIDDeleteRequest", + "UnregisterSearchIndexV1RagIndexesIndexIDDeleteRequestTypedDict", "UnscheduleWorkflowV1WorkflowsSchedulesScheduleIDDeleteRequest", "UnscheduleWorkflowV1WorkflowsSchedulesScheduleIDDeleteRequestTypedDict", "UpdateAgentRequest", @@ -4580,8 +4492,8 @@ "UpdateIndexMetricsRequestIndexMetricsOnlineTypedDict", "UpdateIndexMetricsRequestSchemaMetrics", "UpdateIndexMetricsRequestSchemaMetricsTypedDict", - "UpdateIndexMetricsV1RagIndexesIndexIndexIDMetricsPutRequest", - "UpdateIndexMetricsV1RagIndexesIndexIndexIDMetricsPutRequestTypedDict", + "UpdateIndexMetricsV1RagIndexesIndexIDMetricsPutRequest", + "UpdateIndexMetricsV1RagIndexesIndexIDMetricsPutRequestTypedDict", "UpdateInvocationBody", "UpdateInvocationBodyInput", "UpdateInvocationBodyInputTypedDict", @@ -4610,9 +4522,6 @@ "UpdateSkillRequestTypedDict", "UpdateSkillVersionRequest", "UpdateSkillVersionRequestTypedDict", - "UpdateSummaryRequestSummary", - "UpdateSummaryRequestSummaryStatus", - "UpdateSummaryRequestSummaryTypedDict", "UpdateVoiceV1AudioVoicesVoiceIDPatchRequest", "UpdateVoiceV1AudioVoicesVoiceIDPatchRequestTypedDict", "UpdateWorkflowExecutionV1WorkflowsExecutionsExecutionIDUpdatesPostRequest", @@ -4641,8 +4550,6 @@ "UsersAPIGetIdentitySecurityTypedDict", "ValidationError", "ValidationErrorTypedDict", - "VespaGetRetrievableResponseRetrievable", - "VespaGetRetrievableResponseRetrievableTypedDict", "Visibility", "VoiceCreateRequest", "VoiceCreateRequestTypedDict", @@ -4656,6 +4563,7 @@ "WebSearchPremiumToolTypedDict", "WebSearchTool", "WebSearchToolTypedDict", + "WorkerStatus", "Workflow", "WorkflowArchiveResponse", "WorkflowArchiveResponseTypedDict", @@ -4877,6 +4785,20 @@ "AgentsCompletionStreamRequestToolChoiceTypedDict": ".agentscompletionstreamrequest", "AgentsCompletionStreamRequestToolTypedDict": ".agentscompletionstreamrequest", "AgentsCompletionStreamRequestTypedDict": ".agentscompletionstreamrequest", + "AggregateSpansV1ObservabilitySpansAggregatePostRequest": ".aggregate_spans_v1_observability_spans_aggregate_postop", + "AggregateSpansV1ObservabilitySpansAggregatePostRequestTypedDict": ".aggregate_spans_v1_observability_spans_aggregate_postop", + "AggregateTracesV1ObservabilityTracesAggregatePostRequest": ".aggregate_traces_v1_observability_traces_aggregate_postop", + "AggregateTracesV1ObservabilityTracesAggregatePostRequestTypedDict": ".aggregate_traces_v1_observability_traces_aggregate_postop", + "Aggregation": ".aggregation", + "AggregationTypedDict": ".aggregation", + "AggregationMeta": ".aggregationmeta", + "AggregationMetaTypedDict": ".aggregationmeta", + "AggregationRequest": ".aggregationrequest", + "AggregationRequestTypedDict": ".aggregationrequest", + "AggregationRow": ".aggregationrow", + "AggregationRowTypedDict": ".aggregationrow", + "MetricValue": ".aggregationrow", + "MetricValueTypedDict": ".aggregationrow", "AliasList": ".aliaslist", "AliasListTypedDict": ".aliaslist", "Annotations": ".annotations", @@ -5025,12 +4947,9 @@ "ConnectionPreferenceTypedDict": ".connectionpreference", "Connector": ".connector", "ConnectorTypedDict": ".connector", - "ConnectorActivateForOrganizationV1Request": ".connector_activate_for_organization_v1op", - "ConnectorActivateForOrganizationV1RequestTypedDict": ".connector_activate_for_organization_v1op", - "ConnectorActivateForUserV1Request": ".connector_activate_for_user_v1op", - "ConnectorActivateForUserV1RequestTypedDict": ".connector_activate_for_user_v1op", - "ConnectorActivateForWorkspaceV1Request": ".connector_activate_for_workspace_v1op", - "ConnectorActivateForWorkspaceV1RequestTypedDict": ".connector_activate_for_workspace_v1op", + "ConnectorActivateForConsumerV1ConsumerScope": ".connector_activate_for_consumer_v1op", + "ConnectorActivateForConsumerV1Request": ".connector_activate_for_consumer_v1op", + "ConnectorActivateForConsumerV1RequestTypedDict": ".connector_activate_for_consumer_v1op", "ConnectorCallToolV1Request": ".connector_call_tool_v1op", "ConnectorCallToolV1RequestTypedDict": ".connector_call_tool_v1op", "ConnectorCreateOrUpdateOrganizationCredentialsV1Request": ".connector_create_or_update_organization_credentials_v1op", @@ -5039,12 +4958,9 @@ "ConnectorCreateOrUpdateUserCredentialsV1RequestTypedDict": ".connector_create_or_update_user_credentials_v1op", "ConnectorCreateOrUpdateWorkspaceCredentialsV1Request": ".connector_create_or_update_workspace_credentials_v1op", "ConnectorCreateOrUpdateWorkspaceCredentialsV1RequestTypedDict": ".connector_create_or_update_workspace_credentials_v1op", - "ConnectorDeactivateForOrganizationV1Request": ".connector_deactivate_for_organization_v1op", - "ConnectorDeactivateForOrganizationV1RequestTypedDict": ".connector_deactivate_for_organization_v1op", - "ConnectorDeactivateForUserV1Request": ".connector_deactivate_for_user_v1op", - "ConnectorDeactivateForUserV1RequestTypedDict": ".connector_deactivate_for_user_v1op", - "ConnectorDeactivateForWorkspaceV1Request": ".connector_deactivate_for_workspace_v1op", - "ConnectorDeactivateForWorkspaceV1RequestTypedDict": ".connector_deactivate_for_workspace_v1op", + "ConnectorDeactivateForConsumerV1ConsumerScope": ".connector_deactivate_for_consumer_v1op", + "ConnectorDeactivateForConsumerV1Request": ".connector_deactivate_for_consumer_v1op", + "ConnectorDeactivateForConsumerV1RequestTypedDict": ".connector_deactivate_for_consumer_v1op", "ConnectorDeleteAllUserCredentialsV1Request": ".connector_delete_all_user_credentials_v1op", "ConnectorDeleteAllUserCredentialsV1RequestTypedDict": ".connector_delete_all_user_credentials_v1op", "ConnectorDeleteOrganizationCredentialsV1Request": ".connector_delete_organization_credentials_v1op", @@ -5289,6 +5205,8 @@ "DeploymentResourceConfigUpdateTypedDict": ".deploymentresourceconfigupdate", "DeploymentResponse": ".deploymentresponse", "DeploymentResponseTypedDict": ".deploymentresponse", + "DeploymentWorkerListResponse": ".deploymentworkerlistresponse", + "DeploymentWorkerListResponseTypedDict": ".deploymentworkerlistresponse", "DeploymentWorkerResponse": ".deploymentworkerresponse", "DeploymentWorkerResponseTypedDict": ".deploymentworkerresponse", "DeploymentWorkerSpecInput": ".deploymentworkerspecinput", @@ -5297,10 +5215,6 @@ "DeploymentWorkerSpecResponseTypedDict": ".deploymentworkerspecresponse", "Document": ".document", "DocumentTypedDict": ".document", - "DocumentFetchV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesGetRequest": ".document_fetch_v1_rag_indexes_index_index_id_schemas_schema_schema_id_retrievables_getop", - "DocumentFetchV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesGetRequestTypedDict": ".document_fetch_v1_rag_indexes_index_index_id_schemas_schema_schema_id_retrievables_getop", - "DocumentLookupV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesRetrievableDocumentIDGetRequest": ".document_lookup_v1_rag_indexes_index_index_id_schemas_schema_schema_id_retrievables_retrievable_document_id_getop", - "DocumentLookupV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesRetrievableDocumentIDGetRequestTypedDict": ".document_lookup_v1_rag_indexes_index_index_id_schemas_schema_schema_id_retrievables_retrievable_document_id_getop", "DocumentLibraryTool": ".documentlibrarytool", "DocumentLibraryToolTypedDict": ".documentlibrarytool", "DocumentTextContent": ".documenttextcontent", @@ -5443,16 +5357,6 @@ "FunctionResultEntryTypedDict": ".functionresultentry", "FunctionTool": ".functiontool", "FunctionToolTypedDict": ".functiontool", - "GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostLanguage": ".generate_index_summary_v1_rag_indexes_index_index_id_summary_field_language_postop", - "GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostRequest": ".generate_index_summary_v1_rag_indexes_index_index_id_summary_field_language_postop", - "GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostRequestTypedDict": ".generate_index_summary_v1_rag_indexes_index_index_id_summary_field_language_postop", - "GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostSummaryStreamTypes": ".generate_index_summary_v1_rag_indexes_index_index_id_summary_field_language_postop", - "GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostSummaryStreamTypesTypedDict": ".generate_index_summary_v1_rag_indexes_index_index_id_summary_field_language_postop", - "GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostLanguage": ".generate_schema_summary_post_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_postop", - "GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostRequest": ".generate_schema_summary_post_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_postop", - "GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostRequestTypedDict": ".generate_schema_summary_post_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_postop", - "GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostSummaryStreamTypes": ".generate_schema_summary_post_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_postop", - "GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostSummaryStreamTypesTypedDict": ".generate_schema_summary_post_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_postop", "GetCampaignByIDV1ObservabilityCampaignsCampaignIDGetRequest": ".get_campaign_by_id_v1_observability_campaigns_campaign_id_getop", "GetCampaignByIDV1ObservabilityCampaignsCampaignIDGetRequestTypedDict": ".get_campaign_by_id_v1_observability_campaigns_campaign_id_getop", "GetCampaignSelectedEventsV1ObservabilityCampaignsCampaignIDSelectedEventsGetRequest": ".get_campaign_selected_events_v1_observability_campaigns_campaign_id_selected_events_getop", @@ -5487,15 +5391,6 @@ "GetDeploymentLogsRequestTypedDict": ".get_deployment_logsop", "GetDeploymentV1WorkflowsDeploymentsNameGetRequest": ".get_deployment_v1_workflows_deployments_name_getop", "GetDeploymentV1WorkflowsDeploymentsNameGetRequestTypedDict": ".get_deployment_v1_workflows_deployments_name_getop", - "GetIndexDetailsV1RagIndexesIndexIndexIDDetailGetRequest": ".get_index_details_v1_rag_indexes_index_index_id_detail_getop", - "GetIndexDetailsV1RagIndexesIndexIndexIDDetailGetRequestTypedDict": ".get_index_details_v1_rag_indexes_index_index_id_detail_getop", - "GetIndexSchemaDetailV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDDetailGetRequest": ".get_index_schema_detail_v1_rag_indexes_index_index_id_schemas_schema_schema_id_detail_getop", - "GetIndexSchemaDetailV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDDetailGetRequestTypedDict": ".get_index_schema_detail_v1_rag_indexes_index_index_id_schemas_schema_schema_id_detail_getop", - "GetIndexSchemaFileV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDFileGetRequest": ".get_index_schema_file_v1_rag_indexes_index_index_id_schemas_schema_schema_id_file_getop", - "GetIndexSchemaFileV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDFileGetRequestTypedDict": ".get_index_schema_file_v1_rag_indexes_index_index_id_schemas_schema_schema_id_file_getop", - "GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetLanguage": ".get_index_summary_v1_rag_indexes_index_index_id_summary_field_language_getop", - "GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetRequest": ".get_index_summary_v1_rag_indexes_index_index_id_summary_field_language_getop", - "GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetRequestTypedDict": ".get_index_summary_v1_rag_indexes_index_index_id_summary_field_language_getop", "GetJudgeByIDV1ObservabilityJudgesJudgeIDGetRequest": ".get_judge_by_id_v1_observability_judges_judge_id_getop", "GetJudgeByIDV1ObservabilityJudgesJudgeIDGetRequestTypedDict": ".get_judge_by_id_v1_observability_judges_judge_id_getop", "GetJudgesV1ObservabilityJudgesGetRequest": ".get_judges_v1_observability_judges_getop", @@ -5513,9 +5408,6 @@ "GetSchedulesV1WorkflowsSchedulesGetResponse": ".get_schedules_v1_workflows_schedules_getop", "GetSchedulesV1WorkflowsSchedulesGetResponseTypedDict": ".get_schedules_v1_workflows_schedules_getop", "GetSchedulesV1WorkflowsSchedulesGetStatus": ".get_schedules_v1_workflows_schedules_getop", - "GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetLanguage": ".get_schema_summary_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_getop", - "GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetRequest": ".get_schema_summary_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_getop", - "GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetRequestTypedDict": ".get_schema_summary_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_getop", "GetSimilarChatCompletionEventsV1ObservabilityChatCompletionEventsEventIDSimilarEventsGetRequest": ".get_similar_chat_completion_events_v1_observability_chat_completion_events_event_id_similar_events_getop", "GetSimilarChatCompletionEventsV1ObservabilityChatCompletionEventsEventIDSimilarEventsGetRequestTypedDict": ".get_similar_chat_completion_events_v1_observability_chat_completion_events_event_id_similar_events_getop", "GetSpanByIDV1ObservabilityTracesTraceIDSpansSpanIDGetRequest": ".get_span_by_id_v1_observability_traces_trace_id_spans_span_id_getop", @@ -5584,17 +5476,8 @@ "GetLogFieldsTypedDict": ".getlogfields", "GetLogs": ".getlogs", "GetLogsTypedDict": ".getlogs", - "GetSearchIndexDetailResponseIndex": ".getsearchindexdetailresponseindex", - "GetSearchIndexDetailResponseIndexStatus": ".getsearchindexdetailresponseindex", - "GetSearchIndexDetailResponseIndexTypedDict": ".getsearchindexdetailresponseindex", - "GetSearchIndexDetailResponseSchemaModel": ".getsearchindexdetailresponseschemamodel", - "GetSearchIndexDetailResponseSchemaModelTypedDict": ".getsearchindexdetailresponseschemamodel", - "GetSearchIndexSchemaDetailResponseField": ".getsearchindexschemadetailresponsefield", - "GetSearchIndexSchemaDetailResponseFieldTypedDict": ".getsearchindexschemadetailresponsefield", - "GetSearchIndexSchemaDetailResponseSchemaModel": ".getsearchindexschemadetailresponseschemamodel", - "GetSearchIndexSchemaDetailResponseSchemaModelTypedDict": ".getsearchindexschemadetailresponseschemamodel", - "GetSearchIndexSchemaSDFileResponseSDFile": ".getsearchindexschemasdfileresponsesdfile", - "GetSearchIndexSchemaSDFileResponseSDFileTypedDict": ".getsearchindexschemasdfileresponsesdfile", + "GetSearchIndexSummaryResponse": ".getsearchindexsummaryresponse", + "GetSearchIndexSummaryResponseTypedDict": ".getsearchindexsummaryresponse", "GetSearchIndexSummaryResponseIndex": ".getsearchindexsummaryresponseindex", "GetSearchIndexSummaryResponseIndexIndex": ".getsearchindexsummaryresponseindex", "GetSearchIndexSummaryResponseIndexIndexTypedDict": ".getsearchindexsummaryresponseindex", @@ -5624,8 +5507,6 @@ "GetSpanFieldsTypedDict": ".getspanfields", "GetSpans": ".getspans", "GetSpansTypedDict": ".getspans", - "GetSummaryResponseSummary": ".getsummaryresponsesummary", - "GetSummaryResponseSummaryTypedDict": ".getsummaryresponsesummary", "GetTrace": ".gettrace", "GetTraceStatusCode": ".gettrace", "GetTraceTypedDict": ".gettrace", @@ -5635,6 +5516,7 @@ "GetTraceFieldsTypedDict": ".gettracefields", "GetTraces": ".gettraces", "GetTracesTypedDict": ".gettraces", + "Granularity": ".granularity", "GuardrailConfig": ".guardrailconfig", "GuardrailConfigTypedDict": ".guardrailconfig", "HTTPStatus": ".httpstatus", @@ -5675,9 +5557,9 @@ "JobsAPIRoutesBatchDeleteBatchJobRequestTypedDict": ".jobs_api_routes_batch_delete_batch_jobop", "JobsAPIRoutesBatchGetBatchJobRequest": ".jobs_api_routes_batch_get_batch_jobop", "JobsAPIRoutesBatchGetBatchJobRequestTypedDict": ".jobs_api_routes_batch_get_batch_jobop", + "JobsAPIRoutesBatchGetBatchJobsOrderBy": ".jobs_api_routes_batch_get_batch_jobsop", "JobsAPIRoutesBatchGetBatchJobsRequest": ".jobs_api_routes_batch_get_batch_jobsop", "JobsAPIRoutesBatchGetBatchJobsRequestTypedDict": ".jobs_api_routes_batch_get_batch_jobsop", - "OrderBy": ".jobs_api_routes_batch_get_batch_jobsop", "JobsAPIRoutesFineTuningArchiveFineTunedModelRequest": ".jobs_api_routes_fine_tuning_archive_fine_tuned_modelop", "JobsAPIRoutesFineTuningArchiveFineTunedModelRequestTypedDict": ".jobs_api_routes_fine_tuning_archive_fine_tuned_modelop", "JobsAPIRoutesFineTuningUnarchiveFineTunedModelRequest": ".jobs_api_routes_fine_tuning_unarchive_fine_tuned_modelop", @@ -5778,6 +5660,11 @@ "LibrariesUpdateV1RequestTypedDict": ".libraries_update_v1op", "Library": ".library", "LibraryTypedDict": ".library", + "ListDeploymentWorkersV1WorkflowsDeploymentsNameWorkersGetRequest": ".list_deployment_workers_v1_workflows_deployments_name_workers_getop", + "ListDeploymentWorkersV1WorkflowsDeploymentsNameWorkersGetRequestTypedDict": ".list_deployment_workers_v1_workflows_deployments_name_workers_getop", + "WorkerStatus": ".list_deployment_workers_v1_workflows_deployments_name_workers_getop", + "ListDeploymentsV1WorkflowsDeploymentsGetOrder": ".list_deployments_v1_workflows_deployments_getop", + "ListDeploymentsV1WorkflowsDeploymentsGetOrderBy": ".list_deployments_v1_workflows_deployments_getop", "ListDeploymentsV1WorkflowsDeploymentsGetRequest": ".list_deployments_v1_workflows_deployments_getop", "ListDeploymentsV1WorkflowsDeploymentsGetRequestTypedDict": ".list_deployments_v1_workflows_deployments_getop", "ListModelsV1ModelsGetRequest": ".list_models_v1_models_getop", @@ -5825,6 +5712,8 @@ "ListSkillsResponseTypedDict": ".listskillsresponse", "ListSkillVersionsResponse": ".listskillversionsresponse", "ListSkillVersionsResponseTypedDict": ".listskillversionsresponse", + "ListSortDirection": ".listsortdirection", + "ListSortField": ".listsortfield", "ListWorkflowEventResponse": ".listworkfloweventresponse", "ListWorkflowEventResponseEvent": ".listworkfloweventresponse", "ListWorkflowEventResponseEventTypedDict": ".listworkfloweventresponse", @@ -5892,6 +5781,9 @@ "MessageResponseTypedDict": ".messageresponse", "MessageTokens": ".messagetokens", "MessageTokensTypedDict": ".messagetokens", + "MetricAggregation": ".metricaggregation", + "MetricDefinition": ".metricdefinition", + "MetricDefinitionTypedDict": ".metricdefinition", "MistralPromptMode": ".mistralpromptmode", "ModelCapabilities": ".modelcapabilities", "ModelCapabilitiesTypedDict": ".modelcapabilities", @@ -5929,6 +5821,8 @@ "ObservabilityErrorDetailTypedDict": ".observabilityerrordetail", "OCRAsideTextBlock": ".ocrasidetextblock", "OCRAsideTextBlockTypedDict": ".ocrasidetextblock", + "OCRBlockConfidenceScores": ".ocrblockconfidencescores", + "OCRBlockConfidenceScoresTypedDict": ".ocrblockconfidencescores", "OCRCaptionBlock": ".ocrcaptionblock", "OCRCaptionBlockTypedDict": ".ocrcaptionblock", "OCRCodeBlock": ".ocrcodeblock", @@ -5981,6 +5875,9 @@ "OCRTitleBlockTypedDict": ".ocrtitleblock", "OCRUsageInfo": ".ocrusageinfo", "OCRUsageInfoTypedDict": ".ocrusageinfo", + "Direction": ".orderbyclause", + "OrderByClause": ".orderbyclause", + "OrderByClauseTypedDict": ".orderbyclause", "OtelFieldDefinition": ".otelfielddefinition", "OtelFieldDefinitionSupportedOperator": ".otelfielddefinition", "OtelFieldDefinitionType": ".otelfielddefinition", @@ -6214,12 +6111,6 @@ "ServerTasksCapabilityTypedDict": ".servertaskscapability", "ServerTasksRequestsCapability": ".servertasksrequestscapability", "ServerTasksRequestsCapabilityTypedDict": ".servertasksrequestscapability", - "SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutLanguage": ".set_index_summary_v1_rag_indexes_index_index_id_summary_field_language_putop", - "SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutRequest": ".set_index_summary_v1_rag_indexes_index_index_id_summary_field_language_putop", - "SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutRequestTypedDict": ".set_index_summary_v1_rag_indexes_index_index_id_summary_field_language_putop", - "SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutLanguage": ".set_schema_summary_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_putop", - "SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutRequest": ".set_schema_summary_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_putop", - "SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutRequestTypedDict": ".set_schema_summary_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_putop", "ShareEnum": ".shareenum", "Sharing": ".sharing", "SharingTypedDict": ".sharing", @@ -6330,14 +6221,6 @@ "StreamEventSsePayloadTypedDict": ".streameventssepayload", "StreamEventWorkflowContext": ".streameventworkflowcontext", "StreamEventWorkflowContextTypedDict": ".streameventworkflowcontext", - "SummaryChunk": ".summarychunk", - "SummaryChunkTypedDict": ".summarychunk", - "SummaryError": ".summaryerror", - "SummaryErrorTypedDict": ".summaryerror", - "SummaryMetadata": ".summarymetadata", - "SummaryMetadataTypedDict": ".summarymetadata", - "SummaryStatus": ".summarystatus", - "SummaryStatusDollarDefs": ".summarystatus_dollar_defs", "SystemMessage": ".systemmessage", "SystemMessageContent": ".systemmessage", "SystemMessageContentTypedDict": ".systemmessage", @@ -6393,6 +6276,8 @@ "ThinkChunkTypedDict": ".thinkchunk", "Thinking": ".thinkchunk", "ThinkingTypedDict": ".thinkchunk", + "TimeDimension": ".timedimension", + "TimeDimensionTypedDict": ".timedimension", "TimeSeriesMetric": ".timeseriesmetric", "TimeSeriesMetricTypedDict": ".timeseriesmetric", "TimeSeriesMetricValue1": ".timeseriesmetric", @@ -6489,8 +6374,8 @@ "UnarchiveWorkflowV1WorkflowsWorkflowIdentifierUnarchivePutRequestTypedDict": ".unarchive_workflow_v1_workflows_workflow_identifier_unarchive_putop", "UnarchiveModelResponse": ".unarchivemodelresponse", "UnarchiveModelResponseTypedDict": ".unarchivemodelresponse", - "UnregisterSearchIndexV1RagIndexesIndexIndexIDDeleteRequest": ".unregister_search_index_v1_rag_indexes_index_index_id_deleteop", - "UnregisterSearchIndexV1RagIndexesIndexIndexIDDeleteRequestTypedDict": ".unregister_search_index_v1_rag_indexes_index_index_id_deleteop", + "UnregisterSearchIndexV1RagIndexesIndexIDDeleteRequest": ".unregister_search_index_v1_rag_indexes_index_id_deleteop", + "UnregisterSearchIndexV1RagIndexesIndexIDDeleteRequestTypedDict": ".unregister_search_index_v1_rag_indexes_index_id_deleteop", "UnscheduleWorkflowV1WorkflowsSchedulesScheduleIDDeleteRequest": ".unschedule_workflow_v1_workflows_schedules_schedule_id_deleteop", "UnscheduleWorkflowV1WorkflowsSchedulesScheduleIDDeleteRequestTypedDict": ".unschedule_workflow_v1_workflows_schedules_schedule_id_deleteop", "UpdateDatasetRecordPayloadV1ObservabilityDatasetRecordsDatasetRecordIDPayloadPutRequest": ".update_dataset_record_payload_v1_observability_dataset_records_dataset_record_id_payload_putop", @@ -6501,10 +6386,10 @@ "UpdateDatasetV1ObservabilityDatasetsDatasetIDPatchRequestTypedDict": ".update_dataset_v1_observability_datasets_dataset_id_patchop", "UpdateDeploymentV1WorkflowsDeploymentsNamePatchRequest": ".update_deployment_v1_workflows_deployments_name_patchop", "UpdateDeploymentV1WorkflowsDeploymentsNamePatchRequestTypedDict": ".update_deployment_v1_workflows_deployments_name_patchop", - "MetricsData": ".update_index_metrics_v1_rag_indexes_index_index_id_metrics_putop", - "MetricsDataTypedDict": ".update_index_metrics_v1_rag_indexes_index_index_id_metrics_putop", - "UpdateIndexMetricsV1RagIndexesIndexIndexIDMetricsPutRequest": ".update_index_metrics_v1_rag_indexes_index_index_id_metrics_putop", - "UpdateIndexMetricsV1RagIndexesIndexIndexIDMetricsPutRequestTypedDict": ".update_index_metrics_v1_rag_indexes_index_index_id_metrics_putop", + "MetricsData": ".update_index_metrics_v1_rag_indexes_index_id_metrics_putop", + "MetricsDataTypedDict": ".update_index_metrics_v1_rag_indexes_index_id_metrics_putop", + "UpdateIndexMetricsV1RagIndexesIndexIDMetricsPutRequest": ".update_index_metrics_v1_rag_indexes_index_id_metrics_putop", + "UpdateIndexMetricsV1RagIndexesIndexIDMetricsPutRequestTypedDict": ".update_index_metrics_v1_rag_indexes_index_id_metrics_putop", "UpdateJudgeV1ObservabilityJudgesJudgeIDPutRequest": ".update_judge_v1_observability_judges_judge_id_putop", "UpdateJudgeV1ObservabilityJudgesJudgeIDPutRequestTypedDict": ".update_judge_v1_observability_judges_judge_id_putop", "UpdateRunInfoV1RagIngestionPipelineConfigurationsIDRunInfoPutRequest": ".update_run_info_v1_rag_ingestion_pipeline_configurations_id_run_info_putop", @@ -6557,9 +6442,6 @@ "UpdateModelRequestTypedDict": ".updatemodelrequest", "UpdateRunInfo": ".updateruninfo", "UpdateRunInfoTypedDict": ".updateruninfo", - "UpdateSummaryRequestSummary": ".updatesummaryrequestsummary", - "UpdateSummaryRequestSummaryStatus": ".updatesummaryrequestsummary", - "UpdateSummaryRequestSummaryTypedDict": ".updatesummaryrequestsummary", "UpdateWorkflowResponse": ".updateworkflowresponse", "UpdateWorkflowResponseTypedDict": ".updateworkflowresponse", "UsageInfo": ".usageinfo", @@ -6586,8 +6468,6 @@ "LocTypedDict": ".validationerror", "ValidationError": ".validationerror", "ValidationErrorTypedDict": ".validationerror", - "VespaGetRetrievableResponseRetrievable": ".vespagetretrievableresponseretrievable", - "VespaGetRetrievableResponseRetrievableTypedDict": ".vespagetretrievableresponseretrievable", "VoiceCreateRequest": ".voicecreaterequest", "VoiceCreateRequestTypedDict": ".voicecreaterequest", "VoiceListResponse": ".voicelistresponse", diff --git a/src/mistralai/client/models/connector_activate_for_organization_v1op.py b/src/mistralai/client/models/aggregate_spans_v1_observability_spans_aggregate_postop.py similarity index 53% rename from src/mistralai/client/models/connector_activate_for_organization_v1op.py rename to src/mistralai/client/models/aggregate_spans_v1_observability_spans_aggregate_postop.py index 1b0ec3b0b..721d0b7c4 100644 --- a/src/mistralai/client/models/connector_activate_for_organization_v1op.py +++ b/src/mistralai/client/models/aggregate_spans_v1_observability_spans_aggregate_postop.py @@ -1,11 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 9b35397dd5cc +# @generated-id: 402703d63097 from __future__ import annotations -from .toolexecutionconfiguration import ( - ToolExecutionConfiguration, - ToolExecutionConfigurationTypedDict, -) +from .aggregationrequest import AggregationRequest, AggregationRequestTypedDict +from datetime import datetime from mistralai.client.types import ( BaseModel, Nullable, @@ -13,32 +11,39 @@ UNSET, UNSET_SENTINEL, ) -from mistralai.client.utils import FieldMetadata, PathParamMetadata, RequestMetadata +from mistralai.client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +import pydantic from pydantic import model_serializer from typing_extensions import Annotated, NotRequired, TypedDict -class ConnectorActivateForOrganizationV1RequestTypedDict(TypedDict): - connector_id: str - tool_execution_configuration: NotRequired[ - Nullable[ToolExecutionConfigurationTypedDict] - ] +class AggregateSpansV1ObservabilitySpansAggregatePostRequestTypedDict(TypedDict): + aggregation_request: AggregationRequestTypedDict + from_: NotRequired[Nullable[datetime]] + to: NotRequired[Nullable[datetime]] -class ConnectorActivateForOrganizationV1Request(BaseModel): - connector_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) +class AggregateSpansV1ObservabilitySpansAggregatePostRequest(BaseModel): + aggregation_request: Annotated[ + AggregationRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), ] - tool_execution_configuration: Annotated[ - OptionalNullable[ToolExecutionConfiguration], - FieldMetadata(request=RequestMetadata(media_type="application/json")), + from_: Annotated[ + OptionalNullable[datetime], + pydantic.Field(alias="from"), + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + + to: Annotated[ + OptionalNullable[datetime], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = UNSET @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["ToolExecutionConfiguration"]) - nullable_fields = set(["ToolExecutionConfiguration"]) + optional_fields = set(["from", "to"]) + nullable_fields = set(["from", "to"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/connector_activate_for_user_v1op.py b/src/mistralai/client/models/aggregate_traces_v1_observability_traces_aggregate_postop.py similarity index 53% rename from src/mistralai/client/models/connector_activate_for_user_v1op.py rename to src/mistralai/client/models/aggregate_traces_v1_observability_traces_aggregate_postop.py index e30126d48..147e37f83 100644 --- a/src/mistralai/client/models/connector_activate_for_user_v1op.py +++ b/src/mistralai/client/models/aggregate_traces_v1_observability_traces_aggregate_postop.py @@ -1,11 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 6bf45c78cfea +# @generated-id: 48b3b1b2debd from __future__ import annotations -from .toolexecutionconfiguration import ( - ToolExecutionConfiguration, - ToolExecutionConfigurationTypedDict, -) +from .aggregationrequest import AggregationRequest, AggregationRequestTypedDict +from datetime import datetime from mistralai.client.types import ( BaseModel, Nullable, @@ -13,32 +11,39 @@ UNSET, UNSET_SENTINEL, ) -from mistralai.client.utils import FieldMetadata, PathParamMetadata, RequestMetadata +from mistralai.client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +import pydantic from pydantic import model_serializer from typing_extensions import Annotated, NotRequired, TypedDict -class ConnectorActivateForUserV1RequestTypedDict(TypedDict): - connector_id: str - tool_execution_configuration: NotRequired[ - Nullable[ToolExecutionConfigurationTypedDict] - ] +class AggregateTracesV1ObservabilityTracesAggregatePostRequestTypedDict(TypedDict): + aggregation_request: AggregationRequestTypedDict + from_: NotRequired[Nullable[datetime]] + to: NotRequired[Nullable[datetime]] -class ConnectorActivateForUserV1Request(BaseModel): - connector_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) +class AggregateTracesV1ObservabilityTracesAggregatePostRequest(BaseModel): + aggregation_request: Annotated[ + AggregationRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), ] - tool_execution_configuration: Annotated[ - OptionalNullable[ToolExecutionConfiguration], - FieldMetadata(request=RequestMetadata(media_type="application/json")), + from_: Annotated[ + OptionalNullable[datetime], + pydantic.Field(alias="from"), + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + + to: Annotated[ + OptionalNullable[datetime], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = UNSET @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["ToolExecutionConfiguration"]) - nullable_fields = set(["ToolExecutionConfiguration"]) + optional_fields = set(["from", "to"]) + nullable_fields = set(["from", "to"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/aggregation.py b/src/mistralai/client/models/aggregation.py new file mode 100644 index 000000000..1da7c65a2 --- /dev/null +++ b/src/mistralai/client/models/aggregation.py @@ -0,0 +1,20 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: e0f464c8bc95 + +from __future__ import annotations +from .aggregationmeta import AggregationMeta, AggregationMetaTypedDict +from .aggregationrow import AggregationRow, AggregationRowTypedDict +from mistralai.client.types import BaseModel +from typing import List +from typing_extensions import TypedDict + + +class AggregationTypedDict(TypedDict): + data: List[AggregationRowTypedDict] + meta: AggregationMetaTypedDict + + +class Aggregation(BaseModel): + data: List[AggregationRow] + + meta: AggregationMeta diff --git a/src/mistralai/client/models/connector_activate_for_workspace_v1op.py b/src/mistralai/client/models/aggregationmeta.py similarity index 50% rename from src/mistralai/client/models/connector_activate_for_workspace_v1op.py rename to src/mistralai/client/models/aggregationmeta.py index 00fe6699d..88c7cd3ef 100644 --- a/src/mistralai/client/models/connector_activate_for_workspace_v1op.py +++ b/src/mistralai/client/models/aggregationmeta.py @@ -1,11 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: b6392712ddaf +# @generated-id: 2075ee6b10a3 from __future__ import annotations -from .toolexecutionconfiguration import ( - ToolExecutionConfiguration, - ToolExecutionConfigurationTypedDict, -) +from datetime import datetime from mistralai.client.types import ( BaseModel, Nullable, @@ -13,32 +10,27 @@ UNSET, UNSET_SENTINEL, ) -from mistralai.client.utils import FieldMetadata, PathParamMetadata, RequestMetadata from pydantic import model_serializer -from typing_extensions import Annotated, NotRequired, TypedDict +from typing_extensions import NotRequired, TypedDict + +class AggregationMetaTypedDict(TypedDict): + from_timestamp: datetime + to_timestamp: datetime + granularity_seconds: NotRequired[Nullable[int]] -class ConnectorActivateForWorkspaceV1RequestTypedDict(TypedDict): - connector_id: str - tool_execution_configuration: NotRequired[ - Nullable[ToolExecutionConfigurationTypedDict] - ] +class AggregationMeta(BaseModel): + from_timestamp: datetime -class ConnectorActivateForWorkspaceV1Request(BaseModel): - connector_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] + to_timestamp: datetime - tool_execution_configuration: Annotated[ - OptionalNullable[ToolExecutionConfiguration], - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] = UNSET + granularity_seconds: OptionalNullable[int] = UNSET @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["ToolExecutionConfiguration"]) - nullable_fields = set(["ToolExecutionConfiguration"]) + optional_fields = set(["granularity_seconds"]) + nullable_fields = set(["granularity_seconds"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/aggregationrequest.py b/src/mistralai/client/models/aggregationrequest.py new file mode 100644 index 000000000..6ecc06ccf --- /dev/null +++ b/src/mistralai/client/models/aggregationrequest.py @@ -0,0 +1,67 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: f35f9759a3f6 + +from __future__ import annotations +from .metricdefinition import MetricDefinition, MetricDefinitionTypedDict +from .orderbyclause import OrderByClause, OrderByClauseTypedDict +from .timedimension import TimeDimension, TimeDimensionTypedDict +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from pydantic import model_serializer +from typing import List, Optional +from typing_extensions import NotRequired, TypedDict + + +class AggregationRequestTypedDict(TypedDict): + metric: MetricDefinitionTypedDict + dimensions: NotRequired[List[str]] + time_dimension: NotRequired[Nullable[TimeDimensionTypedDict]] + search_expression: NotRequired[Nullable[str]] + order_by: NotRequired[Nullable[List[OrderByClauseTypedDict]]] + limit: NotRequired[int] + + +class AggregationRequest(BaseModel): + metric: MetricDefinition + + dimensions: Optional[List[str]] = None + + time_dimension: OptionalNullable[TimeDimension] = UNSET + + search_expression: OptionalNullable[str] = UNSET + + order_by: OptionalNullable[List[OrderByClause]] = UNSET + + limit: Optional[int] = 1000 + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + ["dimensions", "time_dimension", "search_expression", "order_by", "limit"] + ) + nullable_fields = set(["time_dimension", "search_expression", "order_by"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m diff --git a/src/mistralai/client/models/aggregationrow.py b/src/mistralai/client/models/aggregationrow.py new file mode 100644 index 000000000..ac61d4b51 --- /dev/null +++ b/src/mistralai/client/models/aggregationrow.py @@ -0,0 +1,63 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 376cd8ead269 + +from __future__ import annotations +from datetime import datetime +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from pydantic import model_serializer +from typing import Any, Dict, Optional, Union +from typing_extensions import NotRequired, TypeAliasType, TypedDict + + +MetricValueTypedDict = TypeAliasType("MetricValueTypedDict", Union[float, int]) + + +MetricValue = TypeAliasType("MetricValue", Union[float, int]) + + +class AggregationRowTypedDict(TypedDict): + metric_name: str + time_bucket: NotRequired[Nullable[datetime]] + dimensions: NotRequired[Dict[str, Any]] + metric_value: NotRequired[Nullable[MetricValueTypedDict]] + + +class AggregationRow(BaseModel): + metric_name: str + + time_bucket: OptionalNullable[datetime] = UNSET + + dimensions: Optional[Dict[str, Any]] = None + + metric_value: OptionalNullable[MetricValue] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["time_bucket", "dimensions", "metric_value"]) + nullable_fields = set(["time_bucket", "metric_value"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m diff --git a/src/mistralai/client/models/connector_activate_for_consumer_v1op.py b/src/mistralai/client/models/connector_activate_for_consumer_v1op.py new file mode 100644 index 000000000..78aa42ac4 --- /dev/null +++ b/src/mistralai/client/models/connector_activate_for_consumer_v1op.py @@ -0,0 +1,31 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 810bc363ca55 + +from __future__ import annotations +from mistralai.client.types import BaseModel +from mistralai.client.utils import FieldMetadata, PathParamMetadata +from typing import Literal +from typing_extensions import Annotated, TypedDict + + +ConnectorActivateForConsumerV1ConsumerScope = Literal[ + "user", + "workspace", + "organization", +] + + +class ConnectorActivateForConsumerV1RequestTypedDict(TypedDict): + connector_id: str + consumer_scope: ConnectorActivateForConsumerV1ConsumerScope + + +class ConnectorActivateForConsumerV1Request(BaseModel): + connector_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + consumer_scope: Annotated[ + ConnectorActivateForConsumerV1ConsumerScope, + FieldMetadata(path=PathParamMetadata(style="simple", explode=False)), + ] diff --git a/src/mistralai/client/models/connector_deactivate_for_consumer_v1op.py b/src/mistralai/client/models/connector_deactivate_for_consumer_v1op.py new file mode 100644 index 000000000..9b435f238 --- /dev/null +++ b/src/mistralai/client/models/connector_deactivate_for_consumer_v1op.py @@ -0,0 +1,31 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 5df1d67b0cc1 + +from __future__ import annotations +from mistralai.client.types import BaseModel +from mistralai.client.utils import FieldMetadata, PathParamMetadata +from typing import Literal +from typing_extensions import Annotated, TypedDict + + +ConnectorDeactivateForConsumerV1ConsumerScope = Literal[ + "user", + "workspace", + "organization", +] + + +class ConnectorDeactivateForConsumerV1RequestTypedDict(TypedDict): + connector_id: str + consumer_scope: ConnectorDeactivateForConsumerV1ConsumerScope + + +class ConnectorDeactivateForConsumerV1Request(BaseModel): + connector_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + consumer_scope: Annotated[ + ConnectorDeactivateForConsumerV1ConsumerScope, + FieldMetadata(path=PathParamMetadata(style="simple", explode=False)), + ] diff --git a/src/mistralai/client/models/connector_deactivate_for_organization_v1op.py b/src/mistralai/client/models/connector_deactivate_for_organization_v1op.py deleted file mode 100644 index 4c5c5458e..000000000 --- a/src/mistralai/client/models/connector_deactivate_for_organization_v1op.py +++ /dev/null @@ -1,17 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 850bece829b0 - -from __future__ import annotations -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from typing_extensions import Annotated, TypedDict - - -class ConnectorDeactivateForOrganizationV1RequestTypedDict(TypedDict): - connector_id: str - - -class ConnectorDeactivateForOrganizationV1Request(BaseModel): - connector_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] diff --git a/src/mistralai/client/models/connector_deactivate_for_user_v1op.py b/src/mistralai/client/models/connector_deactivate_for_user_v1op.py deleted file mode 100644 index 5d9988772..000000000 --- a/src/mistralai/client/models/connector_deactivate_for_user_v1op.py +++ /dev/null @@ -1,17 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 1df4227a54f7 - -from __future__ import annotations -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from typing_extensions import Annotated, TypedDict - - -class ConnectorDeactivateForUserV1RequestTypedDict(TypedDict): - connector_id: str - - -class ConnectorDeactivateForUserV1Request(BaseModel): - connector_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] diff --git a/src/mistralai/client/models/connector_deactivate_for_workspace_v1op.py b/src/mistralai/client/models/connector_deactivate_for_workspace_v1op.py deleted file mode 100644 index 9f02d887f..000000000 --- a/src/mistralai/client/models/connector_deactivate_for_workspace_v1op.py +++ /dev/null @@ -1,17 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: d82c1a5321cc - -from __future__ import annotations -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from typing_extensions import Annotated, TypedDict - - -class ConnectorDeactivateForWorkspaceV1RequestTypedDict(TypedDict): - connector_id: str - - -class ConnectorDeactivateForWorkspaceV1Request(BaseModel): - connector_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] diff --git a/src/mistralai/client/models/connector_get_auth_url_v1op.py b/src/mistralai/client/models/connector_get_auth_url_v1op.py index 854fbcd32..228f4b077 100644 --- a/src/mistralai/client/models/connector_get_auth_url_v1op.py +++ b/src/mistralai/client/models/connector_get_auth_url_v1op.py @@ -22,6 +22,7 @@ class ConnectorGetAuthURLV1RequestTypedDict(TypedDict): method_type: NotRequired[OutboundAuthenticationType] r"""Auth method type to use for the authorization URL. Required when the connector supports multiple interactive auth methods; otherwise the sole method is selected automatically. Use this to pick a specific method (e.g. 'oauth2' vs 'github_app').""" credentials_name: NotRequired[Nullable[str]] + credentials_title: NotRequired[Nullable[str]] github_installation_link: NotRequired[bool] r"""Only valid with method_type=oauth2. When true, returns a GitHub App installation URL (https://github.com/apps//installations/new) if the connector has the proper configuration The Github application needs to have 'Request user authorization (OAuth) during installation' enabled to perform the proper auth loop.""" @@ -47,6 +48,11 @@ class ConnectorGetAuthURLV1Request(BaseModel): FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = UNSET + credentials_title: Annotated[ + OptionalNullable[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + github_installation_link: Annotated[ Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), @@ -60,10 +66,13 @@ def serialize_model(self, handler): "app_return_url", "method_type", "credentials_name", + "credentials_title", "github_installation_link", ] ) - nullable_fields = set(["app_return_url", "credentials_name"]) + nullable_fields = set( + ["app_return_url", "credentials_name", "credentials_title"] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/getsearchindexschemadetailresponseschemamodel.py b/src/mistralai/client/models/deploymentworkerlistresponse.py similarity index 51% rename from src/mistralai/client/models/getsearchindexschemadetailresponseschemamodel.py rename to src/mistralai/client/models/deploymentworkerlistresponse.py index d660378ee..70edaeda0 100644 --- a/src/mistralai/client/models/getsearchindexschemadetailresponseschemamodel.py +++ b/src/mistralai/client/models/deploymentworkerlistresponse.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 3b8b1de4ac82 +# @generated-id: 29dddd42d9cc from __future__ import annotations -from .getsearchindexschemadetailresponsefield import ( - GetSearchIndexSchemaDetailResponseField, - GetSearchIndexSchemaDetailResponseFieldTypedDict, +from .deploymentworkerresponse import ( + DeploymentWorkerResponse, + DeploymentWorkerResponseTypedDict, ) from mistralai.client.types import BaseModel, Nullable, UNSET_SENTINEL from pydantic import model_serializer @@ -12,18 +12,19 @@ from typing_extensions import TypedDict -class GetSearchIndexSchemaDetailResponseSchemaModelTypedDict(TypedDict): - name: str - embedding_dimensions: Nullable[int] - fields: List[GetSearchIndexSchemaDetailResponseFieldTypedDict] +class DeploymentWorkerListResponseTypedDict(TypedDict): + workers: List[DeploymentWorkerResponseTypedDict] + r"""Workers registered for the deployment""" + next_cursor: Nullable[str] + r"""Cursor for the next page of results""" -class GetSearchIndexSchemaDetailResponseSchemaModel(BaseModel): - name: str +class DeploymentWorkerListResponse(BaseModel): + workers: List[DeploymentWorkerResponse] + r"""Workers registered for the deployment""" - embedding_dimensions: Nullable[int] - - fields: List[GetSearchIndexSchemaDetailResponseField] + next_cursor: Nullable[str] + r"""Cursor for the next page of results""" @model_serializer(mode="wrap") def serialize_model(self, handler): diff --git a/src/mistralai/client/models/document_fetch_v1_rag_indexes_index_index_id_schemas_schema_schema_id_retrievables_getop.py b/src/mistralai/client/models/document_fetch_v1_rag_indexes_index_index_id_schemas_schema_schema_id_retrievables_getop.py deleted file mode 100644 index 9e16b2930..000000000 --- a/src/mistralai/client/models/document_fetch_v1_rag_indexes_index_index_id_schemas_schema_schema_id_retrievables_getop.py +++ /dev/null @@ -1,66 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 302aa3933dbe - -from __future__ import annotations -from mistralai.client.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) -from mistralai.client.utils import FieldMetadata, PathParamMetadata, QueryParamMetadata -from pydantic import model_serializer -from typing_extensions import Annotated, NotRequired, TypedDict - - -class DocumentFetchV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesGetRequestTypedDict( - TypedDict -): - index_id: str - schema_id: str - group_id: NotRequired[Nullable[str]] - r"""Only retrieve from this group""" - - -class DocumentFetchV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesGetRequest( - BaseModel -): - index_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - schema_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - group_id: Annotated[ - OptionalNullable[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = UNSET - r"""Only retrieve from this group""" - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = set(["group_id"]) - nullable_fields = set(["group_id"]) - serialized = handler(self) - m = {} - - for n, f in type(self).model_fields.items(): - k = f.alias or n - val = serialized.get(k, serialized.get(n)) - is_nullable_and_explicitly_set = ( - k in nullable_fields - and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member - ) - - if val != UNSET_SENTINEL: - if ( - val is not None - or k not in optional_fields - or is_nullable_and_explicitly_set - ): - m[k] = val - - return m diff --git a/src/mistralai/client/models/document_lookup_v1_rag_indexes_index_index_id_schemas_schema_schema_id_retrievables_retrievable_document_id_getop.py b/src/mistralai/client/models/document_lookup_v1_rag_indexes_index_index_id_schemas_schema_schema_id_retrievables_retrievable_document_id_getop.py deleted file mode 100644 index 4053d7f9e..000000000 --- a/src/mistralai/client/models/document_lookup_v1_rag_indexes_index_index_id_schemas_schema_schema_id_retrievables_retrievable_document_id_getop.py +++ /dev/null @@ -1,33 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: c65495a73054 - -from __future__ import annotations -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from typing_extensions import Annotated, TypedDict - - -class DocumentLookupV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesRetrievableDocumentIDGetRequestTypedDict( - TypedDict -): - index_id: str - schema_id: str - document_id: str - r"""the native ID in the underlying index""" - - -class DocumentLookupV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesRetrievableDocumentIDGetRequest( - BaseModel -): - index_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - schema_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - document_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - r"""the native ID in the underlying index""" diff --git a/src/mistralai/client/models/generate_index_summary_v1_rag_indexes_index_index_id_summary_field_language_postop.py b/src/mistralai/client/models/generate_index_summary_v1_rag_indexes_index_index_id_summary_field_language_postop.py deleted file mode 100644 index 1a4f9959a..000000000 --- a/src/mistralai/client/models/generate_index_summary_v1_rag_indexes_index_index_id_summary_field_language_postop.py +++ /dev/null @@ -1,60 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: d15c3d94a9de - -from __future__ import annotations -from .summarychunk import SummaryChunk, SummaryChunkTypedDict -from .summaryerror import SummaryError, SummaryErrorTypedDict -from .summarymetadata import SummaryMetadata, SummaryMetadataTypedDict -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from typing import Literal, Union -from typing_extensions import Annotated, TypeAliasType, TypedDict - - -GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostLanguage = Literal[ - "en", - "fr", - "es", - "de", - "it", - "pt_br", - "pl", - "ar", - "nl", -] - - -class GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostRequestTypedDict( - TypedDict -): - index_id: str - language: ( - GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostLanguage - ) - - -class GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostRequest( - BaseModel -): - index_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - language: Annotated[ - GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostLanguage, - FieldMetadata(path=PathParamMetadata(style="simple", explode=False)), - ] - - -GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostSummaryStreamTypesTypedDict = TypeAliasType( - "GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostSummaryStreamTypesTypedDict", - Union[SummaryChunkTypedDict, SummaryErrorTypedDict, SummaryMetadataTypedDict], -) -r"""Successful Response""" - - -GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostSummaryStreamTypes = TypeAliasType( - "GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostSummaryStreamTypes", - Union[SummaryChunk, SummaryError, SummaryMetadata], -) -r"""Successful Response""" diff --git a/src/mistralai/client/models/generate_schema_summary_post_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_postop.py b/src/mistralai/client/models/generate_schema_summary_post_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_postop.py deleted file mode 100644 index c3f657b8e..000000000 --- a/src/mistralai/client/models/generate_schema_summary_post_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_postop.py +++ /dev/null @@ -1,63 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 55d8ae49b317 - -from __future__ import annotations -from .summarychunk import SummaryChunk, SummaryChunkTypedDict -from .summaryerror import SummaryError, SummaryErrorTypedDict -from .summarymetadata import SummaryMetadata, SummaryMetadataTypedDict -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from typing import Literal, Union -from typing_extensions import Annotated, TypeAliasType, TypedDict - - -GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostLanguage = Literal[ - "en", - "fr", - "es", - "de", - "it", - "pt_br", - "pl", - "ar", - "nl", -] - - -class GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostRequestTypedDict( - TypedDict -): - index_id: str - schema_id: str - language: GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostLanguage - - -class GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostRequest( - BaseModel -): - index_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - schema_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - language: Annotated[ - GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostLanguage, - FieldMetadata(path=PathParamMetadata(style="simple", explode=False)), - ] - - -GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostSummaryStreamTypesTypedDict = TypeAliasType( - "GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostSummaryStreamTypesTypedDict", - Union[SummaryChunkTypedDict, SummaryErrorTypedDict, SummaryMetadataTypedDict], -) -r"""Successful Response""" - - -GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostSummaryStreamTypes = TypeAliasType( - "GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostSummaryStreamTypes", - Union[SummaryChunk, SummaryError, SummaryMetadata], -) -r"""Successful Response""" diff --git a/src/mistralai/client/models/get_index_schema_detail_v1_rag_indexes_index_index_id_schemas_schema_schema_id_detail_getop.py b/src/mistralai/client/models/get_index_schema_detail_v1_rag_indexes_index_index_id_schemas_schema_schema_id_detail_getop.py deleted file mode 100644 index fba44c48b..000000000 --- a/src/mistralai/client/models/get_index_schema_detail_v1_rag_indexes_index_index_id_schemas_schema_schema_id_detail_getop.py +++ /dev/null @@ -1,26 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 164c025cd3e0 - -from __future__ import annotations -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from typing_extensions import Annotated, TypedDict - - -class GetIndexSchemaDetailV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDDetailGetRequestTypedDict( - TypedDict -): - index_id: str - schema_id: str - - -class GetIndexSchemaDetailV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDDetailGetRequest( - BaseModel -): - index_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - schema_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] diff --git a/src/mistralai/client/models/get_index_schema_file_v1_rag_indexes_index_index_id_schemas_schema_schema_id_file_getop.py b/src/mistralai/client/models/get_index_schema_file_v1_rag_indexes_index_index_id_schemas_schema_schema_id_file_getop.py deleted file mode 100644 index e28e2cbc2..000000000 --- a/src/mistralai/client/models/get_index_schema_file_v1_rag_indexes_index_index_id_schemas_schema_schema_id_file_getop.py +++ /dev/null @@ -1,26 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: d431383a6c9a - -from __future__ import annotations -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from typing_extensions import Annotated, TypedDict - - -class GetIndexSchemaFileV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDFileGetRequestTypedDict( - TypedDict -): - index_id: str - schema_id: str - - -class GetIndexSchemaFileV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDFileGetRequest( - BaseModel -): - index_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - schema_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] diff --git a/src/mistralai/client/models/get_index_summary_v1_rag_indexes_index_index_id_summary_field_language_getop.py b/src/mistralai/client/models/get_index_summary_v1_rag_indexes_index_index_id_summary_field_language_getop.py deleted file mode 100644 index 54eda5e1b..000000000 --- a/src/mistralai/client/models/get_index_summary_v1_rag_indexes_index_index_id_summary_field_language_getop.py +++ /dev/null @@ -1,39 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 06a036082c59 - -from __future__ import annotations -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from typing import Literal -from typing_extensions import Annotated, TypedDict - - -GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetLanguage = Literal[ - "en", - "fr", - "es", - "de", - "it", - "pt_br", - "pl", - "ar", - "nl", -] - - -class GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetRequestTypedDict( - TypedDict -): - index_id: str - language: GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetLanguage - - -class GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetRequest(BaseModel): - index_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - language: Annotated[ - GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetLanguage, - FieldMetadata(path=PathParamMetadata(style="simple", explode=False)), - ] diff --git a/src/mistralai/client/models/get_schedules_v1_workflows_schedules_getop.py b/src/mistralai/client/models/get_schedules_v1_workflows_schedules_getop.py index 62f8ece29..1bbea001e 100644 --- a/src/mistralai/client/models/get_schedules_v1_workflows_schedules_getop.py +++ b/src/mistralai/client/models/get_schedules_v1_workflows_schedules_getop.py @@ -28,11 +28,13 @@ class GetSchedulesV1WorkflowsSchedulesGetRequestTypedDict(TypedDict): workflow_name: NotRequired[Nullable[str]] - r"""Filter by workflow name""" + r"""Filter by exact workflow name""" user_id: NotRequired[Nullable[str]] r"""Filter by user ID. Pass 'current' to resolve to the authenticated user's ID.""" status: NotRequired[Nullable[GetSchedulesV1WorkflowsSchedulesGetStatus]] r"""Filter by schedule status: 'active' or 'paused'""" + search: NotRequired[Nullable[str]] + r"""Prefix search query for workflow name""" page_size: NotRequired[Nullable[int]] r"""Number of items per page. Omitting this parameter fetches all results at once (deprecated — pass page_size to use pagination).""" next_page_token: NotRequired[Nullable[str]] @@ -44,7 +46,7 @@ class GetSchedulesV1WorkflowsSchedulesGetRequest(BaseModel): OptionalNullable[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = UNSET - r"""Filter by workflow name""" + r"""Filter by exact workflow name""" user_id: Annotated[ OptionalNullable[str], @@ -58,6 +60,12 @@ class GetSchedulesV1WorkflowsSchedulesGetRequest(BaseModel): ] = UNSET r"""Filter by schedule status: 'active' or 'paused'""" + search: Annotated[ + OptionalNullable[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + r"""Prefix search query for workflow name""" + page_size: Annotated[ OptionalNullable[int], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), @@ -73,10 +81,24 @@ class GetSchedulesV1WorkflowsSchedulesGetRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set( - ["workflow_name", "user_id", "status", "page_size", "next_page_token"] + [ + "workflow_name", + "user_id", + "status", + "search", + "page_size", + "next_page_token", + ] ) nullable_fields = set( - ["workflow_name", "user_id", "status", "page_size", "next_page_token"] + [ + "workflow_name", + "user_id", + "status", + "search", + "page_size", + "next_page_token", + ] ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/get_schema_summary_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_getop.py b/src/mistralai/client/models/get_schema_summary_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_getop.py deleted file mode 100644 index b2b352f1d..000000000 --- a/src/mistralai/client/models/get_schema_summary_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_getop.py +++ /dev/null @@ -1,46 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: ddde507d8031 - -from __future__ import annotations -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from typing import Literal -from typing_extensions import Annotated, TypedDict - - -GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetLanguage = Literal[ - "en", - "fr", - "es", - "de", - "it", - "pt_br", - "pl", - "ar", - "nl", -] - - -class GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetRequestTypedDict( - TypedDict -): - index_id: str - schema_id: str - language: GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetLanguage - - -class GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetRequest( - BaseModel -): - index_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - schema_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - language: Annotated[ - GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetLanguage, - FieldMetadata(path=PathParamMetadata(style="simple", explode=False)), - ] diff --git a/src/mistralai/client/models/getsearchindexdetailresponseindex.py b/src/mistralai/client/models/getsearchindexdetailresponseindex.py deleted file mode 100644 index 2c22a9f21..000000000 --- a/src/mistralai/client/models/getsearchindexdetailresponseindex.py +++ /dev/null @@ -1,65 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 06fd24dda86b - -from __future__ import annotations -from .getsearchindexdetailresponseschemamodel import ( - GetSearchIndexDetailResponseSchemaModel, - GetSearchIndexDetailResponseSchemaModelTypedDict, -) -from datetime import datetime -from mistralai.client.types import BaseModel, Nullable, UNSET_SENTINEL, UnrecognizedStr -from pydantic import model_serializer -from typing import List, Literal, Union -from typing_extensions import TypedDict - - -GetSearchIndexDetailResponseIndexStatus = Union[ - Literal[ - "online", - "offline", - ], - UnrecognizedStr, -] - - -class GetSearchIndexDetailResponseIndexTypedDict(TypedDict): - name: str - creator_id: str - document_count: int - status: GetSearchIndexDetailResponseIndexStatus - created_at: datetime - modified_at: datetime - vespa_version: Nullable[str] - schemas: List[GetSearchIndexDetailResponseSchemaModelTypedDict] - - -class GetSearchIndexDetailResponseIndex(BaseModel): - name: str - - creator_id: str - - document_count: int - - status: GetSearchIndexDetailResponseIndexStatus - - created_at: datetime - - modified_at: datetime - - vespa_version: Nullable[str] - - schemas: List[GetSearchIndexDetailResponseSchemaModel] - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - serialized = handler(self) - m = {} - - for n, f in type(self).model_fields.items(): - k = f.alias or n - val = serialized.get(k, serialized.get(n)) - - if val != UNSET_SENTINEL: - m[k] = val - - return m diff --git a/src/mistralai/client/models/getsearchindexdetailresponseschemamodel.py b/src/mistralai/client/models/getsearchindexdetailresponseschemamodel.py deleted file mode 100644 index 9afc479c2..000000000 --- a/src/mistralai/client/models/getsearchindexdetailresponseschemamodel.py +++ /dev/null @@ -1,42 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 62dcfab09ce7 - -from __future__ import annotations -from datetime import datetime -from mistralai.client.types import BaseModel, Nullable, UNSET_SENTINEL -from pydantic import model_serializer -from typing_extensions import TypedDict - - -class GetSearchIndexDetailResponseSchemaModelTypedDict(TypedDict): - name: str - id: str - document_count: Nullable[int] - last_modified: datetime - latency_p95_s_threshold: Nullable[float] - - -class GetSearchIndexDetailResponseSchemaModel(BaseModel): - name: str - - id: str - - document_count: Nullable[int] - - last_modified: datetime - - latency_p95_s_threshold: Nullable[float] - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - serialized = handler(self) - m = {} - - for n, f in type(self).model_fields.items(): - k = f.alias or n - val = serialized.get(k, serialized.get(n)) - - if val != UNSET_SENTINEL: - m[k] = val - - return m diff --git a/src/mistralai/client/models/getsearchindexschemadetailresponsefield.py b/src/mistralai/client/models/getsearchindexschemadetailresponsefield.py deleted file mode 100644 index f37841296..000000000 --- a/src/mistralai/client/models/getsearchindexschemadetailresponsefield.py +++ /dev/null @@ -1,41 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 9a63e248e0d3 - -from __future__ import annotations -from .schemafielddatatype import SchemaFieldDataType -from .schemafieldindex import SchemaFieldIndex -from .schemafieldstorage import SchemaFieldStorage -from mistralai.client.types import BaseModel, Nullable, UNSET_SENTINEL -from pydantic import model_serializer -from typing_extensions import TypedDict - - -class GetSearchIndexSchemaDetailResponseFieldTypedDict(TypedDict): - name: str - type: SchemaFieldDataType - storage: SchemaFieldStorage - index_type: Nullable[SchemaFieldIndex] - - -class GetSearchIndexSchemaDetailResponseField(BaseModel): - name: str - - type: SchemaFieldDataType - - storage: SchemaFieldStorage - - index_type: Nullable[SchemaFieldIndex] - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - serialized = handler(self) - m = {} - - for n, f in type(self).model_fields.items(): - k = f.alias or n - val = serialized.get(k, serialized.get(n)) - - if val != UNSET_SENTINEL: - m[k] = val - - return m diff --git a/src/mistralai/client/models/getsearchindexschemasdfileresponsesdfile.py b/src/mistralai/client/models/getsearchindexschemasdfileresponsesdfile.py deleted file mode 100644 index a57a0089f..000000000 --- a/src/mistralai/client/models/getsearchindexschemasdfileresponsesdfile.py +++ /dev/null @@ -1,29 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: c74f1019e999 - -from __future__ import annotations -from mistralai.client.types import BaseModel, Nullable, UNSET_SENTINEL -from pydantic import model_serializer -from typing_extensions import TypedDict - - -class GetSearchIndexSchemaSDFileResponseSDFileTypedDict(TypedDict): - content: Nullable[str] - - -class GetSearchIndexSchemaSDFileResponseSDFile(BaseModel): - content: Nullable[str] - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - serialized = handler(self) - m = {} - - for n, f in type(self).model_fields.items(): - k = f.alias or n - val = serialized.get(k, serialized.get(n)) - - if val != UNSET_SENTINEL: - m[k] = val - - return m diff --git a/src/mistralai/client/models/getsearchindexsummaryresponse.py b/src/mistralai/client/models/getsearchindexsummaryresponse.py new file mode 100644 index 000000000..9c2905568 --- /dev/null +++ b/src/mistralai/client/models/getsearchindexsummaryresponse.py @@ -0,0 +1,19 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 694db4804e72 + +from __future__ import annotations +from .getsearchindexsummaryresponseindex import ( + GetSearchIndexSummaryResponseIndex, + GetSearchIndexSummaryResponseIndexTypedDict, +) +from mistralai.client.types import BaseModel +from typing import List +from typing_extensions import TypedDict + + +class GetSearchIndexSummaryResponseTypedDict(TypedDict): + indexes: List[GetSearchIndexSummaryResponseIndexTypedDict] + + +class GetSearchIndexSummaryResponse(BaseModel): + indexes: List[GetSearchIndexSummaryResponseIndex] diff --git a/src/mistralai/client/models/getsummaryresponsesummary.py b/src/mistralai/client/models/getsummaryresponsesummary.py deleted file mode 100644 index fdfcb2fdd..000000000 --- a/src/mistralai/client/models/getsummaryresponsesummary.py +++ /dev/null @@ -1,21 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 0288dc3df057 - -from __future__ import annotations -from .summarystatus import SummaryStatus -from mistralai.client.types import BaseModel -from typing_extensions import TypedDict - - -class GetSummaryResponseSummaryTypedDict(TypedDict): - content: str - status: SummaryStatus - translated: bool - - -class GetSummaryResponseSummary(BaseModel): - content: str - - status: SummaryStatus - - translated: bool diff --git a/src/mistralai/client/models/granularity.py b/src/mistralai/client/models/granularity.py new file mode 100644 index 000000000..9dbac6325 --- /dev/null +++ b/src/mistralai/client/models/granularity.py @@ -0,0 +1,16 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 5230c577800b + +from __future__ import annotations +from typing import Literal + + +Granularity = Literal[ + "auto", + "second", + "minute", + "hour", + "day", + "week", + "month", +] diff --git a/src/mistralai/client/models/jobs_api_routes_batch_get_batch_jobsop.py b/src/mistralai/client/models/jobs_api_routes_batch_get_batch_jobsop.py index e5869656d..f0649f3af 100644 --- a/src/mistralai/client/models/jobs_api_routes_batch_get_batch_jobsop.py +++ b/src/mistralai/client/models/jobs_api_routes_batch_get_batch_jobsop.py @@ -17,7 +17,7 @@ from typing_extensions import Annotated, NotRequired, TypedDict -OrderBy = Literal[ +JobsAPIRoutesBatchGetBatchJobsOrderBy = Literal[ "created", "-created", ] @@ -32,7 +32,7 @@ class JobsAPIRoutesBatchGetBatchJobsRequestTypedDict(TypedDict): created_after: NotRequired[Nullable[datetime]] created_by_me: NotRequired[bool] status: NotRequired[Nullable[List[BatchJobStatus]]] - order_by: NotRequired[OrderBy] + order_by: NotRequired[JobsAPIRoutesBatchGetBatchJobsOrderBy] class JobsAPIRoutesBatchGetBatchJobsRequest(BaseModel): @@ -77,7 +77,7 @@ class JobsAPIRoutesBatchGetBatchJobsRequest(BaseModel): ] = UNSET order_by: Annotated[ - Optional[OrderBy], + Optional[JobsAPIRoutesBatchGetBatchJobsOrderBy], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = "-created" diff --git a/src/mistralai/client/models/list_deployment_workers_v1_workflows_deployments_name_workers_getop.py b/src/mistralai/client/models/list_deployment_workers_v1_workflows_deployments_name_workers_getop.py new file mode 100644 index 000000000..8e499fe8a --- /dev/null +++ b/src/mistralai/client/models/list_deployment_workers_v1_workflows_deployments_name_workers_getop.py @@ -0,0 +1,83 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 6f9aeac1e00a + +from __future__ import annotations +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from mistralai.client.utils import FieldMetadata, PathParamMetadata, QueryParamMetadata +from pydantic import model_serializer +from typing import Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +WorkerStatus = Literal[ + "active", + "inactive", +] +r"""Filter by worker activity. active=only active, inactive=only inactive, None=no filter""" + + +class ListDeploymentWorkersV1WorkflowsDeploymentsNameWorkersGetRequestTypedDict( + TypedDict +): + name: str + worker_status: NotRequired[Nullable[WorkerStatus]] + r"""Filter by worker activity. active=only active, inactive=only inactive, None=no filter""" + limit: NotRequired[int] + r"""Maximum number of workers to return""" + cursor: NotRequired[Nullable[str]] + r"""Cursor from a previous response's `next_cursor`. Resend `worker_status` unchanged alongside it.""" + + +class ListDeploymentWorkersV1WorkflowsDeploymentsNameWorkersGetRequest(BaseModel): + name: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + worker_status: Annotated[ + OptionalNullable[WorkerStatus], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + r"""Filter by worker activity. active=only active, inactive=only inactive, None=no filter""" + + limit: Annotated[ + Optional[int], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = 50 + r"""Maximum number of workers to return""" + + cursor: Annotated[ + OptionalNullable[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + r"""Cursor from a previous response's `next_cursor`. Resend `worker_status` unchanged alongside it.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["worker_status", "limit", "cursor"]) + nullable_fields = set(["worker_status", "cursor"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m diff --git a/src/mistralai/client/models/list_deployments_v1_workflows_deployments_getop.py b/src/mistralai/client/models/list_deployments_v1_workflows_deployments_getop.py index e1c9c0a4c..db22c7c61 100644 --- a/src/mistralai/client/models/list_deployments_v1_workflows_deployments_getop.py +++ b/src/mistralai/client/models/list_deployments_v1_workflows_deployments_getop.py @@ -11,10 +11,24 @@ ) from mistralai.client.utils import FieldMetadata, QueryParamMetadata from pydantic import model_serializer -from typing import Optional +from typing import Literal, Optional from typing_extensions import Annotated, NotRequired, TypedDict +ListDeploymentsV1WorkflowsDeploymentsGetOrderBy = Literal[ + "updated_at", + "created_at", +] +r"""Field to sort by. When omitted, active and managed deployments are grouped first, then sorted by created_at. When set, results are sorted purely by the specified field with no grouping.""" + + +ListDeploymentsV1WorkflowsDeploymentsGetOrder = Literal[ + "asc", + "desc", +] +r"""Sort direction. Applied to order_by when set, or within each activity group when omitted.""" + + class ListDeploymentsV1WorkflowsDeploymentsGetRequestTypedDict(TypedDict): active_only: NotRequired[bool] is_hardened: NotRequired[Nullable[bool]] @@ -22,6 +36,10 @@ class ListDeploymentsV1WorkflowsDeploymentsGetRequestTypedDict(TypedDict): workflow_name: NotRequired[Nullable[str]] search: NotRequired[Nullable[str]] r"""Filter deployments by name or ID prefix""" + order_by: NotRequired[Nullable[ListDeploymentsV1WorkflowsDeploymentsGetOrderBy]] + r"""Field to sort by. When omitted, active and managed deployments are grouped first, then sorted by created_at. When set, results are sorted purely by the specified field with no grouping.""" + order: NotRequired[ListDeploymentsV1WorkflowsDeploymentsGetOrder] + r"""Sort direction. Applied to order_by when set, or within each activity group when omitted.""" limit: NotRequired[Nullable[int]] r"""Maximum number of deployments to return""" cursor: NotRequired[Nullable[str]] @@ -53,6 +71,18 @@ class ListDeploymentsV1WorkflowsDeploymentsGetRequest(BaseModel): ] = UNSET r"""Filter deployments by name or ID prefix""" + order_by: Annotated[ + OptionalNullable[ListDeploymentsV1WorkflowsDeploymentsGetOrderBy], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + r"""Field to sort by. When omitted, active and managed deployments are grouped first, then sorted by created_at. When set, results are sorted purely by the specified field with no grouping.""" + + order: Annotated[ + Optional[ListDeploymentsV1WorkflowsDeploymentsGetOrder], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = "desc" + r"""Sort direction. Applied to order_by when set, or within each activity group when omitted.""" + limit: Annotated[ OptionalNullable[int], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), @@ -79,6 +109,8 @@ def serialize_model(self, handler): "is_hardened", "workflow_name", "search", + "order_by", + "order", "limit", "cursor", "workspace_id", @@ -89,6 +121,7 @@ def serialize_model(self, handler): "is_hardened", "workflow_name", "search", + "order_by", "limit", "cursor", "workspace_id", diff --git a/src/mistralai/client/models/listsortdirection.py b/src/mistralai/client/models/listsortdirection.py new file mode 100644 index 000000000..fd7e3e401 --- /dev/null +++ b/src/mistralai/client/models/listsortdirection.py @@ -0,0 +1,12 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: d0c804031d6c + +from __future__ import annotations +from typing import Literal + + +ListSortDirection = Literal[ + "list_sort_direction_unspecified", + "list_sort_direction_asc", + "list_sort_direction_desc", +] diff --git a/src/mistralai/client/models/listsortfield.py b/src/mistralai/client/models/listsortfield.py new file mode 100644 index 000000000..9b3019b23 --- /dev/null +++ b/src/mistralai/client/models/listsortfield.py @@ -0,0 +1,14 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 3c1f2de4fc89 + +from __future__ import annotations +from typing import Literal + + +ListSortField = Literal[ + "list_sort_field_unspecified", + "list_sort_field_created_at", + "list_sort_field_last_modified_at", + "list_sort_field_name", + "list_sort_field_title", +] diff --git a/src/mistralai/client/models/summarystatus.py b/src/mistralai/client/models/metricaggregation.py similarity index 51% rename from src/mistralai/client/models/summarystatus.py rename to src/mistralai/client/models/metricaggregation.py index 5413b66e7..7a26fbbdb 100644 --- a/src/mistralai/client/models/summarystatus.py +++ b/src/mistralai/client/models/metricaggregation.py @@ -1,16 +1,23 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 1cb3290c20dd +# @generated-id: d83c8202faad from __future__ import annotations from mistralai.client.types import UnrecognizedStr from typing import Literal, Union -SummaryStatus = Union[ +MetricAggregation = Union[ Literal[ - "handwritten", - "generated", - "generated_confirmed", + "count", + "count_distinct", + "sum", + "avg", + "min", + "max", + "p50", + "p90", + "p95", + "p99", ], UnrecognizedStr, ] diff --git a/src/mistralai/client/models/metricdefinition.py b/src/mistralai/client/models/metricdefinition.py new file mode 100644 index 000000000..e6c950414 --- /dev/null +++ b/src/mistralai/client/models/metricdefinition.py @@ -0,0 +1,18 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 37663cc0cc75 + +from __future__ import annotations +from .metricaggregation import MetricAggregation +from mistralai.client.types import BaseModel +from typing_extensions import TypedDict + + +class MetricDefinitionTypedDict(TypedDict): + measure: str + aggregation: MetricAggregation + + +class MetricDefinition(BaseModel): + measure: str + + aggregation: MetricAggregation diff --git a/src/mistralai/client/models/ocrasidetextblock.py b/src/mistralai/client/models/ocrasidetextblock.py index 3d81d9d3f..fed38e0f9 100644 --- a/src/mistralai/client/models/ocrasidetextblock.py +++ b/src/mistralai/client/models/ocrasidetextblock.py @@ -2,12 +2,23 @@ # @generated-id: 1960ecdcc21a from __future__ import annotations -from mistralai.client.types import BaseModel +from .ocrblockconfidencescores import ( + OCRBlockConfidenceScores, + OCRBlockConfidenceScoresTypedDict, +) +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) from mistralai.client.utils import validate_const import pydantic +from pydantic import model_serializer from pydantic.functional_validators import AfterValidator from typing import Literal -from typing_extensions import Annotated, TypedDict +from typing_extensions import Annotated, NotRequired, TypedDict class OCRAsideTextBlockTypedDict(TypedDict): @@ -17,6 +28,8 @@ class OCRAsideTextBlockTypedDict(TypedDict): bottom_right_y: int content: str r"""Text/markdown/html content of this block""" + confidence_scores: NotRequired[Nullable[OCRBlockConfidenceScoresTypedDict]] + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" type: Literal["aside_text"] @@ -32,11 +45,39 @@ class OCRAsideTextBlock(BaseModel): content: str r"""Text/markdown/html content of this block""" + confidence_scores: OptionalNullable[OCRBlockConfidenceScores] = UNSET + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" + type: Annotated[ Annotated[Literal["aside_text"], AfterValidator(validate_const("aside_text"))], pydantic.Field(alias="type"), ] = "aside_text" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["confidence_scores"]) + nullable_fields = set(["confidence_scores"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m + try: OCRAsideTextBlock.model_rebuild() diff --git a/src/mistralai/client/models/ocrblockconfidencescores.py b/src/mistralai/client/models/ocrblockconfidencescores.py new file mode 100644 index 000000000..08a1fa03b --- /dev/null +++ b/src/mistralai/client/models/ocrblockconfidencescores.py @@ -0,0 +1,84 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 27e42b07192d + +from __future__ import annotations +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from pydantic import model_serializer +from typing_extensions import NotRequired, TypedDict + + +class OCRBlockConfidenceScoresTypedDict(TypedDict): + r"""Per-block confidence scores, computed per-word from model logprobs. + + All fields ``None`` when the block couldn't be scored. + Individual fields ``None`` when that signal is absent — e.g. an image-only block has + no caption, so content scores are ``None``. + """ + + average_content_confidence_score: NotRequired[Nullable[float]] + r"""Average confidence over the block's content (caption) tokens. None when the block has no textual content (e.g. image-only entry).""" + minimum_content_confidence_score: NotRequired[Nullable[float]] + r"""Minimum per-word content confidence in the block. None when the block has no textual content.""" + block_type_confidence_score: NotRequired[Nullable[float]] + r"""Confidence in the block type (e.g. 'text', 'title', 'table'). None when the entry had no block type or the block type span could not be located.""" + + +class OCRBlockConfidenceScores(BaseModel): + r"""Per-block confidence scores, computed per-word from model logprobs. + + All fields ``None`` when the block couldn't be scored. + Individual fields ``None`` when that signal is absent — e.g. an image-only block has + no caption, so content scores are ``None``. + """ + + average_content_confidence_score: OptionalNullable[float] = UNSET + r"""Average confidence over the block's content (caption) tokens. None when the block has no textual content (e.g. image-only entry).""" + + minimum_content_confidence_score: OptionalNullable[float] = UNSET + r"""Minimum per-word content confidence in the block. None when the block has no textual content.""" + + block_type_confidence_score: OptionalNullable[float] = UNSET + r"""Confidence in the block type (e.g. 'text', 'title', 'table'). None when the entry had no block type or the block type span could not be located.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + [ + "average_content_confidence_score", + "minimum_content_confidence_score", + "block_type_confidence_score", + ] + ) + nullable_fields = set( + [ + "average_content_confidence_score", + "minimum_content_confidence_score", + "block_type_confidence_score", + ] + ) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m diff --git a/src/mistralai/client/models/ocrcaptionblock.py b/src/mistralai/client/models/ocrcaptionblock.py index d1e0da834..80086d469 100644 --- a/src/mistralai/client/models/ocrcaptionblock.py +++ b/src/mistralai/client/models/ocrcaptionblock.py @@ -2,12 +2,23 @@ # @generated-id: 84933d3975dd from __future__ import annotations -from mistralai.client.types import BaseModel +from .ocrblockconfidencescores import ( + OCRBlockConfidenceScores, + OCRBlockConfidenceScoresTypedDict, +) +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) from mistralai.client.utils import validate_const import pydantic +from pydantic import model_serializer from pydantic.functional_validators import AfterValidator from typing import Literal -from typing_extensions import Annotated, TypedDict +from typing_extensions import Annotated, NotRequired, TypedDict class OCRCaptionBlockTypedDict(TypedDict): @@ -17,6 +28,8 @@ class OCRCaptionBlockTypedDict(TypedDict): bottom_right_y: int content: str r"""Text/markdown/html content of this block""" + confidence_scores: NotRequired[Nullable[OCRBlockConfidenceScoresTypedDict]] + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" type: Literal["caption"] @@ -32,11 +45,39 @@ class OCRCaptionBlock(BaseModel): content: str r"""Text/markdown/html content of this block""" + confidence_scores: OptionalNullable[OCRBlockConfidenceScores] = UNSET + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" + type: Annotated[ Annotated[Literal["caption"], AfterValidator(validate_const("caption"))], pydantic.Field(alias="type"), ] = "caption" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["confidence_scores"]) + nullable_fields = set(["confidence_scores"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m + try: OCRCaptionBlock.model_rebuild() diff --git a/src/mistralai/client/models/ocrcodeblock.py b/src/mistralai/client/models/ocrcodeblock.py index 52ffee598..1425cc337 100644 --- a/src/mistralai/client/models/ocrcodeblock.py +++ b/src/mistralai/client/models/ocrcodeblock.py @@ -2,12 +2,23 @@ # @generated-id: bacdc04c0c8d from __future__ import annotations -from mistralai.client.types import BaseModel +from .ocrblockconfidencescores import ( + OCRBlockConfidenceScores, + OCRBlockConfidenceScoresTypedDict, +) +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) from mistralai.client.utils import validate_const import pydantic +from pydantic import model_serializer from pydantic.functional_validators import AfterValidator from typing import Literal -from typing_extensions import Annotated, TypedDict +from typing_extensions import Annotated, NotRequired, TypedDict class OCRCodeBlockTypedDict(TypedDict): @@ -17,6 +28,8 @@ class OCRCodeBlockTypedDict(TypedDict): bottom_right_y: int content: str r"""Text/markdown/html content of this block""" + confidence_scores: NotRequired[Nullable[OCRBlockConfidenceScoresTypedDict]] + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" type: Literal["code"] @@ -32,11 +45,39 @@ class OCRCodeBlock(BaseModel): content: str r"""Text/markdown/html content of this block""" + confidence_scores: OptionalNullable[OCRBlockConfidenceScores] = UNSET + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" + type: Annotated[ Annotated[Literal["code"], AfterValidator(validate_const("code"))], pydantic.Field(alias="type"), ] = "code" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["confidence_scores"]) + nullable_fields = set(["confidence_scores"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m + try: OCRCodeBlock.model_rebuild() diff --git a/src/mistralai/client/models/ocrequationblock.py b/src/mistralai/client/models/ocrequationblock.py index 57a8eb3e2..11f9356bc 100644 --- a/src/mistralai/client/models/ocrequationblock.py +++ b/src/mistralai/client/models/ocrequationblock.py @@ -2,12 +2,23 @@ # @generated-id: e8856fb2a77f from __future__ import annotations -from mistralai.client.types import BaseModel +from .ocrblockconfidencescores import ( + OCRBlockConfidenceScores, + OCRBlockConfidenceScoresTypedDict, +) +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) from mistralai.client.utils import validate_const import pydantic +from pydantic import model_serializer from pydantic.functional_validators import AfterValidator from typing import Literal -from typing_extensions import Annotated, TypedDict +from typing_extensions import Annotated, NotRequired, TypedDict class OCREquationBlockTypedDict(TypedDict): @@ -17,6 +28,8 @@ class OCREquationBlockTypedDict(TypedDict): bottom_right_y: int content: str r"""Text/markdown/html content of this block""" + confidence_scores: NotRequired[Nullable[OCRBlockConfidenceScoresTypedDict]] + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" type: Literal["equation"] @@ -32,11 +45,39 @@ class OCREquationBlock(BaseModel): content: str r"""Text/markdown/html content of this block""" + confidence_scores: OptionalNullable[OCRBlockConfidenceScores] = UNSET + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" + type: Annotated[ Annotated[Literal["equation"], AfterValidator(validate_const("equation"))], pydantic.Field(alias="type"), ] = "equation" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["confidence_scores"]) + nullable_fields = set(["confidence_scores"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m + try: OCREquationBlock.model_rebuild() diff --git a/src/mistralai/client/models/ocrfooterblock.py b/src/mistralai/client/models/ocrfooterblock.py index b3f4c18db..8c8b0860d 100644 --- a/src/mistralai/client/models/ocrfooterblock.py +++ b/src/mistralai/client/models/ocrfooterblock.py @@ -2,12 +2,23 @@ # @generated-id: 9435c879d4c4 from __future__ import annotations -from mistralai.client.types import BaseModel +from .ocrblockconfidencescores import ( + OCRBlockConfidenceScores, + OCRBlockConfidenceScoresTypedDict, +) +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) from mistralai.client.utils import validate_const import pydantic +from pydantic import model_serializer from pydantic.functional_validators import AfterValidator from typing import Literal -from typing_extensions import Annotated, TypedDict +from typing_extensions import Annotated, NotRequired, TypedDict class OCRFooterBlockTypedDict(TypedDict): @@ -17,6 +28,8 @@ class OCRFooterBlockTypedDict(TypedDict): bottom_right_y: int content: str r"""Text/markdown/html content of this block""" + confidence_scores: NotRequired[Nullable[OCRBlockConfidenceScoresTypedDict]] + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" type: Literal["footer"] @@ -32,11 +45,39 @@ class OCRFooterBlock(BaseModel): content: str r"""Text/markdown/html content of this block""" + confidence_scores: OptionalNullable[OCRBlockConfidenceScores] = UNSET + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" + type: Annotated[ Annotated[Literal["footer"], AfterValidator(validate_const("footer"))], pydantic.Field(alias="type"), ] = "footer" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["confidence_scores"]) + nullable_fields = set(["confidence_scores"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m + try: OCRFooterBlock.model_rebuild() diff --git a/src/mistralai/client/models/ocrheaderblock.py b/src/mistralai/client/models/ocrheaderblock.py index a2e30a98b..5a7ce42a4 100644 --- a/src/mistralai/client/models/ocrheaderblock.py +++ b/src/mistralai/client/models/ocrheaderblock.py @@ -2,12 +2,23 @@ # @generated-id: 86d4b90e4056 from __future__ import annotations -from mistralai.client.types import BaseModel +from .ocrblockconfidencescores import ( + OCRBlockConfidenceScores, + OCRBlockConfidenceScoresTypedDict, +) +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) from mistralai.client.utils import validate_const import pydantic +from pydantic import model_serializer from pydantic.functional_validators import AfterValidator from typing import Literal -from typing_extensions import Annotated, TypedDict +from typing_extensions import Annotated, NotRequired, TypedDict class OCRHeaderBlockTypedDict(TypedDict): @@ -17,6 +28,8 @@ class OCRHeaderBlockTypedDict(TypedDict): bottom_right_y: int content: str r"""Text/markdown/html content of this block""" + confidence_scores: NotRequired[Nullable[OCRBlockConfidenceScoresTypedDict]] + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" type: Literal["header"] @@ -32,11 +45,39 @@ class OCRHeaderBlock(BaseModel): content: str r"""Text/markdown/html content of this block""" + confidence_scores: OptionalNullable[OCRBlockConfidenceScores] = UNSET + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" + type: Annotated[ Annotated[Literal["header"], AfterValidator(validate_const("header"))], pydantic.Field(alias="type"), ] = "header" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["confidence_scores"]) + nullable_fields = set(["confidence_scores"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m + try: OCRHeaderBlock.model_rebuild() diff --git a/src/mistralai/client/models/ocrimageblock.py b/src/mistralai/client/models/ocrimageblock.py index 3381c47a5..b90cdbb7e 100644 --- a/src/mistralai/client/models/ocrimageblock.py +++ b/src/mistralai/client/models/ocrimageblock.py @@ -2,12 +2,23 @@ # @generated-id: 9700f3ab6b59 from __future__ import annotations -from mistralai.client.types import BaseModel +from .ocrblockconfidencescores import ( + OCRBlockConfidenceScores, + OCRBlockConfidenceScoresTypedDict, +) +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) from mistralai.client.utils import validate_const import pydantic +from pydantic import model_serializer from pydantic.functional_validators import AfterValidator from typing import Literal -from typing_extensions import Annotated, TypedDict +from typing_extensions import Annotated, NotRequired, TypedDict class OCRImageBlockTypedDict(TypedDict): @@ -19,6 +30,8 @@ class OCRImageBlockTypedDict(TypedDict): r"""Text/markdown/html content of this block""" image_id: str r"""References the corresponding entry in OCRPageObject.images""" + confidence_scores: NotRequired[Nullable[OCRBlockConfidenceScoresTypedDict]] + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" type: Literal["image"] @@ -37,11 +50,39 @@ class OCRImageBlock(BaseModel): image_id: str r"""References the corresponding entry in OCRPageObject.images""" + confidence_scores: OptionalNullable[OCRBlockConfidenceScores] = UNSET + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" + type: Annotated[ Annotated[Literal["image"], AfterValidator(validate_const("image"))], pydantic.Field(alias="type"), ] = "image" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["confidence_scores"]) + nullable_fields = set(["confidence_scores"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m + try: OCRImageBlock.model_rebuild() diff --git a/src/mistralai/client/models/ocrlistblock.py b/src/mistralai/client/models/ocrlistblock.py index 8d32c11af..2d6cffcff 100644 --- a/src/mistralai/client/models/ocrlistblock.py +++ b/src/mistralai/client/models/ocrlistblock.py @@ -2,12 +2,23 @@ # @generated-id: 20bdae8ad688 from __future__ import annotations -from mistralai.client.types import BaseModel +from .ocrblockconfidencescores import ( + OCRBlockConfidenceScores, + OCRBlockConfidenceScoresTypedDict, +) +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) from mistralai.client.utils import validate_const import pydantic +from pydantic import model_serializer from pydantic.functional_validators import AfterValidator from typing import Literal -from typing_extensions import Annotated, TypedDict +from typing_extensions import Annotated, NotRequired, TypedDict class OCRListBlockTypedDict(TypedDict): @@ -17,6 +28,8 @@ class OCRListBlockTypedDict(TypedDict): bottom_right_y: int content: str r"""Text/markdown/html content of this block""" + confidence_scores: NotRequired[Nullable[OCRBlockConfidenceScoresTypedDict]] + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" type: Literal["list"] @@ -32,11 +45,39 @@ class OCRListBlock(BaseModel): content: str r"""Text/markdown/html content of this block""" + confidence_scores: OptionalNullable[OCRBlockConfidenceScores] = UNSET + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" + type: Annotated[ Annotated[Literal["list"], AfterValidator(validate_const("list"))], pydantic.Field(alias="type"), ] = "list" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["confidence_scores"]) + nullable_fields = set(["confidence_scores"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m + try: OCRListBlock.model_rebuild() diff --git a/src/mistralai/client/models/ocrpageconfidencescores.py b/src/mistralai/client/models/ocrpageconfidencescores.py index 622171d06..74e3b3750 100644 --- a/src/mistralai/client/models/ocrpageconfidencescores.py +++ b/src/mistralai/client/models/ocrpageconfidencescores.py @@ -13,10 +13,14 @@ class OCRPageConfidenceScoresTypedDict(TypedDict): r"""Confidence scores for an OCR page at various granularities. Note on page-level stats: - - For 'page' granularity: average/minimum are computed from per-token exp(logprob). - - For 'word' granularity: average/minimum are computed from per-word confidence, - where each word's confidence is exp(mean(token_logprobs)) — a geometric mean - over the word's subword tokens. + - For 'page' and 'block' granularity: average/minimum are computed from per-token + exp(logprob). Neither ``word_confidence_scores`` nor ``token_scores`` is populated. + Per-block scores are attached to response blocks separately for 'block' granularity. + - For 'word' granularity: average/minimum are computed from per-word confidence, where + each word's confidence is exp(mean(token_logprobs)) — a geometric mean over the + word's subword tokens. ``word_confidence_scores`` is populated. + - For 'token' granularity (internal): average/minimum are computed from + ``token_scores``; ``token_scores`` is populated. """ average_page_confidence_score: float @@ -31,10 +35,14 @@ class OCRPageConfidenceScores(BaseModel): r"""Confidence scores for an OCR page at various granularities. Note on page-level stats: - - For 'page' granularity: average/minimum are computed from per-token exp(logprob). - - For 'word' granularity: average/minimum are computed from per-word confidence, - where each word's confidence is exp(mean(token_logprobs)) — a geometric mean - over the word's subword tokens. + - For 'page' and 'block' granularity: average/minimum are computed from per-token + exp(logprob). Neither ``word_confidence_scores`` nor ``token_scores`` is populated. + Per-block scores are attached to response blocks separately for 'block' granularity. + - For 'word' granularity: average/minimum are computed from per-word confidence, where + each word's confidence is exp(mean(token_logprobs)) — a geometric mean over the + word's subword tokens. ``word_confidence_scores`` is populated. + - For 'token' granularity (internal): average/minimum are computed from + ``token_scores``; ``token_scores`` is populated. """ average_page_confidence_score: float diff --git a/src/mistralai/client/models/ocrreferencesblock.py b/src/mistralai/client/models/ocrreferencesblock.py index 6294488ca..f59a6f871 100644 --- a/src/mistralai/client/models/ocrreferencesblock.py +++ b/src/mistralai/client/models/ocrreferencesblock.py @@ -2,12 +2,23 @@ # @generated-id: 24b57f5f1f99 from __future__ import annotations -from mistralai.client.types import BaseModel +from .ocrblockconfidencescores import ( + OCRBlockConfidenceScores, + OCRBlockConfidenceScoresTypedDict, +) +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) from mistralai.client.utils import validate_const import pydantic +from pydantic import model_serializer from pydantic.functional_validators import AfterValidator from typing import Literal -from typing_extensions import Annotated, TypedDict +from typing_extensions import Annotated, NotRequired, TypedDict class OCRReferencesBlockTypedDict(TypedDict): @@ -17,6 +28,8 @@ class OCRReferencesBlockTypedDict(TypedDict): bottom_right_y: int content: str r"""Text/markdown/html content of this block""" + confidence_scores: NotRequired[Nullable[OCRBlockConfidenceScoresTypedDict]] + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" type: Literal["references"] @@ -32,11 +45,39 @@ class OCRReferencesBlock(BaseModel): content: str r"""Text/markdown/html content of this block""" + confidence_scores: OptionalNullable[OCRBlockConfidenceScores] = UNSET + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" + type: Annotated[ Annotated[Literal["references"], AfterValidator(validate_const("references"))], pydantic.Field(alias="type"), ] = "references" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["confidence_scores"]) + nullable_fields = set(["confidence_scores"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m + try: OCRReferencesBlock.model_rebuild() diff --git a/src/mistralai/client/models/ocrrequest.py b/src/mistralai/client/models/ocrrequest.py index f290a9f3f..4a377f796 100644 --- a/src/mistralai/client/models/ocrrequest.py +++ b/src/mistralai/client/models/ocrrequest.py @@ -48,6 +48,7 @@ ConfidenceScoresGranularity = Literal[ "word", "page", + "block", ] @@ -77,7 +78,7 @@ class OCRRequestTypedDict(TypedDict): include_blocks: NotRequired[bool] r"""Return paragraph-level bounding boxes for all content blocks in the response""" confidence_scores_granularity: NotRequired[Nullable[ConfidenceScoresGranularity]] - r"""Granularity for confidence scores: 'page' (aggregate only), 'word' (per-word scores). Defaults to None (no confidence scores) to keep response payload small.""" + r"""Granularity for confidence scores: 'page' (aggregate only), 'word' (per-word scores), or 'block' (per-block scores). Defaults to None (no confidence scores) to keep response payload small.""" class OCRRequest(BaseModel): @@ -119,7 +120,7 @@ class OCRRequest(BaseModel): r"""Return paragraph-level bounding boxes for all content blocks in the response""" confidence_scores_granularity: OptionalNullable[ConfidenceScoresGranularity] = UNSET - r"""Granularity for confidence scores: 'page' (aggregate only), 'word' (per-word scores). Defaults to None (no confidence scores) to keep response payload small.""" + r"""Granularity for confidence scores: 'page' (aggregate only), 'word' (per-word scores), or 'block' (per-block scores). Defaults to None (no confidence scores) to keep response payload small.""" @model_serializer(mode="wrap") def serialize_model(self, handler): diff --git a/src/mistralai/client/models/ocrsignatureblock.py b/src/mistralai/client/models/ocrsignatureblock.py index 0275466fa..af0695d50 100644 --- a/src/mistralai/client/models/ocrsignatureblock.py +++ b/src/mistralai/client/models/ocrsignatureblock.py @@ -2,12 +2,23 @@ # @generated-id: 2e2939942241 from __future__ import annotations -from mistralai.client.types import BaseModel +from .ocrblockconfidencescores import ( + OCRBlockConfidenceScores, + OCRBlockConfidenceScoresTypedDict, +) +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) from mistralai.client.utils import validate_const import pydantic +from pydantic import model_serializer from pydantic.functional_validators import AfterValidator from typing import Literal -from typing_extensions import Annotated, TypedDict +from typing_extensions import Annotated, NotRequired, TypedDict class OCRSignatureBlockTypedDict(TypedDict): @@ -19,6 +30,8 @@ class OCRSignatureBlockTypedDict(TypedDict): bottom_right_y: int content: str r"""Text/markdown/html content of this block""" + confidence_scores: NotRequired[Nullable[OCRBlockConfidenceScoresTypedDict]] + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" type: Literal["signature"] @@ -36,11 +49,39 @@ class OCRSignatureBlock(BaseModel): content: str r"""Text/markdown/html content of this block""" + confidence_scores: OptionalNullable[OCRBlockConfidenceScores] = UNSET + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" + type: Annotated[ Annotated[Literal["signature"], AfterValidator(validate_const("signature"))], pydantic.Field(alias="type"), ] = "signature" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["confidence_scores"]) + nullable_fields = set(["confidence_scores"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m + try: OCRSignatureBlock.model_rebuild() diff --git a/src/mistralai/client/models/ocrtableblock.py b/src/mistralai/client/models/ocrtableblock.py index 97c8adb79..5831af82e 100644 --- a/src/mistralai/client/models/ocrtableblock.py +++ b/src/mistralai/client/models/ocrtableblock.py @@ -2,6 +2,10 @@ # @generated-id: dada7ebd13b0 from __future__ import annotations +from .ocrblockconfidencescores import ( + OCRBlockConfidenceScores, + OCRBlockConfidenceScoresTypedDict, +) from mistralai.client.types import ( BaseModel, Nullable, @@ -24,6 +28,8 @@ class OCRTableBlockTypedDict(TypedDict): bottom_right_y: int content: str r"""Text/markdown/html content of this block""" + confidence_scores: NotRequired[Nullable[OCRBlockConfidenceScoresTypedDict]] + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" type: Literal["table"] table_id: NotRequired[Nullable[str]] r"""References the corresponding entry in OCRPageObject.tables, when tables are extracted""" @@ -41,6 +47,9 @@ class OCRTableBlock(BaseModel): content: str r"""Text/markdown/html content of this block""" + confidence_scores: OptionalNullable[OCRBlockConfidenceScores] = UNSET + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" + type: Annotated[ Annotated[Literal["table"], AfterValidator(validate_const("table"))], pydantic.Field(alias="type"), @@ -51,8 +60,8 @@ class OCRTableBlock(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["table_id"]) - nullable_fields = set(["table_id"]) + optional_fields = set(["confidence_scores", "table_id"]) + nullable_fields = set(["confidence_scores", "table_id"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/ocrtextblock.py b/src/mistralai/client/models/ocrtextblock.py index bb6981f94..e3381740e 100644 --- a/src/mistralai/client/models/ocrtextblock.py +++ b/src/mistralai/client/models/ocrtextblock.py @@ -2,12 +2,23 @@ # @generated-id: d329f1be53f7 from __future__ import annotations -from mistralai.client.types import BaseModel +from .ocrblockconfidencescores import ( + OCRBlockConfidenceScores, + OCRBlockConfidenceScoresTypedDict, +) +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) from mistralai.client.utils import validate_const import pydantic +from pydantic import model_serializer from pydantic.functional_validators import AfterValidator from typing import Literal -from typing_extensions import Annotated, TypedDict +from typing_extensions import Annotated, NotRequired, TypedDict class OCRTextBlockTypedDict(TypedDict): @@ -17,6 +28,8 @@ class OCRTextBlockTypedDict(TypedDict): bottom_right_y: int content: str r"""Text/markdown/html content of this block""" + confidence_scores: NotRequired[Nullable[OCRBlockConfidenceScoresTypedDict]] + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" type: Literal["text"] @@ -32,11 +45,39 @@ class OCRTextBlock(BaseModel): content: str r"""Text/markdown/html content of this block""" + confidence_scores: OptionalNullable[OCRBlockConfidenceScores] = UNSET + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" + type: Annotated[ Annotated[Literal["text"], AfterValidator(validate_const("text"))], pydantic.Field(alias="type"), ] = "text" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["confidence_scores"]) + nullable_fields = set(["confidence_scores"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m + try: OCRTextBlock.model_rebuild() diff --git a/src/mistralai/client/models/ocrtitleblock.py b/src/mistralai/client/models/ocrtitleblock.py index 951f80f4c..bdb91c823 100644 --- a/src/mistralai/client/models/ocrtitleblock.py +++ b/src/mistralai/client/models/ocrtitleblock.py @@ -2,12 +2,23 @@ # @generated-id: 1a397a673c85 from __future__ import annotations -from mistralai.client.types import BaseModel +from .ocrblockconfidencescores import ( + OCRBlockConfidenceScores, + OCRBlockConfidenceScoresTypedDict, +) +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) from mistralai.client.utils import validate_const import pydantic +from pydantic import model_serializer from pydantic.functional_validators import AfterValidator from typing import Literal -from typing_extensions import Annotated, TypedDict +from typing_extensions import Annotated, NotRequired, TypedDict class OCRTitleBlockTypedDict(TypedDict): @@ -17,6 +28,8 @@ class OCRTitleBlockTypedDict(TypedDict): bottom_right_y: int content: str r"""Text/markdown/html content of this block""" + confidence_scores: NotRequired[Nullable[OCRBlockConfidenceScoresTypedDict]] + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" type: Literal["title"] @@ -32,11 +45,39 @@ class OCRTitleBlock(BaseModel): content: str r"""Text/markdown/html content of this block""" + confidence_scores: OptionalNullable[OCRBlockConfidenceScores] = UNSET + r"""Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.""" + type: Annotated[ Annotated[Literal["title"], AfterValidator(validate_const("title"))], pydantic.Field(alias="type"), ] = "title" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["confidence_scores"]) + nullable_fields = set(["confidence_scores"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m + try: OCRTitleBlock.model_rebuild() diff --git a/src/mistralai/client/models/orderbyclause.py b/src/mistralai/client/models/orderbyclause.py new file mode 100644 index 000000000..aa94f6ab6 --- /dev/null +++ b/src/mistralai/client/models/orderbyclause.py @@ -0,0 +1,41 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: c7a6d0430f04 + +from __future__ import annotations +from mistralai.client.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer +from typing import Literal, Optional +from typing_extensions import NotRequired, TypedDict + + +Direction = Literal[ + "asc", + "desc", +] + + +class OrderByClauseTypedDict(TypedDict): + field: str + direction: NotRequired[Direction] + + +class OrderByClause(BaseModel): + field: str + + direction: Optional[Direction] = "asc" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["direction"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/mistralai/client/models/otelfielddefinition.py b/src/mistralai/client/models/otelfielddefinition.py index 2bd04c1ff..d5ead98e1 100644 --- a/src/mistralai/client/models/otelfielddefinition.py +++ b/src/mistralai/client/models/otelfielddefinition.py @@ -2,6 +2,7 @@ # @generated-id: 4bf75d7f4f70 from __future__ import annotations +from .metricaggregation import MetricAggregation from mistralai.client.types import ( BaseModel, Nullable, @@ -66,6 +67,7 @@ class OtelFieldDefinitionTypedDict(TypedDict): label: str type: OtelFieldDefinitionType supported_operators: List[OtelFieldDefinitionSupportedOperator] + supported_aggregations: List[MetricAggregation] group: NotRequired[Nullable[str]] @@ -78,6 +80,8 @@ class OtelFieldDefinition(BaseModel): supported_operators: List[OtelFieldDefinitionSupportedOperator] + supported_aggregations: List[MetricAggregation] + group: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") diff --git a/src/mistralai/client/models/prompts_listop.py b/src/mistralai/client/models/prompts_listop.py index a34cd19b2..2abd2daf1 100644 --- a/src/mistralai/client/models/prompts_listop.py +++ b/src/mistralai/client/models/prompts_listop.py @@ -3,6 +3,8 @@ from __future__ import annotations from .listpromptsresponse import ListPromptsResponse, ListPromptsResponseTypedDict +from .listsortdirection import ListSortDirection +from .listsortfield import ListSortField from mistralai.client.types import BaseModel, UNSET_SENTINEL from mistralai.client.utils import FieldMetadata, QueryParamMetadata import pydantic @@ -16,6 +18,14 @@ class PromptsListRequestTypedDict(TypedDict): page_token: NotRequired[str] alias: NotRequired[str] fields: NotRequired[List[str]] + sort_field: NotRequired[ListSortField] + r"""Defaults to created_at when omitted.""" + sort_direction_query_parameter: NotRequired[ListSortDirection] + r"""Defaults to descending for timestamp fields and ascending for text fields.""" + sort_by: NotRequired[str] + r"""REST-friendly alias for sort.field. Supported values: created_at, last_modified_at, name, title.""" + sort_direction_query_parameter1: NotRequired[str] + r"""REST-friendly alias for sort.direction. Supported values: asc, desc.""" class PromptsListRequest(BaseModel): @@ -41,9 +51,47 @@ class PromptsListRequest(BaseModel): FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = None + sort_field: Annotated[ + Optional[ListSortField], + pydantic.Field(alias="sort.field"), + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""Defaults to created_at when omitted.""" + + sort_direction_query_parameter: Annotated[ + Optional[ListSortDirection], + pydantic.Field(alias="sort.direction"), + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""Defaults to descending for timestamp fields and ascending for text fields.""" + + sort_by: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""REST-friendly alias for sort.field. Supported values: created_at, last_modified_at, name, title.""" + + sort_direction_query_parameter1: Annotated[ + Optional[str], + pydantic.Field(alias="sort_direction"), + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""REST-friendly alias for sort.direction. Supported values: asc, desc.""" + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["pageSize", "pageToken", "alias", "fields"]) + optional_fields = set( + [ + "pageSize", + "pageToken", + "alias", + "fields", + "sort.field", + "sort.directionQueryParameter", + "sort_by", + "sort_directionQueryParameter1", + ] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/schemafielddatatype.py b/src/mistralai/client/models/schemafielddatatype.py index 4a35422eb..aaa334590 100644 --- a/src/mistralai/client/models/schemafielddatatype.py +++ b/src/mistralai/client/models/schemafielddatatype.py @@ -2,18 +2,14 @@ # @generated-id: c391391d0988 from __future__ import annotations -from mistralai.client.types import UnrecognizedStr -from typing import Literal, Union +from typing import Literal -SchemaFieldDataType = Union[ - Literal[ - "int", - "bool", - "string", - "embedding", - "long", - "float", - ], - UnrecognizedStr, +SchemaFieldDataType = Literal[ + "int", + "bool", + "string", + "embedding", + "long", + "float", ] diff --git a/src/mistralai/client/models/schemafieldindex.py b/src/mistralai/client/models/schemafieldindex.py index 14197c41c..e1ef8b12e 100644 --- a/src/mistralai/client/models/schemafieldindex.py +++ b/src/mistralai/client/models/schemafieldindex.py @@ -2,15 +2,11 @@ # @generated-id: 9501fc2b7fa1 from __future__ import annotations -from mistralai.client.types import UnrecognizedStr -from typing import Literal, Union +from typing import Literal -SchemaFieldIndex = Union[ - Literal[ - "ann", - "bm25", - "attribute", - ], - UnrecognizedStr, +SchemaFieldIndex = Literal[ + "ann", + "bm25", + "attribute", ] diff --git a/src/mistralai/client/models/schemafieldstorage.py b/src/mistralai/client/models/schemafieldstorage.py index b330be983..544e1909c 100644 --- a/src/mistralai/client/models/schemafieldstorage.py +++ b/src/mistralai/client/models/schemafieldstorage.py @@ -2,14 +2,10 @@ # @generated-id: 6ec367e3cfe5 from __future__ import annotations -from mistralai.client.types import UnrecognizedStr -from typing import Literal, Union +from typing import Literal -SchemaFieldStorage = Union[ - Literal[ - "in_memory", - "on_disk", - ], - UnrecognizedStr, +SchemaFieldStorage = Literal[ + "in_memory", + "on_disk", ] diff --git a/src/mistralai/client/models/set_index_summary_v1_rag_indexes_index_index_id_summary_field_language_putop.py b/src/mistralai/client/models/set_index_summary_v1_rag_indexes_index_index_id_summary_field_language_putop.py deleted file mode 100644 index 46a34cb53..000000000 --- a/src/mistralai/client/models/set_index_summary_v1_rag_indexes_index_index_id_summary_field_language_putop.py +++ /dev/null @@ -1,49 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 3d82ad6734f5 - -from __future__ import annotations -from .updatesummaryrequestsummary import ( - UpdateSummaryRequestSummary, - UpdateSummaryRequestSummaryTypedDict, -) -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata, RequestMetadata -from typing import Literal -from typing_extensions import Annotated, TypedDict - - -SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutLanguage = Literal[ - "en", - "fr", - "es", - "de", - "it", - "pt_br", - "pl", - "ar", - "nl", -] - - -class SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutRequestTypedDict( - TypedDict -): - index_id: str - language: SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutLanguage - update_summary_request_summary: UpdateSummaryRequestSummaryTypedDict - - -class SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutRequest(BaseModel): - index_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - language: Annotated[ - SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutLanguage, - FieldMetadata(path=PathParamMetadata(style="simple", explode=False)), - ] - - update_summary_request_summary: Annotated[ - UpdateSummaryRequestSummary, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] diff --git a/src/mistralai/client/models/set_schema_summary_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_putop.py b/src/mistralai/client/models/set_schema_summary_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_putop.py deleted file mode 100644 index 564f96261..000000000 --- a/src/mistralai/client/models/set_schema_summary_v1_rag_indexes_index_index_id_schemas_schema_schema_id_summary_field_language_putop.py +++ /dev/null @@ -1,56 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 3dc4744355c8 - -from __future__ import annotations -from .updatesummaryrequestsummary import ( - UpdateSummaryRequestSummary, - UpdateSummaryRequestSummaryTypedDict, -) -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata, RequestMetadata -from typing import Literal -from typing_extensions import Annotated, TypedDict - - -SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutLanguage = Literal[ - "en", - "fr", - "es", - "de", - "it", - "pt_br", - "pl", - "ar", - "nl", -] - - -class SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutRequestTypedDict( - TypedDict -): - index_id: str - schema_id: str - language: SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutLanguage - update_summary_request_summary: UpdateSummaryRequestSummaryTypedDict - - -class SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutRequest( - BaseModel -): - index_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - schema_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - language: Annotated[ - SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutLanguage, - FieldMetadata(path=PathParamMetadata(style="simple", explode=False)), - ] - - update_summary_request_summary: Annotated[ - UpdateSummaryRequestSummary, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] diff --git a/src/mistralai/client/models/skills_listop.py b/src/mistralai/client/models/skills_listop.py index 21bcce37d..f5a43bc5b 100644 --- a/src/mistralai/client/models/skills_listop.py +++ b/src/mistralai/client/models/skills_listop.py @@ -3,6 +3,8 @@ from __future__ import annotations from .listskillsresponse import ListSkillsResponse, ListSkillsResponseTypedDict +from .listsortdirection import ListSortDirection +from .listsortfield import ListSortField from mistralai.client.types import BaseModel, UNSET_SENTINEL from mistralai.client.utils import FieldMetadata, QueryParamMetadata import pydantic @@ -16,6 +18,14 @@ class SkillsListRequestTypedDict(TypedDict): page_token: NotRequired[str] alias: NotRequired[str] fields: NotRequired[List[str]] + sort_field: NotRequired[ListSortField] + r"""Defaults to created_at when omitted.""" + sort_direction_query_parameter: NotRequired[ListSortDirection] + r"""Defaults to descending for timestamp fields and ascending for text fields.""" + sort_by: NotRequired[str] + r"""REST-friendly alias for sort.field. Supported values: created_at, last_modified_at, name, title.""" + sort_direction_query_parameter1: NotRequired[str] + r"""REST-friendly alias for sort.direction. Supported values: asc, desc.""" class SkillsListRequest(BaseModel): @@ -41,9 +51,47 @@ class SkillsListRequest(BaseModel): FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = None + sort_field: Annotated[ + Optional[ListSortField], + pydantic.Field(alias="sort.field"), + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""Defaults to created_at when omitted.""" + + sort_direction_query_parameter: Annotated[ + Optional[ListSortDirection], + pydantic.Field(alias="sort.direction"), + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""Defaults to descending for timestamp fields and ascending for text fields.""" + + sort_by: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""REST-friendly alias for sort.field. Supported values: created_at, last_modified_at, name, title.""" + + sort_direction_query_parameter1: Annotated[ + Optional[str], + pydantic.Field(alias="sort_direction"), + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""REST-friendly alias for sort.direction. Supported values: asc, desc.""" + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["pageSize", "pageToken", "alias", "fields"]) + optional_fields = set( + [ + "pageSize", + "pageToken", + "alias", + "fields", + "sort.field", + "sort.directionQueryParameter", + "sort_by", + "sort_directionQueryParameter1", + ] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/summarychunk.py b/src/mistralai/client/models/summarychunk.py deleted file mode 100644 index 3e96a4cdd..000000000 --- a/src/mistralai/client/models/summarychunk.py +++ /dev/null @@ -1,18 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: fcd9710a560b - -from __future__ import annotations -from mistralai.client.types import BaseModel -from typing_extensions import TypedDict - - -class SummaryChunkTypedDict(TypedDict): - r"""Regular content.""" - - content: str - - -class SummaryChunk(BaseModel): - r"""Regular content.""" - - content: str diff --git a/src/mistralai/client/models/summaryerror.py b/src/mistralai/client/models/summaryerror.py deleted file mode 100644 index 2df932bc0..000000000 --- a/src/mistralai/client/models/summaryerror.py +++ /dev/null @@ -1,18 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: e7372b57ed13 - -from __future__ import annotations -from mistralai.client.types import BaseModel -from typing_extensions import TypedDict - - -class SummaryErrorTypedDict(TypedDict): - r"""If an error is encountered while streaming responses this is returned.""" - - error: str - - -class SummaryError(BaseModel): - r"""If an error is encountered while streaming responses this is returned.""" - - error: str diff --git a/src/mistralai/client/models/summarymetadata.py b/src/mistralai/client/models/summarymetadata.py deleted file mode 100644 index ea186de7c..000000000 --- a/src/mistralai/client/models/summarymetadata.py +++ /dev/null @@ -1,22 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 53768f7691ec - -from __future__ import annotations -from .summarystatus_dollar_defs import SummaryStatusDollarDefs -from mistralai.client.types import BaseModel -from typing_extensions import TypedDict - - -class SummaryMetadataTypedDict(TypedDict): - r"""Summary content. Expected to be the first value returned.""" - - status: SummaryStatusDollarDefs - translated: bool - - -class SummaryMetadata(BaseModel): - r"""Summary content. Expected to be the first value returned.""" - - status: SummaryStatusDollarDefs - - translated: bool diff --git a/src/mistralai/client/models/summarystatus_dollar_defs.py b/src/mistralai/client/models/summarystatus_dollar_defs.py deleted file mode 100644 index fc79aae9f..000000000 --- a/src/mistralai/client/models/summarystatus_dollar_defs.py +++ /dev/null @@ -1,16 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 1d2d0997d094 - -from __future__ import annotations -from mistralai.client.types import UnrecognizedStr -from typing import Literal, Union - - -SummaryStatusDollarDefs = Union[ - Literal[ - "handwritten", - "generated", - "generated_confirmed", - ], - UnrecognizedStr, -] diff --git a/src/mistralai/client/models/timedimension.py b/src/mistralai/client/models/timedimension.py new file mode 100644 index 000000000..ca582175d --- /dev/null +++ b/src/mistralai/client/models/timedimension.py @@ -0,0 +1,33 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 9bb5104c991f + +from __future__ import annotations +from .granularity import Granularity +from mistralai.client.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer +from typing import Optional +from typing_extensions import NotRequired, TypedDict + + +class TimeDimensionTypedDict(TypedDict): + granularity: NotRequired[Granularity] + + +class TimeDimension(BaseModel): + granularity: Optional[Granularity] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["granularity"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/mistralai/client/models/get_index_details_v1_rag_indexes_index_index_id_detail_getop.py b/src/mistralai/client/models/unregister_search_index_v1_rag_indexes_index_id_deleteop.py similarity index 68% rename from src/mistralai/client/models/get_index_details_v1_rag_indexes_index_index_id_detail_getop.py rename to src/mistralai/client/models/unregister_search_index_v1_rag_indexes_index_id_deleteop.py index 20b41f59b..0d76c3006 100644 --- a/src/mistralai/client/models/get_index_details_v1_rag_indexes_index_index_id_detail_getop.py +++ b/src/mistralai/client/models/unregister_search_index_v1_rag_indexes_index_id_deleteop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: f198b522bef3 +# @generated-id: a9e89c12ff6c from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,11 +7,11 @@ from typing_extensions import Annotated, TypedDict -class GetIndexDetailsV1RagIndexesIndexIndexIDDetailGetRequestTypedDict(TypedDict): +class UnregisterSearchIndexV1RagIndexesIndexIDDeleteRequestTypedDict(TypedDict): index_id: str -class GetIndexDetailsV1RagIndexesIndexIndexIDDetailGetRequest(BaseModel): +class UnregisterSearchIndexV1RagIndexesIndexIDDeleteRequest(BaseModel): index_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/unregister_search_index_v1_rag_indexes_index_index_id_deleteop.py b/src/mistralai/client/models/unregister_search_index_v1_rag_indexes_index_index_id_deleteop.py deleted file mode 100644 index 12b608b68..000000000 --- a/src/mistralai/client/models/unregister_search_index_v1_rag_indexes_index_index_id_deleteop.py +++ /dev/null @@ -1,17 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: a27016410db9 - -from __future__ import annotations -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from typing_extensions import Annotated, TypedDict - - -class UnregisterSearchIndexV1RagIndexesIndexIndexIDDeleteRequestTypedDict(TypedDict): - index_id: str - - -class UnregisterSearchIndexV1RagIndexesIndexIndexIDDeleteRequest(BaseModel): - index_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] diff --git a/src/mistralai/client/models/update_index_metrics_v1_rag_indexes_index_index_id_metrics_putop.py b/src/mistralai/client/models/update_index_metrics_v1_rag_indexes_index_id_metrics_putop.py similarity index 87% rename from src/mistralai/client/models/update_index_metrics_v1_rag_indexes_index_index_id_metrics_putop.py rename to src/mistralai/client/models/update_index_metrics_v1_rag_indexes_index_id_metrics_putop.py index dbbe330d0..d56ff70df 100644 --- a/src/mistralai/client/models/update_index_metrics_v1_rag_indexes_index_index_id_metrics_putop.py +++ b/src/mistralai/client/models/update_index_metrics_v1_rag_indexes_index_id_metrics_putop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: a57bee1ef839 +# @generated-id: 9ac395a29805 from __future__ import annotations from .updateindexmetricsrequestindexmetricsoffline import ( @@ -35,12 +35,12 @@ ] -class UpdateIndexMetricsV1RagIndexesIndexIndexIDMetricsPutRequestTypedDict(TypedDict): +class UpdateIndexMetricsV1RagIndexesIndexIDMetricsPutRequestTypedDict(TypedDict): index_id: str request_body: MetricsDataTypedDict -class UpdateIndexMetricsV1RagIndexesIndexIndexIDMetricsPutRequest(BaseModel): +class UpdateIndexMetricsV1RagIndexesIndexIDMetricsPutRequest(BaseModel): index_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/updatesummaryrequestsummary.py b/src/mistralai/client/models/updatesummaryrequestsummary.py deleted file mode 100644 index 515629c43..000000000 --- a/src/mistralai/client/models/updatesummaryrequestsummary.py +++ /dev/null @@ -1,27 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: c7ca84423c98 - -from __future__ import annotations -from mistralai.client.types import BaseModel -from typing import Literal -from typing_extensions import TypedDict - - -UpdateSummaryRequestSummaryStatus = Literal[ - "handwritten", - "generated_confirmed", -] - - -class UpdateSummaryRequestSummaryTypedDict(TypedDict): - content: str - status: UpdateSummaryRequestSummaryStatus - translated: bool - - -class UpdateSummaryRequestSummary(BaseModel): - content: str - - status: UpdateSummaryRequestSummaryStatus - - translated: bool diff --git a/src/mistralai/client/models/vespagetretrievableresponseretrievable.py b/src/mistralai/client/models/vespagetretrievableresponseretrievable.py deleted file mode 100644 index 4bbbfea4e..000000000 --- a/src/mistralai/client/models/vespagetretrievableresponseretrievable.py +++ /dev/null @@ -1,18 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 966bc630538b - -from __future__ import annotations -from mistralai.client.types import BaseModel -from typing import Any, Dict -from typing_extensions import TypedDict - - -class VespaGetRetrievableResponseRetrievableTypedDict(TypedDict): - id: str - fields: Dict[str, Any] - - -class VespaGetRetrievableResponseRetrievable(BaseModel): - id: str - - fields: Dict[str, Any] diff --git a/src/mistralai/client/models/workflowexecutionrequest.py b/src/mistralai/client/models/workflowexecutionrequest.py index ea5e752df..20c674175 100644 --- a/src/mistralai/client/models/workflowexecutionrequest.py +++ b/src/mistralai/client/models/workflowexecutionrequest.py @@ -25,6 +25,8 @@ class WorkflowExecutionRequestTypedDict(TypedDict): timeout_seconds: NotRequired[Nullable[float]] r"""Maximum time to wait for completion when wait_for_result is true.""" custom_tracing_attributes: NotRequired[Nullable[Dict[str, str]]] + force_new_trace: NotRequired[bool] + r"""If true, ignore the caller's trace context and start a new, independent trace for this execution instead of joining the caller's trace.""" extensions: NotRequired[Nullable[Dict[str, Any]]] r"""Plugin-specific data to propagate into WorkflowContext.extensions at execution time.""" task_queue: NotRequired[Nullable[str]] @@ -48,6 +50,9 @@ class WorkflowExecutionRequest(BaseModel): custom_tracing_attributes: OptionalNullable[Dict[str, str]] = UNSET + force_new_trace: Optional[bool] = False + r"""If true, ignore the caller's trace context and start a new, independent trace for this execution instead of joining the caller's trace.""" + extensions: OptionalNullable[Dict[str, Any]] = UNSET r"""Plugin-specific data to propagate into WorkflowContext.extensions at execution time.""" @@ -71,6 +76,7 @@ def serialize_model(self, handler): "wait_for_result", "timeout_seconds", "custom_tracing_attributes", + "force_new_trace", "extensions", "task_queue", "deployment_name", diff --git a/src/mistralai/client/ocr.py b/src/mistralai/client/ocr.py index b4ff23a4d..caed50bb7 100644 --- a/src/mistralai/client/ocr.py +++ b/src/mistralai/client/ocr.py @@ -56,7 +56,7 @@ def process( :param extract_header: Extract the page header into the response's `header` field and remove it from the markdown content :param extract_footer: Extract the page footer into the response's `footer` field and remove it from the markdown content :param include_blocks: Return paragraph-level bounding boxes for all content blocks in the response - :param confidence_scores_granularity: Granularity for confidence scores: 'page' (aggregate only), 'word' (per-word scores). Defaults to None (no confidence scores) to keep response payload small. + :param confidence_scores_granularity: Granularity for confidence scores: 'page' (aggregate only), 'word' (per-word scores), or 'block' (per-block scores). Defaults to None (no confidence scores) to keep response payload small. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -199,7 +199,7 @@ async def process_async( :param extract_header: Extract the page header into the response's `header` field and remove it from the markdown content :param extract_footer: Extract the page footer into the response's `footer` field and remove it from the markdown content :param include_blocks: Return paragraph-level bounding boxes for all content blocks in the response - :param confidence_scores_granularity: Granularity for confidence scores: 'page' (aggregate only), 'word' (per-word scores). Defaults to None (no confidence scores) to keep response payload small. + :param confidence_scores_granularity: Granularity for confidence scores: 'page' (aggregate only), 'word' (per-word scores), or 'block' (per-block scores). Defaults to None (no confidence scores) to keep response payload small. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds diff --git a/src/mistralai/client/records.py b/src/mistralai/client/records.py index 7bf1f05ff..cdb3f6c2d 100644 --- a/src/mistralai/client/records.py +++ b/src/mistralai/client/records.py @@ -20,7 +20,7 @@ def fetch( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.DatasetRecord: - r"""Get the content of a given conversation from a dataset + r"""Get the content of a given dataset record :param dataset_record_id: :param retries: Override the default retry configuration for this method @@ -113,7 +113,7 @@ async def fetch_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.DatasetRecord: - r"""Get the content of a given conversation from a dataset + r"""Get the content of a given dataset record :param dataset_record_id: :param retries: Override the default retry configuration for this method @@ -803,7 +803,7 @@ def update_payload( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ): - r"""Update a dataset record conversation payload + r"""Update a dataset record payload :param dataset_record_id: :param payload: Caller-authored input object stored on a dataset record. @@ -908,7 +908,7 @@ async def update_payload_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ): - r"""Update a dataset record conversation payload + r"""Update a dataset record payload :param dataset_record_id: :param payload: Caller-authored input object stored on a dataset record. @@ -1013,7 +1013,7 @@ def update_properties( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ): - r"""Update conversation properties + r"""Update dataset record properties :param dataset_record_id: :param properties: @@ -1118,7 +1118,7 @@ async def update_properties_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ): - r"""Update conversation properties + r"""Update dataset record properties :param dataset_record_id: :param properties: diff --git a/src/mistralai/client/schedules.py b/src/mistralai/client/schedules.py index 59f100727..09c046b60 100644 --- a/src/mistralai/client/schedules.py +++ b/src/mistralai/client/schedules.py @@ -20,6 +20,7 @@ def get_schedules( status: OptionalNullable[ models.GetSchedulesV1WorkflowsSchedulesGetStatus ] = UNSET, + search: OptionalNullable[str] = UNSET, page_size: OptionalNullable[int] = UNSET, next_page_token: OptionalNullable[str] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, @@ -29,9 +30,10 @@ def get_schedules( ) -> Optional[models.GetSchedulesV1WorkflowsSchedulesGetResponse]: r"""Get Schedules - :param workflow_name: Filter by workflow name + :param workflow_name: Filter by exact workflow name :param user_id: Filter by user ID. Pass 'current' to resolve to the authenticated user's ID. :param status: Filter by schedule status: 'active' or 'paused' + :param search: Prefix search query for workflow name :param page_size: Number of items per page. Omitting this parameter fetches all results at once (deprecated — pass page_size to use pagination). :param next_page_token: Token for the next page of results :param retries: Override the default retry configuration for this method @@ -56,6 +58,7 @@ def get_schedules( workflow_name=workflow_name, user_id=user_id, status=status, + search=search, page_size=page_size, next_page_token=next_page_token, ) @@ -122,6 +125,7 @@ def next_func() -> Optional[models.GetSchedulesV1WorkflowsSchedulesGetResponse]: workflow_name=workflow_name, user_id=user_id, status=status, + search=search, page_size=page_size, next_page_token=next_cursor, retries=retries, @@ -160,6 +164,7 @@ async def get_schedules_async( status: OptionalNullable[ models.GetSchedulesV1WorkflowsSchedulesGetStatus ] = UNSET, + search: OptionalNullable[str] = UNSET, page_size: OptionalNullable[int] = UNSET, next_page_token: OptionalNullable[str] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, @@ -169,9 +174,10 @@ async def get_schedules_async( ) -> Optional[models.GetSchedulesV1WorkflowsSchedulesGetResponse]: r"""Get Schedules - :param workflow_name: Filter by workflow name + :param workflow_name: Filter by exact workflow name :param user_id: Filter by user ID. Pass 'current' to resolve to the authenticated user's ID. :param status: Filter by schedule status: 'active' or 'paused' + :param search: Prefix search query for workflow name :param page_size: Number of items per page. Omitting this parameter fetches all results at once (deprecated — pass page_size to use pagination). :param next_page_token: Token for the next page of results :param retries: Override the default retry configuration for this method @@ -196,6 +202,7 @@ async def get_schedules_async( workflow_name=workflow_name, user_id=user_id, status=status, + search=search, page_size=page_size, next_page_token=next_page_token, ) @@ -267,6 +274,7 @@ async def empty_result(): workflow_name=workflow_name, user_id=user_id, status=status, + search=search, page_size=page_size, next_page_token=next_cursor, retries=retries, diff --git a/src/mistralai/client/search_indexes.py b/src/mistralai/client/search_indexes.py index ced68f3d6..72c173655 100644 --- a/src/mistralai/client/search_indexes.py +++ b/src/mistralai/client/search_indexes.py @@ -5,31 +5,24 @@ from mistralai.client import errors, models, utils from mistralai.client._hooks import HookContext from mistralai.client.types import OptionalNullable, UNSET -from mistralai.client.utils import get_security_from_env, jsonl +from mistralai.client.utils import get_security_from_env from mistralai.client.utils.unmarshal_json_response import unmarshal_json_response -from typing import Any, List, Mapping, Optional, Union +from typing import Any, Mapping, Optional, Union class SearchIndexes(BaseSDK): - def register( + def get_indexes( self, *, - name: str, - index: Union[ - models.RegisterSearchIndexRequestIndexIndex, - models.RegisterSearchIndexRequestIndexIndexTypedDict, - ], - status: Optional[models.RegisterSearchIndexRequestIndexStatus] = "offline", retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.RegisterSearchIndexResponseIndex: - r"""Register (or re-register) a search index + ) -> models.GetSearchIndexSummaryResponse: + r"""Get Index Summaries + + Fetch all indexes available to a user - :param name: - :param index: - :param status: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -47,31 +40,19 @@ def register( base_url = server_url else: base_url = self._get_url(base_url, url_variables) - - request = models.RegisterSearchIndexRequestIndex( - name=name, - status=status, - index=utils.get_pydantic_model( - index, models.RegisterSearchIndexRequestIndexIndex - ), - ) - req = self._build_request( - method="PUT", + method="GET", path="/v1/rag/indexes", base_url=base_url, url_variables=url_variables, - request=request, - request_body_required=True, + request=None, + request_body_required=False, request_has_path_params=False, request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.RegisterSearchIndexRequestIndex - ), allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -88,7 +69,7 @@ def register( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="register_search_index_v1_rag_indexes_put", + operation_id="get_index_summaries_v1_rag_indexes_get", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -99,16 +80,10 @@ def register( retry_config=retry_config, ) - response_data: Any = None if utils.match_response(http_res, "200", "application/json"): return unmarshal_json_response( - models.RegisterSearchIndexResponseIndex, http_res - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res + models.GetSearchIndexSummaryResponse, http_res ) - raise errors.HTTPValidationError(response_data, http_res) if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): http_res_text = utils.stream_to_text(http_res) raise errors.SDKError("API error occurred", http_res, http_res_text) @@ -118,25 +93,18 @@ def register( raise errors.SDKError("Unexpected response received", http_res) - async def register_async( + async def get_indexes_async( self, *, - name: str, - index: Union[ - models.RegisterSearchIndexRequestIndexIndex, - models.RegisterSearchIndexRequestIndexIndexTypedDict, - ], - status: Optional[models.RegisterSearchIndexRequestIndexStatus] = "offline", retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.RegisterSearchIndexResponseIndex: - r"""Register (or re-register) a search index + ) -> models.GetSearchIndexSummaryResponse: + r"""Get Index Summaries + + Fetch all indexes available to a user - :param name: - :param index: - :param status: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -154,31 +122,19 @@ async def register_async( base_url = server_url else: base_url = self._get_url(base_url, url_variables) - - request = models.RegisterSearchIndexRequestIndex( - name=name, - status=status, - index=utils.get_pydantic_model( - index, models.RegisterSearchIndexRequestIndexIndex - ), - ) - req = self._build_request_async( - method="PUT", + method="GET", path="/v1/rag/indexes", base_url=base_url, url_variables=url_variables, - request=request, - request_body_required=True, + request=None, + request_body_required=False, request_has_path_params=False, request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.RegisterSearchIndexRequestIndex - ), allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -195,7 +151,7 @@ async def register_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="register_search_index_v1_rag_indexes_put", + operation_id="get_index_summaries_v1_rag_indexes_get", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -206,16 +162,10 @@ async def register_async( retry_config=retry_config, ) - response_data: Any = None if utils.match_response(http_res, "200", "application/json"): return unmarshal_json_response( - models.RegisterSearchIndexResponseIndex, http_res - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res + models.GetSearchIndexSummaryResponse, http_res ) - raise errors.HTTPValidationError(response_data, http_res) if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): http_res_text = await utils.stream_to_text_async(http_res) raise errors.SDKError("API error occurred", http_res, http_res_text) @@ -225,18 +175,25 @@ async def register_async( raise errors.SDKError("Unexpected response received", http_res) - def get_index_summaries( + def register( self, *, + name: str, + index: Union[ + models.RegisterSearchIndexRequestIndexIndex, + models.RegisterSearchIndexRequestIndexIndexTypedDict, + ], + status: Optional[models.RegisterSearchIndexRequestIndexStatus] = "offline", retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> List[models.GetSearchIndexSummaryResponseIndex]: - r"""Get Index Summaries - - Fetch summary view of all indexes available to a user + ) -> models.RegisterSearchIndexResponseIndex: + r"""Register (or re-register) a search index + :param name: + :param index: + :param status: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -254,19 +211,31 @@ def get_index_summaries( base_url = server_url else: base_url = self._get_url(base_url, url_variables) + + request = models.RegisterSearchIndexRequestIndex( + name=name, + status=status, + index=utils.get_pydantic_model( + index, models.RegisterSearchIndexRequestIndexIndex + ), + ) + req = self._build_request( - method="GET", - path="/v1/rag/indexes/summary", + method="PUT", + path="/v1/rag/indexes", base_url=base_url, url_variables=url_variables, - request=None, - request_body_required=False, + request=request, + request_body_required=True, request_has_path_params=False, request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request, False, False, "json", models.RegisterSearchIndexRequestIndex + ), allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -283,7 +252,7 @@ def get_index_summaries( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="get_index_summaries_v1_rag_indexes_summary_get", + operation_id="register_search_index_v1_rag_indexes_put", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -294,10 +263,16 @@ def get_index_summaries( retry_config=retry_config, ) + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): return unmarshal_json_response( - List[models.GetSearchIndexSummaryResponseIndex], http_res + models.RegisterSearchIndexResponseIndex, http_res + ) + if utils.match_response(http_res, "422", "application/json"): + response_data = unmarshal_json_response( + errors.HTTPValidationErrorData, http_res ) + raise errors.HTTPValidationError(response_data, http_res) if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): http_res_text = utils.stream_to_text(http_res) raise errors.SDKError("API error occurred", http_res, http_res_text) @@ -307,18 +282,25 @@ def get_index_summaries( raise errors.SDKError("Unexpected response received", http_res) - async def get_index_summaries_async( + async def register_async( self, *, + name: str, + index: Union[ + models.RegisterSearchIndexRequestIndexIndex, + models.RegisterSearchIndexRequestIndexIndexTypedDict, + ], + status: Optional[models.RegisterSearchIndexRequestIndexStatus] = "offline", retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> List[models.GetSearchIndexSummaryResponseIndex]: - r"""Get Index Summaries - - Fetch summary view of all indexes available to a user + ) -> models.RegisterSearchIndexResponseIndex: + r"""Register (or re-register) a search index + :param name: + :param index: + :param status: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -336,19 +318,31 @@ async def get_index_summaries_async( base_url = server_url else: base_url = self._get_url(base_url, url_variables) + + request = models.RegisterSearchIndexRequestIndex( + name=name, + status=status, + index=utils.get_pydantic_model( + index, models.RegisterSearchIndexRequestIndexIndex + ), + ) + req = self._build_request_async( - method="GET", - path="/v1/rag/indexes/summary", + method="PUT", + path="/v1/rag/indexes", base_url=base_url, url_variables=url_variables, - request=None, - request_body_required=False, + request=request, + request_body_required=True, request_has_path_params=False, request_has_query_params=True, user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request, False, False, "json", models.RegisterSearchIndexRequestIndex + ), allow_empty_value=None, timeout_ms=timeout_ms, ) @@ -365,7 +359,7 @@ async def get_index_summaries_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="get_index_summaries_v1_rag_indexes_summary_get", + operation_id="register_search_index_v1_rag_indexes_put", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -376,10 +370,16 @@ async def get_index_summaries_async( retry_config=retry_config, ) + response_data: Any = None if utils.match_response(http_res, "200", "application/json"): return unmarshal_json_response( - List[models.GetSearchIndexSummaryResponseIndex], http_res + models.RegisterSearchIndexResponseIndex, http_res + ) + if utils.match_response(http_res, "422", "application/json"): + response_data = unmarshal_json_response( + errors.HTTPValidationErrorData, http_res ) + raise errors.HTTPValidationError(response_data, http_res) if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): http_res_text = await utils.stream_to_text_async(http_res) raise errors.SDKError("API error occurred", http_res, http_res_text) @@ -421,13 +421,13 @@ def unregister( else: base_url = self._get_url(base_url, url_variables) - request = models.UnregisterSearchIndexV1RagIndexesIndexIndexIDDeleteRequest( + request = models.UnregisterSearchIndexV1RagIndexesIndexIDDeleteRequest( index_id=index_id, ) req = self._build_request( method="DELETE", - path="/v1/rag/indexes/index/{index_id}", + path="/v1/rag/indexes/{index_id}", base_url=base_url, url_variables=url_variables, request=request, @@ -454,7 +454,7 @@ def unregister( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="unregister_search_index_v1_rag_indexes_index__index_id__delete", + operation_id="unregister_search_index_v1_rag_indexes__index_id__delete", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -514,13 +514,13 @@ async def unregister_async( else: base_url = self._get_url(base_url, url_variables) - request = models.UnregisterSearchIndexV1RagIndexesIndexIndexIDDeleteRequest( + request = models.UnregisterSearchIndexV1RagIndexesIndexIDDeleteRequest( index_id=index_id, ) req = self._build_request_async( method="DELETE", - path="/v1/rag/indexes/index/{index_id}", + path="/v1/rag/indexes/{index_id}", base_url=base_url, url_variables=url_variables, request=request, @@ -547,7 +547,7 @@ async def unregister_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="unregister_search_index_v1_rag_indexes_index__index_id__delete", + operation_id="unregister_search_index_v1_rag_indexes__index_id__delete", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -609,14 +609,14 @@ def update_index_metrics( else: base_url = self._get_url(base_url, url_variables) - request = models.UpdateIndexMetricsV1RagIndexesIndexIndexIDMetricsPutRequest( + request = models.UpdateIndexMetricsV1RagIndexesIndexIDMetricsPutRequest( index_id=index_id, request_body=utils.get_pydantic_model(request_body, models.MetricsData), ) req = self._build_request( method="PUT", - path="/v1/rag/indexes/index/{index_id}/metrics", + path="/v1/rag/indexes/{index_id}/metrics", base_url=base_url, url_variables=url_variables, request=request, @@ -646,7 +646,7 @@ def update_index_metrics( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="update_index_metrics_v1_rag_indexes_index__index_id__metrics_put", + operation_id="update_index_metrics_v1_rag_indexes__index_id__metrics_put", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -702,14 +702,14 @@ async def update_index_metrics_async( else: base_url = self._get_url(base_url, url_variables) - request = models.UpdateIndexMetricsV1RagIndexesIndexIndexIDMetricsPutRequest( + request = models.UpdateIndexMetricsV1RagIndexesIndexIDMetricsPutRequest( index_id=index_id, request_body=utils.get_pydantic_model(request_body, models.MetricsData), ) req = self._build_request_async( method="PUT", - path="/v1/rag/indexes/index/{index_id}/metrics", + path="/v1/rag/indexes/{index_id}/metrics", base_url=base_url, url_variables=url_variables, request=request, @@ -739,7 +739,7 @@ async def update_index_metrics_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="update_index_metrics_v1_rag_indexes_index__index_id__metrics_put", + operation_id="update_index_metrics_v1_rag_indexes__index_id__metrics_put", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -760,2287 +760,3 @@ async def update_index_metrics_async( raise errors.SDKError("API error occurred", http_res, http_res_text) raise errors.SDKError("Unexpected response received", http_res) - - def get_index_detail( - self, - *, - index_id: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.GetSearchIndexDetailResponseIndex: - r"""Get Index Details - - Get a detailed view of the stored data for a single index - - :param index_id: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.GetIndexDetailsV1RagIndexesIndexIndexIDDetailGetRequest( - index_id=index_id, - ) - - req = self._build_request( - method="GET", - path="/v1/rag/indexes/index/{index_id}/detail", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="get_index_details_v1_rag_indexes_index__index_id__detail_get", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response( - models.GetSearchIndexDetailResponseIndex, http_res - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - async def get_index_detail_async( - self, - *, - index_id: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.GetSearchIndexDetailResponseIndex: - r"""Get Index Details - - Get a detailed view of the stored data for a single index - - :param index_id: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.GetIndexDetailsV1RagIndexesIndexIndexIDDetailGetRequest( - index_id=index_id, - ) - - req = self._build_request_async( - method="GET", - path="/v1/rag/indexes/index/{index_id}/detail", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="get_index_details_v1_rag_indexes_index__index_id__detail_get", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response( - models.GetSearchIndexDetailResponseIndex, http_res - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - def get_index_summary( - self, - *, - index_id: str, - language: models.GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetLanguage, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.GetSummaryResponseSummary: - r"""Get Index Summary - - Retrieve the summary field for an index if it exists - - :param index_id: - :param language: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetRequest( - index_id=index_id, - language=language, - ) - - req = self._build_request( - method="GET", - path="/v1/rag/indexes/index/{index_id}/summary_field/{language}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="get_index_summary_v1_rag_indexes_index__index_id__summary_field__language__get", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.GetSummaryResponseSummary, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - async def get_index_summary_async( - self, - *, - index_id: str, - language: models.GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetLanguage, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.GetSummaryResponseSummary: - r"""Get Index Summary - - Retrieve the summary field for an index if it exists - - :param index_id: - :param language: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.GetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguageGetRequest( - index_id=index_id, - language=language, - ) - - req = self._build_request_async( - method="GET", - path="/v1/rag/indexes/index/{index_id}/summary_field/{language}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="get_index_summary_v1_rag_indexes_index__index_id__summary_field__language__get", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.GetSummaryResponseSummary, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - def generate_index_summary( - self, - *, - index_id: str, - language: models.GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostLanguage, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> jsonl.JsonLStream[ - models.GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostSummaryStreamTypes - ]: - r"""Generate a summary field for an index - - Streams a summary for the index in chunks of json. - - The first chunk contains metadata for the summary, the following contain - chunks of 'content' that should be joined together to form a full summary. - - :param index_id: - :param language: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostRequest( - index_id=index_id, - language=language, - ) - - req = self._build_request( - method="POST", - path="/v1/rag/indexes/index/{index_id}/summary_field/{language}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/x-ndjson", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="generate_index_summary_v1_rag_indexes_index__index_id__summary_field__language__post", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - stream=True, - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/x-ndjson"): - return jsonl.JsonLStream( - http_res, - lambda raw: utils.unmarshal_json( - raw, - models.GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostSummaryStreamTypes, - ), - client_ref=self, - ) - if utils.match_response(http_res, "422", "application/json"): - http_res_text = utils.stream_to_text(http_res) - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res, http_res_text - ) - raise errors.HTTPValidationError(response_data, http_res, http_res_text) - if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("Unexpected response received", http_res, http_res_text) - - async def generate_index_summary_async( - self, - *, - index_id: str, - language: models.GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostLanguage, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> jsonl.JsonLStreamAsync[ - models.GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostSummaryStreamTypes - ]: - r"""Generate a summary field for an index - - Streams a summary for the index in chunks of json. - - The first chunk contains metadata for the summary, the following contain - chunks of 'content' that should be joined together to form a full summary. - - :param index_id: - :param language: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostRequest( - index_id=index_id, - language=language, - ) - - req = self._build_request_async( - method="POST", - path="/v1/rag/indexes/index/{index_id}/summary_field/{language}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/x-ndjson", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="generate_index_summary_v1_rag_indexes_index__index_id__summary_field__language__post", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - stream=True, - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/x-ndjson"): - return jsonl.JsonLStreamAsync( - http_res, - lambda raw: utils.unmarshal_json( - raw, - models.GenerateIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePostSummaryStreamTypes, - ), - client_ref=self, - ) - if utils.match_response(http_res, "422", "application/json"): - http_res_text = await utils.stream_to_text_async(http_res) - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res, http_res_text - ) - raise errors.HTTPValidationError(response_data, http_res, http_res_text) - if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("Unexpected response received", http_res, http_res_text) - - def set_index_summary( - self, - *, - index_id: str, - language: models.SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutLanguage, - content: str, - status: models.UpdateSummaryRequestSummaryStatus, - translated: bool, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> Any: - r"""Set Index Summary - - Update the summary field for an index - - :param index_id: - :param language: - :param content: - :param status: - :param translated: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutRequest( - index_id=index_id, - language=language, - update_summary_request_summary=models.UpdateSummaryRequestSummary( - content=content, - status=status, - translated=translated, - ), - ) - - req = self._build_request( - method="PUT", - path="/v1/rag/indexes/index/{index_id}/summary_field/{language}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=True, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.update_summary_request_summary, - False, - False, - "json", - models.UpdateSummaryRequestSummary, - ), - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="set_index_summary_v1_rag_indexes_index__index_id__summary_field__language__put", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(Any, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - async def set_index_summary_async( - self, - *, - index_id: str, - language: models.SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutLanguage, - content: str, - status: models.UpdateSummaryRequestSummaryStatus, - translated: bool, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> Any: - r"""Set Index Summary - - Update the summary field for an index - - :param index_id: - :param language: - :param content: - :param status: - :param translated: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.SetIndexSummaryV1RagIndexesIndexIndexIDSummaryFieldLanguagePutRequest( - index_id=index_id, - language=language, - update_summary_request_summary=models.UpdateSummaryRequestSummary( - content=content, - status=status, - translated=translated, - ), - ) - - req = self._build_request_async( - method="PUT", - path="/v1/rag/indexes/index/{index_id}/summary_field/{language}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=True, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.update_summary_request_summary, - False, - False, - "json", - models.UpdateSummaryRequestSummary, - ), - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="set_index_summary_v1_rag_indexes_index__index_id__summary_field__language__put", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(Any, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - def get_schema_summary( - self, - *, - index_id: str, - schema_id: str, - language: models.GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetLanguage, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.GetSummaryResponseSummary: - r"""Get Schema Summary - - Retrieve the summary field for a schema if it exists - - :param index_id: - :param schema_id: - :param language: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetRequest( - index_id=index_id, - schema_id=schema_id, - language=language, - ) - - req = self._build_request( - method="GET", - path="/v1/rag/indexes/index/{index_id}/schemas/schema/{schema_id}/summary_field/{language}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="get_schema_summary_v1_rag_indexes_index__index_id__schemas_schema__schema_id__summary_field__language__get", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.GetSummaryResponseSummary, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - async def get_schema_summary_async( - self, - *, - index_id: str, - schema_id: str, - language: models.GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetLanguage, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.GetSummaryResponseSummary: - r"""Get Schema Summary - - Retrieve the summary field for a schema if it exists - - :param index_id: - :param schema_id: - :param language: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.GetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguageGetRequest( - index_id=index_id, - schema_id=schema_id, - language=language, - ) - - req = self._build_request_async( - method="GET", - path="/v1/rag/indexes/index/{index_id}/schemas/schema/{schema_id}/summary_field/{language}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="get_schema_summary_v1_rag_indexes_index__index_id__schemas_schema__schema_id__summary_field__language__get", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.GetSummaryResponseSummary, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - def generate_schema_summary( - self, - *, - index_id: str, - schema_id: str, - language: models.GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostLanguage, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> jsonl.JsonLStream[ - models.GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostSummaryStreamTypes - ]: - r"""Generate a summary field for a schema - - Streams a summary for the schema in chunks of json. - - The first chunk contains metadata for the summary, the following contain - chunks of 'content' that should be joined together to form a full summary. - - :param index_id: - :param schema_id: - :param language: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostRequest( - index_id=index_id, - schema_id=schema_id, - language=language, - ) - - req = self._build_request( - method="POST", - path="/v1/rag/indexes/index/{index_id}/schemas/schema/{schema_id}/summary_field/{language}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/x-ndjson", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="generate_schema_summary_post_v1_rag_indexes_index__index_id__schemas_schema__schema_id__summary_field__language__post", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - stream=True, - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/x-ndjson"): - return jsonl.JsonLStream( - http_res, - lambda raw: utils.unmarshal_json( - raw, - models.GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostSummaryStreamTypes, - ), - client_ref=self, - ) - if utils.match_response(http_res, "422", "application/json"): - http_res_text = utils.stream_to_text(http_res) - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res, http_res_text - ) - raise errors.HTTPValidationError(response_data, http_res, http_res_text) - if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("Unexpected response received", http_res, http_res_text) - - async def generate_schema_summary_async( - self, - *, - index_id: str, - schema_id: str, - language: models.GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostLanguage, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> jsonl.JsonLStreamAsync[ - models.GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostSummaryStreamTypes - ]: - r"""Generate a summary field for a schema - - Streams a summary for the schema in chunks of json. - - The first chunk contains metadata for the summary, the following contain - chunks of 'content' that should be joined together to form a full summary. - - :param index_id: - :param schema_id: - :param language: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostRequest( - index_id=index_id, - schema_id=schema_id, - language=language, - ) - - req = self._build_request_async( - method="POST", - path="/v1/rag/indexes/index/{index_id}/schemas/schema/{schema_id}/summary_field/{language}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/x-ndjson", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="generate_schema_summary_post_v1_rag_indexes_index__index_id__schemas_schema__schema_id__summary_field__language__post", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - stream=True, - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/x-ndjson"): - return jsonl.JsonLStreamAsync( - http_res, - lambda raw: utils.unmarshal_json( - raw, - models.GenerateSchemaSummaryPostV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePostSummaryStreamTypes, - ), - client_ref=self, - ) - if utils.match_response(http_res, "422", "application/json"): - http_res_text = await utils.stream_to_text_async(http_res) - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res, http_res_text - ) - raise errors.HTTPValidationError(response_data, http_res, http_res_text) - if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("Unexpected response received", http_res, http_res_text) - - def set_schema_summary( - self, - *, - index_id: str, - schema_id: str, - language: models.SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutLanguage, - content: str, - status: models.UpdateSummaryRequestSummaryStatus, - translated: bool, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> Any: - r"""Set Schema Summary - - Update the summary field for an index - - :param index_id: - :param schema_id: - :param language: - :param content: - :param status: - :param translated: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutRequest( - index_id=index_id, - schema_id=schema_id, - language=language, - update_summary_request_summary=models.UpdateSummaryRequestSummary( - content=content, - status=status, - translated=translated, - ), - ) - - req = self._build_request( - method="PUT", - path="/v1/rag/indexes/index/{index_id}/schemas/schema/{schema_id}/summary_field/{language}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=True, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.update_summary_request_summary, - False, - False, - "json", - models.UpdateSummaryRequestSummary, - ), - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="set_schema_summary_v1_rag_indexes_index__index_id__schemas_schema__schema_id__summary_field__language__put", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(Any, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - async def set_schema_summary_async( - self, - *, - index_id: str, - schema_id: str, - language: models.SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutLanguage, - content: str, - status: models.UpdateSummaryRequestSummaryStatus, - translated: bool, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> Any: - r"""Set Schema Summary - - Update the summary field for an index - - :param index_id: - :param schema_id: - :param language: - :param content: - :param status: - :param translated: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.SetSchemaSummaryV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDSummaryFieldLanguagePutRequest( - index_id=index_id, - schema_id=schema_id, - language=language, - update_summary_request_summary=models.UpdateSummaryRequestSummary( - content=content, - status=status, - translated=translated, - ), - ) - - req = self._build_request_async( - method="PUT", - path="/v1/rag/indexes/index/{index_id}/schemas/schema/{schema_id}/summary_field/{language}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=True, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.update_summary_request_summary, - False, - False, - "json", - models.UpdateSummaryRequestSummary, - ), - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="set_schema_summary_v1_rag_indexes_index__index_id__schemas_schema__schema_id__summary_field__language__put", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(Any, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - def get_index_schema_detail( - self, - *, - index_id: str, - schema_id: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.GetSearchIndexSchemaDetailResponseSchemaModel: - r"""Get Index Schema Detail - - Get a detailed view of the stored information for a schema - - :param index_id: - :param schema_id: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.GetIndexSchemaDetailV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDDetailGetRequest( - index_id=index_id, - schema_id=schema_id, - ) - - req = self._build_request( - method="GET", - path="/v1/rag/indexes/index/{index_id}/schemas/schema/{schema_id}/detail", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="get_index_schema_detail_v1_rag_indexes_index__index_id__schemas_schema__schema_id__detail_get", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response( - models.GetSearchIndexSchemaDetailResponseSchemaModel, http_res - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - async def get_index_schema_detail_async( - self, - *, - index_id: str, - schema_id: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.GetSearchIndexSchemaDetailResponseSchemaModel: - r"""Get Index Schema Detail - - Get a detailed view of the stored information for a schema - - :param index_id: - :param schema_id: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.GetIndexSchemaDetailV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDDetailGetRequest( - index_id=index_id, - schema_id=schema_id, - ) - - req = self._build_request_async( - method="GET", - path="/v1/rag/indexes/index/{index_id}/schemas/schema/{schema_id}/detail", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="get_index_schema_detail_v1_rag_indexes_index__index_id__schemas_schema__schema_id__detail_get", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response( - models.GetSearchIndexSchemaDetailResponseSchemaModel, http_res - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - def get_index_schema_file( - self, - *, - index_id: str, - schema_id: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.GetSearchIndexSchemaSDFileResponseSDFile: - r"""Get Index Schema File - - :param index_id: - :param schema_id: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.GetIndexSchemaFileV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDFileGetRequest( - index_id=index_id, - schema_id=schema_id, - ) - - req = self._build_request( - method="GET", - path="/v1/rag/indexes/index/{index_id}/schemas/schema/{schema_id}/file", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="get_index_schema_file_v1_rag_indexes_index__index_id__schemas_schema__schema_id__file_get", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response( - models.GetSearchIndexSchemaSDFileResponseSDFile, http_res - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - async def get_index_schema_file_async( - self, - *, - index_id: str, - schema_id: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.GetSearchIndexSchemaSDFileResponseSDFile: - r"""Get Index Schema File - - :param index_id: - :param schema_id: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.GetIndexSchemaFileV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDFileGetRequest( - index_id=index_id, - schema_id=schema_id, - ) - - req = self._build_request_async( - method="GET", - path="/v1/rag/indexes/index/{index_id}/schemas/schema/{schema_id}/file", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="get_index_schema_file_v1_rag_indexes_index__index_id__schemas_schema__schema_id__file_get", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response( - models.GetSearchIndexSchemaSDFileResponseSDFile, http_res - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - def document_lookup( - self, - *, - index_id: str, - schema_id: str, - document_id: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.VespaGetRetrievableResponseRetrievable: - r"""Document Lookup - - Fetch stored information about a retrievable element stored in an index - - :param index_id: - :param schema_id: - :param document_id: the native ID in the underlying index - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.DocumentLookupV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesRetrievableDocumentIDGetRequest( - index_id=index_id, - schema_id=schema_id, - document_id=document_id, - ) - - req = self._build_request( - method="GET", - path="/v1/rag/indexes/index/{index_id}/schemas/schema/{schema_id}/retrievables/retrievable/{document_id}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="document_lookup_v1_rag_indexes_index__index_id__schemas_schema__schema_id__retrievables_retrievable__document_id__get", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response( - models.VespaGetRetrievableResponseRetrievable, http_res - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, ["400", "403", "404", "412", "4XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - async def document_lookup_async( - self, - *, - index_id: str, - schema_id: str, - document_id: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.VespaGetRetrievableResponseRetrievable: - r"""Document Lookup - - Fetch stored information about a retrievable element stored in an index - - :param index_id: - :param schema_id: - :param document_id: the native ID in the underlying index - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.DocumentLookupV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesRetrievableDocumentIDGetRequest( - index_id=index_id, - schema_id=schema_id, - document_id=document_id, - ) - - req = self._build_request_async( - method="GET", - path="/v1/rag/indexes/index/{index_id}/schemas/schema/{schema_id}/retrievables/retrievable/{document_id}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="document_lookup_v1_rag_indexes_index__index_id__schemas_schema__schema_id__retrievables_retrievable__document_id__get", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response( - models.VespaGetRetrievableResponseRetrievable, http_res - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, ["400", "403", "404", "412", "4XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - def documents_fetch( - self, - *, - index_id: str, - schema_id: str, - group_id: OptionalNullable[str] = UNSET, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> List[models.VespaGetRetrievableResponseRetrievable]: - r"""Document Fetch - - Fetch a few stored retrievable elements from the index/schema - - :param index_id: - :param schema_id: - :param group_id: Only retrieve from this group - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.DocumentFetchV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesGetRequest( - index_id=index_id, - schema_id=schema_id, - group_id=group_id, - ) - - req = self._build_request( - method="GET", - path="/v1/rag/indexes/index/{index_id}/schemas/schema/{schema_id}/retrievables", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="document_fetch_v1_rag_indexes_index__index_id__schemas_schema__schema_id__retrievables_get", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response( - List[models.VespaGetRetrievableResponseRetrievable], http_res - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, ["400", "403", "404", "412", "4XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - async def documents_fetch_async( - self, - *, - index_id: str, - schema_id: str, - group_id: OptionalNullable[str] = UNSET, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> List[models.VespaGetRetrievableResponseRetrievable]: - r"""Document Fetch - - Fetch a few stored retrievable elements from the index/schema - - :param index_id: - :param schema_id: - :param group_id: Only retrieve from this group - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.DocumentFetchV1RagIndexesIndexIndexIDSchemasSchemaSchemaIDRetrievablesGetRequest( - index_id=index_id, - schema_id=schema_id, - group_id=group_id, - ) - - req = self._build_request_async( - method="GET", - path="/v1/rag/indexes/index/{index_id}/schemas/schema/{schema_id}/retrievables", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="document_fetch_v1_rag_indexes_index__index_id__schemas_schema__schema_id__retrievables_get", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response( - List[models.VespaGetRetrievableResponseRetrievable], http_res - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(response_data, http_res) - if utils.match_response(http_res, ["400", "403", "404", "412", "4XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, ["500", "5XX"], "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) diff --git a/src/mistralai/client/skills.py b/src/mistralai/client/skills.py index 9931df2ac..fdbd61c68 100644 --- a/src/mistralai/client/skills.py +++ b/src/mistralai/client/skills.py @@ -19,6 +19,10 @@ def list( page_token: Optional[str] = None, alias: Optional[str] = None, fields: Optional[List[str]] = None, + sort_field: Optional[models.ListSortField] = None, + sort_direction_query_parameter: Optional[models.ListSortDirection] = None, + sort_by: Optional[str] = None, + sort_direction_query_parameter1: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -30,6 +34,10 @@ def list( :param page_token: :param alias: :param fields: + :param sort_field: Defaults to created_at when omitted. + :param sort_direction_query_parameter: Defaults to descending for timestamp fields and ascending for text fields. + :param sort_by: REST-friendly alias for sort.field. Supported values: created_at, last_modified_at, name, title. + :param sort_direction_query_parameter1: REST-friendly alias for sort.direction. Supported values: asc, desc. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -53,6 +61,10 @@ def list( page_token=page_token, alias=alias, fields=fields, + sort_field=sort_field, + sort_direction_query_parameter=sort_direction_query_parameter, + sort_by=sort_by, + sort_direction_query_parameter1=sort_direction_query_parameter1, ) req = self._build_request( @@ -118,6 +130,10 @@ def next_func() -> Optional[models.SkillsListResponse]: page_token=next_cursor, alias=alias, fields=fields, + sort_field=sort_field, + sort_direction_query_parameter=sort_direction_query_parameter, + sort_by=sort_by, + sort_direction_query_parameter1=sort_direction_query_parameter1, retries=retries, server_url=server_url, timeout_ms=timeout_ms, @@ -145,6 +161,10 @@ async def list_async( page_token: Optional[str] = None, alias: Optional[str] = None, fields: Optional[List[str]] = None, + sort_field: Optional[models.ListSortField] = None, + sort_direction_query_parameter: Optional[models.ListSortDirection] = None, + sort_by: Optional[str] = None, + sort_direction_query_parameter1: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -156,6 +176,10 @@ async def list_async( :param page_token: :param alias: :param fields: + :param sort_field: Defaults to created_at when omitted. + :param sort_direction_query_parameter: Defaults to descending for timestamp fields and ascending for text fields. + :param sort_by: REST-friendly alias for sort.field. Supported values: created_at, last_modified_at, name, title. + :param sort_direction_query_parameter1: REST-friendly alias for sort.direction. Supported values: asc, desc. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -179,6 +203,10 @@ async def list_async( page_token=page_token, alias=alias, fields=fields, + sort_field=sort_field, + sort_direction_query_parameter=sort_direction_query_parameter, + sort_by=sort_by, + sort_direction_query_parameter1=sort_direction_query_parameter1, ) req = self._build_request_async( @@ -247,6 +275,10 @@ async def empty_result(): page_token=next_cursor, alias=alias, fields=fields, + sort_field=sort_field, + sort_direction_query_parameter=sort_direction_query_parameter, + sort_by=sort_by, + sort_direction_query_parameter1=sort_direction_query_parameter1, retries=retries, server_url=server_url, timeout_ms=timeout_ms, diff --git a/src/mistralai/client/spans.py b/src/mistralai/client/spans.py index 4305e1cfe..817937cb3 100644 --- a/src/mistralai/client/spans.py +++ b/src/mistralai/client/spans.py @@ -8,7 +8,7 @@ from mistralai.client.types import OptionalNullable, UNSET from mistralai.client.utils import get_security_from_env from mistralai.client.utils.unmarshal_json_response import unmarshal_json_response -from typing import Any, Mapping, Optional +from typing import Any, List, Mapping, Optional, Union class Spans(BaseSDK): @@ -232,6 +232,268 @@ async def search_spans_async( raise errors.SDKError("Unexpected response received", http_res) + def aggregate( + self, + *, + metric: Union[models.MetricDefinition, models.MetricDefinitionTypedDict], + from_: OptionalNullable[datetime] = UNSET, + to: OptionalNullable[datetime] = UNSET, + dimensions: Optional[List[str]] = None, + time_dimension: OptionalNullable[ + Union[models.TimeDimension, models.TimeDimensionTypedDict] + ] = UNSET, + search_expression: OptionalNullable[str] = UNSET, + order_by: OptionalNullable[ + Union[List[models.OrderByClause], List[models.OrderByClauseTypedDict]] + ] = UNSET, + limit: Optional[int] = 1000, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.Aggregation: + r"""Aggregate spans + + :param metric: + :param from_: + :param to: + :param dimensions: + :param time_dimension: + :param search_expression: + :param order_by: + :param limit: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if timeout_ms is None: + timeout_ms = 300000 + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = models.AggregateSpansV1ObservabilitySpansAggregatePostRequest( + from_=from_, + to=to, + aggregation_request=models.AggregationRequest( + metric=utils.get_pydantic_model(metric, models.MetricDefinition), + dimensions=dimensions, + time_dimension=utils.get_pydantic_model( + time_dimension, OptionalNullable[models.TimeDimension] + ), + search_expression=search_expression, + order_by=utils.get_pydantic_model( + order_by, OptionalNullable[List[models.OrderByClause]] + ), + limit=limit, + ), + ) + + req = self._build_request( + method="POST", + path="/v1/observability/spans/aggregate", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=True, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.aggregation_request, + False, + False, + "json", + models.AggregationRequest, + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = self.do_request( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="aggregate_spans_v1_observability_spans_aggregate_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + response_data: Any = None + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response(models.Aggregation, http_res) + if utils.match_response( + http_res, ["400", "404", "408", "409", "422"], "application/json" + ): + response_data = unmarshal_json_response( + errors.ObservabilityErrorData, http_res + ) + raise errors.ObservabilityError(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) + + async def aggregate_async( + self, + *, + metric: Union[models.MetricDefinition, models.MetricDefinitionTypedDict], + from_: OptionalNullable[datetime] = UNSET, + to: OptionalNullable[datetime] = UNSET, + dimensions: Optional[List[str]] = None, + time_dimension: OptionalNullable[ + Union[models.TimeDimension, models.TimeDimensionTypedDict] + ] = UNSET, + search_expression: OptionalNullable[str] = UNSET, + order_by: OptionalNullable[ + Union[List[models.OrderByClause], List[models.OrderByClauseTypedDict]] + ] = UNSET, + limit: Optional[int] = 1000, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.Aggregation: + r"""Aggregate spans + + :param metric: + :param from_: + :param to: + :param dimensions: + :param time_dimension: + :param search_expression: + :param order_by: + :param limit: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if timeout_ms is None: + timeout_ms = 300000 + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = models.AggregateSpansV1ObservabilitySpansAggregatePostRequest( + from_=from_, + to=to, + aggregation_request=models.AggregationRequest( + metric=utils.get_pydantic_model(metric, models.MetricDefinition), + dimensions=dimensions, + time_dimension=utils.get_pydantic_model( + time_dimension, OptionalNullable[models.TimeDimension] + ), + search_expression=search_expression, + order_by=utils.get_pydantic_model( + order_by, OptionalNullable[List[models.OrderByClause]] + ), + limit=limit, + ), + ) + + req = self._build_request_async( + method="POST", + path="/v1/observability/spans/aggregate", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=True, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.aggregation_request, + False, + False, + "json", + models.AggregationRequest, + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = await self.do_request_async( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="aggregate_spans_v1_observability_spans_aggregate_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + response_data: Any = None + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response(models.Aggregation, http_res) + if utils.match_response( + http_res, ["400", "404", "408", "409", "422"], "application/json" + ): + response_data = unmarshal_json_response( + errors.ObservabilityErrorData, http_res + ) + raise errors.ObservabilityError(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) + def search_span_evaluations( self, *, diff --git a/src/mistralai/client/traces.py b/src/mistralai/client/traces.py index 8b9fc5e9e..a42575c0e 100644 --- a/src/mistralai/client/traces.py +++ b/src/mistralai/client/traces.py @@ -8,7 +8,7 @@ from mistralai.client.types import OptionalNullable, UNSET from mistralai.client.utils import get_security_from_env from mistralai.client.utils.unmarshal_json_response import unmarshal_json_response -from typing import Any, Mapping, Optional +from typing import Any, List, Mapping, Optional, Union class Traces(BaseSDK): @@ -232,6 +232,268 @@ async def search_async( raise errors.SDKError("Unexpected response received", http_res) + def aggregate( + self, + *, + metric: Union[models.MetricDefinition, models.MetricDefinitionTypedDict], + from_: OptionalNullable[datetime] = UNSET, + to: OptionalNullable[datetime] = UNSET, + dimensions: Optional[List[str]] = None, + time_dimension: OptionalNullable[ + Union[models.TimeDimension, models.TimeDimensionTypedDict] + ] = UNSET, + search_expression: OptionalNullable[str] = UNSET, + order_by: OptionalNullable[ + Union[List[models.OrderByClause], List[models.OrderByClauseTypedDict]] + ] = UNSET, + limit: Optional[int] = 1000, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.Aggregation: + r"""Aggregate traces + + :param metric: + :param from_: + :param to: + :param dimensions: + :param time_dimension: + :param search_expression: + :param order_by: + :param limit: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if timeout_ms is None: + timeout_ms = 300000 + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = models.AggregateTracesV1ObservabilityTracesAggregatePostRequest( + from_=from_, + to=to, + aggregation_request=models.AggregationRequest( + metric=utils.get_pydantic_model(metric, models.MetricDefinition), + dimensions=dimensions, + time_dimension=utils.get_pydantic_model( + time_dimension, OptionalNullable[models.TimeDimension] + ), + search_expression=search_expression, + order_by=utils.get_pydantic_model( + order_by, OptionalNullable[List[models.OrderByClause]] + ), + limit=limit, + ), + ) + + req = self._build_request( + method="POST", + path="/v1/observability/traces/aggregate", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=True, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.aggregation_request, + False, + False, + "json", + models.AggregationRequest, + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = self.do_request( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="aggregate_traces_v1_observability_traces_aggregate_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + response_data: Any = None + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response(models.Aggregation, http_res) + if utils.match_response( + http_res, ["400", "404", "408", "409", "422"], "application/json" + ): + response_data = unmarshal_json_response( + errors.ObservabilityErrorData, http_res + ) + raise errors.ObservabilityError(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) + + async def aggregate_async( + self, + *, + metric: Union[models.MetricDefinition, models.MetricDefinitionTypedDict], + from_: OptionalNullable[datetime] = UNSET, + to: OptionalNullable[datetime] = UNSET, + dimensions: Optional[List[str]] = None, + time_dimension: OptionalNullable[ + Union[models.TimeDimension, models.TimeDimensionTypedDict] + ] = UNSET, + search_expression: OptionalNullable[str] = UNSET, + order_by: OptionalNullable[ + Union[List[models.OrderByClause], List[models.OrderByClauseTypedDict]] + ] = UNSET, + limit: Optional[int] = 1000, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.Aggregation: + r"""Aggregate traces + + :param metric: + :param from_: + :param to: + :param dimensions: + :param time_dimension: + :param search_expression: + :param order_by: + :param limit: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if timeout_ms is None: + timeout_ms = 300000 + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = models.AggregateTracesV1ObservabilityTracesAggregatePostRequest( + from_=from_, + to=to, + aggregation_request=models.AggregationRequest( + metric=utils.get_pydantic_model(metric, models.MetricDefinition), + dimensions=dimensions, + time_dimension=utils.get_pydantic_model( + time_dimension, OptionalNullable[models.TimeDimension] + ), + search_expression=search_expression, + order_by=utils.get_pydantic_model( + order_by, OptionalNullable[List[models.OrderByClause]] + ), + limit=limit, + ), + ) + + req = self._build_request_async( + method="POST", + path="/v1/observability/traces/aggregate", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=True, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.aggregation_request, + False, + False, + "json", + models.AggregationRequest, + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = await self.do_request_async( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="aggregate_traces_v1_observability_traces_aggregate_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + response_data: Any = None + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response(models.Aggregation, http_res) + if utils.match_response( + http_res, ["400", "404", "408", "409", "422"], "application/json" + ): + response_data = unmarshal_json_response( + errors.ObservabilityErrorData, http_res + ) + raise errors.ObservabilityError(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) + def get_trace_fields( self, *, diff --git a/src/mistralai/client/utils/jsonl.py b/src/mistralai/client/utils/jsonl.py deleted file mode 100644 index e8a042a08..000000000 --- a/src/mistralai/client/utils/jsonl.py +++ /dev/null @@ -1,156 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 220a4ce399b9 - -from typing import Callable, Generic, TypeVar, Optional, Generator, AsyncGenerator -import httpx - -T = TypeVar("T") - - -class JsonLStream(Generic[T]): - # Holds a reference to the SDK client to avoid it being garbage collected - # and cause termination of the underlying httpx client. - client_ref: Optional[object] - response: httpx.Response - generator: Generator[T, None, None] - - def __init__( - self, - response: httpx.Response, - decoder: Callable[[str], T], - sentinel: Optional[str] = None, - client_ref: Optional[object] = None, - ): - self.response = response - self.generator = stream_jsonl_events(response, decoder, sentinel) - self.client_ref = client_ref - - def __iter__(self): - return self - - def __next__(self): - return next(self.generator) - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_val, exc_tb): - self.response.close() - - -class JsonLStreamAsync(Generic[T]): - # Holds a reference to the SDK client to avoid it being garbage collected - # and cause termination of the underlying httpx client. - client_ref: Optional[object] - response: httpx.Response - generator: AsyncGenerator[T, None] - - def __init__( - self, - response: httpx.Response, - decoder: Callable[[str], T], - sentinel: Optional[str] = None, - client_ref: Optional[object] = None, - ): - self.response = response - self.generator = stream_jsonl_events_async(response, decoder, sentinel) - self.client_ref = client_ref - - def __aiter__(self): - return self - - async def __anext__(self): - return await self.generator.__anext__() - - async def __aenter__(self): - return self - - async def __aexit__(self, exc_type, exc_val, exc_tb): - await self.response.aclose() - - -MESSAGE_BOUNDARIES = [ - b"}\n", - b"}\r\n", -] - - -async def stream_jsonl_events_async( - response: httpx.Response, - decoder: Callable[[str], T], - _: Optional[str] = None, -) -> AsyncGenerator[T, None]: - buffer = bytearray() - position = 0 - async for chunk in response.aiter_bytes(): - buffer += chunk - for i in range(position, len(buffer)): - char = buffer[i : i + 1] - seq: Optional[bytes] = None - if char in [b"}"]: - for boundary in MESSAGE_BOUNDARIES: - seq = _peek_sequence(i, buffer, boundary) - if seq is not None: - break - if seq is None: - continue - - block = buffer[position : i + 1] - position = i + len(seq) - if block: - event = decoder(block.decode()) - yield event - - if position > 0: - buffer = buffer[position:] - position = 0 - - if position != 0: - event = decoder(buffer.decode()) - yield event - - -def stream_jsonl_events( - response: httpx.Response, - decoder: Callable[[str], T], - _: Optional[str] = None, -) -> Generator[T, None, None]: - buffer = bytearray() - position = 0 - for chunk in response.iter_bytes(): - buffer += chunk - for i in range(position, len(buffer)): - char = buffer[i : i + 1] - seq: Optional[bytes] = None - if char in [b"}"]: - for boundary in MESSAGE_BOUNDARIES: - seq = _peek_sequence(i, buffer, boundary) - if seq is not None: - break - if seq is None: - continue - - block = buffer[position : i + 1] - position = i + len(seq) - if block: - event = decoder(block.decode()) - yield event - - if position > 0: - buffer = buffer[position:] - position = 0 - - if position != 0: - event = decoder(buffer.decode()) - yield event - - -def _peek_sequence(position: int, buffer: bytearray, sequence: bytes): - if len(sequence) > (len(buffer) - position): - return None - - for i, seq in enumerate(sequence): - if buffer[position + i] != seq: - return None - - return sequence diff --git a/src/mistralai/client/workflows.py b/src/mistralai/client/workflows.py index 0c9fad127..e56141a3a 100644 --- a/src/mistralai/client/workflows.py +++ b/src/mistralai/client/workflows.py @@ -884,6 +884,7 @@ def execute_workflow( wait_for_result: Optional[bool] = False, timeout_seconds: OptionalNullable[float] = UNSET, custom_tracing_attributes: OptionalNullable[Dict[str, str]] = UNSET, + force_new_trace: Optional[bool] = False, extensions: OptionalNullable[Dict[str, Any]] = UNSET, task_queue: OptionalNullable[str] = UNSET, deployment_name: OptionalNullable[str] = UNSET, @@ -900,6 +901,7 @@ def execute_workflow( :param wait_for_result: If true, wait for the workflow to complete and return the result directly. :param timeout_seconds: Maximum time to wait for completion when wait_for_result is true. :param custom_tracing_attributes: + :param force_new_trace: If true, ignore the caller's trace context and start a new, independent trace for this execution instead of joining the caller's trace. :param extensions: Plugin-specific data to propagate into WorkflowContext.extensions at execution time. :param task_queue: Deprecated. Use deployment_name instead. :param deployment_name: Name of the deployment to route this execution to @@ -929,6 +931,7 @@ def execute_workflow( wait_for_result=wait_for_result, timeout_seconds=timeout_seconds, custom_tracing_attributes=custom_tracing_attributes, + force_new_trace=force_new_trace, extensions=extensions, task_queue=task_queue, deployment_name=deployment_name, @@ -1011,6 +1014,7 @@ async def execute_workflow_async( wait_for_result: Optional[bool] = False, timeout_seconds: OptionalNullable[float] = UNSET, custom_tracing_attributes: OptionalNullable[Dict[str, str]] = UNSET, + force_new_trace: Optional[bool] = False, extensions: OptionalNullable[Dict[str, Any]] = UNSET, task_queue: OptionalNullable[str] = UNSET, deployment_name: OptionalNullable[str] = UNSET, @@ -1027,6 +1031,7 @@ async def execute_workflow_async( :param wait_for_result: If true, wait for the workflow to complete and return the result directly. :param timeout_seconds: Maximum time to wait for completion when wait_for_result is true. :param custom_tracing_attributes: + :param force_new_trace: If true, ignore the caller's trace context and start a new, independent trace for this execution instead of joining the caller's trace. :param extensions: Plugin-specific data to propagate into WorkflowContext.extensions at execution time. :param task_queue: Deprecated. Use deployment_name instead. :param deployment_name: Name of the deployment to route this execution to @@ -1056,6 +1061,7 @@ async def execute_workflow_async( wait_for_result=wait_for_result, timeout_seconds=timeout_seconds, custom_tracing_attributes=custom_tracing_attributes, + force_new_trace=force_new_trace, extensions=extensions, task_queue=task_queue, deployment_name=deployment_name, @@ -1141,6 +1147,7 @@ def execute_workflow_registration( wait_for_result: Optional[bool] = False, timeout_seconds: OptionalNullable[float] = UNSET, custom_tracing_attributes: OptionalNullable[Dict[str, str]] = UNSET, + force_new_trace: Optional[bool] = False, extensions: OptionalNullable[Dict[str, Any]] = UNSET, task_queue: OptionalNullable[str] = UNSET, deployment_name: OptionalNullable[str] = UNSET, @@ -1157,6 +1164,7 @@ def execute_workflow_registration( :param wait_for_result: If true, wait for the workflow to complete and return the result directly. :param timeout_seconds: Maximum time to wait for completion when wait_for_result is true. :param custom_tracing_attributes: + :param force_new_trace: If true, ignore the caller's trace context and start a new, independent trace for this execution instead of joining the caller's trace. :param extensions: Plugin-specific data to propagate into WorkflowContext.extensions at execution time. :param task_queue: Deprecated. Use deployment_name instead. :param deployment_name: Name of the deployment to route this execution to @@ -1186,6 +1194,7 @@ def execute_workflow_registration( wait_for_result=wait_for_result, timeout_seconds=timeout_seconds, custom_tracing_attributes=custom_tracing_attributes, + force_new_trace=force_new_trace, extensions=extensions, task_queue=task_queue, deployment_name=deployment_name, @@ -1271,6 +1280,7 @@ async def execute_workflow_registration_async( wait_for_result: Optional[bool] = False, timeout_seconds: OptionalNullable[float] = UNSET, custom_tracing_attributes: OptionalNullable[Dict[str, str]] = UNSET, + force_new_trace: Optional[bool] = False, extensions: OptionalNullable[Dict[str, Any]] = UNSET, task_queue: OptionalNullable[str] = UNSET, deployment_name: OptionalNullable[str] = UNSET, @@ -1287,6 +1297,7 @@ async def execute_workflow_registration_async( :param wait_for_result: If true, wait for the workflow to complete and return the result directly. :param timeout_seconds: Maximum time to wait for completion when wait_for_result is true. :param custom_tracing_attributes: + :param force_new_trace: If true, ignore the caller's trace context and start a new, independent trace for this execution instead of joining the caller's trace. :param extensions: Plugin-specific data to propagate into WorkflowContext.extensions at execution time. :param task_queue: Deprecated. Use deployment_name instead. :param deployment_name: Name of the deployment to route this execution to @@ -1316,6 +1327,7 @@ async def execute_workflow_registration_async( wait_for_result=wait_for_result, timeout_seconds=timeout_seconds, custom_tracing_attributes=custom_tracing_attributes, + force_new_trace=force_new_trace, extensions=extensions, task_queue=task_queue, deployment_name=deployment_name, From 1f90e8f9e07a4da47e2c0c591ec7b4b47cab75fc Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 31 Jul 2026 13:38:53 +0000 Subject: [PATCH 2/2] chore: align package version files to version 2.9.0 --- pyproject.toml | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3ee3c628e..c16fdfb00 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mistralai" -version = "2.8.0" +version = "2.9.0" description = "Python Client SDK for the Mistral AI API." authors = [{ name = "Mistral" }] requires-python = ">=3.10" diff --git a/uv.lock b/uv.lock index 3d83f8a57..81ff47ea9 100644 --- a/uv.lock +++ b/uv.lock @@ -1047,7 +1047,7 @@ wheels = [ [[package]] name = "mistralai" -version = "2.8.0" +version = "2.9.0" source = { editable = "." } dependencies = [ { name = "eval-type-backport" },