From 40ca49ec3fade5779d5253127b073458ec944955 Mon Sep 17 00:00:00 2001 From: Buildkite CI Date: Mon, 14 Sep 2026 15:03:43 +0000 Subject: [PATCH 1/2] chore: sync generated SDK from upstream @ eceffd8e Generated upstream and copied here. Do not edit in this repository; changes are overwritten by the next sync. --- .speakeasy/gen.lock | 1029 ++++++++-- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 14 +- README-PYPI.md | 17 +- README.md | 17 +- RELEASES.md | 21 + docs/models/accepteddocumentresponse.md | 11 + docs/models/activitytaskcompletedresponse.md | 29 +- docs/models/activitytaskfailedresponse.md | 29 +- docs/models/activitytaskretryingresponse.md | 29 +- docs/models/activitytaskstartedresponse.md | 29 +- docs/models/agent.md | 1 + docs/models/and_.md | 11 + docs/models/andmatch.md | 41 + docs/models/boolarrayfielddefinition.md | 12 + docs/models/boolfielddefinition.md | 12 + docs/models/chunkfields.md | 101 + docs/models/connectorsqueryfilters.md | 3 +- ...ateindexv1ragmanagedindexespostresponse.md | 9 + docs/models/createmanagedindexrequest.md | 10 + docs/models/createpipelineconfigrequest.md | 18 +- docs/models/createserviceaccountrequest.md | 3 +- docs/models/customembeddingmodel.md | 12 + docs/models/customtaskcanceledresponse.md | 29 +- docs/models/customtaskcompletedresponse.md | 29 +- docs/models/customtaskfailedresponse.md | 29 +- docs/models/customtaskinprogressresponse.md | 29 +- docs/models/customtaskstartedresponse.md | 29 +- docs/models/customtasktimedoutresponse.md | 29 +- docs/models/deletedocumentsrequest.md | 8 + docs/models/deletedocumentsresponse.md | 9 + ...dindexesindexnamedocumentsdeleterequest.md | 9 + ...ragmanagedindexesindexnamedeleterequest.md | 8 + docs/models/deletemanagedindexresponse.md | 12 + docs/models/densevectorfielddefinition.md | 12 + docs/models/deploymentdetailresponse.md | 30 +- docs/models/deploymentresponse.md | 28 +- docs/models/deploymentworkerresponse.md | 15 +- docs/models/distancemetric.md | 19 + docs/models/documentfielderrorresponse.md | 12 + docs/models/documentfields.md | 101 + docs/models/embedding.md | 17 + docs/models/equal.md | 12 + docs/models/equalvalue.md | 29 + docs/models/floatarrayfielddefinition.md | 12 + docs/models/floatfielddefinition.md | 12 + ...xv1ragmanagedindexesindexnamegetrequest.md | 8 + docs/models/gt.md | 23 + docs/models/gte.md | 23 + docs/models/httpconnector.md | 1 + docs/models/in_.md | 12 + docs/models/ingestdocumentsrequest.md | 8 + docs/models/ingestdocumentsresponse.md | 10 + ...gedindexesindexnamedocumentspostrequest.md | 9 + docs/models/intarrayfielddefinition.md | 12 + docs/models/intfielddefinition.md | 12 + docs/models/invalue.md | 29 + docs/models/jsonfielddefinition.md | 12 + docs/models/judgedefinition.md | 4 +- docs/models/keywordarrayfielddefinition.md | 12 + docs/models/keywordfielddefinition.md | 12 + docs/models/keywordretriever.md | 14 + docs/models/keywordretrieverfilter.md | 41 + ...istindexesv1ragmanagedindexesgetrequest.md | 9 + ...stindexesv1ragmanagedindexesgetresponse.md | 8 + docs/models/listmanagedindexesresponse.md | 11 + ...1observabilitypipelineconfigsgetrequest.md | 1 - ...viceaccountsv1serviceaccountsgetrequest.md | 12 +- docs/models/location.md | 17 + docs/models/longarrayfielddefinition.md | 12 + docs/models/longfielddefinition.md | 12 + docs/models/lt.md | 23 + docs/models/lte.md | 23 + docs/models/managedindexconfig.md | 8 + docs/models/managedindexfields.md | 9 + docs/models/managedindexresponse.md | 17 + docs/models/managedindexstatus.md | 22 + docs/models/mcpconnector.md | 1 + docs/models/mistralembeddingmodel.md | 12 + docs/models/nearestneighbourretriever.md | 15 + .../models/nearestneighbourretrieverfilter.md | 41 + docs/models/not_.md | 11 + docs/models/notmatch.md | 41 + docs/models/observabilityerrorcode.md | 1 + docs/models/or_.md | 11 + docs/models/ormatch.md | 41 + docs/models/pipelineconfig.md | 31 +- docs/models/range.md | 17 + docs/models/rejecteddocumentresponse.md | 10 + docs/models/result.md | 17 + docs/models/retriever.md | 17 + docs/models/searchchunkresponse.md | 19 + docs/models/searchhitresponse.md | 11 + ...anagedindexesindexnamesearchpostrequest.md | 9 + docs/models/searchrequest.md | 8 + docs/models/searchresponse.md | 8 + docs/models/textarrayfielddefinition.md | 12 + docs/models/textfielddefinition.md | 12 + docs/models/timestamparrayfielddefinition.md | 12 + docs/models/timestampfielddefinition.md | 12 + ...xv1ragmanagedindexesindexnameputrequest.md | 9 + docs/models/updatemanagedindexrequest.md | 13 + docs/models/updatepipelineconfigrequest.md | 18 +- docs/models/vectordtype.md | 18 + docs/models/voiceresponse.md | 3 +- docs/models/voiceresponsetype.md | 18 + .../workflowexecutioncanceledresponse.md | 29 +- .../workflowexecutioncompletedresponse.md | 29 +- ...workflowexecutioncontinuedasnewresponse.md | 29 +- .../models/workflowexecutionfailedresponse.md | 29 +- docs/models/workflowexecutionrequest.md | 1 + docs/models/workflowexecutionresponse.md | 2 +- .../workflowexecutionstartedresponse.md | 29 +- .../workflowexecutiontraceeventsresponse.md | 2 +- .../workflowexecutiontraceotelresponse.md | 2 +- .../workflowexecutiontracesummaryresponse.md | 2 +- docs/models/workflowtaskfailedresponse.md | 29 +- docs/models/workflowtasktimedoutresponse.md | 29 +- docs/sdks/evaluations/README.md | 60 +- docs/sdks/events/README.md | 4 +- docs/sdks/managedindexes/README.md | 366 ++++ docs/sdks/serviceaccounts/README.md | 25 +- docs/sdks/voices/README.md | 8 +- docs/sdks/workflows/README.md | 2 + docs/sdks/workflowsevents/README.md | 4 +- pylintrc | 2 + pyproject.toml | 2 +- src/mistralai/client/_hooks/traceparent.py | 59 +- src/mistralai/client/_version.py | 6 +- src/mistralai/client/evaluations.py | 98 +- src/mistralai/client/events.py | 12 +- src/mistralai/client/managed_indexes.py | 1724 +++++++++++++++++ src/mistralai/client/models/__init__.py | 491 ++++- .../client/models/accepteddocumentresponse.py | 36 + .../models/activitytaskcompletedresponse.py | 10 +- .../models/activitytaskfailedresponse.py | 10 +- .../models/activitytaskretryingresponse.py | 10 +- .../models/activitytaskstartedresponse.py | 10 +- src/mistralai/client/models/agent.py | 5 + src/mistralai/client/models/and_.py | 60 + .../client/models/boolarrayfielddefinition.py | 71 + .../client/models/boolfielddefinition.py | 71 + .../client/models/connectorsqueryfilters.py | 9 +- ...ate_index_v1_rag_managed_indexes_postop.py | 19 + .../models/createmanagedindexrequest.py | 49 + .../models/createpipelineconfigrequest.py | 20 +- .../models/createserviceaccountrequest.py | 6 +- .../client/models/customembeddingmodel.py | 58 + .../models/customtaskcanceledresponse.py | 10 +- .../models/customtaskcompletedresponse.py | 10 +- .../client/models/customtaskfailedresponse.py | 10 +- .../models/customtaskinprogressresponse.py | 10 +- .../models/customtaskstartedresponse.py | 10 +- .../models/customtasktimedoutresponse.py | 10 +- ...d_indexes_index_name_documents_deleteop.py | 29 + ...rag_managed_indexes_index_name_deleteop.py | 17 + .../client/models/deletedocumentsrequest.py | 15 + .../client/models/deletedocumentsresponse.py | 18 + .../models/deletemanagedindexresponse.py | 27 + .../models/densevectorfielddefinition.py | 73 + .../client/models/deploymentdetailresponse.py | 24 +- .../client/models/deploymentresponse.py | 24 +- .../client/models/deploymentworkerresponse.py | 17 +- src/mistralai/client/models/distancemetric.py | 16 + .../models/documentfielderrorresponse.py | 31 + src/mistralai/client/models/equal.py | 46 + .../models/floatarrayfielddefinition.py | 71 + .../client/models/floatfielddefinition.py | 71 + ...v1_rag_managed_indexes_index_name_getop.py | 17 + src/mistralai/client/models/httpconnector.py | 5 + src/mistralai/client/models/in_.py | 44 + ...ged_indexes_index_name_documents_postop.py | 29 + .../client/models/ingestdocumentsrequest.py | 15 + .../client/models/ingestdocumentsresponse.py | 69 + .../client/models/intarrayfielddefinition.py | 71 + .../client/models/intfielddefinition.py | 71 + .../client/models/jsonfielddefinition.py | 71 + .../client/models/judgedefinition.py | 30 +- .../models/keywordarrayfielddefinition.py | 71 + .../client/models/keywordfielddefinition.py | 71 + .../client/models/keywordretriever.py | 102 + ...st_indexes_v1_rag_managed_indexes_getop.py | 78 + ...v1_observability_pipeline_configs_getop.py | 12 +- ...vice_accounts_v1_service_accounts_getop.py | 32 +- .../models/listmanagedindexesresponse.py | 55 + .../client/models/longarrayfielddefinition.py | 71 + .../client/models/longfielddefinition.py | 71 + .../client/models/managedindexconfig.py | 57 + .../client/models/managedindexfields.py | 254 +++ .../client/models/managedindexresponse.py | 84 + .../client/models/managedindexstatus.py | 18 + src/mistralai/client/models/mcpconnector.py | 5 + .../client/models/mistralembeddingmodel.py | 58 + .../models/nearestneighbourretriever.py | 108 ++ src/mistralai/client/models/not_.py | 60 + .../client/models/observabilityerrorcode.py | 1 + src/mistralai/client/models/or_.py | 60 + src/mistralai/client/models/pipelineconfig.py | 17 +- src/mistralai/client/models/range.py | 109 ++ .../client/models/rejecteddocumentresponse.py | 37 + ...anaged_indexes_index_name_search_postop.py | 24 + .../client/models/searchchunkresponse.py | 92 + .../client/models/searchhitresponse.py | 58 + src/mistralai/client/models/searchrequest.py | 32 + src/mistralai/client/models/searchresponse.py | 16 + .../client/models/textarrayfielddefinition.py | 71 + .../client/models/textfielddefinition.py | 71 + .../models/timestamparrayfielddefinition.py | 73 + .../client/models/timestampfielddefinition.py | 71 + ...v1_rag_managed_indexes_index_name_putop.py | 27 + .../models/updatemanagedindexrequest.py | 34 + .../models/updatepipelineconfigrequest.py | 20 +- src/mistralai/client/models/vectordtype.py | 15 + src/mistralai/client/models/voiceresponse.py | 15 +- .../workflowexecutioncanceledresponse.py | 10 +- .../workflowexecutioncompletedresponse.py | 10 +- ...workflowexecutioncontinuedasnewresponse.py | 10 +- .../models/workflowexecutionfailedresponse.py | 10 +- .../client/models/workflowexecutionrequest.py | 7 + .../models/workflowexecutionresponse.py | 4 +- .../workflowexecutionstartedresponse.py | 10 +- .../workflowexecutiontraceeventsresponse.py | 4 +- .../workflowexecutiontraceotelresponse.py | 4 +- .../workflowexecutiontracesummaryresponse.py | 4 +- .../models/workflowtaskfailedresponse.py | 10 +- .../models/workflowtasktimedoutresponse.py | 10 +- src/mistralai/client/rag.py | 5 + src/mistralai/client/service_accounts.py | 58 +- src/mistralai/client/voices.py | 23 +- src/mistralai/client/workflows.py | 12 + src/mistralai/client/workflows_events.py | 12 +- src/mistralai/extra/struct_chat.py | 17 +- src/mistralai/extra/tests/test_struct_chat.py | 67 - .../extra/tests/test_traceparent_hook.py | 68 + uv.lock | 2 +- 235 files changed, 8824 insertions(+), 916 deletions(-) create mode 100644 docs/models/accepteddocumentresponse.md create mode 100644 docs/models/and_.md create mode 100644 docs/models/andmatch.md create mode 100644 docs/models/boolarrayfielddefinition.md create mode 100644 docs/models/boolfielddefinition.md create mode 100644 docs/models/chunkfields.md create mode 100644 docs/models/createindexv1ragmanagedindexespostresponse.md create mode 100644 docs/models/createmanagedindexrequest.md create mode 100644 docs/models/customembeddingmodel.md create mode 100644 docs/models/deletedocumentsrequest.md create mode 100644 docs/models/deletedocumentsresponse.md create mode 100644 docs/models/deletedocumentsv1ragmanagedindexesindexnamedocumentsdeleterequest.md create mode 100644 docs/models/deleteindexv1ragmanagedindexesindexnamedeleterequest.md create mode 100644 docs/models/deletemanagedindexresponse.md create mode 100644 docs/models/densevectorfielddefinition.md create mode 100644 docs/models/distancemetric.md create mode 100644 docs/models/documentfielderrorresponse.md create mode 100644 docs/models/documentfields.md create mode 100644 docs/models/embedding.md create mode 100644 docs/models/equal.md create mode 100644 docs/models/equalvalue.md create mode 100644 docs/models/floatarrayfielddefinition.md create mode 100644 docs/models/floatfielddefinition.md create mode 100644 docs/models/getindexv1ragmanagedindexesindexnamegetrequest.md create mode 100644 docs/models/gt.md create mode 100644 docs/models/gte.md create mode 100644 docs/models/in_.md create mode 100644 docs/models/ingestdocumentsrequest.md create mode 100644 docs/models/ingestdocumentsresponse.md create mode 100644 docs/models/ingestdocumentsv1ragmanagedindexesindexnamedocumentspostrequest.md create mode 100644 docs/models/intarrayfielddefinition.md create mode 100644 docs/models/intfielddefinition.md create mode 100644 docs/models/invalue.md create mode 100644 docs/models/jsonfielddefinition.md create mode 100644 docs/models/keywordarrayfielddefinition.md create mode 100644 docs/models/keywordfielddefinition.md create mode 100644 docs/models/keywordretriever.md create mode 100644 docs/models/keywordretrieverfilter.md create mode 100644 docs/models/listindexesv1ragmanagedindexesgetrequest.md create mode 100644 docs/models/listindexesv1ragmanagedindexesgetresponse.md create mode 100644 docs/models/listmanagedindexesresponse.md create mode 100644 docs/models/location.md create mode 100644 docs/models/longarrayfielddefinition.md create mode 100644 docs/models/longfielddefinition.md create mode 100644 docs/models/lt.md create mode 100644 docs/models/lte.md create mode 100644 docs/models/managedindexconfig.md create mode 100644 docs/models/managedindexfields.md create mode 100644 docs/models/managedindexresponse.md create mode 100644 docs/models/managedindexstatus.md create mode 100644 docs/models/mistralembeddingmodel.md create mode 100644 docs/models/nearestneighbourretriever.md create mode 100644 docs/models/nearestneighbourretrieverfilter.md create mode 100644 docs/models/not_.md create mode 100644 docs/models/notmatch.md create mode 100644 docs/models/or_.md create mode 100644 docs/models/ormatch.md create mode 100644 docs/models/range.md create mode 100644 docs/models/rejecteddocumentresponse.md create mode 100644 docs/models/result.md create mode 100644 docs/models/retriever.md create mode 100644 docs/models/searchchunkresponse.md create mode 100644 docs/models/searchhitresponse.md create mode 100644 docs/models/searchindexv1ragmanagedindexesindexnamesearchpostrequest.md create mode 100644 docs/models/searchrequest.md create mode 100644 docs/models/searchresponse.md create mode 100644 docs/models/textarrayfielddefinition.md create mode 100644 docs/models/textfielddefinition.md create mode 100644 docs/models/timestamparrayfielddefinition.md create mode 100644 docs/models/timestampfielddefinition.md create mode 100644 docs/models/updateindexv1ragmanagedindexesindexnameputrequest.md create mode 100644 docs/models/updatemanagedindexrequest.md create mode 100644 docs/models/vectordtype.md create mode 100644 docs/models/voiceresponsetype.md create mode 100644 docs/sdks/managedindexes/README.md create mode 100644 src/mistralai/client/managed_indexes.py create mode 100644 src/mistralai/client/models/accepteddocumentresponse.py create mode 100644 src/mistralai/client/models/and_.py create mode 100644 src/mistralai/client/models/boolarrayfielddefinition.py create mode 100644 src/mistralai/client/models/boolfielddefinition.py create mode 100644 src/mistralai/client/models/create_index_v1_rag_managed_indexes_postop.py create mode 100644 src/mistralai/client/models/createmanagedindexrequest.py create mode 100644 src/mistralai/client/models/customembeddingmodel.py create mode 100644 src/mistralai/client/models/delete_documents_v1_rag_managed_indexes_index_name_documents_deleteop.py create mode 100644 src/mistralai/client/models/delete_index_v1_rag_managed_indexes_index_name_deleteop.py create mode 100644 src/mistralai/client/models/deletedocumentsrequest.py create mode 100644 src/mistralai/client/models/deletedocumentsresponse.py create mode 100644 src/mistralai/client/models/deletemanagedindexresponse.py create mode 100644 src/mistralai/client/models/densevectorfielddefinition.py create mode 100644 src/mistralai/client/models/distancemetric.py create mode 100644 src/mistralai/client/models/documentfielderrorresponse.py create mode 100644 src/mistralai/client/models/equal.py create mode 100644 src/mistralai/client/models/floatarrayfielddefinition.py create mode 100644 src/mistralai/client/models/floatfielddefinition.py create mode 100644 src/mistralai/client/models/get_index_v1_rag_managed_indexes_index_name_getop.py create mode 100644 src/mistralai/client/models/in_.py create mode 100644 src/mistralai/client/models/ingest_documents_v1_rag_managed_indexes_index_name_documents_postop.py create mode 100644 src/mistralai/client/models/ingestdocumentsrequest.py create mode 100644 src/mistralai/client/models/ingestdocumentsresponse.py create mode 100644 src/mistralai/client/models/intarrayfielddefinition.py create mode 100644 src/mistralai/client/models/intfielddefinition.py create mode 100644 src/mistralai/client/models/jsonfielddefinition.py create mode 100644 src/mistralai/client/models/keywordarrayfielddefinition.py create mode 100644 src/mistralai/client/models/keywordfielddefinition.py create mode 100644 src/mistralai/client/models/keywordretriever.py create mode 100644 src/mistralai/client/models/list_indexes_v1_rag_managed_indexes_getop.py create mode 100644 src/mistralai/client/models/listmanagedindexesresponse.py create mode 100644 src/mistralai/client/models/longarrayfielddefinition.py create mode 100644 src/mistralai/client/models/longfielddefinition.py create mode 100644 src/mistralai/client/models/managedindexconfig.py create mode 100644 src/mistralai/client/models/managedindexfields.py create mode 100644 src/mistralai/client/models/managedindexresponse.py create mode 100644 src/mistralai/client/models/managedindexstatus.py create mode 100644 src/mistralai/client/models/mistralembeddingmodel.py create mode 100644 src/mistralai/client/models/nearestneighbourretriever.py create mode 100644 src/mistralai/client/models/not_.py create mode 100644 src/mistralai/client/models/or_.py create mode 100644 src/mistralai/client/models/range.py create mode 100644 src/mistralai/client/models/rejecteddocumentresponse.py create mode 100644 src/mistralai/client/models/search_index_v1_rag_managed_indexes_index_name_search_postop.py create mode 100644 src/mistralai/client/models/searchchunkresponse.py create mode 100644 src/mistralai/client/models/searchhitresponse.py create mode 100644 src/mistralai/client/models/searchrequest.py create mode 100644 src/mistralai/client/models/searchresponse.py create mode 100644 src/mistralai/client/models/textarrayfielddefinition.py create mode 100644 src/mistralai/client/models/textfielddefinition.py create mode 100644 src/mistralai/client/models/timestamparrayfielddefinition.py create mode 100644 src/mistralai/client/models/timestampfielddefinition.py create mode 100644 src/mistralai/client/models/update_index_v1_rag_managed_indexes_index_name_putop.py create mode 100644 src/mistralai/client/models/updatemanagedindexrequest.py create mode 100644 src/mistralai/client/models/vectordtype.py diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index d6118e173..4ec9d636b 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: eae1010f0d22b22a04babf09c3f74c9e + docChecksum: a9c16d46ae1923d832640cabafc693c6 docVersion: 1.0.0 - speakeasyVersion: 1.796.1 - generationVersion: 2.933.0 - releaseVersion: 2.10.0 - configChecksum: 12d6f65ad549b42e3537a995f818c2ac + speakeasyVersion: 1.796.4 + generationVersion: 2.935.1 + releaseVersion: 2.10.1 + configChecksum: 6c53df88b0ef67507b9a5049929112a1 repoURL: https://github.com/mistralai/client-python.git installationURL: https://github.com/mistralai/client-python.git published: true persistentEdits: - generation_id: 84fae68b-3158-4eb8-ac3d-e9d9fe0123c4 - pristine_commit_hash: a86f86239a9cc154a53648bd22f2a8a8a95d96ce - pristine_tree_hash: 7e94916f5b8f4ca0e6aecda1c8485a415253e915 + generation_id: aea6e2cf-f892-4093-9d63-7b7543e71ee1 + pristine_commit_hash: 80200e9898c9d59df95afa280ae0dcdbe602c65b + pristine_tree_hash: b7c5712b0f249666998df1f0baefa56db06a9644 features: python: acceptHeaders: 3.0.0 @@ -47,7 +47,7 @@ features: operationTimeout: 0.3.1 pagination: 3.0.10 responseFormat: 1.1.0 - retries: 3.1.1 + retries: 3.1.2 sdkHooks: 1.3.0 serverEvents: 1.1.1 serverEventsSentinels: 0.1.0 @@ -72,42 +72,46 @@ trackedFiles: id: 750ead4ce7ee last_write_checksum: sha1:a3fa64f01329ca02fdd8d7a6470c3d2f051985e5 pristine_git_object: 615552c32013c702b3e7476b1691952b0a4a65df + docs/models/accepteddocumentresponse.md: + id: 4d3bfe054d28 + last_write_checksum: sha1:936b43aa6fb2e66b0f1f890ea4264e623fd60178 + pristine_git_object: 52a7871acb8f4be732ff15ab9c7085f0f2b57b1f docs/models/activitytaskcompletedattributesresponse.md: id: 972b526f8415 last_write_checksum: sha1:ac33517d238733a00d938ed19c7b30ba2b3f7955 pristine_git_object: 43c92fe262f8e8657d337420526959424889d5dd docs/models/activitytaskcompletedresponse.md: id: 6aade3f8c26c - last_write_checksum: sha1:14f4d21bfdfe44f1645a71c188d239f21fa7bfa6 - pristine_git_object: f228c8651bef8c6221d36a68c374dda793c756ea + last_write_checksum: sha1:ec3b700f98e982fdcc350fb454f5414d04d2d2a0 + pristine_git_object: 3b457416cc1766bace1a93d54765922bf62a7055 docs/models/activitytaskfailedattributes.md: id: a69d5f4b0b99 last_write_checksum: sha1:e5371dae85ec79f485b5e3afc1ac8c29a2424163 pristine_git_object: 5cb9cafe9ce235ff996c3f1529babedfc6ebe239 docs/models/activitytaskfailedresponse.md: id: 325e821a4d2f - last_write_checksum: sha1:66eb2ebfd8cf24679091374d5c2abf1dd6429615 - pristine_git_object: 3eea5f598059cc59497a8510aed3565271f972ba + last_write_checksum: sha1:a8d6d513380af689771cf03480940cf459abf6b1 + pristine_git_object: d32ae8fdfaa39cfbb5e9783b08879a17953b5788 docs/models/activitytaskretryingattributes.md: id: 4d2e278266f7 last_write_checksum: sha1:a79f27b4272efab1378a0f2d7de12939dfb7a933 pristine_git_object: 9216607678cc149d446bf30ba92a6cf9b3d4d3d2 docs/models/activitytaskretryingresponse.md: id: ca0fb7b72379 - last_write_checksum: sha1:d42e19865057a89031307d832b66d5eaa57c5f22 - pristine_git_object: 77ac704bab05aa9422134ef57094331af1eaa498 + last_write_checksum: sha1:fabe07b6096f02e7df3e9942ce7c079169a9a3ed + pristine_git_object: bde2a072bc20f00dddfe57d1df033b725d0f92bd docs/models/activitytaskstartedattributesresponse.md: id: b0d2e886ad19 last_write_checksum: sha1:89068691379007eb892b4d81bfaeeb8f889771fd pristine_git_object: dd97ff85fb14f03afb8e3b390d7000cd3c308e64 docs/models/activitytaskstartedresponse.md: id: c25113506e99 - last_write_checksum: sha1:610696d492c358f48d9149c6e4c3c52456c3b02d - pristine_git_object: cafdca16f8c57137f43b9032ba273c3e8151e599 + last_write_checksum: sha1:54bbccad7c1aa5c86a2594599ab8b051acaad22e + pristine_git_object: ca0206333956c6cf6509a27a84df921bcb83d18a docs/models/agent.md: id: ffdbb4c53c87 - last_write_checksum: sha1:a4438b1b0db1d00df3aacfc432acc523a3ca57da - pristine_git_object: 94e8b035a5a9f61d3a0e345daf977a83e352ba07 + last_write_checksum: sha1:568c13a4d6ccbd079989bd6a1af02c847e3e15c0 + pristine_git_object: 4a5fb56bbcf0694a51ea44785d8cf758303c516a docs/models/agentaliasresponse.md: id: 5ac4721d8947 last_write_checksum: sha1:15dcc6820e89d2c6bb799e331463419ce29ec167 @@ -300,6 +304,14 @@ trackedFiles: id: 22901617b59b last_write_checksum: sha1:14632d3cfc2a9a604841734c4dbc945260397e56 pristine_git_object: 019c4cf28905a95c40b50a84288e2b9b14a4c7fc + docs/models/and_.md: + id: a4692aa4d8e7 + last_write_checksum: sha1:b8cbf5a9a90a160cf8f7886c8fa883ee890ea57c + pristine_git_object: 064a594b1a381c4336cf3b9dc69f48eda84069c2 + docs/models/andmatch.md: + id: 836ee95557bf + last_write_checksum: sha1:289e87b83032fde7c3fafd92ae1e925e4e0b9055 + pristine_git_object: 23f45709694e7e5880472a12b4b28ab9a394689d docs/models/annotations.md: id: f3368d2e0511 last_write_checksum: sha1:2ffa9e219b9cf7b28e8591ddbc7c27d92d07022e @@ -452,6 +464,14 @@ trackedFiles: id: 3612a7201bb5 last_write_checksum: sha1:a746d85e7ea05774bfe868a90a416c16f22c202d pristine_git_object: 4ba9bb4e7b488424d4b9882bdbf1a179c212b2d1 + docs/models/boolarrayfielddefinition.md: + id: bff596267d1c + last_write_checksum: sha1:524324467e46c38bbd744a050cac5a511dad51db + pristine_git_object: ad68ce8121b6d9b11b763d1ffd089026452cf46f + docs/models/boolfielddefinition.md: + id: d3305734ca8c + last_write_checksum: sha1:a24b24492dade5c02647f0c7fe7a7a3e07ef0de8 + pristine_git_object: 43c275a9e2125fe60a73dcf4c56953a9aad38356 docs/models/builtinconnectors.md: id: 9d14e972f08a last_write_checksum: sha1:ad790344ffc177d10a7eff06482c39d722cd7b95 @@ -532,6 +552,10 @@ trackedFiles: id: aec173bca43b last_write_checksum: sha1:14ce49ace5845bc467fe1559b12374bfd36bc9a7 pristine_git_object: ff1c6ea32233d5c5e8d6292c62f9e8eacd3340c3 + docs/models/chunkfields.md: + id: 3d162f44cb96 + last_write_checksum: sha1:e3260bb3fa97104b4f27ede5e9d958c5ae2af8bf + pristine_git_object: 3a9f700ad6dce416d3eb42f9e90596ffdb4dce7c docs/models/classificationrequest.md: id: 6f79e905a3fa last_write_checksum: sha1:3e083210e1cfdd3539e714928688648673767ae8 @@ -754,8 +778,8 @@ trackedFiles: pristine_git_object: 4447f538f7baee30a1d5921efd87fd337f945e58 docs/models/connectorsqueryfilters.md: id: d6fb981cad1e - last_write_checksum: sha1:01782d52446d8e7e53c72094b2ff86b6fe600ee4 - pristine_git_object: 37c19e7a9d2c4bb41a77a8c13936024c9d218d08 + last_write_checksum: sha1:ade303aa8a2432d6b15de7874744edbd79282b33 + pristine_git_object: b4ffb97baaac41425cc7ae0b20de73b53fe801ad docs/models/connectortool.md: id: 1c640bab9aeb last_write_checksum: sha1:ab4ad137330bda6699043da2337aea477c33241e @@ -972,6 +996,10 @@ trackedFiles: id: cfe909c87843 last_write_checksum: sha1:7f633da76b27c1c6fd18d708c3e94ae1eb0b1736 pristine_git_object: ac6bee2c249e4b85956b6db0bc977d485e0c00fc + docs/models/createindexv1ragmanagedindexespostresponse.md: + id: ea622233f1f2 + last_write_checksum: sha1:a61f0f07b6563472f1a623932174efc3db282741 + pristine_git_object: 80e4b24e2f007dcee967c5e5075a5e14a7652915 docs/models/createingestionpipelineconfigurationrequest.md: id: fec0e339a487 last_write_checksum: sha1:63b042068e1302be85e2103376742fc054c20564 @@ -988,10 +1016,14 @@ trackedFiles: id: 8935b2ed9d13 last_write_checksum: sha1:1bc8b8f3827425b63bf25b6662d959274f266679 pristine_git_object: fd94c1caf6dbe31da9b0494879027cba9dbbb6c3 + docs/models/createmanagedindexrequest.md: + id: 252e49cfed8d + last_write_checksum: sha1:5171dd689f068c55471b0db360bf7302279378bc + pristine_git_object: 1913893746776759f2684528bff4ba4d4dbcc014 docs/models/createpipelineconfigrequest.md: id: df6cbc748145 - last_write_checksum: sha1:2603193df3959b8c6b5b0c78b76a06c1119bb709 - pristine_git_object: be5db0c431effdb5d634437ed6175c810635589f + last_write_checksum: sha1:221e211b62756deaf364d65d558d5393ac3ab741 + pristine_git_object: 0914d2646fbb95d5f0712df79e640020ac2b46cf docs/models/createpromptrequest.md: id: a944c1299095 last_write_checksum: sha1:991592a4ffcbdaf0d6c67b2ce0b73383af81a9cd @@ -1014,8 +1046,8 @@ trackedFiles: pristine_git_object: a948c04d0a04cf03da244f6327b703e6358e394f docs/models/createserviceaccountrequest.md: id: 60e3fe6bce5e - last_write_checksum: sha1:9aa0cf7ebbd3542c441e60c4db29fbfd9a9d84d8 - pristine_git_object: 244d99683ac5fe8347b3965c4da9ee2a8844c292 + last_write_checksum: sha1:43b55fb897491554d226bb0a6fe9df84251c7772 + pristine_git_object: 9380563f4291bd6b6d6f40720b7e7c711d7878a7 docs/models/createskillrequest.md: id: 8696f3d3db5b last_write_checksum: sha1:37e35e3c9dfe4e2f364bb55936e39b6d8e6868dc @@ -1048,54 +1080,58 @@ trackedFiles: id: 7bcc77607afa last_write_checksum: sha1:ce9e8ffac3f83e08269fbed5d2dffbfeb9f8649a pristine_git_object: 0a0b69217abb0fbcbe30fad32c239aea070d3740 + docs/models/customembeddingmodel.md: + id: 16eed1de1bad + last_write_checksum: sha1:6fe2e11b07e475885a7b75cc49e4c012eb60fdfc + pristine_git_object: 974854458a8c226cb9b0d6e11e3f95507ffc7597 docs/models/customtaskcanceledattributes.md: id: 5a2768dda295 last_write_checksum: sha1:0a1df1ffa17cd0857bf3e0ac884406d7dfeb07f0 pristine_git_object: 3a5facdd3be90098f0f22bcf05215472cf2d4ec9 docs/models/customtaskcanceledresponse.md: id: 79e4f2bbf720 - last_write_checksum: sha1:0e27dd0382f6c5bab049cea696897ea2c6be646d - pristine_git_object: 8cd824feb58436b2016abb07257f410cea051755 + last_write_checksum: sha1:74b9d178b7f8b51fdc941bc8f21dfdcdfb0ac7c2 + pristine_git_object: 85d7bca4f402adfcb7f30e865b9df400b3ff872e docs/models/customtaskcompletedattributesresponse.md: id: c12961b43e1c last_write_checksum: sha1:e549b58f4d1a544e3c453a9ec454930d342f5adf pristine_git_object: 4c7cbfa21dcdcf91ceac8f1ca5d84413eefc4bbb docs/models/customtaskcompletedresponse.md: id: 81d843216312 - last_write_checksum: sha1:0718b2a0c6dec743f4c7906f45af79ddf8ef3b55 - pristine_git_object: b31f4e22ac96b7b89c2dbbe424d4fa858df4b392 + last_write_checksum: sha1:f3ef2e7bf00991bddcbda889972b2880a5f62b3b + pristine_git_object: e3383dde878fbc76f6ad6f33a444f4c3d7551641 docs/models/customtaskfailedattributes.md: id: cd0cdf6bd8d8 last_write_checksum: sha1:71cf249d1b1bd2df1cf3ec4426da9b8c9bb82c37 pristine_git_object: f4e3ab2d57ec9d447c3570e6832f911c93c94f96 docs/models/customtaskfailedresponse.md: id: 16c047b0f70f - last_write_checksum: sha1:e9d4a5cbb677c2c55181e2b8d27a87873d8efc6c - pristine_git_object: 09385f063d158a00419024eb8988cbfd78eca7ae + last_write_checksum: sha1:63554fce99b7786ef6ff7cae82bebcd92b5554d2 + pristine_git_object: 3f4c18a4ead21889bfad744a263bd2009e7f595e docs/models/customtaskinprogressattributesresponse.md: id: 8482e22b58c4 last_write_checksum: sha1:0681737168dc45c08b085a4cf084903fedc127e3 pristine_git_object: d55b81379969289edd586c03cfc8eda46a615fb2 docs/models/customtaskinprogressresponse.md: id: a181c7602b7f - last_write_checksum: sha1:f89344b7024132bc9a1c2b5fd653ccbf3d8bbe5a - pristine_git_object: c3ee34185ab6f324cfe6d4b37effdd5dcd525788 + last_write_checksum: sha1:599633a421219de9834c97f4f58c05d1e827d1f6 + pristine_git_object: 15a4cf8bc5ce58307389f465dad03a96743ca1cc docs/models/customtaskstartedattributesresponse.md: id: 272cf75ac5d3 last_write_checksum: sha1:bc09d8da2636e28821260a08235fcf69d577758a pristine_git_object: 41cd66a9e59dbfdb9c0574001a4a12f2ac499f93 docs/models/customtaskstartedresponse.md: id: 6ccd9fe137bc - last_write_checksum: sha1:2fb5b763d0b165bc866cea572ed605869f08affc - pristine_git_object: 48acab463772562aa8290c69616a2b70c1629346 + last_write_checksum: sha1:c1d0a5a6a52147eef43552a9a64df568df178b43 + pristine_git_object: 4130f72dfba1d591ca688cb05fa899ae4f817307 docs/models/customtasktimedoutattributes.md: id: b941e1c031db last_write_checksum: sha1:db82046ed2aa47a5c206a9e5cea7f7ab066a3329 pristine_git_object: b302b07666ad0b807990d42d6ef67a3c9c213bc8 docs/models/customtasktimedoutresponse.md: id: b4f8e7f006e7 - last_write_checksum: sha1:ef9c65c1c3030a4b156e90136cd2dd9f8739241b - pristine_git_object: 02bb0581f404910eb42c5a628bfe014734623f10 + last_write_checksum: sha1:b2e0e46c908f75aaaaa9a88771686022c041b5f5 + pristine_git_object: 1d206b0219c460e44e9432d1b1c9783b79a972a4 docs/models/dataset.md: id: 31af4d237e19 last_write_checksum: sha1:073fa9a0b7891ccd9b6ae64ba960d74eeb5c9007 @@ -1136,14 +1172,34 @@ trackedFiles: id: 520748d99633 last_write_checksum: sha1:15af8dc6331d399bfdc2cd9d0fba73f21ac108b9 pristine_git_object: b86c3fe78148d1373f4455ac319ebaa9997c8a12 + docs/models/deletedocumentsrequest.md: + id: f2e769b90136 + last_write_checksum: sha1:0dbecbf85421a782811ab4365a6474413c05bb54 + pristine_git_object: a2e90dc88a53cfb9d8d7a6c3a3117e53c344469e + docs/models/deletedocumentsresponse.md: + id: 55c0f6a85f9c + last_write_checksum: sha1:6553622d55e2deecb103ab52a0b26a4dee6defaa + pristine_git_object: 4720883b28beaa602a649dce01481f85c74e6132 + docs/models/deletedocumentsv1ragmanagedindexesindexnamedocumentsdeleterequest.md: + id: 09d9945efab1 + last_write_checksum: sha1:67a29d948fb84742fb8fbb5a0ffd49b7f9995db1 + pristine_git_object: 9cce840a3dcaedb64e4336531a931a3115f9e081 docs/models/deletefileresponse.md: id: ab3aa44589a0 last_write_checksum: sha1:6d6ff32f1a9a6caf26eaf590fa78c0f9efb2be9d pristine_git_object: 2c3e1c2373f89425d1782d902313974a264533d3 + docs/models/deleteindexv1ragmanagedindexesindexnamedeleterequest.md: + id: 63a680c774ff + last_write_checksum: sha1:0a5b4a7408eaac9d75b6338646c3eab28258c108 + pristine_git_object: 39e72c0dba4b29563c88c84ff768ab8d32ebe575 docs/models/deletejudgev1observabilityjudgesjudgeiddeleterequest.md: id: 9031fd7f46f4 last_write_checksum: sha1:6879788359096a08d1adc32320e63f3657f1a2dd pristine_git_object: 44042efca294d38b53502e18fc574cf5dc67ab8a + docs/models/deletemanagedindexresponse.md: + id: d359a1ff3d68 + last_write_checksum: sha1:d0f813376a2a7ec1395fbecec808ecf524d195e2 + pristine_git_object: 2f4b899cf14ecc663d46be8ba738695bef069407 docs/models/deletemodelresponse.md: id: a5a703ee49a7 last_write_checksum: sha1:37f9728cb9dcb2d1c6aa44b24000e197997b08c0 @@ -1180,14 +1236,18 @@ trackedFiles: id: 7307bedc8733 last_write_checksum: sha1:a1211b8cb576ad1358e68983680ee326c3920a5e pristine_git_object: 8142772d7ea33ad8a75cf9cf822564ba3f630de2 + docs/models/densevectorfielddefinition.md: + id: 6e698d27f72d + last_write_checksum: sha1:e13120959ebef255d8d9dba09508c572e3bd5642 + pristine_git_object: ec8b7e7b5fa7dbbd51d79ede5b259e7b42ca8826 docs/models/deploymentbuildstate.md: id: 7019a1189d21 last_write_checksum: sha1:9b6733368e984fb7267420507282b72bbd9f617c pristine_git_object: 9dff582203770fbdb9628cbb9893a962923e297b docs/models/deploymentdetailresponse.md: id: 712f7bbc8cc0 - last_write_checksum: sha1:06c10427ba4db552ff6e19612f7f53efab2ba563 - pristine_git_object: a98807c3cb49b0f8e22c5dc3662a74d354b122a5 + last_write_checksum: sha1:13d8f5ad76e9c9a604b06ef9590c63c1295b455e + pristine_git_object: 131b1e2f744795e92ffd71df54ce4adf37fdc8db docs/models/deploymentk8sbackendspec.md: id: 55034e96c579 last_write_checksum: sha1:d4783243a38bab5892744ca3b3308f7d2366d963 @@ -1226,8 +1286,8 @@ trackedFiles: pristine_git_object: e11a8275410eab9849577f7fe6b86665f86a04e6 docs/models/deploymentresponse.md: id: a9da842850c4 - last_write_checksum: sha1:c7538d6e7cdce79d40fd693db2f0e8f75008ebba - pristine_git_object: d9be7876afc974c34a3c29cef84510db10b60f94 + last_write_checksum: sha1:bf75c978bf0aeb41964e6adadfa2b4779f830d45 + pristine_git_object: e805fcca3257e3df396788d69d06e48811bd0b3d docs/models/deploymentstatus.md: id: b039895c72a9 last_write_checksum: sha1:fe2f0489b2fea1fa58454ea8abe7426d01b17794 @@ -1238,8 +1298,8 @@ trackedFiles: pristine_git_object: 0fd43a5d7e47ab074a640af516f3c7eb2a2a4cfe docs/models/deploymentworkerresponse.md: id: 07cd9c89237a - last_write_checksum: sha1:b4ecb28489bd72302e5f56dd9d54f40378dae3e2 - pristine_git_object: f008cdb118734917b68ceda25fda2e2643c3ce2a + last_write_checksum: sha1:b4dc3aa6fef3d871ba7c29841a0c9438e11f17ad + pristine_git_object: 2f1d4bc3cb1e2c7dae1ba59235b5c82af28c6aca docs/models/deploymentworkerspecinput.md: id: 1cd06cd8089d last_write_checksum: sha1:4d84bb1ab0d9b07bd382ce862c52ce27d9345c3f @@ -1268,10 +1328,22 @@ trackedFiles: id: 5c2dbb7995cb last_write_checksum: sha1:2dfedff8ff7b59bf8b7a72c78400152970362e1d pristine_git_object: 8e02b553fdbe78542391267a9c2ebea33767088d + docs/models/distancemetric.md: + id: 8543b7a9de07 + last_write_checksum: sha1:8aa73e9b28b31088f8484d7c23f070d2e449d807 + pristine_git_object: 6f2e7025dda91af399c644e8c0b3d04148d8302a docs/models/document.md: id: cd1d2a444370 last_write_checksum: sha1:7aeb84c1a0efa2b3bf15808714405fe29b930296 pristine_git_object: ff0238ea7afcba3ef690a303574f74744ba31ecd + docs/models/documentfielderrorresponse.md: + id: 51524e159642 + last_write_checksum: sha1:b0045169a517da8a9690cd7f52fdfc2bd442541f + pristine_git_object: b0c333ac9a447532000b8d2cc2c6da3fe6402f92 + docs/models/documentfields.md: + id: d8dadb14abd6 + last_write_checksum: sha1:85c27be27e7d271a3f59a4b397a56121ac6413df + pristine_git_object: f1d36d18bc159461ba4e6e3764efed3acb644ce6 docs/models/documentlibrarytool.md: id: 68083b0ef8f3 last_write_checksum: sha1:76b9f47c399915a338abe929cb10c1b37282eadf @@ -1300,6 +1372,10 @@ trackedFiles: id: f7ea3888f520 last_write_checksum: sha1:8f0869b4403767c45c464cdd7b6c640994c65ab9 pristine_git_object: 102fca261d4ada514a7df14415383c1da9e59782 + docs/models/embedding.md: + id: e52c3fb852d4 + last_write_checksum: sha1:6f8dfe6fd3ff3ae86fe32e63a892818458b7a7ef + pristine_git_object: 67fe75aa4d091ef0c9eb1b48380e150e0d24dbb6 docs/models/embeddingdtype.md: id: 22786e732e28 last_write_checksum: sha1:1f348c1b3dba72dd710c1eee3953556d051366f8 @@ -1340,6 +1416,14 @@ trackedFiles: id: da9a99ab48ab last_write_checksum: sha1:4971db390327db09f88feff5d2b8a0b1e6c5b933 pristine_git_object: d934b6774b25713afe923154d7709755426ec2cf + docs/models/equal.md: + id: 71aa7913f26d + last_write_checksum: sha1:19a720d90334ce7d42fbdb516f2614fd56740079 + pristine_git_object: 5bf68eef212ba77dcddee00a88921a3b2f645fb6 + docs/models/equalvalue.md: + id: 45565a5249de + last_write_checksum: sha1:83342e07ea691cf96f2c21225fbd539d226c2ef3 + pristine_git_object: 12882f33ea0172c618d78f5f37e9b85a4f2af9cb docs/models/eventprogressstatus.md: id: af5980e18511 last_write_checksum: sha1:83557558fb755cbdba7b8cfce5610f2f13f69a58 @@ -1488,6 +1572,14 @@ trackedFiles: id: 3a6a0498ccf7 last_write_checksum: sha1:82fc7d3f4e0b591b757f202699bb645bc61c69ff pristine_git_object: d3203a2adccb7eb89c58395952c3e5a123a5b31b + docs/models/floatarrayfielddefinition.md: + id: 81003b2b553b + last_write_checksum: sha1:7b81d570f69e432ad3cadb3ebcc69c878d39b4cd + pristine_git_object: 0afe46cdbd00e36785479e414b1eaa97e28064a7 + docs/models/floatfielddefinition.md: + id: f5a3b29cfec4 + last_write_checksum: sha1:21dd27ba7e1199644f357fac5eea058bdd843eef + pristine_git_object: d77a7d5daf610487319cf120222f33658f5d96f7 docs/models/format_.md: id: a17c22228eda last_write_checksum: sha1:72d2d0549cd18ea564007a268c13bfd1eba219ec @@ -1604,6 +1696,10 @@ trackedFiles: id: a983b3c8acd6 last_write_checksum: sha1:643a3c92ce26f21a915bd485fc4af7817e79f864 pristine_git_object: 38ad49438c06b48ed8eeecf773d4bed51cdb1c9d + docs/models/getindexv1ragmanagedindexesindexnamegetrequest.md: + id: 72bf1974fd18 + last_write_checksum: sha1:aa4b7736f69def383848048ddc967ca47baba86f + pristine_git_object: 8705b8bced8a3a045a65bc04525b4d8179e5fe0d docs/models/getjudgebyidv1observabilityjudgesjudgeidgetrequest.md: id: 06b097dd2a61 last_write_checksum: sha1:089d9b646a90f2180dbfc85271804e0857204b34 @@ -1852,14 +1948,22 @@ trackedFiles: id: 3cee51c03dea last_write_checksum: sha1:7ac3b029b14105672460c3fab1b8ae56637fb979 pristine_git_object: d409e523ec385ba2170afb8b7299ab2f971c9c4a + docs/models/gt.md: + id: 140a4c2dfe7b + last_write_checksum: sha1:0b80e420c4eaaac6fe255ca6e79352f6c43303c9 + pristine_git_object: 6d2e1fd2aceea70c69de13b642a19614da54961f + docs/models/gte.md: + id: 21ec525df0d8 + last_write_checksum: sha1:7d4feb7f2dca193abadf41ae49082dec69be1404 + pristine_git_object: 542ff63ba008da17e5c6812b814f81e74640c0ae docs/models/guardrailconfig.md: id: f60bf2eefb45 last_write_checksum: sha1:e8dd384d2fd18d731753ba8d45a2975379c97052 pristine_git_object: 1276462cc43fbd940f12282b1dca05e6fc7a16f9 docs/models/httpconnector.md: id: eeb95c7a05cd - last_write_checksum: sha1:8b48fee20318e8dad42d282d21efefb29b1e855b - pristine_git_object: 368bf5e3e16296449ec413b3ee649459fb435f6b + last_write_checksum: sha1:186b4fb204beefefb67cf6fe502923d397c7562f + pristine_git_object: c1868c224b8ddcf649b0e7670bbb450502c56143 docs/models/httpstatus.md: id: 88abba969ffd last_write_checksum: sha1:088800f9bbd8ce7db0f1dc948044558fef268636 @@ -1900,10 +2004,26 @@ trackedFiles: id: 74bd521abc26 last_write_checksum: sha1:a4efe4ff8c52137af47d6ab750d1d2f7cba77e7c pristine_git_object: 72a586bc65f6219abed50105d9df9cb8b6ec8d02 + docs/models/in_.md: + id: 9520707758f0 + last_write_checksum: sha1:8db5ba33fa9c50f199d1a7bbae3c1616e65203b8 + pristine_git_object: 3e0509db0808a78f8beeeb97b8f89d421ae9d905 docs/models/inboundauthenticationtype.md: id: 31c15e812eb0 last_write_checksum: sha1:341c47f514e556a8fd8a602920fb6a29beffa305 pristine_git_object: ea04329c04cbe001e4a29880fc2fd463ba5cbe03 + docs/models/ingestdocumentsrequest.md: + id: 84fd78954e92 + last_write_checksum: sha1:cd24af1e788e720790f47f53007a00f5218df013 + pristine_git_object: e8f6681599b264c3e0d81c60c1b93dff01c976a4 + docs/models/ingestdocumentsresponse.md: + id: a44297d7c9b0 + last_write_checksum: sha1:ce9bab0a5a41a14fc514bd98f9d51d0cef9c32f2 + pristine_git_object: adf92b05d7cdc99a8d208053294e3c85012d8212 + docs/models/ingestdocumentsv1ragmanagedindexesindexnamedocumentspostrequest.md: + id: 1ba143d20996 + last_write_checksum: sha1:6f7ecc66a79a3ad5c73e212a7f86bf973bfee00b + pristine_git_object: 6777f6edfecf904846815e429be00bae73762e68 docs/models/ingestionpipelineconfiguration.md: id: 95a1d6bf413b last_write_checksum: sha1:ba9e052c6ab8b13b4108ff395ac0e20181326f0b @@ -1928,6 +2048,18 @@ trackedFiles: id: 380503708a09 last_write_checksum: sha1:551b5d6dd3ba0b39cad32478213a9eb7549f0023 pristine_git_object: 57ed27ab3b1430514797dd0073bc87b31e5e3815 + docs/models/intarrayfielddefinition.md: + id: 8fa0fb36f922 + last_write_checksum: sha1:cfb76df39eb85803a56bce544e1e09235ed2100e + pristine_git_object: 63c7a600f12af33cb7a6a7d5fcee6c8a9138a5d0 + docs/models/intfielddefinition.md: + id: 702b1a4885f8 + last_write_checksum: sha1:13fe2e24086b0a22837b4f8a84b3e1c328ec57ee + pristine_git_object: 07b3448b04669a3404abab8e65c2c22a18970c49 + docs/models/invalue.md: + id: 9a323b27ebd6 + last_write_checksum: sha1:349132e663310f81a11d92580fad9db21bf2e395 + pristine_git_object: 6f68d3f633b07e2c04c8d5bf8fc6eda9a853c976 docs/models/jobsapiroutesbatchcancelbatchjobrequest.md: id: 798cb1ca1385 last_write_checksum: sha1:67e8bda117608aee0e09a702a1ef8a4b03c40b68 @@ -1964,6 +2096,10 @@ trackedFiles: id: c265a30fd4cf last_write_checksum: sha1:410c62a884aae902cdfbfcab33779e62487de13b pristine_git_object: f40350bf9d74d09ca3a2ec6d91d9068bda631ef5 + docs/models/jsonfielddefinition.md: + id: bc1b271ce79b + last_write_checksum: sha1:af34b11eec06ba6ddd070efd733df83b8d876551 + pristine_git_object: a319d296bec13d492c2c84ec86d6af79044aa07c docs/models/jsonpatch.md: id: 629a76c95cc5 last_write_checksum: sha1:8f4e93adfbf15a92cfed990a7b603b00807a9ec9 @@ -2034,8 +2170,8 @@ trackedFiles: pristine_git_object: 9ce4f011d6ab9f26b7bf3c720fa48ab0ec65dcf7 docs/models/judgedefinition.md: id: e21e5b09244b - last_write_checksum: sha1:081e1aceb5c7d622bf67d3c64349c31eb0062929 - pristine_git_object: 941af748fc64494024c86574129a862c2e2cee09 + last_write_checksum: sha1:bdc3237215e1380c0b179ce44a52ac5b38d6cb7c + pristine_git_object: 8aeb5fe48aab7036c825c226211f95b63efca6af docs/models/judgeoutput.md: id: 7a436a0118b9 last_write_checksum: sha1:fff6b2d6ce5f958a68bcc75ae19718fef7d5a49e @@ -2052,6 +2188,22 @@ trackedFiles: id: fb323d9098ab last_write_checksum: sha1:e3dc55fef190040b70467ec96c724b9150b41461 pristine_git_object: 8f020dfba2e068d3b0c3cb7e355f9705a00b0b76 + docs/models/keywordarrayfielddefinition.md: + id: ea38aeb0c671 + last_write_checksum: sha1:4c294622965349c900635d275b4409cc61e58566 + pristine_git_object: a7e03c4979d8b666fabc427e35d631fca818915e + docs/models/keywordfielddefinition.md: + id: 07cfded78b8d + last_write_checksum: sha1:31d1ec2536618e522c68b94ad6aa49a7ca222b1a + pristine_git_object: f76b86aed2bdf889181a1a7922ce83d0654cbb6c + docs/models/keywordretriever.md: + id: 6ee7aba8d363 + last_write_checksum: sha1:013d65bc293715c7c5055627ff2521684a79d67b + pristine_git_object: 36eeb6d4a76d5ebe24ddc19eb8bbab63753cf5bc + docs/models/keywordretrieverfilter.md: + id: 3d0460c874e0 + last_write_checksum: sha1:2880aa294c7db44ab0cc225ab06e82e1e9ea2935 + pristine_git_object: 4bbfe9dcb6809afd6df89ec3ef8100efd4095d2b docs/models/librariesdeletev1request.md: id: c0c3b2e1aabc last_write_checksum: sha1:bef84f8851b06d2d914b605f11109de1850d0294 @@ -2180,6 +2332,14 @@ trackedFiles: id: b15df90d2d59 last_write_checksum: sha1:4840f26427acf8846a9f1e48136f0663c6e4cd87 pristine_git_object: 802f685fb3a76afb86a69cf41e6de9339cd6fbc7 + docs/models/listindexesv1ragmanagedindexesgetrequest.md: + id: d29f21547878 + last_write_checksum: sha1:00031363f35d718d84a7d87947974a03efc2c6f1 + pristine_git_object: 1c737d5aa49fa510e68c13e2d91ee9b626513188 + docs/models/listindexesv1ragmanagedindexesgetresponse.md: + id: a3c656fc6549 + last_write_checksum: sha1:f87cfe79c88729b1b845459aab7e1d63da2d6aa5 + pristine_git_object: fbcc90aaa0799a6be5f2b048bc8ed175b967dadc docs/models/listjudgesresponse.md: id: dd610841e2f0 last_write_checksum: sha1:d90e6af66b36c914af2c478b5e3cf7d4fb79e096 @@ -2188,6 +2348,10 @@ trackedFiles: id: 87e3bec10745 last_write_checksum: sha1:6315b5da0bea6a99b4cf353f155ed1c4c366efe4 pristine_git_object: 4b47ae0e762bce22dc8da2b9fa31c85bcc90564d + docs/models/listmanagedindexesresponse.md: + id: 89cbf1543b35 + last_write_checksum: sha1:ddd9e6a019304ebbab0a2b28c2ffaa579c66fdd0 + pristine_git_object: d430a4723fb06c7c86b24203943554266f634a6a docs/models/listmodelsv1modelsgetrequest.md: id: ade37f6d014a last_write_checksum: sha1:10d4e1242cdac6cdc7597881e0d25ce06760971f @@ -2198,8 +2362,8 @@ trackedFiles: pristine_git_object: 8a6a6d3a6c3252e4cc11af5cbcf570a2358f3fe9 docs/models/listpipelineconfigsv1observabilitypipelineconfigsgetrequest.md: id: 355ccbf58e21 - last_write_checksum: sha1:e843345b186292a687ac410ae29cbc5358b5ad7b - pristine_git_object: c49e9cc0a58b31fca1b914f8fbd8abda456fbafb + last_write_checksum: sha1:288bdd47a8a28adae2574d68b710a7cebf0a5f32 + pristine_git_object: b99b831ec8a1b4f0669cdeb20e4c3a391d2e316d docs/models/listpromptsresponse.md: id: cd6fa906e61b last_write_checksum: sha1:de70326e508f9d5e0cd58b316fbfb4969c38ecf7 @@ -2238,8 +2402,8 @@ trackedFiles: pristine_git_object: a8b5111ca3b0801f2c0eb4579a95397b3352463d docs/models/listserviceaccountsv1serviceaccountsgetrequest.md: id: 41894aec56d8 - last_write_checksum: sha1:a4149082ed9b7703be9538b2fc3ce415d38dc25e - pristine_git_object: 274decb1b0e2d9b80815392a63dadf310dc7af92 + last_write_checksum: sha1:58cd9beaf63faf8cce3f36e9febc9fc2249e543f + pristine_git_object: db108d1844cdf1fc0a34e5f3e3c9a2f90a33e782 docs/models/listserviceaccountsv1serviceaccountsgetresponse.md: id: 4d926edd8670 last_write_checksum: sha1:7748eed7ad71b7b742a55b4173a135c26178b2b1 @@ -2288,6 +2452,10 @@ trackedFiles: id: b071d5a509cc last_write_checksum: sha1:09a04749333ab50ae806c3ac6adcaa90d54df0f1 pristine_git_object: d6094ac2c6e0326c039dad2f6b89158694ef6aa7 + docs/models/location.md: + id: d96a7d2fb391 + last_write_checksum: sha1:656562ca0c669ae0e79f7a2caaee9665978d572d + pristine_git_object: d99d74c21ea3e8e0613f1d224e6d402c23ec3c9c docs/models/locationtype.md: id: e25e2392c4c9 last_write_checksum: sha1:c644a5378a6017c433b6b24ae96e0e322cfc320b @@ -2304,14 +2472,46 @@ trackedFiles: id: 12b7ec599fbd last_write_checksum: sha1:e5d0cb420a7f3091bd616818dd0b40d90d994e95 pristine_git_object: 6b871cfa5d0db476df312ad0a412d666f41c33c2 + docs/models/longarrayfielddefinition.md: + id: c081c9c33b9a + last_write_checksum: sha1:be598b2c4b01e25de466f500b1aa7d9be55cad46 + pristine_git_object: 9ade41c494d04ffbe8d612ab382423802e97a7c3 + docs/models/longfielddefinition.md: + id: bdef2f0716c4 + last_write_checksum: sha1:5af3af715f7495093bc95929d5c4e7220cdab250 + pristine_git_object: 26eef04180488c334c7a81344f7824ff45aa7e70 + docs/models/lt.md: + id: 7acb232a102e + last_write_checksum: sha1:e5a0339de90b6f28abbe1f034983acd21c40eb29 + pristine_git_object: e248e9f4ef25fc0916ca065eee180ee1a4ccb30f + docs/models/lte.md: + id: 832272e26b62 + last_write_checksum: sha1:3671bc04c298f001e976f38f7f1a9176320f85d3 + pristine_git_object: 82973fa4eb26efec6e75369c73599f342e304d93 docs/models/manageddeploymentresponse.md: id: fba53130778a last_write_checksum: sha1:54eb7049a7f9d9cc4a1865f6527682aa13b493d7 pristine_git_object: be39058e6a3bdb3647acc5011d324e0afeacc53c + docs/models/managedindexconfig.md: + id: 642ff59b1373 + last_write_checksum: sha1:9704f80fc125c343ee439697ec14e6c39d747e8b + pristine_git_object: 3fe23e43961799984543b05ee49d5794234bc445 + docs/models/managedindexfields.md: + id: 361a00d02e56 + last_write_checksum: sha1:43a9daf17744d603258decad0a634aace3aa089c + pristine_git_object: b2616f6ddd5ee772f3e3f63c3670614b7ab51287 + docs/models/managedindexresponse.md: + id: 389c98065299 + last_write_checksum: sha1:8bdbf4521fb7308cbe0adbe624d6e931b7872bb5 + pristine_git_object: d7a126658511fb189a4938bcfc331cc7cae7eebe + docs/models/managedindexstatus.md: + id: 9ac947c8b23b + last_write_checksum: sha1:93491eadf0a938a5ac3fe71ffc92481ac3b283f1 + pristine_git_object: 51b13113c8c45f99df781c86b59cb49e6298d567 docs/models/mcpconnector.md: id: be0aeea7d044 - last_write_checksum: sha1:17dcb821f7eb32abb9cd489723b644557b95c344 - pristine_git_object: 7be22e506dc4db48f3f9d134dc45bc3ec9f64550 + last_write_checksum: sha1:f25437cf75e73771c9449fe8c369c9a93c23f628 + pristine_git_object: 17180c0b62c43db47536b589577cdb627d1f0a3c docs/models/mcpprompt.md: id: c6eeb6a6a719 last_write_checksum: sha1:321ce6a140536a8582632d937f498b2fd8006a7b @@ -2432,6 +2632,10 @@ trackedFiles: id: c89bb1d44735 last_write_checksum: sha1:8f36d4793766d968dca93be6bf526fcf435c7c0f pristine_git_object: 21bdd1baf6bddb016673e979db013afe572c307c + docs/models/mistralembeddingmodel.md: + id: 2886fd9adcce + last_write_checksum: sha1:3500a39a7fbdcbd0286e2efc8dcb65376da3a4aa + pristine_git_object: 5569e43f70a7864167c9b296b2c00a702187ff64 docs/models/mistralpromptmode.md: id: d17d5db4d3b6 last_write_checksum: sha1:d7804c45f10f2e929276d4a00bf6c2b966a78fb5 @@ -2492,6 +2696,14 @@ trackedFiles: id: f5be2d861921 last_write_checksum: sha1:624f30759b7b7de1913b1ef3b8bb2187a95b9570 pristine_git_object: 9d7a00c44e1507edd12f16fbb6b3864f1c0bbd81 + docs/models/nearestneighbourretriever.md: + id: 6df392a159b7 + last_write_checksum: sha1:e400227a9bc9c8a3c0c9f29996943c354d03ad7c + pristine_git_object: df41d5f80cd889ebf765492f8abd2ddfc5cb6c7d + docs/models/nearestneighbourretrieverfilter.md: + id: 209c95127bea + last_write_checksum: sha1:3d5085ec08c652bb065a011e58d960b5fdd434af + pristine_git_object: 6fc00d79ecb8e4b301404ccc7429c11bc2462552 docs/models/networkencodedinput.md: id: 44842604e405 last_write_checksum: sha1:50e09dfa5ed838df4a760358c6bf81c04da4910b @@ -2500,6 +2712,14 @@ trackedFiles: id: 750766f8bf48 last_write_checksum: sha1:50afd758e47b6eae1a4613bfe5dd54a37f99edf2 pristine_git_object: 29a680dacc414af8a0ec210b4a9f6908446290b8 + docs/models/not_.md: + id: 5f80470e101f + last_write_checksum: sha1:b6b1187d24cbed53e830fd6fdb99ade36e81497b + pristine_git_object: 1bc722d14dd7ea0b91e7d07514197af03f033c80 + docs/models/notmatch.md: + id: 331db24a4615 + last_write_checksum: sha1:2e020c7d717f00c23da4dd1bf6412539e872932b + pristine_git_object: 00b50c20f776155ecfb98a9033fbdc2ce57152aa docs/models/oauth2authmethod.md: id: b58ebde68702 last_write_checksum: sha1:7ebf4c7f5e961d0814002b9e866ca1142be4e161 @@ -2538,8 +2758,8 @@ trackedFiles: pristine_git_object: 22e2804a4424325ad07c264a61463635299fc254 docs/models/observabilityerrorcode.md: id: 61d16ff95b87 - last_write_checksum: sha1:9848a20a343cef989f02507e5ceb836a11352325 - pristine_git_object: 986f38893d0ce8919668ecc02143610a66d78efb + last_write_checksum: sha1:362cc7dd4faef8b9816fd0e3355d8db7802f6622 + pristine_git_object: 5ad41a679ac7a6518977b49a83183cd5d4462c2c docs/models/observabilityerrordetail.md: id: 38061447dfbb last_write_checksum: sha1:1da7bf6e72c2f972b0e22f0201a1cb9b76f53ccd @@ -2636,6 +2856,10 @@ trackedFiles: id: 419abbb8353a last_write_checksum: sha1:6e717a3f3de3c464e8b3237f06867cdfecec339e pristine_git_object: d9d79125cb02bc2b09d8dc543a5e2d4a6c55571c + docs/models/or_.md: + id: 4062b9894f72 + last_write_checksum: sha1:4d3d5a37fb7e365249b31186ac87f2e0c3333227 + pristine_git_object: 00754f4036cb067be0770124d93f4a8f64834999 docs/models/order.md: id: 5d2682daf79b last_write_checksum: sha1:eb8abef7e4c2e2e5691823f89b59f5789a58eac4 @@ -2644,6 +2868,10 @@ trackedFiles: id: 75e31a43e29c last_write_checksum: sha1:9d0f87458b3c9ec39ac11de493e7b91edc2541c7 pristine_git_object: 4d9604b0792dbfe133c77c83637bbbcd0a6e3a64 + docs/models/ormatch.md: + id: ae7dc9a4f56b + last_write_checksum: sha1:2a3a2fb048680238f928591b518de7297d1f1989 + pristine_git_object: cdb11118bad4d954b3cf84126635f59680d4d3ee docs/models/otelfielddefinition.md: id: a631910a6c2c last_write_checksum: sha1:332a8fb238653396370c554d0c1f3b455360fd7e @@ -2718,8 +2946,8 @@ trackedFiles: pristine_git_object: 22b47fa5d1a09c31ceacca958e094b9f37ea994a docs/models/pipelineconfig.md: id: c332380c94c3 - last_write_checksum: sha1:efa9c55c872606369c1b7f861a3a6b21d72d5b56 - pristine_git_object: a35da42da6f739c323beed2ffa7c2274012c0c4b + last_write_checksum: sha1:87754c6cce6613f7b554caef1af9000e77d66806 + pristine_git_object: 3c092f574ce76da06d17162b297e0748bfc7fb88 docs/models/pipelineconfigdefinition.md: id: f51917c84914 last_write_checksum: sha1:3963a203fc3d8e52b324eb60b198a00f64938032 @@ -2884,6 +3112,10 @@ trackedFiles: id: 6f29ca165760 last_write_checksum: sha1:1fb91b06fd875a868c0e8d3bb4b86ae31cc17fec pristine_git_object: cc5b08669152c4f3581a6d80a856c0925c40768b + docs/models/range.md: + id: 0cae0c76762e + last_write_checksum: sha1:3ca9ccd4c744d96a0ebf12ad5376b3833b1edae3 + pristine_git_object: 66efb860ca9ce7acde18a1e21afc2ae700aa11bb docs/models/rawcontent.md: id: 5b84ba3d9dbe last_write_checksum: sha1:75c51d48629dbc67ff8ff0ce6b6d19607e7c9740 @@ -2976,6 +3208,10 @@ trackedFiles: id: 55561a8bda82 last_write_checksum: sha1:79714f86526320aa853f975151b75fdb084c7ef6 pristine_git_object: 641868616e587dfecf853f1a110c2843b12747c3 + docs/models/rejecteddocumentresponse.md: + id: 2416573867bf + last_write_checksum: sha1:6efa1680873727ed7ae23a51c9da499d20d05646 + pristine_git_object: 1024907d0a68b05fa4a461bfd69092dfb1fa5d04 docs/models/requestedservicetier.md: id: 9c9f9ecaef75 last_write_checksum: sha1:8d68ae246b681aa10466663c7d41417b46543913 @@ -3060,6 +3296,10 @@ trackedFiles: id: 7012ffe68392 last_write_checksum: sha1:21f8c4b09a0186581ef38b52bef52b254ac0a171 pristine_git_object: 1c5889cb4afef1f0d607dadd6634a4c6836fa6f1 + docs/models/result.md: + id: b850437752c3 + last_write_checksum: sha1:3df14677ff91bcd981d98d50a1dcefd5076b76c1 + pristine_git_object: 6ba175d71b7f3ff7b83f2cb4256af85266863bf6 docs/models/resumeschedulev1workflowsschedulesscheduleidresumepostrequest.md: id: 70bace616181 last_write_checksum: sha1:2c13407b2c3b01bc59f486e2848fac0c3d025dc1 @@ -3068,6 +3308,10 @@ trackedFiles: id: ac567924689c last_write_checksum: sha1:7534c5ec5f1ae1e750c8f610f81f2106587e81a9 pristine_git_object: f1280f8862e9d3212a5cfccd9453884b4055710a + docs/models/retriever.md: + id: ea2ad3ed76c1 + last_write_checksum: sha1:3712bd9a0e8e56d043ea23e74c365de17cb887e5 + pristine_git_object: d5d94a92581895229983df3794a52a8bb14c5e9f docs/models/role.md: id: b694540a5b1e last_write_checksum: sha1:dd140bf891a9b08db014fde4a99af28839e10dfb @@ -3152,6 +3396,18 @@ trackedFiles: id: c7d8338540ba last_write_checksum: sha1:08e688325601e4c4614cc6b7264ea4d2f631da36 pristine_git_object: 0dc29aa5d453a82d0366ea003ab6e5710e2b1e3a + docs/models/searchchunkresponse.md: + id: 171c66e40abd + last_write_checksum: sha1:96149e64b9b4f15416422fd881b7db8570bc62ce + pristine_git_object: a343864848459efd97c72ec5fdd09608ff50116d + docs/models/searchhitresponse.md: + id: dfa1c1b44d19 + last_write_checksum: sha1:864fb1b9f1115f5e27f5305831f48d1707d203ee + pristine_git_object: 8d1cbf3cbf2f49847d635856d339af99520ce931 + docs/models/searchindexv1ragmanagedindexesindexnamesearchpostrequest.md: + id: be3bfdc65270 + last_write_checksum: sha1:013168172c569a95411d52aacbe99df526e5fbf8 + pristine_git_object: 6005e84cf0ef1609c875a8c8485406c4fab8c483 docs/models/searchlatestspanevaluationsv1observabilityspansevaluationssearchlatestpostrequest.md: id: bbfacfac87f9 last_write_checksum: sha1:4edd780638d7e8857781d1ba29bd959d0fe80d8a @@ -3160,6 +3416,14 @@ trackedFiles: id: 13375dff718e last_write_checksum: sha1:37eadf03289a7835ca948956233b4c2e05b1f3d9 pristine_git_object: c0bd16222c225c2eea2fd8402d01f7ee8084b27b + docs/models/searchrequest.md: + id: bc36c5e5aee1 + last_write_checksum: sha1:1f795b80f00439321fda68f67197a8f25f4a62e4 + pristine_git_object: ecf2058058da72cdb2cdbc1d337c2c369d47ed29 + docs/models/searchresponse.md: + id: d5606b4d403f + last_write_checksum: sha1:68c823a3beffd8394b5fec02f3310e702cfdfe22 + pristine_git_object: 6e05a5de0d95a273207e252a96c47977db3e49e1 docs/models/searchspanevaluationsv1observabilityspansevaluationssearchpostrequest.md: id: 42cd191c5996 last_write_checksum: sha1:1e71607a998fdacaf184ee111ea4309d4d7c9665 @@ -3548,6 +3812,10 @@ trackedFiles: id: 197e0d3cf762 last_write_checksum: sha1:1ff1f9ac91867332457179b31786f013d6923b5c pristine_git_object: 227066fb06da0b4cd22b923ca466e10087fa5467 + docs/models/textarrayfielddefinition.md: + id: 9bc942edafc6 + last_write_checksum: sha1:a600a75a19aeab10c4bce708ebba390f06bdfd40 + pristine_git_object: 7105f466ef40f92a3f21f857fd00c114ac826f5d docs/models/textchunk.md: id: 6cd12e0ef110 last_write_checksum: sha1:d9fe94c670c5e0578212752c11a0c405a9da8518 @@ -3556,6 +3824,10 @@ trackedFiles: id: 82aa22f226fc last_write_checksum: sha1:b359ace0ab7d8960b9c0a205a788fb26189cc6ac pristine_git_object: ddd2df027b7f0cca132c69fa47bb76e5e8afdc87 + docs/models/textfielddefinition.md: + id: 45be00732d05 + last_write_checksum: sha1:3e055d94d2a7bf985b7e39e03105109232d9dd89 + pristine_git_object: 4b93ebadb2d32bcb278ecdeeb3ae3b8bf72557a6 docs/models/textresourcecontents.md: id: aa82a3efa4ec last_write_checksum: sha1:58468c602ae4e85c860b909f39384f49f7471a4b @@ -3584,6 +3856,14 @@ trackedFiles: id: 40045842e667 last_write_checksum: sha1:0ca94992e7bbfee401a1bafd03b5fd09940f4633 pristine_git_object: c6ba5ecaaf5a26b60415b4292757366e9fa95c20 + docs/models/timestamparrayfielddefinition.md: + id: 9b420298fb61 + last_write_checksum: sha1:680bf8d5d84d0c076290d099c3afdeb949d7fe20 + pristine_git_object: fca07f6d47522456214eb6a6ea78056d458dbf0e + docs/models/timestampfielddefinition.md: + id: d58ee18fa07a + last_write_checksum: sha1:99cd1f3e3d29cf6a927d8b0101bea01685c336cb + pristine_git_object: adf05ae3673dbdb864d38115351ef586f35eb10b docs/models/timestampgranularity.md: id: eb4d5a8e6f08 last_write_checksum: sha1:b423f56d3a6004ed89c356806002b2af3e5c5a56 @@ -3836,6 +4116,10 @@ trackedFiles: id: 946de63fb8f9 last_write_checksum: sha1:4dd29b3a567e2440d61b73c57adddd250a4dcd3e pristine_git_object: 678b0ddd021b75828ed937c60d9b74e2ee13cebd + docs/models/updateindexv1ragmanagedindexesindexnameputrequest.md: + id: c1fb11837171 + last_write_checksum: sha1:624669828ccc6124021020245bb0b9c08f81cdf2 + pristine_git_object: 169dfa2a1ba94fb4086dd1d5cc391dc06690bf46 docs/models/updateinvocationbody.md: id: d8b3b9cca5ae last_write_checksum: sha1:0fed6d77626ec76d3584e8d38b97ee228218a390 @@ -3860,6 +4144,10 @@ trackedFiles: id: 2eda82f12f31 last_write_checksum: sha1:67b0996be205dc819aa1add249822f72a03b4c27 pristine_git_object: 32d53eecafd52a692f5f34da54afd358b1ab55b2 + docs/models/updatemanagedindexrequest.md: + id: ef11bea7e0e7 + last_write_checksum: sha1:4623eea4da7a40f08d537afd45a13fac97fa1572 + pristine_git_object: e07cdb801c676826d411dd5c9dbfc326bf1a57cc docs/models/updatemetricsrequestdeploymentmetricsoffline.md: id: 269e475933a6 last_write_checksum: sha1:74b8ac7a7dac34055604ff8307919eda0f233088 @@ -3878,8 +4166,8 @@ trackedFiles: pristine_git_object: 56b84c59c48ac135345394235c71ce77d384e33e docs/models/updatepipelineconfigrequest.md: id: a5647ffa8f3c - last_write_checksum: sha1:fee4e3c4e0d6e7cc80278e0c14fa92a032bfc6c6 - pristine_git_object: c12984304ae98fe685facea9e1d556c9e0eb7b85 + last_write_checksum: sha1:b2b5da5d662ce6f1b8c0324f0113d5d7d5fda37a + pristine_git_object: c319b089dcc4ae1676560a8b049b91fc5efd2e5c docs/models/updatepipelineconfigv1observabilitypipelineconfigspipelineconfigidputrequest.md: id: c3441f5225c7 last_write_checksum: sha1:613c534e9fddb4e1ed5449d5e66f1ddf3fbd505f @@ -4012,6 +4300,10 @@ trackedFiles: id: 304bdf06ef8b last_write_checksum: sha1:1f297f34069668f6107f2c0389606efe413ff5a8 pristine_git_object: 5bcea5b5d12e72222720af2c014d64ec4bdfee4a + docs/models/vectordtype.md: + id: 524117eadab7 + last_write_checksum: sha1:b28c50af4da8275f65343d2193b670f1ccc8eebf + pristine_git_object: 8bba874a90db7248ef3f07ecdbe7e7756c20fc43 docs/models/visibility.md: id: 69ecc096de1e last_write_checksum: sha1:30226db515dbfeef9316552cf871cf6882f597d2 @@ -4026,8 +4318,12 @@ trackedFiles: pristine_git_object: d2d40dffd0bcda10a2266c95ac951e8242209f6e docs/models/voiceresponse.md: id: f6523df1521d - last_write_checksum: sha1:4a06e7a191dd3eda98ad78961bde92be0096910e - pristine_git_object: 4b18f9d6b6d21553abcfa05db89a2a451998b732 + last_write_checksum: sha1:e361f14123c1aa44196af7e3eee57a3d0f272da8 + pristine_git_object: a30a297ac25ae7fc4eafb30e11c813a165ea3baa + docs/models/voiceresponsetype.md: + id: 7012fe721db1 + last_write_checksum: sha1:b9b80e0b742c820b1de379c91bfab8f77c04b2be + pristine_git_object: 4fd44508028c881e62d1938ece441f42d2949a69 docs/models/voiceupdaterequest.md: id: 7fbbdd315066 last_write_checksum: sha1:e62614c9aa15ca99aa1a6ef22ebdff111ae8691a @@ -4090,32 +4386,32 @@ trackedFiles: pristine_git_object: fcd2f19de6c0b3149283436a39dca1bc8d02b913 docs/models/workflowexecutioncanceledresponse.md: id: c56b39b95831 - last_write_checksum: sha1:f55f3ef0b0218fe72e0ac25148a85c50c5fb89ba - pristine_git_object: b31c1772b69934240fc962aae4237319b82c795d + last_write_checksum: sha1:15251491df2983602bbb6f9bec1e712fd75d86b9 + pristine_git_object: 66037a786e24ce298e35c1e053b41982a10a77bb docs/models/workflowexecutioncompletedattributesresponse.md: id: ee786dd87f88 last_write_checksum: sha1:d9725e0eb29b0713e74dcf32b1881d0fcb841350 pristine_git_object: 6693aad346acc4c3f9a5c5a94ca661c912ae558d docs/models/workflowexecutioncompletedresponse.md: id: c1888ba90ec6 - last_write_checksum: sha1:78ca611c4ce1813beb6d936df03e6ab2305e601e - pristine_git_object: 2cdb78974c2851e0d543c948fbc1c23f3a0dd5ad + last_write_checksum: sha1:c57e5dcd53f750567d6376a4a2ed6af3eea0a392 + pristine_git_object: 5b56c61ce23cb4e49ec5745a5db6957265ae5d64 docs/models/workflowexecutioncontinuedasnewattributesresponse.md: id: 30eef6da0d67 last_write_checksum: sha1:5419f5ccfb9b13fbef8aef96a97a34a32ea136c6 pristine_git_object: 13e21499434f9bdef975a6d6902e2b85d8c7a04f docs/models/workflowexecutioncontinuedasnewresponse.md: id: 1ea81bc536b4 - last_write_checksum: sha1:50d67e5c05b61b446e9c3ad6b79d26fb2cba1a35 - pristine_git_object: 1dd8faa5c3c64a30bcaa5499ba6ed527ad32590c + last_write_checksum: sha1:accf720d80fdde4f03eff7ed43e4d1eb87c0851a + pristine_git_object: 6155c7b6b019aaf4ab6bc08f2f11a515b22ed50b docs/models/workflowexecutionfailedattributes.md: id: b5ddf561c50e last_write_checksum: sha1:751ab6aef6dd3ecf045a4d71d272304666cf6ab2 pristine_git_object: d862605f17c357f6b24d26da60235f992878b4ff docs/models/workflowexecutionfailedresponse.md: id: 1c88150815b1 - last_write_checksum: sha1:52963a93a633e75d48cc8b0a6a7fcff6e1ee8a31 - pristine_git_object: d34b50288e3a7d1b45320aabf097d1774ff7f799 + last_write_checksum: sha1:5e394d97e472e46ea58795f8df46fddce54fff0b + pristine_git_object: b509a4281925bc15187aa420e7273d74e7415177 docs/models/workflowexecutionlistresponse.md: id: a66878b279ba last_write_checksum: sha1:9fafefc730d10ae17baf0c77462f658f9f15fdcb @@ -4126,20 +4422,20 @@ trackedFiles: pristine_git_object: ac50a894e5290f07d8531e25663baae090cf533e docs/models/workflowexecutionrequest.md: id: 44a6d9ef046a - last_write_checksum: sha1:ed28ee678e1ead11ec9219b982dfa436b8a7f39b - pristine_git_object: 6b24d3743aa3cd18d390ada65bf3cf1a5c7d90be + last_write_checksum: sha1:c10c3bffa77fbd8b12df8f4defaf96099a88f8ea + pristine_git_object: a51b1a88c068a8753c9c05b8ca97fa82231155dc docs/models/workflowexecutionresponse.md: id: 73595cfc443f - last_write_checksum: sha1:c00001839d7ebd189fb03f2480973665e80f6712 - pristine_git_object: 225d015139a46f3384b5593a86d00844c29f3e8f + last_write_checksum: sha1:9d298db95e511012a4e86507b92fc11e1ad31d43 + pristine_git_object: 3a691fe953b80f383cafc6189da4f45342a0883d docs/models/workflowexecutionstartedattributesresponse.md: id: 384d48b3e104 last_write_checksum: sha1:6526c350dae49e6da924cf43fbb852f35f6414d2 pristine_git_object: e548b02234b04cf49b13ed312ad57dc7a3ca2a56 docs/models/workflowexecutionstartedresponse.md: id: 64174669ff20 - last_write_checksum: sha1:6de168c052a11d14928e8ff5c02830a85db3b34a - pristine_git_object: 16de8e5886e39e4a7786cd1970991eb289b83afd + last_write_checksum: sha1:a151d7d5af7aaecccac74fa26d22e89bf3d258cb + pristine_git_object: 26a946753da3471aa3b7ae355b51c0f98a33315e docs/models/workflowexecutionstatus.md: id: 1e988cdad165 last_write_checksum: sha1:9478f494d16651522d373f36d0537c0fca703038 @@ -4154,24 +4450,24 @@ trackedFiles: pristine_git_object: b6bb388ca18523ca9b682e5bc4d4cf1c95100fa5 docs/models/workflowexecutiontraceeventsresponse.md: id: 4242880e71fc - last_write_checksum: sha1:baec9a09a55397b0857f5bf343f853724ad8853a - pristine_git_object: bfaf782b0d09273ba0beed6d35b39152c562f3ee + last_write_checksum: sha1:99b304e0e1374785171108295ac3f35631371c1f + pristine_git_object: 257825b33aa2adb13ed7abed31bb288eaeb8812c docs/models/workflowexecutiontraceeventsresponseevent.md: id: 40012f3fc374 last_write_checksum: sha1:b7b2a4544e04bda359d226efc6ae4247678bda9a pristine_git_object: 81c4f573a5af75f2ea8356f8bf23da676700ab8d docs/models/workflowexecutiontraceotelresponse.md: id: 358cf8c2556f - last_write_checksum: sha1:c49598e2942c2f55b46c32c0e96cfe268f32ef82 - pristine_git_object: 92aca09d704d3ea53df379a2df8bc3760c2caf02 + last_write_checksum: sha1:a4a246ebc87479d19f7462aef7283e19a0ce42ec + pristine_git_object: 71f9a77215645eeb42e47ad9f04f597e2e437234 docs/models/workflowexecutiontracesummaryattributesvalues.md: id: 50e4fbfd4cf6 last_write_checksum: sha1:ee33a4345041c2d8529049f0d04efb410ead4f64 pristine_git_object: 04bd34abb60485a9fe252a3c3cb125570f6fcc27 docs/models/workflowexecutiontracesummaryresponse.md: id: 5ac68ea4a1a4 - last_write_checksum: sha1:e923534260e728b64880b058e510a83e1eecc9dc - pristine_git_object: a1adfbea167ccc95c6750bc3614953e8c61e6b2a + last_write_checksum: sha1:4fda464bbb10f4fb29f18e668b8e6c3f17b1583a + pristine_git_object: 7a8e08772448c06cecfc021cfbbc26437a5c791d docs/models/workflowexecutiontracesummaryspan.md: id: 3851de52d638 last_write_checksum: sha1:528371799a9c90c9ddaf5315c2d33b89320688b8 @@ -4254,16 +4550,16 @@ trackedFiles: pristine_git_object: c6515f84fb66f59e6b35a4524dbd1f3edc73a7ad docs/models/workflowtaskfailedresponse.md: id: 9e6bdbc8ec6d - last_write_checksum: sha1:dffbaa9c407644c36aecf772e92f997d573608aa - pristine_git_object: 31b2d47a800f268d094737afdd0f6587d20dcef6 + last_write_checksum: sha1:1f8eaa66395d8a079ee45cd589589417292c3e50 + pristine_git_object: 215cf9f7bc30a3a9fd580b99fb5ac3f2927fdb76 docs/models/workflowtasktimedoutattributes.md: id: e9ab5a25e976 last_write_checksum: sha1:52fb7ed9cfce65338b381616afac1dfc1e676d16 pristine_git_object: 7f298ea251febc1a35510655d14a84c37172c899 docs/models/workflowtasktimedoutresponse.md: id: f53d1e6e4141 - last_write_checksum: sha1:a9a72eb2eddbc433231c393fffdc6008422c9936 - pristine_git_object: ecaf631ab5edf757d624967020521d59734561d3 + last_write_checksum: sha1:15fb0b7a8af29a92b2c71150b92de3460cbb6e6b + pristine_git_object: 6922f70a645c7f4ce6e978966e6981373b6cb0de docs/models/workflowtype.md: id: fdb669e25dee last_write_checksum: sha1:1cb6c274e8bd8942a7064a46a183f402935b0526 @@ -4334,12 +4630,12 @@ trackedFiles: pristine_git_object: cb207d8be2ca86b00dc797fc06eabd1498adb770 docs/sdks/evaluations/README.md: id: d40a3d898554 - last_write_checksum: sha1:029f9ab44143e5baa009fd2e69fe56ac4a75a0d5 - pristine_git_object: 20e831edc232fbe70626e05006859313273c9dfa + last_write_checksum: sha1:a8f73fbbcad107a4b3bac8dee482a352dc8ab1ff + pristine_git_object: 7ecdb5701bf89f128221c9d8bac8fae57191cae3 docs/sdks/events/README.md: id: cf45a4390b9b - last_write_checksum: sha1:cc73282a4eafa837ee37f9db1517853e5ada0562 - pristine_git_object: de6b43fcbbcbadef17a4e35978815289146925ec + last_write_checksum: sha1:b025db8d28fda5180453b25f815d35f3b7eb7159 + pristine_git_object: f162606b96a40b4ac689c0d4ca8b5117e304b3a0 docs/sdks/executions/README.md: id: 401745b17323 last_write_checksum: sha1:aabcf60b8bcc91794b48c1f937cc696b9333a61d @@ -4372,6 +4668,10 @@ trackedFiles: id: 5adacd63da21 last_write_checksum: sha1:6f230ad86d99a2a916ffd42437edb02f7f71a514 pristine_git_object: da7cb5a91dd8982dea2b38e1fbc000ec233396c9 + docs/sdks/managedindexes/README.md: + id: 24213eb90409 + last_write_checksum: sha1:7a272fdfdbb416daa8e8a962fd8aaa0474e780a1 + pristine_git_object: 17f8350815a034dd99f707a268e0ca9c37e24985 docs/sdks/metrics/README.md: id: a8545d964e21 last_write_checksum: sha1:826a1a941e7687218cd0670e4fdb1f7a65118464 @@ -4402,8 +4702,8 @@ trackedFiles: pristine_git_object: bf6c052b2dd3f473524a6401bfac46670dca2241 docs/sdks/serviceaccounts/README.md: id: f172389e7190 - last_write_checksum: sha1:fc9219ed68d8d843f482a9c4f8f4f5c275c498c6 - pristine_git_object: bb5321b980487206859f5a2d3a6982bacf93d460 + last_write_checksum: sha1:c1da4e577e807042f55969914c178e86186d3bee + pristine_git_object: 170cc4960c2d4435cb98e7395218eba2c13becca docs/sdks/sessions/README.md: id: 57ad62844f79 last_write_checksum: sha1:73bdf3ff4e98863534439cd1b37b455a27cf4cd7 @@ -4434,24 +4734,24 @@ trackedFiles: pristine_git_object: a7c2bd7324612444b808198b6541f20b165a1b1e docs/sdks/voices/README.md: id: 4f1a657c8f68 - last_write_checksum: sha1:b275bbda782ec5000b44f95961288f872c68b4e2 - pristine_git_object: 4460111c987bcf347732eb103b09841c2a71bae7 + last_write_checksum: sha1:b20fcd910ed18cf6d8628b5aec13cb9ac97deff3 + pristine_git_object: 9e9705b520b01d840ce5125ea9e09d9887403518 docs/sdks/workflows/README.md: id: 80c76ce944c0 - last_write_checksum: sha1:dd53c821fdb76c1cb5b34b9dc82da6e723cf59af - pristine_git_object: fe7ede0668903038bbf63d67d324c00352623e5a + last_write_checksum: sha1:0a9532451f7132c0d2d3acf6b626545a66f360d9 + pristine_git_object: 4792615c386f1bb80980a704ac454d6b6788e37f docs/sdks/workflowsevents/README.md: id: 514b42269280 - last_write_checksum: sha1:34971ab6eef89b115d78375a85142f3d2612f431 - pristine_git_object: 3915eb2498986000282ace30f486dce558efb4e2 + last_write_checksum: sha1:e1f79ed953c3f14770bb8d3f01ff84ac26ac0f26 + pristine_git_object: a498da1e33ec81f6c818ff98b99cd5f79d0f4f3e py.typed: id: 258c3ed47ae4 last_write_checksum: sha1:8efc425ffe830805ffcc0f3055871bdcdc542c60 pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pylintrc: id: 7ce8b9f946e6 - last_write_checksum: sha1:28a60d61acff1ec6ed1b20b676e54227ff2298da - pristine_git_object: 5dc51f74ae373b29f404d5574564a3d40fea8e9a + last_write_checksum: sha1:328661dfcae45e62f9d9f119c9347d3a7053edfc + pristine_git_object: 8f51ceb744f1d9d3010b2f2dbbc946298817cda0 scripts/publish.sh: id: fe273b08f514 last_write_checksum: sha1:b290b25b36dca3d5eb1a2e66a2e1bcf2e7326cf3 @@ -4474,8 +4774,8 @@ trackedFiles: pristine_git_object: ee6e28004691749e83bf7630b4fbca9de3eb5318 src/mistralai/client/_version.py: id: cc807b30de19 - last_write_checksum: sha1:87a3c0736432bbc76003536e85459ffbf1053284 - pristine_git_object: a1ad910c610f8240d52319e4b4c73ef211a34cef + last_write_checksum: sha1:4519b9a2d90f23df035d1f7e3de804741922e605 + pristine_git_object: d0c2346d1f610cb26249717e19f350e13e717bd5 src/mistralai/client/accesses.py: id: 76fc53bfcf59 last_write_checksum: sha1:9a5184751fcfec757251bd9ffa593ea13396ff51 @@ -4570,12 +4870,12 @@ trackedFiles: pristine_git_object: 25b87255a51021079f8ba5cc60b43509e12f9a4d src/mistralai/client/evaluations.py: id: 911a1a741d81 - last_write_checksum: sha1:dbc3651526e1f235619781f56409149d58fb3b5b - pristine_git_object: 5c499ea08a2f4ec0c9b1ef955e0284b8f1969c93 + last_write_checksum: sha1:3c204f3f45675d396ca49b11341efb99d150e888 + pristine_git_object: efa9b77b6d8a2111e3b9c32647324e4c90ea1915 src/mistralai/client/events.py: id: ac9b961cc70d - last_write_checksum: sha1:1ad3299287e6ce8c55206708a99a6cea791c8a92 - pristine_git_object: 144b91e2ca8604836889a21c54d62b60d28e2193 + last_write_checksum: sha1:2585cb8be95f68a0e1298599645d4f4f9af914a9 + pristine_git_object: 65cabcc2cbdd6adcfd035ccb80815a194f7660a5 src/mistralai/client/executions.py: id: 974004d347a2 last_write_checksum: sha1:c057f88d4b24a3064ddec1b28a72d23859f88bc6 @@ -4612,50 +4912,58 @@ trackedFiles: id: 8cf582f9ca81 last_write_checksum: sha1:c1307e1ad8764cab0a406e95ac1f2cfe0a19ece5 pristine_git_object: 9c08cc9a9702e8228c5d0550a5206630c94b9e2b + src/mistralai/client/managed_indexes.py: + id: b6dd0fca653d + last_write_checksum: sha1:83096fce757523a6e8139dfdebeec8ad4321e2ae + pristine_git_object: 9a7c08a7a44655a03bcff7184294e325c97d1f9d src/mistralai/client/metrics.py: id: 937cb03f8130 last_write_checksum: sha1:63247c665bd1f0620e320c9832f03ac8d0df64bc pristine_git_object: 5556061280ed508ee219b3b967564318e28108ca src/mistralai/client/models/__init__.py: id: e0e8dad92725 - last_write_checksum: sha1:62f1218d8b4692cc2eb6b139bf5d7177086b73c9 - pristine_git_object: 6ebab0cb32834026bd936f46a2a9716be564b3ef + last_write_checksum: sha1:9254774592dc6b74e53a4bc23ec2bde648bfcb83 + pristine_git_object: b5fe2ba5680913e9737ad50c0a53483b2feb82fe + src/mistralai/client/models/accepteddocumentresponse.py: + id: f529b784daff + last_write_checksum: sha1:bb2c2f3a6c1498a9e47af522f79ddba49121ff44 + pristine_git_object: dc1b3e842a04eb52448108551b8f336d7952d75b src/mistralai/client/models/activitytaskcompletedattributesresponse.py: id: 8174941767cc last_write_checksum: sha1:b5246e203765ba0532a6a65d391bdd237ab2c891 pristine_git_object: 8e355d48421982b9480d0ea50ce07de0aaba6e3b src/mistralai/client/models/activitytaskcompletedresponse.py: id: 28373f0a2c9e - last_write_checksum: sha1:aec5788c08f7a7f0dd498bbf6be49ab0c61bd046 - pristine_git_object: c6ec719aaf164da8ce1f249b89bb36e852ee4247 + last_write_checksum: sha1:32a45962284062da43acbaab22cbe4c5aad45c45 + pristine_git_object: 9c0b728bf495cce5fafc5ffb8395d43b83585127 src/mistralai/client/models/activitytaskfailedattributes.py: id: 12635cd17417 last_write_checksum: sha1:d9f8dbbc30720e66e0d3da8046dbdc3a6a350198 pristine_git_object: 37749d4a7fe8f6c3dfa007a2a6db3cf480761663 src/mistralai/client/models/activitytaskfailedresponse.py: id: b739e8fc9b44 - last_write_checksum: sha1:906972149387d83aab64502a755746dd7287d8e2 - pristine_git_object: 1bc09d0a5cc035652e1c251cccc96c7b8f84745a + last_write_checksum: sha1:39adb3f37683017b42dccfe0823e6737e61e6ea6 + pristine_git_object: 485a41c29004f57df787fc126610f92ac8b2cb99 src/mistralai/client/models/activitytaskretryingattributes.py: id: 9aaa9eecac09 last_write_checksum: sha1:811a7631992abea7dbcabc4a33d43b135ca1c4ce pristine_git_object: b0ee11d8ae7005e3c1fb7cb403602841632ad1c6 src/mistralai/client/models/activitytaskretryingresponse.py: id: 3a4ff1e01fa1 - last_write_checksum: sha1:92421df3f4a36ff309ab204877a8d8b74892084c - pristine_git_object: bf553309410566fdb8646e8dca3dbc75cefc779e + last_write_checksum: sha1:b81b9a11c6d8c34d610b7c38fa9ec41c466a1161 + pristine_git_object: ba5cb11f68185bcfde444e23f980f0e09d28512e src/mistralai/client/models/activitytaskstartedattributesresponse.py: id: 3a365e2c2942 last_write_checksum: sha1:e932c7960e78f8b31008efef29df7cc8ce3c4ce4 pristine_git_object: 9a049150e26cf8fd89f5f85195cab961629c5402 src/mistralai/client/models/activitytaskstartedresponse.py: id: d01ef9cb3955 - last_write_checksum: sha1:a1f5f4663cd7c280be4b9bb103831083e432ea3a - pristine_git_object: 1032615770d24e5c6d30d8b91f11d15e84fecc1d + last_write_checksum: sha1:34136308260df69bd810c0b9b06cb0fbe119e266 + pristine_git_object: ad47b76adcc32b9b24ef84e461c98ea5bd39b5ea src/mistralai/client/models/agent.py: id: 1336849c84fb - last_write_checksum: sha1:c650f57616b5455de2a6ff33c51f91b174586aee - pristine_git_object: 36cb26bfc19f17866330d709f82e15555b1a99e5 + last_write_checksum: sha1:b2c141bf2fb2272126c32aac5756d1eac47cec94 + pristine_git_object: 25dc21d4eb14c1ee05f32bc0023d41cc87cd8ac1 src/mistralai/client/models/agentaliasresponse.py: id: 3899a98a55dd last_write_checksum: sha1:d7e12ea05431361ad0219f5c8dee11273cd60397 @@ -4796,6 +5104,10 @@ trackedFiles: id: 62e1e2ab1ce8 last_write_checksum: sha1:53eba1fc2cbd363982d3d2a8bd62591146dd70c5 pristine_git_object: 4a395ce82d228804a8018aa4e0d8706e3d623fa0 + src/mistralai/client/models/and_.py: + id: 124ee0e13b27 + last_write_checksum: sha1:908dcf391b5da59b3e0eb595d8bbf7de490ca731 + pristine_git_object: 40bf2330ae0363acc5d31f755ea2ba2cfad5fe13 src/mistralai/client/models/annotations.py: id: 3ae9e07de11d last_write_checksum: sha1:c015e86fa53f60f6fccce2be63b2faf8a6d81f38 @@ -4916,6 +5228,14 @@ trackedFiles: id: fa924bc295ad last_write_checksum: sha1:e624129b00144d82726a5a2ac5d3a809061b76ae pristine_git_object: bfae16fb641bbe2c6dfa8c3aab1a042182d9137e + src/mistralai/client/models/boolarrayfielddefinition.py: + id: d0bee3f0a168 + last_write_checksum: sha1:5478e4f18318a796483e3a4ba0c2431702a5e80b + pristine_git_object: 255db6d7c6219dccb6ed4c79f5ff5c816d57f413 + src/mistralai/client/models/boolfielddefinition.py: + id: 4aaf558ba8b9 + last_write_checksum: sha1:57c6b0855d671bfb1e962ed5423ac45366bf62c8 + pristine_git_object: ab8fa0836edb71fe6493a6239932c39eb8e9151e src/mistralai/client/models/builtinconnectors.py: id: 2d276ce938dc last_write_checksum: sha1:4ceb3182009b6535c07d652ccf46661b553b6272 @@ -5150,8 +5470,8 @@ trackedFiles: pristine_git_object: cf24b8595d0d97a6712c384d97e4d30277accc47 src/mistralai/client/models/connectorsqueryfilters.py: id: 3b9fc81aa726 - last_write_checksum: sha1:ab7df6cf281f7bea870663783924d113309348fa - pristine_git_object: 860caf43e0a61363933058d72819e03f4be86477 + last_write_checksum: sha1:413e7d4805a7ea93e221b404f51db7949dacfaa6 + pristine_git_object: e5bffe456d11bf0a4cb59d218bdabf0c4931bcda src/mistralai/client/models/connectortool.py: id: 41ca596b44f8 last_write_checksum: sha1:0306b9a607d59afe042aac018df6e2bc0cff0d8a @@ -5236,6 +5556,10 @@ trackedFiles: id: 1ddc53a46c74 last_write_checksum: sha1:5df5b6676f6c115da0b1c242a6f3cc7f8c077927 pristine_git_object: 03156fa31f51655dfd9bda21082710b1d1f42907 + src/mistralai/client/models/create_index_v1_rag_managed_indexes_postop.py: + id: 07cbec23d26c + last_write_checksum: sha1:875f6d0ed6599ba94959d713282a911ae2f4bd4a + pristine_git_object: 50b9e2a23fc366e24a4d90bf55a6947c5181dd43 src/mistralai/client/models/createagentrequest.py: id: 442629bd914b last_write_checksum: sha1:da0d93f32efd9db292a83ccb8c0d18c02dbbb7ee @@ -5280,10 +5604,14 @@ trackedFiles: id: 1c489bec2f53 last_write_checksum: sha1:ebee21e3ac561b490513d6ebcb79efea070e1597 pristine_git_object: 2bbb1e18c3ee495db44df95e47046b6f1285e54e + src/mistralai/client/models/createmanagedindexrequest.py: + id: cfb7d0f96759 + last_write_checksum: sha1:8ac85a63da2f31a01f6da163aaf17cdaa726a549 + pristine_git_object: b6d613dc3b796ccee843c94f90d404c8dfaf24fd src/mistralai/client/models/createpipelineconfigrequest.py: id: b13c0360ed4d - last_write_checksum: sha1:22e6c3a24f0029913e4287659e81e7e83345abc0 - pristine_git_object: b3d5025ba44c11d08f307335ef11a6833543312c + last_write_checksum: sha1:38110a66de8a240986f8cd474dfa4e6025e7b476 + pristine_git_object: 7b0886871b64f1bde78ce01680c57d36f6cec312 src/mistralai/client/models/createpromptrequest.py: id: 5e7efdfa82b5 last_write_checksum: sha1:2e37513547a368c898549c2827acb6697d573c88 @@ -5302,8 +5630,8 @@ trackedFiles: pristine_git_object: 81e0e6e30cf8815b0d8da6001400f2419373452f src/mistralai/client/models/createserviceaccountrequest.py: id: fb57eff2a21c - last_write_checksum: sha1:e3a817a369bb09c70b45cc177b8c049b1dc2bf90 - pristine_git_object: 55efd9b4e4994e366ebfce6a9a0a5aa1bdf0252c + last_write_checksum: sha1:379342ac83a552fe2245bf8f1b5b389c09d6b2f7 + pristine_git_object: 7a09bc7cd39f0c9915c3f3b6e8fc89b4e5382830 src/mistralai/client/models/createskillrequest.py: id: 226c4222df28 last_write_checksum: sha1:39c2918d4d7eac1803163f859328e4bf4e41db3d @@ -5332,54 +5660,58 @@ trackedFiles: id: 14f3643f7703 last_write_checksum: sha1:2162c7e4b3a9c747c5da88e72315d138f28dea5d pristine_git_object: f3a1e2ffb1a29e8798a2ac8c9c636ac3bada7413 + src/mistralai/client/models/customembeddingmodel.py: + id: 9d02c87fc396 + last_write_checksum: sha1:e9aaabf4ad7822405b6501cc109fe3273e4b5448 + pristine_git_object: 495757fd51cbf10115c1132de69322898595728c src/mistralai/client/models/customtaskcanceledattributes.py: id: c20b8be67b8c last_write_checksum: sha1:94e8aa92de645553991a5a0940aee90c19a6adc1 pristine_git_object: cea2137e5356e636b44a3b1107aa9e29a69fd504 src/mistralai/client/models/customtaskcanceledresponse.py: id: 0eeb9d6cf409 - last_write_checksum: sha1:6b67bb211dab0cf2674048249eed1b5e519a2c3f - pristine_git_object: 628f13e1d10f35a379851febbfa7352df804c47c + last_write_checksum: sha1:342f29f26679bc8cd69177b010ab78864c7a62b4 + pristine_git_object: 14c34de503be4551e3c3cdce1e67689c6bd3cabc src/mistralai/client/models/customtaskcompletedattributesresponse.py: id: 0b9fb891f354 last_write_checksum: sha1:f5053cec4e78eaa7b83df2c7e6d7f9f66cd35933 pristine_git_object: afd48d7660446f5daa52b7358934227bb3761e87 src/mistralai/client/models/customtaskcompletedresponse.py: id: 719b68571f4c - last_write_checksum: sha1:7befb34322296b0f35723bf79706c68da93779b3 - pristine_git_object: 96e5b5354d979d98120755f6599b8a3b1f6df7be + last_write_checksum: sha1:1e72834ba11f0aa9d1951d32799fb21eabf6cbba + pristine_git_object: 85f69523067ed139327df32d36e6f530093ebe82 src/mistralai/client/models/customtaskfailedattributes.py: id: ff33698df363 last_write_checksum: sha1:dbbd423357a0d653ba20e94737126e9919bf2ff9 pristine_git_object: b66d7d3c973307e23a73f45a1e654e375f55140c src/mistralai/client/models/customtaskfailedresponse.py: id: 1cde7920833f - last_write_checksum: sha1:3171dcccebb0366fe7388e6ee73eeb540c247bd0 - pristine_git_object: b331d61484d3dfd8782dabc114a4f620abe3d5ee + last_write_checksum: sha1:030babc65031085c32389bc51236c9bb080459a6 + pristine_git_object: 3dbd5257a37e03adc0c32579605d3ef9bc412de2 src/mistralai/client/models/customtaskinprogressattributesresponse.py: id: 895147a1a6a8 last_write_checksum: sha1:67a5a511f40f83c678f591a2f6e9be632e5c622b pristine_git_object: 45ee5e4244bd011c0a271f4429abb72f41fe92b3 src/mistralai/client/models/customtaskinprogressresponse.py: id: 9d012ecb7626 - last_write_checksum: sha1:6271b44e467e5d648f00b854ccb1714d65168c0a - pristine_git_object: eb8794dd5e3fe399be102b9d35bdfd80ff1f1a9d + last_write_checksum: sha1:266fe763209fee393e0d8dc012b6f3d0b1f0e59e + pristine_git_object: f26db3a940780e891585456abbc7b00c9cffc146 src/mistralai/client/models/customtaskstartedattributesresponse.py: id: 6b8946c77018 last_write_checksum: sha1:5902afbf5696150caae710ef55a4c5b5f8b2ed1a pristine_git_object: 4f53ae8a35f590ab4bd2fd5e5ab63e44ea449cc1 src/mistralai/client/models/customtaskstartedresponse.py: id: 02b330a5292e - last_write_checksum: sha1:d37c0fe01e8f13a2aac6969f11dd13a8edf0f325 - pristine_git_object: 74b8d7fcf535d14949506bf238ce8fe69b68a3c2 + last_write_checksum: sha1:7dbec0a211ef9f99ac7aa5abe7b2f0e2d4db913b + pristine_git_object: 206880e722d08fc5985077de5f1112090d318696 src/mistralai/client/models/customtasktimedoutattributes.py: id: 9cc865098add last_write_checksum: sha1:229037a374553cf8523d2c0e0f0aa017adb8790b pristine_git_object: 47517ab1924cfce787805e9a528b04b1d4766a19 src/mistralai/client/models/customtasktimedoutresponse.py: id: 2dbbc78b85d1 - last_write_checksum: sha1:711fe3d91ce5e33de5924d73754f4512d981e659 - pristine_git_object: 01cf2f25e32c4229ee619e8104847de5d29c9cda + last_write_checksum: sha1:6592375ea05a5381828f742f2972b9064064743d + pristine_git_object: 96d4b924ef4a909cbc3507f1c7261a7ea81649f4 src/mistralai/client/models/dataset.py: id: cbf14670ee00 last_write_checksum: sha1:012f85ebfbdb286436621efc3b5b1adb150871f3 @@ -5412,6 +5744,14 @@ trackedFiles: id: b669fcc8cb57 last_write_checksum: sha1:0e172f684cb410f2df4dd917d81ae268497ee5e3 pristine_git_object: f9907398b68ebe424be5546e573fe9bf89b86b78 + src/mistralai/client/models/delete_documents_v1_rag_managed_indexes_index_name_documents_deleteop.py: + id: 989ccb864c02 + last_write_checksum: sha1:6e230cb91d07c5513f4a86e1de1e71e216ebacdc + pristine_git_object: 101128b13c43338212cf63e62f3946be51f0f13f + src/mistralai/client/models/delete_index_v1_rag_managed_indexes_index_name_deleteop.py: + id: 4be93f6efdcb + last_write_checksum: sha1:701e18668abdaf10723c391cae6f16b6bde798ac + pristine_git_object: c073e9d68133247ebdc9a1124c063c774795d24c src/mistralai/client/models/delete_judge_v1_observability_judges_judge_id_deleteop.py: id: 415724e139bd last_write_checksum: sha1:0fc88a1a4edefd593e8b2d6f18bdd77383142209 @@ -5440,10 +5780,22 @@ trackedFiles: id: e7ef16596e54 last_write_checksum: sha1:971e81be9064277df5dd656e912b9f319474e742 pristine_git_object: 8c33a9634f99fcf30475545c9af175434b5f41cf + src/mistralai/client/models/deletedocumentsrequest.py: + id: cdf87b81f77d + last_write_checksum: sha1:ef85ce47597956af58b8855c438a0a32d4895f6d + pristine_git_object: d2eac488e5c59003eecd53ff807da7599d819211 + src/mistralai/client/models/deletedocumentsresponse.py: + id: "200972843e47" + last_write_checksum: sha1:cd64ea26f8c5c5bfd7c57c8311c912ba90c4a724 + pristine_git_object: 82a8190d2e617cfa9f517752f39f80a145fa6266 src/mistralai/client/models/deletefileresponse.py: id: 3ee464763a32 last_write_checksum: sha1:2c0df66fc8c4384d50e54ac03577da3da2997cf5 pristine_git_object: ffd0e0d015e38e5f6113da036ebeba98441444f4 + src/mistralai/client/models/deletemanagedindexresponse.py: + id: 5b03242c7430 + last_write_checksum: sha1:e444b207ac3e9a846be8fed2f6ceda77431e4c07 + pristine_git_object: 8d20cf184c406c83ba50c780f3e48fbd59ed507d src/mistralai/client/models/deletemodelresponse.py: id: 8957175b7482 last_write_checksum: sha1:f5cef2da79834be2cbd72c4bd37c94aa4ef5abb2 @@ -5460,14 +5812,18 @@ trackedFiles: id: 68f53d67a140 last_write_checksum: sha1:5653c52c448643feab36e03ba2c73b602438149f pristine_git_object: f0ca3282d3d26bbdcf9382063b14c185c3758faa + src/mistralai/client/models/densevectorfielddefinition.py: + id: 144d264e128e + last_write_checksum: sha1:e7653a060611fae691bc8f910bbc5ee35536d3c1 + pristine_git_object: 36a4c17ffe121c35bc5f8e045b44bb63d11eef35 src/mistralai/client/models/deploymentbuildstate.py: id: 61e9001287f8 last_write_checksum: sha1:7bfcea2b41ec09dbf2a753d084be639755e265b3 pristine_git_object: 53f4e05984410b65529e0e53c117bdcc0388bb78 src/mistralai/client/models/deploymentdetailresponse.py: id: 7f4a17a1c7ca - last_write_checksum: sha1:519326697fd8ce0ca2296e9f939e165bcbf1e8a5 - pristine_git_object: 0e35d72d50ed2fd1c449eb7b5302ffbb417f2391 + last_write_checksum: sha1:729a2f2df72601f8600bb769fc2561f3fcc036c4 + pristine_git_object: 38ec4925eef0db9ed03e88c7e88bb38874c523c2 src/mistralai/client/models/deploymentk8sbackendspec.py: id: bd300f69aa45 last_write_checksum: sha1:5a8c25d2cdda2efc130a08b5c6731b3ff92a8148 @@ -5506,16 +5862,16 @@ trackedFiles: pristine_git_object: bafd7796692153ed78c6b374f4672c2d73b95009 src/mistralai/client/models/deploymentresponse.py: id: ea15ddd64402 - last_write_checksum: sha1:8a869722f21df6e705df301e92ac8d1e5ab84e47 - pristine_git_object: 73d519a0979ac056c8eb55efeaed008c40982f5d + last_write_checksum: sha1:ce68dd039dbca13b0bdc92e6d30631a0faa7f628 + pristine_git_object: 8a194dc5be8fbe2d763f47e6184ccf7fc2a35a94 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 - pristine_git_object: 016df73b06920cf7ce7373ae69c2749b1d6fc9fc + last_write_checksum: sha1:ba874460631af395315e52e1b48d8fd3cc033d1a + pristine_git_object: c4a775f675cccfd39b79b8803fe65c07e713c2ad src/mistralai/client/models/deploymentworkerspecinput.py: id: 635133e69342 last_write_checksum: sha1:2c714a4ac39cbd3c732b3654c34c606ac0fd107e @@ -5532,10 +5888,18 @@ trackedFiles: id: 6668b80e0502 last_write_checksum: sha1:c902cf4f37ba60d9dc2cc2c3fff06ad51e8c6b15 pristine_git_object: 7244b451156e910a7bb26b0e9b982972a0d36663 + src/mistralai/client/models/distancemetric.py: + id: 6b697e08cb8c + last_write_checksum: sha1:c92913455b94886e57ded760b8b698dfe198a2a5 + pristine_git_object: 68720afada546b639e3b9eeb55a58cfdc04b06bd src/mistralai/client/models/document.py: id: fbbf7428328c last_write_checksum: sha1:3cdd40229b126132d3eb60505cd1d635325a8372 pristine_git_object: c04512c130ee295c80548a2215b0f6bb428667bc + src/mistralai/client/models/documentfielderrorresponse.py: + id: d2fdbba45f4b + last_write_checksum: sha1:aae23297597f8fb244962832e178352844f183c4 + pristine_git_object: 71a5a6edb6754a1f0dc3fe63a1485ede86ac8a76 src/mistralai/client/models/documentlibrarytool.py: id: 3eb3c218f457 last_write_checksum: sha1:a84295aba7b9e7f70b68f279934d1a5ca0817f77 @@ -5588,6 +5952,10 @@ trackedFiles: id: 62d6a6a13288 last_write_checksum: sha1:015e2db9e8e5a3e4ce58442ccedaf86c66239dde pristine_git_object: 56d82cbed237f32a8b00cfee4042dfe3e7053bcb + src/mistralai/client/models/equal.py: + id: 7e27f8202d48 + last_write_checksum: sha1:2687e0a7d1a656a73e02c60c20bc1230c06fee3b + pristine_git_object: 463de7819b57c11a037d90d322c1bdbeead46f2d src/mistralai/client/models/eventprogressstatus.py: id: 48623263df72 last_write_checksum: sha1:e2fd3c6e145e07d247c1ec41adf67996c86696ba @@ -5724,6 +6092,14 @@ trackedFiles: id: 475c805eab95 last_write_checksum: sha1:91f720f910b01109b6216aa7de1b3f76d04108c9 pristine_git_object: b9ad2f9e62486e5f54bc801ab547377114ca3f5c + src/mistralai/client/models/floatarrayfielddefinition.py: + id: 464222fdaecc + last_write_checksum: sha1:54dd0f20211e419fedf3ff7e3adc31dc8446355d + pristine_git_object: 4c09750f3361cd985d91bde32ab5ba7a10771ce5 + src/mistralai/client/models/floatfielddefinition.py: + id: e394e306ef00 + last_write_checksum: sha1:c4f734394e47e5687494c3135ff051e31a121e64 + pristine_git_object: 47fb3b278e7ed7e6fccf03563f3c84b65bb5092a src/mistralai/client/models/ftclassifierlossfunction.py: id: d21e2a36ab1f last_write_checksum: sha1:ca90e2f1cd0b9054293bea304be0867c93f7fac2 @@ -5796,6 +6172,10 @@ trackedFiles: id: 3fae92e2573a last_write_checksum: sha1:1060d40b6d833ce2ee6136184d3bdfce77504bfb pristine_git_object: 412b09fb7f0a342e5b505572e564f7f6c9000978 + src/mistralai/client/models/get_index_v1_rag_managed_indexes_index_name_getop.py: + id: 192042c7351d + last_write_checksum: sha1:bcf95916d3292e9b1456c10e161031dfafac9cc7 + pristine_git_object: ffabcc1afc265bbbcef6235df19f3c57124d5f6a src/mistralai/client/models/get_judge_by_id_v1_observability_judges_judge_id_getop.py: id: 4201c3c5a891 last_write_checksum: sha1:44c9a7d21ea727e0f849cfc5dc4a02220bcf6e74 @@ -6030,8 +6410,8 @@ trackedFiles: pristine_git_object: d152ec36741bb8302b0d4f72563e534ed7768cb6 src/mistralai/client/models/httpconnector.py: id: 29d326e2d741 - last_write_checksum: sha1:6425c7f299cdf984c01c5b463c83e1e7f1f33add - pristine_git_object: 5cf13452d4531c3436164152e72da83875f55e7b + last_write_checksum: sha1:6869bb456430730a0d2e3aefab0ae9bfa9e4abe9 + pristine_git_object: 46db351d3159b2660f096cfda44b1f062f826ad2 src/mistralai/client/models/httpstatus.py: id: 56faca222b54 last_write_checksum: sha1:488060d5c72110bf8630ff4ac87956a28fddf13e @@ -6068,10 +6448,26 @@ trackedFiles: id: 8d809b14b144 last_write_checksum: sha1:3c858d0475e826d072c96a84d868e97593a399a3 pristine_git_object: f5bd720db16c37504e1993cc6e651712551d2612 + src/mistralai/client/models/in_.py: + id: 9453cb02452b + last_write_checksum: sha1:0ecbdeff85a7a4de8442b9833eb781cad830ba1f + pristine_git_object: 8e73b70fd12dac5ba90cf67ce9ba31094943dd10 src/mistralai/client/models/inboundauthenticationtype.py: id: 0c9f48e0518f last_write_checksum: sha1:d7ac3ef0ee83cc499506f0ef30bd39b1c91d8977 pristine_git_object: 9e78a4995c5acdb63606577c10696ace66271b9b + src/mistralai/client/models/ingest_documents_v1_rag_managed_indexes_index_name_documents_postop.py: + id: db04eecaa568 + last_write_checksum: sha1:b49bc7329ca3d4dca66f18462775ff99787a15e7 + pristine_git_object: 33fa5627fce6cad81e02b57a1ccd6ef8bceee4b8 + src/mistralai/client/models/ingestdocumentsrequest.py: + id: f0a8c26e8135 + last_write_checksum: sha1:fba989e7e4b563d6e12ab29b106d64bea96ee300 + pristine_git_object: e4050ebb750cec5602a8069c94be7680031a1da7 + src/mistralai/client/models/ingestdocumentsresponse.py: + id: 5c489174fd66 + last_write_checksum: sha1:913fd5226c79bac67713a870bf77c49808ff3827 + pristine_git_object: 65b688357770c75358524bcd5405a65cb44155ab src/mistralai/client/models/ingestionpipelineconfiguration.py: id: b4746c0f2c1c last_write_checksum: sha1:f256b78196bde2b5bf39f15ed65b1daba784680a @@ -6092,6 +6488,14 @@ trackedFiles: id: 6d3ad9f896c7 last_write_checksum: sha1:b56a77442b50b50151adedaa5ec356dc96c56428 pristine_git_object: e5f9cccf174d8e73c42e8ee4aa294b43e1ad6cf5 + src/mistralai/client/models/intarrayfielddefinition.py: + id: feec8e32e8af + last_write_checksum: sha1:3f129bfcc3de05f21820a068dc744e9de256f771 + pristine_git_object: 7dccd558d7ca02750dcab7d64cae7be67b39c656 + src/mistralai/client/models/intfielddefinition.py: + id: dac35ceb9af1 + last_write_checksum: sha1:63994e8ed66a91f5612ac3861afe534f46898c7e + pristine_git_object: f004bfdd4edd7832f57f1e7aed3ded2a433ddd4a src/mistralai/client/models/jobs_api_routes_batch_cancel_batch_jobop.py: id: b56cb6c17c95 last_write_checksum: sha1:21b5794f110c53691654d7195201f9a4b7793f21 @@ -6120,6 +6524,10 @@ trackedFiles: id: 6d9dc624aafd last_write_checksum: sha1:fbacb171b9c75f1fe45406f542a958d10c15fae2 pristine_git_object: 296070b426900305fe4596f03a3c9f081cdb2dcf + src/mistralai/client/models/jsonfielddefinition.py: + id: f48a545e6673 + last_write_checksum: sha1:80af5b1fea77f2db2f2e43952aa7d5b3c9e6478d + pristine_git_object: 2140b4f45a4c1c3afcae890bdbd4abf2106fd19a src/mistralai/client/models/jsonpatch.py: id: b7521bc9a558 last_write_checksum: sha1:0f81a4adaa3fb28ba2620c9a89459b70f0ec3d86 @@ -6186,8 +6594,8 @@ trackedFiles: pristine_git_object: 11499067e594adae0510334e455b38b23b58ca20 src/mistralai/client/models/judgedefinition.py: id: aeaee44c4839 - last_write_checksum: sha1:b12a222a2e9ce2112121a22239c29981206509c6 - pristine_git_object: d8f49ab6932e338bd5ca3bd23aba19f8cba67a1e + last_write_checksum: sha1:1c878005b0505377b13debca2d5aed29fb550953 + pristine_git_object: 6d50baffb028bd47bec09b314c29d4897963aa63 src/mistralai/client/models/judgeoutput.py: id: 8c8099403e62 last_write_checksum: sha1:7eee16a1cbff3978eca638e6d74ada983244d8ec @@ -6200,6 +6608,18 @@ trackedFiles: id: c61d451066dc last_write_checksum: sha1:2dd3b0dc5c82a977bac095aa6c45c7067bcc187c pristine_git_object: 9bb8f9c1283b3de89bbf8b859a79d27054ee6074 + src/mistralai/client/models/keywordarrayfielddefinition.py: + id: 83bd65199124 + last_write_checksum: sha1:27d3086997d0c8ff0b850baf1c56b236e6cc3bdf + pristine_git_object: 305e505027c6d2537922fa3175b6ecf57bc69dc4 + src/mistralai/client/models/keywordfielddefinition.py: + id: 8e7be2e1c4c1 + last_write_checksum: sha1:4f77c93efad74c4a816b84ef9108519f9e17d1d2 + pristine_git_object: 5661678147c0b2afd703f8c4a8f87febf3de6d30 + src/mistralai/client/models/keywordretriever.py: + id: 2512f4df7d0f + last_write_checksum: sha1:cfe3106f7b0f4f2199d0bf470179fa3a31edb699 + pristine_git_object: c3e0c73b8de22fee6f5eef74b171a8b577592afd src/mistralai/client/models/libraries_delete_v1op.py: id: b2e8bbd19baa last_write_checksum: sha1:ba41496bc99040f7598659c5b037b955b7f6d385 @@ -6292,14 +6712,18 @@ trackedFiles: id: 0c6586ffcab0 last_write_checksum: sha1:d2ea41de7d24933f032a95ebab7d2611cbadac06 pristine_git_object: e2dde7b449646d0c4739114836fc807c08b6e7d7 + src/mistralai/client/models/list_indexes_v1_rag_managed_indexes_getop.py: + id: ee93451dcb1d + last_write_checksum: sha1:a717efd3b83a330c6827a69ff28a899bc53f3c8d + pristine_git_object: 2650ffe6e9ea43c472492bd4fd1d4d42f0e61096 src/mistralai/client/models/list_models_v1_models_getop.py: id: 1843a7aa68e5 last_write_checksum: sha1:018c32019aab6c4995285ace8abba54d88f41c0b pristine_git_object: 1a42d9b0828a2e826948641a7b8be3e5d80e94db src/mistralai/client/models/list_pipeline_configs_v1_observability_pipeline_configs_getop.py: id: 3c9d91b81d59 - last_write_checksum: sha1:51ead243eb6dd0c5d54c83f8fd4732dc7546c141 - pristine_git_object: f62ae07a3bb15088698d91de4504628794d64589 + last_write_checksum: sha1:fc7441d52fdeb1ba75accebcaa810a931c4b105f + pristine_git_object: 0cf3469b6bd189d8bb837b7343c64b4e5a5752b3 src/mistralai/client/models/list_runs_v1_workflows_runs_getop.py: id: 2f1b225158c3 last_write_checksum: sha1:a86d9cbc78d66b12a20dc982eaf9dc17244bfad7 @@ -6310,8 +6734,8 @@ trackedFiles: pristine_git_object: 156ca2575e43895baeec39e2a463d8a239374019 src/mistralai/client/models/list_service_accounts_v1_service_accounts_getop.py: id: 6d3ece77abbd - last_write_checksum: sha1:684241610ea9569dd49d9166fe285cca91106e09 - pristine_git_object: cded2b0e594eccb92c33d5d200699584afa0de3f + last_write_checksum: sha1:beca2a61f4c0e82c0a570d68194aa756594840cb + pristine_git_object: 08443599a711964f1f8b790a3b285c769673391c src/mistralai/client/models/list_voices_v1_audio_voices_getop.py: id: 6b3ce5be1294 last_write_checksum: sha1:f11a5135ce79d1913db87f9db7d05b4266630b20 @@ -6352,6 +6776,10 @@ trackedFiles: id: df556a618365 last_write_checksum: sha1:7cc4c035b76fcf43410e26161b0fba9a9ea82b6e pristine_git_object: dc3b3afc2fb383056a447fd6d7505301cc8de6a4 + src/mistralai/client/models/listmanagedindexesresponse.py: + id: cb0ab4ccae1b + last_write_checksum: sha1:d6e073c104ce4f026e62a7f91f42732f4c3c8f85 + pristine_git_object: 8b5a9348b10aa28b79eed88c4c0c261f88589139 src/mistralai/client/models/listorganizationsresponse.py: id: 521126214ce3 last_write_checksum: sha1:1134cdb29bc2fd83c74ad578cc4a7261178c805c @@ -6412,14 +6840,38 @@ trackedFiles: id: 2972072d4ad2 last_write_checksum: sha1:5aca3a318b1fddc96802455c3c0b53d2207b2539 pristine_git_object: e52d471295e16a81ffcfb96c6758a315f22670b9 + src/mistralai/client/models/longarrayfielddefinition.py: + id: 8c53343cd75b + last_write_checksum: sha1:adcdb72a5a59233749a2811b19cfaa69bab5270c + pristine_git_object: a9cc96839635a45325e366a8586a2f06b85d0e84 + src/mistralai/client/models/longfielddefinition.py: + id: eceec516fcd6 + last_write_checksum: sha1:c9ad8d100aaf112a220bc5a562509a23e20c31e0 + pristine_git_object: 75a8b40155e31ca84fca300ddae49a1631b024ff src/mistralai/client/models/manageddeploymentresponse.py: id: bc7d5ee5c606 last_write_checksum: sha1:953e8882952dcef2ef3ea45a97f0cd5aa60343c1 pristine_git_object: 6f053670957e2dca6ab559d4aa431c563f2fa05c + src/mistralai/client/models/managedindexconfig.py: + id: 03d254f4ddac + last_write_checksum: sha1:82999d13b30d288cfb31e95c9aa64252310309c7 + pristine_git_object: c987efa0cfa7470aeef718b8aa72a3074631285f + src/mistralai/client/models/managedindexfields.py: + id: f475f14af2cf + last_write_checksum: sha1:a5f999ded43cd8882ddde305846791ef54cc4985 + pristine_git_object: fe06f81f313f52f7b7084d163e497068ddb8bc72 + src/mistralai/client/models/managedindexresponse.py: + id: 7d6f0bf30868 + last_write_checksum: sha1:38ced9d8aabc63c58e93569308e003bd092519e1 + pristine_git_object: 11c745f2b74f967c03d1ec21675938927b21c7d2 + src/mistralai/client/models/managedindexstatus.py: + id: 9ceb11b0dede + last_write_checksum: sha1:91e37287f555c688496baa89eeeab239a8c33aec + pristine_git_object: ea7378d646310f694df2b9ea086d758fe293fd13 src/mistralai/client/models/mcpconnector.py: id: 94c7ad9e3ab2 - last_write_checksum: sha1:875e70fdab2a8628bbb27230789e7cb9beb94fb9 - pristine_git_object: 3d60e981f767ee4773995b953e60732b16364ff3 + last_write_checksum: sha1:b90ae35e5f3ce69c6d4ba4d1dd86f22465e99ed1 + pristine_git_object: c007bbcc8d31ff7619ba6d731b21d4ea93b02955 src/mistralai/client/models/mcpprompt.py: id: eac4133413b2 last_write_checksum: sha1:003b0a3bf0f7af4db962697e1604510710709983 @@ -6512,6 +6964,10 @@ trackedFiles: id: 37663cc0cc75 last_write_checksum: sha1:da6252f4b985e7a38d6baddeac2a927d3adee0f9 pristine_git_object: e6c9504144c09878315a4134465c06d6e358fcd0 + src/mistralai/client/models/mistralembeddingmodel.py: + id: 455e90b5dcfa + last_write_checksum: sha1:36e2ca4206fcd45f6b157bcbc3cd705db430d067 + pristine_git_object: 24f7c64630613b375c42dcdd1f031d9911898e04 src/mistralai/client/models/mistralpromptmode.py: id: 95abc4ec799a last_write_checksum: sha1:a1417b987bb34daeb73ca4e015c085814e6c8ad2 @@ -6560,6 +7016,10 @@ trackedFiles: id: 06bab279cb31 last_write_checksum: sha1:b9158e575276c1e0a510c129347b9a98c5a70567 pristine_git_object: a8a8ec3d8d8a58deb3c1f8358c6dce5a9734f89c + src/mistralai/client/models/nearestneighbourretriever.py: + id: 030fa248215c + last_write_checksum: sha1:edf8fab2bb8fa818da39ba577afaa9e65ae817ab + pristine_git_object: 7e3f416845d9943e46ebc22fcbfe2472d12c5804 src/mistralai/client/models/networkencodedinput.py: id: 6dc5321dbe77 last_write_checksum: sha1:5a99ca47003b7bcfee48753dd4683a94eeee1fe1 @@ -6568,6 +7028,10 @@ trackedFiles: id: 28aad2d4ea72 last_write_checksum: sha1:84abdf888f66a0e72bb3b0843b364602333cfa8d pristine_git_object: f54eb68b91ffa5c9184e3805ddfb2d80d80e129d + src/mistralai/client/models/not_.py: + id: c9e6d1e068c5 + last_write_checksum: sha1:d8b12706a70e6cd968c38d0d8d92f22d187d4ccc + pristine_git_object: ccbc9909c765670d78b8b724e5c091a6512f88ab src/mistralai/client/models/oauth2authmethod.py: id: 32ceace54bd5 last_write_checksum: sha1:cc015ae203acf65af60dd5646e20b92849999185 @@ -6606,8 +7070,8 @@ trackedFiles: pristine_git_object: 94bca3e2c1244634aad90278d4b63f736f3f5b0b src/mistralai/client/models/observabilityerrorcode.py: id: ae572b470a30 - last_write_checksum: sha1:042fe387fd936ac7991e2b479c01ba9388dbd6e4 - pristine_git_object: 04382dac35dce448ff1f6d7b1c8eb6cc3ea0350e + last_write_checksum: sha1:4a96cbc824fa710df0a1306dae84c7c4d85ded95 + pristine_git_object: f9ec4fd2bc17b6e966b36e2ae02d858adc9a8f65 src/mistralai/client/models/observabilityerrordetail.py: id: cb6e8a484a38 last_write_checksum: sha1:3a7991f57573edee24780bc4b3907c8426aa3fa6 @@ -6704,6 +7168,10 @@ trackedFiles: id: 272b7e1785d5 last_write_checksum: sha1:eb223a88b7e5175056197f64bb4bce2c88ccea19 pristine_git_object: bfd748e0010e6acc404fdadfff40ee54ac52b9be + src/mistralai/client/models/or_.py: + id: decc65f6bf3b + last_write_checksum: sha1:5f58a8ec45f282031141ada3e5ae2f699e32650b + pristine_git_object: 152a27e1ab7020610b9de9df17ec0cd04cfbe621 src/mistralai/client/models/orderbyclause.py: id: c7a6d0430f04 last_write_checksum: sha1:688204473a550cc070ee7cd4bdf12670173beb60 @@ -6766,8 +7234,8 @@ trackedFiles: pristine_git_object: 2a53eaecc95afba612552debcadb0d0dad63afb8 src/mistralai/client/models/pipelineconfig.py: id: 7696668e13a4 - last_write_checksum: sha1:c410e9763a065626f4af53b8d7897f8342e4d9a6 - pristine_git_object: a84c3fb650dfbb96a927dce5eab443294f798612 + last_write_checksum: sha1:30d62d3f5cc79548f7cb63d2bf853769b6c2e08c + pristine_git_object: de82e45a1a758c67720fe0e9d6e4118c8d31db5d src/mistralai/client/models/pipelineconfigdefinition.py: id: 4650cd1a8fff last_write_checksum: sha1:2a29171c1d6408a5da6066f5e85d3fdfadb94aa5 @@ -6920,6 +7388,10 @@ trackedFiles: id: 30281fcedce6 last_write_checksum: sha1:fbcc1e870c0a81ff165311519981bd179b4bffec pristine_git_object: aed982d5bb0939985e3966bf54a5a1a43e9b634d + src/mistralai/client/models/range.py: + id: 0e7d58f94da1 + last_write_checksum: sha1:8e75bdf98ba75a6f44295105019ec1a63e061b40 + pristine_git_object: 44326eff138efd7e6f2e24153f330a19d5573bc2 src/mistralai/client/models/realtimetranscriptionerror.py: id: 8c2267378f48 last_write_checksum: sha1:8bfdc2564fc416b0e1a4cc2e2a3a5437b26cea85 @@ -6992,6 +7464,10 @@ trackedFiles: id: c1151df8930f last_write_checksum: sha1:0bd5788e8cf7eb0b78bacfc37266be5c55cdf8e5 pristine_git_object: f384bc59a0bd6c0a93df66594597e30e720457e3 + src/mistralai/client/models/rejecteddocumentresponse.py: + id: c5c97c7efa2e + last_write_checksum: sha1:413837f96e88864c8568e48951e28b7351cff7bd + pristine_git_object: b9263ee7d9b1753f70c875f43be8a3baaef2ddb7 src/mistralai/client/models/requestedservicetier.py: id: 662ec7931b9e last_write_checksum: sha1:dbc9059830f7ec1ca538860451093aa53521abba @@ -7124,6 +7600,10 @@ trackedFiles: id: 6ec367e3cfe5 last_write_checksum: sha1:4feaca3f1962448d05aceb1f585922835b0f1af0 pristine_git_object: 544e1909c18879b3fc9c5231e338803ce959cf2e + src/mistralai/client/models/search_index_v1_rag_managed_indexes_index_name_search_postop.py: + id: b1be3d65993f + last_write_checksum: sha1:0bdb9c8d448cc0075d52ea53fa86a177582a1dec + pristine_git_object: eeeea08164e6d393e9e2aa7142cabf9b45b9dd7d src/mistralai/client/models/search_latest_span_evaluations_v1_observability_spans_evaluations_search_latest_postop.py: id: 26821a9e16a7 last_write_checksum: sha1:670cb56fbed3d0ab3cf90f091643657a80e2db2b @@ -7144,6 +7624,22 @@ trackedFiles: id: b7758d63781e last_write_checksum: sha1:f2a58f137a55c9bbc6ea3f1d7f5d790ab9022b2b pristine_git_object: ad4d368fd60fbce97e4ba4ca5c9be4c317e4e5a9 + src/mistralai/client/models/searchchunkresponse.py: + id: 29a1501856ee + last_write_checksum: sha1:6591206d6f8f588cfb44d0c6a84eccb625f2fc4a + pristine_git_object: 49574a43a54ba5ce2a1373a51bc8ea46c5a067f1 + src/mistralai/client/models/searchhitresponse.py: + id: a290709c7eb9 + last_write_checksum: sha1:0e29afd2ce68c1ab4badce42131d7c8d501a2acd + pristine_git_object: 7ae8cd51d6184e9ba2281d2d4d8041523b81aba1 + src/mistralai/client/models/searchrequest.py: + id: f2dafa00688b + last_write_checksum: sha1:af33021112f7ce96c4f8fb6ff3e1bb7996bc8d0a + pristine_git_object: d2bd190c04ec5642578eb7a2b5e032daa1c9554d + src/mistralai/client/models/searchresponse.py: + id: 63e04ad2f0e5 + last_write_checksum: sha1:c03a8309a8118d87c4856cf254301058c2ebbdaa + pristine_git_object: 172a812d2fd5c499ff6c8ea89786c4f846659014 src/mistralai/client/models/security.py: id: c2ca0e2a36b7 last_write_checksum: sha1:28496d4ff921e8c2186072aad170c65836a4b8f8 @@ -7428,6 +7924,10 @@ trackedFiles: id: 458eee7d2603 last_write_checksum: sha1:51c88c99243e964d8b044a1e25a78dff85145e7c pristine_git_object: 771c165035c62d9963b6b9c71a00e8e948ac6661 + src/mistralai/client/models/textarrayfielddefinition.py: + id: 25707b65773e + last_write_checksum: sha1:e5adf531b4468fadc888130edb3a01c41acd39be + pristine_git_object: 414a4256ff59a8f1ebb3070f4771a85ac819bdb1 src/mistralai/client/models/textchunk.py: id: 9c96fb86a9ab last_write_checksum: sha1:40fa1ea5dcbca9f4c534b58f7cb65bbaa5084521 @@ -7436,6 +7936,10 @@ trackedFiles: id: 60805b9f7050 last_write_checksum: sha1:072d40013e047296f98a8be455b30546c8ce0874 pristine_git_object: 03de48d36befc3f89fb55a9d12c0a78e1ef8d8bd + src/mistralai/client/models/textfielddefinition.py: + id: 7d3d5b0eeff3 + last_write_checksum: sha1:de79da2a5242dd6dcc8d4e90e404d61b0c897b29 + pristine_git_object: c3ec68e66f196ce9957bf1d29d017ef2e6f0c8f1 src/mistralai/client/models/textresourcecontents.py: id: 58fe427f427f last_write_checksum: sha1:7d9dd5965f048f07338c19d79147b09f41e1f96f @@ -7452,6 +7956,14 @@ trackedFiles: id: 7f91751795ac last_write_checksum: sha1:e7871d8fa64b59e8448f0ae3be46f02c4d02eac8 pristine_git_object: a0eb0c9ca86791401aeb1df0d851b3a42be1bef7 + src/mistralai/client/models/timestamparrayfielddefinition.py: + id: 38014ae56ea8 + last_write_checksum: sha1:195c6a80efb69e0305b7f1a1e0942f0961517977 + pristine_git_object: 5252a7f54140813fd90f2e607d1b683232cc894d + src/mistralai/client/models/timestampfielddefinition.py: + id: f5fc4d7dc878 + last_write_checksum: sha1:2172eb0c131e989eaa2f3496cf592fee47155ec1 + pristine_git_object: 4d51036aecd33c2cbb97aa7bce3175445e63daa1 src/mistralai/client/models/timestampgranularity.py: id: 68ddf8d702ea last_write_checksum: sha1:64e7b198a75f026590e26758112651d31984076f @@ -7624,6 +8136,10 @@ trackedFiles: id: 6c5dcb958c34 last_write_checksum: sha1:a8fef960a0c55500a04a888deeb0c280c66729af pristine_git_object: db99fabfbf562a817028ab0134dc59dfb1253495 + src/mistralai/client/models/update_index_v1_rag_managed_indexes_index_name_putop.py: + id: c685b10e9d2b + last_write_checksum: sha1:31da3997c5c05d12cd9f69095d94dbd1c8039be4 + pristine_git_object: 35e92f08fda52f1dfcf72d132be2ffc8421790f3 src/mistralai/client/models/update_judge_v1_observability_judges_judge_id_putop.py: id: a1bace5342e6 last_write_checksum: sha1:2fd7c698f8fe16e5df54e49c7aba85e247d3f19b @@ -7700,6 +8216,10 @@ trackedFiles: id: 51bc63885337 last_write_checksum: sha1:aebbb99655ad350295e5eea6943947eb8960e742 pristine_git_object: 64af28c596d42f349ccd94daa7aae422a77e031e + src/mistralai/client/models/updatemanagedindexrequest.py: + id: a6a3d781827d + last_write_checksum: sha1:d7d8e57281aed70a5f05410563dc63bac2df155d + pristine_git_object: 14d5ef5c389519488b66fb36f1820716e1d42070 src/mistralai/client/models/updatemetricsrequestdeploymentmetricsoffline.py: id: 7e7972591620 last_write_checksum: sha1:fafdef022ffaca33032af5dd98c21a7cacfd3f45 @@ -7718,8 +8238,8 @@ trackedFiles: pristine_git_object: 0179ba140d7d598a4a363ddfab67197e56857964 src/mistralai/client/models/updatepipelineconfigrequest.py: id: b8b6ad05d8ba - last_write_checksum: sha1:8e91eb90aebe06ad740b3ee961b23a016c77b8c1 - pristine_git_object: 9e335b9882bdf57c4032987007767cf17738349b + last_write_checksum: sha1:0624b97392a2624639f012036d032e3836c54728 + pristine_git_object: 04bc15993f2a72340ea88314f652e459f299ee84 src/mistralai/client/models/updateruninfo.py: id: 4330bdaa00b9 last_write_checksum: sha1:57f94ec7b05a21ab4849deffaf32078b01161567 @@ -7784,6 +8304,10 @@ trackedFiles: id: 15df3c7368ab last_write_checksum: sha1:4acbbd9e47cf9b351336d552488d617270d37758 pristine_git_object: 5fe796db923badd9fb85dc4080a30496ed2b419b + src/mistralai/client/models/vectordtype.py: + id: 9c4cc53092b9 + last_write_checksum: sha1:07acf6fa02c3c1b9655ac84210a6569744c91fa0 + pristine_git_object: ad1b4e2dc34e1e3c000684aa783ff3382d1b5e40 src/mistralai/client/models/voicecreaterequest.py: id: 9a1752117dec last_write_checksum: sha1:10df54cddb9d940c53cecc591dd959c491b7a59f @@ -7794,8 +8318,8 @@ trackedFiles: pristine_git_object: eda768f53f2b6273ccae254ba25adf1c157d068a src/mistralai/client/models/voiceresponse.py: id: 24138e419fae - last_write_checksum: sha1:0a5a9687813ca864982247ad7520fb0db7297dd8 - pristine_git_object: ad64508f8b1604c41df8d598a95821983276bded + last_write_checksum: sha1:3eeff293a00326a02428e5a5ae1be54054404e1a + pristine_git_object: 5b76a72f863dc854bbabd7dd1842cc9a14dc1466 src/mistralai/client/models/voiceupdaterequest.py: id: 798f8ff225de last_write_checksum: sha1:dcb792d3375d7aa18cd6e7944b4ef7fc46f17e4a @@ -7854,32 +8378,32 @@ trackedFiles: pristine_git_object: 69327cdc76953afa23a072280799794d1f28b550 src/mistralai/client/models/workflowexecutioncanceledresponse.py: id: bcc392d67222 - last_write_checksum: sha1:9d1edf5918e2f5ce64d2005f0d9c42557469ef95 - pristine_git_object: 05b261a2513d65807cdfe1d6dd2aa80f3d26863e + last_write_checksum: sha1:987152725b574da90963b14b752ca1b5448ace10 + pristine_git_object: fd57d6cb1692bc820296d11356a3cb05f57bd1fe src/mistralai/client/models/workflowexecutioncompletedattributesresponse.py: id: f831331b0eb1 last_write_checksum: sha1:fe75a5bf7025aec3bdc5b3058646161a9e2269b6 pristine_git_object: f35e3007ced8ba34d5d1ce6a169c4d7eb7b0705b src/mistralai/client/models/workflowexecutioncompletedresponse.py: id: a1bec20dfb0e - last_write_checksum: sha1:5f428eddfc8c8b7ed53ed146883795b8de84d73b - pristine_git_object: c58745b18ef00a25ac5a90e383a0b314d1025784 + last_write_checksum: sha1:e2fdbce719adc8650ba291f6302104a8bfe917a3 + pristine_git_object: 8dc4616ebfdfba05744e251718c1a04f174a4225 src/mistralai/client/models/workflowexecutioncontinuedasnewattributesresponse.py: id: 2dd61dcd7b48 last_write_checksum: sha1:05d7ec612f2674ee265f54c5233e1b79de8ebdae pristine_git_object: 2ddbf0af4a9b8584f7c1efb6c883a1f9b524295e src/mistralai/client/models/workflowexecutioncontinuedasnewresponse.py: id: be26cd87dcb3 - last_write_checksum: sha1:cc9129d7ba7a84b17db0f8852c6d4c3ab44ae3d0 - pristine_git_object: aadb8a3477ab8c0a0e670ba649bc8ab3de63bd9d + last_write_checksum: sha1:4b07e282dbcd1678995be4cde35d6a541713bd68 + pristine_git_object: 3c2e5588fe96c73f25cb24681514840b13b3cbd9 src/mistralai/client/models/workflowexecutionfailedattributes.py: id: dbb7fb36a4fd last_write_checksum: sha1:1953870e1392465773d2be2e9477c7c66f8e997c pristine_git_object: 440b6c7a3b75555e5f267341ed00ab8743462457 src/mistralai/client/models/workflowexecutionfailedresponse.py: id: a0836009f9de - last_write_checksum: sha1:a356fe5d9a8231dea090bb6692f88ca0d0ced994 - pristine_git_object: 736f7e7b7f9d21ce28122867c352e4fbf1524a8f + last_write_checksum: sha1:69281cb37238b57574cce99897519cef46b27eb4 + pristine_git_object: d0480238a7d85496b119a7a1521f9bf4082e4f8a src/mistralai/client/models/workflowexecutionlistresponse.py: id: c2b2e1ab4821 last_write_checksum: sha1:0993e22cc42af96754b46ce7e880b4beb28988dc @@ -7890,20 +8414,20 @@ trackedFiles: pristine_git_object: ffebdb82a1a80d1d086b919da9b33e2f090388c4 src/mistralai/client/models/workflowexecutionrequest.py: id: 806340497ed4 - last_write_checksum: sha1:bd22cb3835819baf3d30ebf28bda506758da8e61 - pristine_git_object: 20c6741752ec09942f672769871948e166c0f6f9 + last_write_checksum: sha1:4d036d0467bee2746118db5da320317bdc51f792 + pristine_git_object: a7b3381f3abce924ae8c9f925b6c300acea97596 src/mistralai/client/models/workflowexecutionresponse.py: id: 758786637be5 - last_write_checksum: sha1:416fc9c55119a8bcea6bee11a47fd0742cfe6086 - pristine_git_object: 4c6f3aa93f442b3aa8576fc086eae4b2a8896f7d + last_write_checksum: sha1:34720a209e6bcd945582faa771b946f8109b4c03 + pristine_git_object: 4ac13c7e81f4ce7fc935fbd5816fe2fc31cab5a8 src/mistralai/client/models/workflowexecutionstartedattributesresponse.py: id: d2276919a895 last_write_checksum: sha1:0e8495b532aeb8da0bd013adcdf4a3666851f566 pristine_git_object: 728cc954416424abe989ee8027d66333ad2c4798 src/mistralai/client/models/workflowexecutionstartedresponse.py: id: e1a597c911ea - last_write_checksum: sha1:d1ad202dcf504542f96dfe34cafb770c97d578a3 - pristine_git_object: 8da33ba6372c33126cb80a83d0b315ec7cd512c6 + last_write_checksum: sha1:4b3404dc7ab6b54e4947bc290dbd8d8ac9e1b552 + pristine_git_object: 87ec36224bf66ec7890c82fde80a126f4892a0b2 src/mistralai/client/models/workflowexecutionstatus.py: id: 56a16810d5de last_write_checksum: sha1:71560f9e7a0222734e176a362d3188e703dfbbe2 @@ -7918,20 +8442,20 @@ trackedFiles: pristine_git_object: f74cd5ab6aeadf662e90a46b394621a631602372 src/mistralai/client/models/workflowexecutiontraceeventsresponse.py: id: 94d92762ccb7 - last_write_checksum: sha1:af5357b6bf561a8a215905252f8a7c24c3d93162 - pristine_git_object: fff8b5e48dca0b4f4a84e87c073cca0d62d313ff + last_write_checksum: sha1:d8c168c9a3428f9f248159405654fda341be306b + pristine_git_object: 3dc90c60cef4c753b23af6bf1366c7589c2c2cb9 src/mistralai/client/models/workflowexecutiontraceotelresponse.py: id: 7531bf461dc2 - last_write_checksum: sha1:b21a1f7be8b6e52fb0768f2d80d8ca9ed9bd6e54 - pristine_git_object: b5d6bbd5e59794b410dc0f51896b0e2021d06d1d + last_write_checksum: sha1:b6d35ffeb5d3bd518270d15ae44ddcc29dffdbea + pristine_git_object: 84cef42525eb6d2a67836360841ee0ce046a7cb7 src/mistralai/client/models/workflowexecutiontracesummaryattributesvalues.py: id: 5e3448a39a40 last_write_checksum: sha1:a59ae1b987558f478518c86f93713e174e5e8d19 pristine_git_object: 1957662cace4c7ca9b7b892b749922a436ca92f0 src/mistralai/client/models/workflowexecutiontracesummaryresponse.py: id: 2ea199810f5f - last_write_checksum: sha1:02b3aa0b07223a09ec535a829d60f476472455ac - pristine_git_object: 96ee7e8089221f3cc22d40146ba6b493cca8f18d + last_write_checksum: sha1:db5fe398a7aedc81110114701c634f0ee5f48dd1 + pristine_git_object: 46676720e2d932d93c404773dead2773ac09ad35 src/mistralai/client/models/workflowexecutiontracesummaryspan.py: id: 750353cbd052 last_write_checksum: sha1:ba4f7ecc22fdd36aa3c11af5c1e434bb974d5786 @@ -8010,16 +8534,16 @@ trackedFiles: pristine_git_object: 49444347a46acf8f24c17a0f2b87c961c79efaca src/mistralai/client/models/workflowtaskfailedresponse.py: id: a02b01867b7f - last_write_checksum: sha1:4a372cc0560ff6edd91165c0822e59e4b8fd955c - pristine_git_object: cda419763e31c8764e72172c54b6b25c0489f0ac + last_write_checksum: sha1:9f84728e9381c872041545bbeb740b5a8c68dc01 + pristine_git_object: c44dcf110d553cc9678b8ece9c87bada88df4c8e src/mistralai/client/models/workflowtasktimedoutattributes.py: id: 43369570cb96 last_write_checksum: sha1:dd30ece2ca4bd84318494f4f49ca63446677f6d4 pristine_git_object: 1824990e1e9bf911e0dc422743268a97091576a7 src/mistralai/client/models/workflowtasktimedoutresponse.py: id: 8b7540c47083 - last_write_checksum: sha1:894b2c8656f027741bb4e59af3052f17c68fcd5f - pristine_git_object: 457a8737b8a792e3b39e7ffcfb2c253d757dbff0 + last_write_checksum: sha1:dfa1345911462fee55bde79c15ed70d2947b0721 + pristine_git_object: 1aac6d70efeb69f32462d39d64a327f2f201d315 src/mistralai/client/models/workflowtype.py: id: 01f37d193b17 last_write_checksum: sha1:ec2cf5f7adb51eca3b7bbfc7cef89d4da473b11f @@ -8058,8 +8582,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 src/mistralai/client/rag.py: id: 2c2b641de1b6 - last_write_checksum: sha1:77d6bd45daba9879a753768896dac249eb645996 - pristine_git_object: 934b2374571b475a573d38e59c8fdf40aa5ba3b8 + last_write_checksum: sha1:f63e15e18aa025ae713660c33ea33f06e7eaa4ef + pristine_git_object: 6a20dc2cbf88c8159518426cca9edb5c6b1de684 src/mistralai/client/realtime.py: id: 9d55a65b4bc9 last_write_checksum: sha1:ecd753170c02b868c8274458375e8219dfb7566d @@ -8090,8 +8614,8 @@ trackedFiles: pristine_git_object: 92c35aff10c46cb91c31b4eb6ddfaf0c84571c55 src/mistralai/client/service_accounts.py: id: d4210b455fcf - last_write_checksum: sha1:cf957f0f8852140f9188fb2a880b3c2de61d437d - pristine_git_object: caa438e2ad7d419f1f68a7aad555a37b9f87e250 + last_write_checksum: sha1:b88e29ce7ae97058a95c1350a680f8912694e145 + pristine_git_object: 078bea881de7575acf5517b1e1016d895ca17573 src/mistralai/client/sessions.py: id: 6387fd8f7623 last_write_checksum: sha1:66acbb15217d254c5ca767168afeefe6bb60a27f @@ -8210,16 +8734,16 @@ trackedFiles: pristine_git_object: 61c1c15df7ff2f7cd69aa530402b654a91aa5e5c src/mistralai/client/voices.py: id: ab76b1377d79 - last_write_checksum: sha1:3aadd2f6aa21a0c22495c436d757e7f2bad7c64c - pristine_git_object: ecf3e8107aca4a2e90431195ebbd40c41aa99806 + last_write_checksum: sha1:20aa7e106fb93f924314e7df6eb502239d3ffb00 + pristine_git_object: 0e2bef6bb4af0870b68aae734dd6052b08698c86 src/mistralai/client/workflows.py: id: e2a0381191f6 - last_write_checksum: sha1:6ba904f48bb77fc2f8a39c88f56c7a1de8fff687 - pristine_git_object: 5c8bc49fa06660c436bbfdd70991e9d37fa998f2 + last_write_checksum: sha1:db78cf249c9e35ac80ca6ba787355b7c4dab3b18 + pristine_git_object: 2d1bd94bbdb1b3d122c04ca5a6beefbebea2f079 src/mistralai/client/workflows_events.py: id: 6d4f674ce8ef - last_write_checksum: sha1:c5b1f070d9e8fb9e5150f99d62c0bd9a6cca9fc6 - pristine_git_object: 5e6cd886e7508a1642ca2860bf7ea532c68687cb + last_write_checksum: sha1:004b5aee7ef194e9038fd735931eb53732c7055d + pristine_git_object: 298824491b92d5a15d06104852173ad8e589cdd9 examples: list_models_v1_models_get: speakeasy-default-list-models-v1-models-get: @@ -10074,7 +10598,7 @@ examples: application/json: {"name": "", "description": "unibody usually despite slushy wherever reward stingy from", "server": "https://royal-majority.net/", "protocol": "mcp"} responses: "201": - application/json: {"id": "3633ef72-f5c6-4354-b510-7167244672aa", "name": "", "description": "why yahoo zany potentially", "created_at": "2024-05-03T05:17:01.129Z", "modified_at": "2025-09-26T20:42:01.861Z", "owner_type": "workspace", "visibility": "private", "private_tool_execution": true, "mistral": false, "protocol": "mcp"} + application/json: {"id": "3633ef72-f5c6-4354-b510-7167244672aa", "name": "", "description": "why yahoo zany potentially", "created_at": "2024-05-03T05:17:01.129Z", "modified_at": "2025-09-26T20:42:01.861Z", "owner_type": "workspace", "visibility": "private", "private_tool_execution": true, "supports_mcp": false, "mistral": false, "protocol": "mcp"} "422": application/json: {} connector_list_v1: @@ -10111,7 +10635,7 @@ examples: fetch_user_data: false responses: "200": - application/json: {"id": "f6d4a827-9530-4a4c-af7f-ac5d6264abbf", "name": "", "description": "diversity nudge pulverize offensively", "created_at": "2024-12-11T18:18:39.930Z", "modified_at": "2026-11-21T21:28:01.899Z", "owner_type": "system", "visibility": "shared_org", "private_tool_execution": false, "mistral": false, "protocol": "mcp"} + application/json: {"id": "f6d4a827-9530-4a4c-af7f-ac5d6264abbf", "name": "", "description": "diversity nudge pulverize offensively", "created_at": "2024-12-11T18:18:39.930Z", "modified_at": "2026-11-21T21:28:01.899Z", "owner_type": "system", "visibility": "shared_org", "private_tool_execution": false, "supports_mcp": false, "mistral": false, "protocol": "mcp"} "422": application/json: {} connector_update_v1: @@ -10123,7 +10647,7 @@ examples: application/json: {"protocol": "mcp"} responses: "200": - application/json: {"id": "987e4f32-6930-41a7-8adf-6e893eddc3d9", "name": "", "description": "especially usually collaborate likewise svelte tightly very", "created_at": "2026-09-13T13:33:05.718Z", "modified_at": "2026-06-23T06:11:22.023Z", "owner_type": "workspace", "visibility": "shared_global", "private_tool_execution": false, "mistral": false, "protocol": "mcp"} + application/json: {"id": "987e4f32-6930-41a7-8adf-6e893eddc3d9", "name": "", "description": "especially usually collaborate likewise svelte tightly very", "created_at": "2026-09-13T13:33:05.718Z", "modified_at": "2026-06-23T06:11:22.023Z", "owner_type": "workspace", "visibility": "shared_global", "private_tool_execution": false, "supports_mcp": false, "mistral": false, "protocol": "mcp"} "422": application/json: {} connector_delete_v1: @@ -10179,7 +10703,7 @@ examples: type: "all" responses: "200": - application/json: {"items": [{"name": "", "retention_notice": 30, "id": "c29472e8-7047-4227-ab06-14ac147f1ac9", "created_at": "2025-04-29T05:19:27.779Z", "user_id": ""}], "total": 911345, "page": 575844, "page_size": 996146, "total_pages": 441415} + application/json: {"items": [{"name": "", "retention_notice": 30, "id": "c29472e8-7047-4227-ab06-14ac147f1ac9", "created_at": "2025-04-29T05:19:27.779Z", "user_id": "", "type": "custom"}], "total": 911345, "page": 575844, "page_size": 996146, "total_pages": 441415} "422": application/json: {} create_voice_v1_audio_voices_post: @@ -10188,7 +10712,7 @@ examples: application/json: {"name": "", "retention_notice": 30, "sample_audio": ""} responses: "200": - application/json: {"name": "", "retention_notice": 30, "id": "40b08db1-3b52-4ceb-9a0a-1c667e00001b", "created_at": "2024-01-06T19:50:35.147Z", "user_id": ""} + application/json: {"name": "", "retention_notice": 30, "id": "40b08db1-3b52-4ceb-9a0a-1c667e00001b", "created_at": "2024-01-06T19:50:35.147Z", "user_id": "", "type": "preset"} "422": application/json: {} delete_voice_v1_audio_voices__voice_id__delete: @@ -10198,7 +10722,7 @@ examples: voice_id: "f42bf0d7-8a10-4b98-bbfa-589a232209d2" responses: "200": - application/json: {"name": "", "retention_notice": 30, "id": "35c3fb1b-bf2e-4c59-9fbc-1a07b5aae318", "created_at": "2025-07-16T21:02:12.020Z", "user_id": ""} + application/json: {"name": "", "retention_notice": 30, "id": "35c3fb1b-bf2e-4c59-9fbc-1a07b5aae318", "created_at": "2025-07-16T21:02:12.020Z", "user_id": "", "type": "custom"} "422": application/json: {} update_voice_v1_audio_voices__voice_id__patch: @@ -10210,7 +10734,7 @@ examples: application/json: {} responses: "200": - application/json: {"name": "", "retention_notice": 30, "id": "b24f3587-b692-4c7e-8899-187f5eb636bb", "created_at": "2025-05-30T15:17:43.490Z", "user_id": ""} + application/json: {"name": "", "retention_notice": 30, "id": "b24f3587-b692-4c7e-8899-187f5eb636bb", "created_at": "2025-05-30T15:17:43.490Z", "user_id": "", "type": "preset"} "422": application/json: {} get_voice_v1_audio_voices__voice_id__get: @@ -10220,7 +10744,7 @@ examples: voice_id: "" responses: "200": - application/json: {"name": "", "retention_notice": 30, "id": "964aee3c-7963-421e-8b70-e81d1aae4671", "created_at": "2026-01-24T22:28:34.575Z", "user_id": ""} + application/json: {"name": "", "retention_notice": 30, "id": "964aee3c-7963-421e-8b70-e81d1aae4671", "created_at": "2026-01-24T22:28:34.575Z", "user_id": "", "type": "custom"} "422": application/json: {} get_voice_sample_audio_v1_audio_voices__voice_id__sample_get: @@ -10617,7 +11141,7 @@ examples: limit: 100 responses: "200": - application/json: {"events": [{"event_id": "", "event_timestamp": 481686, "root_workflow_exec_id": "", "parent_workflow_exec_id": null, "continued_run_id": "", "first_execution_run_id": "", "schedule_id": "", "workflow_exec_id": "", "workflow_run_id": "", "workflow_name": "", "event_type": "ACTIVITY_TASK_COMPLETED", "attributes": {"task_id": "", "activity_name": "", "result": {"type": "json", "value": ""}}}]} + application/json: {"events": [{"event_id": "", "event_timestamp": 481686, "root_workflow_exec_id": "", "parent_workflow_exec_id": null, "continued_run_id": "", "first_execution_run_id": "", "chain_run_id": "", "schedule_id": "", "workflow_exec_id": "", "workflow_run_id": "", "workflow_name": "", "event_type": "ACTIVITY_TASK_COMPLETED", "attributes": {"task_id": "", "activity_name": "", "result": {"type": "json", "value": ""}}}]} "422": application/json: {} list_deployments_v1_workflows_deployments_get: @@ -10628,7 +11152,7 @@ examples: 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"} + application/json: {"deployments": [{"id": "404cb7bc-ee61-4a2e-aff3-75f69cf3ca94", "name": "", "is_active": true, "is_hardened": false, "created_at": "2026-10-31T16:44:16.117Z", "last_heartbeat": "2026-04-13T03:33:32.619Z", "updated_at": "2025-01-02T22:50:15.704Z", "worker_count": 0, "active_worker_count": 0}], "next_cursor": "", "workspace_id": "404cb7bc-ee61-4a2e-aff3-75f69cf3ca94"} "422": application/json: {} get_deployment_v1_workflows_deployments__name__get: @@ -10638,7 +11162,7 @@ examples: name: "" responses: "200": - application/json: {"id": "c3310963-59e6-41a6-b644-84aca97cc893", "name": "", "is_active": true, "is_hardened": false, "created_at": "2024-10-22T00:46:19.102Z", "updated_at": "2024-10-19T15:10:50.721Z", "worker_count": 0, "active_worker_count": 0, "workers": []} + application/json: {"id": "c3310963-59e6-41a6-b644-84aca97cc893", "name": "", "is_active": true, "is_hardened": false, "created_at": "2024-10-22T00:46:19.102Z", "last_heartbeat": "2026-04-18T00:54:40.438Z", "updated_at": "2024-10-19T15:10:50.721Z", "worker_count": 0, "active_worker_count": 0, "workers": []} "422": application/json: {} get_worker_info_v1_workflows_workers_whoami_get: @@ -11742,7 +12266,7 @@ examples: 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": ""} + application/json: {"workers": [{"name": "", "created_at": "2024-04-03T23:06:06.027Z", "last_heartbeat": "2026-04-22T20:44:13.456Z", "updated_at": "2024-07-31T11:02:59.557Z", "is_active": true}], "next_cursor": ""} "422": application/json: {} get_deployment_summaries_v1_rag_deployments_get: @@ -11866,10 +12390,10 @@ examples: create_pipeline_config_v1_observability_pipeline_configs_post: speakeasy-default-create-pipeline-config-v1-observability-pipeline-configs-post: requestBody: - application/json: {"pipeline_kind": "judge", "selectors": [], "definition": {"model": "Golf", "prompt": ""}, "name": "", "enabled": true} + application/json: {"name": "", "pipeline_kind": "judge", "selectors": [], "definitions": [{"model": "mistral-moderation-latest"}], "enabled": true} responses: "201": - application/json: {"id": "6cc11952-6b4c-41cc-8072-ddc26292bc64", "created_at": "2024-01-11T09:56:56.568Z", "updated_at": "2026-09-05T02:04:56.846Z", "deleted_at": "2026-07-18T20:16:28.467Z", "scope": "workspace", "workspace_id": "81eadee8-002c-4662-bc14-61ca4165262e", "name": "", "pipeline_kind": "judge", "selectors": [{"source_kind": "log"}], "enabled": true, "definition_hash": "", "definition": {"destination": {"protocol": "", "endpoint": "", "insecure": false}}} + application/json: {"id": "6cc11952-6b4c-41cc-8072-ddc26292bc64", "created_at": "2024-01-11T09:56:56.568Z", "updated_at": "2026-09-05T02:04:56.846Z", "deleted_at": "2026-07-18T20:16:28.467Z", "scope": "workspace", "workspace_id": "81eadee8-002c-4662-bc14-61ca4165262e", "name": "", "pipeline_kind": "judge", "selectors": [{"source_kind": "log"}], "enabled": true, "definitions": [{"slug": ""}]} "400": application/json: {"detail": {"message": "", "error_code": "AUTH_FORBIDDEN_WORKSPACE_NOT_FOUND"}} list_pipeline_configs_v1_observability_pipeline_configs_get: @@ -11890,7 +12414,7 @@ examples: pipeline_config_id: "939fdf7d-2edf-45ca-bb75-a47326da1799" responses: "200": - application/json: {"id": "5131e7a8-d0cb-48ee-b06b-e35a4f83d993", "created_at": "2024-07-08T20:57:49.429Z", "updated_at": "2025-01-18T11:58:57.582Z", "deleted_at": "2024-08-31T11:16:35.340Z", "scope": "workspace", "workspace_id": "ddefc067-e1de-41e9-871e-476def59f605", "name": "", "pipeline_kind": "export", "selectors": [], "enabled": true, "definition_hash": "", "definition": {"destination": {"protocol": "", "endpoint": "", "insecure": false}}} + application/json: {"id": "5131e7a8-d0cb-48ee-b06b-e35a4f83d993", "created_at": "2024-07-08T20:57:49.429Z", "updated_at": "2025-01-18T11:58:57.582Z", "deleted_at": "2024-08-31T11:16:35.340Z", "scope": "workspace", "workspace_id": "ddefc067-e1de-41e9-871e-476def59f605", "name": "", "pipeline_kind": "export", "selectors": [], "enabled": true, "definitions": [{"target_attributes": ["", ""], "patterns": [{"name": "", "regex": "", "category": "", "confidence": ""}]}]} "400": application/json: {"detail": {"message": "", "error_code": "EVALUATION_RECORD_NOT_FOUND"}} update_pipeline_config_v1_observability_pipeline_configs__pipeline_config_id__put: @@ -11899,10 +12423,10 @@ examples: path: pipeline_config_id: "4ee75abd-cccd-4232-9858-0c535465bfd5" requestBody: - application/json: {"pipeline_kind": "detection", "selectors": [], "definition": {"destination": {"protocol": "", "endpoint": "", "insecure": false}}, "name": "", "enabled": true} + application/json: {"name": "", "pipeline_kind": "detection", "selectors": [], "definitions": [], "enabled": true} responses: "200": - application/json: {"id": "54472de9-ad70-4f85-a3c3-1eb3a4e0772e", "created_at": "2024-08-23T05:53:44.588Z", "updated_at": "2026-04-22T22:28:40.230Z", "deleted_at": "2026-06-26T16:41:38.607Z", "scope": "workspace", "workspace_id": "93f714c8-653b-462c-a83b-561b0b408942", "name": "", "pipeline_kind": "moderation", "selectors": [], "enabled": false, "definition_hash": "", "definition": {"model": "mistral-moderation-latest"}} + application/json: {"id": "54472de9-ad70-4f85-a3c3-1eb3a4e0772e", "created_at": "2024-08-23T05:53:44.588Z", "updated_at": "2026-04-22T22:28:40.230Z", "deleted_at": "2026-06-26T16:41:38.607Z", "scope": "workspace", "workspace_id": "93f714c8-653b-462c-a83b-561b0b408942", "name": "", "pipeline_kind": "moderation", "selectors": [], "enabled": false, "definitions": []} "400": application/json: {"detail": {"message": "", "error_code": null}} delete_pipeline_config_v1_observability_pipeline_configs__pipeline_config_id__delete: @@ -11987,6 +12511,91 @@ examples: application/json: {"object": "client.session", "purpose": "realtime", "expires_at": "2025-08-27T00:12:05.151Z", "client_secret": {"value": "cQ6tjM8OdNwo74N", "expires_at": "2025-06-05T23:20:26.933Z"}} "422": application/json: {} + create_index_v1_rag_managed_indexes_post: + speakeasy-default-create-index-v1-rag-managed-indexes-post: + requestBody: + application/json: {"name": "", "config": {"embedding": {"type": "custom", "name": "", "dimensions": 543021}}} + responses: + "202": + application/json: {"id": "b46a65b4-aa22-4c77-aea9-0bed8572a223", "name": "", "status": "provisioning", "schema": {}, "config": {"embedding": {"type": "custom", "name": "", "dimensions": 543021}}} + "422": + application/json: {} + list_indexes_v1_rag_managed_indexes_get: + speakeasy-default-list-indexes-v1-rag-managed-indexes-get: + parameters: + query: + page_size: 20 + responses: + "200": + application/json: {"data": []} + "422": + application/json: {} + get_index_v1_rag_managed_indexes__index_name__get: + speakeasy-default-get-index-v1-rag-managed-indexes-index-name-get: + parameters: + path: + index_name: "" + responses: + "200": + application/json: {"id": "b1e4fc65-2947-49b3-8830-3d3eea60c07c", "name": "", "status": "provisioning", "schema": {}, "config": {"embedding": {"type": "custom", "name": "", "dimensions": 136483}}} + "422": + application/json: {} + update_index_v1_rag_managed_indexes__index_name__put: + speakeasy-default-update-index-v1-rag-managed-indexes-index-name-put: + parameters: + path: + index_name: "" + requestBody: + application/json: {"schema": {}} + responses: + "202": + application/json: {"id": "c5a70473-e1c2-49d9-b200-6afb6edf1d34", "name": "", "status": "ready", "schema": {}, "config": {"embedding": {"type": "custom", "name": "", "dimensions": 626062}}} + delete_index_v1_rag_managed_indexes__index_name__delete: + speakeasy-default-delete-index-v1-rag-managed-indexes-index-name-delete: + parameters: + path: + index_name: "" + responses: + "202": + application/json: {"id": "421af52a-3785-4925-9a57-9e75f444e53a", "name": "", "status": "provisioning"} + "422": + application/json: {} + ingest_documents_v1_rag_managed_indexes__index_name__documents_post: + speakeasy-default-ingest-documents-v1-rag-managed-indexes-index-name-documents-post: + parameters: + path: + index_name: "" + requestBody: + application/json: {"documents": [{"key": ""}, {"key": "", "key1": "", "key2": ""}]} + responses: + "200": + application/json: {"accepted": 960062, "rejected": 253331, "results": []} + "422": + application/json: {} + delete_documents_v1_rag_managed_indexes__index_name__documents_delete: + speakeasy-default-delete-documents-v1-rag-managed-indexes-index-name-documents-delete: + parameters: + path: + index_name: "" + requestBody: + application/json: {"document_ids": []} + responses: + "200": + application/json: {"deleted_document_ids": [], "missing": [""]} + "422": + application/json: {} + search_index_v1_rag_managed_indexes__index_name__search_post: + speakeasy-default-search-index-v1-rag-managed-indexes-index-name-search-post: + parameters: + path: + index_name: "" + requestBody: + application/json: {"retriever": {"top_k": 20, "type": "nearest_neighbour"}} + responses: + "200": + application/json: {"hits": [{"chunk": {"id": "", "source_id": "", "locator": "", "start_offset": 914998, "end_offset": 479974, "chunk_type": "", "content": ""}, "score": 2167.84, "index_name": ""}]} + "422": + application/json: {} examplesVersion: 1.0.2 generatedTests: {} generatedFiles: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index bb577980c..53a0ba1f6 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -32,7 +32,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 2.10.0 + version: 2.10.1 additionalDependencies: dev: pytest: ^8.2.2 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 2eccf8c9b..440e624f1 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.796.1 +speakeasyVersion: 1.796.4 sources: mistral-azure-source: sourceNamespace: mistral-openapi-azure @@ -16,8 +16,8 @@ sources: - speakeasy-mistralai-gcp-sdk-26292830187-1 mistral-openapi: sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:7e00433a9f9afac4042b008408e6dafa5871496d9bdf8e8d94fbf9d041a4e4e4 - sourceBlobDigest: sha256:decdf2e5f849d723d70e5ed0627b00a4e856caaf4b255654fe649f20cbc1f3f5 + sourceRevisionDigest: sha256:ad1adbc7f2f353506f09eca50c0b4e8b7fb67e957c5a10255fdc13d39326a8b7 + sourceBlobDigest: sha256:48bb84a33d45aae9398fe68d784075714aee477a0db99cd13b064bab7957dd44 tags: - latest - 1.0.0 @@ -39,13 +39,13 @@ targets: mistralai-sdk: source: mistral-openapi sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:7e00433a9f9afac4042b008408e6dafa5871496d9bdf8e8d94fbf9d041a4e4e4 - sourceBlobDigest: sha256:decdf2e5f849d723d70e5ed0627b00a4e856caaf4b255654fe649f20cbc1f3f5 + sourceRevisionDigest: sha256:ad1adbc7f2f353506f09eca50c0b4e8b7fb67e957c5a10255fdc13d39326a8b7 + sourceBlobDigest: sha256:48bb84a33d45aae9398fe68d784075714aee477a0db99cd13b064bab7957dd44 codeSamplesNamespace: mistral-openapi-code-samples - codeSamplesRevisionDigest: sha256:5d773ddc575bc25eef38f775aa07159a7e74491ec038281d58cd721c834b14ed + codeSamplesRevisionDigest: sha256:16a44c72d8d7bbecf2b558d34615ffb4a639ab0cd29ecfe94500fc7786d69438 workflow: workflowVersion: 1.0.0 - speakeasyVersion: 1.796.1 + speakeasyVersion: 1.796.4 sources: mistral-azure-source: inputs: diff --git a/README-PYPI.md b/README-PYPI.md index e9b2b606a..9cf67c47a 100644 --- a/README-PYPI.md +++ b/README-PYPI.md @@ -480,7 +480,7 @@ print(res.choices[0].message.content) ### [Audio.Voices](https://github.com/mistralai/client-python/blob/main/docs/sdks/voices/README.md) -* [list](https://github.com/mistralai/client-python/blob/main/docs/sdks/voices/README.md#list) - List all voices +* [~~list~~](https://github.com/mistralai/client-python/blob/main/docs/sdks/voices/README.md#list) - List all voices :warning: **Deprecated** * [create](https://github.com/mistralai/client-python/blob/main/docs/sdks/voices/README.md#create) - Create a new voice * [delete](https://github.com/mistralai/client-python/blob/main/docs/sdks/voices/README.md#delete) - Delete a custom voice * [update](https://github.com/mistralai/client-python/blob/main/docs/sdks/voices/README.md#update) - Update voice metadata @@ -667,6 +667,17 @@ print(res.choices[0].message.content) * [register](https://github.com/mistralai/client-python/blob/main/docs/sdks/ingestionpipelineconfigurations/README.md#register) - Register Config * [update_run_info](https://github.com/mistralai/client-python/blob/main/docs/sdks/ingestionpipelineconfigurations/README.md#update_run_info) - Update Run Info +### [Beta.Rag.ManagedIndexes](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md) + +* [create](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#create) - Create a managed index +* [list](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#list) - List managed indexes +* [get](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#get) - Get a managed index +* [update](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#update) - Update a managed index schema +* [delete](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#delete) - Delete a managed index +* [ingest_documents](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#ingest_documents) - Ingest documents into a managed index +* [delete_documents](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#delete_documents) - Delete documents from a managed index +* [search](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#search) - Search a managed index + ### [Beta.Rag.SearchIndexes](https://github.com/mistralai/client-python/blob/main/docs/sdks/searchindexes/README.md) * [get_deployment_summaries](https://github.com/mistralai/client-python/blob/main/docs/sdks/searchindexes/README.md#get_deployment_summaries) - Get Deployment Summaries @@ -1043,8 +1054,8 @@ with Mistral( **Inherit from [`MistralError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/mistralerror.py)**: -* [`HTTPValidationError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 155 of 245 methods.* -* [`ObservabilityError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 48 of 245 methods.* +* [`HTTPValidationError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 162 of 253 methods.* +* [`ObservabilityError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 48 of 253 methods.* * [`ResponseValidationError`](https://github.com/mistralai/client-python/blob/main/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/README.md b/README.md index 065db1744..8bd920658 100644 --- a/README.md +++ b/README.md @@ -480,7 +480,7 @@ print(res.choices[0].message.content) ### [Audio.Voices](docs/sdks/voices/README.md) -* [list](docs/sdks/voices/README.md#list) - List all voices +* [~~list~~](docs/sdks/voices/README.md#list) - List all voices :warning: **Deprecated** * [create](docs/sdks/voices/README.md#create) - Create a new voice * [delete](docs/sdks/voices/README.md#delete) - Delete a custom voice * [update](docs/sdks/voices/README.md#update) - Update voice metadata @@ -667,6 +667,17 @@ print(res.choices[0].message.content) * [register](docs/sdks/ingestionpipelineconfigurations/README.md#register) - Register Config * [update_run_info](docs/sdks/ingestionpipelineconfigurations/README.md#update_run_info) - Update Run Info +### [Beta.Rag.ManagedIndexes](docs/sdks/managedindexes/README.md) + +* [create](docs/sdks/managedindexes/README.md#create) - Create a managed index +* [list](docs/sdks/managedindexes/README.md#list) - List managed indexes +* [get](docs/sdks/managedindexes/README.md#get) - Get a managed index +* [update](docs/sdks/managedindexes/README.md#update) - Update a managed index schema +* [delete](docs/sdks/managedindexes/README.md#delete) - Delete a managed index +* [ingest_documents](docs/sdks/managedindexes/README.md#ingest_documents) - Ingest documents into a managed index +* [delete_documents](docs/sdks/managedindexes/README.md#delete_documents) - Delete documents from a managed index +* [search](docs/sdks/managedindexes/README.md#search) - Search a managed index + ### [Beta.Rag.SearchIndexes](docs/sdks/searchindexes/README.md) * [get_deployment_summaries](docs/sdks/searchindexes/README.md#get_deployment_summaries) - Get Deployment Summaries @@ -1043,8 +1054,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 155 of 245 methods.* -* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 48 of 245 methods.* +* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 162 of 253 methods.* +* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 48 of 253 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 a882c09e5..088bddba4 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -923,3 +923,24 @@ Based on: - [python v2.10.0] . ### Releases - [PyPI v2.10.0] https://pypi.org/project/mistralai/2.10.0 - . + +## 2026-09-14 15:02:43 +### API changes +Added (8): +- managedindexes.create +- managedindexes.delete +- managedindexes.delete_documents +- managedindexes.get +- managedindexes.ingest_documents +- managedindexes.list +- managedindexes.search +- managedindexes.update + +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.796.4 (2.935.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.10.1] . +### Releases +- [PyPI v2.10.1] https://pypi.org/project/mistralai/2.10.1 - . diff --git a/docs/models/accepteddocumentresponse.md b/docs/models/accepteddocumentresponse.md new file mode 100644 index 000000000..52a7871ac --- /dev/null +++ b/docs/models/accepteddocumentresponse.md @@ -0,0 +1,11 @@ +# AcceptedDocumentResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `status` | *Literal["accepted"]* | :heavy_check_mark: | N/A | +| `position` | *int* | :heavy_check_mark: | N/A | +| `document_id` | *str* | :heavy_check_mark: | N/A | +| `chunk_count` | *int* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/activitytaskcompletedresponse.md b/docs/models/activitytaskcompletedresponse.md index f228c8651..3b457416c 100644 --- a/docs/models/activitytaskcompletedresponse.md +++ b/docs/models/activitytaskcompletedresponse.md @@ -7,17 +7,18 @@ Contains timing information about the successful execution. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | -| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | -| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | -| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | -| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | -| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run. | -| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | -| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | -| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | -| `event_type` | *Optional[Literal["ACTIVITY_TASK_COMPLETED"]]* | :heavy_minus_sign: | Event type discriminator. | -| `attributes` | [models.ActivityTaskCompletedAttributesResponse](../models/activitytaskcompletedattributesresponse.md) | :heavy_check_mark: | Attributes for activity task completed events. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | +| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | +| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | +| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | +| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | +| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value. | +| `chain_run_id` | *Nullable[str]* | :heavy_check_mark: | Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value. | +| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | +| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | +| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | +| `event_type` | *Optional[Literal["ACTIVITY_TASK_COMPLETED"]]* | :heavy_minus_sign: | Event type discriminator. | +| `attributes` | [models.ActivityTaskCompletedAttributesResponse](../models/activitytaskcompletedattributesresponse.md) | :heavy_check_mark: | Attributes for activity task completed events. | \ No newline at end of file diff --git a/docs/models/activitytaskfailedresponse.md b/docs/models/activitytaskfailedresponse.md index 3eea5f598..d32ae8fdf 100644 --- a/docs/models/activitytaskfailedresponse.md +++ b/docs/models/activitytaskfailedresponse.md @@ -7,17 +7,18 @@ This is a terminal event indicating the activity could not complete successfully ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | -| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | -| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | -| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | -| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | -| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run. | -| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | -| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | -| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | -| `event_type` | *Optional[Literal["ACTIVITY_TASK_FAILED"]]* | :heavy_minus_sign: | Event type discriminator. | -| `attributes` | [models.ActivityTaskFailedAttributes](../models/activitytaskfailedattributes.md) | :heavy_check_mark: | Attributes for activity task failed events (final failure after all retries). | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | +| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | +| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | +| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | +| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | +| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value. | +| `chain_run_id` | *Nullable[str]* | :heavy_check_mark: | Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value. | +| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | +| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | +| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | +| `event_type` | *Optional[Literal["ACTIVITY_TASK_FAILED"]]* | :heavy_minus_sign: | Event type discriminator. | +| `attributes` | [models.ActivityTaskFailedAttributes](../models/activitytaskfailedattributes.md) | :heavy_check_mark: | Attributes for activity task failed events (final failure after all retries). | \ No newline at end of file diff --git a/docs/models/activitytaskretryingresponse.md b/docs/models/activitytaskretryingresponse.md index 77ac704ba..bde2a072b 100644 --- a/docs/models/activitytaskretryingresponse.md +++ b/docs/models/activitytaskretryingresponse.md @@ -7,17 +7,18 @@ Contains information about the failed attempt and the error that occurred. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | -| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | -| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | -| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | -| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | -| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run. | -| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | -| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | -| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | -| `event_type` | *Optional[Literal["ACTIVITY_TASK_RETRYING"]]* | :heavy_minus_sign: | Event type discriminator. | -| `attributes` | [models.ActivityTaskRetryingAttributes](../models/activitytaskretryingattributes.md) | :heavy_check_mark: | Attributes for activity task retrying events. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | +| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | +| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | +| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | +| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | +| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value. | +| `chain_run_id` | *Nullable[str]* | :heavy_check_mark: | Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value. | +| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | +| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | +| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | +| `event_type` | *Optional[Literal["ACTIVITY_TASK_RETRYING"]]* | :heavy_minus_sign: | Event type discriminator. | +| `attributes` | [models.ActivityTaskRetryingAttributes](../models/activitytaskretryingattributes.md) | :heavy_check_mark: | Attributes for activity task retrying events. | \ No newline at end of file diff --git a/docs/models/activitytaskstartedresponse.md b/docs/models/activitytaskstartedresponse.md index cafdca16f..ca0206333 100644 --- a/docs/models/activitytaskstartedresponse.md +++ b/docs/models/activitytaskstartedresponse.md @@ -8,17 +8,18 @@ Subsequent retry attempts emit ACTIVITY_TASK_RETRYING instead. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | -| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | -| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | -| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | -| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | -| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run. | -| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | -| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | -| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | -| `event_type` | *Optional[Literal["ACTIVITY_TASK_STARTED"]]* | :heavy_minus_sign: | Event type discriminator. | -| `attributes` | [models.ActivityTaskStartedAttributesResponse](../models/activitytaskstartedattributesresponse.md) | :heavy_check_mark: | Attributes for activity task started events. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | +| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | +| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | +| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | +| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | +| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value. | +| `chain_run_id` | *Nullable[str]* | :heavy_check_mark: | Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value. | +| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | +| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | +| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | +| `event_type` | *Optional[Literal["ACTIVITY_TASK_STARTED"]]* | :heavy_minus_sign: | Event type discriminator. | +| `attributes` | [models.ActivityTaskStartedAttributesResponse](../models/activitytaskstartedattributesresponse.md) | :heavy_check_mark: | Attributes for activity task started events. | \ No newline at end of file diff --git a/docs/models/agent.md b/docs/models/agent.md index 94e8b035a..4a5fb56bb 100644 --- a/docs/models/agent.md +++ b/docs/models/agent.md @@ -18,6 +18,7 @@ | `id` | *str* | :heavy_check_mark: | N/A | | `version` | *int* | :heavy_check_mark: | N/A | | `versions` | List[*int*] | :heavy_check_mark: | N/A | +| `owner_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | | `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | | `deployment_chat` | *bool* | :heavy_check_mark: | N/A | diff --git a/docs/models/and_.md b/docs/models/and_.md new file mode 100644 index 000000000..064a594b1 --- /dev/null +++ b/docs/models/and_.md @@ -0,0 +1,11 @@ +# And + +Conjunction: rows must match every sub-filter. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| `type` | *Literal["and"]* | :heavy_check_mark: | N/A | +| `matches` | List[[models.AndMatch](../models/andmatch.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/andmatch.md b/docs/models/andmatch.md new file mode 100644 index 000000000..23f457096 --- /dev/null +++ b/docs/models/andmatch.md @@ -0,0 +1,41 @@ +# AndMatch + + +## Supported Types + +### `models.And` + +```python +value: models.And = /* values here */ +``` + +### `models.Equal` + +```python +value: models.Equal = /* values here */ +``` + +### `models.In` + +```python +value: models.In = /* values here */ +``` + +### `models.Not` + +```python +value: models.Not = /* values here */ +``` + +### `models.Or` + +```python +value: models.Or = /* values here */ +``` + +### `models.Range` + +```python +value: models.Range = /* values here */ +``` + diff --git a/docs/models/boolarrayfielddefinition.md b/docs/models/boolarrayfielddefinition.md new file mode 100644 index 000000000..ad68ce812 --- /dev/null +++ b/docs/models/boolarrayfielddefinition.md @@ -0,0 +1,12 @@ +# BoolArrayFieldDefinition + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `indexed` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `required` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `system` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `default` | *OptionalNullable[Any]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["bool[]"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/boolfielddefinition.md b/docs/models/boolfielddefinition.md new file mode 100644 index 000000000..43c275a9e --- /dev/null +++ b/docs/models/boolfielddefinition.md @@ -0,0 +1,12 @@ +# BoolFieldDefinition + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `indexed` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `required` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `system` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `default` | *OptionalNullable[Any]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["bool"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chunkfields.md b/docs/models/chunkfields.md new file mode 100644 index 000000000..3a9f700ad --- /dev/null +++ b/docs/models/chunkfields.md @@ -0,0 +1,101 @@ +# ChunkFields + + +## Supported Types + +### `models.BoolFieldDefinition` + +```python +value: models.BoolFieldDefinition = /* values here */ +``` + +### `models.BoolArrayFieldDefinition` + +```python +value: models.BoolArrayFieldDefinition = /* values here */ +``` + +### `models.DenseVectorFieldDefinition` + +```python +value: models.DenseVectorFieldDefinition = /* values here */ +``` + +### `models.FloatFieldDefinition` + +```python +value: models.FloatFieldDefinition = /* values here */ +``` + +### `models.FloatArrayFieldDefinition` + +```python +value: models.FloatArrayFieldDefinition = /* values here */ +``` + +### `models.IntFieldDefinition` + +```python +value: models.IntFieldDefinition = /* values here */ +``` + +### `models.IntArrayFieldDefinition` + +```python +value: models.IntArrayFieldDefinition = /* values here */ +``` + +### `models.JSONFieldDefinition` + +```python +value: models.JSONFieldDefinition = /* values here */ +``` + +### `models.KeywordFieldDefinition` + +```python +value: models.KeywordFieldDefinition = /* values here */ +``` + +### `models.KeywordArrayFieldDefinition` + +```python +value: models.KeywordArrayFieldDefinition = /* values here */ +``` + +### `models.LongFieldDefinition` + +```python +value: models.LongFieldDefinition = /* values here */ +``` + +### `models.LongArrayFieldDefinition` + +```python +value: models.LongArrayFieldDefinition = /* values here */ +``` + +### `models.TextFieldDefinition` + +```python +value: models.TextFieldDefinition = /* values here */ +``` + +### `models.TextArrayFieldDefinition` + +```python +value: models.TextArrayFieldDefinition = /* values here */ +``` + +### `models.TimestampFieldDefinition` + +```python +value: models.TimestampFieldDefinition = /* values here */ +``` + +### `models.TimestampArrayFieldDefinition` + +```python +value: models.TimestampArrayFieldDefinition = /* values here */ +``` + diff --git a/docs/models/connectorsqueryfilters.md b/docs/models/connectorsqueryfilters.md index 37c19e7a9..b4ffb97ba 100644 --- a/docs/models/connectorsqueryfilters.md +++ b/docs/models/connectorsqueryfilters.md @@ -5,4 +5,5 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `active` | *OptionalNullable[bool]* | :heavy_minus_sign: | Filter for active connectors for a given user, workspace and organization. | \ No newline at end of file +| `active` | *OptionalNullable[bool]* | :heavy_minus_sign: | Filter for active connectors for a given user, workspace and organization. | +| `supports_mcp` | *OptionalNullable[bool]* | :heavy_minus_sign: | Filter connectors by whether they expose an MCP-compatible tool interface. | \ No newline at end of file diff --git a/docs/models/createindexv1ragmanagedindexespostresponse.md b/docs/models/createindexv1ragmanagedindexespostresponse.md new file mode 100644 index 000000000..80e4b24e2 --- /dev/null +++ b/docs/models/createindexv1ragmanagedindexespostresponse.md @@ -0,0 +1,9 @@ +# CreateIndexV1RagManagedIndexesPostResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `headers` | Dict[str, List[*str*]] | :heavy_check_mark: | N/A | +| `result` | [models.ManagedIndexResponse](../models/managedindexresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createmanagedindexrequest.md b/docs/models/createmanagedindexrequest.md new file mode 100644 index 000000000..191389374 --- /dev/null +++ b/docs/models/createmanagedindexrequest.md @@ -0,0 +1,10 @@ +# CreateManagedIndexRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `name` | *str* | :heavy_check_mark: | N/A | +| `schema_` | [Optional[models.ManagedIndexFields]](../models/managedindexfields.md) | :heavy_minus_sign: | N/A | +| `config` | [models.ManagedIndexConfig](../models/managedindexconfig.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createpipelineconfigrequest.md b/docs/models/createpipelineconfigrequest.md index be5db0c43..0914d2646 100644 --- a/docs/models/createpipelineconfigrequest.md +++ b/docs/models/createpipelineconfigrequest.md @@ -3,13 +3,11 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `pipeline_kind` | [models.PipelineKind](../models/pipelinekind.md) | :heavy_check_mark: | N/A | -| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `selectors` | List[[models.PipelineConfigSelector](../models/pipelineconfigselector.md)] | :heavy_check_mark: | N/A | -| `slug` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `group` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `definition` | [models.PipelineConfigDefinition](../models/pipelineconfigdefinition.md) | :heavy_check_mark: | N/A | -| `name` | *str* | :heavy_check_mark: | N/A | -| `enabled` | *Optional[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `name` | *str* | :heavy_check_mark: | N/A | +| `pipeline_kind` | [models.PipelineKind](../models/pipelinekind.md) | :heavy_check_mark: | N/A | +| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `selectors` | List[[models.PipelineConfigSelector](../models/pipelineconfigselector.md)] | :heavy_check_mark: | N/A | +| `definitions` | List[[models.PipelineConfigDefinition](../models/pipelineconfigdefinition.md)] | :heavy_check_mark: | N/A | +| `enabled` | *Optional[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createserviceaccountrequest.md b/docs/models/createserviceaccountrequest.md index 244d99683..9380563f4 100644 --- a/docs/models/createserviceaccountrequest.md +++ b/docs/models/createserviceaccountrequest.md @@ -7,4 +7,5 @@ | ----------------------- | ----------------------- | ----------------------- | ----------------------- | | `name` | *str* | :heavy_check_mark: | N/A | | `workspace_id` | *str* | :heavy_check_mark: | N/A | -| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `role_ids` | List[*str*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/customembeddingmodel.md b/docs/models/customembeddingmodel.md new file mode 100644 index 000000000..974854458 --- /dev/null +++ b/docs/models/customembeddingmodel.md @@ -0,0 +1,12 @@ +# CustomEmbeddingModel + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `type` | *Literal["custom"]* | :heavy_check_mark: | N/A | +| `name` | *str* | :heavy_check_mark: | N/A | +| `dtype` | [Optional[models.VectorDType]](../models/vectordtype.md) | :heavy_minus_sign: | N/A | +| `dimensions` | *int* | :heavy_check_mark: | N/A | +| `distance_metric` | [Optional[models.DistanceMetric]](../models/distancemetric.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/customtaskcanceledresponse.md b/docs/models/customtaskcanceledresponse.md index 8cd824feb..85d7bca4f 100644 --- a/docs/models/customtaskcanceledresponse.md +++ b/docs/models/customtaskcanceledresponse.md @@ -7,17 +7,18 @@ Indicates the task was explicitly stopped before completion. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | -| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | -| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | -| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | -| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | -| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run. | -| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | -| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | -| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | -| `event_type` | *Optional[Literal["CUSTOM_TASK_CANCELED"]]* | :heavy_minus_sign: | Event type discriminator. | -| `attributes` | [models.CustomTaskCanceledAttributes](../models/customtaskcanceledattributes.md) | :heavy_check_mark: | Attributes for custom task canceled events. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | +| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | +| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | +| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | +| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | +| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value. | +| `chain_run_id` | *Nullable[str]* | :heavy_check_mark: | Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value. | +| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | +| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | +| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | +| `event_type` | *Optional[Literal["CUSTOM_TASK_CANCELED"]]* | :heavy_minus_sign: | Event type discriminator. | +| `attributes` | [models.CustomTaskCanceledAttributes](../models/customtaskcanceledattributes.md) | :heavy_check_mark: | Attributes for custom task canceled events. | \ No newline at end of file diff --git a/docs/models/customtaskcompletedresponse.md b/docs/models/customtaskcompletedresponse.md index b31f4e22a..e3383dde8 100644 --- a/docs/models/customtaskcompletedresponse.md +++ b/docs/models/customtaskcompletedresponse.md @@ -7,17 +7,18 @@ Contains the final result of the task execution. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | -| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | -| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | -| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | -| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | -| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run. | -| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | -| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | -| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | -| `event_type` | *Optional[Literal["CUSTOM_TASK_COMPLETED"]]* | :heavy_minus_sign: | Event type discriminator. | -| `attributes` | [models.CustomTaskCompletedAttributesResponse](../models/customtaskcompletedattributesresponse.md) | :heavy_check_mark: | Attributes for custom task completed events. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | +| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | +| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | +| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | +| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | +| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value. | +| `chain_run_id` | *Nullable[str]* | :heavy_check_mark: | Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value. | +| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | +| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | +| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | +| `event_type` | *Optional[Literal["CUSTOM_TASK_COMPLETED"]]* | :heavy_minus_sign: | Event type discriminator. | +| `attributes` | [models.CustomTaskCompletedAttributesResponse](../models/customtaskcompletedattributesresponse.md) | :heavy_check_mark: | Attributes for custom task completed events. | \ No newline at end of file diff --git a/docs/models/customtaskfailedresponse.md b/docs/models/customtaskfailedresponse.md index 09385f063..3f4c18a4e 100644 --- a/docs/models/customtaskfailedresponse.md +++ b/docs/models/customtaskfailedresponse.md @@ -7,17 +7,18 @@ Contains details about the failure for debugging and error handling. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | -| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | -| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | -| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | -| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | -| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run. | -| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | -| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | -| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | -| `event_type` | *Optional[Literal["CUSTOM_TASK_FAILED"]]* | :heavy_minus_sign: | Event type discriminator. | -| `attributes` | [models.CustomTaskFailedAttributes](../models/customtaskfailedattributes.md) | :heavy_check_mark: | Attributes for custom task failed events. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | +| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | +| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | +| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | +| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | +| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value. | +| `chain_run_id` | *Nullable[str]* | :heavy_check_mark: | Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value. | +| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | +| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | +| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | +| `event_type` | *Optional[Literal["CUSTOM_TASK_FAILED"]]* | :heavy_minus_sign: | Event type discriminator. | +| `attributes` | [models.CustomTaskFailedAttributes](../models/customtaskfailedattributes.md) | :heavy_check_mark: | Attributes for custom task failed events. | \ No newline at end of file diff --git a/docs/models/customtaskinprogressresponse.md b/docs/models/customtaskinprogressresponse.md index c3ee34185..15a4cf8bc 100644 --- a/docs/models/customtaskinprogressresponse.md +++ b/docs/models/customtaskinprogressresponse.md @@ -8,17 +8,18 @@ enabling real-time progress tracking for long-running tasks. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | -| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | -| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | -| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | -| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | -| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run. | -| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | -| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | -| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | -| `event_type` | *Optional[Literal["CUSTOM_TASK_IN_PROGRESS"]]* | :heavy_minus_sign: | Event type discriminator. | -| `attributes` | [models.CustomTaskInProgressAttributesResponse](../models/customtaskinprogressattributesresponse.md) | :heavy_check_mark: | Attributes for custom task in-progress events with streaming updates. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | +| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | +| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | +| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | +| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | +| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value. | +| `chain_run_id` | *Nullable[str]* | :heavy_check_mark: | Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value. | +| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | +| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | +| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | +| `event_type` | *Optional[Literal["CUSTOM_TASK_IN_PROGRESS"]]* | :heavy_minus_sign: | Event type discriminator. | +| `attributes` | [models.CustomTaskInProgressAttributesResponse](../models/customtaskinprogressattributesresponse.md) | :heavy_check_mark: | Attributes for custom task in-progress events with streaming updates. | \ No newline at end of file diff --git a/docs/models/customtaskstartedresponse.md b/docs/models/customtaskstartedresponse.md index 48acab463..4130f72df 100644 --- a/docs/models/customtaskstartedresponse.md +++ b/docs/models/customtaskstartedresponse.md @@ -8,17 +8,18 @@ such as LLM calls, API requests, or data processing steps. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | -| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | -| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | -| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | -| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | -| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run. | -| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | -| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | -| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | -| `event_type` | *Optional[Literal["CUSTOM_TASK_STARTED"]]* | :heavy_minus_sign: | Event type discriminator. | -| `attributes` | [models.CustomTaskStartedAttributesResponse](../models/customtaskstartedattributesresponse.md) | :heavy_check_mark: | Attributes for custom task started events. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | +| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | +| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | +| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | +| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | +| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value. | +| `chain_run_id` | *Nullable[str]* | :heavy_check_mark: | Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value. | +| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | +| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | +| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | +| `event_type` | *Optional[Literal["CUSTOM_TASK_STARTED"]]* | :heavy_minus_sign: | Event type discriminator. | +| `attributes` | [models.CustomTaskStartedAttributesResponse](../models/customtaskstartedattributesresponse.md) | :heavy_check_mark: | Attributes for custom task started events. | \ No newline at end of file diff --git a/docs/models/customtasktimedoutresponse.md b/docs/models/customtasktimedoutresponse.md index 02bb0581f..1d206b021 100644 --- a/docs/models/customtasktimedoutresponse.md +++ b/docs/models/customtasktimedoutresponse.md @@ -7,17 +7,18 @@ Indicates the task did not complete within its configured time limit. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | -| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | -| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | -| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | -| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | -| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run. | -| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | -| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | -| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | -| `event_type` | *Optional[Literal["CUSTOM_TASK_TIMED_OUT"]]* | :heavy_minus_sign: | Event type discriminator. | -| `attributes` | [models.CustomTaskTimedOutAttributes](../models/customtasktimedoutattributes.md) | :heavy_check_mark: | Attributes for custom task timed out events. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | +| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | +| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | +| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | +| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | +| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value. | +| `chain_run_id` | *Nullable[str]* | :heavy_check_mark: | Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value. | +| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | +| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | +| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | +| `event_type` | *Optional[Literal["CUSTOM_TASK_TIMED_OUT"]]* | :heavy_minus_sign: | Event type discriminator. | +| `attributes` | [models.CustomTaskTimedOutAttributes](../models/customtasktimedoutattributes.md) | :heavy_check_mark: | Attributes for custom task timed out events. | \ No newline at end of file diff --git a/docs/models/deletedocumentsrequest.md b/docs/models/deletedocumentsrequest.md new file mode 100644 index 000000000..a2e90dc88 --- /dev/null +++ b/docs/models/deletedocumentsrequest.md @@ -0,0 +1,8 @@ +# DeleteDocumentsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `document_ids` | List[*str*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/deletedocumentsresponse.md b/docs/models/deletedocumentsresponse.md new file mode 100644 index 000000000..4720883b2 --- /dev/null +++ b/docs/models/deletedocumentsresponse.md @@ -0,0 +1,9 @@ +# DeleteDocumentsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `deleted_document_ids` | List[*str*] | :heavy_check_mark: | N/A | +| `missing` | List[*str*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/deletedocumentsv1ragmanagedindexesindexnamedocumentsdeleterequest.md b/docs/models/deletedocumentsv1ragmanagedindexesindexnamedocumentsdeleterequest.md new file mode 100644 index 000000000..9cce840a3 --- /dev/null +++ b/docs/models/deletedocumentsv1ragmanagedindexesindexnamedocumentsdeleterequest.md @@ -0,0 +1,9 @@ +# DeleteDocumentsV1RagManagedIndexesIndexNameDocumentsDeleteRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `index_name` | *str* | :heavy_check_mark: | N/A | +| `delete_documents_request` | [models.DeleteDocumentsRequest](../models/deletedocumentsrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/deleteindexv1ragmanagedindexesindexnamedeleterequest.md b/docs/models/deleteindexv1ragmanagedindexesindexnamedeleterequest.md new file mode 100644 index 000000000..39e72c0db --- /dev/null +++ b/docs/models/deleteindexv1ragmanagedindexesindexnamedeleterequest.md @@ -0,0 +1,8 @@ +# DeleteIndexV1RagManagedIndexesIndexNameDeleteRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `index_name` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/deletemanagedindexresponse.md b/docs/models/deletemanagedindexresponse.md new file mode 100644 index 000000000..2f4b899cf --- /dev/null +++ b/docs/models/deletemanagedindexresponse.md @@ -0,0 +1,12 @@ +# DeleteManagedIndexResponse + +Wire representation returned when an index is deleted (id, name, status). + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | N/A | +| `name` | *str* | :heavy_check_mark: | N/A | +| `status` | [models.ManagedIndexStatus](../models/managedindexstatus.md) | :heavy_check_mark: | Lifecycle of an index. Derived, not stored -- see ``managed_index_from_row``. | \ No newline at end of file diff --git a/docs/models/densevectorfielddefinition.md b/docs/models/densevectorfielddefinition.md new file mode 100644 index 000000000..ec8b7e7b5 --- /dev/null +++ b/docs/models/densevectorfielddefinition.md @@ -0,0 +1,12 @@ +# DenseVectorFieldDefinition + + +## Fields + +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `indexed` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `required` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `system` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `default` | *OptionalNullable[Any]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["dense_vector"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/deploymentdetailresponse.md b/docs/models/deploymentdetailresponse.md index a98807c3c..131b1e2f7 100644 --- a/docs/models/deploymentdetailresponse.md +++ b/docs/models/deploymentdetailresponse.md @@ -3,17 +3,19 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *str* | :heavy_check_mark: | Unique identifier of the deployment | -| `name` | *str* | :heavy_check_mark: | Deployment name | -| `is_active` | *bool* | :heavy_check_mark: | Whether at least one worker is currently live | -| `is_hardened` | *Optional[bool]* | :heavy_minus_sign: | Whether the deployment only accepts registrations from authorized principals | -| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | When the deployment was first registered | -| `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | When the deployment was last updated | -| ~~`location`~~ | [OptionalNullable[models.DeploymentLocation]](../models/deploymentlocation.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Where the deployment is running | -| `worker_count` | *Optional[int]* | :heavy_minus_sign: | Number of workers registered to the deployment | -| `active_worker_count` | *Optional[int]* | :heavy_minus_sign: | Number of workers currently live within the liveness cutoff | -| `locations` | List[[models.LocationType](../models/locationtype.md)] | :heavy_minus_sign: | Distinct location types reported by the deployment's workers | -| `managed` | [OptionalNullable[models.ManagedDeploymentResponse]](../models/manageddeploymentresponse.md) | :heavy_minus_sign: | Live managed service state for managed deployments; null for self-hosted deployments or when managed services are unavailable | -| `workers` | List[[models.DeploymentWorkerResponse](../models/deploymentworkerresponse.md)] | :heavy_check_mark: | Workers registered for the deployment | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | Unique identifier of the deployment | +| `name` | *str* | :heavy_check_mark: | Deployment name | +| `is_active` | *bool* | :heavy_check_mark: | Whether at least one worker is currently live | +| `is_hardened` | *Optional[bool]* | :heavy_minus_sign: | Whether the deployment only accepts registrations from authorized principals | +| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | When the deployment was first registered | +| `last_heartbeat` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | When the deployment last saw a worker registration | +| ~~`updated_at`~~ | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated alias of last_heartbeat | +| `owner` | *OptionalNullable[str]* | :heavy_minus_sign: | User id that owns the deployment, or null when it is administrator-managed | +| ~~`location`~~ | [OptionalNullable[models.DeploymentLocation]](../models/deploymentlocation.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Where the deployment is running | +| `worker_count` | *Optional[int]* | :heavy_minus_sign: | Number of workers registered to the deployment | +| `active_worker_count` | *Optional[int]* | :heavy_minus_sign: | Number of workers currently live within the liveness cutoff | +| `locations` | List[[models.LocationType](../models/locationtype.md)] | :heavy_minus_sign: | Distinct location types reported by the deployment's workers | +| `managed` | [OptionalNullable[models.ManagedDeploymentResponse]](../models/manageddeploymentresponse.md) | :heavy_minus_sign: | Live managed service state for managed deployments; null for self-hosted deployments or when managed services are unavailable | +| `workers` | List[[models.DeploymentWorkerResponse](../models/deploymentworkerresponse.md)] | :heavy_check_mark: | Workers registered for the deployment | \ No newline at end of file diff --git a/docs/models/deploymentresponse.md b/docs/models/deploymentresponse.md index d9be7876a..e805fcca3 100644 --- a/docs/models/deploymentresponse.md +++ b/docs/models/deploymentresponse.md @@ -3,16 +3,18 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *str* | :heavy_check_mark: | Unique identifier of the deployment | -| `name` | *str* | :heavy_check_mark: | Deployment name | -| `is_active` | *bool* | :heavy_check_mark: | Whether at least one worker is currently live | -| `is_hardened` | *Optional[bool]* | :heavy_minus_sign: | Whether the deployment only accepts registrations from authorized principals | -| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | When the deployment was first registered | -| `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | When the deployment was last updated | -| ~~`location`~~ | [OptionalNullable[models.DeploymentLocation]](../models/deploymentlocation.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Where the deployment is running | -| `worker_count` | *Optional[int]* | :heavy_minus_sign: | Number of workers registered to the deployment | -| `active_worker_count` | *Optional[int]* | :heavy_minus_sign: | Number of workers currently live within the liveness cutoff | -| `locations` | List[[models.LocationType](../models/locationtype.md)] | :heavy_minus_sign: | Distinct location types reported by the deployment's workers | -| `managed` | [OptionalNullable[models.ManagedDeploymentResponse]](../models/manageddeploymentresponse.md) | :heavy_minus_sign: | Live managed service state for managed deployments; null for self-hosted deployments or when managed services are unavailable | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | Unique identifier of the deployment | +| `name` | *str* | :heavy_check_mark: | Deployment name | +| `is_active` | *bool* | :heavy_check_mark: | Whether at least one worker is currently live | +| `is_hardened` | *Optional[bool]* | :heavy_minus_sign: | Whether the deployment only accepts registrations from authorized principals | +| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | When the deployment was first registered | +| `last_heartbeat` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | When the deployment last saw a worker registration | +| ~~`updated_at`~~ | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated alias of last_heartbeat | +| `owner` | *OptionalNullable[str]* | :heavy_minus_sign: | User id that owns the deployment, or null when it is administrator-managed | +| ~~`location`~~ | [OptionalNullable[models.DeploymentLocation]](../models/deploymentlocation.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Where the deployment is running | +| `worker_count` | *Optional[int]* | :heavy_minus_sign: | Number of workers registered to the deployment | +| `active_worker_count` | *Optional[int]* | :heavy_minus_sign: | Number of workers currently live within the liveness cutoff | +| `locations` | List[[models.LocationType](../models/locationtype.md)] | :heavy_minus_sign: | Distinct location types reported by the deployment's workers | +| `managed` | [OptionalNullable[models.ManagedDeploymentResponse]](../models/manageddeploymentresponse.md) | :heavy_minus_sign: | Live managed service state for managed deployments; null for self-hosted deployments or when managed services are unavailable | \ No newline at end of file diff --git a/docs/models/deploymentworkerresponse.md b/docs/models/deploymentworkerresponse.md index f008cdb11..2f1d4bc3c 100644 --- a/docs/models/deploymentworkerresponse.md +++ b/docs/models/deploymentworkerresponse.md @@ -3,10 +3,11 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `name` | *str* | :heavy_check_mark: | Worker name | -| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | When the worker first registered | -| `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | When the worker last registered | -| `is_active` | *bool* | :heavy_check_mark: | Whether this worker's liveness key is currently alive | -| `location` | [OptionalNullable[models.DeploymentLocation]](../models/deploymentlocation.md) | :heavy_minus_sign: | Where the worker is running; null if the worker did not report a location | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `name` | *str* | :heavy_check_mark: | Worker name | +| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | When the worker first registered | +| `last_heartbeat` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | When the worker last registered | +| ~~`updated_at`~~ | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated alias of last_heartbeat | +| `is_active` | *bool* | :heavy_check_mark: | Whether this worker's liveness key is currently alive | +| `location` | [OptionalNullable[models.DeploymentLocation]](../models/deploymentlocation.md) | :heavy_minus_sign: | Where the worker is running; null if the worker did not report a location | \ No newline at end of file diff --git a/docs/models/distancemetric.md b/docs/models/distancemetric.md new file mode 100644 index 000000000..6f2e7025d --- /dev/null +++ b/docs/models/distancemetric.md @@ -0,0 +1,19 @@ +# DistanceMetric + +## Example Usage + +```python +from mistralai.client.models import DistanceMetric + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: DistanceMetric = "cosine" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"cosine"` +- `"inner_product"` +- `"l2"` diff --git a/docs/models/documentfielderrorresponse.md b/docs/models/documentfielderrorresponse.md new file mode 100644 index 000000000..b0c333ac9 --- /dev/null +++ b/docs/models/documentfielderrorresponse.md @@ -0,0 +1,12 @@ +# DocumentFieldErrorResponse + +A single field-level validation failure within a rejected document. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| `location` | List[[models.Location](../models/location.md)] | :heavy_check_mark: | N/A | +| `type` | *str* | :heavy_check_mark: | N/A | +| `message` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/documentfields.md b/docs/models/documentfields.md new file mode 100644 index 000000000..f1d36d18b --- /dev/null +++ b/docs/models/documentfields.md @@ -0,0 +1,101 @@ +# DocumentFields + + +## Supported Types + +### `models.BoolFieldDefinition` + +```python +value: models.BoolFieldDefinition = /* values here */ +``` + +### `models.BoolArrayFieldDefinition` + +```python +value: models.BoolArrayFieldDefinition = /* values here */ +``` + +### `models.DenseVectorFieldDefinition` + +```python +value: models.DenseVectorFieldDefinition = /* values here */ +``` + +### `models.FloatFieldDefinition` + +```python +value: models.FloatFieldDefinition = /* values here */ +``` + +### `models.FloatArrayFieldDefinition` + +```python +value: models.FloatArrayFieldDefinition = /* values here */ +``` + +### `models.IntFieldDefinition` + +```python +value: models.IntFieldDefinition = /* values here */ +``` + +### `models.IntArrayFieldDefinition` + +```python +value: models.IntArrayFieldDefinition = /* values here */ +``` + +### `models.JSONFieldDefinition` + +```python +value: models.JSONFieldDefinition = /* values here */ +``` + +### `models.KeywordFieldDefinition` + +```python +value: models.KeywordFieldDefinition = /* values here */ +``` + +### `models.KeywordArrayFieldDefinition` + +```python +value: models.KeywordArrayFieldDefinition = /* values here */ +``` + +### `models.LongFieldDefinition` + +```python +value: models.LongFieldDefinition = /* values here */ +``` + +### `models.LongArrayFieldDefinition` + +```python +value: models.LongArrayFieldDefinition = /* values here */ +``` + +### `models.TextFieldDefinition` + +```python +value: models.TextFieldDefinition = /* values here */ +``` + +### `models.TextArrayFieldDefinition` + +```python +value: models.TextArrayFieldDefinition = /* values here */ +``` + +### `models.TimestampFieldDefinition` + +```python +value: models.TimestampFieldDefinition = /* values here */ +``` + +### `models.TimestampArrayFieldDefinition` + +```python +value: models.TimestampArrayFieldDefinition = /* values here */ +``` + diff --git a/docs/models/embedding.md b/docs/models/embedding.md new file mode 100644 index 000000000..67fe75aa4 --- /dev/null +++ b/docs/models/embedding.md @@ -0,0 +1,17 @@ +# Embedding + + +## Supported Types + +### `models.CustomEmbeddingModel` + +```python +value: models.CustomEmbeddingModel = /* values here */ +``` + +### `models.MistralEmbeddingModel` + +```python +value: models.MistralEmbeddingModel = /* values here */ +``` + diff --git a/docs/models/equal.md b/docs/models/equal.md new file mode 100644 index 000000000..5bf68eef2 --- /dev/null +++ b/docs/models/equal.md @@ -0,0 +1,12 @@ +# Equal + +Field equals a scalar value. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| `type` | *Literal["equal"]* | :heavy_check_mark: | N/A | +| `field` | *str* | :heavy_check_mark: | N/A | +| `value` | [models.EqualValue](../models/equalvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/equalvalue.md b/docs/models/equalvalue.md new file mode 100644 index 000000000..12882f33e --- /dev/null +++ b/docs/models/equalvalue.md @@ -0,0 +1,29 @@ +# EqualValue + + +## Supported Types + +### `int` + +```python +value: int = /* values here */ +``` + +### `float` + +```python +value: float = /* values here */ +``` + +### `datetime` + +```python +value: datetime = /* values here */ +``` + +### `str` + +```python +value: str = /* values here */ +``` + diff --git a/docs/models/floatarrayfielddefinition.md b/docs/models/floatarrayfielddefinition.md new file mode 100644 index 000000000..0afe46cdb --- /dev/null +++ b/docs/models/floatarrayfielddefinition.md @@ -0,0 +1,12 @@ +# FloatArrayFieldDefinition + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `indexed` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `required` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `system` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `default` | *OptionalNullable[Any]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["float[]"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/floatfielddefinition.md b/docs/models/floatfielddefinition.md new file mode 100644 index 000000000..d77a7d5da --- /dev/null +++ b/docs/models/floatfielddefinition.md @@ -0,0 +1,12 @@ +# FloatFieldDefinition + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `indexed` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `required` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `system` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `default` | *OptionalNullable[Any]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["float"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getindexv1ragmanagedindexesindexnamegetrequest.md b/docs/models/getindexv1ragmanagedindexesindexnamegetrequest.md new file mode 100644 index 000000000..8705b8bce --- /dev/null +++ b/docs/models/getindexv1ragmanagedindexesindexnamegetrequest.md @@ -0,0 +1,8 @@ +# GetIndexV1RagManagedIndexesIndexNameGetRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `index_name` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/gt.md b/docs/models/gt.md new file mode 100644 index 000000000..6d2e1fd2a --- /dev/null +++ b/docs/models/gt.md @@ -0,0 +1,23 @@ +# Gt + + +## Supported Types + +### `int` + +```python +value: int = /* values here */ +``` + +### `float` + +```python +value: float = /* values here */ +``` + +### `datetime` + +```python +value: datetime = /* values here */ +``` + diff --git a/docs/models/gte.md b/docs/models/gte.md new file mode 100644 index 000000000..542ff63ba --- /dev/null +++ b/docs/models/gte.md @@ -0,0 +1,23 @@ +# Gte + + +## Supported Types + +### `int` + +```python +value: int = /* values here */ +``` + +### `float` + +```python +value: float = /* values here */ +``` + +### `datetime` + +```python +value: datetime = /* values here */ +``` + diff --git a/docs/models/httpconnector.md b/docs/models/httpconnector.md index 368bf5e3e..c1868c224 100644 --- a/docs/models/httpconnector.md +++ b/docs/models/httpconnector.md @@ -26,6 +26,7 @@ | `active` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | `blocked_by` | List[[models.ConsumerType](../models/consumertype.md)] | :heavy_minus_sign: | N/A | | `private_tool_execution` | *bool* | :heavy_check_mark: | N/A | +| `supports_mcp` | *bool* | :heavy_check_mark: | Whether this connector exposes an MCP-compatible tool interface. | | `mistral` | *Optional[bool]* | :heavy_minus_sign: | N/A | | `is_authenticated` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | `tools` | List[[models.ConnectorTool](../models/connectortool.md)] | :heavy_minus_sign: | N/A | diff --git a/docs/models/in_.md b/docs/models/in_.md new file mode 100644 index 000000000..3e0509db0 --- /dev/null +++ b/docs/models/in_.md @@ -0,0 +1,12 @@ +# In + +Field is one of a set of values. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| `type` | *Literal["in"]* | :heavy_check_mark: | N/A | +| `field` | *str* | :heavy_check_mark: | N/A | +| `values` | List[[models.InValue](../models/invalue.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ingestdocumentsrequest.md b/docs/models/ingestdocumentsrequest.md new file mode 100644 index 000000000..e8f668159 --- /dev/null +++ b/docs/models/ingestdocumentsrequest.md @@ -0,0 +1,8 @@ +# IngestDocumentsRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `documents` | List[Dict[str, *Any*]] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ingestdocumentsresponse.md b/docs/models/ingestdocumentsresponse.md new file mode 100644 index 000000000..adf92b05d --- /dev/null +++ b/docs/models/ingestdocumentsresponse.md @@ -0,0 +1,10 @@ +# IngestDocumentsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `accepted` | *int* | :heavy_check_mark: | N/A | +| `rejected` | *int* | :heavy_check_mark: | N/A | +| `results` | List[[models.Result](../models/result.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ingestdocumentsv1ragmanagedindexesindexnamedocumentspostrequest.md b/docs/models/ingestdocumentsv1ragmanagedindexesindexnamedocumentspostrequest.md new file mode 100644 index 000000000..6777f6edf --- /dev/null +++ b/docs/models/ingestdocumentsv1ragmanagedindexesindexnamedocumentspostrequest.md @@ -0,0 +1,9 @@ +# IngestDocumentsV1RagManagedIndexesIndexNameDocumentsPostRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `index_name` | *str* | :heavy_check_mark: | N/A | +| `ingest_documents_request` | [models.IngestDocumentsRequest](../models/ingestdocumentsrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/intarrayfielddefinition.md b/docs/models/intarrayfielddefinition.md new file mode 100644 index 000000000..63c7a600f --- /dev/null +++ b/docs/models/intarrayfielddefinition.md @@ -0,0 +1,12 @@ +# IntArrayFieldDefinition + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `indexed` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `required` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `system` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `default` | *OptionalNullable[Any]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["int[]"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/intfielddefinition.md b/docs/models/intfielddefinition.md new file mode 100644 index 000000000..07b3448b0 --- /dev/null +++ b/docs/models/intfielddefinition.md @@ -0,0 +1,12 @@ +# IntFieldDefinition + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `indexed` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `required` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `system` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `default` | *OptionalNullable[Any]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["int"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/invalue.md b/docs/models/invalue.md new file mode 100644 index 000000000..6f68d3f63 --- /dev/null +++ b/docs/models/invalue.md @@ -0,0 +1,29 @@ +# InValue + + +## Supported Types + +### `int` + +```python +value: int = /* values here */ +``` + +### `float` + +```python +value: float = /* values here */ +``` + +### `datetime` + +```python +value: datetime = /* values here */ +``` + +### `str` + +```python +value: str = /* values here */ +``` + diff --git a/docs/models/jsonfielddefinition.md b/docs/models/jsonfielddefinition.md new file mode 100644 index 000000000..a319d296b --- /dev/null +++ b/docs/models/jsonfielddefinition.md @@ -0,0 +1,12 @@ +# JSONFieldDefinition + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `indexed` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `required` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `system` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `default` | *OptionalNullable[Any]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["json"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/judgedefinition.md b/docs/models/judgedefinition.md index 941af748f..8aeb5fe48 100644 --- a/docs/models/judgedefinition.md +++ b/docs/models/judgedefinition.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `model` | *str* | :heavy_check_mark: | N/A | -| `prompt` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `slug` | *str* | :heavy_check_mark: | N/A | +| `mapping` | Dict[str, *str*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/keywordarrayfielddefinition.md b/docs/models/keywordarrayfielddefinition.md new file mode 100644 index 000000000..a7e03c497 --- /dev/null +++ b/docs/models/keywordarrayfielddefinition.md @@ -0,0 +1,12 @@ +# KeywordArrayFieldDefinition + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `indexed` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `required` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `system` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `default` | *OptionalNullable[Any]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["keyword[]"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/keywordfielddefinition.md b/docs/models/keywordfielddefinition.md new file mode 100644 index 000000000..f76b86aed --- /dev/null +++ b/docs/models/keywordfielddefinition.md @@ -0,0 +1,12 @@ +# KeywordFieldDefinition + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `indexed` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `required` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `system` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `default` | *OptionalNullable[Any]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["keyword"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/keywordretriever.md b/docs/models/keywordretriever.md new file mode 100644 index 000000000..36eeb6d4a --- /dev/null +++ b/docs/models/keywordretriever.md @@ -0,0 +1,14 @@ +# KeywordRetriever + +Retrieve document chunks with similar keywrods to the given query. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `top_k` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["keyword"]* | :heavy_check_mark: | N/A | +| `query` | *str* | :heavy_check_mark: | N/A | +| `filter_` | [OptionalNullable[models.KeywordRetrieverFilter]](../models/keywordretrieverfilter.md) | :heavy_minus_sign: | N/A | +| `field` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/keywordretrieverfilter.md b/docs/models/keywordretrieverfilter.md new file mode 100644 index 000000000..4bbfe9dcb --- /dev/null +++ b/docs/models/keywordretrieverfilter.md @@ -0,0 +1,41 @@ +# KeywordRetrieverFilter + + +## Supported Types + +### `models.And` + +```python +value: models.And = /* values here */ +``` + +### `models.Equal` + +```python +value: models.Equal = /* values here */ +``` + +### `models.In` + +```python +value: models.In = /* values here */ +``` + +### `models.Not` + +```python +value: models.Not = /* values here */ +``` + +### `models.Or` + +```python +value: models.Or = /* values here */ +``` + +### `models.Range` + +```python +value: models.Range = /* values here */ +``` + diff --git a/docs/models/listindexesv1ragmanagedindexesgetrequest.md b/docs/models/listindexesv1ragmanagedindexesgetrequest.md new file mode 100644 index 000000000..1c737d5aa --- /dev/null +++ b/docs/models/listindexesv1ragmanagedindexesgetrequest.md @@ -0,0 +1,9 @@ +# ListIndexesV1RagManagedIndexesGetRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | Maximum number of indexes to return | +| `page_token` | *OptionalNullable[str]* | :heavy_minus_sign: | Cursor returned as next_page_token by the previous page | \ No newline at end of file diff --git a/docs/models/listindexesv1ragmanagedindexesgetresponse.md b/docs/models/listindexesv1ragmanagedindexesgetresponse.md new file mode 100644 index 000000000..fbcc90aaa --- /dev/null +++ b/docs/models/listindexesv1ragmanagedindexesgetresponse.md @@ -0,0 +1,8 @@ +# ListIndexesV1RagManagedIndexesGetResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `result` | [models.ListManagedIndexesResponse](../models/listmanagedindexesresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/listmanagedindexesresponse.md b/docs/models/listmanagedindexesresponse.md new file mode 100644 index 000000000..d430a4723 --- /dev/null +++ b/docs/models/listmanagedindexesresponse.md @@ -0,0 +1,11 @@ +# ListManagedIndexesResponse + +Paginated list of managed indexes. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `data` | List[[models.ManagedIndexResponse](../models/managedindexresponse.md)] | :heavy_check_mark: | N/A | +| `next_page_token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/listpipelineconfigsv1observabilitypipelineconfigsgetrequest.md b/docs/models/listpipelineconfigsv1observabilitypipelineconfigsgetrequest.md index c49e9cc0a..b99b831ec 100644 --- a/docs/models/listpipelineconfigsv1observabilitypipelineconfigsgetrequest.md +++ b/docs/models/listpipelineconfigsv1observabilitypipelineconfigsgetrequest.md @@ -6,7 +6,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | | `pipeline_kind` | [OptionalNullable[models.PipelineKind]](../models/pipelinekind.md) | :heavy_minus_sign: | N/A | -| `group` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `enabled` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | | `page` | *Optional[int]* | :heavy_minus_sign: | N/A | diff --git a/docs/models/listserviceaccountsv1serviceaccountsgetrequest.md b/docs/models/listserviceaccountsv1serviceaccountsgetrequest.md index 274decb1b..db108d184 100644 --- a/docs/models/listserviceaccountsv1serviceaccountsgetrequest.md +++ b/docs/models/listserviceaccountsv1serviceaccountsgetrequest.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `workspace_id` | *str* | :heavy_check_mark: | N/A | -| `include_deleted` | *Optional[bool]* | :heavy_minus_sign: | N/A | -| `offset` | *int* | :heavy_check_mark: | N/A | -| `limit` | *int* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `workspace_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `include_deleted` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `offset` | *int* | :heavy_check_mark: | N/A | +| `limit` | *int* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/location.md b/docs/models/location.md new file mode 100644 index 000000000..d99d74c21 --- /dev/null +++ b/docs/models/location.md @@ -0,0 +1,17 @@ +# Location + + +## Supported Types + +### `str` + +```python +value: str = /* values here */ +``` + +### `int` + +```python +value: int = /* values here */ +``` + diff --git a/docs/models/longarrayfielddefinition.md b/docs/models/longarrayfielddefinition.md new file mode 100644 index 000000000..9ade41c49 --- /dev/null +++ b/docs/models/longarrayfielddefinition.md @@ -0,0 +1,12 @@ +# LongArrayFieldDefinition + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `indexed` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `required` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `system` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `default` | *OptionalNullable[Any]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["long[]"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/longfielddefinition.md b/docs/models/longfielddefinition.md new file mode 100644 index 000000000..26eef0418 --- /dev/null +++ b/docs/models/longfielddefinition.md @@ -0,0 +1,12 @@ +# LongFieldDefinition + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `indexed` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `required` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `system` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `default` | *OptionalNullable[Any]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["long"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/lt.md b/docs/models/lt.md new file mode 100644 index 000000000..e248e9f4e --- /dev/null +++ b/docs/models/lt.md @@ -0,0 +1,23 @@ +# Lt + + +## Supported Types + +### `int` + +```python +value: int = /* values here */ +``` + +### `float` + +```python +value: float = /* values here */ +``` + +### `datetime` + +```python +value: datetime = /* values here */ +``` + diff --git a/docs/models/lte.md b/docs/models/lte.md new file mode 100644 index 000000000..82973fa4e --- /dev/null +++ b/docs/models/lte.md @@ -0,0 +1,23 @@ +# Lte + + +## Supported Types + +### `int` + +```python +value: int = /* values here */ +``` + +### `float` + +```python +value: float = /* values here */ +``` + +### `datetime` + +```python +value: datetime = /* values here */ +``` + diff --git a/docs/models/managedindexconfig.md b/docs/models/managedindexconfig.md new file mode 100644 index 000000000..3fe23e439 --- /dev/null +++ b/docs/models/managedindexconfig.md @@ -0,0 +1,8 @@ +# ManagedIndexConfig + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `embedding` | [models.Embedding](../models/embedding.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/managedindexfields.md b/docs/models/managedindexfields.md new file mode 100644 index 000000000..b2616f6dd --- /dev/null +++ b/docs/models/managedindexfields.md @@ -0,0 +1,9 @@ +# ManagedIndexFields + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `document_fields` | Dict[str, [models.DocumentFields](../models/documentfields.md)] | :heavy_minus_sign: | N/A | +| `chunk_fields` | Dict[str, [models.ChunkFields](../models/chunkfields.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/managedindexresponse.md b/docs/models/managedindexresponse.md new file mode 100644 index 000000000..d7a126658 --- /dev/null +++ b/docs/models/managedindexresponse.md @@ -0,0 +1,17 @@ +# ManagedIndexResponse + +Wire representation of a managed index (decoupled from the domain model). + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | N/A | +| `name` | *str* | :heavy_check_mark: | N/A | +| `status` | [models.ManagedIndexStatus](../models/managedindexstatus.md) | :heavy_check_mark: | Lifecycle of an index. Derived, not stored -- see ``managed_index_from_row``. | +| `status_message` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `schema_` | [models.ManagedIndexFields](../models/managedindexfields.md) | :heavy_check_mark: | N/A | +| `config` | [models.ManagedIndexConfig](../models/managedindexconfig.md) | :heavy_check_mark: | N/A | +| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `modified_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/managedindexstatus.md b/docs/models/managedindexstatus.md new file mode 100644 index 000000000..51b13113c --- /dev/null +++ b/docs/models/managedindexstatus.md @@ -0,0 +1,22 @@ +# ManagedIndexStatus + +Lifecycle of an index. Derived, not stored -- see ``managed_index_from_row``. + +## Example Usage + +```python +from mistralai.client.models import ManagedIndexStatus + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: ManagedIndexStatus = "provisioning" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"provisioning"` +- `"ready"` +- `"failed"` +- `"deleting"` diff --git a/docs/models/mcpconnector.md b/docs/models/mcpconnector.md index 7be22e506..17180c0b6 100644 --- a/docs/models/mcpconnector.md +++ b/docs/models/mcpconnector.md @@ -26,6 +26,7 @@ | `active` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | `blocked_by` | List[[models.ConsumerType](../models/consumertype.md)] | :heavy_minus_sign: | N/A | | `private_tool_execution` | *bool* | :heavy_check_mark: | N/A | +| `supports_mcp` | *bool* | :heavy_check_mark: | Whether this connector exposes an MCP-compatible tool interface. | | `mistral` | *Optional[bool]* | :heavy_minus_sign: | N/A | | `is_authenticated` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | `tools` | List[[models.ConnectorTool](../models/connectortool.md)] | :heavy_minus_sign: | N/A | diff --git a/docs/models/mistralembeddingmodel.md b/docs/models/mistralembeddingmodel.md new file mode 100644 index 000000000..5569e43f7 --- /dev/null +++ b/docs/models/mistralembeddingmodel.md @@ -0,0 +1,12 @@ +# MistralEmbeddingModel + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `type` | *Literal["mistral"]* | :heavy_check_mark: | N/A | +| `name` | *str* | :heavy_check_mark: | N/A | +| `dtype` | [Optional[models.VectorDType]](../models/vectordtype.md) | :heavy_minus_sign: | N/A | +| `dimensions` | *int* | :heavy_check_mark: | N/A | +| `distance_metric` | [Optional[models.DistanceMetric]](../models/distancemetric.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/nearestneighbourretriever.md b/docs/models/nearestneighbourretriever.md new file mode 100644 index 000000000..df41d5f80 --- /dev/null +++ b/docs/models/nearestneighbourretriever.md @@ -0,0 +1,15 @@ +# NearestNeighbourRetriever + +Retrieve document chunks whose embeddings are closest to the query's. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `top_k` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["nearest_neighbour"]* | :heavy_check_mark: | N/A | +| `query` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `query_embedding` | List[*float*] | :heavy_minus_sign: | N/A | +| `field` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `filter_` | [OptionalNullable[models.NearestNeighbourRetrieverFilter]](../models/nearestneighbourretrieverfilter.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/nearestneighbourretrieverfilter.md b/docs/models/nearestneighbourretrieverfilter.md new file mode 100644 index 000000000..6fc00d79e --- /dev/null +++ b/docs/models/nearestneighbourretrieverfilter.md @@ -0,0 +1,41 @@ +# NearestNeighbourRetrieverFilter + + +## Supported Types + +### `models.And` + +```python +value: models.And = /* values here */ +``` + +### `models.Equal` + +```python +value: models.Equal = /* values here */ +``` + +### `models.In` + +```python +value: models.In = /* values here */ +``` + +### `models.Not` + +```python +value: models.Not = /* values here */ +``` + +### `models.Or` + +```python +value: models.Or = /* values here */ +``` + +### `models.Range` + +```python +value: models.Range = /* values here */ +``` + diff --git a/docs/models/not_.md b/docs/models/not_.md new file mode 100644 index 000000000..1bc722d14 --- /dev/null +++ b/docs/models/not_.md @@ -0,0 +1,11 @@ +# Not + +Negate a filter: rows must not match. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `type` | *Literal["not"]* | :heavy_check_mark: | N/A | +| `match` | [models.NotMatch](../models/notmatch.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/notmatch.md b/docs/models/notmatch.md new file mode 100644 index 000000000..00b50c20f --- /dev/null +++ b/docs/models/notmatch.md @@ -0,0 +1,41 @@ +# NotMatch + + +## Supported Types + +### `models.And` + +```python +value: models.And = /* values here */ +``` + +### `models.Equal` + +```python +value: models.Equal = /* values here */ +``` + +### `models.In` + +```python +value: models.In = /* values here */ +``` + +### `models.Not` + +```python +value: models.Not = /* values here */ +``` + +### `models.Or` + +```python +value: models.Or = /* values here */ +``` + +### `models.Range` + +```python +value: models.Range = /* values here */ +``` + diff --git a/docs/models/observabilityerrorcode.md b/docs/models/observabilityerrorcode.md index 986f38893..5ad41a679 100644 --- a/docs/models/observabilityerrorcode.md +++ b/docs/models/observabilityerrorcode.md @@ -48,6 +48,7 @@ This is an open enum. Unrecognized values will not fail type checks. - `"EVALUATION_RUN_TRANSITION_IS_INVALID"` - `"EVALUATION_RUN_TRANSITION_IS_RUNNING_ALREADY"` - `"EVALUATION_RUN_TRANSITION_ERROR"` +- `"EVALUATION_RUN_OUTPUT_RECORD_CONFLICT"` - `"TEMPLATE_ERROR"` - `"TEMPLATE_SYNTAX_ERROR"` - `"PROJECT_NAME_ALREADY_EXISTS"` diff --git a/docs/models/or_.md b/docs/models/or_.md new file mode 100644 index 000000000..00754f403 --- /dev/null +++ b/docs/models/or_.md @@ -0,0 +1,11 @@ +# Or + +Disjunction: rows must match at least one sub-filter. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| `type` | *Literal["or"]* | :heavy_check_mark: | N/A | +| `matches` | List[[models.OrMatch](../models/ormatch.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ormatch.md b/docs/models/ormatch.md new file mode 100644 index 000000000..cdb11118b --- /dev/null +++ b/docs/models/ormatch.md @@ -0,0 +1,41 @@ +# OrMatch + + +## Supported Types + +### `models.And` + +```python +value: models.And = /* values here */ +``` + +### `models.Equal` + +```python +value: models.Equal = /* values here */ +``` + +### `models.In` + +```python +value: models.In = /* values here */ +``` + +### `models.Not` + +```python +value: models.Not = /* values here */ +``` + +### `models.Or` + +```python +value: models.Or = /* values here */ +``` + +### `models.Range` + +```python +value: models.Range = /* values here */ +``` + diff --git a/docs/models/pipelineconfig.md b/docs/models/pipelineconfig.md index a35da42da..3c092f574 100644 --- a/docs/models/pipelineconfig.md +++ b/docs/models/pipelineconfig.md @@ -3,20 +3,17 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `id` | *str* | :heavy_check_mark: | N/A | -| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | -| `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | -| `deleted_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | -| `scope` | [models.PipelineConfigScope](../models/pipelineconfigscope.md) | :heavy_check_mark: | N/A | -| `workspace_id` | *str* | :heavy_check_mark: | N/A | -| `name` | *str* | :heavy_check_mark: | N/A | -| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `slug` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `group` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `pipeline_kind` | [models.PipelineKind](../models/pipelinekind.md) | :heavy_check_mark: | N/A | -| `selectors` | List[[models.PipelineConfigSelector](../models/pipelineconfigselector.md)] | :heavy_check_mark: | N/A | -| `enabled` | *bool* | :heavy_check_mark: | N/A | -| `definition_hash` | *str* | :heavy_check_mark: | N/A | -| `definition` | [models.PipelineConfigDefinition](../models/pipelineconfigdefinition.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `id` | *str* | :heavy_check_mark: | N/A | +| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | +| `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | +| `deleted_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | +| `scope` | [models.PipelineConfigScope](../models/pipelineconfigscope.md) | :heavy_check_mark: | N/A | +| `workspace_id` | *str* | :heavy_check_mark: | N/A | +| `name` | *str* | :heavy_check_mark: | N/A | +| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `pipeline_kind` | [models.PipelineKind](../models/pipelinekind.md) | :heavy_check_mark: | N/A | +| `selectors` | List[[models.PipelineConfigSelector](../models/pipelineconfigselector.md)] | :heavy_check_mark: | N/A | +| `enabled` | *bool* | :heavy_check_mark: | N/A | +| `definitions` | List[[models.PipelineConfigDefinition](../models/pipelineconfigdefinition.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/range.md b/docs/models/range.md new file mode 100644 index 000000000..66efb860c --- /dev/null +++ b/docs/models/range.md @@ -0,0 +1,17 @@ +# Range + +Check that the given field falls in a range. + +Requires at least one operator. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `type` | *Literal["range"]* | :heavy_check_mark: | N/A | +| `field` | *str* | :heavy_check_mark: | N/A | +| `gt` | [OptionalNullable[models.Gt]](../models/gt.md) | :heavy_minus_sign: | N/A | +| `gte` | [OptionalNullable[models.Gte]](../models/gte.md) | :heavy_minus_sign: | N/A | +| `lt` | [OptionalNullable[models.Lt]](../models/lt.md) | :heavy_minus_sign: | N/A | +| `lte` | [OptionalNullable[models.Lte]](../models/lte.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/rejecteddocumentresponse.md b/docs/models/rejecteddocumentresponse.md new file mode 100644 index 000000000..1024907d0 --- /dev/null +++ b/docs/models/rejecteddocumentresponse.md @@ -0,0 +1,10 @@ +# RejectedDocumentResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `status` | *Literal["rejected"]* | :heavy_check_mark: | N/A | +| `position` | *int* | :heavy_check_mark: | N/A | +| `errors` | List[[models.DocumentFieldErrorResponse](../models/documentfielderrorresponse.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/result.md b/docs/models/result.md new file mode 100644 index 000000000..6ba175d71 --- /dev/null +++ b/docs/models/result.md @@ -0,0 +1,17 @@ +# Result + + +## Supported Types + +### `models.AcceptedDocumentResponse` + +```python +value: models.AcceptedDocumentResponse = /* values here */ +``` + +### `models.RejectedDocumentResponse` + +```python +value: models.RejectedDocumentResponse = /* values here */ +``` + diff --git a/docs/models/retriever.md b/docs/models/retriever.md new file mode 100644 index 000000000..d5d94a925 --- /dev/null +++ b/docs/models/retriever.md @@ -0,0 +1,17 @@ +# Retriever + + +## Supported Types + +### `models.KeywordRetriever` + +```python +value: models.KeywordRetriever = /* values here */ +``` + +### `models.NearestNeighbourRetriever` + +```python +value: models.NearestNeighbourRetriever = /* values here */ +``` + diff --git a/docs/models/searchchunkresponse.md b/docs/models/searchchunkresponse.md new file mode 100644 index 000000000..a34386484 --- /dev/null +++ b/docs/models/searchchunkresponse.md @@ -0,0 +1,19 @@ +# SearchChunkResponse + +Wire chunk: atom fields plus any custom fields (via ``extra``). + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `id` | *str* | :heavy_check_mark: | N/A | +| `source_id` | *str* | :heavy_check_mark: | N/A | +| `locator` | *str* | :heavy_check_mark: | N/A | +| `start_offset` | *Nullable[int]* | :heavy_check_mark: | N/A | +| `end_offset` | *Nullable[int]* | :heavy_check_mark: | N/A | +| `chunk_type` | *str* | :heavy_check_mark: | N/A | +| `parent_ref` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `content` | *str* | :heavy_check_mark: | N/A | +| `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | +| `__pydantic_extra__` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/searchhitresponse.md b/docs/models/searchhitresponse.md new file mode 100644 index 000000000..8d1cbf3cb --- /dev/null +++ b/docs/models/searchhitresponse.md @@ -0,0 +1,11 @@ +# SearchHitResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `chunk` | [models.SearchChunkResponse](../models/searchchunkresponse.md) | :heavy_check_mark: | Wire chunk: atom fields plus any custom fields (via ``extra``). | +| `score` | *float* | :heavy_check_mark: | N/A | +| `distance` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | +| `index_name` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/searchindexv1ragmanagedindexesindexnamesearchpostrequest.md b/docs/models/searchindexv1ragmanagedindexesindexnamesearchpostrequest.md new file mode 100644 index 000000000..6005e84cf --- /dev/null +++ b/docs/models/searchindexv1ragmanagedindexesindexnamesearchpostrequest.md @@ -0,0 +1,9 @@ +# SearchIndexV1RagManagedIndexesIndexNameSearchPostRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `index_name` | *str* | :heavy_check_mark: | N/A | +| `search_request` | [models.SearchRequest](../models/searchrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/searchrequest.md b/docs/models/searchrequest.md new file mode 100644 index 000000000..ecf205805 --- /dev/null +++ b/docs/models/searchrequest.md @@ -0,0 +1,8 @@ +# SearchRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `retriever` | [models.Retriever](../models/retriever.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/searchresponse.md b/docs/models/searchresponse.md new file mode 100644 index 000000000..6e05a5de0 --- /dev/null +++ b/docs/models/searchresponse.md @@ -0,0 +1,8 @@ +# SearchResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `hits` | List[[models.SearchHitResponse](../models/searchhitresponse.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/textarrayfielddefinition.md b/docs/models/textarrayfielddefinition.md new file mode 100644 index 000000000..7105f466e --- /dev/null +++ b/docs/models/textarrayfielddefinition.md @@ -0,0 +1,12 @@ +# TextArrayFieldDefinition + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `indexed` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `required` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `system` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `default` | *OptionalNullable[Any]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["text[]"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/textfielddefinition.md b/docs/models/textfielddefinition.md new file mode 100644 index 000000000..4b93ebadb --- /dev/null +++ b/docs/models/textfielddefinition.md @@ -0,0 +1,12 @@ +# TextFieldDefinition + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `indexed` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `required` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `system` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `default` | *OptionalNullable[Any]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["text"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/timestamparrayfielddefinition.md b/docs/models/timestamparrayfielddefinition.md new file mode 100644 index 000000000..fca07f6d4 --- /dev/null +++ b/docs/models/timestamparrayfielddefinition.md @@ -0,0 +1,12 @@ +# TimestampArrayFieldDefinition + + +## Fields + +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `indexed` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `required` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `system` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `default` | *OptionalNullable[Any]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["timestamp[]"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/timestampfielddefinition.md b/docs/models/timestampfielddefinition.md new file mode 100644 index 000000000..adf05ae36 --- /dev/null +++ b/docs/models/timestampfielddefinition.md @@ -0,0 +1,12 @@ +# TimestampFieldDefinition + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `indexed` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `required` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `system` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `default` | *OptionalNullable[Any]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["timestamp"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateindexv1ragmanagedindexesindexnameputrequest.md b/docs/models/updateindexv1ragmanagedindexesindexnameputrequest.md new file mode 100644 index 000000000..169dfa2a1 --- /dev/null +++ b/docs/models/updateindexv1ragmanagedindexesindexnameputrequest.md @@ -0,0 +1,9 @@ +# UpdateIndexV1RagManagedIndexesIndexNamePutRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `index_name` | *str* | :heavy_check_mark: | N/A | +| `update_managed_index_request` | [models.UpdateManagedIndexRequest](../models/updatemanagedindexrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatemanagedindexrequest.md b/docs/models/updatemanagedindexrequest.md new file mode 100644 index 000000000..e07cdb801 --- /dev/null +++ b/docs/models/updatemanagedindexrequest.md @@ -0,0 +1,13 @@ +# UpdateManagedIndexRequest + +The schema an index should have. Sent whole, not as a patch. + +No ``config``: the embedding configuration is fixed at creation, so there is +nothing for a caller to send back. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `schema_` | [models.ManagedIndexFields](../models/managedindexfields.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatepipelineconfigrequest.md b/docs/models/updatepipelineconfigrequest.md index c12984304..c319b089d 100644 --- a/docs/models/updatepipelineconfigrequest.md +++ b/docs/models/updatepipelineconfigrequest.md @@ -3,13 +3,11 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `pipeline_kind` | [models.PipelineKind](../models/pipelinekind.md) | :heavy_check_mark: | N/A | -| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `selectors` | List[[models.PipelineConfigSelector](../models/pipelineconfigselector.md)] | :heavy_check_mark: | N/A | -| `slug` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `group` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `definition` | [models.PipelineConfigDefinition](../models/pipelineconfigdefinition.md) | :heavy_check_mark: | N/A | -| `name` | *str* | :heavy_check_mark: | N/A | -| `enabled` | *bool* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `name` | *str* | :heavy_check_mark: | N/A | +| `pipeline_kind` | [models.PipelineKind](../models/pipelinekind.md) | :heavy_check_mark: | N/A | +| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `selectors` | List[[models.PipelineConfigSelector](../models/pipelineconfigselector.md)] | :heavy_check_mark: | N/A | +| `definitions` | List[[models.PipelineConfigDefinition](../models/pipelineconfigdefinition.md)] | :heavy_check_mark: | N/A | +| `enabled` | *bool* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/vectordtype.md b/docs/models/vectordtype.md new file mode 100644 index 000000000..8bba874a9 --- /dev/null +++ b/docs/models/vectordtype.md @@ -0,0 +1,18 @@ +# VectorDType + +## Example Usage + +```python +from mistralai.client.models import VectorDType + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: VectorDType = "float16" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"float16"` +- `"float32"` diff --git a/docs/models/voiceresponse.md b/docs/models/voiceresponse.md index 4b18f9d6b..a30a297ac 100644 --- a/docs/models/voiceresponse.md +++ b/docs/models/voiceresponse.md @@ -19,4 +19,5 @@ Schema for voice response | `id` | *str* | :heavy_check_mark: | N/A | | `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | | `user_id` | *Nullable[str]* | :heavy_check_mark: | N/A | -| `trimmed_seconds` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `trimmed_seconds` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | +| `type` | [models.VoiceResponseType](../models/voiceresponsetype.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/voiceresponsetype.md b/docs/models/voiceresponsetype.md new file mode 100644 index 000000000..4fd445080 --- /dev/null +++ b/docs/models/voiceresponsetype.md @@ -0,0 +1,18 @@ +# VoiceResponseType + +## Example Usage + +```python +from mistralai.client.models import VoiceResponseType + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: VoiceResponseType = "preset" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"preset"` +- `"custom"` diff --git a/docs/models/workflowexecutioncanceledresponse.md b/docs/models/workflowexecutioncanceledresponse.md index b31c1772b..66037a786 100644 --- a/docs/models/workflowexecutioncanceledresponse.md +++ b/docs/models/workflowexecutioncanceledresponse.md @@ -7,17 +7,18 @@ This is a terminal event indicating the workflow was explicitly canceled. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | -| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | -| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | -| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | -| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | -| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run. | -| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | -| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | -| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | -| `event_type` | *Optional[Literal["WORKFLOW_EXECUTION_CANCELED"]]* | :heavy_minus_sign: | Event type discriminator. | -| `attributes` | [models.WorkflowExecutionCanceledAttributes](../models/workflowexecutioncanceledattributes.md) | :heavy_check_mark: | Attributes for workflow execution canceled events. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | +| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | +| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | +| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | +| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | +| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value. | +| `chain_run_id` | *Nullable[str]* | :heavy_check_mark: | Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value. | +| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | +| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | +| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | +| `event_type` | *Optional[Literal["WORKFLOW_EXECUTION_CANCELED"]]* | :heavy_minus_sign: | Event type discriminator. | +| `attributes` | [models.WorkflowExecutionCanceledAttributes](../models/workflowexecutioncanceledattributes.md) | :heavy_check_mark: | Attributes for workflow execution canceled events. | \ No newline at end of file diff --git a/docs/models/workflowexecutioncompletedresponse.md b/docs/models/workflowexecutioncompletedresponse.md index 2cdb78974..5b56c61ce 100644 --- a/docs/models/workflowexecutioncompletedresponse.md +++ b/docs/models/workflowexecutioncompletedresponse.md @@ -7,17 +7,18 @@ This is a terminal event indicating the workflow finished without errors. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | -| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | -| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | -| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | -| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | -| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run. | -| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | -| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | -| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | -| `event_type` | *Optional[Literal["WORKFLOW_EXECUTION_COMPLETED"]]* | :heavy_minus_sign: | Event type discriminator. | -| `attributes` | [models.WorkflowExecutionCompletedAttributesResponse](../models/workflowexecutioncompletedattributesresponse.md) | :heavy_check_mark: | Attributes for workflow execution completed events. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | +| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | +| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | +| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | +| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | +| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value. | +| `chain_run_id` | *Nullable[str]* | :heavy_check_mark: | Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value. | +| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | +| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | +| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | +| `event_type` | *Optional[Literal["WORKFLOW_EXECUTION_COMPLETED"]]* | :heavy_minus_sign: | Event type discriminator. | +| `attributes` | [models.WorkflowExecutionCompletedAttributesResponse](../models/workflowexecutioncompletedattributesresponse.md) | :heavy_check_mark: | Attributes for workflow execution completed events. | \ No newline at end of file diff --git a/docs/models/workflowexecutioncontinuedasnewresponse.md b/docs/models/workflowexecutioncontinuedasnewresponse.md index 1dd8faa5c..6155c7b6b 100644 --- a/docs/models/workflowexecutioncontinuedasnewresponse.md +++ b/docs/models/workflowexecutioncontinuedasnewresponse.md @@ -8,17 +8,18 @@ while maintaining logical continuity. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | -| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | -| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | -| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | -| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | -| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run. | -| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | -| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | -| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | -| `event_type` | *Optional[Literal["WORKFLOW_EXECUTION_CONTINUED_AS_NEW"]]* | :heavy_minus_sign: | Event type discriminator. | -| `attributes` | [models.WorkflowExecutionContinuedAsNewAttributesResponse](../models/workflowexecutioncontinuedasnewattributesresponse.md) | :heavy_check_mark: | Attributes for workflow execution continued-as-new events. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | +| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | +| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | +| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | +| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | +| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value. | +| `chain_run_id` | *Nullable[str]* | :heavy_check_mark: | Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value. | +| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | +| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | +| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | +| `event_type` | *Optional[Literal["WORKFLOW_EXECUTION_CONTINUED_AS_NEW"]]* | :heavy_minus_sign: | Event type discriminator. | +| `attributes` | [models.WorkflowExecutionContinuedAsNewAttributesResponse](../models/workflowexecutioncontinuedasnewattributesresponse.md) | :heavy_check_mark: | Attributes for workflow execution continued-as-new events. | \ No newline at end of file diff --git a/docs/models/workflowexecutionfailedresponse.md b/docs/models/workflowexecutionfailedresponse.md index d34b50288..b509a4281 100644 --- a/docs/models/workflowexecutionfailedresponse.md +++ b/docs/models/workflowexecutionfailedresponse.md @@ -7,17 +7,18 @@ This is a terminal event indicating the workflow ended with an error. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | -| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | -| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | -| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | -| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | -| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run. | -| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | -| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | -| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | -| `event_type` | *Optional[Literal["WORKFLOW_EXECUTION_FAILED"]]* | :heavy_minus_sign: | Event type discriminator. | -| `attributes` | [models.WorkflowExecutionFailedAttributes](../models/workflowexecutionfailedattributes.md) | :heavy_check_mark: | Attributes for workflow execution failed events. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | +| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | +| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | +| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | +| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | +| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value. | +| `chain_run_id` | *Nullable[str]* | :heavy_check_mark: | Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value. | +| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | +| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | +| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | +| `event_type` | *Optional[Literal["WORKFLOW_EXECUTION_FAILED"]]* | :heavy_minus_sign: | Event type discriminator. | +| `attributes` | [models.WorkflowExecutionFailedAttributes](../models/workflowexecutionfailedattributes.md) | :heavy_check_mark: | Attributes for workflow execution failed events. | \ No newline at end of file diff --git a/docs/models/workflowexecutionrequest.md b/docs/models/workflowexecutionrequest.md index 6b24d3743..a51b1a88c 100644 --- a/docs/models/workflowexecutionrequest.md +++ b/docs/models/workflowexecutionrequest.md @@ -11,6 +11,7 @@ | `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. | +| `traceparent` | *OptionalNullable[str]* | :heavy_minus_sign: | W3C trace context to join this execution to the caller's trace. Ignored when force_new_trace is set. | | `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/models/workflowexecutionresponse.md b/docs/models/workflowexecutionresponse.md index 225d01513..3a691fe95 100644 --- a/docs/models/workflowexecutionresponse.md +++ b/docs/models/workflowexecutionresponse.md @@ -18,4 +18,4 @@ | `end_time` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The end time of the workflow execution, if available | | `total_duration_ms` | *OptionalNullable[int]* | :heavy_minus_sign: | The total duration of the trace in milliseconds | | `result` | *Nullable[Any]* | :heavy_check_mark: | The result of the workflow execution, if available | -| `search_keys` | Dict[str, *str*] | :heavy_minus_sign: | The execution's search keys (metadata), if requested via include_search_keys. | \ No newline at end of file +| `search_keys` | Dict[str, *Nullable[str]*] | :heavy_minus_sign: | The execution's search keys (metadata), if requested via include_search_keys. | \ No newline at end of file diff --git a/docs/models/workflowexecutionstartedresponse.md b/docs/models/workflowexecutionstartedresponse.md index 16de8e588..26a946753 100644 --- a/docs/models/workflowexecutionstartedresponse.md +++ b/docs/models/workflowexecutionstartedresponse.md @@ -7,17 +7,18 @@ This is the first event in any workflow execution lifecycle. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | -| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | -| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | -| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | -| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | -| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run. | -| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | -| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | -| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | -| `event_type` | *Optional[Literal["WORKFLOW_EXECUTION_STARTED"]]* | :heavy_minus_sign: | Event type discriminator. | -| `attributes` | [models.WorkflowExecutionStartedAttributesResponse](../models/workflowexecutionstartedattributesresponse.md) | :heavy_check_mark: | Attributes for workflow execution started events. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | +| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | +| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | +| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | +| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | +| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value. | +| `chain_run_id` | *Nullable[str]* | :heavy_check_mark: | Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value. | +| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | +| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | +| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | +| `event_type` | *Optional[Literal["WORKFLOW_EXECUTION_STARTED"]]* | :heavy_minus_sign: | Event type discriminator. | +| `attributes` | [models.WorkflowExecutionStartedAttributesResponse](../models/workflowexecutionstartedattributesresponse.md) | :heavy_check_mark: | Attributes for workflow execution started events. | \ No newline at end of file diff --git a/docs/models/workflowexecutiontraceeventsresponse.md b/docs/models/workflowexecutiontraceeventsresponse.md index bfaf782b0..257825b33 100644 --- a/docs/models/workflowexecutiontraceeventsresponse.md +++ b/docs/models/workflowexecutiontraceeventsresponse.md @@ -18,5 +18,5 @@ | `end_time` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The end time of the workflow execution, if available | | `total_duration_ms` | *OptionalNullable[int]* | :heavy_minus_sign: | The total duration of the trace in milliseconds | | `result` | *Nullable[Any]* | :heavy_check_mark: | The result of the workflow execution, if available | -| `search_keys` | Dict[str, *str*] | :heavy_minus_sign: | The execution's search keys (metadata), if requested via include_search_keys. | +| `search_keys` | Dict[str, *Nullable[str]*] | :heavy_minus_sign: | The execution's search keys (metadata), if requested via include_search_keys. | | `events` | List[[models.WorkflowExecutionTraceEventsResponseEvent](../models/workflowexecutiontraceeventsresponseevent.md)] | :heavy_minus_sign: | The events of the workflow execution | \ No newline at end of file diff --git a/docs/models/workflowexecutiontraceotelresponse.md b/docs/models/workflowexecutiontraceotelresponse.md index 92aca09d7..71f9a7721 100644 --- a/docs/models/workflowexecutiontraceotelresponse.md +++ b/docs/models/workflowexecutiontraceotelresponse.md @@ -18,7 +18,7 @@ | `end_time` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The end time of the workflow execution, if available | | `total_duration_ms` | *OptionalNullable[int]* | :heavy_minus_sign: | The total duration of the trace in milliseconds | | `result` | *Nullable[Any]* | :heavy_check_mark: | The result of the workflow execution, if available | -| `search_keys` | Dict[str, *str*] | :heavy_minus_sign: | The execution's search keys (metadata), if requested via include_search_keys. | +| `search_keys` | Dict[str, *Nullable[str]*] | :heavy_minus_sign: | The execution's search keys (metadata), if requested via include_search_keys. | | `data_source` | *str* | :heavy_check_mark: | The data source of the trace | | `otel_trace_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID of the trace | | `otel_trace_data` | [OptionalNullable[models.TempoGetTraceResponse]](../models/tempogettraceresponse.md) | :heavy_minus_sign: | The raw OpenTelemetry trace data | \ No newline at end of file diff --git a/docs/models/workflowexecutiontracesummaryresponse.md b/docs/models/workflowexecutiontracesummaryresponse.md index a1adfbea1..7a8e08772 100644 --- a/docs/models/workflowexecutiontracesummaryresponse.md +++ b/docs/models/workflowexecutiontracesummaryresponse.md @@ -18,5 +18,5 @@ | `end_time` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The end time of the workflow execution, if available | | `total_duration_ms` | *OptionalNullable[int]* | :heavy_minus_sign: | The total duration of the trace in milliseconds | | `result` | *Nullable[Any]* | :heavy_check_mark: | The result of the workflow execution, if available | -| `search_keys` | Dict[str, *str*] | :heavy_minus_sign: | The execution's search keys (metadata), if requested via include_search_keys. | +| `search_keys` | Dict[str, *Nullable[str]*] | :heavy_minus_sign: | The execution's search keys (metadata), if requested via include_search_keys. | | `span_tree` | [OptionalNullable[models.WorkflowExecutionTraceSummarySpan]](../models/workflowexecutiontracesummaryspan.md) | :heavy_minus_sign: | The root span of the trace | \ No newline at end of file diff --git a/docs/models/workflowtaskfailedresponse.md b/docs/models/workflowtaskfailedresponse.md index 31b2d47a8..215cf9f7b 100644 --- a/docs/models/workflowtaskfailedresponse.md +++ b/docs/models/workflowtaskfailedresponse.md @@ -8,17 +8,18 @@ which may trigger a retry depending on configuration. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | -| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | -| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | -| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | -| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | -| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run. | -| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | -| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | -| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | -| `event_type` | *Optional[Literal["WORKFLOW_TASK_FAILED"]]* | :heavy_minus_sign: | Event type discriminator. | -| `attributes` | [models.WorkflowTaskFailedAttributes](../models/workflowtaskfailedattributes.md) | :heavy_check_mark: | Attributes for workflow task failed events. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | +| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | +| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | +| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | +| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | +| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value. | +| `chain_run_id` | *Nullable[str]* | :heavy_check_mark: | Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value. | +| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | +| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | +| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | +| `event_type` | *Optional[Literal["WORKFLOW_TASK_FAILED"]]* | :heavy_minus_sign: | Event type discriminator. | +| `attributes` | [models.WorkflowTaskFailedAttributes](../models/workflowtaskfailedattributes.md) | :heavy_check_mark: | Attributes for workflow task failed events. | \ No newline at end of file diff --git a/docs/models/workflowtasktimedoutresponse.md b/docs/models/workflowtasktimedoutresponse.md index ecaf631ab..6922f70a6 100644 --- a/docs/models/workflowtasktimedoutresponse.md +++ b/docs/models/workflowtasktimedoutresponse.md @@ -8,17 +8,18 @@ its configured timeout. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | -| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | -| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | -| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | -| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | -| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run. | -| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | -| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | -| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | -| `event_type` | *Optional[Literal["WORKFLOW_TASK_TIMED_OUT"]]* | :heavy_minus_sign: | Event type discriminator. | -| `attributes` | [models.WorkflowTaskTimedOutAttributes](../models/workflowtasktimedoutattributes.md) | :heavy_check_mark: | Attributes for workflow task timed out events. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event_id` | *str* | :heavy_check_mark: | Unique identifier for this event instance. | +| `event_timestamp` | *int* | :heavy_check_mark: | Unix timestamp in nanoseconds when the event was created. | +| `root_workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the root workflow that initiated this execution chain. | +| `parent_workflow_exec_id` | *Nullable[str]* | :heavy_check_mark: | Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set. | +| `continued_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the execution this run continued from. Non-null for continue-as-new runs. | +| `first_execution_run_id` | *Nullable[str]* | :heavy_check_mark: | Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value. | +| `chain_run_id` | *Nullable[str]* | :heavy_check_mark: | Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value. | +| `schedule_id` | *Nullable[str]* | :heavy_check_mark: | Temporal schedule ID that triggered this execution, if any. | +| `workflow_exec_id` | *str* | :heavy_check_mark: | Execution ID of the workflow that emitted this event. | +| `workflow_run_id` | *str* | :heavy_check_mark: | Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow that emitted this event. | +| `event_type` | *Optional[Literal["WORKFLOW_TASK_TIMED_OUT"]]* | :heavy_minus_sign: | Event type discriminator. | +| `attributes` | [models.WorkflowTaskTimedOutAttributes](../models/workflowtasktimedoutattributes.md) | :heavy_check_mark: | Attributes for workflow task timed out events. | \ No newline at end of file diff --git a/docs/sdks/evaluations/README.md b/docs/sdks/evaluations/README.md index 20e831edc..7ecdb5701 100644 --- a/docs/sdks/evaluations/README.md +++ b/docs/sdks/evaluations/README.md @@ -26,10 +26,11 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.observability.evaluations.create_pipeline_config(pipeline_kind="judge", selectors=[], definition={ - "model": "Golf", - "prompt": "", - }, name="", enabled=True) + res = mistral.beta.observability.evaluations.create_pipeline_config(name="", pipeline_kind="judge", selectors=[], definitions=[ + { + "model": "mistral-moderation-latest", + }, + ], enabled=True) # Handle response print(res) @@ -38,17 +39,15 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `pipeline_kind` | [models.PipelineKind](../../models/pipelinekind.md) | :heavy_check_mark: | N/A | -| `selectors` | List[[models.PipelineConfigSelector](../../models/pipelineconfigselector.md)] | :heavy_check_mark: | N/A | -| `definition` | [models.PipelineConfigDefinition](../../models/pipelineconfigdefinition.md) | :heavy_check_mark: | N/A | -| `name` | *str* | :heavy_check_mark: | N/A | -| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `slug` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `group` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `enabled` | *Optional[bool]* | :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 | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `name` | *str* | :heavy_check_mark: | N/A | +| `pipeline_kind` | [models.PipelineKind](../../models/pipelinekind.md) | :heavy_check_mark: | N/A | +| `selectors` | List[[models.PipelineConfigSelector](../../models/pipelineconfigselector.md)] | :heavy_check_mark: | N/A | +| `definitions` | List[[models.PipelineConfigDefinition](../../models/pipelineconfigdefinition.md)] | :heavy_check_mark: | N/A | +| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `enabled` | *Optional[bool]* | :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 @@ -89,7 +88,6 @@ with Mistral( | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `pipeline_kind` | [OptionalNullable[models.PipelineKind]](../../models/pipelinekind.md) | :heavy_minus_sign: | N/A | -| `group` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `enabled` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | | `page` | *Optional[int]* | :heavy_minus_sign: | N/A | @@ -164,13 +162,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.observability.evaluations.update_pipeline_config(pipeline_config_id="4ee75abd-cccd-4232-9858-0c535465bfd5", pipeline_kind="detection", selectors=[], definition={ - "destination": { - "protocol": "", - "endpoint": "", - "insecure": False, - }, - }, name="", enabled=True) + res = mistral.beta.observability.evaluations.update_pipeline_config(pipeline_config_id="4ee75abd-cccd-4232-9858-0c535465bfd5", name="", pipeline_kind="detection", selectors=[], definitions=[], enabled=True) # Handle response print(res) @@ -179,18 +171,16 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `pipeline_config_id` | *str* | :heavy_check_mark: | N/A | -| `pipeline_kind` | [models.PipelineKind](../../models/pipelinekind.md) | :heavy_check_mark: | N/A | -| `selectors` | List[[models.PipelineConfigSelector](../../models/pipelineconfigselector.md)] | :heavy_check_mark: | N/A | -| `definition` | [models.PipelineConfigDefinition](../../models/pipelineconfigdefinition.md) | :heavy_check_mark: | N/A | -| `name` | *str* | :heavy_check_mark: | N/A | -| `enabled` | *bool* | :heavy_check_mark: | N/A | -| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `slug` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `group` | *OptionalNullable[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 | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `pipeline_config_id` | *str* | :heavy_check_mark: | N/A | +| `name` | *str* | :heavy_check_mark: | N/A | +| `pipeline_kind` | [models.PipelineKind](../../models/pipelinekind.md) | :heavy_check_mark: | N/A | +| `selectors` | List[[models.PipelineConfigSelector](../../models/pipelineconfigselector.md)] | :heavy_check_mark: | N/A | +| `definitions` | List[[models.PipelineConfigDefinition](../../models/pipelineconfigdefinition.md)] | :heavy_check_mark: | N/A | +| `enabled` | *bool* | :heavy_check_mark: | N/A | +| `description` | *OptionalNullable[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 diff --git a/docs/sdks/events/README.md b/docs/sdks/events/README.md index de6b43fcb..f162606b9 100644 --- a/docs/sdks/events/README.md +++ b/docs/sdks/events/README.md @@ -9,7 +9,9 @@ ## get_stream_events -Get Stream Events +Stream workflow events as Server-Sent Events (SSE). + +One of `root_workflow_exec_id`, `parent_workflow_exec_id` or `workflow_exec_id` is required. ### Example Usage diff --git a/docs/sdks/managedindexes/README.md b/docs/sdks/managedindexes/README.md new file mode 100644 index 000000000..17f835081 --- /dev/null +++ b/docs/sdks/managedindexes/README.md @@ -0,0 +1,366 @@ +# Beta.Rag.ManagedIndexes + +## Overview + +### Available Operations + +* [create](#create) - Create a managed index +* [list](#list) - List managed indexes +* [get](#get) - Get a managed index +* [update](#update) - Update a managed index schema +* [delete](#delete) - Delete a managed index +* [ingest_documents](#ingest_documents) - Ingest documents into a managed index +* [delete_documents](#delete_documents) - Delete documents from a managed index +* [search](#search) - Search a managed index + +## create + +Reserves a managed search index and starts asynchronous backing-table provisioning. Poll the returned Location until status is ready or failed. + +### Example Usage + + +```python +from mistralai.client import Mistral, models +import os + + +with Mistral( + api_key=os.getenv("MISTRAL_API_KEY", ""), +) as mistral: + + res = mistral.beta.rag.managed_indexes.create(name="", config=models.ManagedIndexConfig( + embedding=models.CustomEmbeddingModel( + name="", + dimensions=543021, + ), + )) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `name` | *str* | :heavy_check_mark: | N/A | +| `config` | [models.ManagedIndexConfig](../../models/managedindexconfig.md) | :heavy_check_mark: | N/A | +| `schema_` | [Optional[models.ManagedIndexFields]](../../models/managedindexfields.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 + +**[models.CreateIndexV1RagManagedIndexesPostResponse](../../models/createindexv1ragmanagedindexespostresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## list + +Lists all managed search indexes for the current workspace. + +### 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.managed_indexes.list(page_size=20) + + while res is not None: + # Handle items + + res = res.next() + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | Maximum number of indexes to return | +| `page_token` | *OptionalNullable[str]* | :heavy_minus_sign: | Cursor returned as next_page_token by the previous page | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + +### Response + +**[models.ListIndexesV1RagManagedIndexesGetResponse](../../models/listindexesv1ragmanagedindexesgetresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## get + +Returns the managed search index with the given name. + +### 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.managed_indexes.get(index_name="") + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `index_name` | *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.ManagedIndexResponse](../../models/managedindexresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## update + +Records a new schema for the managed search index and applies it asynchronously. The index keeps serving its current schema until the new one is on disk; poll it until status is ready. Additive only: the new schema must keep every field the current one has. + +### 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.managed_indexes.update(index_name="", schema={}) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `index_name` | *str* | :heavy_check_mark: | N/A | +| `schema_` | [models.ManagedIndexFields](../../models/managedindexfields.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.ManagedIndexResponse](../../models/managedindexresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## delete + +Marks the managed search index for deletion and returns it with status deleting. The backing table is dropped asynchronously; poll the index until it returns 404. + +### 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.managed_indexes.delete(index_name="") + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `index_name` | *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.DeleteManagedIndexResponse](../../models/deletemanagedindexresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## ingest_documents + +Validates and persists documents. Always returns 200; each document is reported as accepted or rejected in the response body. + +### 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.managed_indexes.ingest_documents(index_name="", documents=[ + { + "key": "", + }, + { + "key": "", + "key1": "", + "key2": "", + }, + ]) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `index_name` | *str* | :heavy_check_mark: | N/A | +| `documents` | List[Dict[str, *Any*]] | :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.IngestDocumentsResponse](../../models/ingestdocumentsresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## delete_documents + +Deletes the given documents by id. Returns the ids actually removed and, in `missing`, any requested ids that were not present. + +### 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.managed_indexes.delete_documents(index_name="", document_ids=[]) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `index_name` | *str* | :heavy_check_mark: | N/A | +| `document_ids` | List[*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.DeleteDocumentsResponse](../../models/deletedocumentsresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## search + +Runs an approximate-nearest-neighbor vector search over the index and returns matching chunks, closest-first. + +### Example Usage + + +```python +from mistralai.client import Mistral, models +import os + + +with Mistral( + api_key=os.getenv("MISTRAL_API_KEY", ""), +) as mistral: + + res = mistral.beta.rag.managed_indexes.search(index_name="", retriever=models.NearestNeighbourRetriever( + top_k=20, + )) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `index_name` | *str* | :heavy_check_mark: | N/A | +| `retriever` | [models.Retriever](../../models/retriever.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.SearchResponse](../../models/searchresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/serviceaccounts/README.md b/docs/sdks/serviceaccounts/README.md index bb5321b98..170cc4960 100644 --- a/docs/sdks/serviceaccounts/README.md +++ b/docs/sdks/serviceaccounts/README.md @@ -15,7 +15,7 @@ ## create -Create a service account in a workspace. Requires the `create_service_account` permission. +Create a service account in a workspace. Requires the Workspace admin (`workspace_admin`) role. ### Example Usage @@ -43,6 +43,7 @@ with Mistral( | `name` | *str* | :heavy_check_mark: | N/A | | `workspace_id` | *str* | :heavy_check_mark: | N/A | | `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `role_ids` | 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 @@ -58,9 +59,11 @@ with Mistral( ## list -List the service accounts in a workspace. +List the service accounts in a workspace, or across the organization. -Requires the `see_all_workspace_service_accounts` permission. +Scoped to a workspace, this requires the Workspace admin (`workspace_admin`) role on +it. Omitting the workspace lists the whole organization and requires the Organization +admin (`organization_admin`) role instead. ### Example Usage @@ -74,7 +77,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.service_accounts.list(workspace_id="96e67917-4b94-4dc0-b61a-bd713aa8a4e6", offset=251948, limit=234499, include_deleted=False) + res = mistral.beta.service_accounts.list(offset=251948, limit=234499, workspace_id="96e67917-4b94-4dc0-b61a-bd713aa8a4e6", include_deleted=False) while res is not None: # Handle items @@ -87,9 +90,9 @@ with Mistral( | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `workspace_id` | *str* | :heavy_check_mark: | N/A | | `offset` | *int* | :heavy_check_mark: | N/A | | `limit` | *int* | :heavy_check_mark: | N/A | +| `workspace_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `include_deleted` | *Optional[bool]* | :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. | @@ -108,7 +111,7 @@ with Mistral( List the workspace roles that can be assigned to a service account. -Requires the `see_all_workspace_service_accounts` permission. +Requires the Workspace admin (`workspace_admin`) role. ### Example Usage @@ -151,7 +154,7 @@ with Mistral( Retrieve a service account. -Requires the `see_all_workspace_service_accounts` permission. +Requires the Workspace admin (`workspace_admin`) role. ### Example Usage @@ -194,7 +197,7 @@ with Mistral( Update a service account. -Requires the `manage_any_workspace_service_account` permission. +Requires the Workspace admin (`workspace_admin`) role. ### Example Usage @@ -238,7 +241,7 @@ with Mistral( Delete a service account. -Requires the `manage_any_workspace_service_account` permission. +Requires the Workspace admin (`workspace_admin`) role. ### Example Usage @@ -276,7 +279,7 @@ with Mistral( Replace the workspace roles assigned to a service account. -Requires the `manage_any_workspace_service_account` permission. +Requires the Workspace admin (`workspace_admin`) role. ### Example Usage @@ -320,7 +323,7 @@ with Mistral( List the workspace roles assigned to a service account. -Requires the `see_all_workspace_service_accounts` permission. +Requires the Workspace admin (`workspace_admin`) role. ### Example Usage diff --git a/docs/sdks/voices/README.md b/docs/sdks/voices/README.md index 4460111c9..9e9705b52 100644 --- a/docs/sdks/voices/README.md +++ b/docs/sdks/voices/README.md @@ -4,16 +4,18 @@ ### Available Operations -* [list](#list) - List all voices +* [~~list~~](#list) - List all voices :warning: **Deprecated** * [create](#create) - Create a new voice * [delete](#delete) - Delete a custom voice * [update](#update) - Update voice metadata * [get](#get) - Get voice details * [get_sample_audio](#get_sample_audio) - Get voice sample audio -## list +## ~~list~~ -List all voices (excluding sample data) +Offset pagination will not be supported anymore. Use GET /v2/audio/voices instead. + +> :warning: **DEPRECATED**: Offset pagination will not be supported anymore. Use GET /v2/audio/voices instead.. ### Example Usage diff --git a/docs/sdks/workflows/README.md b/docs/sdks/workflows/README.md index fe7ede066..4792615c3 100644 --- a/docs/sdks/workflows/README.md +++ b/docs/sdks/workflows/README.md @@ -154,6 +154,7 @@ with Mistral( | `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. | +| `traceparent` | *OptionalNullable[str]* | :heavy_minus_sign: | W3C trace context to join this execution to the caller's trace. Ignored when force_new_trace is set. | | `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 | @@ -206,6 +207,7 @@ with Mistral( | `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. | +| `traceparent` | *OptionalNullable[str]* | :heavy_minus_sign: | W3C trace context to join this execution to the caller's trace. Ignored when force_new_trace is set. | | `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/docs/sdks/workflowsevents/README.md b/docs/sdks/workflowsevents/README.md index 3915eb249..a498da1e3 100644 --- a/docs/sdks/workflowsevents/README.md +++ b/docs/sdks/workflowsevents/README.md @@ -9,7 +9,9 @@ ## get_stream_events -Get Stream Events +Stream workflow events as Server-Sent Events (SSE). + +One of `root_workflow_exec_id`, `parent_workflow_exec_id` or `workflow_exec_id` is required. ### Example Usage diff --git a/pylintrc b/pylintrc index 5dc51f74a..8f51ceb74 100644 --- a/pylintrc +++ b/pylintrc @@ -188,7 +188,9 @@ good-names=i, Run, _, e, + gt, id, + lt, n, op, q, diff --git a/pyproject.toml b/pyproject.toml index a9a7cedec..2f76b3a58 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mistralai" -version = "2.10.0" +version = "2.10.1" description = "Python Client SDK for the Mistral AI API." authors = [{ name = "Mistral" }] requires-python = ">=3.10" diff --git a/src/mistralai/client/_hooks/traceparent.py b/src/mistralai/client/_hooks/traceparent.py index f500789e3..8446e82a5 100644 --- a/src/mistralai/client/_hooks/traceparent.py +++ b/src/mistralai/client/_hooks/traceparent.py @@ -1,5 +1,6 @@ +import json import random -from typing import Dict, Union +from typing import Any, Dict, Optional, Union import httpx from opentelemetry.propagate import inject @@ -26,8 +27,31 @@ def _is_sampled(traceparent: str) -> bool: return False +def _json_body(request: httpx.Request) -> Optional[Dict[str, Any]]: + if "application/json" not in request.headers.get("content-type", ""): + return None + try: + body = json.loads(request.content) + except (json.JSONDecodeError, UnicodeDecodeError): + return None + return body if isinstance(body, dict) else None + + +def _sampled_traceparent() -> str: + carrier: Dict[str, str] = {} + inject(carrier) + traceparent = carrier.get("traceparent", "") + if _is_sampled(traceparent): + return traceparent + return f"00-{random.getrandbits(128):032x}-{random.getrandbits(64):016x}-01" + + class TraceparentInjectionHook(BeforeRequestHook): - """Inject a sampled traceparent on /execute requests so worker traces are always recorded.""" + """Send a sampled traceparent on /execute requests so worker traces are always recorded. + + Sent in both the request body and the header. The body param is authoritative; the header is + kept for API versions that predate it. + """ def before_request( self, hook_ctx: BeforeRequestContext, request: httpx.Request @@ -35,17 +59,26 @@ def before_request( if hook_ctx.operation_id not in _EXECUTE_OPERATION_IDS: return request - # Don't overwrite an explicitly provided traceparent. - if "traceparent" in request.headers: + body = _json_body(request) + caller_traceparent = (body or {}).get("traceparent") or request.headers.get( + "traceparent" + ) + traceparent = caller_traceparent or _sampled_traceparent() + + request.headers["traceparent"] = traceparent + + if body is None or body.get("traceparent"): return request - carrier: Dict[str, str] = {} - inject(carrier) - traceparent = carrier.get("traceparent", "") - if not _is_sampled(traceparent): - trace_id = random.getrandbits(128) - span_id = random.getrandbits(64) - traceparent = f"00-{trace_id:032x}-{span_id:016x}-01" + body["traceparent"] = traceparent + content = json.dumps(body).encode("utf-8") + headers = httpx.Headers(request.headers) + headers["content-length"] = str(len(content)) - request.headers["traceparent"] = traceparent - return request + return httpx.Request( + method=request.method, + url=request.url, + headers=headers, + content=content, + extensions=request.extensions, + ) diff --git a/src/mistralai/client/_version.py b/src/mistralai/client/_version.py index a1ad910c6..d0c2346d1 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.10.0" +__version__: str = "2.10.1" __openapi_doc_version__: str = "1.0.0" -__gen_version__: str = "2.933.0" -__user_agent__: str = "speakeasy-sdk/python 2.10.0 2.933.0 1.0.0 mistralai" +__gen_version__: str = "2.935.1" +__user_agent__: str = "speakeasy-sdk/python 2.10.1 2.935.1 1.0.0 mistralai" try: if __package__ is not None: diff --git a/src/mistralai/client/evaluations.py b/src/mistralai/client/evaluations.py index 5c499ea08..efa9b77b6 100644 --- a/src/mistralai/client/evaluations.py +++ b/src/mistralai/client/evaluations.py @@ -14,18 +14,17 @@ class Evaluations(BaseSDK): def create_pipeline_config( self, *, + name: str, pipeline_kind: models.PipelineKind, selectors: Union[ Iterable[models.PipelineConfigSelector], Iterable[models.PipelineConfigSelectorTypedDict], ], - definition: Union[ - models.PipelineConfigDefinition, models.PipelineConfigDefinitionTypedDict + definitions: Union[ + Iterable[models.PipelineConfigDefinition], + Iterable[models.PipelineConfigDefinitionTypedDict], ], - name: str, description: OptionalNullable[str] = UNSET, - slug: OptionalNullable[str] = UNSET, - group: OptionalNullable[str] = UNSET, enabled: Optional[bool] = True, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -34,13 +33,11 @@ def create_pipeline_config( ) -> models.PipelineConfig: r"""Create a worker pipeline configuration + :param name: :param pipeline_kind: :param selectors: - :param definition: - :param name: + :param definitions: :param description: - :param slug: - :param group: :param enabled: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -61,17 +58,15 @@ def create_pipeline_config( base_url = self._get_url(base_url, url_variables) request = models.CreatePipelineConfigRequest( + name=name, pipeline_kind=pipeline_kind, description=description, selectors=utils.get_pydantic_model( selectors, List[models.PipelineConfigSelector] ), - slug=slug, - group=group, - definition=utils.get_pydantic_model( - definition, models.PipelineConfigDefinition + definitions=utils.get_pydantic_model( + definitions, List[models.PipelineConfigDefinition] ), - name=name, enabled=enabled, ) @@ -142,18 +137,17 @@ def create_pipeline_config( async def create_pipeline_config_async( self, *, + name: str, pipeline_kind: models.PipelineKind, selectors: Union[ Iterable[models.PipelineConfigSelector], Iterable[models.PipelineConfigSelectorTypedDict], ], - definition: Union[ - models.PipelineConfigDefinition, models.PipelineConfigDefinitionTypedDict + definitions: Union[ + Iterable[models.PipelineConfigDefinition], + Iterable[models.PipelineConfigDefinitionTypedDict], ], - name: str, description: OptionalNullable[str] = UNSET, - slug: OptionalNullable[str] = UNSET, - group: OptionalNullable[str] = UNSET, enabled: Optional[bool] = True, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -162,13 +156,11 @@ async def create_pipeline_config_async( ) -> models.PipelineConfig: r"""Create a worker pipeline configuration + :param name: :param pipeline_kind: :param selectors: - :param definition: - :param name: + :param definitions: :param description: - :param slug: - :param group: :param enabled: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -189,17 +181,15 @@ async def create_pipeline_config_async( base_url = self._get_url(base_url, url_variables) request = models.CreatePipelineConfigRequest( + name=name, pipeline_kind=pipeline_kind, description=description, selectors=utils.get_pydantic_model( selectors, List[models.PipelineConfigSelector] ), - slug=slug, - group=group, - definition=utils.get_pydantic_model( - definition, models.PipelineConfigDefinition + definitions=utils.get_pydantic_model( + definitions, List[models.PipelineConfigDefinition] ), - name=name, enabled=enabled, ) @@ -271,7 +261,6 @@ def list_pipeline_configs( self, *, pipeline_kind: OptionalNullable[models.PipelineKind] = UNSET, - group: OptionalNullable[str] = UNSET, enabled: OptionalNullable[bool] = UNSET, page_size: Optional[int] = 50, page: Optional[int] = 1, @@ -284,7 +273,6 @@ def list_pipeline_configs( r"""List worker pipeline configurations :param pipeline_kind: - :param group: :param enabled: :param page_size: :param page: @@ -309,7 +297,6 @@ def list_pipeline_configs( request = models.ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequest( pipeline_kind=pipeline_kind, - group=group, enabled=enabled, page_size=page_size, page=page, @@ -381,7 +368,6 @@ async def list_pipeline_configs_async( self, *, pipeline_kind: OptionalNullable[models.PipelineKind] = UNSET, - group: OptionalNullable[str] = UNSET, enabled: OptionalNullable[bool] = UNSET, page_size: Optional[int] = 50, page: Optional[int] = 1, @@ -394,7 +380,6 @@ async def list_pipeline_configs_async( r"""List worker pipeline configurations :param pipeline_kind: - :param group: :param enabled: :param page_size: :param page: @@ -419,7 +404,6 @@ async def list_pipeline_configs_async( request = models.ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequest( pipeline_kind=pipeline_kind, - group=group, enabled=enabled, page_size=page_size, page=page, @@ -681,19 +665,18 @@ def update_pipeline_config( self, *, pipeline_config_id: str, + name: str, pipeline_kind: models.PipelineKind, selectors: Union[ Iterable[models.PipelineConfigSelector], Iterable[models.PipelineConfigSelectorTypedDict], ], - definition: Union[ - models.PipelineConfigDefinition, models.PipelineConfigDefinitionTypedDict + definitions: Union[ + Iterable[models.PipelineConfigDefinition], + Iterable[models.PipelineConfigDefinitionTypedDict], ], - name: str, enabled: bool, description: OptionalNullable[str] = UNSET, - slug: OptionalNullable[str] = UNSET, - group: OptionalNullable[str] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -702,14 +685,12 @@ def update_pipeline_config( r"""Replace a worker pipeline configuration :param pipeline_config_id: + :param name: :param pipeline_kind: :param selectors: - :param definition: - :param name: + :param definitions: :param enabled: :param description: - :param slug: - :param 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 @@ -731,17 +712,15 @@ def update_pipeline_config( request = models.UpdatePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDPutRequest( pipeline_config_id=pipeline_config_id, update_pipeline_config_request=models.UpdatePipelineConfigRequest( + name=name, pipeline_kind=pipeline_kind, description=description, selectors=utils.get_pydantic_model( selectors, List[models.PipelineConfigSelector] ), - slug=slug, - group=group, - definition=utils.get_pydantic_model( - definition, models.PipelineConfigDefinition + definitions=utils.get_pydantic_model( + definitions, List[models.PipelineConfigDefinition] ), - name=name, enabled=enabled, ), ) @@ -818,19 +797,18 @@ async def update_pipeline_config_async( self, *, pipeline_config_id: str, + name: str, pipeline_kind: models.PipelineKind, selectors: Union[ Iterable[models.PipelineConfigSelector], Iterable[models.PipelineConfigSelectorTypedDict], ], - definition: Union[ - models.PipelineConfigDefinition, models.PipelineConfigDefinitionTypedDict + definitions: Union[ + Iterable[models.PipelineConfigDefinition], + Iterable[models.PipelineConfigDefinitionTypedDict], ], - name: str, enabled: bool, description: OptionalNullable[str] = UNSET, - slug: OptionalNullable[str] = UNSET, - group: OptionalNullable[str] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -839,14 +817,12 @@ async def update_pipeline_config_async( r"""Replace a worker pipeline configuration :param pipeline_config_id: + :param name: :param pipeline_kind: :param selectors: - :param definition: - :param name: + :param definitions: :param enabled: :param description: - :param slug: - :param 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 @@ -868,17 +844,15 @@ async def update_pipeline_config_async( request = models.UpdatePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDPutRequest( pipeline_config_id=pipeline_config_id, update_pipeline_config_request=models.UpdatePipelineConfigRequest( + name=name, pipeline_kind=pipeline_kind, description=description, selectors=utils.get_pydantic_model( selectors, List[models.PipelineConfigSelector] ), - slug=slug, - group=group, - definition=utils.get_pydantic_model( - definition, models.PipelineConfigDefinition + definitions=utils.get_pydantic_model( + definitions, List[models.PipelineConfigDefinition] ), - name=name, enabled=enabled, ), ) diff --git a/src/mistralai/client/events.py b/src/mistralai/client/events.py index 144b91e2c..65cabcc2c 100644 --- a/src/mistralai/client/events.py +++ b/src/mistralai/client/events.py @@ -37,6 +37,10 @@ def get_stream_events( ]: r"""Get Stream Events + Stream workflow events as Server-Sent Events (SSE). + + One of `root_workflow_exec_id`, `parent_workflow_exec_id` or `workflow_exec_id` is required. + :param scope: :param activity_name: :param activity_id: @@ -147,7 +151,7 @@ def get_stream_events( errors.HTTPValidationErrorData, http_res, http_res_text ) raise errors.HTTPValidationError(response_data, http_res, http_res_text) - if utils.match_response(http_res, "4XX", "*"): + if utils.match_response(http_res, ["400", "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", "*"): @@ -183,6 +187,10 @@ async def get_stream_events_async( ]: r"""Get Stream Events + Stream workflow events as Server-Sent Events (SSE). + + One of `root_workflow_exec_id`, `parent_workflow_exec_id` or `workflow_exec_id` is required. + :param scope: :param activity_name: :param activity_id: @@ -293,7 +301,7 @@ async def get_stream_events_async( errors.HTTPValidationErrorData, http_res, http_res_text ) raise errors.HTTPValidationError(response_data, http_res, http_res_text) - if utils.match_response(http_res, "4XX", "*"): + if utils.match_response(http_res, ["400", "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", "*"): diff --git a/src/mistralai/client/managed_indexes.py b/src/mistralai/client/managed_indexes.py new file mode 100644 index 000000000..9a7c08a7a --- /dev/null +++ b/src/mistralai/client/managed_indexes.py @@ -0,0 +1,1724 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 34d8140bd8fd + +from .basesdk import BaseSDK +from jsonpath import JSONPath +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 +from mistralai.client.utils.unmarshal_json_response import unmarshal_json_response +from typing import Any, Awaitable, Dict, Iterable, List, Mapping, Optional, Union + + +class ManagedIndexes(BaseSDK): + def create( + self, + *, + name: str, + config: Union[models.ManagedIndexConfig, models.ManagedIndexConfigTypedDict], + schema: Optional[ + Union[models.ManagedIndexFields, models.ManagedIndexFieldsTypedDict] + ] = None, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.CreateIndexV1RagManagedIndexesPostResponse: + r"""Create a managed index + + Reserves a managed search index and starts asynchronous backing-table provisioning. Poll the returned Location until status is ready or failed. + + :param name: + :param config: + :param schema_: + :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.CreateManagedIndexRequest( + name=name, + schema_=utils.get_pydantic_model( + schema, Optional[models.ManagedIndexFields] + ), + config=utils.get_pydantic_model(config, models.ManagedIndexConfig), + ) + + req = self._build_request( + method="POST", + path="/v1/rag/managed_indexes", + 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, False, False, "json", models.CreateManagedIndexRequest + ), + 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="create_index_v1_rag_managed_indexes_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + extensions=None, + ), + 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, "202", "application/json"): + return models.CreateIndexV1RagManagedIndexesPostResponse( + result=unmarshal_json_response(models.ManagedIndexResponse, http_res), + headers=utils.get_response_headers(http_res.headers), + ) + 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, ["409", "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 create_async( + self, + *, + name: str, + config: Union[models.ManagedIndexConfig, models.ManagedIndexConfigTypedDict], + schema: Optional[ + Union[models.ManagedIndexFields, models.ManagedIndexFieldsTypedDict] + ] = None, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.CreateIndexV1RagManagedIndexesPostResponse: + r"""Create a managed index + + Reserves a managed search index and starts asynchronous backing-table provisioning. Poll the returned Location until status is ready or failed. + + :param name: + :param config: + :param schema_: + :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.CreateManagedIndexRequest( + name=name, + schema_=utils.get_pydantic_model( + schema, Optional[models.ManagedIndexFields] + ), + config=utils.get_pydantic_model(config, models.ManagedIndexConfig), + ) + + req = self._build_request_async( + method="POST", + path="/v1/rag/managed_indexes", + 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, False, False, "json", models.CreateManagedIndexRequest + ), + 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="create_index_v1_rag_managed_indexes_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + extensions=None, + ), + 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, "202", "application/json"): + return models.CreateIndexV1RagManagedIndexesPostResponse( + result=unmarshal_json_response(models.ManagedIndexResponse, http_res), + headers=utils.get_response_headers(http_res.headers), + ) + 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, ["409", "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 list( + self, + *, + page_size: Optional[int] = 20, + page_token: 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, + ) -> Optional[models.ListIndexesV1RagManagedIndexesGetResponse]: + r"""List managed indexes + + Lists all managed search indexes for the current workspace. + + :param page_size: Maximum number of indexes to return + :param page_token: Cursor returned as next_page_token by the previous page + :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.ListIndexesV1RagManagedIndexesGetRequest( + page_size=page_size, + page_token=page_token, + ) + + req = self._build_request( + method="GET", + path="/v1/rag/managed_indexes", + base_url=base_url, + url_variables=url_variables, + request=request, + 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, + 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_indexes_v1_rag_managed_indexes_get", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + def next_func() -> Optional[models.ListIndexesV1RagManagedIndexesGetResponse]: + body = utils.unmarshal_json(http_res.text, Union[Dict[Any, Any], List[Any]]) + + next_cursor = JSONPath("$.next_page_token").parse(body) + + if len(next_cursor) == 0: + return None + + next_cursor = next_cursor[0] + if next_cursor is None or str(next_cursor).strip() == "": + return None + results = JSONPath("$.data").parse(body) + if len(results) == 0 or len(results[0]) == 0: + return None + limit_ = request.page_size if isinstance(request.page_size, int) else 20 + if len(results[0]) < limit_: + return None + + return self.list( + page_size=page_size, + page_token=next_cursor, + retries=retries, + server_url=server_url, + timeout_ms=timeout_ms, + http_headers=http_headers, + ) + + response_data: Any = None + if utils.match_response(http_res, "200", "application/json"): + return models.ListIndexesV1RagManagedIndexesGetResponse( + result=unmarshal_json_response( + models.ListManagedIndexesResponse, http_res + ), + next=next_func, + ) + 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_async( + self, + *, + page_size: Optional[int] = 20, + page_token: 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, + ) -> Optional[models.ListIndexesV1RagManagedIndexesGetResponse]: + r"""List managed indexes + + Lists all managed search indexes for the current workspace. + + :param page_size: Maximum number of indexes to return + :param page_token: Cursor returned as next_page_token by the previous page + :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.ListIndexesV1RagManagedIndexesGetRequest( + page_size=page_size, + page_token=page_token, + ) + + req = self._build_request_async( + method="GET", + path="/v1/rag/managed_indexes", + base_url=base_url, + url_variables=url_variables, + request=request, + 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, + 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_indexes_v1_rag_managed_indexes_get", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + def next_func() -> ( + Awaitable[Optional[models.ListIndexesV1RagManagedIndexesGetResponse]] + ): + body = utils.unmarshal_json(http_res.text, Union[Dict[Any, Any], List[Any]]) + + async def empty_result(): + return None + + next_cursor = JSONPath("$.next_page_token").parse(body) + + if len(next_cursor) == 0: + return empty_result() + + next_cursor = next_cursor[0] + if next_cursor is None or str(next_cursor).strip() == "": + return empty_result() + results = JSONPath("$.data").parse(body) + if len(results) == 0 or len(results[0]) == 0: + return empty_result() + limit_ = request.page_size if isinstance(request.page_size, int) else 20 + if len(results[0]) < limit_: + return empty_result() + + return self.list_async( + page_size=page_size, + page_token=next_cursor, + retries=retries, + server_url=server_url, + timeout_ms=timeout_ms, + http_headers=http_headers, + ) + + response_data: Any = None + if utils.match_response(http_res, "200", "application/json"): + return models.ListIndexesV1RagManagedIndexesGetResponse( + result=unmarshal_json_response( + models.ListManagedIndexesResponse, http_res + ), + next=next_func, + ) + 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( + self, + *, + index_name: str, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.ManagedIndexResponse: + r"""Get a managed index + + Returns the managed search index with the given name. + + :param index_name: + :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.GetIndexV1RagManagedIndexesIndexNameGetRequest( + index_name=index_name, + ) + + req = self._build_request( + method="GET", + path="/v1/rag/managed_indexes/{index_name}", + 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_v1_rag_managed_indexes__index_name__get", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + extensions=None, + ), + 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.ManagedIndexResponse, 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, ["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, "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_async( + self, + *, + index_name: str, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.ManagedIndexResponse: + r"""Get a managed index + + Returns the managed search index with the given name. + + :param index_name: + :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.GetIndexV1RagManagedIndexesIndexNameGetRequest( + index_name=index_name, + ) + + req = self._build_request_async( + method="GET", + path="/v1/rag/managed_indexes/{index_name}", + 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_v1_rag_managed_indexes__index_name__get", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + extensions=None, + ), + 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.ManagedIndexResponse, 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, ["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, "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 update( + self, + *, + index_name: str, + schema: Union[models.ManagedIndexFields, models.ManagedIndexFieldsTypedDict], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.ManagedIndexResponse: + r"""Update a managed index schema + + Records a new schema for the managed search index and applies it asynchronously. The index keeps serving its current schema until the new one is on disk; poll it until status is ready. Additive only: the new schema must keep every field the current one has. + + :param index_name: + :param schema_: + :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.UpdateIndexV1RagManagedIndexesIndexNamePutRequest( + index_name=index_name, + update_managed_index_request=models.UpdateManagedIndexRequest( + schema_=utils.get_pydantic_model(schema, models.ManagedIndexFields), + ), + ) + + req = self._build_request( + method="PUT", + path="/v1/rag/managed_indexes/{index_name}", + 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_managed_index_request, + False, + False, + "json", + models.UpdateManagedIndexRequest, + ), + 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="update_index_v1_rag_managed_indexes__index_name__put", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + if utils.match_response(http_res, "202", "application/json"): + return unmarshal_json_response(models.ManagedIndexResponse, http_res) + if utils.match_response(http_res, ["404", "409", "422", "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 update_async( + self, + *, + index_name: str, + schema: Union[models.ManagedIndexFields, models.ManagedIndexFieldsTypedDict], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.ManagedIndexResponse: + r"""Update a managed index schema + + Records a new schema for the managed search index and applies it asynchronously. The index keeps serving its current schema until the new one is on disk; poll it until status is ready. Additive only: the new schema must keep every field the current one has. + + :param index_name: + :param schema_: + :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.UpdateIndexV1RagManagedIndexesIndexNamePutRequest( + index_name=index_name, + update_managed_index_request=models.UpdateManagedIndexRequest( + schema_=utils.get_pydantic_model(schema, models.ManagedIndexFields), + ), + ) + + req = self._build_request_async( + method="PUT", + path="/v1/rag/managed_indexes/{index_name}", + 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_managed_index_request, + False, + False, + "json", + models.UpdateManagedIndexRequest, + ), + 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="update_index_v1_rag_managed_indexes__index_name__put", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + if utils.match_response(http_res, "202", "application/json"): + return unmarshal_json_response(models.ManagedIndexResponse, http_res) + if utils.match_response(http_res, ["404", "409", "422", "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 delete( + self, + *, + index_name: str, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.DeleteManagedIndexResponse: + r"""Delete a managed index + + Marks the managed search index for deletion and returns it with status deleting. The backing table is dropped asynchronously; poll the index until it returns 404. + + :param index_name: + :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.DeleteIndexV1RagManagedIndexesIndexNameDeleteRequest( + index_name=index_name, + ) + + req = self._build_request( + method="DELETE", + path="/v1/rag/managed_indexes/{index_name}", + 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="delete_index_v1_rag_managed_indexes__index_name__delete", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + extensions=None, + ), + 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, "202", "application/json"): + return unmarshal_json_response(models.DeleteManagedIndexResponse, 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, ["404", "409", "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 delete_async( + self, + *, + index_name: str, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.DeleteManagedIndexResponse: + r"""Delete a managed index + + Marks the managed search index for deletion and returns it with status deleting. The backing table is dropped asynchronously; poll the index until it returns 404. + + :param index_name: + :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.DeleteIndexV1RagManagedIndexesIndexNameDeleteRequest( + index_name=index_name, + ) + + req = self._build_request_async( + method="DELETE", + path="/v1/rag/managed_indexes/{index_name}", + 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="delete_index_v1_rag_managed_indexes__index_name__delete", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + extensions=None, + ), + 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, "202", "application/json"): + return unmarshal_json_response(models.DeleteManagedIndexResponse, 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, ["404", "409", "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 ingest_documents( + self, + *, + index_name: str, + documents: Iterable[Mapping[str, Any]], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.IngestDocumentsResponse: + r"""Ingest documents into a managed index + + Validates and persists documents. Always returns 200; each document is reported as accepted or rejected in the response body. + + :param index_name: + :param documents: + :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.IngestDocumentsV1RagManagedIndexesIndexNameDocumentsPostRequest( + index_name=index_name, + ingest_documents_request=models.IngestDocumentsRequest( + documents=utils.unmarshal(documents, List[Dict[str, Any]]), + ), + ) + ) + + req = self._build_request( + method="POST", + path="/v1/rag/managed_indexes/{index_name}/documents", + 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.ingest_documents_request, + False, + False, + "json", + models.IngestDocumentsRequest, + ), + 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="ingest_documents_v1_rag_managed_indexes__index_name__documents_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + extensions=None, + ), + 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.IngestDocumentsResponse, 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, ["404", "409", "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 ingest_documents_async( + self, + *, + index_name: str, + documents: Iterable[Mapping[str, Any]], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.IngestDocumentsResponse: + r"""Ingest documents into a managed index + + Validates and persists documents. Always returns 200; each document is reported as accepted or rejected in the response body. + + :param index_name: + :param documents: + :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.IngestDocumentsV1RagManagedIndexesIndexNameDocumentsPostRequest( + index_name=index_name, + ingest_documents_request=models.IngestDocumentsRequest( + documents=utils.unmarshal(documents, List[Dict[str, Any]]), + ), + ) + ) + + req = self._build_request_async( + method="POST", + path="/v1/rag/managed_indexes/{index_name}/documents", + 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.ingest_documents_request, + False, + False, + "json", + models.IngestDocumentsRequest, + ), + 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="ingest_documents_v1_rag_managed_indexes__index_name__documents_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + extensions=None, + ), + 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.IngestDocumentsResponse, 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, ["404", "409", "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 delete_documents( + self, + *, + index_name: str, + document_ids: Iterable[str], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.DeleteDocumentsResponse: + r"""Delete documents from a managed index + + Deletes the given documents by id. Returns the ids actually removed and, in `missing`, any requested ids that were not present. + + :param index_name: + :param document_ids: + :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.DeleteDocumentsV1RagManagedIndexesIndexNameDocumentsDeleteRequest( + index_name=index_name, + delete_documents_request=models.DeleteDocumentsRequest( + document_ids=utils.unmarshal(document_ids, List[str]), + ), + ) + ) + + req = self._build_request( + method="DELETE", + path="/v1/rag/managed_indexes/{index_name}/documents", + 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.delete_documents_request, + False, + False, + "json", + models.DeleteDocumentsRequest, + ), + 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="delete_documents_v1_rag_managed_indexes__index_name__documents_delete", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + extensions=None, + ), + 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.DeleteDocumentsResponse, 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, ["404", "409", "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 delete_documents_async( + self, + *, + index_name: str, + document_ids: Iterable[str], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.DeleteDocumentsResponse: + r"""Delete documents from a managed index + + Deletes the given documents by id. Returns the ids actually removed and, in `missing`, any requested ids that were not present. + + :param index_name: + :param document_ids: + :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.DeleteDocumentsV1RagManagedIndexesIndexNameDocumentsDeleteRequest( + index_name=index_name, + delete_documents_request=models.DeleteDocumentsRequest( + document_ids=utils.unmarshal(document_ids, List[str]), + ), + ) + ) + + req = self._build_request_async( + method="DELETE", + path="/v1/rag/managed_indexes/{index_name}/documents", + 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.delete_documents_request, + False, + False, + "json", + models.DeleteDocumentsRequest, + ), + 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="delete_documents_v1_rag_managed_indexes__index_name__documents_delete", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + extensions=None, + ), + 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.DeleteDocumentsResponse, 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, ["404", "409", "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( + self, + *, + index_name: str, + retriever: Union[models.Retriever, models.RetrieverTypedDict], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.SearchResponse: + r"""Search a managed index + + Runs an approximate-nearest-neighbor vector search over the index and returns matching chunks, closest-first. + + :param index_name: + :param retriever: + :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.SearchIndexV1RagManagedIndexesIndexNameSearchPostRequest( + index_name=index_name, + search_request=models.SearchRequest( + retriever=utils.get_pydantic_model(retriever, models.Retriever), + ), + ) + + req = self._build_request( + method="POST", + path="/v1/rag/managed_indexes/{index_name}/search", + 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.search_request, False, False, "json", models.SearchRequest + ), + 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="search_index_v1_rag_managed_indexes__index_name__search_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + extensions=None, + ), + 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.SearchResponse, 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", "404", "409", "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 search_async( + self, + *, + index_name: str, + retriever: Union[models.Retriever, models.RetrieverTypedDict], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.SearchResponse: + r"""Search a managed index + + Runs an approximate-nearest-neighbor vector search over the index and returns matching chunks, closest-first. + + :param index_name: + :param retriever: + :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.SearchIndexV1RagManagedIndexesIndexNameSearchPostRequest( + index_name=index_name, + search_request=models.SearchRequest( + retriever=utils.get_pydantic_model(retriever, models.Retriever), + ), + ) + + req = self._build_request_async( + method="POST", + path="/v1/rag/managed_indexes/{index_name}/search", + 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.search_request, False, False, "json", models.SearchRequest + ), + 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="search_index_v1_rag_managed_indexes__index_name__search_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + extensions=None, + ), + 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.SearchResponse, 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", "404", "409", "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/models/__init__.py b/src/mistralai/client/models/__init__.py index 6ebab0cb3..b5fe2ba56 100644 --- a/src/mistralai/client/models/__init__.py +++ b/src/mistralai/client/models/__init__.py @@ -1,6 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" # @generated-id: e0e8dad92725 +from .and_ import And, AndMatch, AndMatchTypedDict, AndTypedDict from .logicalexpression import ( Expression, ExpressionTypedDict, @@ -8,11 +9,17 @@ LogicalExpressionType, LogicalExpressionTypedDict, ) +from .not_ import Not, NotMatch, NotMatchTypedDict, NotTypedDict +from .or_ import Or, OrMatch, OrMatchTypedDict, OrTypedDict from typing import Any, TYPE_CHECKING from mistralai.client.utils.dynamic_imports import lazy_getattr, lazy_dir if TYPE_CHECKING: + from .accepteddocumentresponse import ( + AcceptedDocumentResponse, + AcceptedDocumentResponseTypedDict, + ) from .activitytaskcompletedattributesresponse import ( ActivityTaskCompletedAttributesResponse, ActivityTaskCompletedAttributesResponseTypedDict, @@ -266,6 +273,11 @@ BlobResourceContents, BlobResourceContentsTypedDict, ) + from .boolarrayfielddefinition import ( + BoolArrayFieldDefinition, + BoolArrayFieldDefinitionTypedDict, + ) + from .boolfielddefinition import BoolFieldDefinition, BoolFieldDefinitionTypedDict from .builtinconnectors import BuiltInConnectors from .cancel_workflow_execution_v1_workflows_executions_execution_id_cancel_postop import ( CancelWorkflowExecutionV1WorkflowsExecutionsExecutionIDCancelPostRequest, @@ -598,6 +610,10 @@ CreateDatasetRecordV1ObservabilityDatasetsDatasetIDRecordsPostRequest, CreateDatasetRecordV1ObservabilityDatasetsDatasetIDRecordsPostRequestTypedDict, ) + from .create_index_v1_rag_managed_indexes_postop import ( + CreateIndexV1RagManagedIndexesPostResponse, + CreateIndexV1RagManagedIndexesPostResponseTypedDict, + ) from .createagentrequest import ( CreateAgentRequest, CreateAgentRequestTool, @@ -649,6 +665,10 @@ CreateLibraryRequestTypedDict, OwnerType, ) + from .createmanagedindexrequest import ( + CreateManagedIndexRequest, + CreateManagedIndexRequestTypedDict, + ) from .createpipelineconfigrequest import ( CreatePipelineConfigRequest, CreatePipelineConfigRequestTypedDict, @@ -689,6 +709,10 @@ CustomConnectorTypedDict, UnknownAuthorization, ) + from .customembeddingmodel import ( + CustomEmbeddingModel, + CustomEmbeddingModelTypedDict, + ) from .customtaskcanceledattributes import ( CustomTaskCanceledAttributes, CustomTaskCanceledAttributesTypedDict, @@ -757,6 +781,14 @@ DeleteDeploymentV1WorkflowsDeploymentsNameDeleteRequest, DeleteDeploymentV1WorkflowsDeploymentsNameDeleteRequestTypedDict, ) + from .delete_documents_v1_rag_managed_indexes_index_name_documents_deleteop import ( + DeleteDocumentsV1RagManagedIndexesIndexNameDocumentsDeleteRequest, + DeleteDocumentsV1RagManagedIndexesIndexNameDocumentsDeleteRequestTypedDict, + ) + from .delete_index_v1_rag_managed_indexes_index_name_deleteop import ( + DeleteIndexV1RagManagedIndexesIndexNameDeleteRequest, + DeleteIndexV1RagManagedIndexesIndexNameDeleteRequestTypedDict, + ) from .delete_judge_v1_observability_judges_judge_id_deleteop import ( DeleteJudgeV1ObservabilityJudgesJudgeIDDeleteRequest, DeleteJudgeV1ObservabilityJudgesJudgeIDDeleteRequestTypedDict, @@ -785,7 +817,19 @@ DeleteDatasetRecordsRequest, DeleteDatasetRecordsRequestTypedDict, ) + from .deletedocumentsrequest import ( + DeleteDocumentsRequest, + DeleteDocumentsRequestTypedDict, + ) + from .deletedocumentsresponse import ( + DeleteDocumentsResponse, + DeleteDocumentsResponseTypedDict, + ) from .deletefileresponse import DeleteFileResponse, DeleteFileResponseTypedDict + from .deletemanagedindexresponse import ( + DeleteManagedIndexResponse, + DeleteManagedIndexResponseTypedDict, + ) from .deletemodelresponse import DeleteModelResponse, DeleteModelResponseTypedDict from .deletepromptresponse import ( DeletePromptResponse, @@ -798,6 +842,10 @@ DeltaMessageContentTypedDict, DeltaMessageTypedDict, ) + from .densevectorfielddefinition import ( + DenseVectorFieldDefinition, + DenseVectorFieldDefinitionTypedDict, + ) from .deploymentbuildstate import ( DeploymentBuildState, DeploymentBuildStateTypedDict, @@ -860,7 +908,14 @@ ) from .detectiondefinition import DetectionDefinition, DetectionDefinitionTypedDict from .detectionpattern import DetectionPattern, DetectionPatternTypedDict + from .distancemetric import DistanceMetric from .document import Document, DocumentTypedDict + from .documentfielderrorresponse import ( + DocumentFieldErrorResponse, + DocumentFieldErrorResponseTypedDict, + Location, + LocationTypedDict, + ) from .documentlibrarytool import DocumentLibraryTool, DocumentLibraryToolTypedDict from .documenttextcontent import DocumentTextContent, DocumentTextContentTypedDict from .documenturlchunk import DocumentURLChunk, DocumentURLChunkTypedDict @@ -890,6 +945,7 @@ from .encodingformat import EncodingFormat from .encryptedpatchvalue import EncryptedPatchValue, EncryptedPatchValueTypedDict from .entitytype import EntityType + from .equal import Equal, EqualTypedDict, EqualValue, EqualValueTypedDict from .eventprogressstatus import EventProgressStatus from .eventsource import EventSource from .eventtype import EventType @@ -987,6 +1043,14 @@ FineTunedModelCapabilities, FineTunedModelCapabilitiesTypedDict, ) + from .floatarrayfielddefinition import ( + FloatArrayFieldDefinition, + FloatArrayFieldDefinitionTypedDict, + ) + from .floatfielddefinition import ( + FloatFieldDefinition, + FloatFieldDefinitionTypedDict, + ) from .ftclassifierlossfunction import FTClassifierLossFunction from .ftmodelcard import FTModelCard, FTModelCardTypedDict from .function import Function, FunctionTypedDict @@ -1046,6 +1110,10 @@ GetDeploymentV1WorkflowsDeploymentsNameGetRequest, GetDeploymentV1WorkflowsDeploymentsNameGetRequestTypedDict, ) + from .get_index_v1_rag_managed_indexes_index_name_getop import ( + GetIndexV1RagManagedIndexesIndexNameGetRequest, + GetIndexV1RagManagedIndexesIndexNameGetRequestTypedDict, + ) from .get_judge_by_id_v1_observability_judges_judge_id_getop import ( GetJudgeByIDV1ObservabilityJudgesJudgeIDGetRequest, GetJudgeByIDV1ObservabilityJudgesJudgeIDGetRequestTypedDict, @@ -1264,7 +1332,23 @@ ImportDatasetFromPlaygroundRequest, ImportDatasetFromPlaygroundRequestTypedDict, ) + from .in_ import In, InTypedDict, InValue, InValueTypedDict from .inboundauthenticationtype import InboundAuthenticationType + from .ingest_documents_v1_rag_managed_indexes_index_name_documents_postop import ( + IngestDocumentsV1RagManagedIndexesIndexNameDocumentsPostRequest, + IngestDocumentsV1RagManagedIndexesIndexNameDocumentsPostRequestTypedDict, + ) + from .ingestdocumentsrequest import ( + IngestDocumentsRequest, + IngestDocumentsRequestTypedDict, + ) + from .ingestdocumentsresponse import ( + IngestDocumentsResponse, + IngestDocumentsResponseTypedDict, + Result, + ResultTypedDict, + UnknownResult, + ) from .ingestionpipelineconfiguration import ( IngestionPipelineConfiguration, IngestionPipelineConfigurationTypedDict, @@ -1281,6 +1365,11 @@ InstructRequestMessageTypedDict, InstructRequestTypedDict, ) + from .intarrayfielddefinition import ( + IntArrayFieldDefinition, + IntArrayFieldDefinitionTypedDict, + ) + from .intfielddefinition import IntFieldDefinition, IntFieldDefinitionTypedDict from .jobs_api_routes_batch_cancel_batch_jobop import ( JobsAPIRoutesBatchCancelBatchJobRequest, JobsAPIRoutesBatchCancelBatchJobRequestTypedDict, @@ -1313,6 +1402,7 @@ JobsAPIRoutesFineTuningUpdateFineTunedModelResponseTypedDict, UnknownJobsAPIRoutesFineTuningUpdateFineTunedModelResponse, ) + from .jsonfielddefinition import JSONFieldDefinition, JSONFieldDefinitionTypedDict from .jsonpatch import JSONPatch, JSONPatchTypedDict, UnknownJSONPatch from .jsonpatchadd import JSONPatchAdd, JSONPatchAddTypedDict from .jsonpatchappend import ( @@ -1371,6 +1461,20 @@ JudgeRegressionOutput, JudgeRegressionOutputTypedDict, ) + from .keywordarrayfielddefinition import ( + KeywordArrayFieldDefinition, + KeywordArrayFieldDefinitionTypedDict, + ) + from .keywordfielddefinition import ( + KeywordFieldDefinition, + KeywordFieldDefinitionTypedDict, + ) + from .keywordretriever import ( + KeywordRetriever, + KeywordRetrieverFilter, + KeywordRetrieverFilterTypedDict, + KeywordRetrieverTypedDict, + ) from .libraries_delete_v1op import ( LibrariesDeleteV1Request, LibrariesDeleteV1RequestTypedDict, @@ -1465,6 +1569,12 @@ ListDeploymentsV1WorkflowsDeploymentsGetRequest, ListDeploymentsV1WorkflowsDeploymentsGetRequestTypedDict, ) + from .list_indexes_v1_rag_managed_indexes_getop import ( + ListIndexesV1RagManagedIndexesGetRequest, + ListIndexesV1RagManagedIndexesGetRequestTypedDict, + ListIndexesV1RagManagedIndexesGetResponse, + ListIndexesV1RagManagedIndexesGetResponseTypedDict, + ) from .list_models_v1_models_getop import ( ListModelsV1ModelsGetRequest, ListModelsV1ModelsGetRequestTypedDict, @@ -1528,6 +1638,10 @@ ListLibrariesResponse, ListLibrariesResponseTypedDict, ) + from .listmanagedindexesresponse import ( + ListManagedIndexesResponse, + ListManagedIndexesResponseTypedDict, + ) from .listorganizationsresponse import ( ListOrganizationsResponse, ListOrganizationsResponseTypedDict, @@ -1565,10 +1679,37 @@ ) from .locationtype import LocationType from .logsrequest import LogsRequest, LogsRequestTypedDict, Order + from .longarrayfielddefinition import ( + LongArrayFieldDefinition, + LongArrayFieldDefinitionTypedDict, + ) + from .longfielddefinition import LongFieldDefinition, LongFieldDefinitionTypedDict from .manageddeploymentresponse import ( ManagedDeploymentResponse, ManagedDeploymentResponseTypedDict, ) + from .managedindexconfig import ( + Embedding, + EmbeddingTypedDict, + ManagedIndexConfig, + ManagedIndexConfigTypedDict, + UnknownEmbedding, + ) + from .managedindexfields import ( + ChunkFields, + ChunkFieldsTypedDict, + DocumentFields, + DocumentFieldsTypedDict, + ManagedIndexFields, + ManagedIndexFieldsTypedDict, + UnknownChunkFields, + UnknownDocumentFields, + ) + from .managedindexresponse import ( + ManagedIndexResponse, + ManagedIndexResponseTypedDict, + ) + from .managedindexstatus import ManagedIndexStatus from .mcpconnector import MCPConnector, MCPConnectorTypedDict from .mcpprompt import MCPPrompt, MCPPromptTypedDict from .mcpresource import MCPResource, MCPResourceTypedDict @@ -1634,6 +1775,10 @@ from .messagetokens import MessageTokens, MessageTokensTypedDict from .metricaggregation import MetricAggregation from .metricdefinition import MetricDefinition, MetricDefinitionTypedDict + from .mistralembeddingmodel import ( + MistralEmbeddingModel, + MistralEmbeddingModelTypedDict, + ) from .mistralpromptmode import MistralPromptMode from .modelcapabilities import ModelCapabilities, ModelCapabilitiesTypedDict from .modelconversation import ( @@ -1673,6 +1818,12 @@ ) from .moderationobject import ModerationObject, ModerationObjectTypedDict from .moderationresponse import ModerationResponse, ModerationResponseTypedDict + from .nearestneighbourretriever import ( + NearestNeighbourRetriever, + NearestNeighbourRetrieverFilter, + NearestNeighbourRetrieverFilterTypedDict, + NearestNeighbourRetrieverTypedDict, + ) from .networkencodedinput import NetworkEncodedInput, NetworkEncodedInputTypedDict from .noneauthmethod import NoneAuthMethod, NoneAuthMethodTypedDict from .oauth2authmethod import OAuth2AuthMethod, OAuth2AuthMethodTypedDict @@ -1898,6 +2049,18 @@ QueryWorkflowResponse, QueryWorkflowResponseTypedDict, ) + from .range import ( + Gt, + GtTypedDict, + Gte, + GteTypedDict, + Lt, + LtTypedDict, + Lte, + LteTypedDict, + Range, + RangeTypedDict, + ) from .realtimetranscriptionerror import ( RealtimeTranscriptionError, RealtimeTranscriptionErrorTypedDict, @@ -1971,6 +2134,10 @@ RegisterSearchIndexResponseIndexTypedDict, ) from .registrysharingscope import RegistrySharingScope + from .rejecteddocumentresponse import ( + RejectedDocumentResponse, + RejectedDocumentResponseTypedDict, + ) from .requestedservicetier import RequestedServiceTier from .requestsource import RequestSource from .reset_workflow_v1_workflows_executions_execution_id_reset_postop import ( @@ -2036,6 +2203,10 @@ from .schemafieldindex import SchemaFieldIndex from .schemafieldrankingtype import SchemaFieldRankingType from .schemafieldstorage import SchemaFieldStorage + from .search_index_v1_rag_managed_indexes_index_name_search_postop import ( + SearchIndexV1RagManagedIndexesIndexNameSearchPostRequest, + SearchIndexV1RagManagedIndexesIndexNameSearchPostRequestTypedDict, + ) from .search_latest_span_evaluations_v1_observability_spans_evaluations_search_latest_postop import ( SearchLatestSpanEvaluationsV1ObservabilitySpansEvaluationsSearchLatestPostRequest, SearchLatestSpanEvaluationsV1ObservabilitySpansEvaluationsSearchLatestPostRequestTypedDict, @@ -2056,6 +2227,15 @@ SearchTracesV1ObservabilityTracesSearchPostRequest, SearchTracesV1ObservabilityTracesSearchPostRequestTypedDict, ) + from .searchchunkresponse import SearchChunkResponse, SearchChunkResponseTypedDict + from .searchhitresponse import SearchHitResponse, SearchHitResponseTypedDict + from .searchrequest import ( + Retriever, + RetrieverTypedDict, + SearchRequest, + SearchRequestTypedDict, + ) + from .searchresponse import SearchResponse, SearchResponseTypedDict from .security import Security, SecurityTypedDict from .servercapabilities import ServerCapabilities, ServerCapabilitiesTypedDict from .serverlocale import ServerLocale, ServerLocaleTypedDict @@ -2287,8 +2467,13 @@ TerminateWorkflowExecutionV1WorkflowsExecutionsExecutionIDTerminatePostRequest, TerminateWorkflowExecutionV1WorkflowsExecutionsExecutionIDTerminatePostRequestTypedDict, ) + from .textarrayfielddefinition import ( + TextArrayFieldDefinition, + TextArrayFieldDefinitionTypedDict, + ) from .textchunk import TextChunk, TextChunkTypedDict from .textcontent import TextContent, TextContentTypedDict + from .textfielddefinition import TextFieldDefinition, TextFieldDefinitionTypedDict from .textresourcecontents import ( TextResourceContents, TextResourceContentsTypedDict, @@ -2303,6 +2488,14 @@ TimeSeriesMetricValue2, TimeSeriesMetricValue2TypedDict, ) + from .timestamparrayfielddefinition import ( + TimestampArrayFieldDefinition, + TimestampArrayFieldDefinitionTypedDict, + ) + from .timestampfielddefinition import ( + TimestampFieldDefinition, + TimestampFieldDefinitionTypedDict, + ) from .timestampgranularity import TimestampGranularity from .tool import Tool, ToolTypedDict from .toolannotations import ToolAnnotations, ToolAnnotationsTypedDict @@ -2448,6 +2641,10 @@ UpdateIndexMetricsV1RagDeploymentsDeploymentIDMetricsPutRequest, UpdateIndexMetricsV1RagDeploymentsDeploymentIDMetricsPutRequestTypedDict, ) + from .update_index_v1_rag_managed_indexes_index_name_putop import ( + UpdateIndexV1RagManagedIndexesIndexNamePutRequest, + UpdateIndexV1RagManagedIndexesIndexNamePutRequestTypedDict, + ) from .update_judge_v1_observability_judges_judge_id_putop import ( UpdateJudgeV1ObservabilityJudgesJudgeIDPutRequest, UpdateJudgeV1ObservabilityJudgesJudgeIDPutRequestTypedDict, @@ -2533,6 +2730,10 @@ UpdateLibraryRequest, UpdateLibraryRequestTypedDict, ) + from .updatemanagedindexrequest import ( + UpdateManagedIndexRequest, + UpdateManagedIndexRequestTypedDict, + ) from .updatemetricsrequestdeploymentmetricsoffline import ( UpdateMetricsRequestDeploymentMetricsOffline, UpdateMetricsRequestDeploymentMetricsOfflineTypedDict, @@ -2607,9 +2808,10 @@ ValidationError, ValidationErrorTypedDict, ) + from .vectordtype import VectorDType from .voicecreaterequest import VoiceCreateRequest, VoiceCreateRequestTypedDict from .voicelistresponse import VoiceListResponse, VoiceListResponseTypedDict - from .voiceresponse import VoiceResponse, VoiceResponseTypedDict + from .voiceresponse import VoiceResponse, VoiceResponseType, VoiceResponseTypedDict from .voiceupdaterequest import VoiceUpdateRequest, VoiceUpdateRequestTypedDict from .websearchpremiumtool import ( WebSearchPremiumTool, @@ -2826,12 +3028,17 @@ WorkflowWithWorkerStatusTypedDict, ) # Pydantic models with forward references LogicalExpression.model_rebuild() +And.model_rebuild() +Or.model_rebuild() +Not.model_rebuild() __all__ = [ "APIEndpoint", "APIKeyAuth", "APIKeyAuthTypedDict", + "AcceptedDocumentResponse", + "AcceptedDocumentResponseTypedDict", "ActivityTaskCompletedAttributesResponse", "ActivityTaskCompletedAttributesResponseTypedDict", "ActivityTaskCompletedResponse", @@ -2946,6 +3153,10 @@ "AggregationTypedDict", "AliasList", "AliasListTypedDict", + "And", + "AndMatch", + "AndMatchTypedDict", + "AndTypedDict", "Annotations", "AnnotationsTypedDict", "Answer", @@ -3012,6 +3223,10 @@ "BlockTypedDict", "Body", "BodyTypedDict", + "BoolArrayFieldDefinition", + "BoolArrayFieldDefinitionTypedDict", + "BoolFieldDefinition", + "BoolFieldDefinitionTypedDict", "BuiltInConnectors", "CancelWorkflowExecutionV1WorkflowsExecutionsExecutionIDCancelPostRequest", "CancelWorkflowExecutionV1WorkflowsExecutionsExecutionIDCancelPostRequestTypedDict", @@ -3050,6 +3265,8 @@ "ChatModerationRequestInputs3", "ChatModerationRequestInputs3TypedDict", "ChatModerationRequestTypedDict", + "ChunkFields", + "ChunkFieldsTypedDict", "ClassificationRequest", "ClassificationRequestInputs", "ClassificationRequestInputsTypedDict", @@ -3253,6 +3470,8 @@ "CreateHTTPConnectorRequestAuthMethod", "CreateHTTPConnectorRequestAuthMethodTypedDict", "CreateHTTPConnectorRequestTypedDict", + "CreateIndexV1RagManagedIndexesPostResponse", + "CreateIndexV1RagManagedIndexesPostResponseTypedDict", "CreateIngestionPipelineConfigurationRequest", "CreateIngestionPipelineConfigurationRequestTypedDict", "CreateJudgeRequest", @@ -3261,6 +3480,8 @@ "CreateJudgeRequestTypedDict", "CreateLibraryRequest", "CreateLibraryRequestTypedDict", + "CreateManagedIndexRequest", + "CreateManagedIndexRequestTypedDict", "CreatePipelineConfigRequest", "CreatePipelineConfigRequestTypedDict", "CreatePromptRequest", @@ -3290,6 +3511,8 @@ "CredentialsStatusTypedDict", "CustomConnector", "CustomConnectorTypedDict", + "CustomEmbeddingModel", + "CustomEmbeddingModelTypedDict", "CustomTaskCanceledAttributes", "CustomTaskCanceledAttributesTypedDict", "CustomTaskCanceledResponse", @@ -3333,10 +3556,20 @@ "DeleteDatasetV1ObservabilityDatasetsDatasetIDDeleteRequestTypedDict", "DeleteDeploymentV1WorkflowsDeploymentsNameDeleteRequest", "DeleteDeploymentV1WorkflowsDeploymentsNameDeleteRequestTypedDict", + "DeleteDocumentsRequest", + "DeleteDocumentsRequestTypedDict", + "DeleteDocumentsResponse", + "DeleteDocumentsResponseTypedDict", + "DeleteDocumentsV1RagManagedIndexesIndexNameDocumentsDeleteRequest", + "DeleteDocumentsV1RagManagedIndexesIndexNameDocumentsDeleteRequestTypedDict", "DeleteFileResponse", "DeleteFileResponseTypedDict", + "DeleteIndexV1RagManagedIndexesIndexNameDeleteRequest", + "DeleteIndexV1RagManagedIndexesIndexNameDeleteRequestTypedDict", "DeleteJudgeV1ObservabilityJudgesJudgeIDDeleteRequest", "DeleteJudgeV1ObservabilityJudgesJudgeIDDeleteRequestTypedDict", + "DeleteManagedIndexResponse", + "DeleteManagedIndexResponseTypedDict", "DeleteModelResponse", "DeleteModelResponseTypedDict", "DeleteModelV1ModelsModelIDDeleteRequest", @@ -3355,6 +3588,8 @@ "DeltaMessageContent", "DeltaMessageContentTypedDict", "DeltaMessageTypedDict", + "DenseVectorFieldDefinition", + "DenseVectorFieldDefinitionTypedDict", "DeploymentBuildState", "DeploymentBuildStateTypedDict", "DeploymentDetailResponse", @@ -3397,7 +3632,12 @@ "DetectionPattern", "DetectionPatternTypedDict", "Direction", + "DistanceMetric", "Document", + "DocumentFieldErrorResponse", + "DocumentFieldErrorResponseTypedDict", + "DocumentFields", + "DocumentFieldsTypedDict", "DocumentLibraryTool", "DocumentLibraryToolTypedDict", "DocumentTextContent", @@ -3413,6 +3653,7 @@ "ElicitationCapabilityTypedDict", "EmbeddedResource", "EmbeddedResourceTypedDict", + "Embedding", "EmbeddingDtype", "EmbeddingRequest", "EmbeddingRequestInputs", @@ -3422,6 +3663,7 @@ "EmbeddingResponseData", "EmbeddingResponseDataTypedDict", "EmbeddingResponseTypedDict", + "EmbeddingTypedDict", "EncodedPayloadOptions", "EncodingFormat", "EncryptedPatchValue", @@ -3429,6 +3671,10 @@ "EntityType", "Entry", "EntryTypedDict", + "Equal", + "EqualTypedDict", + "EqualValue", + "EqualValueTypedDict", "EventProgressStatus", "EventSource", "EventType", @@ -3500,6 +3746,10 @@ "FilesAPIRoutesUploadFileFileVisibility", "FineTunedModelCapabilities", "FineTunedModelCapabilitiesTypedDict", + "FloatArrayFieldDefinition", + "FloatArrayFieldDefinitionTypedDict", + "FloatFieldDefinition", + "FloatFieldDefinitionTypedDict", "Format", "Function", "FunctionCall", @@ -3549,6 +3799,8 @@ "GetDeploymentV1WorkflowsDeploymentsNameGetRequestTypedDict", "GetFileResponse", "GetFileResponseTypedDict", + "GetIndexV1RagManagedIndexesIndexNameGetRequest", + "GetIndexV1RagManagedIndexesIndexNameGetRequestTypedDict", "GetJudgeByIDV1ObservabilityJudgesJudgeIDGetRequest", "GetJudgeByIDV1ObservabilityJudgesJudgeIDGetRequestTypedDict", "GetJudgesV1ObservabilityJudgesGetRequest", @@ -3667,6 +3919,10 @@ "GlobalHeaderValue", "GlobalHeaderValueTypedDict", "Granularity", + "Gt", + "GtTypedDict", + "Gte", + "GteTypedDict", "GuardrailConfig", "GuardrailConfigTypedDict", "HTTPConnector", @@ -3689,7 +3945,17 @@ "ImportDatasetFromFileRequestTypedDict", "ImportDatasetFromPlaygroundRequest", "ImportDatasetFromPlaygroundRequestTypedDict", + "In", + "InTypedDict", + "InValue", + "InValueTypedDict", "InboundAuthenticationType", + "IngestDocumentsRequest", + "IngestDocumentsRequestTypedDict", + "IngestDocumentsResponse", + "IngestDocumentsResponseTypedDict", + "IngestDocumentsV1RagManagedIndexesIndexNameDocumentsPostRequest", + "IngestDocumentsV1RagManagedIndexesIndexNameDocumentsPostRequestTypedDict", "IngestionPipelineConfiguration", "IngestionPipelineConfigurationTypedDict", "IngestionPipelineTargetIndexRef", @@ -3702,6 +3968,12 @@ "InstructRequestMessage", "InstructRequestMessageTypedDict", "InstructRequestTypedDict", + "IntArrayFieldDefinition", + "IntArrayFieldDefinitionTypedDict", + "IntFieldDefinition", + "IntFieldDefinitionTypedDict", + "JSONFieldDefinition", + "JSONFieldDefinitionTypedDict", "JSONPatch", "JSONPatchAdd", "JSONPatchAddTypedDict", @@ -3762,6 +4034,14 @@ "JudgeRegressionOutput", "JudgeRegressionOutputTypedDict", "JudgeTypedDict", + "KeywordArrayFieldDefinition", + "KeywordArrayFieldDefinitionTypedDict", + "KeywordFieldDefinition", + "KeywordFieldDefinitionTypedDict", + "KeywordRetriever", + "KeywordRetrieverFilter", + "KeywordRetrieverFilterTypedDict", + "KeywordRetrieverTypedDict", "LibrariesDeleteV1Request", "LibrariesDeleteV1RequestTypedDict", "LibrariesDocumentsDeleteV1Request", @@ -3824,10 +4104,16 @@ "ListDocumentsResponseTypedDict", "ListFilesResponse", "ListFilesResponseTypedDict", + "ListIndexesV1RagManagedIndexesGetRequest", + "ListIndexesV1RagManagedIndexesGetRequestTypedDict", + "ListIndexesV1RagManagedIndexesGetResponse", + "ListIndexesV1RagManagedIndexesGetResponseTypedDict", "ListJudgesResponse", "ListJudgesResponseTypedDict", "ListLibrariesResponse", "ListLibrariesResponseTypedDict", + "ListManagedIndexesResponse", + "ListManagedIndexesResponseTypedDict", "ListModelsV1ModelsGetRequest", "ListModelsV1ModelsGetRequestTypedDict", "ListOrganizationsResponse", @@ -3874,12 +4160,22 @@ "ListWorkspacesResponseTypedDict", "Loc", "LocTypedDict", + "Location", "LocationType", + "LocationTypedDict", "LogicalExpression", "LogicalExpressionType", "LogicalExpressionTypedDict", "LogsRequest", "LogsRequestTypedDict", + "LongArrayFieldDefinition", + "LongArrayFieldDefinitionTypedDict", + "LongFieldDefinition", + "LongFieldDefinitionTypedDict", + "Lt", + "LtTypedDict", + "Lte", + "LteTypedDict", "MCPConnector", "MCPConnectorTypedDict", "MCPPrompt", @@ -3911,6 +4207,13 @@ "MCPUIToolMetaTypedDict", "ManagedDeploymentResponse", "ManagedDeploymentResponseTypedDict", + "ManagedIndexConfig", + "ManagedIndexConfigTypedDict", + "ManagedIndexFields", + "ManagedIndexFieldsTypedDict", + "ManagedIndexResponse", + "ManagedIndexResponseTypedDict", + "ManagedIndexStatus", "MessageEntries", "MessageEntriesTypedDict", "MessageInputContentChunks", @@ -3942,6 +4245,8 @@ "MetricValueTypedDict", "MetricsData", "MetricsDataTypedDict", + "MistralEmbeddingModel", + "MistralEmbeddingModelTypedDict", "MistralPromptMode", "ModelCapabilities", "ModelCapabilitiesTypedDict", @@ -3970,10 +4275,18 @@ "ModerationResponseTypedDict", "MultiPartBodyParams", "MultiPartBodyParamsTypedDict", + "NearestNeighbourRetriever", + "NearestNeighbourRetrieverFilter", + "NearestNeighbourRetrieverFilterTypedDict", + "NearestNeighbourRetrieverTypedDict", "NetworkEncodedInput", "NetworkEncodedInputTypedDict", "NoneAuthMethod", "NoneAuthMethodTypedDict", + "Not", + "NotMatch", + "NotMatchTypedDict", + "NotTypedDict", "OAuth2AuthMethod", "OAuth2AuthMethodTypedDict", "OAuth2AuthorizationCodeAuthMethod", @@ -4040,6 +4353,10 @@ "ObservabilityErrorCode", "ObservabilityErrorDetail", "ObservabilityErrorDetailTypedDict", + "Or", + "OrMatch", + "OrMatchTypedDict", + "OrTypedDict", "Order", "OrderByClause", "OrderByClauseTypedDict", @@ -4154,6 +4471,8 @@ "QueryWorkflowExecutionV1WorkflowsExecutionsExecutionIDQueriesPostRequestTypedDict", "QueryWorkflowResponse", "QueryWorkflowResponseTypedDict", + "Range", + "RangeTypedDict", "RawContent", "RawContentTypedDict", "RealtimeTranscriptionError", @@ -4197,6 +4516,8 @@ "RegisterSearchIndexResponseIndex", "RegisterSearchIndexResponseIndexTypedDict", "RegistrySharingScope", + "RejectedDocumentResponse", + "RejectedDocumentResponseTypedDict", "RequestSource", "RequestedServiceTier", "RequiresConfirmation", @@ -4235,10 +4556,14 @@ "ResponseV1ConversationsGetTypedDict", "RestartDeploymentV1WorkflowsDeploymentsNameRestartPostRequest", "RestartDeploymentV1WorkflowsDeploymentsNameRestartPostRequestTypedDict", + "Result", + "ResultTypedDict", "ResumeScheduleV1WorkflowsSchedulesScheduleIDResumePostRequest", "ResumeScheduleV1WorkflowsSchedulesScheduleIDResumePostRequestTypedDict", "RetrieveModelV1ModelsModelIDGetRequest", "RetrieveModelV1ModelsModelIDGetRequestTypedDict", + "Retriever", + "RetrieverTypedDict", "Role", "Roles", "RootsCapability", @@ -4273,10 +4598,20 @@ "SchemaFieldRankingType", "SchemaFieldStorage", "Scope", + "SearchChunkResponse", + "SearchChunkResponseTypedDict", + "SearchHitResponse", + "SearchHitResponseTypedDict", + "SearchIndexV1RagManagedIndexesIndexNameSearchPostRequest", + "SearchIndexV1RagManagedIndexesIndexNameSearchPostRequestTypedDict", "SearchLatestSpanEvaluationsV1ObservabilitySpansEvaluationsSearchLatestPostRequest", "SearchLatestSpanEvaluationsV1ObservabilitySpansEvaluationsSearchLatestPostRequestTypedDict", "SearchLogsV1ObservabilityLogsSearchPostRequest", "SearchLogsV1ObservabilityLogsSearchPostRequestTypedDict", + "SearchRequest", + "SearchRequestTypedDict", + "SearchResponse", + "SearchResponseTypedDict", "SearchSpanEvaluationsV1ObservabilitySpansEvaluationsSearchPostRequest", "SearchSpanEvaluationsV1ObservabilitySpansEvaluationsSearchPostRequestTypedDict", "SearchSpansV1ObservabilitySpansSearchPostRequest", @@ -4456,10 +4791,14 @@ "TempoTraceSpanTypedDict", "TerminateWorkflowExecutionV1WorkflowsExecutionsExecutionIDTerminatePostRequest", "TerminateWorkflowExecutionV1WorkflowsExecutionsExecutionIDTerminatePostRequestTypedDict", + "TextArrayFieldDefinition", + "TextArrayFieldDefinitionTypedDict", "TextChunk", "TextChunkTypedDict", "TextContent", "TextContentTypedDict", + "TextFieldDefinition", + "TextFieldDefinitionTypedDict", "TextResourceContents", "TextResourceContentsTypedDict", "ThinkChunk", @@ -4474,6 +4813,10 @@ "TimeSeriesMetricValue1TypedDict", "TimeSeriesMetricValue2", "TimeSeriesMetricValue2TypedDict", + "TimestampArrayFieldDefinition", + "TimestampArrayFieldDefinitionTypedDict", + "TimestampFieldDefinition", + "TimestampFieldDefinitionTypedDict", "TimestampGranularity", "Tool", "ToolAnnotations", @@ -4562,11 +4905,14 @@ "UnknownAgentTool", "UnknownAuthorization", "UnknownBlock", + "UnknownChunkFields", "UnknownConnector", "UnknownConnectorToolCallResponseContent", "UnknownContentChunk", "UnknownConversationEventsData", "UnknownDeploymentWorkerSpecResponseBackendSpec", + "UnknownDocumentFields", + "UnknownEmbedding", "UnknownGetDeploymentSummariesResponseDeploymentDeployment", "UnknownJSONPatch", "UnknownJobsAPIRoutesFineTuningUpdateFineTunedModelResponse", @@ -4575,6 +4921,7 @@ "UnknownModelListData", "UnknownPayload", "UnknownResponseRetrieveModelV1ModelsModelIDGet", + "UnknownResult", "UnknownSpeechV1AudioSpeechPostData", "UnknownTranscriptionStreamEventsData", "UnregisterDeploymentV1RagDeploymentsDeploymentIDDeleteRequest", @@ -4613,6 +4960,8 @@ "UpdateHTTPConnectorRequestTypedDict", "UpdateIndexMetricsV1RagDeploymentsDeploymentIDMetricsPutRequest", "UpdateIndexMetricsV1RagDeploymentsDeploymentIDMetricsPutRequestTypedDict", + "UpdateIndexV1RagManagedIndexesIndexNamePutRequest", + "UpdateIndexV1RagManagedIndexesIndexNamePutRequestTypedDict", "UpdateInvocationBody", "UpdateInvocationBodyInput", "UpdateInvocationBodyInputTypedDict", @@ -4625,6 +4974,8 @@ "UpdateJudgeV1ObservabilityJudgesJudgeIDPutRequestTypedDict", "UpdateLibraryRequest", "UpdateLibraryRequestTypedDict", + "UpdateManagedIndexRequest", + "UpdateManagedIndexRequestTypedDict", "UpdateMetricsRequestDeploymentMetricsOffline", "UpdateMetricsRequestDeploymentMetricsOfflineTypedDict", "UpdateMetricsRequestDeploymentMetricsOnline", @@ -4699,12 +5050,14 @@ "UsersAPIListWorkspacesSecurityTypedDict", "ValidationError", "ValidationErrorTypedDict", + "VectorDType", "Visibility", "VoiceCreateRequest", "VoiceCreateRequestTypedDict", "VoiceListResponse", "VoiceListResponseTypedDict", "VoiceResponse", + "VoiceResponseType", "VoiceResponseTypedDict", "VoiceUpdateRequest", "VoiceUpdateRequestTypedDict", @@ -4833,6 +5186,8 @@ ] _dynamic_imports: dict[str, str] = { + "AcceptedDocumentResponse": ".accepteddocumentresponse", + "AcceptedDocumentResponseTypedDict": ".accepteddocumentresponse", "ActivityTaskCompletedAttributesResponse": ".activitytaskcompletedattributesresponse", "ActivityTaskCompletedAttributesResponseTypedDict": ".activitytaskcompletedattributesresponse", "ActivityTaskCompletedResponse": ".activitytaskcompletedresponse", @@ -5011,6 +5366,10 @@ "BearerAuthMethodTypedDict": ".bearerauthmethod", "BlobResourceContents": ".blobresourcecontents", "BlobResourceContentsTypedDict": ".blobresourcecontents", + "BoolArrayFieldDefinition": ".boolarrayfielddefinition", + "BoolArrayFieldDefinitionTypedDict": ".boolarrayfielddefinition", + "BoolFieldDefinition": ".boolfielddefinition", + "BoolFieldDefinitionTypedDict": ".boolfielddefinition", "BuiltInConnectors": ".builtinconnectors", "CancelWorkflowExecutionV1WorkflowsExecutionsExecutionIDCancelPostRequest": ".cancel_workflow_execution_v1_workflows_executions_execution_id_cancel_postop", "CancelWorkflowExecutionV1WorkflowsExecutionsExecutionIDCancelPostRequestTypedDict": ".cancel_workflow_execution_v1_workflows_executions_execution_id_cancel_postop", @@ -5235,6 +5594,8 @@ "BodyTypedDict": ".create_client_session_v1_client_sessions_postop", "CreateDatasetRecordV1ObservabilityDatasetsDatasetIDRecordsPostRequest": ".create_dataset_record_v1_observability_datasets_dataset_id_records_postop", "CreateDatasetRecordV1ObservabilityDatasetsDatasetIDRecordsPostRequestTypedDict": ".create_dataset_record_v1_observability_datasets_dataset_id_records_postop", + "CreateIndexV1RagManagedIndexesPostResponse": ".create_index_v1_rag_managed_indexes_postop", + "CreateIndexV1RagManagedIndexesPostResponseTypedDict": ".create_index_v1_rag_managed_indexes_postop", "CreateAgentRequest": ".createagentrequest", "CreateAgentRequestTool": ".createagentrequest", "CreateAgentRequestToolTypedDict": ".createagentrequest", @@ -5267,6 +5628,8 @@ "CreateLibraryRequest": ".createlibraryrequest", "CreateLibraryRequestTypedDict": ".createlibraryrequest", "OwnerType": ".createlibraryrequest", + "CreateManagedIndexRequest": ".createmanagedindexrequest", + "CreateManagedIndexRequestTypedDict": ".createmanagedindexrequest", "CreatePipelineConfigRequest": ".createpipelineconfigrequest", "CreatePipelineConfigRequestTypedDict": ".createpipelineconfigrequest", "CreatePromptRequest": ".createpromptrequest", @@ -5295,6 +5658,8 @@ "CustomConnector": ".customconnector", "CustomConnectorTypedDict": ".customconnector", "UnknownAuthorization": ".customconnector", + "CustomEmbeddingModel": ".customembeddingmodel", + "CustomEmbeddingModelTypedDict": ".customembeddingmodel", "CustomTaskCanceledAttributes": ".customtaskcanceledattributes", "CustomTaskCanceledAttributesTypedDict": ".customtaskcanceledattributes", "CustomTaskCanceledResponse": ".customtaskcanceledresponse", @@ -5337,6 +5702,10 @@ "DeleteDatasetV1ObservabilityDatasetsDatasetIDDeleteRequestTypedDict": ".delete_dataset_v1_observability_datasets_dataset_id_deleteop", "DeleteDeploymentV1WorkflowsDeploymentsNameDeleteRequest": ".delete_deployment_v1_workflows_deployments_name_deleteop", "DeleteDeploymentV1WorkflowsDeploymentsNameDeleteRequestTypedDict": ".delete_deployment_v1_workflows_deployments_name_deleteop", + "DeleteDocumentsV1RagManagedIndexesIndexNameDocumentsDeleteRequest": ".delete_documents_v1_rag_managed_indexes_index_name_documents_deleteop", + "DeleteDocumentsV1RagManagedIndexesIndexNameDocumentsDeleteRequestTypedDict": ".delete_documents_v1_rag_managed_indexes_index_name_documents_deleteop", + "DeleteIndexV1RagManagedIndexesIndexNameDeleteRequest": ".delete_index_v1_rag_managed_indexes_index_name_deleteop", + "DeleteIndexV1RagManagedIndexesIndexNameDeleteRequestTypedDict": ".delete_index_v1_rag_managed_indexes_index_name_deleteop", "DeleteJudgeV1ObservabilityJudgesJudgeIDDeleteRequest": ".delete_judge_v1_observability_judges_judge_id_deleteop", "DeleteJudgeV1ObservabilityJudgesJudgeIDDeleteRequestTypedDict": ".delete_judge_v1_observability_judges_judge_id_deleteop", "DeleteModelV1ModelsModelIDDeleteRequest": ".delete_model_v1_models_model_id_deleteop", @@ -5351,8 +5720,14 @@ "DeleteBatchJobResponseTypedDict": ".deletebatchjobresponse", "DeleteDatasetRecordsRequest": ".deletedatasetrecordsrequest", "DeleteDatasetRecordsRequestTypedDict": ".deletedatasetrecordsrequest", + "DeleteDocumentsRequest": ".deletedocumentsrequest", + "DeleteDocumentsRequestTypedDict": ".deletedocumentsrequest", + "DeleteDocumentsResponse": ".deletedocumentsresponse", + "DeleteDocumentsResponseTypedDict": ".deletedocumentsresponse", "DeleteFileResponse": ".deletefileresponse", "DeleteFileResponseTypedDict": ".deletefileresponse", + "DeleteManagedIndexResponse": ".deletemanagedindexresponse", + "DeleteManagedIndexResponseTypedDict": ".deletemanagedindexresponse", "DeleteModelResponse": ".deletemodelresponse", "DeleteModelResponseTypedDict": ".deletemodelresponse", "DeletePromptResponse": ".deletepromptresponse", @@ -5363,6 +5738,8 @@ "DeltaMessageContent": ".deltamessage", "DeltaMessageContentTypedDict": ".deltamessage", "DeltaMessageTypedDict": ".deltamessage", + "DenseVectorFieldDefinition": ".densevectorfielddefinition", + "DenseVectorFieldDefinitionTypedDict": ".densevectorfielddefinition", "DeploymentBuildState": ".deploymentbuildstate", "DeploymentBuildStateTypedDict": ".deploymentbuildstate", "DeploymentDetailResponse": ".deploymentdetailresponse", @@ -5404,8 +5781,13 @@ "DetectionDefinitionTypedDict": ".detectiondefinition", "DetectionPattern": ".detectionpattern", "DetectionPatternTypedDict": ".detectionpattern", + "DistanceMetric": ".distancemetric", "Document": ".document", "DocumentTypedDict": ".document", + "DocumentFieldErrorResponse": ".documentfielderrorresponse", + "DocumentFieldErrorResponseTypedDict": ".documentfielderrorresponse", + "Location": ".documentfielderrorresponse", + "LocationTypedDict": ".documentfielderrorresponse", "DocumentLibraryTool": ".documentlibrarytool", "DocumentLibraryToolTypedDict": ".documentlibrarytool", "DocumentTextContent": ".documenttextcontent", @@ -5432,6 +5814,10 @@ "EncryptedPatchValue": ".encryptedpatchvalue", "EncryptedPatchValueTypedDict": ".encryptedpatchvalue", "EntityType": ".entitytype", + "Equal": ".equal", + "EqualTypedDict": ".equal", + "EqualValue": ".equal", + "EqualValueTypedDict": ".equal", "EventProgressStatus": ".eventprogressstatus", "EventSource": ".eventsource", "EventType": ".eventtype", @@ -5504,6 +5890,10 @@ "FIMCompletionStreamRequestTypedDict": ".fimcompletionstreamrequest", "FineTunedModelCapabilities": ".finetunedmodelcapabilities", "FineTunedModelCapabilitiesTypedDict": ".finetunedmodelcapabilities", + "FloatArrayFieldDefinition": ".floatarrayfielddefinition", + "FloatArrayFieldDefinitionTypedDict": ".floatarrayfielddefinition", + "FloatFieldDefinition": ".floatfielddefinition", + "FloatFieldDefinitionTypedDict": ".floatfielddefinition", "FTClassifierLossFunction": ".ftclassifierlossfunction", "FTModelCard": ".ftmodelcard", "FTModelCardTypedDict": ".ftmodelcard", @@ -5544,6 +5934,8 @@ "GetDeploymentLogsRequestTypedDict": ".get_deployment_logsop", "GetDeploymentV1WorkflowsDeploymentsNameGetRequest": ".get_deployment_v1_workflows_deployments_name_getop", "GetDeploymentV1WorkflowsDeploymentsNameGetRequestTypedDict": ".get_deployment_v1_workflows_deployments_name_getop", + "GetIndexV1RagManagedIndexesIndexNameGetRequest": ".get_index_v1_rag_managed_indexes_index_name_getop", + "GetIndexV1RagManagedIndexesIndexNameGetRequestTypedDict": ".get_index_v1_rag_managed_indexes_index_name_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", @@ -5700,7 +6092,20 @@ "ImportDatasetFromFileRequestTypedDict": ".importdatasetfromfilerequest", "ImportDatasetFromPlaygroundRequest": ".importdatasetfromplaygroundrequest", "ImportDatasetFromPlaygroundRequestTypedDict": ".importdatasetfromplaygroundrequest", + "In": ".in_", + "InTypedDict": ".in_", + "InValue": ".in_", + "InValueTypedDict": ".in_", "InboundAuthenticationType": ".inboundauthenticationtype", + "IngestDocumentsV1RagManagedIndexesIndexNameDocumentsPostRequest": ".ingest_documents_v1_rag_managed_indexes_index_name_documents_postop", + "IngestDocumentsV1RagManagedIndexesIndexNameDocumentsPostRequestTypedDict": ".ingest_documents_v1_rag_managed_indexes_index_name_documents_postop", + "IngestDocumentsRequest": ".ingestdocumentsrequest", + "IngestDocumentsRequestTypedDict": ".ingestdocumentsrequest", + "IngestDocumentsResponse": ".ingestdocumentsresponse", + "IngestDocumentsResponseTypedDict": ".ingestdocumentsresponse", + "Result": ".ingestdocumentsresponse", + "ResultTypedDict": ".ingestdocumentsresponse", + "UnknownResult": ".ingestdocumentsresponse", "IngestionPipelineConfiguration": ".ingestionpipelineconfiguration", "IngestionPipelineConfigurationTypedDict": ".ingestionpipelineconfiguration", "IngestionPipelineTargetIndexRef": ".ingestionpipelinetargetindexref", @@ -5713,6 +6118,10 @@ "InstructRequestMessage": ".instructrequest", "InstructRequestMessageTypedDict": ".instructrequest", "InstructRequestTypedDict": ".instructrequest", + "IntArrayFieldDefinition": ".intarrayfielddefinition", + "IntArrayFieldDefinitionTypedDict": ".intarrayfielddefinition", + "IntFieldDefinition": ".intfielddefinition", + "IntFieldDefinitionTypedDict": ".intfielddefinition", "JobsAPIRoutesBatchCancelBatchJobRequest": ".jobs_api_routes_batch_cancel_batch_jobop", "JobsAPIRoutesBatchCancelBatchJobRequestTypedDict": ".jobs_api_routes_batch_cancel_batch_jobop", "JobsAPIRoutesBatchDeleteBatchJobRequest": ".jobs_api_routes_batch_delete_batch_jobop", @@ -5731,6 +6140,8 @@ "JobsAPIRoutesFineTuningUpdateFineTunedModelResponse": ".jobs_api_routes_fine_tuning_update_fine_tuned_modelop", "JobsAPIRoutesFineTuningUpdateFineTunedModelResponseTypedDict": ".jobs_api_routes_fine_tuning_update_fine_tuned_modelop", "UnknownJobsAPIRoutesFineTuningUpdateFineTunedModelResponse": ".jobs_api_routes_fine_tuning_update_fine_tuned_modelop", + "JSONFieldDefinition": ".jsonfielddefinition", + "JSONFieldDefinitionTypedDict": ".jsonfielddefinition", "JSONPatch": ".jsonpatch", "JSONPatchTypedDict": ".jsonpatch", "UnknownJSONPatch": ".jsonpatch", @@ -5778,6 +6189,14 @@ "JudgeOutputType": ".judgeoutputtype", "JudgeRegressionOutput": ".judgeregressionoutput", "JudgeRegressionOutputTypedDict": ".judgeregressionoutput", + "KeywordArrayFieldDefinition": ".keywordarrayfielddefinition", + "KeywordArrayFieldDefinitionTypedDict": ".keywordarrayfielddefinition", + "KeywordFieldDefinition": ".keywordfielddefinition", + "KeywordFieldDefinitionTypedDict": ".keywordfielddefinition", + "KeywordRetriever": ".keywordretriever", + "KeywordRetrieverFilter": ".keywordretriever", + "KeywordRetrieverFilterTypedDict": ".keywordretriever", + "KeywordRetrieverTypedDict": ".keywordretriever", "LibrariesDeleteV1Request": ".libraries_delete_v1op", "LibrariesDeleteV1RequestTypedDict": ".libraries_delete_v1op", "LibrariesDocumentsDeleteV1Request": ".libraries_documents_delete_v1op", @@ -5829,6 +6248,10 @@ "ListDeploymentsV1WorkflowsDeploymentsGetOrderBy": ".list_deployments_v1_workflows_deployments_getop", "ListDeploymentsV1WorkflowsDeploymentsGetRequest": ".list_deployments_v1_workflows_deployments_getop", "ListDeploymentsV1WorkflowsDeploymentsGetRequestTypedDict": ".list_deployments_v1_workflows_deployments_getop", + "ListIndexesV1RagManagedIndexesGetRequest": ".list_indexes_v1_rag_managed_indexes_getop", + "ListIndexesV1RagManagedIndexesGetRequestTypedDict": ".list_indexes_v1_rag_managed_indexes_getop", + "ListIndexesV1RagManagedIndexesGetResponse": ".list_indexes_v1_rag_managed_indexes_getop", + "ListIndexesV1RagManagedIndexesGetResponseTypedDict": ".list_indexes_v1_rag_managed_indexes_getop", "ListModelsV1ModelsGetRequest": ".list_models_v1_models_getop", "ListModelsV1ModelsGetRequestTypedDict": ".list_models_v1_models_getop", "ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequest": ".list_pipeline_configs_v1_observability_pipeline_configs_getop", @@ -5868,6 +6291,8 @@ "ListJudgesResponseTypedDict": ".listjudgesresponse", "ListLibrariesResponse": ".listlibrariesresponse", "ListLibrariesResponseTypedDict": ".listlibrariesresponse", + "ListManagedIndexesResponse": ".listmanagedindexesresponse", + "ListManagedIndexesResponseTypedDict": ".listmanagedindexesresponse", "ListOrganizationsResponse": ".listorganizationsresponse", "ListOrganizationsResponseTypedDict": ".listorganizationsresponse", "ListPromptsResponse": ".listpromptsresponse", @@ -5896,8 +6321,28 @@ "LogsRequest": ".logsrequest", "LogsRequestTypedDict": ".logsrequest", "Order": ".logsrequest", + "LongArrayFieldDefinition": ".longarrayfielddefinition", + "LongArrayFieldDefinitionTypedDict": ".longarrayfielddefinition", + "LongFieldDefinition": ".longfielddefinition", + "LongFieldDefinitionTypedDict": ".longfielddefinition", "ManagedDeploymentResponse": ".manageddeploymentresponse", "ManagedDeploymentResponseTypedDict": ".manageddeploymentresponse", + "Embedding": ".managedindexconfig", + "EmbeddingTypedDict": ".managedindexconfig", + "ManagedIndexConfig": ".managedindexconfig", + "ManagedIndexConfigTypedDict": ".managedindexconfig", + "UnknownEmbedding": ".managedindexconfig", + "ChunkFields": ".managedindexfields", + "ChunkFieldsTypedDict": ".managedindexfields", + "DocumentFields": ".managedindexfields", + "DocumentFieldsTypedDict": ".managedindexfields", + "ManagedIndexFields": ".managedindexfields", + "ManagedIndexFieldsTypedDict": ".managedindexfields", + "UnknownChunkFields": ".managedindexfields", + "UnknownDocumentFields": ".managedindexfields", + "ManagedIndexResponse": ".managedindexresponse", + "ManagedIndexResponseTypedDict": ".managedindexresponse", + "ManagedIndexStatus": ".managedindexstatus", "MCPConnector": ".mcpconnector", "MCPConnectorTypedDict": ".mcpconnector", "MCPPrompt": ".mcpprompt", @@ -5960,6 +6405,8 @@ "MetricAggregation": ".metricaggregation", "MetricDefinition": ".metricdefinition", "MetricDefinitionTypedDict": ".metricdefinition", + "MistralEmbeddingModel": ".mistralembeddingmodel", + "MistralEmbeddingModelTypedDict": ".mistralembeddingmodel", "MistralPromptMode": ".mistralpromptmode", "ModelCapabilities": ".modelcapabilities", "ModelCapabilitiesTypedDict": ".modelcapabilities", @@ -5988,6 +6435,10 @@ "ModerationObjectTypedDict": ".moderationobject", "ModerationResponse": ".moderationresponse", "ModerationResponseTypedDict": ".moderationresponse", + "NearestNeighbourRetriever": ".nearestneighbourretriever", + "NearestNeighbourRetrieverFilter": ".nearestneighbourretriever", + "NearestNeighbourRetrieverFilterTypedDict": ".nearestneighbourretriever", + "NearestNeighbourRetrieverTypedDict": ".nearestneighbourretriever", "NetworkEncodedInput": ".networkencodedinput", "NetworkEncodedInputTypedDict": ".networkencodedinput", "NoneAuthMethod": ".noneauthmethod", @@ -6182,6 +6633,16 @@ "QueryInvocationBodyTypedDict": ".queryinvocationbody", "QueryWorkflowResponse": ".queryworkflowresponse", "QueryWorkflowResponseTypedDict": ".queryworkflowresponse", + "Gt": ".range", + "GtTypedDict": ".range", + "Gte": ".range", + "GteTypedDict": ".range", + "Lt": ".range", + "LtTypedDict": ".range", + "Lte": ".range", + "LteTypedDict": ".range", + "Range": ".range", + "RangeTypedDict": ".range", "RealtimeTranscriptionError": ".realtimetranscriptionerror", "RealtimeTranscriptionErrorTypedDict": ".realtimetranscriptionerror", "RealtimeTranscriptionErrorDetail": ".realtimetranscriptionerrordetail", @@ -6223,6 +6684,8 @@ "RegisterSearchIndexResponseIndex": ".registersearchindexresponseindex", "RegisterSearchIndexResponseIndexTypedDict": ".registersearchindexresponseindex", "RegistrySharingScope": ".registrysharingscope", + "RejectedDocumentResponse": ".rejecteddocumentresponse", + "RejectedDocumentResponseTypedDict": ".rejecteddocumentresponse", "RequestedServiceTier": ".requestedservicetier", "RequestSource": ".requestsource", "ResetWorkflowV1WorkflowsExecutionsExecutionIDResetPostRequest": ".reset_workflow_v1_workflows_executions_execution_id_reset_postop", @@ -6283,6 +6746,8 @@ "SchemaFieldIndex": ".schemafieldindex", "SchemaFieldRankingType": ".schemafieldrankingtype", "SchemaFieldStorage": ".schemafieldstorage", + "SearchIndexV1RagManagedIndexesIndexNameSearchPostRequest": ".search_index_v1_rag_managed_indexes_index_name_search_postop", + "SearchIndexV1RagManagedIndexesIndexNameSearchPostRequestTypedDict": ".search_index_v1_rag_managed_indexes_index_name_search_postop", "SearchLatestSpanEvaluationsV1ObservabilitySpansEvaluationsSearchLatestPostRequest": ".search_latest_span_evaluations_v1_observability_spans_evaluations_search_latest_postop", "SearchLatestSpanEvaluationsV1ObservabilitySpansEvaluationsSearchLatestPostRequestTypedDict": ".search_latest_span_evaluations_v1_observability_spans_evaluations_search_latest_postop", "SearchLogsV1ObservabilityLogsSearchPostRequest": ".search_logs_v1_observability_logs_search_postop", @@ -6293,6 +6758,16 @@ "SearchSpansV1ObservabilitySpansSearchPostRequestTypedDict": ".search_spans_v1_observability_spans_search_postop", "SearchTracesV1ObservabilityTracesSearchPostRequest": ".search_traces_v1_observability_traces_search_postop", "SearchTracesV1ObservabilityTracesSearchPostRequestTypedDict": ".search_traces_v1_observability_traces_search_postop", + "SearchChunkResponse": ".searchchunkresponse", + "SearchChunkResponseTypedDict": ".searchchunkresponse", + "SearchHitResponse": ".searchhitresponse", + "SearchHitResponseTypedDict": ".searchhitresponse", + "Retriever": ".searchrequest", + "RetrieverTypedDict": ".searchrequest", + "SearchRequest": ".searchrequest", + "SearchRequestTypedDict": ".searchrequest", + "SearchResponse": ".searchresponse", + "SearchResponseTypedDict": ".searchresponse", "Security": ".security", "SecurityTypedDict": ".security", "ServerCapabilities": ".servercapabilities", @@ -6470,10 +6945,14 @@ "TempoTraceSpanTypedDict": ".tempotracespan", "TerminateWorkflowExecutionV1WorkflowsExecutionsExecutionIDTerminatePostRequest": ".terminate_workflow_execution_v1_workflows_executions_execution_id_terminate_postop", "TerminateWorkflowExecutionV1WorkflowsExecutionsExecutionIDTerminatePostRequestTypedDict": ".terminate_workflow_execution_v1_workflows_executions_execution_id_terminate_postop", + "TextArrayFieldDefinition": ".textarrayfielddefinition", + "TextArrayFieldDefinitionTypedDict": ".textarrayfielddefinition", "TextChunk": ".textchunk", "TextChunkTypedDict": ".textchunk", "TextContent": ".textcontent", "TextContentTypedDict": ".textcontent", + "TextFieldDefinition": ".textfielddefinition", + "TextFieldDefinitionTypedDict": ".textfielddefinition", "TextResourceContents": ".textresourcecontents", "TextResourceContentsTypedDict": ".textresourcecontents", "ThinkChunk": ".thinkchunk", @@ -6488,6 +6967,10 @@ "TimeSeriesMetricValue1TypedDict": ".timeseriesmetric", "TimeSeriesMetricValue2": ".timeseriesmetric", "TimeSeriesMetricValue2TypedDict": ".timeseriesmetric", + "TimestampArrayFieldDefinition": ".timestamparrayfielddefinition", + "TimestampArrayFieldDefinitionTypedDict": ".timestamparrayfielddefinition", + "TimestampFieldDefinition": ".timestampfielddefinition", + "TimestampFieldDefinitionTypedDict": ".timestampfielddefinition", "TimestampGranularity": ".timestampgranularity", "Tool": ".tool", "ToolTypedDict": ".tool", @@ -6594,6 +7077,8 @@ "MetricsDataTypedDict": ".update_index_metrics_v1_rag_deployments_deployment_id_metrics_putop", "UpdateIndexMetricsV1RagDeploymentsDeploymentIDMetricsPutRequest": ".update_index_metrics_v1_rag_deployments_deployment_id_metrics_putop", "UpdateIndexMetricsV1RagDeploymentsDeploymentIDMetricsPutRequestTypedDict": ".update_index_metrics_v1_rag_deployments_deployment_id_metrics_putop", + "UpdateIndexV1RagManagedIndexesIndexNamePutRequest": ".update_index_v1_rag_managed_indexes_index_name_putop", + "UpdateIndexV1RagManagedIndexesIndexNamePutRequestTypedDict": ".update_index_v1_rag_managed_indexes_index_name_putop", "UpdateJudgeV1ObservabilityJudgesJudgeIDPutRequest": ".update_judge_v1_observability_judges_judge_id_putop", "UpdateJudgeV1ObservabilityJudgesJudgeIDPutRequestTypedDict": ".update_judge_v1_observability_judges_judge_id_putop", "UpdatePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDPutRequest": ".update_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_putop", @@ -6644,6 +7129,8 @@ "UpdateJudgeRequestTypedDict": ".updatejudgerequest", "UpdateLibraryRequest": ".updatelibraryrequest", "UpdateLibraryRequestTypedDict": ".updatelibraryrequest", + "UpdateManagedIndexRequest": ".updatemanagedindexrequest", + "UpdateManagedIndexRequestTypedDict": ".updatemanagedindexrequest", "UpdateMetricsRequestDeploymentMetricsOffline": ".updatemetricsrequestdeploymentmetricsoffline", "UpdateMetricsRequestDeploymentMetricsOfflineTypedDict": ".updatemetricsrequestdeploymentmetricsoffline", "UpdateMetricsRequestDeploymentMetricsOnline": ".updatemetricsrequestdeploymentmetricsonline", @@ -6700,11 +7187,13 @@ "LocTypedDict": ".validationerror", "ValidationError": ".validationerror", "ValidationErrorTypedDict": ".validationerror", + "VectorDType": ".vectordtype", "VoiceCreateRequest": ".voicecreaterequest", "VoiceCreateRequestTypedDict": ".voicecreaterequest", "VoiceListResponse": ".voicelistresponse", "VoiceListResponseTypedDict": ".voicelistresponse", "VoiceResponse": ".voiceresponse", + "VoiceResponseType": ".voiceresponse", "VoiceResponseTypedDict": ".voiceresponse", "VoiceUpdateRequest": ".voiceupdaterequest", "VoiceUpdateRequestTypedDict": ".voiceupdaterequest", diff --git a/src/mistralai/client/models/accepteddocumentresponse.py b/src/mistralai/client/models/accepteddocumentresponse.py new file mode 100644 index 000000000..dc1b3e842 --- /dev/null +++ b/src/mistralai/client/models/accepteddocumentresponse.py @@ -0,0 +1,36 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: aae1b153b728 + +from __future__ import annotations +from mistralai.client.types import BaseModel +from mistralai.client.utils import validate_const +import pydantic +from pydantic.functional_validators import AfterValidator +from typing import Literal +from typing_extensions import Annotated, TypedDict + + +class AcceptedDocumentResponseTypedDict(TypedDict): + position: int + document_id: str + chunk_count: int + status: Literal["accepted"] + + +class AcceptedDocumentResponse(BaseModel): + position: int + + document_id: str + + chunk_count: int + + status: Annotated[ + Annotated[Literal["accepted"], AfterValidator(validate_const("accepted"))], + pydantic.Field(alias="status"), + ] = "accepted" + + +try: + AcceptedDocumentResponse.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/activitytaskcompletedresponse.py b/src/mistralai/client/models/activitytaskcompletedresponse.py index c6ec719aa..9c0b728bf 100644 --- a/src/mistralai/client/models/activitytaskcompletedresponse.py +++ b/src/mistralai/client/models/activitytaskcompletedresponse.py @@ -32,7 +32,9 @@ class ActivityTaskCompletedResponseTypedDict(TypedDict): continued_run_id: Nullable[str] r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str @@ -69,7 +71,10 @@ class ActivityTaskCompletedResponse(BaseModel): r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" @@ -103,6 +108,7 @@ def serialize_model(self, handler): "parent_workflow_exec_id", "continued_run_id", "first_execution_run_id", + "chain_run_id", "schedule_id", ] ) diff --git a/src/mistralai/client/models/activitytaskfailedresponse.py b/src/mistralai/client/models/activitytaskfailedresponse.py index 1bc09d0a5..485a41c29 100644 --- a/src/mistralai/client/models/activitytaskfailedresponse.py +++ b/src/mistralai/client/models/activitytaskfailedresponse.py @@ -32,7 +32,9 @@ class ActivityTaskFailedResponseTypedDict(TypedDict): continued_run_id: Nullable[str] r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str @@ -69,7 +71,10 @@ class ActivityTaskFailedResponse(BaseModel): r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" @@ -103,6 +108,7 @@ def serialize_model(self, handler): "parent_workflow_exec_id", "continued_run_id", "first_execution_run_id", + "chain_run_id", "schedule_id", ] ) diff --git a/src/mistralai/client/models/activitytaskretryingresponse.py b/src/mistralai/client/models/activitytaskretryingresponse.py index bf5533094..ba5cb11f6 100644 --- a/src/mistralai/client/models/activitytaskretryingresponse.py +++ b/src/mistralai/client/models/activitytaskretryingresponse.py @@ -32,7 +32,9 @@ class ActivityTaskRetryingResponseTypedDict(TypedDict): continued_run_id: Nullable[str] r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str @@ -69,7 +71,10 @@ class ActivityTaskRetryingResponse(BaseModel): r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" @@ -103,6 +108,7 @@ def serialize_model(self, handler): "parent_workflow_exec_id", "continued_run_id", "first_execution_run_id", + "chain_run_id", "schedule_id", ] ) diff --git a/src/mistralai/client/models/activitytaskstartedresponse.py b/src/mistralai/client/models/activitytaskstartedresponse.py index 103261577..ad47b76ad 100644 --- a/src/mistralai/client/models/activitytaskstartedresponse.py +++ b/src/mistralai/client/models/activitytaskstartedresponse.py @@ -33,7 +33,9 @@ class ActivityTaskStartedResponseTypedDict(TypedDict): continued_run_id: Nullable[str] r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str @@ -71,7 +73,10 @@ class ActivityTaskStartedResponse(BaseModel): r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" @@ -105,6 +110,7 @@ def serialize_model(self, handler): "parent_workflow_exec_id", "continued_run_id", "first_execution_run_id", + "chain_run_id", "schedule_id", ] ) diff --git a/src/mistralai/client/models/agent.py b/src/mistralai/client/models/agent.py index 36cb26bfc..25dc21d4e 100644 --- a/src/mistralai/client/models/agent.py +++ b/src/mistralai/client/models/agent.py @@ -108,6 +108,7 @@ class AgentTypedDict(TypedDict): handoffs: NotRequired[Nullable[List[str]]] metadata: NotRequired[Nullable[Dict[str, Any]]] object: Literal["agent"] + owner_id: NotRequired[Nullable[str]] version_message: NotRequired[Nullable[str]] @@ -152,6 +153,8 @@ class Agent(BaseModel): pydantic.Field(alias="object"), ] = "agent" + owner_id: OptionalNullable[str] = UNSET + version_message: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") @@ -166,6 +169,7 @@ def serialize_model(self, handler): "handoffs", "metadata", "object", + "owner_id", "version_message", ] ) @@ -176,6 +180,7 @@ def serialize_model(self, handler): "description", "handoffs", "metadata", + "owner_id", "version_message", ] ) diff --git a/src/mistralai/client/models/and_.py b/src/mistralai/client/models/and_.py new file mode 100644 index 000000000..40bf2330a --- /dev/null +++ b/src/mistralai/client/models/and_.py @@ -0,0 +1,60 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 801d950e3ce2 + +from __future__ import annotations +from .equal import Equal, EqualTypedDict +from .in_ import In, InTypedDict +from .range import Range, RangeTypedDict +from mistralai.client.types import BaseModel +from mistralai.client.utils import validate_const +import pydantic +from pydantic import Field +from pydantic.functional_validators import AfterValidator +from typing import List, Literal, TYPE_CHECKING, Union +from typing_extensions import Annotated, TypeAliasType, TypedDict + +if TYPE_CHECKING: + from .not_ import Not, NotTypedDict + from .or_ import Or, OrTypedDict + + +class AndTypedDict(TypedDict): + r"""Conjunction: rows must match every sub-filter.""" + + matches: List[AndMatchTypedDict] + type: Literal["and"] + + +class And(BaseModel): + r"""Conjunction: rows must match every sub-filter.""" + + matches: List[AndMatch] + + type: Annotated[ + Annotated[Literal["and"], AfterValidator(validate_const("and"))], + pydantic.Field(alias="type"), + ] = "and" + + +AndMatchTypedDict = TypeAliasType( + "AndMatchTypedDict", + Union[ + "AndTypedDict", + "OrTypedDict", + "NotTypedDict", + EqualTypedDict, + InTypedDict, + RangeTypedDict, + ], +) + + +AndMatch = Annotated[ + Union[And, Equal, In, "Not", "Or", Range], Field(discriminator="type") +] + + +try: + And.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/boolarrayfielddefinition.py b/src/mistralai/client/models/boolarrayfielddefinition.py new file mode 100644 index 000000000..255db6d7c --- /dev/null +++ b/src/mistralai/client/models/boolarrayfielddefinition.py @@ -0,0 +1,71 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 9312b5f95f8b + +from __future__ import annotations +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 Any, Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class BoolArrayFieldDefinitionTypedDict(TypedDict): + indexed: NotRequired[bool] + required: NotRequired[bool] + system: NotRequired[bool] + default: NotRequired[Nullable[Any]] + type: Literal["bool[]"] + + +class BoolArrayFieldDefinition(BaseModel): + indexed: Optional[bool] = False + + required: Optional[bool] = False + + system: Optional[bool] = False + + default: OptionalNullable[Any] = UNSET + + type: Annotated[ + Annotated[Literal["bool[]"], AfterValidator(validate_const("bool[]"))], + pydantic.Field(alias="type"), + ] = "bool[]" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["indexed", "required", "system", "default"]) + nullable_fields = set(["default"]) + 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: + BoolArrayFieldDefinition.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/boolfielddefinition.py b/src/mistralai/client/models/boolfielddefinition.py new file mode 100644 index 000000000..ab8fa0836 --- /dev/null +++ b/src/mistralai/client/models/boolfielddefinition.py @@ -0,0 +1,71 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 490d2f1de1fd + +from __future__ import annotations +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 Any, Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class BoolFieldDefinitionTypedDict(TypedDict): + indexed: NotRequired[bool] + required: NotRequired[bool] + system: NotRequired[bool] + default: NotRequired[Nullable[Any]] + type: Literal["bool"] + + +class BoolFieldDefinition(BaseModel): + indexed: Optional[bool] = False + + required: Optional[bool] = False + + system: Optional[bool] = False + + default: OptionalNullable[Any] = UNSET + + type: Annotated[ + Annotated[Literal["bool"], AfterValidator(validate_const("bool"))], + pydantic.Field(alias="type"), + ] = "bool" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["indexed", "required", "system", "default"]) + nullable_fields = set(["default"]) + 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: + BoolFieldDefinition.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/connectorsqueryfilters.py b/src/mistralai/client/models/connectorsqueryfilters.py index 860caf43e..e5bffe456 100644 --- a/src/mistralai/client/models/connectorsqueryfilters.py +++ b/src/mistralai/client/models/connectorsqueryfilters.py @@ -17,16 +17,21 @@ class ConnectorsQueryFiltersTypedDict(TypedDict): active: NotRequired[Nullable[bool]] r"""Filter for active connectors for a given user, workspace and organization.""" + supports_mcp: NotRequired[Nullable[bool]] + r"""Filter connectors by whether they expose an MCP-compatible tool interface.""" class ConnectorsQueryFilters(BaseModel): active: Annotated[OptionalNullable[bool], FieldMetadata(query=True)] = UNSET r"""Filter for active connectors for a given user, workspace and organization.""" + supports_mcp: Annotated[OptionalNullable[bool], FieldMetadata(query=True)] = UNSET + r"""Filter connectors by whether they expose an MCP-compatible tool interface.""" + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["active"]) - nullable_fields = set(["active"]) + optional_fields = set(["active", "supports_mcp"]) + nullable_fields = set(["active", "supports_mcp"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/create_index_v1_rag_managed_indexes_postop.py b/src/mistralai/client/models/create_index_v1_rag_managed_indexes_postop.py new file mode 100644 index 000000000..50b9e2a23 --- /dev/null +++ b/src/mistralai/client/models/create_index_v1_rag_managed_indexes_postop.py @@ -0,0 +1,19 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: f1d4c4022d4e + +from __future__ import annotations +from .managedindexresponse import ManagedIndexResponse, ManagedIndexResponseTypedDict +from mistralai.client.types import BaseModel +from typing import Dict, List +from typing_extensions import TypedDict + + +class CreateIndexV1RagManagedIndexesPostResponseTypedDict(TypedDict): + headers: Dict[str, List[str]] + result: ManagedIndexResponseTypedDict + + +class CreateIndexV1RagManagedIndexesPostResponse(BaseModel): + headers: Dict[str, List[str]] + + result: ManagedIndexResponse diff --git a/src/mistralai/client/models/createmanagedindexrequest.py b/src/mistralai/client/models/createmanagedindexrequest.py new file mode 100644 index 000000000..b6d613dc3 --- /dev/null +++ b/src/mistralai/client/models/createmanagedindexrequest.py @@ -0,0 +1,49 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: bdf17e832e15 + +from __future__ import annotations +from .managedindexconfig import ManagedIndexConfig, ManagedIndexConfigTypedDict +from .managedindexfields import ManagedIndexFields, ManagedIndexFieldsTypedDict +from mistralai.client.types import BaseModel, UNSET_SENTINEL +import pydantic +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class CreateManagedIndexRequestTypedDict(TypedDict): + name: str + config: ManagedIndexConfigTypedDict + schema_: NotRequired[ManagedIndexFieldsTypedDict] + + +class CreateManagedIndexRequest(BaseModel): + name: str + + config: ManagedIndexConfig + + schema_: Annotated[Optional[ManagedIndexFields], pydantic.Field(alias="schema")] = ( + None + ) + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["schema"]) + 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 + + +try: + CreateManagedIndexRequest.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/createpipelineconfigrequest.py b/src/mistralai/client/models/createpipelineconfigrequest.py index b3d5025ba..7b0886871 100644 --- a/src/mistralai/client/models/createpipelineconfigrequest.py +++ b/src/mistralai/client/models/createpipelineconfigrequest.py @@ -24,37 +24,31 @@ class CreatePipelineConfigRequestTypedDict(TypedDict): + name: str pipeline_kind: PipelineKind selectors: List[PipelineConfigSelectorTypedDict] - definition: PipelineConfigDefinitionTypedDict - name: str + definitions: List[PipelineConfigDefinitionTypedDict] description: NotRequired[Nullable[str]] - slug: NotRequired[Nullable[str]] - group: NotRequired[Nullable[str]] enabled: NotRequired[bool] class CreatePipelineConfigRequest(BaseModel): + name: str + pipeline_kind: PipelineKind selectors: List[PipelineConfigSelector] - definition: PipelineConfigDefinition - - name: str + definitions: List[PipelineConfigDefinition] description: OptionalNullable[str] = UNSET - slug: OptionalNullable[str] = UNSET - - group: OptionalNullable[str] = UNSET - enabled: Optional[bool] = True @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["description", "slug", "group", "enabled"]) - nullable_fields = set(["description", "slug", "group"]) + optional_fields = set(["description", "enabled"]) + nullable_fields = set(["description"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/createserviceaccountrequest.py b/src/mistralai/client/models/createserviceaccountrequest.py index 55efd9b4e..7a09bc7cd 100644 --- a/src/mistralai/client/models/createserviceaccountrequest.py +++ b/src/mistralai/client/models/createserviceaccountrequest.py @@ -10,6 +10,7 @@ UNSET_SENTINEL, ) from pydantic import model_serializer +from typing import List, Optional from typing_extensions import NotRequired, TypedDict @@ -17,6 +18,7 @@ class CreateServiceAccountRequestTypedDict(TypedDict): name: str workspace_id: str description: NotRequired[Nullable[str]] + role_ids: NotRequired[List[str]] class CreateServiceAccountRequest(BaseModel): @@ -26,9 +28,11 @@ class CreateServiceAccountRequest(BaseModel): description: OptionalNullable[str] = UNSET + role_ids: Optional[List[str]] = None + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["description"]) + optional_fields = set(["description", "role_ids"]) nullable_fields = set(["description"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/customembeddingmodel.py b/src/mistralai/client/models/customembeddingmodel.py new file mode 100644 index 000000000..495757fd5 --- /dev/null +++ b/src/mistralai/client/models/customembeddingmodel.py @@ -0,0 +1,58 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 03d1eefa5ca3 + +from __future__ import annotations +from .distancemetric import DistanceMetric +from .vectordtype import VectorDType +from mistralai.client.types import BaseModel, 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, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class CustomEmbeddingModelTypedDict(TypedDict): + name: str + dimensions: int + type: Literal["custom"] + dtype: NotRequired[VectorDType] + distance_metric: NotRequired[DistanceMetric] + + +class CustomEmbeddingModel(BaseModel): + name: str + + dimensions: int + + type: Annotated[ + Annotated[Literal["custom"], AfterValidator(validate_const("custom"))], + pydantic.Field(alias="type"), + ] = "custom" + + dtype: Optional[VectorDType] = None + + distance_metric: Optional[DistanceMetric] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["dtype", "distance_metric"]) + 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 + + +try: + CustomEmbeddingModel.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/customtaskcanceledresponse.py b/src/mistralai/client/models/customtaskcanceledresponse.py index 628f13e1d..14c34de50 100644 --- a/src/mistralai/client/models/customtaskcanceledresponse.py +++ b/src/mistralai/client/models/customtaskcanceledresponse.py @@ -32,7 +32,9 @@ class CustomTaskCanceledResponseTypedDict(TypedDict): continued_run_id: Nullable[str] r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str @@ -69,7 +71,10 @@ class CustomTaskCanceledResponse(BaseModel): r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" @@ -103,6 +108,7 @@ def serialize_model(self, handler): "parent_workflow_exec_id", "continued_run_id", "first_execution_run_id", + "chain_run_id", "schedule_id", ] ) diff --git a/src/mistralai/client/models/customtaskcompletedresponse.py b/src/mistralai/client/models/customtaskcompletedresponse.py index 96e5b5354..85f695230 100644 --- a/src/mistralai/client/models/customtaskcompletedresponse.py +++ b/src/mistralai/client/models/customtaskcompletedresponse.py @@ -32,7 +32,9 @@ class CustomTaskCompletedResponseTypedDict(TypedDict): continued_run_id: Nullable[str] r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str @@ -69,7 +71,10 @@ class CustomTaskCompletedResponse(BaseModel): r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" @@ -103,6 +108,7 @@ def serialize_model(self, handler): "parent_workflow_exec_id", "continued_run_id", "first_execution_run_id", + "chain_run_id", "schedule_id", ] ) diff --git a/src/mistralai/client/models/customtaskfailedresponse.py b/src/mistralai/client/models/customtaskfailedresponse.py index b331d6148..3dbd5257a 100644 --- a/src/mistralai/client/models/customtaskfailedresponse.py +++ b/src/mistralai/client/models/customtaskfailedresponse.py @@ -32,7 +32,9 @@ class CustomTaskFailedResponseTypedDict(TypedDict): continued_run_id: Nullable[str] r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str @@ -69,7 +71,10 @@ class CustomTaskFailedResponse(BaseModel): r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" @@ -103,6 +108,7 @@ def serialize_model(self, handler): "parent_workflow_exec_id", "continued_run_id", "first_execution_run_id", + "chain_run_id", "schedule_id", ] ) diff --git a/src/mistralai/client/models/customtaskinprogressresponse.py b/src/mistralai/client/models/customtaskinprogressresponse.py index eb8794dd5..f26db3a94 100644 --- a/src/mistralai/client/models/customtaskinprogressresponse.py +++ b/src/mistralai/client/models/customtaskinprogressresponse.py @@ -33,7 +33,9 @@ class CustomTaskInProgressResponseTypedDict(TypedDict): continued_run_id: Nullable[str] r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str @@ -71,7 +73,10 @@ class CustomTaskInProgressResponse(BaseModel): r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" @@ -105,6 +110,7 @@ def serialize_model(self, handler): "parent_workflow_exec_id", "continued_run_id", "first_execution_run_id", + "chain_run_id", "schedule_id", ] ) diff --git a/src/mistralai/client/models/customtaskstartedresponse.py b/src/mistralai/client/models/customtaskstartedresponse.py index 74b8d7fcf..206880e72 100644 --- a/src/mistralai/client/models/customtaskstartedresponse.py +++ b/src/mistralai/client/models/customtaskstartedresponse.py @@ -33,7 +33,9 @@ class CustomTaskStartedResponseTypedDict(TypedDict): continued_run_id: Nullable[str] r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str @@ -71,7 +73,10 @@ class CustomTaskStartedResponse(BaseModel): r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" @@ -105,6 +110,7 @@ def serialize_model(self, handler): "parent_workflow_exec_id", "continued_run_id", "first_execution_run_id", + "chain_run_id", "schedule_id", ] ) diff --git a/src/mistralai/client/models/customtasktimedoutresponse.py b/src/mistralai/client/models/customtasktimedoutresponse.py index 01cf2f25e..96d4b924e 100644 --- a/src/mistralai/client/models/customtasktimedoutresponse.py +++ b/src/mistralai/client/models/customtasktimedoutresponse.py @@ -32,7 +32,9 @@ class CustomTaskTimedOutResponseTypedDict(TypedDict): continued_run_id: Nullable[str] r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str @@ -69,7 +71,10 @@ class CustomTaskTimedOutResponse(BaseModel): r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" @@ -103,6 +108,7 @@ def serialize_model(self, handler): "parent_workflow_exec_id", "continued_run_id", "first_execution_run_id", + "chain_run_id", "schedule_id", ] ) diff --git a/src/mistralai/client/models/delete_documents_v1_rag_managed_indexes_index_name_documents_deleteop.py b/src/mistralai/client/models/delete_documents_v1_rag_managed_indexes_index_name_documents_deleteop.py new file mode 100644 index 000000000..101128b13 --- /dev/null +++ b/src/mistralai/client/models/delete_documents_v1_rag_managed_indexes_index_name_documents_deleteop.py @@ -0,0 +1,29 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: b12ccb9b2800 + +from __future__ import annotations +from .deletedocumentsrequest import ( + DeleteDocumentsRequest, + DeleteDocumentsRequestTypedDict, +) +from mistralai.client.types import BaseModel +from mistralai.client.utils import FieldMetadata, PathParamMetadata, RequestMetadata +from typing_extensions import Annotated, TypedDict + + +class DeleteDocumentsV1RagManagedIndexesIndexNameDocumentsDeleteRequestTypedDict( + TypedDict +): + index_name: str + delete_documents_request: DeleteDocumentsRequestTypedDict + + +class DeleteDocumentsV1RagManagedIndexesIndexNameDocumentsDeleteRequest(BaseModel): + index_name: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + delete_documents_request: Annotated[ + DeleteDocumentsRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] diff --git a/src/mistralai/client/models/delete_index_v1_rag_managed_indexes_index_name_deleteop.py b/src/mistralai/client/models/delete_index_v1_rag_managed_indexes_index_name_deleteop.py new file mode 100644 index 000000000..c073e9d68 --- /dev/null +++ b/src/mistralai/client/models/delete_index_v1_rag_managed_indexes_index_name_deleteop.py @@ -0,0 +1,17 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: ed22a94486c2 + +from __future__ import annotations +from mistralai.client.types import BaseModel +from mistralai.client.utils import FieldMetadata, PathParamMetadata +from typing_extensions import Annotated, TypedDict + + +class DeleteIndexV1RagManagedIndexesIndexNameDeleteRequestTypedDict(TypedDict): + index_name: str + + +class DeleteIndexV1RagManagedIndexesIndexNameDeleteRequest(BaseModel): + index_name: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] diff --git a/src/mistralai/client/models/deletedocumentsrequest.py b/src/mistralai/client/models/deletedocumentsrequest.py new file mode 100644 index 000000000..d2eac488e --- /dev/null +++ b/src/mistralai/client/models/deletedocumentsrequest.py @@ -0,0 +1,15 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: d4e5a2f6c4ec + +from __future__ import annotations +from mistralai.client.types import BaseModel +from typing import List +from typing_extensions import TypedDict + + +class DeleteDocumentsRequestTypedDict(TypedDict): + document_ids: List[str] + + +class DeleteDocumentsRequest(BaseModel): + document_ids: List[str] diff --git a/src/mistralai/client/models/deletedocumentsresponse.py b/src/mistralai/client/models/deletedocumentsresponse.py new file mode 100644 index 000000000..82a8190d2 --- /dev/null +++ b/src/mistralai/client/models/deletedocumentsresponse.py @@ -0,0 +1,18 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 8afbebf3178f + +from __future__ import annotations +from mistralai.client.types import BaseModel +from typing import List +from typing_extensions import TypedDict + + +class DeleteDocumentsResponseTypedDict(TypedDict): + deleted_document_ids: List[str] + missing: List[str] + + +class DeleteDocumentsResponse(BaseModel): + deleted_document_ids: List[str] + + missing: List[str] diff --git a/src/mistralai/client/models/deletemanagedindexresponse.py b/src/mistralai/client/models/deletemanagedindexresponse.py new file mode 100644 index 000000000..8d20cf184 --- /dev/null +++ b/src/mistralai/client/models/deletemanagedindexresponse.py @@ -0,0 +1,27 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: c1b0ae5d67b7 + +from __future__ import annotations +from .managedindexstatus import ManagedIndexStatus +from mistralai.client.types import BaseModel +from typing_extensions import TypedDict + + +class DeleteManagedIndexResponseTypedDict(TypedDict): + r"""Wire representation returned when an index is deleted (id, name, status).""" + + id: str + name: str + status: ManagedIndexStatus + r"""Lifecycle of an index. Derived, not stored -- see ``managed_index_from_row``.""" + + +class DeleteManagedIndexResponse(BaseModel): + r"""Wire representation returned when an index is deleted (id, name, status).""" + + id: str + + name: str + + status: ManagedIndexStatus + r"""Lifecycle of an index. Derived, not stored -- see ``managed_index_from_row``.""" diff --git a/src/mistralai/client/models/densevectorfielddefinition.py b/src/mistralai/client/models/densevectorfielddefinition.py new file mode 100644 index 000000000..36a4c17ff --- /dev/null +++ b/src/mistralai/client/models/densevectorfielddefinition.py @@ -0,0 +1,73 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 10b1438a1a33 + +from __future__ import annotations +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 Any, Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class DenseVectorFieldDefinitionTypedDict(TypedDict): + indexed: NotRequired[bool] + required: NotRequired[bool] + system: NotRequired[bool] + default: NotRequired[Nullable[Any]] + type: Literal["dense_vector"] + + +class DenseVectorFieldDefinition(BaseModel): + indexed: Optional[bool] = True + + required: Optional[bool] = False + + system: Optional[bool] = False + + default: OptionalNullable[Any] = UNSET + + type: Annotated[ + Annotated[ + Literal["dense_vector"], AfterValidator(validate_const("dense_vector")) + ], + pydantic.Field(alias="type"), + ] = "dense_vector" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["indexed", "required", "system", "default"]) + nullable_fields = set(["default"]) + 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: + DenseVectorFieldDefinition.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/deploymentdetailresponse.py b/src/mistralai/client/models/deploymentdetailresponse.py index 0e35d72d5..38ec4925e 100644 --- a/src/mistralai/client/models/deploymentdetailresponse.py +++ b/src/mistralai/client/models/deploymentdetailresponse.py @@ -35,12 +35,16 @@ class DeploymentDetailResponseTypedDict(TypedDict): r"""Whether at least one worker is currently live""" created_at: datetime r"""When the deployment was first registered""" + last_heartbeat: datetime + r"""When the deployment last saw a worker registration""" updated_at: datetime - r"""When the deployment was last updated""" + r"""Deprecated alias of last_heartbeat""" workers: List[DeploymentWorkerResponseTypedDict] r"""Workers registered for the deployment""" is_hardened: NotRequired[bool] r"""Whether the deployment only accepts registrations from authorized principals""" + owner: NotRequired[Nullable[str]] + r"""User id that owns the deployment, or null when it is administrator-managed""" location: NotRequired[Nullable[DeploymentLocationTypedDict]] r"""Where the deployment is running""" worker_count: NotRequired[int] @@ -66,8 +70,16 @@ class DeploymentDetailResponse(BaseModel): created_at: datetime r"""When the deployment was first registered""" - updated_at: datetime - r"""When the deployment was last updated""" + last_heartbeat: datetime + r"""When the deployment last saw a worker registration""" + + updated_at: Annotated[ + datetime, + pydantic.Field( + deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." + ), + ] + r"""Deprecated alias of last_heartbeat""" workers: List[DeploymentWorkerResponse] r"""Workers registered for the deployment""" @@ -75,6 +87,9 @@ class DeploymentDetailResponse(BaseModel): is_hardened: Optional[bool] = False r"""Whether the deployment only accepts registrations from authorized principals""" + owner: OptionalNullable[str] = UNSET + r"""User id that owns the deployment, or null when it is administrator-managed""" + location: Annotated[ OptionalNullable[DeploymentLocation], pydantic.Field( @@ -100,6 +115,7 @@ def serialize_model(self, handler): optional_fields = set( [ "is_hardened", + "owner", "location", "worker_count", "active_worker_count", @@ -107,7 +123,7 @@ def serialize_model(self, handler): "managed", ] ) - nullable_fields = set(["location", "managed"]) + nullable_fields = set(["owner", "location", "managed"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/deploymentresponse.py b/src/mistralai/client/models/deploymentresponse.py index 73d519a09..8a194dc5b 100644 --- a/src/mistralai/client/models/deploymentresponse.py +++ b/src/mistralai/client/models/deploymentresponse.py @@ -31,10 +31,14 @@ class DeploymentResponseTypedDict(TypedDict): r"""Whether at least one worker is currently live""" created_at: datetime r"""When the deployment was first registered""" + last_heartbeat: datetime + r"""When the deployment last saw a worker registration""" updated_at: datetime - r"""When the deployment was last updated""" + r"""Deprecated alias of last_heartbeat""" is_hardened: NotRequired[bool] r"""Whether the deployment only accepts registrations from authorized principals""" + owner: NotRequired[Nullable[str]] + r"""User id that owns the deployment, or null when it is administrator-managed""" location: NotRequired[Nullable[DeploymentLocationTypedDict]] r"""Where the deployment is running""" worker_count: NotRequired[int] @@ -60,12 +64,23 @@ class DeploymentResponse(BaseModel): created_at: datetime r"""When the deployment was first registered""" - updated_at: datetime - r"""When the deployment was last updated""" + last_heartbeat: datetime + r"""When the deployment last saw a worker registration""" + + updated_at: Annotated[ + datetime, + pydantic.Field( + deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." + ), + ] + r"""Deprecated alias of last_heartbeat""" is_hardened: Optional[bool] = False r"""Whether the deployment only accepts registrations from authorized principals""" + owner: OptionalNullable[str] = UNSET + r"""User id that owns the deployment, or null when it is administrator-managed""" + location: Annotated[ OptionalNullable[DeploymentLocation], pydantic.Field( @@ -91,6 +106,7 @@ def serialize_model(self, handler): optional_fields = set( [ "is_hardened", + "owner", "location", "worker_count", "active_worker_count", @@ -98,7 +114,7 @@ def serialize_model(self, handler): "managed", ] ) - nullable_fields = set(["location", "managed"]) + nullable_fields = set(["owner", "location", "managed"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/deploymentworkerresponse.py b/src/mistralai/client/models/deploymentworkerresponse.py index 016df73b0..c4a775f67 100644 --- a/src/mistralai/client/models/deploymentworkerresponse.py +++ b/src/mistralai/client/models/deploymentworkerresponse.py @@ -11,8 +11,9 @@ UNSET, UNSET_SENTINEL, ) +import pydantic from pydantic import model_serializer -from typing_extensions import NotRequired, TypedDict +from typing_extensions import Annotated, NotRequired, TypedDict class DeploymentWorkerResponseTypedDict(TypedDict): @@ -20,8 +21,10 @@ class DeploymentWorkerResponseTypedDict(TypedDict): r"""Worker name""" created_at: datetime r"""When the worker first registered""" - updated_at: datetime + last_heartbeat: datetime r"""When the worker last registered""" + updated_at: datetime + r"""Deprecated alias of last_heartbeat""" is_active: bool r"""Whether this worker's liveness key is currently alive""" location: NotRequired[Nullable[DeploymentLocationTypedDict]] @@ -35,9 +38,17 @@ class DeploymentWorkerResponse(BaseModel): created_at: datetime r"""When the worker first registered""" - updated_at: datetime + last_heartbeat: datetime r"""When the worker last registered""" + updated_at: Annotated[ + datetime, + pydantic.Field( + deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." + ), + ] + r"""Deprecated alias of last_heartbeat""" + is_active: bool r"""Whether this worker's liveness key is currently alive""" diff --git a/src/mistralai/client/models/distancemetric.py b/src/mistralai/client/models/distancemetric.py new file mode 100644 index 000000000..68720afad --- /dev/null +++ b/src/mistralai/client/models/distancemetric.py @@ -0,0 +1,16 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 29ea7bbc6cb9 + +from __future__ import annotations +from mistralai.client.types import UnrecognizedStr +from typing import Literal, Union + + +DistanceMetric = Union[ + Literal[ + "cosine", + "inner_product", + "l2", + ], + UnrecognizedStr, +] diff --git a/src/mistralai/client/models/documentfielderrorresponse.py b/src/mistralai/client/models/documentfielderrorresponse.py new file mode 100644 index 000000000..71a5a6edb --- /dev/null +++ b/src/mistralai/client/models/documentfielderrorresponse.py @@ -0,0 +1,31 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 78ba97168550 + +from __future__ import annotations +from mistralai.client.types import BaseModel +from typing import List, Union +from typing_extensions import TypeAliasType, TypedDict + + +LocationTypedDict = TypeAliasType("LocationTypedDict", Union[str, int]) + + +Location = TypeAliasType("Location", Union[str, int]) + + +class DocumentFieldErrorResponseTypedDict(TypedDict): + r"""A single field-level validation failure within a rejected document.""" + + location: List[LocationTypedDict] + type: str + message: str + + +class DocumentFieldErrorResponse(BaseModel): + r"""A single field-level validation failure within a rejected document.""" + + location: List[Location] + + type: str + + message: str diff --git a/src/mistralai/client/models/equal.py b/src/mistralai/client/models/equal.py new file mode 100644 index 000000000..463de7819 --- /dev/null +++ b/src/mistralai/client/models/equal.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 650836bd0072 + +from __future__ import annotations +from datetime import datetime +from mistralai.client.types import BaseModel +from mistralai.client.utils import validate_const +import pydantic +from pydantic.functional_validators import AfterValidator +from typing import Literal, Union +from typing_extensions import Annotated, TypeAliasType, TypedDict + + +EqualValueTypedDict = TypeAliasType( + "EqualValueTypedDict", Union[int, float, datetime, str] +) + + +EqualValue = TypeAliasType("EqualValue", Union[int, float, datetime, str]) + + +class EqualTypedDict(TypedDict): + r"""Field equals a scalar value.""" + + field: str + value: EqualValueTypedDict + type: Literal["equal"] + + +class Equal(BaseModel): + r"""Field equals a scalar value.""" + + field: str + + value: EqualValue + + type: Annotated[ + Annotated[Literal["equal"], AfterValidator(validate_const("equal"))], + pydantic.Field(alias="type"), + ] = "equal" + + +try: + Equal.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/floatarrayfielddefinition.py b/src/mistralai/client/models/floatarrayfielddefinition.py new file mode 100644 index 000000000..4c09750f3 --- /dev/null +++ b/src/mistralai/client/models/floatarrayfielddefinition.py @@ -0,0 +1,71 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 152eeb444184 + +from __future__ import annotations +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 Any, Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class FloatArrayFieldDefinitionTypedDict(TypedDict): + indexed: NotRequired[bool] + required: NotRequired[bool] + system: NotRequired[bool] + default: NotRequired[Nullable[Any]] + type: Literal["float[]"] + + +class FloatArrayFieldDefinition(BaseModel): + indexed: Optional[bool] = False + + required: Optional[bool] = False + + system: Optional[bool] = False + + default: OptionalNullable[Any] = UNSET + + type: Annotated[ + Annotated[Literal["float[]"], AfterValidator(validate_const("float[]"))], + pydantic.Field(alias="type"), + ] = "float[]" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["indexed", "required", "system", "default"]) + nullable_fields = set(["default"]) + 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: + FloatArrayFieldDefinition.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/floatfielddefinition.py b/src/mistralai/client/models/floatfielddefinition.py new file mode 100644 index 000000000..47fb3b278 --- /dev/null +++ b/src/mistralai/client/models/floatfielddefinition.py @@ -0,0 +1,71 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: e3559a96c8d6 + +from __future__ import annotations +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 Any, Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class FloatFieldDefinitionTypedDict(TypedDict): + indexed: NotRequired[bool] + required: NotRequired[bool] + system: NotRequired[bool] + default: NotRequired[Nullable[Any]] + type: Literal["float"] + + +class FloatFieldDefinition(BaseModel): + indexed: Optional[bool] = False + + required: Optional[bool] = False + + system: Optional[bool] = False + + default: OptionalNullable[Any] = UNSET + + type: Annotated[ + Annotated[Literal["float"], AfterValidator(validate_const("float"))], + pydantic.Field(alias="type"), + ] = "float" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["indexed", "required", "system", "default"]) + nullable_fields = set(["default"]) + 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: + FloatFieldDefinition.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/get_index_v1_rag_managed_indexes_index_name_getop.py b/src/mistralai/client/models/get_index_v1_rag_managed_indexes_index_name_getop.py new file mode 100644 index 000000000..ffabcc1af --- /dev/null +++ b/src/mistralai/client/models/get_index_v1_rag_managed_indexes_index_name_getop.py @@ -0,0 +1,17 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: cc90b0975f3f + +from __future__ import annotations +from mistralai.client.types import BaseModel +from mistralai.client.utils import FieldMetadata, PathParamMetadata +from typing_extensions import Annotated, TypedDict + + +class GetIndexV1RagManagedIndexesIndexNameGetRequestTypedDict(TypedDict): + index_name: str + + +class GetIndexV1RagManagedIndexesIndexNameGetRequest(BaseModel): + index_name: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] diff --git a/src/mistralai/client/models/httpconnector.py b/src/mistralai/client/models/httpconnector.py index 5cf13452d..46db351d3 100644 --- a/src/mistralai/client/models/httpconnector.py +++ b/src/mistralai/client/models/httpconnector.py @@ -46,6 +46,8 @@ class HTTPConnectorTypedDict(TypedDict): owner_type: ConsumerType visibility: ResourceVisibility private_tool_execution: bool + supports_mcp: bool + r"""Whether this connector exposes an MCP-compatible tool interface.""" title: NotRequired[Nullable[str]] server: NotRequired[Nullable[str]] icon_url: NotRequired[Nullable[str]] @@ -89,6 +91,9 @@ class HTTPConnector(BaseModel): private_tool_execution: bool + supports_mcp: bool + r"""Whether this connector exposes an MCP-compatible tool interface.""" + title: OptionalNullable[str] = UNSET server: OptionalNullable[str] = UNSET diff --git a/src/mistralai/client/models/in_.py b/src/mistralai/client/models/in_.py new file mode 100644 index 000000000..8e73b70fd --- /dev/null +++ b/src/mistralai/client/models/in_.py @@ -0,0 +1,44 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 42dfc5af9d54 + +from __future__ import annotations +from datetime import datetime +from mistralai.client.types import BaseModel +from mistralai.client.utils import validate_const +import pydantic +from pydantic.functional_validators import AfterValidator +from typing import List, Literal, Union +from typing_extensions import Annotated, TypeAliasType, TypedDict + + +InValueTypedDict = TypeAliasType("InValueTypedDict", Union[int, float, datetime, str]) + + +InValue = TypeAliasType("InValue", Union[int, float, datetime, str]) + + +class InTypedDict(TypedDict): + r"""Field is one of a set of values.""" + + field: str + values: List[InValueTypedDict] + type: Literal["in"] + + +class In(BaseModel): + r"""Field is one of a set of values.""" + + field: str + + values: List[InValue] + + type: Annotated[ + Annotated[Literal["in"], AfterValidator(validate_const("in"))], + pydantic.Field(alias="type"), + ] = "in" + + +try: + In.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/ingest_documents_v1_rag_managed_indexes_index_name_documents_postop.py b/src/mistralai/client/models/ingest_documents_v1_rag_managed_indexes_index_name_documents_postop.py new file mode 100644 index 000000000..33fa5627f --- /dev/null +++ b/src/mistralai/client/models/ingest_documents_v1_rag_managed_indexes_index_name_documents_postop.py @@ -0,0 +1,29 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 6a8cb50e33f4 + +from __future__ import annotations +from .ingestdocumentsrequest import ( + IngestDocumentsRequest, + IngestDocumentsRequestTypedDict, +) +from mistralai.client.types import BaseModel +from mistralai.client.utils import FieldMetadata, PathParamMetadata, RequestMetadata +from typing_extensions import Annotated, TypedDict + + +class IngestDocumentsV1RagManagedIndexesIndexNameDocumentsPostRequestTypedDict( + TypedDict +): + index_name: str + ingest_documents_request: IngestDocumentsRequestTypedDict + + +class IngestDocumentsV1RagManagedIndexesIndexNameDocumentsPostRequest(BaseModel): + index_name: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + ingest_documents_request: Annotated[ + IngestDocumentsRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] diff --git a/src/mistralai/client/models/ingestdocumentsrequest.py b/src/mistralai/client/models/ingestdocumentsrequest.py new file mode 100644 index 000000000..e4050ebb7 --- /dev/null +++ b/src/mistralai/client/models/ingestdocumentsrequest.py @@ -0,0 +1,15 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: c8fcd14c0f70 + +from __future__ import annotations +from mistralai.client.types import BaseModel +from typing import Any, Dict, List +from typing_extensions import TypedDict + + +class IngestDocumentsRequestTypedDict(TypedDict): + documents: List[Dict[str, Any]] + + +class IngestDocumentsRequest(BaseModel): + documents: List[Dict[str, Any]] diff --git a/src/mistralai/client/models/ingestdocumentsresponse.py b/src/mistralai/client/models/ingestdocumentsresponse.py new file mode 100644 index 000000000..65b688357 --- /dev/null +++ b/src/mistralai/client/models/ingestdocumentsresponse.py @@ -0,0 +1,69 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: a070c9745855 + +from __future__ import annotations +from .accepteddocumentresponse import ( + AcceptedDocumentResponse, + AcceptedDocumentResponseTypedDict, +) +from .rejecteddocumentresponse import ( + RejectedDocumentResponse, + RejectedDocumentResponseTypedDict, +) +from functools import partial +from mistralai.client.types import BaseModel +from mistralai.client.utils.unions import parse_open_union +from pydantic import ConfigDict +from pydantic.functional_validators import BeforeValidator +from typing import Any, List, Literal, Union +from typing_extensions import Annotated, TypeAliasType, TypedDict + + +ResultTypedDict = TypeAliasType( + "ResultTypedDict", + Union[RejectedDocumentResponseTypedDict, AcceptedDocumentResponseTypedDict], +) + + +class UnknownResult(BaseModel): + r"""A Result variant the SDK doesn't recognize. Preserves the raw payload.""" + + status: Literal["UNKNOWN"] = "UNKNOWN" + raw: Any + is_unknown: Literal[True] = True + + model_config = ConfigDict(frozen=True) + + +_RESULT_VARIANTS: dict[str, Any] = { + "accepted": AcceptedDocumentResponse, + "rejected": RejectedDocumentResponse, +} + + +Result = Annotated[ + Union[AcceptedDocumentResponse, RejectedDocumentResponse, UnknownResult], + BeforeValidator( + partial( + parse_open_union, + disc_key="status", + variants=_RESULT_VARIANTS, + unknown_cls=UnknownResult, + union_name="Result", + ) + ), +] + + +class IngestDocumentsResponseTypedDict(TypedDict): + accepted: int + rejected: int + results: List[ResultTypedDict] + + +class IngestDocumentsResponse(BaseModel): + accepted: int + + rejected: int + + results: List[Result] diff --git a/src/mistralai/client/models/intarrayfielddefinition.py b/src/mistralai/client/models/intarrayfielddefinition.py new file mode 100644 index 000000000..7dccd558d --- /dev/null +++ b/src/mistralai/client/models/intarrayfielddefinition.py @@ -0,0 +1,71 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 55a2d67fe66c + +from __future__ import annotations +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 Any, Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class IntArrayFieldDefinitionTypedDict(TypedDict): + indexed: NotRequired[bool] + required: NotRequired[bool] + system: NotRequired[bool] + default: NotRequired[Nullable[Any]] + type: Literal["int[]"] + + +class IntArrayFieldDefinition(BaseModel): + indexed: Optional[bool] = False + + required: Optional[bool] = False + + system: Optional[bool] = False + + default: OptionalNullable[Any] = UNSET + + type: Annotated[ + Annotated[Literal["int[]"], AfterValidator(validate_const("int[]"))], + pydantic.Field(alias="type"), + ] = "int[]" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["indexed", "required", "system", "default"]) + nullable_fields = set(["default"]) + 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: + IntArrayFieldDefinition.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/intfielddefinition.py b/src/mistralai/client/models/intfielddefinition.py new file mode 100644 index 000000000..f004bfdd4 --- /dev/null +++ b/src/mistralai/client/models/intfielddefinition.py @@ -0,0 +1,71 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 155b2f0ff656 + +from __future__ import annotations +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 Any, Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class IntFieldDefinitionTypedDict(TypedDict): + indexed: NotRequired[bool] + required: NotRequired[bool] + system: NotRequired[bool] + default: NotRequired[Nullable[Any]] + type: Literal["int"] + + +class IntFieldDefinition(BaseModel): + indexed: Optional[bool] = False + + required: Optional[bool] = False + + system: Optional[bool] = False + + default: OptionalNullable[Any] = UNSET + + type: Annotated[ + Annotated[Literal["int"], AfterValidator(validate_const("int"))], + pydantic.Field(alias="type"), + ] = "int" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["indexed", "required", "system", "default"]) + nullable_fields = set(["default"]) + 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: + IntFieldDefinition.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/jsonfielddefinition.py b/src/mistralai/client/models/jsonfielddefinition.py new file mode 100644 index 000000000..2140b4f45 --- /dev/null +++ b/src/mistralai/client/models/jsonfielddefinition.py @@ -0,0 +1,71 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: d38f9a988908 + +from __future__ import annotations +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 Any, Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class JSONFieldDefinitionTypedDict(TypedDict): + indexed: NotRequired[bool] + required: NotRequired[bool] + system: NotRequired[bool] + default: NotRequired[Nullable[Any]] + type: Literal["json"] + + +class JSONFieldDefinition(BaseModel): + indexed: Optional[bool] = False + + required: Optional[bool] = False + + system: Optional[bool] = False + + default: OptionalNullable[Any] = UNSET + + type: Annotated[ + Annotated[Literal["json"], AfterValidator(validate_const("json"))], + pydantic.Field(alias="type"), + ] = "json" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["indexed", "required", "system", "default"]) + nullable_fields = set(["default"]) + 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: + JSONFieldDefinition.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/judgedefinition.py b/src/mistralai/client/models/judgedefinition.py index d8f49ab69..6d50baffb 100644 --- a/src/mistralai/client/models/judgedefinition.py +++ b/src/mistralai/client/models/judgedefinition.py @@ -2,16 +2,34 @@ # @generated-id: 6f9c96450465 from __future__ import annotations -from mistralai.client.types import BaseModel -from typing_extensions import TypedDict +from mistralai.client.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer +from typing import Dict, Optional +from typing_extensions import NotRequired, TypedDict class JudgeDefinitionTypedDict(TypedDict): - model: str - prompt: str + slug: str + mapping: NotRequired[Dict[str, str]] class JudgeDefinition(BaseModel): - model: str + slug: str - prompt: str + mapping: Optional[Dict[str, str]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["mapping"]) + 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/keywordarrayfielddefinition.py b/src/mistralai/client/models/keywordarrayfielddefinition.py new file mode 100644 index 000000000..305e50502 --- /dev/null +++ b/src/mistralai/client/models/keywordarrayfielddefinition.py @@ -0,0 +1,71 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: c304e69e359c + +from __future__ import annotations +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 Any, Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class KeywordArrayFieldDefinitionTypedDict(TypedDict): + indexed: NotRequired[bool] + required: NotRequired[bool] + system: NotRequired[bool] + default: NotRequired[Nullable[Any]] + type: Literal["keyword[]"] + + +class KeywordArrayFieldDefinition(BaseModel): + indexed: Optional[bool] = False + + required: Optional[bool] = False + + system: Optional[bool] = False + + default: OptionalNullable[Any] = UNSET + + type: Annotated[ + Annotated[Literal["keyword[]"], AfterValidator(validate_const("keyword[]"))], + pydantic.Field(alias="type"), + ] = "keyword[]" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["indexed", "required", "system", "default"]) + nullable_fields = set(["default"]) + 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: + KeywordArrayFieldDefinition.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/keywordfielddefinition.py b/src/mistralai/client/models/keywordfielddefinition.py new file mode 100644 index 000000000..566167814 --- /dev/null +++ b/src/mistralai/client/models/keywordfielddefinition.py @@ -0,0 +1,71 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: ad53689434fb + +from __future__ import annotations +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 Any, Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class KeywordFieldDefinitionTypedDict(TypedDict): + indexed: NotRequired[bool] + required: NotRequired[bool] + system: NotRequired[bool] + default: NotRequired[Nullable[Any]] + type: Literal["keyword"] + + +class KeywordFieldDefinition(BaseModel): + indexed: Optional[bool] = True + + required: Optional[bool] = False + + system: Optional[bool] = False + + default: OptionalNullable[Any] = UNSET + + type: Annotated[ + Annotated[Literal["keyword"], AfterValidator(validate_const("keyword"))], + pydantic.Field(alias="type"), + ] = "keyword" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["indexed", "required", "system", "default"]) + nullable_fields = set(["default"]) + 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: + KeywordFieldDefinition.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/keywordretriever.py b/src/mistralai/client/models/keywordretriever.py new file mode 100644 index 000000000..c3e0c73b8 --- /dev/null +++ b/src/mistralai/client/models/keywordretriever.py @@ -0,0 +1,102 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 350ec57ccfde + +from __future__ import annotations +from .and_ import And, AndTypedDict +from .equal import Equal, EqualTypedDict +from .in_ import In, InTypedDict +from .not_ import Not, NotTypedDict +from .or_ import Or, OrTypedDict +from .range import Range, RangeTypedDict +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from mistralai.client.utils import validate_const +import pydantic +from pydantic import Field, SerializeAsAny, model_serializer +from pydantic.functional_validators import AfterValidator +from typing import Literal, Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +KeywordRetrieverFilterTypedDict = TypeAliasType( + "KeywordRetrieverFilterTypedDict", + Union[ + AndTypedDict, + OrTypedDict, + NotTypedDict, + EqualTypedDict, + InTypedDict, + RangeTypedDict, + ], +) + + +KeywordRetrieverFilter = Annotated[ + Union[And, Equal, In, Not, Or, Range], Field(discriminator="type") +] + + +class KeywordRetrieverTypedDict(TypedDict): + r"""Retrieve document chunks with similar keywrods to the given query.""" + + query: str + top_k: NotRequired[int] + type: Literal["keyword"] + filter_: NotRequired[Nullable[KeywordRetrieverFilterTypedDict]] + field: NotRequired[Nullable[str]] + + +class KeywordRetriever(BaseModel): + r"""Retrieve document chunks with similar keywrods to the given query.""" + + query: str + + top_k: Optional[int] = 20 + + type: Annotated[ + Annotated[Literal["keyword"], AfterValidator(validate_const("keyword"))], + pydantic.Field(alias="type"), + ] = "keyword" + + filter_: Annotated[ + SerializeAsAny[OptionalNullable[KeywordRetrieverFilter]], + pydantic.Field(alias="filter"), + ] = UNSET + + field: OptionalNullable[str] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["top_k", "filter", "field"]) + nullable_fields = set(["filter", "field"]) + 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: + KeywordRetriever.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/list_indexes_v1_rag_managed_indexes_getop.py b/src/mistralai/client/models/list_indexes_v1_rag_managed_indexes_getop.py new file mode 100644 index 000000000..2650ffe6e --- /dev/null +++ b/src/mistralai/client/models/list_indexes_v1_rag_managed_indexes_getop.py @@ -0,0 +1,78 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 0f9c1145d61c + +from __future__ import annotations +from .listmanagedindexesresponse import ( + ListManagedIndexesResponse, + ListManagedIndexesResponseTypedDict, +) +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from mistralai.client.utils import FieldMetadata, QueryParamMetadata +from pydantic import model_serializer +from typing import Awaitable, Callable, Optional, Union +from typing_extensions import Annotated, NotRequired, TypedDict + + +class ListIndexesV1RagManagedIndexesGetRequestTypedDict(TypedDict): + page_size: NotRequired[int] + r"""Maximum number of indexes to return""" + page_token: NotRequired[Nullable[str]] + r"""Cursor returned as next_page_token by the previous page""" + + +class ListIndexesV1RagManagedIndexesGetRequest(BaseModel): + page_size: Annotated[ + Optional[int], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = 20 + r"""Maximum number of indexes to return""" + + page_token: Annotated[ + OptionalNullable[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + r"""Cursor returned as next_page_token by the previous page""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["page_size", "page_token"]) + nullable_fields = set(["page_token"]) + 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 + + +class ListIndexesV1RagManagedIndexesGetResponseTypedDict(TypedDict): + result: ListManagedIndexesResponseTypedDict + + +class ListIndexesV1RagManagedIndexesGetResponse(BaseModel): + next: Union[ + Callable[[], Optional[ListIndexesV1RagManagedIndexesGetResponse]], + Callable[[], Awaitable[Optional[ListIndexesV1RagManagedIndexesGetResponse]]], + ] + + result: ListManagedIndexesResponse diff --git a/src/mistralai/client/models/list_pipeline_configs_v1_observability_pipeline_configs_getop.py b/src/mistralai/client/models/list_pipeline_configs_v1_observability_pipeline_configs_getop.py index f62ae07a3..0cf3469b6 100644 --- a/src/mistralai/client/models/list_pipeline_configs_v1_observability_pipeline_configs_getop.py +++ b/src/mistralai/client/models/list_pipeline_configs_v1_observability_pipeline_configs_getop.py @@ -18,7 +18,6 @@ class ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequestTypedDict(TypedDict): pipeline_kind: NotRequired[Nullable[PipelineKind]] - group: NotRequired[Nullable[str]] enabled: NotRequired[Nullable[bool]] page_size: NotRequired[int] page: NotRequired[int] @@ -31,11 +30,6 @@ class ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequest(BaseModel): FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = UNSET - group: Annotated[ - OptionalNullable[str], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = UNSET - enabled: Annotated[ OptionalNullable[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), @@ -58,10 +52,8 @@ class ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set( - ["pipeline_kind", "group", "enabled", "page_size", "page", "q"] - ) - nullable_fields = set(["pipeline_kind", "group", "enabled", "q"]) + optional_fields = set(["pipeline_kind", "enabled", "page_size", "page", "q"]) + nullable_fields = set(["pipeline_kind", "enabled", "q"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/list_service_accounts_v1_service_accounts_getop.py b/src/mistralai/client/models/list_service_accounts_v1_service_accounts_getop.py index cded2b0e5..08443599a 100644 --- a/src/mistralai/client/models/list_service_accounts_v1_service_accounts_getop.py +++ b/src/mistralai/client/models/list_service_accounts_v1_service_accounts_getop.py @@ -6,7 +6,13 @@ ListServiceAccountsResponse, ListServiceAccountsResponseTypedDict, ) -from mistralai.client.types import BaseModel, UNSET_SENTINEL +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) from mistralai.client.utils import FieldMetadata, QueryParamMetadata from pydantic import model_serializer from typing import Awaitable, Callable, Optional, Union @@ -14,17 +20,13 @@ class ListServiceAccountsV1ServiceAccountsGetRequestTypedDict(TypedDict): - workspace_id: str offset: int limit: int + workspace_id: NotRequired[Nullable[str]] include_deleted: NotRequired[bool] class ListServiceAccountsV1ServiceAccountsGetRequest(BaseModel): - workspace_id: Annotated[ - str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True)) - ] - offset: Annotated[ int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True)) ] @@ -33,6 +35,11 @@ class ListServiceAccountsV1ServiceAccountsGetRequest(BaseModel): int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True)) ] + workspace_id: Annotated[ + OptionalNullable[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + include_deleted: Annotated[ Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), @@ -40,16 +47,25 @@ class ListServiceAccountsV1ServiceAccountsGetRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["include_deleted"]) + optional_fields = set(["workspace_id", "include_deleted"]) + nullable_fields = set(["workspace_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: + 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/listmanagedindexesresponse.py b/src/mistralai/client/models/listmanagedindexesresponse.py new file mode 100644 index 000000000..8b5a9348b --- /dev/null +++ b/src/mistralai/client/models/listmanagedindexesresponse.py @@ -0,0 +1,55 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: aec7637c4652 + +from __future__ import annotations +from .managedindexresponse import ManagedIndexResponse, ManagedIndexResponseTypedDict +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from pydantic import model_serializer +from typing import List +from typing_extensions import NotRequired, TypedDict + + +class ListManagedIndexesResponseTypedDict(TypedDict): + r"""Paginated list of managed indexes.""" + + data: List[ManagedIndexResponseTypedDict] + next_page_token: NotRequired[Nullable[str]] + + +class ListManagedIndexesResponse(BaseModel): + r"""Paginated list of managed indexes.""" + + data: List[ManagedIndexResponse] + + next_page_token: OptionalNullable[str] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["next_page_token"]) + nullable_fields = set(["next_page_token"]) + 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/longarrayfielddefinition.py b/src/mistralai/client/models/longarrayfielddefinition.py new file mode 100644 index 000000000..a9cc96839 --- /dev/null +++ b/src/mistralai/client/models/longarrayfielddefinition.py @@ -0,0 +1,71 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 9a60cdbb9e71 + +from __future__ import annotations +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 Any, Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class LongArrayFieldDefinitionTypedDict(TypedDict): + indexed: NotRequired[bool] + required: NotRequired[bool] + system: NotRequired[bool] + default: NotRequired[Nullable[Any]] + type: Literal["long[]"] + + +class LongArrayFieldDefinition(BaseModel): + indexed: Optional[bool] = False + + required: Optional[bool] = False + + system: Optional[bool] = False + + default: OptionalNullable[Any] = UNSET + + type: Annotated[ + Annotated[Literal["long[]"], AfterValidator(validate_const("long[]"))], + pydantic.Field(alias="type"), + ] = "long[]" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["indexed", "required", "system", "default"]) + nullable_fields = set(["default"]) + 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: + LongArrayFieldDefinition.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/longfielddefinition.py b/src/mistralai/client/models/longfielddefinition.py new file mode 100644 index 000000000..75a8b4015 --- /dev/null +++ b/src/mistralai/client/models/longfielddefinition.py @@ -0,0 +1,71 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: dbaa9195612b + +from __future__ import annotations +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 Any, Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class LongFieldDefinitionTypedDict(TypedDict): + indexed: NotRequired[bool] + required: NotRequired[bool] + system: NotRequired[bool] + default: NotRequired[Nullable[Any]] + type: Literal["long"] + + +class LongFieldDefinition(BaseModel): + indexed: Optional[bool] = False + + required: Optional[bool] = False + + system: Optional[bool] = False + + default: OptionalNullable[Any] = UNSET + + type: Annotated[ + Annotated[Literal["long"], AfterValidator(validate_const("long"))], + pydantic.Field(alias="type"), + ] = "long" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["indexed", "required", "system", "default"]) + nullable_fields = set(["default"]) + 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: + LongFieldDefinition.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/managedindexconfig.py b/src/mistralai/client/models/managedindexconfig.py new file mode 100644 index 000000000..c987efa0c --- /dev/null +++ b/src/mistralai/client/models/managedindexconfig.py @@ -0,0 +1,57 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 9e9e16c89c27 + +from __future__ import annotations +from .customembeddingmodel import CustomEmbeddingModel, CustomEmbeddingModelTypedDict +from .mistralembeddingmodel import MistralEmbeddingModel, MistralEmbeddingModelTypedDict +from functools import partial +from mistralai.client.types import BaseModel +from mistralai.client.utils.unions import parse_open_union +from pydantic import ConfigDict +from pydantic.functional_validators import BeforeValidator +from typing import Any, Literal, Union +from typing_extensions import Annotated, TypeAliasType, TypedDict + + +EmbeddingTypedDict = TypeAliasType( + "EmbeddingTypedDict", + Union[MistralEmbeddingModelTypedDict, CustomEmbeddingModelTypedDict], +) + + +class UnknownEmbedding(BaseModel): + r"""A Embedding variant the SDK doesn't recognize. Preserves the raw payload.""" + + type: Literal["UNKNOWN"] = "UNKNOWN" + raw: Any + is_unknown: Literal[True] = True + + model_config = ConfigDict(frozen=True) + + +_EMBEDDING_VARIANTS: dict[str, Any] = { + "custom": CustomEmbeddingModel, + "mistral": MistralEmbeddingModel, +} + + +Embedding = Annotated[ + Union[CustomEmbeddingModel, MistralEmbeddingModel, UnknownEmbedding], + BeforeValidator( + partial( + parse_open_union, + disc_key="type", + variants=_EMBEDDING_VARIANTS, + unknown_cls=UnknownEmbedding, + union_name="Embedding", + ) + ), +] + + +class ManagedIndexConfigTypedDict(TypedDict): + embedding: EmbeddingTypedDict + + +class ManagedIndexConfig(BaseModel): + embedding: Embedding diff --git a/src/mistralai/client/models/managedindexfields.py b/src/mistralai/client/models/managedindexfields.py new file mode 100644 index 000000000..fe06f81f3 --- /dev/null +++ b/src/mistralai/client/models/managedindexfields.py @@ -0,0 +1,254 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 1c789d1f932e + +from __future__ import annotations +from .boolarrayfielddefinition import ( + BoolArrayFieldDefinition, + BoolArrayFieldDefinitionTypedDict, +) +from .boolfielddefinition import BoolFieldDefinition, BoolFieldDefinitionTypedDict +from .densevectorfielddefinition import ( + DenseVectorFieldDefinition, + DenseVectorFieldDefinitionTypedDict, +) +from .floatarrayfielddefinition import ( + FloatArrayFieldDefinition, + FloatArrayFieldDefinitionTypedDict, +) +from .floatfielddefinition import FloatFieldDefinition, FloatFieldDefinitionTypedDict +from .intarrayfielddefinition import ( + IntArrayFieldDefinition, + IntArrayFieldDefinitionTypedDict, +) +from .intfielddefinition import IntFieldDefinition, IntFieldDefinitionTypedDict +from .jsonfielddefinition import JSONFieldDefinition, JSONFieldDefinitionTypedDict +from .keywordarrayfielddefinition import ( + KeywordArrayFieldDefinition, + KeywordArrayFieldDefinitionTypedDict, +) +from .keywordfielddefinition import ( + KeywordFieldDefinition, + KeywordFieldDefinitionTypedDict, +) +from .longarrayfielddefinition import ( + LongArrayFieldDefinition, + LongArrayFieldDefinitionTypedDict, +) +from .longfielddefinition import LongFieldDefinition, LongFieldDefinitionTypedDict +from .textarrayfielddefinition import ( + TextArrayFieldDefinition, + TextArrayFieldDefinitionTypedDict, +) +from .textfielddefinition import TextFieldDefinition, TextFieldDefinitionTypedDict +from .timestamparrayfielddefinition import ( + TimestampArrayFieldDefinition, + TimestampArrayFieldDefinitionTypedDict, +) +from .timestampfielddefinition import ( + TimestampFieldDefinition, + TimestampFieldDefinitionTypedDict, +) +from functools import partial +from mistralai.client.types import BaseModel, UNSET_SENTINEL +from mistralai.client.utils.unions import parse_open_union +from pydantic import ConfigDict, model_serializer +from pydantic.functional_validators import BeforeValidator +from typing import Any, Dict, Literal, Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +DocumentFieldsTypedDict = TypeAliasType( + "DocumentFieldsTypedDict", + Union[ + TextFieldDefinitionTypedDict, + KeywordFieldDefinitionTypedDict, + IntFieldDefinitionTypedDict, + LongFieldDefinitionTypedDict, + FloatFieldDefinitionTypedDict, + BoolFieldDefinitionTypedDict, + TimestampFieldDefinitionTypedDict, + JSONFieldDefinitionTypedDict, + DenseVectorFieldDefinitionTypedDict, + TextArrayFieldDefinitionTypedDict, + KeywordArrayFieldDefinitionTypedDict, + IntArrayFieldDefinitionTypedDict, + LongArrayFieldDefinitionTypedDict, + FloatArrayFieldDefinitionTypedDict, + BoolArrayFieldDefinitionTypedDict, + TimestampArrayFieldDefinitionTypedDict, + ], +) + + +class UnknownDocumentFields(BaseModel): + r"""A DocumentFields variant the SDK doesn't recognize. Preserves the raw payload.""" + + type: Literal["UNKNOWN"] = "UNKNOWN" + raw: Any + is_unknown: Literal[True] = True + + model_config = ConfigDict(frozen=True) + + +_DOCUMENT_FIELDS_VARIANTS: dict[str, Any] = { + "bool": BoolFieldDefinition, + "bool[]": BoolArrayFieldDefinition, + "dense_vector": DenseVectorFieldDefinition, + "float": FloatFieldDefinition, + "float[]": FloatArrayFieldDefinition, + "int": IntFieldDefinition, + "int[]": IntArrayFieldDefinition, + "json": JSONFieldDefinition, + "keyword": KeywordFieldDefinition, + "keyword[]": KeywordArrayFieldDefinition, + "long": LongFieldDefinition, + "long[]": LongArrayFieldDefinition, + "text": TextFieldDefinition, + "text[]": TextArrayFieldDefinition, + "timestamp": TimestampFieldDefinition, + "timestamp[]": TimestampArrayFieldDefinition, +} + + +DocumentFields = Annotated[ + Union[ + BoolFieldDefinition, + BoolArrayFieldDefinition, + DenseVectorFieldDefinition, + FloatFieldDefinition, + FloatArrayFieldDefinition, + IntFieldDefinition, + IntArrayFieldDefinition, + JSONFieldDefinition, + KeywordFieldDefinition, + KeywordArrayFieldDefinition, + LongFieldDefinition, + LongArrayFieldDefinition, + TextFieldDefinition, + TextArrayFieldDefinition, + TimestampFieldDefinition, + TimestampArrayFieldDefinition, + UnknownDocumentFields, + ], + BeforeValidator( + partial( + parse_open_union, + disc_key="type", + variants=_DOCUMENT_FIELDS_VARIANTS, + unknown_cls=UnknownDocumentFields, + union_name="DocumentFields", + ) + ), +] + + +ChunkFieldsTypedDict = TypeAliasType( + "ChunkFieldsTypedDict", + Union[ + TextFieldDefinitionTypedDict, + KeywordFieldDefinitionTypedDict, + IntFieldDefinitionTypedDict, + LongFieldDefinitionTypedDict, + FloatFieldDefinitionTypedDict, + BoolFieldDefinitionTypedDict, + TimestampFieldDefinitionTypedDict, + JSONFieldDefinitionTypedDict, + DenseVectorFieldDefinitionTypedDict, + TextArrayFieldDefinitionTypedDict, + KeywordArrayFieldDefinitionTypedDict, + IntArrayFieldDefinitionTypedDict, + LongArrayFieldDefinitionTypedDict, + FloatArrayFieldDefinitionTypedDict, + BoolArrayFieldDefinitionTypedDict, + TimestampArrayFieldDefinitionTypedDict, + ], +) + + +class UnknownChunkFields(BaseModel): + r"""A ChunkFields variant the SDK doesn't recognize. Preserves the raw payload.""" + + type: Literal["UNKNOWN"] = "UNKNOWN" + raw: Any + is_unknown: Literal[True] = True + + model_config = ConfigDict(frozen=True) + + +_CHUNK_FIELDS_VARIANTS: dict[str, Any] = { + "bool": BoolFieldDefinition, + "bool[]": BoolArrayFieldDefinition, + "dense_vector": DenseVectorFieldDefinition, + "float": FloatFieldDefinition, + "float[]": FloatArrayFieldDefinition, + "int": IntFieldDefinition, + "int[]": IntArrayFieldDefinition, + "json": JSONFieldDefinition, + "keyword": KeywordFieldDefinition, + "keyword[]": KeywordArrayFieldDefinition, + "long": LongFieldDefinition, + "long[]": LongArrayFieldDefinition, + "text": TextFieldDefinition, + "text[]": TextArrayFieldDefinition, + "timestamp": TimestampFieldDefinition, + "timestamp[]": TimestampArrayFieldDefinition, +} + + +ChunkFields = Annotated[ + Union[ + BoolFieldDefinition, + BoolArrayFieldDefinition, + DenseVectorFieldDefinition, + FloatFieldDefinition, + FloatArrayFieldDefinition, + IntFieldDefinition, + IntArrayFieldDefinition, + JSONFieldDefinition, + KeywordFieldDefinition, + KeywordArrayFieldDefinition, + LongFieldDefinition, + LongArrayFieldDefinition, + TextFieldDefinition, + TextArrayFieldDefinition, + TimestampFieldDefinition, + TimestampArrayFieldDefinition, + UnknownChunkFields, + ], + BeforeValidator( + partial( + parse_open_union, + disc_key="type", + variants=_CHUNK_FIELDS_VARIANTS, + unknown_cls=UnknownChunkFields, + union_name="ChunkFields", + ) + ), +] + + +class ManagedIndexFieldsTypedDict(TypedDict): + document_fields: NotRequired[Dict[str, DocumentFieldsTypedDict]] + chunk_fields: NotRequired[Dict[str, ChunkFieldsTypedDict]] + + +class ManagedIndexFields(BaseModel): + document_fields: Optional[Dict[str, DocumentFields]] = None + + chunk_fields: Optional[Dict[str, ChunkFields]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["document_fields", "chunk_fields"]) + 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/managedindexresponse.py b/src/mistralai/client/models/managedindexresponse.py new file mode 100644 index 000000000..11c745f2b --- /dev/null +++ b/src/mistralai/client/models/managedindexresponse.py @@ -0,0 +1,84 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: dbe9d8d63b41 + +from __future__ import annotations +from .managedindexconfig import ManagedIndexConfig, ManagedIndexConfigTypedDict +from .managedindexfields import ManagedIndexFields, ManagedIndexFieldsTypedDict +from .managedindexstatus import ManagedIndexStatus +from datetime import datetime +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +import pydantic +from pydantic import model_serializer +from typing_extensions import Annotated, NotRequired, TypedDict + + +class ManagedIndexResponseTypedDict(TypedDict): + r"""Wire representation of a managed index (decoupled from the domain model).""" + + id: str + name: str + status: ManagedIndexStatus + r"""Lifecycle of an index. Derived, not stored -- see ``managed_index_from_row``.""" + schema_: ManagedIndexFieldsTypedDict + config: ManagedIndexConfigTypedDict + status_message: NotRequired[Nullable[str]] + created_at: NotRequired[Nullable[datetime]] + modified_at: NotRequired[Nullable[datetime]] + + +class ManagedIndexResponse(BaseModel): + r"""Wire representation of a managed index (decoupled from the domain model).""" + + id: str + + name: str + + status: ManagedIndexStatus + r"""Lifecycle of an index. Derived, not stored -- see ``managed_index_from_row``.""" + + schema_: Annotated[ManagedIndexFields, pydantic.Field(alias="schema")] + + config: ManagedIndexConfig + + status_message: OptionalNullable[str] = UNSET + + created_at: OptionalNullable[datetime] = UNSET + + modified_at: OptionalNullable[datetime] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["status_message", "created_at", "modified_at"]) + nullable_fields = set(["status_message", "created_at", "modified_at"]) + 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: + ManagedIndexResponse.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/managedindexstatus.py b/src/mistralai/client/models/managedindexstatus.py new file mode 100644 index 000000000..ea7378d64 --- /dev/null +++ b/src/mistralai/client/models/managedindexstatus.py @@ -0,0 +1,18 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: fea33d85d5a7 + +from __future__ import annotations +from mistralai.client.types import UnrecognizedStr +from typing import Literal, Union + + +ManagedIndexStatus = Union[ + Literal[ + "provisioning", + "ready", + "failed", + "deleting", + ], + UnrecognizedStr, +] +r"""Lifecycle of an index. Derived, not stored -- see ``managed_index_from_row``.""" diff --git a/src/mistralai/client/models/mcpconnector.py b/src/mistralai/client/models/mcpconnector.py index 3d60e981f..c007bbcc8 100644 --- a/src/mistralai/client/models/mcpconnector.py +++ b/src/mistralai/client/models/mcpconnector.py @@ -46,6 +46,8 @@ class MCPConnectorTypedDict(TypedDict): owner_type: ConsumerType visibility: ResourceVisibility private_tool_execution: bool + supports_mcp: bool + r"""Whether this connector exposes an MCP-compatible tool interface.""" title: NotRequired[Nullable[str]] server: NotRequired[Nullable[str]] icon_url: NotRequired[Nullable[str]] @@ -89,6 +91,9 @@ class MCPConnector(BaseModel): private_tool_execution: bool + supports_mcp: bool + r"""Whether this connector exposes an MCP-compatible tool interface.""" + title: OptionalNullable[str] = UNSET server: OptionalNullable[str] = UNSET diff --git a/src/mistralai/client/models/mistralembeddingmodel.py b/src/mistralai/client/models/mistralembeddingmodel.py new file mode 100644 index 000000000..24f7c6463 --- /dev/null +++ b/src/mistralai/client/models/mistralembeddingmodel.py @@ -0,0 +1,58 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: bac0b4caf749 + +from __future__ import annotations +from .distancemetric import DistanceMetric +from .vectordtype import VectorDType +from mistralai.client.types import BaseModel, 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, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class MistralEmbeddingModelTypedDict(TypedDict): + name: str + dimensions: int + type: Literal["mistral"] + dtype: NotRequired[VectorDType] + distance_metric: NotRequired[DistanceMetric] + + +class MistralEmbeddingModel(BaseModel): + name: str + + dimensions: int + + type: Annotated[ + Annotated[Literal["mistral"], AfterValidator(validate_const("mistral"))], + pydantic.Field(alias="type"), + ] = "mistral" + + dtype: Optional[VectorDType] = None + + distance_metric: Optional[DistanceMetric] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["dtype", "distance_metric"]) + 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 + + +try: + MistralEmbeddingModel.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/nearestneighbourretriever.py b/src/mistralai/client/models/nearestneighbourretriever.py new file mode 100644 index 000000000..7e3f41684 --- /dev/null +++ b/src/mistralai/client/models/nearestneighbourretriever.py @@ -0,0 +1,108 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 0eda9ae35fc4 + +from __future__ import annotations +from .and_ import And, AndTypedDict +from .equal import Equal, EqualTypedDict +from .in_ import In, InTypedDict +from .not_ import Not, NotTypedDict +from .or_ import Or, OrTypedDict +from .range import Range, RangeTypedDict +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from mistralai.client.utils import validate_const +import pydantic +from pydantic import Field, SerializeAsAny, model_serializer +from pydantic.functional_validators import AfterValidator +from typing import List, Literal, Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +NearestNeighbourRetrieverFilterTypedDict = TypeAliasType( + "NearestNeighbourRetrieverFilterTypedDict", + Union[ + AndTypedDict, + OrTypedDict, + NotTypedDict, + EqualTypedDict, + InTypedDict, + RangeTypedDict, + ], +) + + +NearestNeighbourRetrieverFilter = Annotated[ + Union[And, Equal, In, Not, Or, Range], Field(discriminator="type") +] + + +class NearestNeighbourRetrieverTypedDict(TypedDict): + r"""Retrieve document chunks whose embeddings are closest to the query's.""" + + top_k: NotRequired[int] + type: Literal["nearest_neighbour"] + query: NotRequired[Nullable[str]] + query_embedding: NotRequired[Nullable[List[float]]] + field: NotRequired[Nullable[str]] + filter_: NotRequired[Nullable[NearestNeighbourRetrieverFilterTypedDict]] + + +class NearestNeighbourRetriever(BaseModel): + r"""Retrieve document chunks whose embeddings are closest to the query's.""" + + top_k: Optional[int] = 20 + + type: Annotated[ + Annotated[ + Literal["nearest_neighbour"], + AfterValidator(validate_const("nearest_neighbour")), + ], + pydantic.Field(alias="type"), + ] = "nearest_neighbour" + + query: OptionalNullable[str] = UNSET + + query_embedding: OptionalNullable[List[float]] = UNSET + + field: OptionalNullable[str] = UNSET + + filter_: Annotated[ + SerializeAsAny[OptionalNullable[NearestNeighbourRetrieverFilter]], + pydantic.Field(alias="filter"), + ] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["top_k", "query", "query_embedding", "field", "filter"]) + nullable_fields = set(["query", "query_embedding", "field", "filter"]) + 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: + NearestNeighbourRetriever.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/not_.py b/src/mistralai/client/models/not_.py new file mode 100644 index 000000000..ccbc9909c --- /dev/null +++ b/src/mistralai/client/models/not_.py @@ -0,0 +1,60 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 460e484fe1f6 + +from __future__ import annotations +from .equal import Equal, EqualTypedDict +from .in_ import In, InTypedDict +from .range import Range, RangeTypedDict +from mistralai.client.types import BaseModel +from mistralai.client.utils import validate_const +import pydantic +from pydantic import Field +from pydantic.functional_validators import AfterValidator +from typing import Literal, TYPE_CHECKING, Union +from typing_extensions import Annotated, TypeAliasType, TypedDict + +if TYPE_CHECKING: + from .and_ import And, AndTypedDict + from .or_ import Or, OrTypedDict + + +class NotTypedDict(TypedDict): + r"""Negate a filter: rows must not match.""" + + match: NotMatchTypedDict + type: Literal["not"] + + +class Not(BaseModel): + r"""Negate a filter: rows must not match.""" + + match: NotMatch + + type: Annotated[ + Annotated[Literal["not"], AfterValidator(validate_const("not"))], + pydantic.Field(alias="type"), + ] = "not" + + +NotMatchTypedDict = TypeAliasType( + "NotMatchTypedDict", + Union[ + "AndTypedDict", + "OrTypedDict", + "NotTypedDict", + EqualTypedDict, + InTypedDict, + RangeTypedDict, + ], +) + + +NotMatch = Annotated[ + Union["And", Equal, In, Not, "Or", Range], Field(discriminator="type") +] + + +try: + Not.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/observabilityerrorcode.py b/src/mistralai/client/models/observabilityerrorcode.py index 04382dac3..f9ec4fd2b 100644 --- a/src/mistralai/client/models/observabilityerrorcode.py +++ b/src/mistralai/client/models/observabilityerrorcode.py @@ -42,6 +42,7 @@ "EVALUATION_RUN_TRANSITION_IS_INVALID", "EVALUATION_RUN_TRANSITION_IS_RUNNING_ALREADY", "EVALUATION_RUN_TRANSITION_ERROR", + "EVALUATION_RUN_OUTPUT_RECORD_CONFLICT", "TEMPLATE_ERROR", "TEMPLATE_SYNTAX_ERROR", "PROJECT_NAME_ALREADY_EXISTS", diff --git a/src/mistralai/client/models/or_.py b/src/mistralai/client/models/or_.py new file mode 100644 index 000000000..152a27e1a --- /dev/null +++ b/src/mistralai/client/models/or_.py @@ -0,0 +1,60 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: faf1cc13bc60 + +from __future__ import annotations +from .equal import Equal, EqualTypedDict +from .in_ import In, InTypedDict +from .range import Range, RangeTypedDict +from mistralai.client.types import BaseModel +from mistralai.client.utils import validate_const +import pydantic +from pydantic import Field +from pydantic.functional_validators import AfterValidator +from typing import List, Literal, TYPE_CHECKING, Union +from typing_extensions import Annotated, TypeAliasType, TypedDict + +if TYPE_CHECKING: + from .and_ import And, AndTypedDict + from .not_ import Not, NotTypedDict + + +class OrTypedDict(TypedDict): + r"""Disjunction: rows must match at least one sub-filter.""" + + matches: List[OrMatchTypedDict] + type: Literal["or"] + + +class Or(BaseModel): + r"""Disjunction: rows must match at least one sub-filter.""" + + matches: List[OrMatch] + + type: Annotated[ + Annotated[Literal["or"], AfterValidator(validate_const("or"))], + pydantic.Field(alias="type"), + ] = "or" + + +OrMatchTypedDict = TypeAliasType( + "OrMatchTypedDict", + Union[ + "AndTypedDict", + "OrTypedDict", + "NotTypedDict", + EqualTypedDict, + InTypedDict, + RangeTypedDict, + ], +) + + +OrMatch = Annotated[ + Union["And", Equal, In, "Not", Or, Range], Field(discriminator="type") +] + + +try: + Or.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/pipelineconfig.py b/src/mistralai/client/models/pipelineconfig.py index a84c3fb65..de82e45a1 100644 --- a/src/mistralai/client/models/pipelineconfig.py +++ b/src/mistralai/client/models/pipelineconfig.py @@ -36,11 +36,8 @@ class PipelineConfigTypedDict(TypedDict): pipeline_kind: PipelineKind selectors: List[PipelineConfigSelectorTypedDict] enabled: bool - definition_hash: str - definition: PipelineConfigDefinitionTypedDict + definitions: List[PipelineConfigDefinitionTypedDict] description: NotRequired[Nullable[str]] - slug: NotRequired[Nullable[str]] - group: NotRequired[Nullable[str]] class PipelineConfig(BaseModel): @@ -64,20 +61,14 @@ class PipelineConfig(BaseModel): enabled: bool - definition_hash: str - - definition: PipelineConfigDefinition + definitions: List[PipelineConfigDefinition] description: OptionalNullable[str] = UNSET - slug: OptionalNullable[str] = UNSET - - group: OptionalNullable[str] = UNSET - @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["description", "slug", "group"]) - nullable_fields = set(["deleted_at", "description", "slug", "group"]) + optional_fields = set(["description"]) + nullable_fields = set(["deleted_at", "description"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/range.py b/src/mistralai/client/models/range.py new file mode 100644 index 000000000..44326eff1 --- /dev/null +++ b/src/mistralai/client/models/range.py @@ -0,0 +1,109 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: ecbb09b0c865 + +from __future__ import annotations +from datetime import datetime +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, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +GtTypedDict = TypeAliasType("GtTypedDict", Union[int, float, datetime]) + + +Gt = TypeAliasType("Gt", Union[int, float, datetime]) + + +GteTypedDict = TypeAliasType("GteTypedDict", Union[int, float, datetime]) + + +Gte = TypeAliasType("Gte", Union[int, float, datetime]) + + +LtTypedDict = TypeAliasType("LtTypedDict", Union[int, float, datetime]) + + +Lt = TypeAliasType("Lt", Union[int, float, datetime]) + + +LteTypedDict = TypeAliasType("LteTypedDict", Union[int, float, datetime]) + + +Lte = TypeAliasType("Lte", Union[int, float, datetime]) + + +class RangeTypedDict(TypedDict): + r"""Check that the given field falls in a range. + + Requires at least one operator. + """ + + field: str + type: Literal["range"] + gt: NotRequired[Nullable[GtTypedDict]] + gte: NotRequired[Nullable[GteTypedDict]] + lt: NotRequired[Nullable[LtTypedDict]] + lte: NotRequired[Nullable[LteTypedDict]] + + +class Range(BaseModel): + r"""Check that the given field falls in a range. + + Requires at least one operator. + """ + + field: str + + type: Annotated[ + Annotated[Literal["range"], AfterValidator(validate_const("range"))], + pydantic.Field(alias="type"), + ] = "range" + + gt: OptionalNullable[Gt] = UNSET + + gte: OptionalNullable[Gte] = UNSET + + lt: OptionalNullable[Lt] = UNSET + + lte: OptionalNullable[Lte] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["gt", "gte", "lt", "lte"]) + nullable_fields = set(["gt", "gte", "lt", "lte"]) + 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: + Range.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/rejecteddocumentresponse.py b/src/mistralai/client/models/rejecteddocumentresponse.py new file mode 100644 index 000000000..b9263ee7d --- /dev/null +++ b/src/mistralai/client/models/rejecteddocumentresponse.py @@ -0,0 +1,37 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 363409d8356a + +from __future__ import annotations +from .documentfielderrorresponse import ( + DocumentFieldErrorResponse, + DocumentFieldErrorResponseTypedDict, +) +from mistralai.client.types import BaseModel +from mistralai.client.utils import validate_const +import pydantic +from pydantic.functional_validators import AfterValidator +from typing import List, Literal +from typing_extensions import Annotated, TypedDict + + +class RejectedDocumentResponseTypedDict(TypedDict): + position: int + errors: List[DocumentFieldErrorResponseTypedDict] + status: Literal["rejected"] + + +class RejectedDocumentResponse(BaseModel): + position: int + + errors: List[DocumentFieldErrorResponse] + + status: Annotated[ + Annotated[Literal["rejected"], AfterValidator(validate_const("rejected"))], + pydantic.Field(alias="status"), + ] = "rejected" + + +try: + RejectedDocumentResponse.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/search_index_v1_rag_managed_indexes_index_name_search_postop.py b/src/mistralai/client/models/search_index_v1_rag_managed_indexes_index_name_search_postop.py new file mode 100644 index 000000000..eeeea0816 --- /dev/null +++ b/src/mistralai/client/models/search_index_v1_rag_managed_indexes_index_name_search_postop.py @@ -0,0 +1,24 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: f3dbcffbc450 + +from __future__ import annotations +from .searchrequest import SearchRequest, SearchRequestTypedDict +from mistralai.client.types import BaseModel +from mistralai.client.utils import FieldMetadata, PathParamMetadata, RequestMetadata +from typing_extensions import Annotated, TypedDict + + +class SearchIndexV1RagManagedIndexesIndexNameSearchPostRequestTypedDict(TypedDict): + index_name: str + search_request: SearchRequestTypedDict + + +class SearchIndexV1RagManagedIndexesIndexNameSearchPostRequest(BaseModel): + index_name: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + search_request: Annotated[ + SearchRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] diff --git a/src/mistralai/client/models/searchchunkresponse.py b/src/mistralai/client/models/searchchunkresponse.py new file mode 100644 index 000000000..49574a43a --- /dev/null +++ b/src/mistralai/client/models/searchchunkresponse.py @@ -0,0 +1,92 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 3a83dccb886b + +from __future__ import annotations +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +import pydantic +from pydantic import ConfigDict, model_serializer +from typing import Any, Dict, Optional +from typing_extensions import NotRequired, TypedDict + + +class SearchChunkResponseTypedDict(TypedDict): + r"""Wire chunk: atom fields plus any custom fields (via ``extra``).""" + + id: str + source_id: str + locator: str + start_offset: Nullable[int] + end_offset: Nullable[int] + chunk_type: str + content: str + parent_ref: NotRequired[Nullable[str]] + metadata: NotRequired[Dict[str, Any]] + + +class SearchChunkResponse(BaseModel): + r"""Wire chunk: atom fields plus any custom fields (via ``extra``).""" + + model_config = ConfigDict( + populate_by_name=True, arbitrary_types_allowed=True, extra="allow" + ) + __pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False) + + id: str + + source_id: str + + locator: str + + start_offset: Nullable[int] + + end_offset: Nullable[int] + + chunk_type: str + + content: str + + parent_ref: OptionalNullable[str] = UNSET + + metadata: Optional[Dict[str, Any]] = None + + @property + def additional_properties(self): + return self.__pydantic_extra__ + + @additional_properties.setter + def additional_properties(self, value): + self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride] + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["parent_ref", "metadata"]) + nullable_fields = set(["start_offset", "end_offset", "parent_ref"]) + 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)) + serialized.pop(k, serialized.pop(n, None)) + 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 + for k, v in serialized.items(): + m[k] = v + + return m diff --git a/src/mistralai/client/models/searchhitresponse.py b/src/mistralai/client/models/searchhitresponse.py new file mode 100644 index 000000000..7ae8cd51d --- /dev/null +++ b/src/mistralai/client/models/searchhitresponse.py @@ -0,0 +1,58 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 5962624e92e3 + +from __future__ import annotations +from .searchchunkresponse import SearchChunkResponse, SearchChunkResponseTypedDict +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from pydantic import model_serializer +from typing_extensions import NotRequired, TypedDict + + +class SearchHitResponseTypedDict(TypedDict): + chunk: SearchChunkResponseTypedDict + r"""Wire chunk: atom fields plus any custom fields (via ``extra``).""" + score: float + index_name: str + distance: NotRequired[Nullable[float]] + + +class SearchHitResponse(BaseModel): + chunk: SearchChunkResponse + r"""Wire chunk: atom fields plus any custom fields (via ``extra``).""" + + score: float + + index_name: str + + distance: OptionalNullable[float] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["distance"]) + nullable_fields = set(["distance"]) + 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/searchrequest.py b/src/mistralai/client/models/searchrequest.py new file mode 100644 index 000000000..d2bd190c0 --- /dev/null +++ b/src/mistralai/client/models/searchrequest.py @@ -0,0 +1,32 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 317839369fe7 + +from __future__ import annotations +from .keywordretriever import KeywordRetriever, KeywordRetrieverTypedDict +from .nearestneighbourretriever import ( + NearestNeighbourRetriever, + NearestNeighbourRetrieverTypedDict, +) +from mistralai.client.types import BaseModel +from pydantic import Field +from typing import Union +from typing_extensions import Annotated, TypeAliasType, TypedDict + + +RetrieverTypedDict = TypeAliasType( + "RetrieverTypedDict", + Union[KeywordRetrieverTypedDict, NearestNeighbourRetrieverTypedDict], +) + + +Retriever = Annotated[ + Union[KeywordRetriever, NearestNeighbourRetriever], Field(discriminator="type") +] + + +class SearchRequestTypedDict(TypedDict): + retriever: RetrieverTypedDict + + +class SearchRequest(BaseModel): + retriever: Retriever diff --git a/src/mistralai/client/models/searchresponse.py b/src/mistralai/client/models/searchresponse.py new file mode 100644 index 000000000..172a812d2 --- /dev/null +++ b/src/mistralai/client/models/searchresponse.py @@ -0,0 +1,16 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 57923d3e043c + +from __future__ import annotations +from .searchhitresponse import SearchHitResponse, SearchHitResponseTypedDict +from mistralai.client.types import BaseModel +from typing import List +from typing_extensions import TypedDict + + +class SearchResponseTypedDict(TypedDict): + hits: List[SearchHitResponseTypedDict] + + +class SearchResponse(BaseModel): + hits: List[SearchHitResponse] diff --git a/src/mistralai/client/models/textarrayfielddefinition.py b/src/mistralai/client/models/textarrayfielddefinition.py new file mode 100644 index 000000000..414a4256f --- /dev/null +++ b/src/mistralai/client/models/textarrayfielddefinition.py @@ -0,0 +1,71 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 0ee00c96aed5 + +from __future__ import annotations +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 Any, Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class TextArrayFieldDefinitionTypedDict(TypedDict): + indexed: NotRequired[bool] + required: NotRequired[bool] + system: NotRequired[bool] + default: NotRequired[Nullable[Any]] + type: Literal["text[]"] + + +class TextArrayFieldDefinition(BaseModel): + indexed: Optional[bool] = False + + required: Optional[bool] = False + + system: Optional[bool] = False + + default: OptionalNullable[Any] = UNSET + + 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(["indexed", "required", "system", "default"]) + nullable_fields = set(["default"]) + 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: + TextArrayFieldDefinition.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/textfielddefinition.py b/src/mistralai/client/models/textfielddefinition.py new file mode 100644 index 000000000..c3ec68e66 --- /dev/null +++ b/src/mistralai/client/models/textfielddefinition.py @@ -0,0 +1,71 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 7868e52049a0 + +from __future__ import annotations +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 Any, Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class TextFieldDefinitionTypedDict(TypedDict): + indexed: NotRequired[bool] + required: NotRequired[bool] + system: NotRequired[bool] + default: NotRequired[Nullable[Any]] + type: Literal["text"] + + +class TextFieldDefinition(BaseModel): + indexed: Optional[bool] = True + + required: Optional[bool] = False + + system: Optional[bool] = False + + default: OptionalNullable[Any] = UNSET + + 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(["indexed", "required", "system", "default"]) + nullable_fields = set(["default"]) + 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: + TextFieldDefinition.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/timestamparrayfielddefinition.py b/src/mistralai/client/models/timestamparrayfielddefinition.py new file mode 100644 index 000000000..5252a7f54 --- /dev/null +++ b/src/mistralai/client/models/timestamparrayfielddefinition.py @@ -0,0 +1,73 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: c78a957c59dc + +from __future__ import annotations +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 Any, Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class TimestampArrayFieldDefinitionTypedDict(TypedDict): + indexed: NotRequired[bool] + required: NotRequired[bool] + system: NotRequired[bool] + default: NotRequired[Nullable[Any]] + type: Literal["timestamp[]"] + + +class TimestampArrayFieldDefinition(BaseModel): + indexed: Optional[bool] = False + + required: Optional[bool] = False + + system: Optional[bool] = False + + default: OptionalNullable[Any] = UNSET + + type: Annotated[ + Annotated[ + Literal["timestamp[]"], AfterValidator(validate_const("timestamp[]")) + ], + pydantic.Field(alias="type"), + ] = "timestamp[]" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["indexed", "required", "system", "default"]) + nullable_fields = set(["default"]) + 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: + TimestampArrayFieldDefinition.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/timestampfielddefinition.py b/src/mistralai/client/models/timestampfielddefinition.py new file mode 100644 index 000000000..4d51036ae --- /dev/null +++ b/src/mistralai/client/models/timestampfielddefinition.py @@ -0,0 +1,71 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 4eea6b96376c + +from __future__ import annotations +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 Any, Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class TimestampFieldDefinitionTypedDict(TypedDict): + indexed: NotRequired[bool] + required: NotRequired[bool] + system: NotRequired[bool] + default: NotRequired[Nullable[Any]] + type: Literal["timestamp"] + + +class TimestampFieldDefinition(BaseModel): + indexed: Optional[bool] = False + + required: Optional[bool] = False + + system: Optional[bool] = False + + default: OptionalNullable[Any] = UNSET + + type: Annotated[ + Annotated[Literal["timestamp"], AfterValidator(validate_const("timestamp"))], + pydantic.Field(alias="type"), + ] = "timestamp" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["indexed", "required", "system", "default"]) + nullable_fields = set(["default"]) + 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: + TimestampFieldDefinition.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/update_index_v1_rag_managed_indexes_index_name_putop.py b/src/mistralai/client/models/update_index_v1_rag_managed_indexes_index_name_putop.py new file mode 100644 index 000000000..35e92f08f --- /dev/null +++ b/src/mistralai/client/models/update_index_v1_rag_managed_indexes_index_name_putop.py @@ -0,0 +1,27 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 8843198a8121 + +from __future__ import annotations +from .updatemanagedindexrequest import ( + UpdateManagedIndexRequest, + UpdateManagedIndexRequestTypedDict, +) +from mistralai.client.types import BaseModel +from mistralai.client.utils import FieldMetadata, PathParamMetadata, RequestMetadata +from typing_extensions import Annotated, TypedDict + + +class UpdateIndexV1RagManagedIndexesIndexNamePutRequestTypedDict(TypedDict): + index_name: str + update_managed_index_request: UpdateManagedIndexRequestTypedDict + + +class UpdateIndexV1RagManagedIndexesIndexNamePutRequest(BaseModel): + index_name: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + update_managed_index_request: Annotated[ + UpdateManagedIndexRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] diff --git a/src/mistralai/client/models/updatemanagedindexrequest.py b/src/mistralai/client/models/updatemanagedindexrequest.py new file mode 100644 index 000000000..14d5ef5c3 --- /dev/null +++ b/src/mistralai/client/models/updatemanagedindexrequest.py @@ -0,0 +1,34 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 74e61d1413aa + +from __future__ import annotations +from .managedindexfields import ManagedIndexFields, ManagedIndexFieldsTypedDict +from mistralai.client.types import BaseModel +import pydantic +from typing_extensions import Annotated, TypedDict + + +class UpdateManagedIndexRequestTypedDict(TypedDict): + r"""The schema an index should have. Sent whole, not as a patch. + + No ``config``: the embedding configuration is fixed at creation, so there is + nothing for a caller to send back. + """ + + schema_: ManagedIndexFieldsTypedDict + + +class UpdateManagedIndexRequest(BaseModel): + r"""The schema an index should have. Sent whole, not as a patch. + + No ``config``: the embedding configuration is fixed at creation, so there is + nothing for a caller to send back. + """ + + schema_: Annotated[ManagedIndexFields, pydantic.Field(alias="schema")] + + +try: + UpdateManagedIndexRequest.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/updatepipelineconfigrequest.py b/src/mistralai/client/models/updatepipelineconfigrequest.py index 9e335b988..04bc15993 100644 --- a/src/mistralai/client/models/updatepipelineconfigrequest.py +++ b/src/mistralai/client/models/updatepipelineconfigrequest.py @@ -24,37 +24,31 @@ class UpdatePipelineConfigRequestTypedDict(TypedDict): + name: str pipeline_kind: PipelineKind selectors: List[PipelineConfigSelectorTypedDict] - definition: PipelineConfigDefinitionTypedDict - name: str + definitions: List[PipelineConfigDefinitionTypedDict] enabled: bool description: NotRequired[Nullable[str]] - slug: NotRequired[Nullable[str]] - group: NotRequired[Nullable[str]] class UpdatePipelineConfigRequest(BaseModel): + name: str + pipeline_kind: PipelineKind selectors: List[PipelineConfigSelector] - definition: PipelineConfigDefinition - - name: str + definitions: List[PipelineConfigDefinition] enabled: bool description: OptionalNullable[str] = UNSET - slug: OptionalNullable[str] = UNSET - - group: OptionalNullable[str] = UNSET - @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["description", "slug", "group"]) - nullable_fields = set(["description", "slug", "group"]) + optional_fields = set(["description"]) + nullable_fields = set(["description"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/vectordtype.py b/src/mistralai/client/models/vectordtype.py new file mode 100644 index 000000000..ad1b4e2dc --- /dev/null +++ b/src/mistralai/client/models/vectordtype.py @@ -0,0 +1,15 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: f0e8694b67b2 + +from __future__ import annotations +from mistralai.client.types import UnrecognizedStr +from typing import Literal, Union + + +VectorDType = Union[ + Literal[ + "float16", + "float32", + ], + UnrecognizedStr, +] diff --git a/src/mistralai/client/models/voiceresponse.py b/src/mistralai/client/models/voiceresponse.py index ad64508f8..5b76a72f8 100644 --- a/src/mistralai/client/models/voiceresponse.py +++ b/src/mistralai/client/models/voiceresponse.py @@ -9,12 +9,22 @@ OptionalNullable, UNSET, UNSET_SENTINEL, + UnrecognizedStr, ) from pydantic import model_serializer -from typing import List, Optional +from typing import List, Literal, Optional, Union from typing_extensions import NotRequired, TypedDict +VoiceResponseType = Union[ + Literal[ + "preset", + "custom", + ], + UnrecognizedStr, +] + + class VoiceResponseTypedDict(TypedDict): r"""Schema for voice response""" @@ -22,6 +32,7 @@ class VoiceResponseTypedDict(TypedDict): id: str created_at: datetime user_id: Nullable[str] + type: VoiceResponseType slug: NotRequired[Nullable[str]] languages: NotRequired[List[str]] gender: NotRequired[Nullable[str]] @@ -44,6 +55,8 @@ class VoiceResponse(BaseModel): user_id: Nullable[str] + type: VoiceResponseType + slug: OptionalNullable[str] = UNSET languages: Optional[List[str]] = None diff --git a/src/mistralai/client/models/workflowexecutioncanceledresponse.py b/src/mistralai/client/models/workflowexecutioncanceledresponse.py index 05b261a25..fd57d6cb1 100644 --- a/src/mistralai/client/models/workflowexecutioncanceledresponse.py +++ b/src/mistralai/client/models/workflowexecutioncanceledresponse.py @@ -32,7 +32,9 @@ class WorkflowExecutionCanceledResponseTypedDict(TypedDict): continued_run_id: Nullable[str] r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str @@ -69,7 +71,10 @@ class WorkflowExecutionCanceledResponse(BaseModel): r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" @@ -103,6 +108,7 @@ def serialize_model(self, handler): "parent_workflow_exec_id", "continued_run_id", "first_execution_run_id", + "chain_run_id", "schedule_id", ] ) diff --git a/src/mistralai/client/models/workflowexecutioncompletedresponse.py b/src/mistralai/client/models/workflowexecutioncompletedresponse.py index c58745b18..8dc4616eb 100644 --- a/src/mistralai/client/models/workflowexecutioncompletedresponse.py +++ b/src/mistralai/client/models/workflowexecutioncompletedresponse.py @@ -32,7 +32,9 @@ class WorkflowExecutionCompletedResponseTypedDict(TypedDict): continued_run_id: Nullable[str] r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str @@ -69,7 +71,10 @@ class WorkflowExecutionCompletedResponse(BaseModel): r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" @@ -103,6 +108,7 @@ def serialize_model(self, handler): "parent_workflow_exec_id", "continued_run_id", "first_execution_run_id", + "chain_run_id", "schedule_id", ] ) diff --git a/src/mistralai/client/models/workflowexecutioncontinuedasnewresponse.py b/src/mistralai/client/models/workflowexecutioncontinuedasnewresponse.py index aadb8a347..3c2e5588f 100644 --- a/src/mistralai/client/models/workflowexecutioncontinuedasnewresponse.py +++ b/src/mistralai/client/models/workflowexecutioncontinuedasnewresponse.py @@ -33,7 +33,9 @@ class WorkflowExecutionContinuedAsNewResponseTypedDict(TypedDict): continued_run_id: Nullable[str] r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str @@ -71,7 +73,10 @@ class WorkflowExecutionContinuedAsNewResponse(BaseModel): r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" @@ -105,6 +110,7 @@ def serialize_model(self, handler): "parent_workflow_exec_id", "continued_run_id", "first_execution_run_id", + "chain_run_id", "schedule_id", ] ) diff --git a/src/mistralai/client/models/workflowexecutionfailedresponse.py b/src/mistralai/client/models/workflowexecutionfailedresponse.py index 736f7e7b7..d0480238a 100644 --- a/src/mistralai/client/models/workflowexecutionfailedresponse.py +++ b/src/mistralai/client/models/workflowexecutionfailedresponse.py @@ -32,7 +32,9 @@ class WorkflowExecutionFailedResponseTypedDict(TypedDict): continued_run_id: Nullable[str] r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str @@ -69,7 +71,10 @@ class WorkflowExecutionFailedResponse(BaseModel): r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" @@ -103,6 +108,7 @@ def serialize_model(self, handler): "parent_workflow_exec_id", "continued_run_id", "first_execution_run_id", + "chain_run_id", "schedule_id", ] ) diff --git a/src/mistralai/client/models/workflowexecutionrequest.py b/src/mistralai/client/models/workflowexecutionrequest.py index 20c674175..a7b3381f3 100644 --- a/src/mistralai/client/models/workflowexecutionrequest.py +++ b/src/mistralai/client/models/workflowexecutionrequest.py @@ -27,6 +27,8 @@ class WorkflowExecutionRequestTypedDict(TypedDict): 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.""" + traceparent: NotRequired[Nullable[str]] + r"""W3C trace context to join this execution to the caller's trace. Ignored when force_new_trace is set.""" extensions: NotRequired[Nullable[Dict[str, Any]]] r"""Plugin-specific data to propagate into WorkflowContext.extensions at execution time.""" task_queue: NotRequired[Nullable[str]] @@ -53,6 +55,9 @@ class WorkflowExecutionRequest(BaseModel): 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.""" + traceparent: OptionalNullable[str] = UNSET + r"""W3C trace context to join this execution to the caller's trace. Ignored when force_new_trace is set.""" + extensions: OptionalNullable[Dict[str, Any]] = UNSET r"""Plugin-specific data to propagate into WorkflowContext.extensions at execution time.""" @@ -77,6 +82,7 @@ def serialize_model(self, handler): "timeout_seconds", "custom_tracing_attributes", "force_new_trace", + "traceparent", "extensions", "task_queue", "deployment_name", @@ -88,6 +94,7 @@ def serialize_model(self, handler): "input", "timeout_seconds", "custom_tracing_attributes", + "traceparent", "extensions", "task_queue", "deployment_name", diff --git a/src/mistralai/client/models/workflowexecutionresponse.py b/src/mistralai/client/models/workflowexecutionresponse.py index 4c6f3aa93..4ac13c7e8 100644 --- a/src/mistralai/client/models/workflowexecutionresponse.py +++ b/src/mistralai/client/models/workflowexecutionresponse.py @@ -43,7 +43,7 @@ class WorkflowExecutionResponseTypedDict(TypedDict): r"""The ID of the user who triggered the execution""" total_duration_ms: NotRequired[Nullable[int]] r"""The total duration of the trace in milliseconds""" - search_keys: NotRequired[Nullable[Dict[str, str]]] + search_keys: NotRequired[Nullable[Dict[str, Nullable[str]]]] r"""The execution's search keys (metadata), if requested via include_search_keys.""" @@ -87,7 +87,7 @@ class WorkflowExecutionResponse(BaseModel): total_duration_ms: OptionalNullable[int] = UNSET r"""The total duration of the trace in milliseconds""" - search_keys: OptionalNullable[Dict[str, str]] = UNSET + search_keys: OptionalNullable[Dict[str, Nullable[str]]] = UNSET r"""The execution's search keys (metadata), if requested via include_search_keys.""" @model_serializer(mode="wrap") diff --git a/src/mistralai/client/models/workflowexecutionstartedresponse.py b/src/mistralai/client/models/workflowexecutionstartedresponse.py index 8da33ba63..87ec36224 100644 --- a/src/mistralai/client/models/workflowexecutionstartedresponse.py +++ b/src/mistralai/client/models/workflowexecutionstartedresponse.py @@ -32,7 +32,9 @@ class WorkflowExecutionStartedResponseTypedDict(TypedDict): continued_run_id: Nullable[str] r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str @@ -69,7 +71,10 @@ class WorkflowExecutionStartedResponse(BaseModel): r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" @@ -103,6 +108,7 @@ def serialize_model(self, handler): "parent_workflow_exec_id", "continued_run_id", "first_execution_run_id", + "chain_run_id", "schedule_id", ] ) diff --git a/src/mistralai/client/models/workflowexecutiontraceeventsresponse.py b/src/mistralai/client/models/workflowexecutiontraceeventsresponse.py index fff8b5e48..3dc90c60c 100644 --- a/src/mistralai/client/models/workflowexecutiontraceeventsresponse.py +++ b/src/mistralai/client/models/workflowexecutiontraceeventsresponse.py @@ -66,7 +66,7 @@ class WorkflowExecutionTraceEventsResponseTypedDict(TypedDict): r"""The ID of the user who triggered the execution""" total_duration_ms: NotRequired[Nullable[int]] r"""The total duration of the trace in milliseconds""" - search_keys: NotRequired[Nullable[Dict[str, str]]] + search_keys: NotRequired[Nullable[Dict[str, Nullable[str]]]] r"""The execution's search keys (metadata), if requested via include_search_keys.""" events: NotRequired[List[WorkflowExecutionTraceEventsResponseEventTypedDict]] r"""The events of the workflow execution""" @@ -112,7 +112,7 @@ class WorkflowExecutionTraceEventsResponse(BaseModel): total_duration_ms: OptionalNullable[int] = UNSET r"""The total duration of the trace in milliseconds""" - search_keys: OptionalNullable[Dict[str, str]] = UNSET + search_keys: OptionalNullable[Dict[str, Nullable[str]]] = UNSET r"""The execution's search keys (metadata), if requested via include_search_keys.""" events: Optional[List[WorkflowExecutionTraceEventsResponseEvent]] = None diff --git a/src/mistralai/client/models/workflowexecutiontraceotelresponse.py b/src/mistralai/client/models/workflowexecutiontraceotelresponse.py index b5d6bbd5e..84cef4252 100644 --- a/src/mistralai/client/models/workflowexecutiontraceotelresponse.py +++ b/src/mistralai/client/models/workflowexecutiontraceotelresponse.py @@ -46,7 +46,7 @@ class WorkflowExecutionTraceOTelResponseTypedDict(TypedDict): r"""The ID of the user who triggered the execution""" total_duration_ms: NotRequired[Nullable[int]] r"""The total duration of the trace in milliseconds""" - search_keys: NotRequired[Nullable[Dict[str, str]]] + search_keys: NotRequired[Nullable[Dict[str, Nullable[str]]]] r"""The execution's search keys (metadata), if requested via include_search_keys.""" otel_trace_id: NotRequired[Nullable[str]] r"""The ID of the trace""" @@ -97,7 +97,7 @@ class WorkflowExecutionTraceOTelResponse(BaseModel): total_duration_ms: OptionalNullable[int] = UNSET r"""The total duration of the trace in milliseconds""" - search_keys: OptionalNullable[Dict[str, str]] = UNSET + search_keys: OptionalNullable[Dict[str, Nullable[str]]] = UNSET r"""The execution's search keys (metadata), if requested via include_search_keys.""" otel_trace_id: OptionalNullable[str] = UNSET diff --git a/src/mistralai/client/models/workflowexecutiontracesummaryresponse.py b/src/mistralai/client/models/workflowexecutiontracesummaryresponse.py index 96ee7e808..46676720e 100644 --- a/src/mistralai/client/models/workflowexecutiontracesummaryresponse.py +++ b/src/mistralai/client/models/workflowexecutiontracesummaryresponse.py @@ -47,7 +47,7 @@ class WorkflowExecutionTraceSummaryResponseTypedDict(TypedDict): r"""The ID of the user who triggered the execution""" total_duration_ms: NotRequired[Nullable[int]] r"""The total duration of the trace in milliseconds""" - search_keys: NotRequired[Nullable[Dict[str, str]]] + search_keys: NotRequired[Nullable[Dict[str, Nullable[str]]]] r"""The execution's search keys (metadata), if requested via include_search_keys.""" span_tree: NotRequired[Nullable[WorkflowExecutionTraceSummarySpanTypedDict]] r"""The root span of the trace""" @@ -93,7 +93,7 @@ class WorkflowExecutionTraceSummaryResponse(BaseModel): total_duration_ms: OptionalNullable[int] = UNSET r"""The total duration of the trace in milliseconds""" - search_keys: OptionalNullable[Dict[str, str]] = UNSET + search_keys: OptionalNullable[Dict[str, Nullable[str]]] = UNSET r"""The execution's search keys (metadata), if requested via include_search_keys.""" span_tree: OptionalNullable[WorkflowExecutionTraceSummarySpan] = UNSET diff --git a/src/mistralai/client/models/workflowtaskfailedresponse.py b/src/mistralai/client/models/workflowtaskfailedresponse.py index cda419763..c44dcf110 100644 --- a/src/mistralai/client/models/workflowtaskfailedresponse.py +++ b/src/mistralai/client/models/workflowtaskfailedresponse.py @@ -33,7 +33,9 @@ class WorkflowTaskFailedResponseTypedDict(TypedDict): continued_run_id: Nullable[str] r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str @@ -71,7 +73,10 @@ class WorkflowTaskFailedResponse(BaseModel): r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" @@ -105,6 +110,7 @@ def serialize_model(self, handler): "parent_workflow_exec_id", "continued_run_id", "first_execution_run_id", + "chain_run_id", "schedule_id", ] ) diff --git a/src/mistralai/client/models/workflowtasktimedoutresponse.py b/src/mistralai/client/models/workflowtasktimedoutresponse.py index 457a8737b..1aac6d70e 100644 --- a/src/mistralai/client/models/workflowtasktimedoutresponse.py +++ b/src/mistralai/client/models/workflowtasktimedoutresponse.py @@ -33,7 +33,9 @@ class WorkflowTaskTimedOutResponseTypedDict(TypedDict): continued_run_id: Nullable[str] r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str @@ -71,7 +73,10 @@ class WorkflowTaskTimedOutResponse(BaseModel): r"""Run ID of the execution this run continued from. Non-null for continue-as-new runs.""" first_execution_run_id: Nullable[str] - r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.""" + r"""Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.""" + + chain_run_id: Nullable[str] + r"""Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.""" schedule_id: Nullable[str] r"""Temporal schedule ID that triggered this execution, if any.""" @@ -105,6 +110,7 @@ def serialize_model(self, handler): "parent_workflow_exec_id", "continued_run_id", "first_execution_run_id", + "chain_run_id", "schedule_id", ] ) diff --git a/src/mistralai/client/rag.py b/src/mistralai/client/rag.py index 934b23745..6a20dc2cb 100644 --- a/src/mistralai/client/rag.py +++ b/src/mistralai/client/rag.py @@ -6,6 +6,7 @@ from mistralai.client.ingestion_pipeline_configurations import ( IngestionPipelineConfigurations, ) +from mistralai.client.managed_indexes import ManagedIndexes from mistralai.client.search_indexes import SearchIndexes from typing import Optional @@ -13,6 +14,7 @@ class Rag(BaseSDK): ingestion_pipeline_configurations: IngestionPipelineConfigurations search_indexes: SearchIndexes + managed_indexes: ManagedIndexes def __init__( self, sdk_config: SDKConfiguration, parent_ref: Optional[object] = None @@ -28,3 +30,6 @@ def _init_sdks(self): self.search_indexes = SearchIndexes( self.sdk_configuration, parent_ref=self.parent_ref ) + self.managed_indexes = ManagedIndexes( + self.sdk_configuration, parent_ref=self.parent_ref + ) diff --git a/src/mistralai/client/service_accounts.py b/src/mistralai/client/service_accounts.py index caa438e2a..078bea881 100644 --- a/src/mistralai/client/service_accounts.py +++ b/src/mistralai/client/service_accounts.py @@ -18,6 +18,7 @@ def create( name: str, workspace_id: str, description: OptionalNullable[str] = UNSET, + role_ids: Optional[Iterable[str]] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -25,11 +26,12 @@ def create( ) -> models.ServiceAccount: r"""Create Service Account - Create a service account in a workspace. Requires the `create_service_account` permission. + Create a service account in a workspace. Requires the Workspace admin (`workspace_admin`) role. :param name: :param workspace_id: :param description: + :param role_ids: :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 @@ -52,6 +54,7 @@ def create( name=name, workspace_id=workspace_id, description=description, + role_ids=utils.unmarshal(role_ids, Optional[List[str]]), ) req = self._build_request( @@ -122,6 +125,7 @@ async def create_async( name: str, workspace_id: str, description: OptionalNullable[str] = UNSET, + role_ids: Optional[Iterable[str]] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -129,11 +133,12 @@ async def create_async( ) -> models.ServiceAccount: r"""Create Service Account - Create a service account in a workspace. Requires the `create_service_account` permission. + Create a service account in a workspace. Requires the Workspace admin (`workspace_admin`) role. :param name: :param workspace_id: :param description: + :param role_ids: :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 @@ -156,6 +161,7 @@ async def create_async( name=name, workspace_id=workspace_id, description=description, + role_ids=utils.unmarshal(role_ids, Optional[List[str]]), ) req = self._build_request_async( @@ -223,9 +229,9 @@ async def create_async( def list( self, *, - workspace_id: str, offset: int, limit: int, + workspace_id: OptionalNullable[str] = UNSET, include_deleted: Optional[bool] = False, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -234,13 +240,15 @@ def list( ) -> Optional[models.ListServiceAccountsV1ServiceAccountsGetResponse]: r"""List Service Accounts - List the service accounts in a workspace. + List the service accounts in a workspace, or across the organization. - Requires the `see_all_workspace_service_accounts` permission. + Scoped to a workspace, this requires the Workspace admin (`workspace_admin`) role on + it. Omitting the workspace lists the whole organization and requires the Organization + admin (`organization_admin`) role instead. - :param workspace_id: :param offset: :param limit: + :param workspace_id: :param include_deleted: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -327,9 +335,9 @@ def next_func() -> ( next_offset = offset + len(results[0]) return self.list( - workspace_id=workspace_id, offset=next_offset, limit=limit, + workspace_id=workspace_id, include_deleted=include_deleted, retries=retries, server_url=server_url, @@ -362,9 +370,9 @@ def next_func() -> ( async def list_async( self, *, - workspace_id: str, offset: int, limit: int, + workspace_id: OptionalNullable[str] = UNSET, include_deleted: Optional[bool] = False, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -373,13 +381,15 @@ async def list_async( ) -> Optional[models.ListServiceAccountsV1ServiceAccountsGetResponse]: r"""List Service Accounts - List the service accounts in a workspace. + List the service accounts in a workspace, or across the organization. - Requires the `see_all_workspace_service_accounts` permission. + Scoped to a workspace, this requires the Workspace admin (`workspace_admin`) role on + it. Omitting the workspace lists the whole organization and requires the Organization + admin (`organization_admin`) role instead. - :param workspace_id: :param offset: :param limit: + :param workspace_id: :param include_deleted: :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -469,9 +479,9 @@ async def empty_result(): next_offset = offset + len(results[0]) return self.list_async( - workspace_id=workspace_id, offset=next_offset, limit=limit, + workspace_id=workspace_id, include_deleted=include_deleted, retries=retries, server_url=server_url, @@ -514,7 +524,7 @@ def list_assignable_roles( List the workspace roles that can be assigned to a service account. - Requires the `see_all_workspace_service_accounts` permission. + Requires the Workspace admin (`workspace_admin`) role. :param workspace_id: :param retries: Override the default retry configuration for this method @@ -613,7 +623,7 @@ async def list_assignable_roles_async( List the workspace roles that can be assigned to a service account. - Requires the `see_all_workspace_service_accounts` permission. + Requires the Workspace admin (`workspace_admin`) role. :param workspace_id: :param retries: Override the default retry configuration for this method @@ -712,7 +722,7 @@ def get( Retrieve a service account. - Requires the `see_all_workspace_service_accounts` permission. + Requires the Workspace admin (`workspace_admin`) role. :param service_account_id: :param retries: Override the default retry configuration for this method @@ -809,7 +819,7 @@ async def get_async( Retrieve a service account. - Requires the `see_all_workspace_service_accounts` permission. + Requires the Workspace admin (`workspace_admin`) role. :param service_account_id: :param retries: Override the default retry configuration for this method @@ -907,7 +917,7 @@ def update( Update a service account. - Requires the `manage_any_workspace_service_account` permission. + Requires the Workspace admin (`workspace_admin`) role. :param service_account_id: :param description: @@ -1018,7 +1028,7 @@ async def update_async( Update a service account. - Requires the `manage_any_workspace_service_account` permission. + Requires the Workspace admin (`workspace_admin`) role. :param service_account_id: :param description: @@ -1128,7 +1138,7 @@ def delete( Delete a service account. - Requires the `manage_any_workspace_service_account` permission. + Requires the Workspace admin (`workspace_admin`) role. :param service_account_id: :param retries: Override the default retry configuration for this method @@ -1227,7 +1237,7 @@ async def delete_async( Delete a service account. - Requires the `manage_any_workspace_service_account` permission. + Requires the Workspace admin (`workspace_admin`) role. :param service_account_id: :param retries: Override the default retry configuration for this method @@ -1327,7 +1337,7 @@ def set_roles( Replace the workspace roles assigned to a service account. - Requires the `manage_any_workspace_service_account` permission. + Requires the Workspace admin (`workspace_admin`) role. :param service_account_id: :param role_ids: @@ -1438,7 +1448,7 @@ async def set_roles_async( Replace the workspace roles assigned to a service account. - Requires the `manage_any_workspace_service_account` permission. + Requires the Workspace admin (`workspace_admin`) role. :param service_account_id: :param role_ids: @@ -1548,7 +1558,7 @@ def list_roles( List the workspace roles assigned to a service account. - Requires the `see_all_workspace_service_accounts` permission. + Requires the Workspace admin (`workspace_admin`) role. :param service_account_id: :param retries: Override the default retry configuration for this method @@ -1647,7 +1657,7 @@ async def list_roles_async( List the workspace roles assigned to a service account. - Requires the `see_all_workspace_service_accounts` permission. + Requires the Workspace admin (`workspace_admin`) role. :param service_account_id: :param retries: Override the default retry configuration for this method diff --git a/src/mistralai/client/voices.py b/src/mistralai/client/voices.py index ecf3e8107..0e2bef6bb 100644 --- a/src/mistralai/client/voices.py +++ b/src/mistralai/client/voices.py @@ -9,9 +9,13 @@ from mistralai.client.utils import get_security_from_env from mistralai.client.utils.unmarshal_json_response import unmarshal_json_response from typing import Any, Iterable, List, Mapping, Optional +from typing_extensions import deprecated class Voices(BaseSDK): + @deprecated( + "warning: ** DEPRECATED ** - Offset pagination will not be supported anymore. Use GET /v2/audio/voices instead.." + ) def list( self, *, @@ -25,7 +29,7 @@ def list( ) -> models.VoiceListResponse: r"""List all voices - List all voices (excluding sample data) + Offset pagination will not be supported anymore. Use GET /v2/audio/voices instead. :param limit: Maximum number of voices to return :param offset: Offset for pagination @@ -89,7 +93,11 @@ def list( self.sdk_configuration.security, models.Security ), tags=["audio.voices"], - extensions=None, + extensions={ + "x-deprecated-replacement": "/v2/audio/voices", + "x-deprecation-date": "2026-09-07", + "x-sunset-date": "2027-03-31", + }, ), request=req, is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), @@ -113,6 +121,9 @@ def list( raise errors.SDKError("Unexpected response received", http_res) + @deprecated( + "warning: ** DEPRECATED ** - Offset pagination will not be supported anymore. Use GET /v2/audio/voices instead.." + ) async def list_async( self, *, @@ -126,7 +137,7 @@ async def list_async( ) -> models.VoiceListResponse: r"""List all voices - List all voices (excluding sample data) + Offset pagination will not be supported anymore. Use GET /v2/audio/voices instead. :param limit: Maximum number of voices to return :param offset: Offset for pagination @@ -190,7 +201,11 @@ async def list_async( self.sdk_configuration.security, models.Security ), tags=["audio.voices"], - extensions=None, + extensions={ + "x-deprecated-replacement": "/v2/audio/voices", + "x-deprecation-date": "2026-09-07", + "x-sunset-date": "2027-03-31", + }, ), request=req, is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), diff --git a/src/mistralai/client/workflows.py b/src/mistralai/client/workflows.py index 5c8bc49fa..2d1bd94bb 100644 --- a/src/mistralai/client/workflows.py +++ b/src/mistralai/client/workflows.py @@ -901,6 +901,7 @@ def execute_workflow( timeout_seconds: OptionalNullable[float] = UNSET, custom_tracing_attributes: OptionalNullable[Mapping[str, str]] = UNSET, force_new_trace: Optional[bool] = False, + traceparent: OptionalNullable[str] = UNSET, extensions: OptionalNullable[Mapping[str, Any]] = UNSET, task_queue: OptionalNullable[str] = UNSET, deployment_name: OptionalNullable[str] = UNSET, @@ -918,6 +919,7 @@ def execute_workflow( :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 traceparent: W3C trace context to join this execution to the caller's trace. Ignored when force_new_trace is set. :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 @@ -950,6 +952,7 @@ def execute_workflow( custom_tracing_attributes, OptionalNullable[Dict[str, str]] ), force_new_trace=force_new_trace, + traceparent=traceparent, extensions=utils.unmarshal( extensions, OptionalNullable[Dict[str, Any]] ), @@ -1037,6 +1040,7 @@ async def execute_workflow_async( timeout_seconds: OptionalNullable[float] = UNSET, custom_tracing_attributes: OptionalNullable[Mapping[str, str]] = UNSET, force_new_trace: Optional[bool] = False, + traceparent: OptionalNullable[str] = UNSET, extensions: OptionalNullable[Mapping[str, Any]] = UNSET, task_queue: OptionalNullable[str] = UNSET, deployment_name: OptionalNullable[str] = UNSET, @@ -1054,6 +1058,7 @@ async def execute_workflow_async( :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 traceparent: W3C trace context to join this execution to the caller's trace. Ignored when force_new_trace is set. :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 @@ -1086,6 +1091,7 @@ async def execute_workflow_async( custom_tracing_attributes, OptionalNullable[Dict[str, str]] ), force_new_trace=force_new_trace, + traceparent=traceparent, extensions=utils.unmarshal( extensions, OptionalNullable[Dict[str, Any]] ), @@ -1176,6 +1182,7 @@ def execute_workflow_registration( timeout_seconds: OptionalNullable[float] = UNSET, custom_tracing_attributes: OptionalNullable[Mapping[str, str]] = UNSET, force_new_trace: Optional[bool] = False, + traceparent: OptionalNullable[str] = UNSET, extensions: OptionalNullable[Mapping[str, Any]] = UNSET, task_queue: OptionalNullable[str] = UNSET, deployment_name: OptionalNullable[str] = UNSET, @@ -1193,6 +1200,7 @@ def execute_workflow_registration( :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 traceparent: W3C trace context to join this execution to the caller's trace. Ignored when force_new_trace is set. :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 @@ -1225,6 +1233,7 @@ def execute_workflow_registration( custom_tracing_attributes, OptionalNullable[Dict[str, str]] ), force_new_trace=force_new_trace, + traceparent=traceparent, extensions=utils.unmarshal( extensions, OptionalNullable[Dict[str, Any]] ), @@ -1315,6 +1324,7 @@ async def execute_workflow_registration_async( timeout_seconds: OptionalNullable[float] = UNSET, custom_tracing_attributes: OptionalNullable[Mapping[str, str]] = UNSET, force_new_trace: Optional[bool] = False, + traceparent: OptionalNullable[str] = UNSET, extensions: OptionalNullable[Mapping[str, Any]] = UNSET, task_queue: OptionalNullable[str] = UNSET, deployment_name: OptionalNullable[str] = UNSET, @@ -1332,6 +1342,7 @@ async def execute_workflow_registration_async( :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 traceparent: W3C trace context to join this execution to the caller's trace. Ignored when force_new_trace is set. :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 @@ -1364,6 +1375,7 @@ async def execute_workflow_registration_async( custom_tracing_attributes, OptionalNullable[Dict[str, str]] ), force_new_trace=force_new_trace, + traceparent=traceparent, extensions=utils.unmarshal( extensions, OptionalNullable[Dict[str, Any]] ), diff --git a/src/mistralai/client/workflows_events.py b/src/mistralai/client/workflows_events.py index 5e6cd886e..298824491 100644 --- a/src/mistralai/client/workflows_events.py +++ b/src/mistralai/client/workflows_events.py @@ -37,6 +37,10 @@ def get_stream_events( ]: r"""Get Stream Events + Stream workflow events as Server-Sent Events (SSE). + + One of `root_workflow_exec_id`, `parent_workflow_exec_id` or `workflow_exec_id` is required. + :param scope: :param activity_name: :param activity_id: @@ -147,7 +151,7 @@ def get_stream_events( errors.HTTPValidationErrorData, http_res, http_res_text ) raise errors.HTTPValidationError(response_data, http_res, http_res_text) - if utils.match_response(http_res, "4XX", "*"): + if utils.match_response(http_res, ["400", "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", "*"): @@ -183,6 +187,10 @@ async def get_stream_events_async( ]: r"""Get Stream Events + Stream workflow events as Server-Sent Events (SSE). + + One of `root_workflow_exec_id`, `parent_workflow_exec_id` or `workflow_exec_id` is required. + :param scope: :param activity_name: :param activity_id: @@ -293,7 +301,7 @@ async def get_stream_events_async( errors.HTTPValidationErrorData, http_res, http_res_text ) raise errors.HTTPValidationError(response_data, http_res, http_res_text) - if utils.match_response(http_res, "4XX", "*"): + if utils.match_response(http_res, ["400", "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", "*"): diff --git a/src/mistralai/extra/struct_chat.py b/src/mistralai/extra/struct_chat.py index 4023b758d..d3fd3f5a9 100644 --- a/src/mistralai/extra/struct_chat.py +++ b/src/mistralai/extra/struct_chat.py @@ -1,12 +1,7 @@ import json from typing import Generic -from mistralai.client.models import ( - AssistantMessage, - ChatCompletionChoice, - ChatCompletionResponse, - TextChunk, -) +from mistralai.client.models import AssistantMessage, ChatCompletionChoice, ChatCompletionResponse from .utils.response_format import CustomPydanticModel, pydantic_model_from_json @@ -39,16 +34,6 @@ def convert_to_parsed_chat_completion_response( parsed_message.parsed = pydantic_model_from_json(json.loads(parsed_message.content), response_format) elif parsed_message.content is None: parsed_message.parsed = None - elif isinstance(parsed_message.content, list): - final_text = "".join( - chunk.text - for chunk in parsed_message.content - if isinstance(chunk, TextChunk) - ) - if not final_text: - parsed_message.parsed = None - else: - parsed_message.parsed = pydantic_model_from_json(json.loads(final_text), response_format) else: raise TypeError(f"Unexpected type for message.content: {type(parsed_message.content)}") choice_dict = choice.model_dump() diff --git a/src/mistralai/extra/tests/test_struct_chat.py b/src/mistralai/extra/tests/test_struct_chat.py index 789ce5fdc..7b79bf773 100644 --- a/src/mistralai/extra/tests/test_struct_chat.py +++ b/src/mistralai/extra/tests/test_struct_chat.py @@ -10,8 +10,6 @@ UsageInfo, ChatCompletionChoice, AssistantMessage, - ThinkChunk, - TextChunk, ) from pydantic import BaseModel @@ -100,71 +98,6 @@ def test_convert_to_parsed_chat_completion_response(self): ) self.assertEqual(output, expected_response) - def test_convert_to_parsed_chat_completion_response_with_reasoning_chunks(self): - reasoning_response = ChatCompletionResponse( - id="chunked-response", - object="chat.completion", - model="mistral-medium-3-5", - usage=UsageInfo(prompt_tokens=10, completion_tokens=20, total_tokens=30), - created=1737727558, - choices=[ - ChatCompletionChoice( - index=0, - message=AssistantMessage( - content=[ - ThinkChunk( - thinking=[ - TextChunk(text="Compute 8x + 7 = -23 step by step.") - ] - ), - TextChunk( - text='{"steps": [], "final_answer": "x = -4"}' - ), - ], - role="assistant", - ), - finish_reason="stop", - ) - ], - ) - output = convert_to_parsed_chat_completion_response( - reasoning_response, MathDemonstration - ) - assert output.choices is not None - assert output.choices[0].message is not None - self.assertEqual(output.choices[0].message.parsed, MathDemonstration(steps=[], final_answer="x = -4")) - - def test_convert_to_parsed_chat_completion_response_with_only_reasoning_chunks(self): - reasoning_only_response = ChatCompletionResponse( - id="reasoning-only-response", - object="chat.completion", - model="mistral-medium-3-5", - usage=UsageInfo(prompt_tokens=10, completion_tokens=20, total_tokens=30), - created=1737727558, - choices=[ - ChatCompletionChoice( - index=0, - message=AssistantMessage( - content=[ - ThinkChunk( - thinking=[ - TextChunk(text="Still reasoning about the answer.") - ] - ), - ], - role="assistant", - ), - finish_reason="stop", - ) - ], - ) - output = convert_to_parsed_chat_completion_response( - reasoning_only_response, MathDemonstration - ) - assert output.choices is not None - assert output.choices[0].message is not None - self.assertIsNone(output.choices[0].message.parsed) - if __name__ == "__main__": unittest.main() diff --git a/src/mistralai/extra/tests/test_traceparent_hook.py b/src/mistralai/extra/tests/test_traceparent_hook.py index a72aefc6e..e66808521 100644 --- a/src/mistralai/extra/tests/test_traceparent_hook.py +++ b/src/mistralai/extra/tests/test_traceparent_hook.py @@ -1,3 +1,4 @@ +import json import re import unittest from unittest.mock import MagicMock @@ -39,6 +40,17 @@ def _make_request(path: str, traceparent: str | None = None) -> httpx.Request: return httpx.Request("POST", f"https://api.mistral.ai{path}", headers=headers) +def _make_json_request( + path: str, body: dict, traceparent: str | None = None +) -> httpx.Request: + headers = {"content-type": "application/json"} + if traceparent is not None: + headers["traceparent"] = traceparent + return httpx.Request( + "POST", f"https://api.mistral.ai{path}", headers=headers, json=body + ) + + class TestTraceparentInjectionHook(unittest.TestCase): def setUp(self): self.hook = TraceparentInjectionHook() @@ -74,6 +86,62 @@ def test_explicit_traceparent_is_not_overwritten(self): assert isinstance(result, httpx.Request) self.assertEqual(result.headers["traceparent"], explicit) + # --- body param: what survives a gateway rewriting the header --- + + def test_execute_sets_traceparent_in_body(self): + req = _make_json_request("/v1/workflows/my-wf/execute", {"input": {"a": 1}}) + result = self.hook.before_request(_make_hook_ctx(_EXECUTE_OP_ID), req) + assert isinstance(result, httpx.Request) + + body = json.loads(result.content) + self.assertRegex(body["traceparent"], TRACEPARENT_RE) + self.assertEqual(body["input"], {"a": 1}) + # Both carriers agree, so either side of the API can read it. + self.assertEqual(body["traceparent"], result.headers["traceparent"]) + self.assertEqual(result.headers["content-length"], str(len(result.content))) + + def test_explicit_body_traceparent_is_not_overwritten(self): + explicit = "00-aabbccddeeff00112233445566778899-0102030405060708-01" + req = _make_json_request( + "/v1/workflows/my-wf/execute", {"input": {}, "traceparent": explicit} + ) + result = self.hook.before_request(_make_hook_ctx(_EXECUTE_OP_ID), req) + assert isinstance(result, httpx.Request) + + self.assertEqual(json.loads(result.content)["traceparent"], explicit) + self.assertEqual(result.headers["traceparent"], explicit) + + def test_explicit_header_is_mirrored_into_the_body(self): + explicit = "00-aabbccddeeff00112233445566778899-0102030405060708-01" + req = _make_json_request( + "/v1/workflows/my-wf/execute", {"input": {}}, traceparent=explicit + ) + result = self.hook.before_request(_make_hook_ctx(_EXECUTE_OP_ID), req) + assert isinstance(result, httpx.Request) + + self.assertEqual(json.loads(result.content)["traceparent"], explicit) + + def test_non_json_body_still_gets_the_header(self): + req = httpx.Request( + "POST", + "https://api.mistral.ai/v1/workflows/my-wf/execute", + headers={"content-type": "text/plain"}, + content=b"not json", + ) + result = self.hook.before_request(_make_hook_ctx(_EXECUTE_OP_ID), req) + assert isinstance(result, httpx.Request) + + self.assertRegex(result.headers["traceparent"], TRACEPARENT_RE) + self.assertEqual(result.content, b"not json") + + def test_other_operation_body_is_unchanged(self): + req = _make_json_request("/v1/workflows/my-wf/executions", {"input": {}}) + result = self.hook.before_request(_make_hook_ctx(_OTHER_OP_ID), req) + assert isinstance(result, httpx.Request) + + self.assertNotIn("traceparent", json.loads(result.content)) + self.assertNotIn("traceparent", result.headers) + # --- OTEL context propagation --- def test_propagates_sampled_active_span(self): diff --git a/uv.lock b/uv.lock index fb2a2ec9e..33efa8fc5 100644 --- a/uv.lock +++ b/uv.lock @@ -1200,7 +1200,7 @@ wheels = [ [[package]] name = "mistralai" -version = "2.10.0" +version = "2.10.1" source = { editable = "." } dependencies = [ { name = "eval-type-backport" }, From 27e5f45cb50ae9c9a12b8da5960d24b9de992494 Mon Sep 17 00:00:00 2001 From: andreaonofrei01 Date: Tue, 15 Sep 2026 11:09:15 +0300 Subject: [PATCH 2/2] docs: note breaking changes in 2.10.1 release notes --- RELEASES.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/RELEASES.md b/RELEASES.md index 088bddba4..11baa56a0 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -944,3 +944,26 @@ Based on: - [python v2.10.1] . ### Releases - [PyPI v2.10.1] https://pypi.org/project/mistralai/2.10.1 - . + +### ⚠️ Breaking changes + +**Removed fields** +- `JudgeDefinition`: `model` and `prompt` removed. Now requires `slug`; optional `mapping: Dict[str, str]`. +- `PipelineConfig`, `CreatePipelineConfigRequest`, `UpdatePipelineConfigRequest`: `definition` replaced by required `definitions: List[PipelineConfigDefinition]`. `slug` and `group` removed. `definition_hash` also removed from `PipelineConfig`. +- `ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequest`: `group` query parameter removed. + +**New required fields** +- `chain_run_id: Nullable[str]` on all workflow and task event responses (`WorkflowExecution*`, `ActivityTask*`, `CustomTask*`, `WorkflowTask*`). +- `last_heartbeat: datetime` on `DeploymentResponse`, `DeploymentDetailResponse`, `DeploymentWorkerResponse`. +- `supports_mcp: bool` on `HTTPConnector` and `MCPConnector`. +- `type` on `VoiceResponse`, `managed_indexes` on `Rag`. + +**Type changes** +- `search_keys` values are now nullable on `WorkflowExecutionResponse`, `WorkflowExecutionTraceEventsResponse`, `WorkflowExecutionTraceOTelResponse`, `WorkflowExecutionTraceSummaryResponse`: `Dict[str, str]` -> `Dict[str, Nullable[str]]`. +- `And` and `Or` are objects again (`type`, `matches`) after being removed in 2.10.0. They were union aliases of `FilterGroup | FilterCondition` in 2.9.x. + +**Deprecated** +- `updated_at` on the deployment models now emits a DeprecationWarning. Use `last_heartbeat`. + +**Relaxed (non-breaking)** +- `ListServiceAccountsV1ServiceAccountsGetRequest.workspace_id` is now optional.