diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index b62a204c..4e130d8f 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: 880172609750b5058efe2f0ff8f5c722 + docChecksum: 6a4fbf2ee4b34bf8a47879ec72a0e163 docVersion: 1.0.0 speakeasyVersion: 1.761.1 generationVersion: 2.879.6 - releaseVersion: 2.4.4 - configChecksum: d237fa5a6bc2a67b0977a61520bd85fb + releaseVersion: 2.5.0 + configChecksum: be6d32d9ea21e5c5e04fd926766a187e repoURL: https://github.com/mistralai/client-python.git installationURL: https://github.com/mistralai/client-python.git published: true persistentEdits: - generation_id: 8315974b-9a57-4a9f-b6b1-a75627dc6b85 - pristine_commit_hash: 969db46e6806db3556c93296ed4c87a2b6a0c709 - pristine_tree_hash: b900e343a3b555d433748ed99095b1468250aa44 + generation_id: 8aa03807-c40b-4109-a548-1873a308bcec + pristine_commit_hash: 515141876468efee594338762dbbf9a962e3b3a7 + pristine_tree_hash: 52d4e0fdde59fee2cac455449efee5215abb9c98 features: python: acceptHeaders: 3.0.0 @@ -76,8 +76,8 @@ trackedFiles: pristine_git_object: 615552c32013c702b3e7476b1691952b0a4a65df docs/models/activitytaskcompletedattributesresponse.md: id: 972b526f8415 - last_write_checksum: sha1:d04ffa5085fcf5e440a922bdb130035b86277ff1 - pristine_git_object: 5baaffa6840cb04dbb8eb2379fcea08c96826455 + last_write_checksum: sha1:ac33517d238733a00d938ed19c7b30ba2b3f7955 + pristine_git_object: 43c92fe262f8e8657d337420526959424889d5dd docs/models/activitytaskcompletedresponse.md: id: 6aade3f8c26c last_write_checksum: sha1:944b923aa932452372abebfe6d61ab739555109f @@ -100,8 +100,8 @@ trackedFiles: pristine_git_object: 8b7bdd42e45eb8b3c5ad33a2de5ac2d15d8b3453 docs/models/activitytaskstartedattributesresponse.md: id: b0d2e886ad19 - last_write_checksum: sha1:81ddc501fe7c04dc2313ef93ec5897a806934798 - pristine_git_object: 5d1f59a838412b1fc863dc51f4269548c760e584 + last_write_checksum: sha1:89068691379007eb892b4d81bfaeeb8f889771fd + pristine_git_object: dd97ff85fb14f03afb8e3b390d7000cd3c308e64 docs/models/activitytaskstartedresponse.md: id: c25113506e99 last_write_checksum: sha1:3cd53ec4c3c8bdc389c55cf527c960b3b8a91c30 @@ -960,8 +960,8 @@ trackedFiles: pristine_git_object: 0bcee2279755656a624d626acea0a157fa3b381c docs/models/customtaskcompletedattributesresponse.md: id: c12961b43e1c - last_write_checksum: sha1:772f6aa0610241727b090426384fcf883fa919cb - pristine_git_object: a6a136e75a0625d155eb57808fc6f967dc10cc47 + last_write_checksum: sha1:e549b58f4d1a544e3c453a9ec454930d342f5adf + pristine_git_object: 4c7cbfa21dcdcf91ceac8f1ca5d84413eefc4bbb docs/models/customtaskcompletedresponse.md: id: 81d843216312 last_write_checksum: sha1:0439d35a428e5d8d321da8b710ce72c188802085 @@ -984,8 +984,8 @@ trackedFiles: pristine_git_object: 72afa91fb2baadd7dd8cf32aad2b2812316a6953 docs/models/customtaskstartedattributesresponse.md: id: 272cf75ac5d3 - last_write_checksum: sha1:cd16d650b11898966e3950305b3ca2cf035fc6d5 - pristine_git_object: 8bf43423f0dbba2d89429e4d98f7ae1ac1c460b1 + last_write_checksum: sha1:bc09d8da2636e28821260a08235fcf69d577758a + pristine_git_object: 41cd66a9e59dbfdb9c0574001a4a12f2ac499f93 docs/models/customtaskstartedresponse.md: id: 6ccd9fe137bc last_write_checksum: sha1:031eac9a01bc24b36a9cf2eb4ea864c89ba709e5 @@ -1132,8 +1132,8 @@ trackedFiles: pristine_git_object: 20b50618ac99c63f7cf57fe4377840bfc1f85823 docs/models/encodedpayloadoptions.md: id: 033bd880796d - last_write_checksum: sha1:49223cf4218c03c0615357040dc31149214fa67a - pristine_git_object: 15367ce6382bcfb3bb090620877719fac93438fe + last_write_checksum: sha1:7047a8dee852e5dea9d05f872f92a15ef0860f7c + pristine_git_object: 51fcfdc497db0f7cf17e413c4b5c04bf7d15bc7b docs/models/encodingformat.md: id: 066e154e4d43 last_write_checksum: sha1:cc98abdb803d374146f58a6811c9e3f2b58ff5f3 @@ -1664,12 +1664,16 @@ trackedFiles: pristine_git_object: 684cc896b4ba80ba1bbc278e119fc9fc1dbbf924 docs/models/jsonpatchpayloadresponse.md: id: fb6daf532ebb - last_write_checksum: sha1:bb2d72a81a43a44a183fea86372e037b072ae085 - pristine_git_object: ce9dbd90491812583b873030d1cc50139769b3fa - docs/models/jsonpatchpayloadresponsevalue.md: - id: 8c09c68e6201 - last_write_checksum: sha1:16506ea5571f2f58b488210f08b6b22431d6b248 - pristine_git_object: 21c7d186ad3eaa1b233d0a640fa8e2c27cc08e83 + last_write_checksum: sha1:65d0574c1009aa2363c8231ce2b8735eb20fa217 + pristine_git_object: 00f3e28f1be576e9add0f463697920cbae9c4acb + docs/models/jsonpatchpayloadvalue.md: + id: a07c5848d329 + last_write_checksum: sha1:af27ed1fe061bb55196afa752abc7970183a02b1 + pristine_git_object: d4e57cc6ab84bbd80abd0449bf13a1230c37829f + docs/models/jsonpatchpayloadvalue1.md: + id: e5c22352a884 + last_write_checksum: sha1:cb362a64eabb412e2154728f9efdbed3e86434f6 + pristine_git_object: dc84f15a76756aa5e55103e7307a2635710c46d2 docs/models/jsonpatchremove.md: id: 8a64b68498b3 last_write_checksum: sha1:9619b20ac7d2b69e034fd7e549d2469e2369985a @@ -1680,8 +1684,8 @@ trackedFiles: pristine_git_object: 382b7d93925d0d68af43c4a745144a71d1f61dcf docs/models/jsonpayloadresponse.md: id: ce61786a7c2e - last_write_checksum: sha1:369e120be622bd6deb9d2d5161482e018cb8ef42 - pristine_git_object: 01eaae6160941599a44254091a0b237a90bc77f5 + last_write_checksum: sha1:7e606fbcd41e2ba777ceb5cc12969b72b7f6ad7c + pristine_git_object: 83368ec1a8677253643cd70863e058e7d6b60af5 docs/models/jsonschema.md: id: a6b15ed6fac8 last_write_checksum: sha1:523465666ad3c292252b3fe60f345c7ffb29053f @@ -2208,8 +2212,8 @@ trackedFiles: pristine_git_object: 36b58e9aa80a53dad530cad93fb1d565fdd03b59 docs/models/publicauthenticationmethod.md: id: abfb51fdf794 - last_write_checksum: sha1:4feb0beeb50cf64ce370882599ae33b6e1676d6c - pristine_git_object: fa568d457c2db542a65cf498e254cda8c9fcf0e6 + last_write_checksum: sha1:9be30607f8c895958f33b5be25fc1b8b4cb3d328 + pristine_git_object: 59de7076ce05ff71ba4bd5f22112459f4500bf4d docs/models/querydefinition.md: id: 4831b7e558f9 last_write_checksum: sha1:f4983c0963906b3eda13c69e2852b08d662dd744 @@ -3012,16 +3016,16 @@ trackedFiles: pristine_git_object: f9f4c01d263fb222de033128cd43f86c56f2b8cd docs/models/workflowexecutioncompletedattributesresponse.md: id: ee786dd87f88 - last_write_checksum: sha1:56f6a37a7e59b6026988373b0d88b09bd6062ee5 - pristine_git_object: 30a33052d50278e5cb14e08e4631caf68cc8e058 + last_write_checksum: sha1:0d6121ea184c00cb362a345113fcb1f84cff3b13 + pristine_git_object: 53596a91525e00e58cdf548c2b17deeecba8b567 docs/models/workflowexecutioncompletedresponse.md: id: c1888ba90ec6 last_write_checksum: sha1:491656749133e6b0d7714d2a9cbc8de8aa9c92d7 pristine_git_object: a4d40dc52ead7c8a525cfd838fc0aa336570fb3b docs/models/workflowexecutioncontinuedasnewattributesresponse.md: id: 30eef6da0d67 - last_write_checksum: sha1:10f85d5ec5f9fbb442d3d69319b651604baf9a0b - pristine_git_object: b49a25964981bb48a5563b230413cb2ff6c5bd70 + last_write_checksum: sha1:5419f5ccfb9b13fbef8aef96a97a34a32ea136c6 + pristine_git_object: 13e21499434f9bdef975a6d6902e2b85d8c7a04f docs/models/workflowexecutioncontinuedasnewresponse.md: id: 1ea81bc536b4 last_write_checksum: sha1:e65c01b128029322249b28e4152cd60af2443b18 @@ -3052,8 +3056,8 @@ trackedFiles: pristine_git_object: 03f1010030defa48eb7d3f98189baab9ff7b1bfe docs/models/workflowexecutionstartedattributesresponse.md: id: 384d48b3e104 - last_write_checksum: sha1:c5fb16f4017b9332fb97b54172320bbd9cdb91d4 - pristine_git_object: e222a142f4042032e2f4fc8c3a714a0b00e35835 + last_write_checksum: sha1:54ce029d9db1b0f5dee6a42019995a58ef196268 + pristine_git_object: 63c20eb12a9d285cf448057f156820f98e282c43 docs/models/workflowexecutionstartedresponse.md: id: 64174669ff20 last_write_checksum: sha1:8eee734d26442d9c6e6693386c78eb204a932847 @@ -3344,8 +3348,8 @@ trackedFiles: pristine_git_object: 036d44b8cfc51599873bd5c401a6aed30450536c src/mistralai/client/_version.py: id: cc807b30de19 - last_write_checksum: sha1:9096662e60738fa15fd58b70880e1e8dff442403 - pristine_git_object: 026fdee0423c494d6d525bd1a67d566a76c4fd7d + last_write_checksum: sha1:1897b5da3474b366a42c67bc641085b83e41170f + pristine_git_object: be7b6221234fb48dbb84cfec74d10a6ee8effc16 src/mistralai/client/accesses.py: id: 76fc53bfcf59 last_write_checksum: sha1:de197fbbfea8bc95f44b4e7ee1b39e68fdde8bc7 @@ -3496,12 +3500,12 @@ trackedFiles: pristine_git_object: 60597c40f00705b4758827fb7d119f33ae2ad1b9 src/mistralai/client/models/__init__.py: id: e0e8dad92725 - last_write_checksum: sha1:6ff671f3761cb215e02e16a12303fb62d8165a9f - pristine_git_object: cb0320b35793d86e8b0afa1a92003a7ed9b8d29c + last_write_checksum: sha1:3d551661913975a4c2b53b8ef465cb13d5b449f7 + pristine_git_object: d7564c2a797761abeb61d27b764045f41fe970ff src/mistralai/client/models/activitytaskcompletedattributesresponse.py: id: 8174941767cc - last_write_checksum: sha1:8a22b80fbd7e5ea9a72a34016e68fdb4a375ed75 - pristine_git_object: 899acb62afc89955ccb4ccb7a4e4d4bb8a4ce424 + last_write_checksum: sha1:b5246e203765ba0532a6a65d391bdd237ab2c891 + pristine_git_object: 8e355d48421982b9480d0ea50ce07de0aaba6e3b src/mistralai/client/models/activitytaskcompletedresponse.py: id: 28373f0a2c9e last_write_checksum: sha1:93e29f246bdade11ed0bcd55e5781fe86d352f89 @@ -3524,8 +3528,8 @@ trackedFiles: pristine_git_object: cf054a27d05dc1683275094a40336cc6f4164eb5 src/mistralai/client/models/activitytaskstartedattributesresponse.py: id: 3a365e2c2942 - last_write_checksum: sha1:7a125f9f9cb1a2eb14bb929742981b488686ab81 - pristine_git_object: 100626d49be3d849b35e0e041d02f7eb9c7964a2 + last_write_checksum: sha1:e932c7960e78f8b31008efef29df7cc8ce3c4ce4 + pristine_git_object: 9a049150e26cf8fd89f5f85195cab961629c5402 src/mistralai/client/models/activitytaskstartedresponse.py: id: d01ef9cb3955 last_write_checksum: sha1:1f1dda76127bdb08549b0dd94f68dafd1d6a71fc @@ -4112,8 +4116,8 @@ trackedFiles: pristine_git_object: 7873b3ca5fdb61c6c4d1205894727cd09e8d939d src/mistralai/client/models/customtaskcompletedattributesresponse.py: id: 0b9fb891f354 - last_write_checksum: sha1:d0c1d0c181c3b0d2c9e73a09a40cd84dd5e49b85 - pristine_git_object: 8b28d1058d3ffc20d9c86c1cbac03ea343d0947a + last_write_checksum: sha1:f5053cec4e78eaa7b83df2c7e6d7f9f66cd35933 + pristine_git_object: afd48d7660446f5daa52b7358934227bb3761e87 src/mistralai/client/models/customtaskcompletedresponse.py: id: 719b68571f4c last_write_checksum: sha1:4d8b84868e4d94be8ca9190e29dc8dbf37c442fe @@ -4136,8 +4140,8 @@ trackedFiles: pristine_git_object: 33c126f716d9b63fef593498a2442bfa1637d5dc src/mistralai/client/models/customtaskstartedattributesresponse.py: id: 6b8946c77018 - last_write_checksum: sha1:25f404c0770dac0b612c67d3445b40fd8659fb59 - pristine_git_object: 71bed58f6bb9b88110a79dbff38bb32f9fde6090 + last_write_checksum: sha1:5902afbf5696150caae710ef55a4c5b5f8b2ed1a + pristine_git_object: 4f53ae8a35f590ab4bd2fd5e5ab63e44ea449cc1 src/mistralai/client/models/customtaskstartedresponse.py: id: 02b330a5292e last_write_checksum: sha1:676b985755499c4691c1ac615d04fb35481d9a0f @@ -4268,8 +4272,8 @@ trackedFiles: pristine_git_object: 03b23a7cba53c27ef02f3bc025f38f10d7b98e2d src/mistralai/client/models/encodedpayloadoptions.py: id: 97955ebc2eb9 - last_write_checksum: sha1:464d35eea8a12a0a1a7a58ec66ffaada14f07bb9 - pristine_git_object: 5c369046204ed55ac2c5dd63befd7598b7fd35ac + last_write_checksum: sha1:d6acbb9cd0a962a9ae91da84cf10c7f066ede245 + pristine_git_object: cc19b54359640f2af7a058f179a459cc2d70c539 src/mistralai/client/models/encodingformat.py: id: b51ec296cc92 last_write_checksum: sha1:ea907f86b00323d99df37f7ff45d582aace798e7 @@ -4732,8 +4736,12 @@ trackedFiles: pristine_git_object: 7181ddac1956f1c29b815231f30c3405d4f50754 src/mistralai/client/models/jsonpatchpayloadresponse.py: id: 1b39f46f529f - last_write_checksum: sha1:bf48ca0dd13e374dec8c2ee082fe9b78cab391e5 - pristine_git_object: 345e6d14ce3244ff4234c80502e553de81ac8dcf + last_write_checksum: sha1:9be28b28dd8e8d2a9090dfaff1f8434c263acc94 + pristine_git_object: 40eef44032503d9346f4191e947b4afef8287a1b + src/mistralai/client/models/jsonpatchpayloadvalue.py: + id: e632293af7ad + last_write_checksum: sha1:2358614b7fe8ad2d624ee0ba50111ba9b681ef8f + pristine_git_object: 5b9270b7aead3c74bd514c875cf8174f9e4ea772 src/mistralai/client/models/jsonpatchremove.py: id: e472e5b752ec last_write_checksum: sha1:2dec39f883b362968f8d55b9b7daef6fb40094e4 @@ -4744,8 +4752,8 @@ trackedFiles: pristine_git_object: 3dd7aee65f0c4f0a2218762a9b9ea8cd571c406d src/mistralai/client/models/jsonpayloadresponse.py: id: ba3265f85453 - last_write_checksum: sha1:9103c6d30a65222458b9bc9b5b15cc88126f4284 - pristine_git_object: 038ea329340d2e2ecc5d2db503e367e2a279cd1c + last_write_checksum: sha1:817d67943a444f1cb56d1d0dd181690241428258 + pristine_git_object: 34ef8108f7836aed2c6348c5b27f7e19d0df5eb9 src/mistralai/client/models/jsonschema.py: id: e1fc1d8a434a last_write_checksum: sha1:f6e3ddb37e55ff27b795389fce6d4f433e7d5639 @@ -5188,8 +5196,8 @@ trackedFiles: pristine_git_object: 2c5186c02f6b463c12fd7819637b52c8c7ee4cd7 src/mistralai/client/models/publicauthenticationmethod.py: id: 545ab7f24523 - last_write_checksum: sha1:82c1403b8f1cf8de8efeb278ef2680db89c9c510 - pristine_git_object: 95dde29a95b7b034ae9ffe324e2c9ef6ba426dce + last_write_checksum: sha1:5256ee8833f1e44717f19b6d2ee3aeff6dbe2dc4 + pristine_git_object: 42e943a6f63dcfcfcfc3e994080e318c21a5e619 src/mistralai/client/models/query_workflow_execution_v1_workflows_executions_execution_id_queries_postop.py: id: 73826dbd3f5b last_write_checksum: sha1:5105618697e031bae45cf9f6d7c5227d9c08f155 @@ -5824,16 +5832,16 @@ trackedFiles: pristine_git_object: ee1c4e71acecff7f4a94078aae1560ca43c36e31 src/mistralai/client/models/workflowexecutioncompletedattributesresponse.py: id: f831331b0eb1 - last_write_checksum: sha1:113cbedfc242da04a708e29b23a55742bc0de084 - pristine_git_object: 3afc8dcf36f4f5fea19263095c14b245b32b76f9 + last_write_checksum: sha1:dbb84007cd94e2d0ed45aec7da846e1375588396 + pristine_git_object: 1fe0c24872cdeac5a53ad8469d01deb6d2053183 src/mistralai/client/models/workflowexecutioncompletedresponse.py: id: a1bec20dfb0e last_write_checksum: sha1:c6c891ed6fdae6204c47d425e0391e2163f20a2e pristine_git_object: 17716668a30d68aad23a98d312e965171ca71306 src/mistralai/client/models/workflowexecutioncontinuedasnewattributesresponse.py: id: 2dd61dcd7b48 - last_write_checksum: sha1:e7737a3bb65c1ca887c0f28a1e18102d80755e04 - pristine_git_object: 943e5ebc979c9381d36e92e1e94d818bb17a83bf + last_write_checksum: sha1:05d7ec612f2674ee265f54c5233e1b79de8ebdae + pristine_git_object: 2ddbf0af4a9b8584f7c1efb6c883a1f9b524295e src/mistralai/client/models/workflowexecutioncontinuedasnewresponse.py: id: be26cd87dcb3 last_write_checksum: sha1:4947f8cbfa73eae9607e252e85236894a34123d5 @@ -5864,8 +5872,8 @@ trackedFiles: pristine_git_object: 83179054bf4ca0e3da6be1644fcb32680a4c43c7 src/mistralai/client/models/workflowexecutionstartedattributesresponse.py: id: d2276919a895 - last_write_checksum: sha1:67f7f7ce3ac895677b946e2e8e492192bd2709b8 - pristine_git_object: c6e118f4772209df61b90302566d7c6892b40827 + last_write_checksum: sha1:53312110c8c2902f32c72a88ee68cea048833fca + pristine_git_object: 59746a615c07e0aeb10d315240b600145d7b45d2 src/mistralai/client/models/workflowexecutionstartedresponse.py: id: e1a597c911ea last_write_checksum: sha1:9c761698883844061bf5cae76e3bc6444941124e @@ -8519,7 +8527,7 @@ examples: limit: 100 responses: "200": - application/json: {"events": [{"event_id": "", "event_timestamp": 93683, "root_workflow_exec_id": "", "parent_workflow_exec_id": "", "workflow_exec_id": "", "workflow_run_id": "", "workflow_name": "", "event_type": "CUSTOM_TASK_STARTED", "attributes": {"custom_task_id": "", "custom_task_type": "", "payload": {"type": "json", "value": [{"path": "/sys", "value": "", "op": "remove"}]}}}]} + application/json: {"events": [{"event_id": "", "event_timestamp": 93683, "root_workflow_exec_id": "", "parent_workflow_exec_id": "", "workflow_exec_id": "", "workflow_run_id": "", "workflow_name": "", "event_type": "CUSTOM_TASK_IN_PROGRESS", "attributes": {"custom_task_id": "", "custom_task_type": "", "payload": {"type": "json", "value": [{"path": "/sys", "value": "", "op": "remove"}], "encoding_options": []}}}]} "422": application/json: {} list_deployments_v1_workflows_deployments_get: @@ -8554,7 +8562,7 @@ examples: connector_id_or_name: "" responses: "200": - application/json: [{"method_type": "none"}] + application/json: [{"method_type": "none", "has_default_credentials": false}] connector_list_organization_credentials_v1: speakeasy-default-connector-list-organization-credentials-v1: parameters: @@ -8704,7 +8712,14 @@ examples: application/json: {} examplesVersion: 1.0.2 generatedTests: {} -releaseNotes: "## Python SDK Changes:\n* `mistral.beta.libraries.update()`: `request.name` **Changed** (Breaking ⚠️)\n* `mistral.beta.libraries.documents.update()`: `request.name` **Changed** (Breaking ⚠️)\n* `mistral.beta.rag.ingestion_pipeline_configurations.update_run_info()`: **Added**\n* `mistral.workflows.schedules.pause_schedule()`: **Added**\n* `mistral.workflows.schedules.resume_schedule()`: **Added**\n* `mistral.beta.rag.ingestion_pipeline_configurations.list()`: `response.[]` **Changed**\n* `mistral.beta.rag.ingestion_pipeline_configurations.register()`: \n * `request.pipeline_composition` **Added**\n * `response` **Changed**\n* `mistral.workflows.schedules.get_schedules()`: `response.schedules[]` **Changed**\n* `mistral.workflows.schedules.schedule_workflow()`: \n * `request.schedule.max_executions` **Added**\n" +releaseNotes: | + ## Python SDK Changes: + * `mistral.workflows.executions.stream()`: `response.[].data.data` **Changed** (Breaking ⚠️) + * `mistral.workflows.events.get_stream_events()`: `response.[].data.data` **Changed** (Breaking ⚠️) + * `mistral.workflows.events.get_workflow_events()`: `response.events[]` **Changed** (Breaking ⚠️) + * `mistral.events.get_stream_events()`: `response.[].data.data` **Changed** (Breaking ⚠️) + * `mistral.events.get_workflow_events()`: `response.events[]` **Changed** (Breaking ⚠️) + * `mistral.beta.connectors.get_authentication_methods()`: `response.[].has_default_credentials` **Added** generatedFiles: - .gitattributes - .vscode/settings.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 465afa47..4a9ae69c 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -32,7 +32,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 2.4.4 + version: 2.5.0 additionalDependencies: dev: pytest: ^8.2.2 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 265ea37e..2da2e1c6 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -16,8 +16,8 @@ sources: - speakeasy-sdk-regen-1773084660 mistral-openapi: sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:1f3eeb2513538e3ae8b5483477b559a460ce3dac0cdd41c31d47db9167acec60 - sourceBlobDigest: sha256:b743e6e51b23d2d5207d1f4348076d22f130052fea4e1676095a2ddc654822a9 + sourceRevisionDigest: sha256:b04dedddfaa420319d07f5d055bbea9cc3feae1409698dcece71c14d6c2f6646 + sourceBlobDigest: sha256:c0bdc86f69f471a8d92b65cc130cee4c37ca741b81d761c0516240dd61fdcbda tags: - latest targets: @@ -38,10 +38,10 @@ targets: mistralai-sdk: source: mistral-openapi sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:1f3eeb2513538e3ae8b5483477b559a460ce3dac0cdd41c31d47db9167acec60 - sourceBlobDigest: sha256:b743e6e51b23d2d5207d1f4348076d22f130052fea4e1676095a2ddc654822a9 + sourceRevisionDigest: sha256:b04dedddfaa420319d07f5d055bbea9cc3feae1409698dcece71c14d6c2f6646 + sourceBlobDigest: sha256:c0bdc86f69f471a8d92b65cc130cee4c37ca741b81d761c0516240dd61fdcbda codeSamplesNamespace: mistral-openapi-code-samples - codeSamplesRevisionDigest: sha256:fa3aa9d30da8a70f9e5d8c74ceab2cd4a043bfa5c5dacfe0035b09d907f41705 + codeSamplesRevisionDigest: sha256:e54c8f49b25ea34b53a5610c23fea4cc7dd12260a3a4cc243c99833f6be9ccd6 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.761.1 diff --git a/RELEASES.md b/RELEASES.md index 440bed5f..196b2767 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -628,4 +628,14 @@ Based on: ### Generated - [python v2.4.4] . ### Releases -- [PyPI v2.4.4] https://pypi.org/project/mistralai/2.4.4 - . \ No newline at end of file +- [PyPI v2.4.4] https://pypi.org/project/mistralai/2.4.4 - . + +## 2026-05-06 14:39:15 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.761.1 (2.879.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.5.0] . +### Releases +- [PyPI v2.5.0] https://pypi.org/project/mistralai/2.5.0 - . \ No newline at end of file diff --git a/docs/models/activitytaskcompletedattributesresponse.md b/docs/models/activitytaskcompletedattributesresponse.md index 5baaffa6..43c92fe2 100644 --- a/docs/models/activitytaskcompletedattributesresponse.md +++ b/docs/models/activitytaskcompletedattributesresponse.md @@ -5,8 +5,8 @@ Attributes for activity task completed events. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `task_id` | *str* | :heavy_check_mark: | Unique identifier for the activity task within the workflow. | -| `activity_name` | *str* | :heavy_check_mark: | The registered name of the activity being executed. | -| `result` | [models.JSONPayloadResponse](../models/jsonpayloadresponse.md) | :heavy_check_mark: | A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `task_id` | *str* | :heavy_check_mark: | Unique identifier for the activity task within the workflow. | +| `activity_name` | *str* | :heavy_check_mark: | The registered name of the activity being executed. | +| `result` | [models.JSONPayloadResponse](../models/jsonpayloadresponse.md) | :heavy_check_mark: | A payload containing arbitrary JSON data.

Used for complete state snapshots or final results.
When encrypted, the value field contains base64-encoded encrypted data
and encoding_options indicates the type of encryption applied. | \ No newline at end of file diff --git a/docs/models/activitytaskstartedattributesresponse.md b/docs/models/activitytaskstartedattributesresponse.md index 5d1f59a8..dd97ff85 100644 --- a/docs/models/activitytaskstartedattributesresponse.md +++ b/docs/models/activitytaskstartedattributesresponse.md @@ -5,8 +5,8 @@ Attributes for activity task started events. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `task_id` | *str* | :heavy_check_mark: | Unique identifier for the activity task within the workflow. | -| `activity_name` | *str* | :heavy_check_mark: | The registered name of the activity being executed. | -| `input` | [models.JSONPayloadResponse](../models/jsonpayloadresponse.md) | :heavy_check_mark: | A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `task_id` | *str* | :heavy_check_mark: | Unique identifier for the activity task within the workflow. | +| `activity_name` | *str* | :heavy_check_mark: | The registered name of the activity being executed. | +| `input` | [models.JSONPayloadResponse](../models/jsonpayloadresponse.md) | :heavy_check_mark: | A payload containing arbitrary JSON data.

Used for complete state snapshots or final results.
When encrypted, the value field contains base64-encoded encrypted data
and encoding_options indicates the type of encryption applied. | \ No newline at end of file diff --git a/docs/models/customtaskcompletedattributesresponse.md b/docs/models/customtaskcompletedattributesresponse.md index a6a136e7..4c7cbfa2 100644 --- a/docs/models/customtaskcompletedattributesresponse.md +++ b/docs/models/customtaskcompletedattributesresponse.md @@ -5,8 +5,8 @@ Attributes for custom task completed events. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `custom_task_id` | *str* | :heavy_check_mark: | Unique identifier for the custom task within the workflow. | -| `custom_task_type` | *str* | :heavy_check_mark: | The type/category of the custom task (e.g., 'llm_call', 'api_request'). | -| `payload` | [models.JSONPayloadResponse](../models/jsonpayloadresponse.md) | :heavy_check_mark: | A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `custom_task_id` | *str* | :heavy_check_mark: | Unique identifier for the custom task within the workflow. | +| `custom_task_type` | *str* | :heavy_check_mark: | The type/category of the custom task (e.g., 'llm_call', 'api_request'). | +| `payload` | [models.JSONPayloadResponse](../models/jsonpayloadresponse.md) | :heavy_check_mark: | A payload containing arbitrary JSON data.

Used for complete state snapshots or final results.
When encrypted, the value field contains base64-encoded encrypted data
and encoding_options indicates the type of encryption applied. | \ No newline at end of file diff --git a/docs/models/customtaskstartedattributesresponse.md b/docs/models/customtaskstartedattributesresponse.md index 8bf43423..41cd66a9 100644 --- a/docs/models/customtaskstartedattributesresponse.md +++ b/docs/models/customtaskstartedattributesresponse.md @@ -5,8 +5,8 @@ Attributes for custom task started events. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `custom_task_id` | *str* | :heavy_check_mark: | Unique identifier for the custom task within the workflow. | -| `custom_task_type` | *str* | :heavy_check_mark: | The type/category of the custom task (e.g., 'llm_call', 'api_request'). | -| `payload` | [Optional[models.JSONPayloadResponse]](../models/jsonpayloadresponse.md) | :heavy_minus_sign: | A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `custom_task_id` | *str* | :heavy_check_mark: | Unique identifier for the custom task within the workflow. | +| `custom_task_type` | *str* | :heavy_check_mark: | The type/category of the custom task (e.g., 'llm_call', 'api_request'). | +| `payload` | [Optional[models.JSONPayloadResponse]](../models/jsonpayloadresponse.md) | :heavy_minus_sign: | A payload containing arbitrary JSON data.

Used for complete state snapshots or final results.
When encrypted, the value field contains base64-encoded encrypted data
and encoding_options indicates the type of encryption applied. | \ No newline at end of file diff --git a/docs/models/encodedpayloadoptions.md b/docs/models/encodedpayloadoptions.md index 15367ce6..51fcfdc4 100644 --- a/docs/models/encodedpayloadoptions.md +++ b/docs/models/encodedpayloadoptions.md @@ -4,12 +4,16 @@ ```python from mistralai.client.models import EncodedPayloadOptions + +# Open enum: unrecognized values are captured as UnrecognizedStr value: EncodedPayloadOptions = "offloaded" ``` ## Values +This is an open enum. Unrecognized values will not fail type checks. + - `"offloaded"` - `"encrypted"` - `"encrypted-partial"` diff --git a/docs/models/jsonpatchpayloadresponse.md b/docs/models/jsonpatchpayloadresponse.md index ce9dbd90..00f3e28f 100644 --- a/docs/models/jsonpatchpayloadresponse.md +++ b/docs/models/jsonpatchpayloadresponse.md @@ -3,11 +3,14 @@ A payload containing a list of JSON Patch operations. Used for streaming incremental updates to workflow state. +When encrypted, the value field contains base64-encoded encrypted data +and encoding_options indicates the type of encryption applied. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `type` | *Literal["json_patch"]* | :heavy_check_mark: | Discriminator indicating this is a JSON Patch payload. | -| `value` | List[[models.JSONPatchPayloadResponseValue](../models/jsonpatchpayloadresponsevalue.md)] | :heavy_check_mark: | The list of JSON Patch operations to apply in order. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `type` | *Literal["json_patch"]* | :heavy_check_mark: | Discriminator indicating this is a JSON Patch payload. | +| `value` | [models.JSONPatchPayloadValue](../models/jsonpatchpayloadvalue.md) | :heavy_check_mark: | N/A | +| `encoding_options` | List[[models.EncodedPayloadOptions](../models/encodedpayloadoptions.md)] | :heavy_check_mark: | Encoding options applied to the payload. | \ No newline at end of file diff --git a/docs/models/jsonpatchpayloadvalue.md b/docs/models/jsonpatchpayloadvalue.md new file mode 100644 index 00000000..d4e57cc6 --- /dev/null +++ b/docs/models/jsonpatchpayloadvalue.md @@ -0,0 +1,17 @@ +# JSONPatchPayloadValue + + +## Supported Types + +### `List[models.JSONPatchPayloadValue1]` + +```python +value: List[models.JSONPatchPayloadValue1] = /* values here */ +``` + +### `str` + +```python +value: str = /* values here */ +``` + diff --git a/docs/models/jsonpatchpayloadresponsevalue.md b/docs/models/jsonpatchpayloadvalue1.md similarity index 92% rename from docs/models/jsonpatchpayloadresponsevalue.md rename to docs/models/jsonpatchpayloadvalue1.md index 21c7d186..dc84f15a 100644 --- a/docs/models/jsonpatchpayloadresponsevalue.md +++ b/docs/models/jsonpatchpayloadvalue1.md @@ -1,4 +1,4 @@ -# JSONPatchPayloadResponseValue +# JSONPatchPayloadValue1 ## Supported Types diff --git a/docs/models/jsonpayloadresponse.md b/docs/models/jsonpayloadresponse.md index 01eaae61..83368ec1 100644 --- a/docs/models/jsonpayloadresponse.md +++ b/docs/models/jsonpayloadresponse.md @@ -3,11 +3,14 @@ A payload containing arbitrary JSON data. Used for complete state snapshots or final results. +When encrypted, the value field contains base64-encoded encrypted data +and encoding_options indicates the type of encryption applied. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | -| `type` | *Optional[Literal["json"]]* | :heavy_minus_sign: | Discriminator indicating this is a raw JSON payload. | -| `value` | *Any* | :heavy_check_mark: | The JSON-serializable payload value. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `type` | *Optional[Literal["json"]]* | :heavy_minus_sign: | Discriminator indicating this is a raw JSON payload. | +| `value` | *Any* | :heavy_check_mark: | The JSON-serializable payload value. When encrypted, contains base64-encoded data. | +| `encoding_options` | List[[models.EncodedPayloadOptions](../models/encodedpayloadoptions.md)] | :heavy_check_mark: | Encoding options applied to the payload. | \ No newline at end of file diff --git a/docs/models/publicauthenticationmethod.md b/docs/models/publicauthenticationmethod.md index fa568d45..59de7076 100644 --- a/docs/models/publicauthenticationmethod.md +++ b/docs/models/publicauthenticationmethod.md @@ -8,4 +8,5 @@ Public view of an authentication method, without secrets. | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | | `method_type` | [models.OutboundAuthenticationType](../models/outboundauthenticationtype.md) | :heavy_check_mark: | N/A | -| `headers` | List[[models.ConnectorAuthenticationHeader](../models/connectorauthenticationheader.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `headers` | List[[models.ConnectorAuthenticationHeader](../models/connectorauthenticationheader.md)] | :heavy_minus_sign: | N/A | +| `has_default_credentials` | *bool* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/workflowexecutioncompletedattributesresponse.md b/docs/models/workflowexecutioncompletedattributesresponse.md index 30a33052..53596a91 100644 --- a/docs/models/workflowexecutioncompletedattributesresponse.md +++ b/docs/models/workflowexecutioncompletedattributesresponse.md @@ -5,7 +5,7 @@ Attributes for workflow execution completed events. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `task_id` | *str* | :heavy_check_mark: | Unique identifier for the task within the workflow execution. | -| `result` | [models.JSONPayloadResponse](../models/jsonpayloadresponse.md) | :heavy_check_mark: | A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `task_id` | *str* | :heavy_check_mark: | Unique identifier for the task within the workflow execution. | +| `result` | [models.JSONPayloadResponse](../models/jsonpayloadresponse.md) | :heavy_check_mark: | A payload containing arbitrary JSON data.

Used for complete state snapshots or final results.
When encrypted, the value field contains base64-encoded encrypted data
and encoding_options indicates the type of encryption applied. | \ No newline at end of file diff --git a/docs/models/workflowexecutioncontinuedasnewattributesresponse.md b/docs/models/workflowexecutioncontinuedasnewattributesresponse.md index b49a2596..13e21499 100644 --- a/docs/models/workflowexecutioncontinuedasnewattributesresponse.md +++ b/docs/models/workflowexecutioncontinuedasnewattributesresponse.md @@ -5,9 +5,9 @@ Attributes for workflow execution continued-as-new events. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `task_id` | *str* | :heavy_check_mark: | Unique identifier for the task within the workflow execution. | -| `new_execution_run_id` | *str* | :heavy_check_mark: | The run ID of the new workflow execution that continues this workflow. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the continued workflow. | -| `input` | [models.JSONPayloadResponse](../models/jsonpayloadresponse.md) | :heavy_check_mark: | A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `task_id` | *str* | :heavy_check_mark: | Unique identifier for the task within the workflow execution. | +| `new_execution_run_id` | *str* | :heavy_check_mark: | The run ID of the new workflow execution that continues this workflow. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the continued workflow. | +| `input` | [models.JSONPayloadResponse](../models/jsonpayloadresponse.md) | :heavy_check_mark: | A payload containing arbitrary JSON data.

Used for complete state snapshots or final results.
When encrypted, the value field contains base64-encoded encrypted data
and encoding_options indicates the type of encryption applied. | \ No newline at end of file diff --git a/docs/models/workflowexecutionstartedattributesresponse.md b/docs/models/workflowexecutionstartedattributesresponse.md index e222a142..63c20eb1 100644 --- a/docs/models/workflowexecutionstartedattributesresponse.md +++ b/docs/models/workflowexecutionstartedattributesresponse.md @@ -5,9 +5,9 @@ Attributes for workflow execution started events. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `task_id` | *str* | :heavy_check_mark: | Unique identifier for the task within the workflow execution. | -| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow being executed. | -| `display_name` | *OptionalNullable[str]* | :heavy_minus_sign: | The user-friendly display name of the workflow, if available. | -| `input` | [models.JSONPayloadResponse](../models/jsonpayloadresponse.md) | :heavy_check_mark: | A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `task_id` | *str* | :heavy_check_mark: | Unique identifier for the task within the workflow execution. | +| `workflow_name` | *str* | :heavy_check_mark: | The registered name of the workflow being executed. | +| `display_name` | *OptionalNullable[str]* | :heavy_minus_sign: | The user-friendly display name of the workflow, if available. | +| `input` | [models.JSONPayloadResponse](../models/jsonpayloadresponse.md) | :heavy_check_mark: | A payload containing arbitrary JSON data.

Used for complete state snapshots or final results.
When encrypted, the value field contains base64-encoded encrypted data
and encoding_options indicates the type of encryption applied. | \ No newline at end of file diff --git a/src/mistralai/client/_version.py b/src/mistralai/client/_version.py index 026fdee0..be7b6221 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.4.4" +__version__: str = "2.5.0" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.879.6" -__user_agent__: str = "speakeasy-sdk/python 2.4.4 2.879.6 1.0.0 mistralai" +__user_agent__: str = "speakeasy-sdk/python 2.5.0 2.879.6 1.0.0 mistralai" try: if __package__ is not None: diff --git a/src/mistralai/client/models/__init__.py b/src/mistralai/client/models/__init__.py index cb0320b3..d7564c2a 100644 --- a/src/mistralai/client/models/__init__.py +++ b/src/mistralai/client/models/__init__.py @@ -1170,9 +1170,13 @@ from .jsonpatchpayloadresponse import ( JSONPatchPayloadResponse, JSONPatchPayloadResponseTypedDict, - JSONPatchPayloadResponseValue, - JSONPatchPayloadResponseValueTypedDict, - UnknownJSONPatchPayloadResponseValue, + ) + from .jsonpatchpayloadvalue import ( + JSONPatchPayloadValue, + JSONPatchPayloadValue1, + JSONPatchPayloadValue1TypedDict, + JSONPatchPayloadValueTypedDict, + UnknownJSONPatchPayloadValue1, ) from .jsonpatchremove import JSONPatchRemove, JSONPatchRemoveTypedDict from .jsonpatchreplace import JSONPatchReplace, JSONPatchReplaceTypedDict @@ -2910,8 +2914,10 @@ "JSONPatchAppendTypedDict", "JSONPatchPayloadResponse", "JSONPatchPayloadResponseTypedDict", - "JSONPatchPayloadResponseValue", - "JSONPatchPayloadResponseValueTypedDict", + "JSONPatchPayloadValue", + "JSONPatchPayloadValue1", + "JSONPatchPayloadValue1TypedDict", + "JSONPatchPayloadValueTypedDict", "JSONPatchRemove", "JSONPatchRemoveTypedDict", "JSONPatchReplace", @@ -3500,7 +3506,7 @@ "UnknownConnectorToolCallResponseContent", "UnknownContentChunk", "UnknownConversationEventsData", - "UnknownJSONPatchPayloadResponseValue", + "UnknownJSONPatchPayloadValue1", "UnknownJobsAPIRoutesFineTuningCancelFineTuningJobResponse", "UnknownJobsAPIRoutesFineTuningGetFineTuningJobResponse", "UnknownJobsAPIRoutesFineTuningStartFineTuningJobResponse", @@ -4472,9 +4478,11 @@ "JSONPatchAppendTypedDict": ".jsonpatchappend", "JSONPatchPayloadResponse": ".jsonpatchpayloadresponse", "JSONPatchPayloadResponseTypedDict": ".jsonpatchpayloadresponse", - "JSONPatchPayloadResponseValue": ".jsonpatchpayloadresponse", - "JSONPatchPayloadResponseValueTypedDict": ".jsonpatchpayloadresponse", - "UnknownJSONPatchPayloadResponseValue": ".jsonpatchpayloadresponse", + "JSONPatchPayloadValue": ".jsonpatchpayloadvalue", + "JSONPatchPayloadValue1": ".jsonpatchpayloadvalue", + "JSONPatchPayloadValue1TypedDict": ".jsonpatchpayloadvalue", + "JSONPatchPayloadValueTypedDict": ".jsonpatchpayloadvalue", + "UnknownJSONPatchPayloadValue1": ".jsonpatchpayloadvalue", "JSONPatchRemove": ".jsonpatchremove", "JSONPatchRemoveTypedDict": ".jsonpatchremove", "JSONPatchReplace": ".jsonpatchreplace", diff --git a/src/mistralai/client/models/activitytaskcompletedattributesresponse.py b/src/mistralai/client/models/activitytaskcompletedattributesresponse.py index 899acb62..8e355d48 100644 --- a/src/mistralai/client/models/activitytaskcompletedattributesresponse.py +++ b/src/mistralai/client/models/activitytaskcompletedattributesresponse.py @@ -18,6 +18,8 @@ class ActivityTaskCompletedAttributesResponseTypedDict(TypedDict): r"""A payload containing arbitrary JSON data. Used for complete state snapshots or final results. + When encrypted, the value field contains base64-encoded encrypted data + and encoding_options indicates the type of encryption applied. """ @@ -34,4 +36,6 @@ class ActivityTaskCompletedAttributesResponse(BaseModel): r"""A payload containing arbitrary JSON data. Used for complete state snapshots or final results. + When encrypted, the value field contains base64-encoded encrypted data + and encoding_options indicates the type of encryption applied. """ diff --git a/src/mistralai/client/models/activitytaskstartedattributesresponse.py b/src/mistralai/client/models/activitytaskstartedattributesresponse.py index 100626d4..9a049150 100644 --- a/src/mistralai/client/models/activitytaskstartedattributesresponse.py +++ b/src/mistralai/client/models/activitytaskstartedattributesresponse.py @@ -18,6 +18,8 @@ class ActivityTaskStartedAttributesResponseTypedDict(TypedDict): r"""A payload containing arbitrary JSON data. Used for complete state snapshots or final results. + When encrypted, the value field contains base64-encoded encrypted data + and encoding_options indicates the type of encryption applied. """ @@ -34,4 +36,6 @@ class ActivityTaskStartedAttributesResponse(BaseModel): r"""A payload containing arbitrary JSON data. Used for complete state snapshots or final results. + When encrypted, the value field contains base64-encoded encrypted data + and encoding_options indicates the type of encryption applied. """ diff --git a/src/mistralai/client/models/customtaskcompletedattributesresponse.py b/src/mistralai/client/models/customtaskcompletedattributesresponse.py index 8b28d105..afd48d76 100644 --- a/src/mistralai/client/models/customtaskcompletedattributesresponse.py +++ b/src/mistralai/client/models/customtaskcompletedattributesresponse.py @@ -18,6 +18,8 @@ class CustomTaskCompletedAttributesResponseTypedDict(TypedDict): r"""A payload containing arbitrary JSON data. Used for complete state snapshots or final results. + When encrypted, the value field contains base64-encoded encrypted data + and encoding_options indicates the type of encryption applied. """ @@ -34,4 +36,6 @@ class CustomTaskCompletedAttributesResponse(BaseModel): r"""A payload containing arbitrary JSON data. Used for complete state snapshots or final results. + When encrypted, the value field contains base64-encoded encrypted data + and encoding_options indicates the type of encryption applied. """ diff --git a/src/mistralai/client/models/customtaskstartedattributesresponse.py b/src/mistralai/client/models/customtaskstartedattributesresponse.py index 71bed58f..4f53ae8a 100644 --- a/src/mistralai/client/models/customtaskstartedattributesresponse.py +++ b/src/mistralai/client/models/customtaskstartedattributesresponse.py @@ -20,6 +20,8 @@ class CustomTaskStartedAttributesResponseTypedDict(TypedDict): r"""A payload containing arbitrary JSON data. Used for complete state snapshots or final results. + When encrypted, the value field contains base64-encoded encrypted data + and encoding_options indicates the type of encryption applied. """ @@ -36,6 +38,8 @@ class CustomTaskStartedAttributesResponse(BaseModel): r"""A payload containing arbitrary JSON data. Used for complete state snapshots or final results. + When encrypted, the value field contains base64-encoded encrypted data + and encoding_options indicates the type of encryption applied. """ @model_serializer(mode="wrap") diff --git a/src/mistralai/client/models/encodedpayloadoptions.py b/src/mistralai/client/models/encodedpayloadoptions.py index 5c369046..cc19b543 100644 --- a/src/mistralai/client/models/encodedpayloadoptions.py +++ b/src/mistralai/client/models/encodedpayloadoptions.py @@ -2,11 +2,15 @@ # @generated-id: 97955ebc2eb9 from __future__ import annotations -from typing import Literal +from mistralai.client.types import UnrecognizedStr +from typing import Literal, Union -EncodedPayloadOptions = Literal[ - "offloaded", - "encrypted", - "encrypted-partial", +EncodedPayloadOptions = Union[ + Literal[ + "offloaded", + "encrypted", + "encrypted-partial", + ], + UnrecognizedStr, ] diff --git a/src/mistralai/client/models/jsonpatchpayloadresponse.py b/src/mistralai/client/models/jsonpatchpayloadresponse.py index 345e6d14..40eef440 100644 --- a/src/mistralai/client/models/jsonpatchpayloadresponse.py +++ b/src/mistralai/client/models/jsonpatchpayloadresponse.py @@ -2,78 +2,28 @@ # @generated-id: 1b39f46f529f from __future__ import annotations -from .jsonpatchadd import JSONPatchAdd, JSONPatchAddTypedDict -from .jsonpatchappend import JSONPatchAppend, JSONPatchAppendTypedDict -from .jsonpatchremove import JSONPatchRemove, JSONPatchRemoveTypedDict -from .jsonpatchreplace import JSONPatchReplace, JSONPatchReplaceTypedDict -from functools import partial -from mistralai.client.types import BaseModel +from .encodedpayloadoptions import EncodedPayloadOptions +from .jsonpatchpayloadvalue import JSONPatchPayloadValue, JSONPatchPayloadValueTypedDict +from mistralai.client.types import BaseModel, Nullable, UNSET_SENTINEL from mistralai.client.utils import validate_const -from mistralai.client.utils.unions import parse_open_union import pydantic -from pydantic import ConfigDict -from pydantic.functional_validators import AfterValidator, BeforeValidator -from typing import Any, List, Literal, Union -from typing_extensions import Annotated, TypeAliasType, TypedDict - - -JSONPatchPayloadResponseValueTypedDict = TypeAliasType( - "JSONPatchPayloadResponseValueTypedDict", - Union[ - JSONPatchAppendTypedDict, - JSONPatchAddTypedDict, - JSONPatchReplaceTypedDict, - JSONPatchRemoveTypedDict, - ], -) - - -class UnknownJSONPatchPayloadResponseValue(BaseModel): - r"""A JSONPatchPayloadResponseValue variant the SDK doesn't recognize. Preserves the raw payload.""" - - op: Literal["UNKNOWN"] = "UNKNOWN" - raw: Any - is_unknown: Literal[True] = True - - model_config = ConfigDict(frozen=True) - - -_JSON_PATCH_PAYLOAD_RESPONSE_VALUE_VARIANTS: dict[str, Any] = { - "add": JSONPatchAdd, - "append": JSONPatchAppend, - "remove": JSONPatchRemove, - "replace": JSONPatchReplace, -} - - -JSONPatchPayloadResponseValue = Annotated[ - Union[ - JSONPatchAdd, - JSONPatchAppend, - JSONPatchRemove, - JSONPatchReplace, - UnknownJSONPatchPayloadResponseValue, - ], - BeforeValidator( - partial( - parse_open_union, - disc_key="op", - variants=_JSON_PATCH_PAYLOAD_RESPONSE_VALUE_VARIANTS, - unknown_cls=UnknownJSONPatchPayloadResponseValue, - union_name="JSONPatchPayloadResponseValue", - ) - ), -] +from pydantic import model_serializer +from pydantic.functional_validators import AfterValidator +from typing import List, Literal +from typing_extensions import Annotated, TypedDict class JSONPatchPayloadResponseTypedDict(TypedDict): r"""A payload containing a list of JSON Patch operations. Used for streaming incremental updates to workflow state. + When encrypted, the value field contains base64-encoded encrypted data + and encoding_options indicates the type of encryption applied. """ - value: List[JSONPatchPayloadResponseValueTypedDict] - r"""The list of JSON Patch operations to apply in order.""" + value: JSONPatchPayloadValueTypedDict + encoding_options: Nullable[List[EncodedPayloadOptions]] + r"""Encoding options applied to the payload.""" type: Literal["json_patch"] r"""Discriminator indicating this is a JSON Patch payload.""" @@ -82,10 +32,14 @@ class JSONPatchPayloadResponse(BaseModel): r"""A payload containing a list of JSON Patch operations. Used for streaming incremental updates to workflow state. + When encrypted, the value field contains base64-encoded encrypted data + and encoding_options indicates the type of encryption applied. """ - value: List[JSONPatchPayloadResponseValue] - r"""The list of JSON Patch operations to apply in order.""" + value: JSONPatchPayloadValue + + encoding_options: Nullable[List[EncodedPayloadOptions]] + r"""Encoding options applied to the payload.""" type: Annotated[ Annotated[Literal["json_patch"], AfterValidator(validate_const("json_patch"))], @@ -93,6 +47,20 @@ class JSONPatchPayloadResponse(BaseModel): ] = "json_patch" r"""Discriminator indicating this is a JSON Patch payload.""" + @model_serializer(mode="wrap") + def serialize_model(self, handler): + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + m[k] = val + + return m + try: JSONPatchPayloadResponse.model_rebuild() diff --git a/src/mistralai/client/models/jsonpatchpayloadvalue.py b/src/mistralai/client/models/jsonpatchpayloadvalue.py new file mode 100644 index 00000000..5b9270b7 --- /dev/null +++ b/src/mistralai/client/models/jsonpatchpayloadvalue.py @@ -0,0 +1,74 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: e632293af7ad + +from __future__ import annotations +from .jsonpatchadd import JSONPatchAdd, JSONPatchAddTypedDict +from .jsonpatchappend import JSONPatchAppend, JSONPatchAppendTypedDict +from .jsonpatchremove import JSONPatchRemove, JSONPatchRemoveTypedDict +from .jsonpatchreplace import JSONPatchReplace, JSONPatchReplaceTypedDict +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 + + +JSONPatchPayloadValue1TypedDict = TypeAliasType( + "JSONPatchPayloadValue1TypedDict", + Union[ + JSONPatchAppendTypedDict, + JSONPatchAddTypedDict, + JSONPatchReplaceTypedDict, + JSONPatchRemoveTypedDict, + ], +) + + +class UnknownJSONPatchPayloadValue1(BaseModel): + r"""A JSONPatchPayloadValue1 variant the SDK doesn't recognize. Preserves the raw payload.""" + + op: Literal["UNKNOWN"] = "UNKNOWN" + raw: Any + is_unknown: Literal[True] = True + + model_config = ConfigDict(frozen=True) + + +_JSON_PATCH_PAYLOAD_VALUE_1_VARIANTS: dict[str, Any] = { + "add": JSONPatchAdd, + "append": JSONPatchAppend, + "remove": JSONPatchRemove, + "replace": JSONPatchReplace, +} + + +JSONPatchPayloadValue1 = Annotated[ + Union[ + JSONPatchAdd, + JSONPatchAppend, + JSONPatchRemove, + JSONPatchReplace, + UnknownJSONPatchPayloadValue1, + ], + BeforeValidator( + partial( + parse_open_union, + disc_key="op", + variants=_JSON_PATCH_PAYLOAD_VALUE_1_VARIANTS, + unknown_cls=UnknownJSONPatchPayloadValue1, + union_name="JSONPatchPayloadValue1", + ) + ), +] + + +JSONPatchPayloadValueTypedDict = TypeAliasType( + "JSONPatchPayloadValueTypedDict", Union[List[JSONPatchPayloadValue1TypedDict], str] +) + + +JSONPatchPayloadValue = TypeAliasType( + "JSONPatchPayloadValue", Union[List[JSONPatchPayloadValue1], str] +) diff --git a/src/mistralai/client/models/jsonpayloadresponse.py b/src/mistralai/client/models/jsonpayloadresponse.py index 038ea329..34ef8108 100644 --- a/src/mistralai/client/models/jsonpayloadresponse.py +++ b/src/mistralai/client/models/jsonpayloadresponse.py @@ -2,12 +2,13 @@ # @generated-id: ba3265f85453 from __future__ import annotations -from mistralai.client.types import BaseModel, UNSET_SENTINEL +from .encodedpayloadoptions import EncodedPayloadOptions +from mistralai.client.types import BaseModel, Nullable, 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 import Any, List, Literal, Optional from typing_extensions import Annotated, TypedDict @@ -15,10 +16,14 @@ class JSONPayloadResponseTypedDict(TypedDict): r"""A payload containing arbitrary JSON data. Used for complete state snapshots or final results. + When encrypted, the value field contains base64-encoded encrypted data + and encoding_options indicates the type of encryption applied. """ value: Any - r"""The JSON-serializable payload value.""" + r"""The JSON-serializable payload value. When encrypted, contains base64-encoded data.""" + encoding_options: Nullable[List[EncodedPayloadOptions]] + r"""Encoding options applied to the payload.""" type: Literal["json"] r"""Discriminator indicating this is a raw JSON payload.""" @@ -27,10 +32,15 @@ class JSONPayloadResponse(BaseModel): r"""A payload containing arbitrary JSON data. Used for complete state snapshots or final results. + When encrypted, the value field contains base64-encoded encrypted data + and encoding_options indicates the type of encryption applied. """ value: Any - r"""The JSON-serializable payload value.""" + r"""The JSON-serializable payload value. When encrypted, contains base64-encoded data.""" + + encoding_options: Nullable[List[EncodedPayloadOptions]] + r"""Encoding options applied to the payload.""" type: Annotated[ Annotated[Optional[Literal["json"]], AfterValidator(validate_const("json"))], @@ -41,15 +51,24 @@ class JSONPayloadResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set(["type"]) + nullable_fields = set(["encoding_options"]) 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/publicauthenticationmethod.py b/src/mistralai/client/models/publicauthenticationmethod.py index 95dde29a..42e943a6 100644 --- a/src/mistralai/client/models/publicauthenticationmethod.py +++ b/src/mistralai/client/models/publicauthenticationmethod.py @@ -23,6 +23,7 @@ class PublicAuthenticationMethodTypedDict(TypedDict): r"""Public view of an authentication method, without secrets.""" method_type: OutboundAuthenticationType + has_default_credentials: bool headers: NotRequired[Nullable[List[ConnectorAuthenticationHeaderTypedDict]]] @@ -31,6 +32,8 @@ class PublicAuthenticationMethod(BaseModel): method_type: OutboundAuthenticationType + has_default_credentials: bool + headers: OptionalNullable[List[ConnectorAuthenticationHeader]] = UNSET @model_serializer(mode="wrap") diff --git a/src/mistralai/client/models/workflowexecutioncompletedattributesresponse.py b/src/mistralai/client/models/workflowexecutioncompletedattributesresponse.py index 3afc8dcf..1fe0c248 100644 --- a/src/mistralai/client/models/workflowexecutioncompletedattributesresponse.py +++ b/src/mistralai/client/models/workflowexecutioncompletedattributesresponse.py @@ -16,6 +16,8 @@ class WorkflowExecutionCompletedAttributesResponseTypedDict(TypedDict): r"""A payload containing arbitrary JSON data. Used for complete state snapshots or final results. + When encrypted, the value field contains base64-encoded encrypted data + and encoding_options indicates the type of encryption applied. """ @@ -29,4 +31,6 @@ class WorkflowExecutionCompletedAttributesResponse(BaseModel): r"""A payload containing arbitrary JSON data. Used for complete state snapshots or final results. + When encrypted, the value field contains base64-encoded encrypted data + and encoding_options indicates the type of encryption applied. """ diff --git a/src/mistralai/client/models/workflowexecutioncontinuedasnewattributesresponse.py b/src/mistralai/client/models/workflowexecutioncontinuedasnewattributesresponse.py index 943e5ebc..2ddbf0af 100644 --- a/src/mistralai/client/models/workflowexecutioncontinuedasnewattributesresponse.py +++ b/src/mistralai/client/models/workflowexecutioncontinuedasnewattributesresponse.py @@ -20,6 +20,8 @@ class WorkflowExecutionContinuedAsNewAttributesResponseTypedDict(TypedDict): r"""A payload containing arbitrary JSON data. Used for complete state snapshots or final results. + When encrypted, the value field contains base64-encoded encrypted data + and encoding_options indicates the type of encryption applied. """ @@ -39,4 +41,6 @@ class WorkflowExecutionContinuedAsNewAttributesResponse(BaseModel): r"""A payload containing arbitrary JSON data. Used for complete state snapshots or final results. + When encrypted, the value field contains base64-encoded encrypted data + and encoding_options indicates the type of encryption applied. """ diff --git a/src/mistralai/client/models/workflowexecutionstartedattributesresponse.py b/src/mistralai/client/models/workflowexecutionstartedattributesresponse.py index c6e118f4..59746a61 100644 --- a/src/mistralai/client/models/workflowexecutionstartedattributesresponse.py +++ b/src/mistralai/client/models/workflowexecutionstartedattributesresponse.py @@ -25,6 +25,8 @@ class WorkflowExecutionStartedAttributesResponseTypedDict(TypedDict): r"""A payload containing arbitrary JSON data. Used for complete state snapshots or final results. + When encrypted, the value field contains base64-encoded encrypted data + and encoding_options indicates the type of encryption applied. """ display_name: NotRequired[Nullable[str]] r"""The user-friendly display name of the workflow, if available.""" @@ -43,6 +45,8 @@ class WorkflowExecutionStartedAttributesResponse(BaseModel): r"""A payload containing arbitrary JSON data. Used for complete state snapshots or final results. + When encrypted, the value field contains base64-encoded encrypted data + and encoding_options indicates the type of encryption applied. """ display_name: OptionalNullable[str] = UNSET