diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index e3b8a660..e301fb75 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: 46b232e8ede7735f4d349983b2035154 + docChecksum: 31950c7973592eae751f1de7946d57c4 docVersion: 1.0.0 speakeasyVersion: 1.763.6 generationVersion: 2.884.13 - releaseVersion: 2.9.1 - configChecksum: 2a10235cc17e6d4dd26029491aa75b96 + releaseVersion: 2.9.2 + configChecksum: 8402d417235190f47a95e1096497e1cc repoURL: https://github.com/mistralai/client-python.git installationURL: https://github.com/mistralai/client-python.git published: true persistentEdits: - generation_id: 9a9e2eeb-eaec-4ceb-89d4-785d54360ff4 - pristine_commit_hash: f3b9d9c543e5d7b399f1ae65bceae210a7f9a6fb - pristine_tree_hash: 7c237abb87203a2c9fd6d941c01b86176b8e6f9b + generation_id: 7784bd57-1a27-48ce-99e1-8fdaad2bd6bb + pristine_commit_hash: 3a3242ca5ac037d91adbfc0e56eecae016b67775 + pristine_tree_hash: 82f397cc6e109b39247c7a864182ccd2de7eb994 features: python: acceptHeaders: 3.0.0 @@ -82,32 +82,32 @@ trackedFiles: pristine_git_object: 43c92fe262f8e8657d337420526959424889d5dd docs/models/activitytaskcompletedresponse.md: id: 6aade3f8c26c - last_write_checksum: sha1:944b923aa932452372abebfe6d61ab739555109f - pristine_git_object: 56a646311c1f9f7bb9dcd8187c9e4f937f19e6cb + last_write_checksum: sha1:14f4d21bfdfe44f1645a71c188d239f21fa7bfa6 + pristine_git_object: f228c8651bef8c6221d36a68c374dda793c756ea 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:165eb54c023c8d29fa1093542cf62b69cbc4657b - pristine_git_object: 0853f68d3413dead9b67b3183b287a08f9339faa + last_write_checksum: sha1:66eb2ebfd8cf24679091374d5c2abf1dd6429615 + pristine_git_object: 3eea5f598059cc59497a8510aed3565271f972ba 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:0ede54e73f1c5c77e585e8c9f3892c626bede7cf - pristine_git_object: 8b7bdd42e45eb8b3c5ad33a2de5ac2d15d8b3453 + last_write_checksum: sha1:d42e19865057a89031307d832b66d5eaa57c5f22 + pristine_git_object: 77ac704bab05aa9422134ef57094331af1eaa498 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:3cd53ec4c3c8bdc389c55cf527c960b3b8a91c30 - pristine_git_object: 1aee1533fc92116e79a13b338dd6e6e74fcab800 + last_write_checksum: sha1:610696d492c358f48d9149c6e4c3c52456c3b02d + pristine_git_object: cafdca16f8c57137f43b9032ba273c3e8151e599 docs/models/agent.md: id: ffdbb4c53c87 last_write_checksum: sha1:a4438b1b0db1d00df3aacfc432acc523a3ca57da @@ -380,10 +380,18 @@ trackedFiles: id: e510ac107a56 last_write_checksum: sha1:37a2135ea310afd440dd66c8ca49737e618550b1 pristine_git_object: 66b945d41ec04cf9667876acb78928aa40f09d2b + docs/models/authdirection.md: + id: ca10166120de + last_write_checksum: sha1:83c67886c8768b357c58470e17450c8b0e621e80 + pristine_git_object: c3f547fca9932b775739cb2229cb512f14c564a3 docs/models/authenticationconfiguration.md: id: b470496ac0ad last_write_checksum: sha1:941bad08fa250054a877582aca65dee970f51292 pristine_git_object: d52b558f299a57878ef1102dd99890cbf32c711c + docs/models/authenticationmethodcreateorupdaterequest.md: + id: b64367bcb5e8 + last_write_checksum: sha1:58dd78fcb9dd88892210780619d27c761de8564e + pristine_git_object: 727f7fa59de36d7320c2ad6b1d2371488120fb79 docs/models/authorization.md: id: dec4d9809e25 last_write_checksum: sha1:6bf766a7b49ca2b706bb4eb88ba2d56406e06e1e @@ -1014,48 +1022,48 @@ trackedFiles: pristine_git_object: 3a5facdd3be90098f0f22bcf05215472cf2d4ec9 docs/models/customtaskcanceledresponse.md: id: 79e4f2bbf720 - last_write_checksum: sha1:c65ddfa80c6bd5ce96fcd0de194f1dbb68423dea - pristine_git_object: 0bcee2279755656a624d626acea0a157fa3b381c + last_write_checksum: sha1:0e27dd0382f6c5bab049cea696897ea2c6be646d + pristine_git_object: 8cd824feb58436b2016abb07257f410cea051755 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:0439d35a428e5d8d321da8b710ce72c188802085 - pristine_git_object: 6871184f3d850a628ed71cbef9c98ec3e742dbfe + last_write_checksum: sha1:0718b2a0c6dec743f4c7906f45af79ddf8ef3b55 + pristine_git_object: b31f4e22ac96b7b89c2dbbe424d4fa858df4b392 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:639353633a2fd6f383896673750338235a1c442e - pristine_git_object: e14e4afa4b1fe76d10a2f8505ce88e9a828d845e + last_write_checksum: sha1:e9d4a5cbb677c2c55181e2b8d27a87873d8efc6c + pristine_git_object: 09385f063d158a00419024eb8988cbfd78eca7ae 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:43caaf16e8ef772ab4a4b1f2cd926a59c87b627f - pristine_git_object: 72afa91fb2baadd7dd8cf32aad2b2812316a6953 + last_write_checksum: sha1:f89344b7024132bc9a1c2b5fd653ccbf3d8bbe5a + pristine_git_object: c3ee34185ab6f324cfe6d4b37effdd5dcd525788 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:031eac9a01bc24b36a9cf2eb4ea864c89ba709e5 - pristine_git_object: 80b1b08b02b219ef714e44d0853df4c992db84eb + last_write_checksum: sha1:2fb5b763d0b165bc866cea572ed605869f08affc + pristine_git_object: 48acab463772562aa8290c69616a2b70c1629346 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:9b167994685d056179122eeed0df39c6b52c9cf4 - pristine_git_object: 75d497434c80a29a3010c451fb6b94d32d213863 + last_write_checksum: sha1:ef9c65c1c3030a4b156e90136cd2dd9f8739241b + pristine_git_object: 02bb0581f404910eb42c5a628bfe014734623f10 docs/models/dataset.md: id: 31af4d237e19 last_write_checksum: sha1:073fa9a0b7891ccd9b6ae64ba960d74eeb5c9007 @@ -1326,8 +1334,8 @@ trackedFiles: pristine_git_object: d7de83a9d4fad318d2e30f7718bf9b529a367158 docs/models/extendedoauthservermetadata.md: id: f204f1d46efe - last_write_checksum: sha1:637d6587a1804503cb01654bb2ebf635700a2f38 - pristine_git_object: 17a430ea8c00bc7b817781aca4bd8b10a43140ce + last_write_checksum: sha1:36e6cefde0958cc831b0426541c0fd01c3045e7e + pristine_git_object: 601d9df6b27d9a63e9e1a2e786cab3afc3ee6370 docs/models/failure.md: id: 3f79c7d64eac last_write_checksum: sha1:344f1cea9b786a399a0dd974d4df010714031b2a @@ -1892,6 +1900,10 @@ trackedFiles: id: 74bd521abc26 last_write_checksum: sha1:a4efe4ff8c52137af47d6ab750d1d2f7cba77e7c pristine_git_object: 72a586bc65f6219abed50105d9df9cb8b6ec8d02 + docs/models/inboundauthenticationtype.md: + id: 31c15e812eb0 + last_write_checksum: sha1:341c47f514e556a8fd8a602920fb6a29beffa305 + pristine_git_object: ea04329c04cbe001e4a29880fc2fd463ba5cbe03 docs/models/ingestionpipelineconfiguration.md: id: 95a1d6bf413b last_write_checksum: sha1:ba9e052c6ab8b13b4108ff395ac0e20181326f0b @@ -2368,6 +2380,10 @@ trackedFiles: id: c348c2448aaa last_write_checksum: sha1:5f99a25a3f689030756a63e925113030121c5d7e pristine_git_object: 427e09b524964c521a6b63962e5f71ae0ca1b485 + docs/models/methodtype.md: + id: 7c7e0f30b36b + last_write_checksum: sha1:1d3d6335473dc65c4964ebfd578ee955403dde7d + pristine_git_object: 7628bbdd47c63d6109b175157f6ba8f9e907c5d0 docs/models/metricaggregation.md: id: 0f926158669d last_write_checksum: sha1:20df8cfe3aa53bce14350d5d0dfa00b8a5a0e930 @@ -2444,6 +2460,10 @@ trackedFiles: id: 44842604e405 last_write_checksum: sha1:50e09dfa5ed838df4a760358c6bf81c04da4910b pristine_git_object: 71e38615fada1e4f3b10e669eb3d8a6b768aa268 + docs/models/oauth2metadatasecrets.md: + id: fb2ca31e174f + last_write_checksum: sha1:e8edc859b7bcfe27eb58b6afc53b3da447128017 + pristine_git_object: a5ac81b806734333ac25cd112a2b831045d4fce3 docs/models/oauth2token.md: id: 409bc5ff306f last_write_checksum: sha1:cfa4eca0c2a099adf3d365d2bda4fe026d6dc36d @@ -2454,8 +2474,8 @@ trackedFiles: pristine_git_object: 89f80436474e3c2293bb4fcafce11e626e2cdf79 docs/models/observabilityerrorcode.md: id: 61d16ff95b87 - last_write_checksum: sha1:85c6434d77e360db5cee547725b62a81fe794422 - pristine_git_object: ba9749c60deff54d56c8c2d05cbd1735a7bb290b + last_write_checksum: sha1:1f31417a16dc83c9a1ddcd467f592e12d9cd9331 + pristine_git_object: 43d2020f6e585fdbb7e5557f6b8d186c82fdc42b docs/models/observabilityerrordetail.md: id: 38061447dfbb last_write_checksum: sha1:1da7bf6e72c2f972b0e22f0201a1cb9b76f53ccd @@ -3678,8 +3698,8 @@ trackedFiles: pristine_git_object: cf590a2fc7f58707855eb0bda2d4b8460bfea800 docs/models/updateconnectorrequest.md: id: 40e38d9c7c2a - last_write_checksum: sha1:6a8880c541a16375ad67b3bdb64bd020c6bbc799 - pristine_git_object: 3e715e5617b0888229a1f25b82f12c55c7cfb98c + last_write_checksum: sha1:96f9ce299021d2fafc5d96dd4a9ef1d18e538347 + pristine_git_object: 4bb9f2388280866e453e3f5ae6e3dbdcd6411283 docs/models/updatedatasetrecordpayloadrequest.md: id: ada11a6c544f last_write_checksum: sha1:57f0b53f5c30a9a0ed850109e57b6cb62e14c6a5 @@ -3926,36 +3946,36 @@ trackedFiles: pristine_git_object: ebfe2d86bb5c460219eb9fe9902002817c0f914a docs/models/workflowexecutioncanceledattributes.md: id: 2eb975976d1a - last_write_checksum: sha1:63f7d6bbbbca074ebc2988988477d95d2f147c11 - pristine_git_object: 8c2929eb3de33ac39ebf3b243af978957c6a43f5 + last_write_checksum: sha1:43b4b996a6ae39b6c76b129ab5360fa0793229a7 + pristine_git_object: fcd2f19de6c0b3149283436a39dca1bc8d02b913 docs/models/workflowexecutioncanceledresponse.md: id: c56b39b95831 - last_write_checksum: sha1:3fc990c9fd4b7b3b0368b80840d737cf355a8759 - pristine_git_object: f9f4c01d263fb222de033128cd43f86c56f2b8cd + last_write_checksum: sha1:f55f3ef0b0218fe72e0ac25148a85c50c5fb89ba + pristine_git_object: b31c1772b69934240fc962aae4237319b82c795d docs/models/workflowexecutioncompletedattributesresponse.md: id: ee786dd87f88 - last_write_checksum: sha1:0d6121ea184c00cb362a345113fcb1f84cff3b13 - pristine_git_object: 53596a91525e00e58cdf548c2b17deeecba8b567 + last_write_checksum: sha1:d9725e0eb29b0713e74dcf32b1881d0fcb841350 + pristine_git_object: 6693aad346acc4c3f9a5c5a94ca661c912ae558d docs/models/workflowexecutioncompletedresponse.md: id: c1888ba90ec6 - last_write_checksum: sha1:491656749133e6b0d7714d2a9cbc8de8aa9c92d7 - pristine_git_object: a4d40dc52ead7c8a525cfd838fc0aa336570fb3b + last_write_checksum: sha1:78ca611c4ce1813beb6d936df03e6ab2305e601e + pristine_git_object: 2cdb78974c2851e0d543c948fbc1c23f3a0dd5ad 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:e65c01b128029322249b28e4152cd60af2443b18 - pristine_git_object: e6a7212a856f0b89b18c16e7b9f6e93ddbb2e527 + last_write_checksum: sha1:50d67e5c05b61b446e9c3ad6b79d26fb2cba1a35 + pristine_git_object: 1dd8faa5c3c64a30bcaa5499ba6ed527ad32590c docs/models/workflowexecutionfailedattributes.md: id: b5ddf561c50e - last_write_checksum: sha1:097719213eeb253420f6bc7167f96c58d00bb5b4 - pristine_git_object: 9fa14fa42e0d11148df4ceb227e35d808b3b7909 + last_write_checksum: sha1:751ab6aef6dd3ecf045a4d71d272304666cf6ab2 + pristine_git_object: d862605f17c357f6b24d26da60235f992878b4ff docs/models/workflowexecutionfailedresponse.md: id: 1c88150815b1 - last_write_checksum: sha1:92a46ae195053013887496ae827cfd8853e864c5 - pristine_git_object: 222fbfd75c79bf9868b04affab9d2708f5942f64 + last_write_checksum: sha1:52963a93a633e75d48cc8b0a6a7fcff6e1ee8a31 + pristine_git_object: d34b50288e3a7d1b45320aabf097d1774ff7f799 docs/models/workflowexecutionlistresponse.md: id: a66878b279ba last_write_checksum: sha1:9fafefc730d10ae17baf0c77462f658f9f15fdcb @@ -3974,12 +3994,12 @@ trackedFiles: pristine_git_object: ffdb5ee8b1232c905176f7665ebb7c87d538057d docs/models/workflowexecutionstartedattributesresponse.md: id: 384d48b3e104 - last_write_checksum: sha1:54ce029d9db1b0f5dee6a42019995a58ef196268 - pristine_git_object: 63c20eb12a9d285cf448057f156820f98e282c43 + last_write_checksum: sha1:6526c350dae49e6da924cf43fbb852f35f6414d2 + pristine_git_object: e548b02234b04cf49b13ed312ad57dc7a3ca2a56 docs/models/workflowexecutionstartedresponse.md: id: 64174669ff20 - last_write_checksum: sha1:8eee734d26442d9c6e6693386c78eb204a932847 - pristine_git_object: 7c370d468250ef29319f365957f8eca504f40d19 + last_write_checksum: sha1:6de168c052a11d14928e8ff5c02830a85db3b34a + pristine_git_object: 16de8e5886e39e4a7786cd1970991eb289b83afd docs/models/workflowexecutionstatus.md: id: 1e988cdad165 last_write_checksum: sha1:9478f494d16651522d373f36d0537c0fca703038 @@ -4090,16 +4110,16 @@ trackedFiles: pristine_git_object: c6515f84fb66f59e6b35a4524dbd1f3edc73a7ad docs/models/workflowtaskfailedresponse.md: id: 9e6bdbc8ec6d - last_write_checksum: sha1:3c83e4760483063bed3f48ec1babddd0b53e9a22 - pristine_git_object: 731ed219c64f5024884887bbdbd67857b3658707 + last_write_checksum: sha1:dffbaa9c407644c36aecf772e92f997d573608aa + pristine_git_object: 31b2d47a800f268d094737afdd0f6587d20dcef6 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:8c3355239dce116da33ebc288363b20ddbf3a335 - pristine_git_object: ea3edade3558a0d95faa58c6d7c592928aae0fd9 + last_write_checksum: sha1:a9a72eb2eddbc433231c393fffdc6008422c9936 + pristine_git_object: ecaf631ab5edf757d624967020521d59734561d3 docs/models/workflowtype.md: id: fdb669e25dee last_write_checksum: sha1:1cb6c274e8bd8942a7064a46a183f402935b0526 @@ -4154,8 +4174,8 @@ trackedFiles: pristine_git_object: dc0f4984380b5b137266421e87a1505af5260e89 docs/sdks/connectors/README.md: id: 7633a87d946d - last_write_checksum: sha1:5dda84b84bd329a82a2f48c61abb0afa144c3a4c - pristine_git_object: b0d55909b4ebdddb425fb61ea4c49f2af556765c + last_write_checksum: sha1:e9a2602ff5ba916c70a6c8aeffb77a13093e1185 + pristine_git_object: 1aca6ef31d813d660e9eb385ca4a3f98764b4533 docs/sdks/conversations/README.md: id: e22a9d2c5424 last_write_checksum: sha1:68ede193fd35a89ab226aa92a92edaecf1eebb1a @@ -4306,8 +4326,8 @@ trackedFiles: pristine_git_object: 036d44b8cfc51599873bd5c401a6aed30450536c src/mistralai/client/_version.py: id: cc807b30de19 - last_write_checksum: sha1:0e7d49cdc0a34471641d77df6075c48bef4122f6 - pristine_git_object: 8f0c8d6ece1305f718186e3f45305d56a928dea8 + last_write_checksum: sha1:95b70f4ebe56fab844e6b827d2819195da1d7d63 + pristine_git_object: 67f6c3f0adc5acb784357f9783687dff6a2ecc23 src/mistralai/client/accesses.py: id: 76fc53bfcf59 last_write_checksum: sha1:33d8a0663a647b7a7e1946064d05c3b40e538816 @@ -4358,8 +4378,8 @@ trackedFiles: pristine_git_object: a19206185ab23809971b395c522a34da4e399eea src/mistralai/client/connectors.py: id: 39da03126050 - last_write_checksum: sha1:3b777ac00b08bf1071c450e921657f8b408582af - pristine_git_object: e14f046993837e8a02048406dcecffbc3e056a42 + last_write_checksum: sha1:089028395699263b3a7940e0797c1b1e63bbba2c + pristine_git_object: 63e74079bd83987f825dc8f19a4cc4237af5d9a9 src/mistralai/client/conversations.py: id: 40692a878064 last_write_checksum: sha1:b56c051f97ec84539028d736409289579b8df48d @@ -4458,40 +4478,40 @@ trackedFiles: pristine_git_object: d0b6b4fc091393e6e8a75f158363baa8e2ea21d4 src/mistralai/client/models/__init__.py: id: e0e8dad92725 - last_write_checksum: sha1:aa3dbbec29e4aedf723a1e3ff24a68db9d674d9c - pristine_git_object: 6dc0220b75afaf493fdf9dc954d41dc77aaa9bd6 + last_write_checksum: sha1:897da3f42f8e3d2c190a8a01b30eacb892e8d6b6 + pristine_git_object: 39eef0c94bf8e1b1ba3f14e72b0007926f441ab3 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:93e29f246bdade11ed0bcd55e5781fe86d352f89 - pristine_git_object: b324066b94687faa020c9019721eedb2a1aa6998 + last_write_checksum: sha1:aec5788c08f7a7f0dd498bbf6be49ab0c61bd046 + pristine_git_object: c6ec719aaf164da8ce1f249b89bb36e852ee4247 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:a4624cf0d6177e940004e180e1ed372d43cb3534 - pristine_git_object: 3410ea840d9c740ef8dd74cdee6abd9f2d6c9a6f + last_write_checksum: sha1:906972149387d83aab64502a755746dd7287d8e2 + pristine_git_object: 1bc09d0a5cc035652e1c251cccc96c7b8f84745a 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:770c9b60721c8ba1f60f193ec1c4f8ac10a4e075 - pristine_git_object: cf054a27d05dc1683275094a40336cc6f4164eb5 + last_write_checksum: sha1:92421df3f4a36ff309ab204877a8d8b74892084c + pristine_git_object: bf553309410566fdb8646e8dca3dbc75cefc779e 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:1f1dda76127bdb08549b0dd94f68dafd1d6a71fc - pristine_git_object: 75186e027475280fefb1750beb1933bdac4d76cb + last_write_checksum: sha1:a1f5f4663cd7c280be4b9bb103831083e432ea3a + pristine_git_object: 1032615770d24e5c6d30d8b91f11d15e84fecc1d src/mistralai/client/models/agent.py: id: 1336849c84fb last_write_checksum: sha1:c650f57616b5455de2a6ff33c51f91b174586aee @@ -4688,10 +4708,18 @@ trackedFiles: id: b4d3fb07196e last_write_checksum: sha1:ad8b878b1a3eeba8ad1b8fa15783d4da7bca6fad pristine_git_object: 9e608b1fe66d3048368e92dc8b5ed2bb75ad59da + src/mistralai/client/models/authdirection.py: + id: ad8790fb5fab + last_write_checksum: sha1:51d523a9ef24216d4f06883022dd7cefc5e30613 + pristine_git_object: 9220e6dcbc799c7569e5ad36e08e0b73efb356fb src/mistralai/client/models/authenticationconfiguration.py: id: 97b5056c29fb last_write_checksum: sha1:99966e22f8afb4ebddf2609799d57bac6ee05965 pristine_git_object: bbb7a7a1378adae39e1ba7543d3363f8ebcab2ca + src/mistralai/client/models/authenticationmethodcreateorupdaterequest.py: + id: 240c643113bb + last_write_checksum: sha1:51361d72df48d4c719bdde24f36c067502405ce2 + pristine_git_object: de0c3f82d4654f759e74ae654867738e682c5592 src/mistralai/client/models/authstatus.py: id: 0f25b817bca6 last_write_checksum: sha1:2be578532e4a239c298d4d534f59023b40f2d86b @@ -5146,48 +5174,48 @@ trackedFiles: pristine_git_object: cea2137e5356e636b44a3b1107aa9e29a69fd504 src/mistralai/client/models/customtaskcanceledresponse.py: id: 0eeb9d6cf409 - last_write_checksum: sha1:99a1b1ce86f1636abd7f00e746d183cbe8e5c665 - pristine_git_object: 7873b3ca5fdb61c6c4d1205894727cd09e8d939d + last_write_checksum: sha1:6b67bb211dab0cf2674048249eed1b5e519a2c3f + pristine_git_object: 628f13e1d10f35a379851febbfa7352df804c47c 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:4d8b84868e4d94be8ca9190e29dc8dbf37c442fe - pristine_git_object: 5d2a8686342100c46426bc1212868129e54835bd + last_write_checksum: sha1:7befb34322296b0f35723bf79706c68da93779b3 + pristine_git_object: 96e5b5354d979d98120755f6599b8a3b1f6df7be 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:faa16c185064c28a2c58a4ac9ece342fdf4e1d52 - pristine_git_object: 1f9835ec2cd05a55d2f545b23a223b0039609805 + last_write_checksum: sha1:3171dcccebb0366fe7388e6ee73eeb540c247bd0 + pristine_git_object: b331d61484d3dfd8782dabc114a4f620abe3d5ee 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:ed0824ea2641df6e5284030f0906ee4d14ce7bde - pristine_git_object: 33c126f716d9b63fef593498a2442bfa1637d5dc + last_write_checksum: sha1:6271b44e467e5d648f00b854ccb1714d65168c0a + pristine_git_object: eb8794dd5e3fe399be102b9d35bdfd80ff1f1a9d 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:676b985755499c4691c1ac615d04fb35481d9a0f - pristine_git_object: 59d11fa8319c601ad80482944e6e3aef55257a66 + last_write_checksum: sha1:d37c0fe01e8f13a2aac6969f11dd13a8edf0f325 + pristine_git_object: 74b8d7fcf535d14949506bf238ce8fe69b68a3c2 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:da1f0487cccc52c38a8132124efe085d3eeb334f - pristine_git_object: 7f274a535271c9e62974eedde427e3df577d6e2e + last_write_checksum: sha1:711fe3d91ce5e33de5924d73754f4512d981e659 + pristine_git_object: 01cf2f25e32c4229ee619e8104847de5d29c9cda src/mistralai/client/models/dataset.py: id: cbf14670ee00 last_write_checksum: sha1:012f85ebfbdb286436621efc3b5b1adb150871f3 @@ -5426,8 +5454,8 @@ trackedFiles: pristine_git_object: f1600cac74e1d50979277d3eb6830ea5e84b69ec src/mistralai/client/models/extendedoauthservermetadata.py: id: 967e2e08f18c - last_write_checksum: sha1:f0e07e94a601d564cf981c8ab6e947f6a7cc0e99 - pristine_git_object: e45827d5693e352a5a46c5c831ecbcb197e30992 + last_write_checksum: sha1:e2f79f2591669eb0f4d7542cd6a0b97dd1e7bd8d + pristine_git_object: 91033c6a6dd76744f917ff8eb093ca8d4f0b4ffa src/mistralai/client/models/failure.py: id: 596e38493eaa last_write_checksum: sha1:5077e5660c7192e2123fc26059f1786f9d75e273 @@ -5912,6 +5940,10 @@ trackedFiles: id: 8d809b14b144 last_write_checksum: sha1:3c858d0475e826d072c96a84d868e97593a399a3 pristine_git_object: f5bd720db16c37504e1993cc6e651712551d2612 + src/mistralai/client/models/inboundauthenticationtype.py: + id: 0c9f48e0518f + last_write_checksum: sha1:d7ac3ef0ee83cc499506f0ef30bd39b1c91d8977 + pristine_git_object: 9e78a4995c5acdb63606577c10696ace66271b9b src/mistralai/client/models/ingestionpipelineconfiguration.py: id: b4746c0f2c1c last_write_checksum: sha1:f256b78196bde2b5bf39f15ed65b1daba784680a @@ -6372,6 +6404,10 @@ trackedFiles: id: 6dc5321dbe77 last_write_checksum: sha1:5a99ca47003b7bcfee48753dd4683a94eeee1fe1 pristine_git_object: 70d9241431ae75d58435965be03089ab8419d32f + src/mistralai/client/models/oauth2metadatasecrets.py: + id: 20d0c8c24a9d + last_write_checksum: sha1:7af4b4e21406d00d988d11e703d5c2b1a63afb89 + pristine_git_object: d624d9e22e1d4d60b3fd7f521364bd68f05597a5 src/mistralai/client/models/oauth2token.py: id: 6153dd0f41bc last_write_checksum: sha1:01476e43abf5a755d7d8a3f42a7b662cbb37a949 @@ -6382,8 +6418,8 @@ trackedFiles: pristine_git_object: 76ebfd0de6c7457bcecb1aee026ea16ffa8a7cbd src/mistralai/client/models/observabilityerrorcode.py: id: ae572b470a30 - last_write_checksum: sha1:39091cd31cbf769fb401de3d67ac2f13994f3d0c - pristine_git_object: f2a63b130dd93f1fd067ac7b42f3601c696ef1d5 + last_write_checksum: sha1:d6aa26a0792aed34f4171516599194edd4a5b867 + pristine_git_object: 310f3444a88aa6e1d9275237e60442d95fb757fb src/mistralai/client/models/observabilityerrordetail.py: id: cb6e8a484a38 last_write_checksum: sha1:3a7991f57573edee24780bc4b3907c8426aa3fa6 @@ -7394,8 +7430,8 @@ trackedFiles: pristine_git_object: 7bb9686b9b542c47ac25fb6780017b5739829b1e src/mistralai/client/models/updateconnectorrequest.py: id: a761cd154109 - last_write_checksum: sha1:97ef4e155923655d7eba815c51aaaba7c5effcc4 - pristine_git_object: 8af8c8b44cde04e3e3a44039b89708e943d99f54 + last_write_checksum: sha1:230af9e657059200749c9adeaf4359294abc31a0 + pristine_git_object: 1417e7f099bf42efe3757cdbf76bb55cf9c527a0 src/mistralai/client/models/updatedatasetrecordpayloadrequest.py: id: bd45f357a538 last_write_checksum: sha1:7f72103f1260ad87527f664f8de70ca2b3da3a6a @@ -7558,36 +7594,36 @@ trackedFiles: pristine_git_object: 8c386b01b02e61266dd43f53c003571d5f3adcc8 src/mistralai/client/models/workflowexecutioncanceledattributes.py: id: c0802a5de5e5 - last_write_checksum: sha1:954a39fa24c0f24e603d66532fb18f31f9b06eec - pristine_git_object: 6c06bfa93bd601b4c2b6f5358d24045dc6fc3d5b + last_write_checksum: sha1:84c630c5b90e4033aed700cd704222bc7da22175 + pristine_git_object: 69327cdc76953afa23a072280799794d1f28b550 src/mistralai/client/models/workflowexecutioncanceledresponse.py: id: bcc392d67222 - last_write_checksum: sha1:6fcd8350bcc05ff4eb87a3587bb8d2eefa11d227 - pristine_git_object: ee1c4e71acecff7f4a94078aae1560ca43c36e31 + last_write_checksum: sha1:9d1edf5918e2f5ce64d2005f0d9c42557469ef95 + pristine_git_object: 05b261a2513d65807cdfe1d6dd2aa80f3d26863e src/mistralai/client/models/workflowexecutioncompletedattributesresponse.py: id: f831331b0eb1 - last_write_checksum: sha1:dbb84007cd94e2d0ed45aec7da846e1375588396 - pristine_git_object: 1fe0c24872cdeac5a53ad8469d01deb6d2053183 + last_write_checksum: sha1:fe75a5bf7025aec3bdc5b3058646161a9e2269b6 + pristine_git_object: f35e3007ced8ba34d5d1ce6a169c4d7eb7b0705b src/mistralai/client/models/workflowexecutioncompletedresponse.py: id: a1bec20dfb0e - last_write_checksum: sha1:c6c891ed6fdae6204c47d425e0391e2163f20a2e - pristine_git_object: 17716668a30d68aad23a98d312e965171ca71306 + last_write_checksum: sha1:5f428eddfc8c8b7ed53ed146883795b8de84d73b + pristine_git_object: c58745b18ef00a25ac5a90e383a0b314d1025784 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:4947f8cbfa73eae9607e252e85236894a34123d5 - pristine_git_object: 0f60a5be6324f370319e05b4a573e5cd157c0450 + last_write_checksum: sha1:cc9129d7ba7a84b17db0f8852c6d4c3ab44ae3d0 + pristine_git_object: aadb8a3477ab8c0a0e670ba649bc8ab3de63bd9d src/mistralai/client/models/workflowexecutionfailedattributes.py: id: dbb7fb36a4fd - last_write_checksum: sha1:d2922a566ccc93b7979cb9411ef46882606b76c7 - pristine_git_object: 1e61f3444594307656141cc999cf19f4d66763fa + last_write_checksum: sha1:1953870e1392465773d2be2e9477c7c66f8e997c + pristine_git_object: 440b6c7a3b75555e5f267341ed00ab8743462457 src/mistralai/client/models/workflowexecutionfailedresponse.py: id: a0836009f9de - last_write_checksum: sha1:07ea35829fb0411f39c019b42d17807d0aec02c2 - pristine_git_object: 687d33a9199612bbb8b5db5f6d2be2421469aeb5 + last_write_checksum: sha1:a356fe5d9a8231dea090bb6692f88ca0d0ced994 + pristine_git_object: 736f7e7b7f9d21ce28122867c352e4fbf1524a8f src/mistralai/client/models/workflowexecutionlistresponse.py: id: c2b2e1ab4821 last_write_checksum: sha1:0993e22cc42af96754b46ce7e880b4beb28988dc @@ -7606,12 +7642,12 @@ trackedFiles: pristine_git_object: e387a57a095c0e8539e0cdcb43729ba427e58725 src/mistralai/client/models/workflowexecutionstartedattributesresponse.py: id: d2276919a895 - last_write_checksum: sha1:53312110c8c2902f32c72a88ee68cea048833fca - pristine_git_object: 59746a615c07e0aeb10d315240b600145d7b45d2 + last_write_checksum: sha1:0e8495b532aeb8da0bd013adcdf4a3666851f566 + pristine_git_object: 728cc954416424abe989ee8027d66333ad2c4798 src/mistralai/client/models/workflowexecutionstartedresponse.py: id: e1a597c911ea - last_write_checksum: sha1:9c761698883844061bf5cae76e3bc6444941124e - pristine_git_object: fa1e46a07b931f35b46324d9b2e5c111b359889d + last_write_checksum: sha1:d1ad202dcf504542f96dfe34cafb770c97d578a3 + pristine_git_object: 8da33ba6372c33126cb80a83d0b315ec7cd512c6 src/mistralai/client/models/workflowexecutionstatus.py: id: 56a16810d5de last_write_checksum: sha1:71560f9e7a0222734e176a362d3188e703dfbbe2 @@ -7718,16 +7754,16 @@ trackedFiles: pristine_git_object: 49444347a46acf8f24c17a0f2b87c961c79efaca src/mistralai/client/models/workflowtaskfailedresponse.py: id: a02b01867b7f - last_write_checksum: sha1:47813f0c9b611079c346d5d11a80fbf4a51a3164 - pristine_git_object: 154145e3604b09a202f51b60101ef166ed69a3ce + last_write_checksum: sha1:4a372cc0560ff6edd91165c0822e59e4b8fd955c + pristine_git_object: cda419763e31c8764e72172c54b6b25c0489f0ac 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:6ecfe5907b5cdb05054b8e107977527a584e1b08 - pristine_git_object: 2c3350e09b75f1ebb212909f252cc48124a9997f + last_write_checksum: sha1:894b2c8656f027741bb4e59af3052f17c68fcd5f + pristine_git_object: 457a8737b8a792e3b39e7ffcfb2c253d757dbff0 src/mistralai/client/models/workflowtype.py: id: 01f37d193b17 last_write_checksum: sha1:ec2cf5f7adb51eca3b7bbfc7cef89d4da473b11f @@ -10307,7 +10343,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": 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": ""}}}]} "422": application/json: {} list_deployments_v1_workflows_deployments_get: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 65809412..51654293 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -32,7 +32,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 2.9.1 + version: 2.9.2 additionalDependencies: dev: pytest: ^8.2.2 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 2047f8f1..86f96c6c 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -16,11 +16,11 @@ sources: - speakeasy-mistralai-gcp-sdk-26292830187-1 mistral-openapi: sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:9574dbeb71d1223769d4dab8c3742fc239b1e3b7183275d95f5d3681ac8e47fe - sourceBlobDigest: sha256:27089861b75a4918f4077aaf9e1a15b76e9cfcae70138dc3b4943485536ad805 + sourceRevisionDigest: sha256:02d7f4a089701618c302f802c83947402e5ca8925d5bb59972dab912a9c345cf + sourceBlobDigest: sha256:3d6b1141f8f9c05860b64e77bb14a9f643b93b85a914cfe65f1206057a220750 tags: - latest - - speakeasy-mistralai-sdk-30920901473-1 + - speakeasy-mistralai-sdk-31405546352-1 targets: mistralai-azure-sdk: source: mistral-azure-source @@ -39,10 +39,10 @@ targets: mistralai-sdk: source: mistral-openapi sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:9574dbeb71d1223769d4dab8c3742fc239b1e3b7183275d95f5d3681ac8e47fe - sourceBlobDigest: sha256:27089861b75a4918f4077aaf9e1a15b76e9cfcae70138dc3b4943485536ad805 + sourceRevisionDigest: sha256:02d7f4a089701618c302f802c83947402e5ca8925d5bb59972dab912a9c345cf + sourceBlobDigest: sha256:3d6b1141f8f9c05860b64e77bb14a9f643b93b85a914cfe65f1206057a220750 codeSamplesNamespace: mistral-openapi-code-samples - codeSamplesRevisionDigest: sha256:b2e32e2795b23fcfc9df76bbb68a8a0c801701ab176f99214307b168e80ef7be + codeSamplesRevisionDigest: sha256:a59cce64a521156ff070c23b436edcf77ffd6354b2e74b07f3194918dab44007 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.763.6 diff --git a/RELEASES.md b/RELEASES.md index 88d29902..688e05b9 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -818,4 +818,14 @@ Based on: ### Generated - [python v2.9.1] . ### Releases -- [PyPI v2.9.1] https://pypi.org/project/mistralai/2.9.1 - . \ No newline at end of file +- [PyPI v2.9.1] https://pypi.org/project/mistralai/2.9.1 - . + +## 2026-08-10 15:49:07 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.763.6 (2.884.13) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.9.2] . +### Releases +- [PyPI v2.9.2] https://pypi.org/project/mistralai/2.9.2 - . \ No newline at end of file diff --git a/docs/models/activitytaskcompletedresponse.md b/docs/models/activitytaskcompletedresponse.md index 56a64631..f228c865 100644 --- a/docs/models/activitytaskcompletedresponse.md +++ b/docs/models/activitytaskcompletedresponse.md @@ -7,14 +7,17 @@ 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. | -| `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 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 diff --git a/docs/models/activitytaskfailedresponse.md b/docs/models/activitytaskfailedresponse.md index 0853f68d..3eea5f59 100644 --- a/docs/models/activitytaskfailedresponse.md +++ b/docs/models/activitytaskfailedresponse.md @@ -7,14 +7,17 @@ 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. | -| `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 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 diff --git a/docs/models/activitytaskretryingresponse.md b/docs/models/activitytaskretryingresponse.md index 8b7bdd42..77ac704b 100644 --- a/docs/models/activitytaskretryingresponse.md +++ b/docs/models/activitytaskretryingresponse.md @@ -7,14 +7,17 @@ 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. | -| `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 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 diff --git a/docs/models/activitytaskstartedresponse.md b/docs/models/activitytaskstartedresponse.md index 1aee1533..cafdca16 100644 --- a/docs/models/activitytaskstartedresponse.md +++ b/docs/models/activitytaskstartedresponse.md @@ -8,14 +8,17 @@ 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. | -| `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 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 diff --git a/docs/models/authdirection.md b/docs/models/authdirection.md new file mode 100644 index 00000000..c3f547fc --- /dev/null +++ b/docs/models/authdirection.md @@ -0,0 +1,14 @@ +# AuthDirection + +## Example Usage + +```python +from mistralai.client.models import AuthDirection +value: AuthDirection = "inbound" +``` + + +## Values + +- `"inbound"` +- `"outbound"` diff --git a/docs/models/authenticationmethodcreateorupdaterequest.md b/docs/models/authenticationmethodcreateorupdaterequest.md new file mode 100644 index 00000000..727f7fa5 --- /dev/null +++ b/docs/models/authenticationmethodcreateorupdaterequest.md @@ -0,0 +1,12 @@ +# AuthenticationMethodCreateOrUpdateRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `method_type` | [models.MethodType](../models/methodtype.md) | :heavy_check_mark: | The type of authentication method (e.g. oauth2, bearer, none). | +| `auth_direction` | [Optional[models.AuthDirection]](../models/authdirection.md) | :heavy_minus_sign: | N/A | +| `headers` | List[[models.ConnectorAuthenticationHeader](../models/connectorauthenticationheader.md)] | :heavy_minus_sign: | Set of headers to connect to the connector | +| `oauth2_metadata_secrets` | [OptionalNullable[models.Oauth2MetadataSecrets]](../models/oauth2metadatasecrets.md) | :heavy_minus_sign: | New OAuth2 client credentials (client_id and client_secret). | +| `oauth2_server_metadata` | [OptionalNullable[models.ExtendedOAuthServerMetadata]](../models/extendedoauthservermetadata.md) | :heavy_minus_sign: | New OAuth2 authorization server metadata. | \ No newline at end of file diff --git a/docs/models/customtaskcanceledresponse.md b/docs/models/customtaskcanceledresponse.md index 0bcee227..8cd824fe 100644 --- a/docs/models/customtaskcanceledresponse.md +++ b/docs/models/customtaskcanceledresponse.md @@ -7,14 +7,17 @@ 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. | -| `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 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 diff --git a/docs/models/customtaskcompletedresponse.md b/docs/models/customtaskcompletedresponse.md index 6871184f..b31f4e22 100644 --- a/docs/models/customtaskcompletedresponse.md +++ b/docs/models/customtaskcompletedresponse.md @@ -7,14 +7,17 @@ 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. | -| `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 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 diff --git a/docs/models/customtaskfailedresponse.md b/docs/models/customtaskfailedresponse.md index e14e4afa..09385f06 100644 --- a/docs/models/customtaskfailedresponse.md +++ b/docs/models/customtaskfailedresponse.md @@ -7,14 +7,17 @@ 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. | -| `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 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 diff --git a/docs/models/customtaskinprogressresponse.md b/docs/models/customtaskinprogressresponse.md index 72afa91f..c3ee3418 100644 --- a/docs/models/customtaskinprogressresponse.md +++ b/docs/models/customtaskinprogressresponse.md @@ -8,14 +8,17 @@ 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. | -| `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 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 diff --git a/docs/models/customtaskstartedresponse.md b/docs/models/customtaskstartedresponse.md index 80b1b08b..48acab46 100644 --- a/docs/models/customtaskstartedresponse.md +++ b/docs/models/customtaskstartedresponse.md @@ -8,14 +8,17 @@ 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. | -| `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 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 diff --git a/docs/models/customtasktimedoutresponse.md b/docs/models/customtasktimedoutresponse.md index 75d49743..02bb0581 100644 --- a/docs/models/customtasktimedoutresponse.md +++ b/docs/models/customtasktimedoutresponse.md @@ -7,14 +7,17 @@ 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. | -| `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 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 diff --git a/docs/models/extendedoauthservermetadata.md b/docs/models/extendedoauthservermetadata.md index 17a430ea..601d9df6 100644 --- a/docs/models/extendedoauthservermetadata.md +++ b/docs/models/extendedoauthservermetadata.md @@ -32,4 +32,5 @@ Mirrors the shape of .well-known/oauth-authorization-server responses. | `introspection_endpoint_auth_signing_alg_values_supported` | List[*str*] | :heavy_minus_sign: | N/A | | `code_challenge_methods_supported` | List[*str*] | :heavy_minus_sign: | N/A | | `client_id_metadata_document_supported` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | -| `x_resource_url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `x_resource_url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `x_scope` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/inboundauthenticationtype.md b/docs/models/inboundauthenticationtype.md new file mode 100644 index 00000000..ea04329c --- /dev/null +++ b/docs/models/inboundauthenticationtype.md @@ -0,0 +1,13 @@ +# InboundAuthenticationType + +## Example Usage + +```python +from mistralai.client.models import InboundAuthenticationType +value: InboundAuthenticationType = "webhook" +``` + + +## Values + +- `"webhook"` diff --git a/docs/models/methodtype.md b/docs/models/methodtype.md new file mode 100644 index 00000000..7628bbdd --- /dev/null +++ b/docs/models/methodtype.md @@ -0,0 +1,19 @@ +# MethodType + +The type of authentication method (e.g. oauth2, bearer, none). + + +## Supported Types + +### `models.OutboundAuthenticationType` + +```python +value: models.OutboundAuthenticationType = /* values here */ +``` + +### `models.InboundAuthenticationType` + +```python +value: models.InboundAuthenticationType = /* values here */ +``` + diff --git a/docs/models/oauth2metadatasecrets.md b/docs/models/oauth2metadatasecrets.md new file mode 100644 index 00000000..a5ac81b8 --- /dev/null +++ b/docs/models/oauth2metadatasecrets.md @@ -0,0 +1,17 @@ +# Oauth2MetadataSecrets + +OAuth2 client credentials stored alongside a connector's authentication method. + +Used by OAuth2 and Slack App auth types for token exchange and refresh flows. +Contains the client credentials obtained during OAuth2 Dynamic Client Registration +or provided at connector creation time. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `client_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `client_secret` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `client_id_issued_at` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `client_secret_expires_at` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/observabilityerrorcode.md b/docs/models/observabilityerrorcode.md index ba9749c6..43d2020f 100644 --- a/docs/models/observabilityerrorcode.md +++ b/docs/models/observabilityerrorcode.md @@ -59,6 +59,7 @@ This is an open enum. Unrecognized values will not fail type checks. - `"TEMPLATE_SYNTAX_ERROR"` - `"PROJECT_NAME_ALREADY_EXISTS"` - `"EVALUATION_NAME_ALREADY_EXISTS"` +- `"OPTIMIZATION_TRIAL_KEY_ALREADY_EXISTS"` - `"TRACES_FILTER_QUERY_PARSE_ERROR"` - `"TRACE_NOT_FOUND"` - `"SPAN_NOT_FOUND"` diff --git a/docs/models/updateconnectorrequest.md b/docs/models/updateconnectorrequest.md index 3e715e56..4bb9f238 100644 --- a/docs/models/updateconnectorrequest.md +++ b/docs/models/updateconnectorrequest.md @@ -3,14 +3,13 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `title` | *OptionalNullable[str]* | :heavy_minus_sign: | Optional human-readable title for the connector. | -| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | The name of the connector. | -| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | The description of the connector. | -| `icon_url` | *OptionalNullable[str]* | :heavy_minus_sign: | The optional url of the icon you want to associate to the connector. | -| `system_prompt` | *OptionalNullable[str]* | :heavy_minus_sign: | Optional system prompt for the connector. | -| `protocol` | *Optional[Literal["mcp"]]* | :heavy_minus_sign: | N/A | -| `server` | *OptionalNullable[str]* | :heavy_minus_sign: | New server url for your mcp connector. | -| `headers` | Dict[str, *Any*] | :heavy_minus_sign: | New headers for your mcp connector. | -| `auth_data` | [OptionalNullable[models.AuthData]](../models/authdata.md) | :heavy_minus_sign: | New authentication data for your mcp connector. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `title` | *OptionalNullable[str]* | :heavy_minus_sign: | Optional human-readable title for the connector. | +| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | The name of the connector. | +| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | The description of the connector. | +| `icon_url` | *OptionalNullable[str]* | :heavy_minus_sign: | The optional url of the icon you want to associate to the connector. | +| `system_prompt` | *OptionalNullable[str]* | :heavy_minus_sign: | Optional system prompt for the connector. | +| `protocol` | *Optional[Literal["mcp"]]* | :heavy_minus_sign: | N/A | +| `server` | *OptionalNullable[str]* | :heavy_minus_sign: | New server url for your mcp connector. | +| `auth_methods` | List[[models.AuthenticationMethodCreateOrUpdateRequest](../models/authenticationmethodcreateorupdaterequest.md)] | :heavy_minus_sign: | list of authentication methods to add to the connector or to update | \ No newline at end of file diff --git a/docs/models/workflowexecutioncanceledattributes.md b/docs/models/workflowexecutioncanceledattributes.md index 8c2929eb..fcd2f19d 100644 --- a/docs/models/workflowexecutioncanceledattributes.md +++ b/docs/models/workflowexecutioncanceledattributes.md @@ -5,7 +5,8 @@ Attributes for workflow execution canceled events. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `task_id` | *str* | :heavy_check_mark: | Unique identifier for the task within the workflow execution. | -| `reason` | *OptionalNullable[str]* | :heavy_minus_sign: | Optional reason provided for the cancellation. | \ 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. | +| `reason` | *OptionalNullable[str]* | :heavy_minus_sign: | Optional reason provided for the cancellation. | +| `attempt` | *Optional[int]* | :heavy_minus_sign: | Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries. | \ No newline at end of file diff --git a/docs/models/workflowexecutioncanceledresponse.md b/docs/models/workflowexecutioncanceledresponse.md index f9f4c01d..b31c1772 100644 --- a/docs/models/workflowexecutioncanceledresponse.md +++ b/docs/models/workflowexecutioncanceledresponse.md @@ -7,14 +7,17 @@ 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. | -| `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 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 diff --git a/docs/models/workflowexecutioncompletedattributesresponse.md b/docs/models/workflowexecutioncompletedattributesresponse.md index 53596a91..6693aad3 100644 --- a/docs/models/workflowexecutioncompletedattributesresponse.md +++ b/docs/models/workflowexecutioncompletedattributesresponse.md @@ -8,4 +8,5 @@ Attributes for workflow execution completed events. | 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 +| `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. | +| `attempt` | *Optional[int]* | :heavy_minus_sign: | Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries. | \ No newline at end of file diff --git a/docs/models/workflowexecutioncompletedresponse.md b/docs/models/workflowexecutioncompletedresponse.md index a4d40dc5..2cdb7897 100644 --- a/docs/models/workflowexecutioncompletedresponse.md +++ b/docs/models/workflowexecutioncompletedresponse.md @@ -7,14 +7,17 @@ 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. | -| `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 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 diff --git a/docs/models/workflowexecutioncontinuedasnewresponse.md b/docs/models/workflowexecutioncontinuedasnewresponse.md index e6a7212a..1dd8faa5 100644 --- a/docs/models/workflowexecutioncontinuedasnewresponse.md +++ b/docs/models/workflowexecutioncontinuedasnewresponse.md @@ -8,14 +8,17 @@ 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. | -| `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 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 diff --git a/docs/models/workflowexecutionfailedattributes.md b/docs/models/workflowexecutionfailedattributes.md index 9fa14fa4..d862605f 100644 --- a/docs/models/workflowexecutionfailedattributes.md +++ b/docs/models/workflowexecutionfailedattributes.md @@ -5,7 +5,8 @@ Attributes for workflow execution failed events. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `task_id` | *str* | :heavy_check_mark: | Unique identifier for the task within the workflow execution. | -| `failure` | [models.Failure](../models/failure.md) | :heavy_check_mark: | Represents an error or exception that occurred during execution. | \ 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. | +| `failure` | [models.Failure](../models/failure.md) | :heavy_check_mark: | Represents an error or exception that occurred during execution. | +| `attempt` | *Optional[int]* | :heavy_minus_sign: | Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries. | \ No newline at end of file diff --git a/docs/models/workflowexecutionfailedresponse.md b/docs/models/workflowexecutionfailedresponse.md index 222fbfd7..d34b5028 100644 --- a/docs/models/workflowexecutionfailedresponse.md +++ b/docs/models/workflowexecutionfailedresponse.md @@ -7,14 +7,17 @@ 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. | -| `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 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 diff --git a/docs/models/workflowexecutionstartedattributesresponse.md b/docs/models/workflowexecutionstartedattributesresponse.md index 63c20eb1..e548b022 100644 --- a/docs/models/workflowexecutionstartedattributesresponse.md +++ b/docs/models/workflowexecutionstartedattributesresponse.md @@ -10,4 +10,5 @@ Attributes for workflow execution started events. | `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 +| `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. | +| `attempt` | *Optional[int]* | :heavy_minus_sign: | Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries. | \ No newline at end of file diff --git a/docs/models/workflowexecutionstartedresponse.md b/docs/models/workflowexecutionstartedresponse.md index 7c370d46..16de8e58 100644 --- a/docs/models/workflowexecutionstartedresponse.md +++ b/docs/models/workflowexecutionstartedresponse.md @@ -7,14 +7,17 @@ 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. | -| `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 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 diff --git a/docs/models/workflowtaskfailedresponse.md b/docs/models/workflowtaskfailedresponse.md index 731ed219..31b2d47a 100644 --- a/docs/models/workflowtaskfailedresponse.md +++ b/docs/models/workflowtaskfailedresponse.md @@ -8,14 +8,17 @@ 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. | -| `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 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 diff --git a/docs/models/workflowtasktimedoutresponse.md b/docs/models/workflowtasktimedoutresponse.md index ea3edade..ecaf631a 100644 --- a/docs/models/workflowtasktimedoutresponse.md +++ b/docs/models/workflowtasktimedoutresponse.md @@ -8,14 +8,17 @@ 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. | -| `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 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 diff --git a/docs/sdks/connectors/README.md b/docs/sdks/connectors/README.md index b0d55909..1aca6ef3 100644 --- a/docs/sdks/connectors/README.md +++ b/docs/sdks/connectors/README.md @@ -966,18 +966,17 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `connector_id` | *str* | :heavy_check_mark: | N/A | -| `title` | *OptionalNullable[str]* | :heavy_minus_sign: | Optional human-readable title for the connector. | -| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | The name of the connector. | -| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | The description of the connector. | -| `icon_url` | *OptionalNullable[str]* | :heavy_minus_sign: | The optional url of the icon you want to associate to the connector. | -| `system_prompt` | *OptionalNullable[str]* | :heavy_minus_sign: | Optional system prompt for the connector. | -| `server` | *OptionalNullable[str]* | :heavy_minus_sign: | New server url for your mcp connector. | -| `headers` | Dict[str, *Any*] | :heavy_minus_sign: | New headers for your mcp connector. | -| `auth_data` | [OptionalNullable[models.AuthData]](../../models/authdata.md) | :heavy_minus_sign: | New authentication data for your mcp connector. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `connector_id` | *str* | :heavy_check_mark: | N/A | +| `title` | *OptionalNullable[str]* | :heavy_minus_sign: | Optional human-readable title for the connector. | +| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | The name of the connector. | +| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | The description of the connector. | +| `icon_url` | *OptionalNullable[str]* | :heavy_minus_sign: | The optional url of the icon you want to associate to the connector. | +| `system_prompt` | *OptionalNullable[str]* | :heavy_minus_sign: | Optional system prompt for the connector. | +| `server` | *OptionalNullable[str]* | :heavy_minus_sign: | New server url for your mcp connector. | +| `auth_methods` | List[[models.AuthenticationMethodCreateOrUpdateRequest](../../models/authenticationmethodcreateorupdaterequest.md)] | :heavy_minus_sign: | list of authentication methods to add to the connector or to update | +| `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/pyproject.toml b/pyproject.toml index fe683c28..de862b05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mistralai" -version = "2.9.1" +version = "2.9.2" description = "Python Client SDK for the Mistral AI API." authors = [{ name = "Mistral" }] requires-python = ">=3.10" diff --git a/src/mistralai/client/_version.py b/src/mistralai/client/_version.py index 8f0c8d6e..67f6c3f0 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.9.1" +__version__: str = "2.9.2" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.884.13" -__user_agent__: str = "speakeasy-sdk/python 2.9.1 2.884.13 1.0.0 mistralai" +__user_agent__: str = "speakeasy-sdk/python 2.9.2 2.884.13 1.0.0 mistralai" try: if __package__ is not None: diff --git a/src/mistralai/client/connectors.py b/src/mistralai/client/connectors.py index e14f0469..63e74079 100644 --- a/src/mistralai/client/connectors.py +++ b/src/mistralai/client/connectors.py @@ -4375,9 +4375,11 @@ def update( icon_url: OptionalNullable[str] = UNSET, system_prompt: OptionalNullable[str] = UNSET, server: OptionalNullable[str] = UNSET, - headers: OptionalNullable[Dict[str, Any]] = UNSET, - auth_data: OptionalNullable[ - Union[models.AuthData, models.AuthDataTypedDict] + auth_methods: OptionalNullable[ + Union[ + List[models.AuthenticationMethodCreateOrUpdateRequest], + List[models.AuthenticationMethodCreateOrUpdateRequestTypedDict], + ] ] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -4395,8 +4397,7 @@ def update( :param icon_url: The optional url of the icon you want to associate to the connector. :param system_prompt: Optional system prompt for the connector. :param server: New server url for your mcp connector. - :param headers: New headers for your mcp connector. - :param auth_data: New authentication data for your mcp connector. + :param auth_methods: list of authentication methods to add to the connector or to update :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 @@ -4424,9 +4425,11 @@ def update( icon_url=icon_url, system_prompt=system_prompt, server=server, - headers=headers, - auth_data=utils.get_pydantic_model( - auth_data, OptionalNullable[models.AuthData] + auth_methods=utils.get_pydantic_model( + auth_methods, + OptionalNullable[ + List[models.AuthenticationMethodCreateOrUpdateRequest] + ], ), ), ) @@ -4505,9 +4508,11 @@ async def update_async( icon_url: OptionalNullable[str] = UNSET, system_prompt: OptionalNullable[str] = UNSET, server: OptionalNullable[str] = UNSET, - headers: OptionalNullable[Dict[str, Any]] = UNSET, - auth_data: OptionalNullable[ - Union[models.AuthData, models.AuthDataTypedDict] + auth_methods: OptionalNullable[ + Union[ + List[models.AuthenticationMethodCreateOrUpdateRequest], + List[models.AuthenticationMethodCreateOrUpdateRequestTypedDict], + ] ] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -4525,8 +4530,7 @@ async def update_async( :param icon_url: The optional url of the icon you want to associate to the connector. :param system_prompt: Optional system prompt for the connector. :param server: New server url for your mcp connector. - :param headers: New headers for your mcp connector. - :param auth_data: New authentication data for your mcp connector. + :param auth_methods: list of authentication methods to add to the connector or to update :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 @@ -4554,9 +4558,11 @@ async def update_async( icon_url=icon_url, system_prompt=system_prompt, server=server, - headers=headers, - auth_data=utils.get_pydantic_model( - auth_data, OptionalNullable[models.AuthData] + auth_methods=utils.get_pydantic_model( + auth_methods, + OptionalNullable[ + List[models.AuthenticationMethodCreateOrUpdateRequest] + ], ), ), ) diff --git a/src/mistralai/client/models/__init__.py b/src/mistralai/client/models/__init__.py index 6dc0220b..39eef0c9 100644 --- a/src/mistralai/client/models/__init__.py +++ b/src/mistralai/client/models/__init__.py @@ -237,10 +237,17 @@ AudioTranscriptionRequestStreamTypedDict, ) from .authdata import AuthData, AuthDataTypedDict + from .authdirection import AuthDirection from .authenticationconfiguration import ( AuthenticationConfiguration, AuthenticationConfigurationTypedDict, ) + from .authenticationmethodcreateorupdaterequest import ( + AuthenticationMethodCreateOrUpdateRequest, + AuthenticationMethodCreateOrUpdateRequestTypedDict, + MethodType, + MethodTypeTypedDict, + ) from .authstatus import AuthStatus from .authurlresponse import AuthURLResponse, AuthURLResponseTypedDict from .basefielddefinition import ( @@ -1287,6 +1294,7 @@ ImportDatasetFromPlaygroundRequest, ImportDatasetFromPlaygroundRequestTypedDict, ) + from .inboundauthenticationtype import InboundAuthenticationType from .ingestionpipelineconfiguration import ( IngestionPipelineConfiguration, IngestionPipelineConfigurationTypedDict, @@ -1668,6 +1676,10 @@ from .moderationobject import ModerationObject, ModerationObjectTypedDict from .moderationresponse import ModerationResponse, ModerationResponseTypedDict from .networkencodedinput import NetworkEncodedInput, NetworkEncodedInputTypedDict + from .oauth2metadatasecrets import ( + Oauth2MetadataSecrets, + Oauth2MetadataSecretsTypedDict, + ) from .oauth2token import OAuth2Token, OAuth2TokenTypedDict from .oauth2tokenauth import OAuth2TokenAuth, OAuth2TokenAuthTypedDict from .observabilityerrorcode import ObservabilityErrorCode @@ -2904,11 +2916,14 @@ "AudioTranscriptionRequestTypedDict", "AuthData", "AuthDataTypedDict", + "AuthDirection", "AuthStatus", "AuthURLResponse", "AuthURLResponseTypedDict", "AuthenticationConfiguration", "AuthenticationConfigurationTypedDict", + "AuthenticationMethodCreateOrUpdateRequest", + "AuthenticationMethodCreateOrUpdateRequestTypedDict", "Authorization", "AuthorizationTypedDict", "BaseFieldDefinition", @@ -3611,6 +3626,7 @@ "ImportDatasetFromFileRequestTypedDict", "ImportDatasetFromPlaygroundRequest", "ImportDatasetFromPlaygroundRequestTypedDict", + "InboundAuthenticationType", "IngestionPipelineConfiguration", "IngestionPipelineConfigurationTypedDict", "InputEntries", @@ -3838,6 +3854,8 @@ "MessageResponseTypedDict", "MessageTokens", "MessageTokensTypedDict", + "MethodType", + "MethodTypeTypedDict", "MetricAggregation", "MetricDefinition", "MetricDefinitionTypedDict", @@ -3923,6 +3941,8 @@ "OCRTitleBlockTypedDict", "OCRUsageInfo", "OCRUsageInfoTypedDict", + "Oauth2MetadataSecrets", + "Oauth2MetadataSecretsTypedDict", "ObservabilityErrorCode", "ObservabilityErrorDetail", "ObservabilityErrorDetailTypedDict", @@ -4828,8 +4848,13 @@ "AudioTranscriptionRequestStreamTypedDict": ".audiotranscriptionrequeststream", "AuthData": ".authdata", "AuthDataTypedDict": ".authdata", + "AuthDirection": ".authdirection", "AuthenticationConfiguration": ".authenticationconfiguration", "AuthenticationConfigurationTypedDict": ".authenticationconfiguration", + "AuthenticationMethodCreateOrUpdateRequest": ".authenticationmethodcreateorupdaterequest", + "AuthenticationMethodCreateOrUpdateRequestTypedDict": ".authenticationmethodcreateorupdaterequest", + "MethodType": ".authenticationmethodcreateorupdaterequest", + "MethodTypeTypedDict": ".authenticationmethodcreateorupdaterequest", "AuthStatus": ".authstatus", "AuthURLResponse": ".authurlresponse", "AuthURLResponseTypedDict": ".authurlresponse", @@ -5541,6 +5566,7 @@ "ImportDatasetFromFileRequestTypedDict": ".importdatasetfromfilerequest", "ImportDatasetFromPlaygroundRequest": ".importdatasetfromplaygroundrequest", "ImportDatasetFromPlaygroundRequestTypedDict": ".importdatasetfromplaygroundrequest", + "InboundAuthenticationType": ".inboundauthenticationtype", "IngestionPipelineConfiguration": ".ingestionpipelineconfiguration", "IngestionPipelineConfigurationTypedDict": ".ingestionpipelineconfiguration", "InputEntries": ".inputentries", @@ -5812,6 +5838,8 @@ "ModerationResponseTypedDict": ".moderationresponse", "NetworkEncodedInput": ".networkencodedinput", "NetworkEncodedInputTypedDict": ".networkencodedinput", + "Oauth2MetadataSecrets": ".oauth2metadatasecrets", + "Oauth2MetadataSecretsTypedDict": ".oauth2metadatasecrets", "OAuth2Token": ".oauth2token", "OAuth2TokenTypedDict": ".oauth2token", "OAuth2TokenAuth": ".oauth2tokenauth", diff --git a/src/mistralai/client/models/activitytaskcompletedresponse.py b/src/mistralai/client/models/activitytaskcompletedresponse.py index b324066b..c6ec719a 100644 --- a/src/mistralai/client/models/activitytaskcompletedresponse.py +++ b/src/mistralai/client/models/activitytaskcompletedresponse.py @@ -29,6 +29,12 @@ class ActivityTaskCompletedResponseTypedDict(TypedDict): r"""Execution ID of the root workflow that initiated this execution chain.""" parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" workflow_run_id: str @@ -59,6 +65,15 @@ class ActivityTaskCompletedResponse(BaseModel): parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" + workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" @@ -83,7 +98,14 @@ class ActivityTaskCompletedResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set(["event_type"]) - nullable_fields = set(["parent_workflow_exec_id"]) + nullable_fields = set( + [ + "parent_workflow_exec_id", + "continued_run_id", + "first_execution_run_id", + "schedule_id", + ] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/activitytaskfailedresponse.py b/src/mistralai/client/models/activitytaskfailedresponse.py index 3410ea84..1bc09d0a 100644 --- a/src/mistralai/client/models/activitytaskfailedresponse.py +++ b/src/mistralai/client/models/activitytaskfailedresponse.py @@ -29,6 +29,12 @@ class ActivityTaskFailedResponseTypedDict(TypedDict): r"""Execution ID of the root workflow that initiated this execution chain.""" parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" workflow_run_id: str @@ -59,6 +65,15 @@ class ActivityTaskFailedResponse(BaseModel): parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" + workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" @@ -83,7 +98,14 @@ class ActivityTaskFailedResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set(["event_type"]) - nullable_fields = set(["parent_workflow_exec_id"]) + nullable_fields = set( + [ + "parent_workflow_exec_id", + "continued_run_id", + "first_execution_run_id", + "schedule_id", + ] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/activitytaskretryingresponse.py b/src/mistralai/client/models/activitytaskretryingresponse.py index cf054a27..bf553309 100644 --- a/src/mistralai/client/models/activitytaskretryingresponse.py +++ b/src/mistralai/client/models/activitytaskretryingresponse.py @@ -29,6 +29,12 @@ class ActivityTaskRetryingResponseTypedDict(TypedDict): r"""Execution ID of the root workflow that initiated this execution chain.""" parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" workflow_run_id: str @@ -59,6 +65,15 @@ class ActivityTaskRetryingResponse(BaseModel): parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" + workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" @@ -83,7 +98,14 @@ class ActivityTaskRetryingResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set(["event_type"]) - nullable_fields = set(["parent_workflow_exec_id"]) + nullable_fields = set( + [ + "parent_workflow_exec_id", + "continued_run_id", + "first_execution_run_id", + "schedule_id", + ] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/activitytaskstartedresponse.py b/src/mistralai/client/models/activitytaskstartedresponse.py index 75186e02..10326157 100644 --- a/src/mistralai/client/models/activitytaskstartedresponse.py +++ b/src/mistralai/client/models/activitytaskstartedresponse.py @@ -30,6 +30,12 @@ class ActivityTaskStartedResponseTypedDict(TypedDict): r"""Execution ID of the root workflow that initiated this execution chain.""" parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" workflow_run_id: str @@ -61,6 +67,15 @@ class ActivityTaskStartedResponse(BaseModel): parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" + workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" @@ -85,7 +100,14 @@ class ActivityTaskStartedResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set(["event_type"]) - nullable_fields = set(["parent_workflow_exec_id"]) + nullable_fields = set( + [ + "parent_workflow_exec_id", + "continued_run_id", + "first_execution_run_id", + "schedule_id", + ] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/authdirection.py b/src/mistralai/client/models/authdirection.py new file mode 100644 index 00000000..9220e6dc --- /dev/null +++ b/src/mistralai/client/models/authdirection.py @@ -0,0 +1,11 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: ad8790fb5fab + +from __future__ import annotations +from typing import Literal + + +AuthDirection = Literal[ + "inbound", + "outbound", +] diff --git a/src/mistralai/client/models/authenticationmethodcreateorupdaterequest.py b/src/mistralai/client/models/authenticationmethodcreateorupdaterequest.py new file mode 100644 index 00000000..de0c3f82 --- /dev/null +++ b/src/mistralai/client/models/authenticationmethodcreateorupdaterequest.py @@ -0,0 +1,100 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 240c643113bb + +from __future__ import annotations +from .authdirection import AuthDirection +from .connectorauthenticationheader import ( + ConnectorAuthenticationHeader, + ConnectorAuthenticationHeaderTypedDict, +) +from .extendedoauthservermetadata import ( + ExtendedOAuthServerMetadata, + ExtendedOAuthServerMetadataTypedDict, +) +from .inboundauthenticationtype import InboundAuthenticationType +from .oauth2metadatasecrets import Oauth2MetadataSecrets, Oauth2MetadataSecretsTypedDict +from .outboundauthenticationtype import OutboundAuthenticationType +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from pydantic import model_serializer +from typing import List, Optional, Union +from typing_extensions import NotRequired, TypeAliasType, TypedDict + + +MethodTypeTypedDict = TypeAliasType( + "MethodTypeTypedDict", Union[OutboundAuthenticationType, InboundAuthenticationType] +) +r"""The type of authentication method (e.g. oauth2, bearer, none).""" + + +MethodType = TypeAliasType( + "MethodType", Union[OutboundAuthenticationType, InboundAuthenticationType] +) +r"""The type of authentication method (e.g. oauth2, bearer, none).""" + + +class AuthenticationMethodCreateOrUpdateRequestTypedDict(TypedDict): + method_type: MethodTypeTypedDict + r"""The type of authentication method (e.g. oauth2, bearer, none).""" + auth_direction: NotRequired[AuthDirection] + headers: NotRequired[Nullable[List[ConnectorAuthenticationHeaderTypedDict]]] + r"""Set of headers to connect to the connector""" + oauth2_metadata_secrets: NotRequired[Nullable[Oauth2MetadataSecretsTypedDict]] + r"""New OAuth2 client credentials (client_id and client_secret).""" + oauth2_server_metadata: NotRequired[Nullable[ExtendedOAuthServerMetadataTypedDict]] + r"""New OAuth2 authorization server metadata.""" + + +class AuthenticationMethodCreateOrUpdateRequest(BaseModel): + method_type: MethodType + r"""The type of authentication method (e.g. oauth2, bearer, none).""" + + auth_direction: Optional[AuthDirection] = None + + headers: OptionalNullable[List[ConnectorAuthenticationHeader]] = UNSET + r"""Set of headers to connect to the connector""" + + oauth2_metadata_secrets: OptionalNullable[Oauth2MetadataSecrets] = UNSET + r"""New OAuth2 client credentials (client_id and client_secret).""" + + oauth2_server_metadata: OptionalNullable[ExtendedOAuthServerMetadata] = UNSET + r"""New OAuth2 authorization server metadata.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + [ + "auth_direction", + "headers", + "oauth2_metadata_secrets", + "oauth2_server_metadata", + ] + ) + nullable_fields = set( + ["headers", "oauth2_metadata_secrets", "oauth2_server_metadata"] + ) + 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/customtaskcanceledresponse.py b/src/mistralai/client/models/customtaskcanceledresponse.py index 7873b3ca..628f13e1 100644 --- a/src/mistralai/client/models/customtaskcanceledresponse.py +++ b/src/mistralai/client/models/customtaskcanceledresponse.py @@ -29,6 +29,12 @@ class CustomTaskCanceledResponseTypedDict(TypedDict): r"""Execution ID of the root workflow that initiated this execution chain.""" parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" workflow_run_id: str @@ -59,6 +65,15 @@ class CustomTaskCanceledResponse(BaseModel): parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" + workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" @@ -83,7 +98,14 @@ class CustomTaskCanceledResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set(["event_type"]) - nullable_fields = set(["parent_workflow_exec_id"]) + nullable_fields = set( + [ + "parent_workflow_exec_id", + "continued_run_id", + "first_execution_run_id", + "schedule_id", + ] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/customtaskcompletedresponse.py b/src/mistralai/client/models/customtaskcompletedresponse.py index 5d2a8686..96e5b535 100644 --- a/src/mistralai/client/models/customtaskcompletedresponse.py +++ b/src/mistralai/client/models/customtaskcompletedresponse.py @@ -29,6 +29,12 @@ class CustomTaskCompletedResponseTypedDict(TypedDict): r"""Execution ID of the root workflow that initiated this execution chain.""" parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" workflow_run_id: str @@ -59,6 +65,15 @@ class CustomTaskCompletedResponse(BaseModel): parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" + workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" @@ -83,7 +98,14 @@ class CustomTaskCompletedResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set(["event_type"]) - nullable_fields = set(["parent_workflow_exec_id"]) + nullable_fields = set( + [ + "parent_workflow_exec_id", + "continued_run_id", + "first_execution_run_id", + "schedule_id", + ] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/customtaskfailedresponse.py b/src/mistralai/client/models/customtaskfailedresponse.py index 1f9835ec..b331d614 100644 --- a/src/mistralai/client/models/customtaskfailedresponse.py +++ b/src/mistralai/client/models/customtaskfailedresponse.py @@ -29,6 +29,12 @@ class CustomTaskFailedResponseTypedDict(TypedDict): r"""Execution ID of the root workflow that initiated this execution chain.""" parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" workflow_run_id: str @@ -59,6 +65,15 @@ class CustomTaskFailedResponse(BaseModel): parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" + workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" @@ -83,7 +98,14 @@ class CustomTaskFailedResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set(["event_type"]) - nullable_fields = set(["parent_workflow_exec_id"]) + nullable_fields = set( + [ + "parent_workflow_exec_id", + "continued_run_id", + "first_execution_run_id", + "schedule_id", + ] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/customtaskinprogressresponse.py b/src/mistralai/client/models/customtaskinprogressresponse.py index 33c126f7..eb8794dd 100644 --- a/src/mistralai/client/models/customtaskinprogressresponse.py +++ b/src/mistralai/client/models/customtaskinprogressresponse.py @@ -30,6 +30,12 @@ class CustomTaskInProgressResponseTypedDict(TypedDict): r"""Execution ID of the root workflow that initiated this execution chain.""" parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" workflow_run_id: str @@ -61,6 +67,15 @@ class CustomTaskInProgressResponse(BaseModel): parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" + workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" @@ -85,7 +100,14 @@ class CustomTaskInProgressResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set(["event_type"]) - nullable_fields = set(["parent_workflow_exec_id"]) + nullable_fields = set( + [ + "parent_workflow_exec_id", + "continued_run_id", + "first_execution_run_id", + "schedule_id", + ] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/customtaskstartedresponse.py b/src/mistralai/client/models/customtaskstartedresponse.py index 59d11fa8..74b8d7fc 100644 --- a/src/mistralai/client/models/customtaskstartedresponse.py +++ b/src/mistralai/client/models/customtaskstartedresponse.py @@ -30,6 +30,12 @@ class CustomTaskStartedResponseTypedDict(TypedDict): r"""Execution ID of the root workflow that initiated this execution chain.""" parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" workflow_run_id: str @@ -61,6 +67,15 @@ class CustomTaskStartedResponse(BaseModel): parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" + workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" @@ -85,7 +100,14 @@ class CustomTaskStartedResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set(["event_type"]) - nullable_fields = set(["parent_workflow_exec_id"]) + nullable_fields = set( + [ + "parent_workflow_exec_id", + "continued_run_id", + "first_execution_run_id", + "schedule_id", + ] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/customtasktimedoutresponse.py b/src/mistralai/client/models/customtasktimedoutresponse.py index 7f274a53..01cf2f25 100644 --- a/src/mistralai/client/models/customtasktimedoutresponse.py +++ b/src/mistralai/client/models/customtasktimedoutresponse.py @@ -29,6 +29,12 @@ class CustomTaskTimedOutResponseTypedDict(TypedDict): r"""Execution ID of the root workflow that initiated this execution chain.""" parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" workflow_run_id: str @@ -59,6 +65,15 @@ class CustomTaskTimedOutResponse(BaseModel): parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" + workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" @@ -83,7 +98,14 @@ class CustomTaskTimedOutResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set(["event_type"]) - nullable_fields = set(["parent_workflow_exec_id"]) + nullable_fields = set( + [ + "parent_workflow_exec_id", + "continued_run_id", + "first_execution_run_id", + "schedule_id", + ] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/extendedoauthservermetadata.py b/src/mistralai/client/models/extendedoauthservermetadata.py index e45827d5..91033c6a 100644 --- a/src/mistralai/client/models/extendedoauthservermetadata.py +++ b/src/mistralai/client/models/extendedoauthservermetadata.py @@ -48,6 +48,7 @@ class ExtendedOAuthServerMetadataTypedDict(TypedDict): code_challenge_methods_supported: NotRequired[Nullable[List[str]]] client_id_metadata_document_supported: NotRequired[Nullable[bool]] x_resource_url: NotRequired[Nullable[str]] + x_scope: NotRequired[Nullable[str]] class ExtendedOAuthServerMetadata(BaseModel): @@ -109,6 +110,8 @@ class ExtendedOAuthServerMetadata(BaseModel): x_resource_url: OptionalNullable[str] = UNSET + x_scope: OptionalNullable[str] = UNSET + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set( @@ -133,6 +136,7 @@ def serialize_model(self, handler): "code_challenge_methods_supported", "client_id_metadata_document_supported", "x_resource_url", + "x_scope", ] ) nullable_fields = set( @@ -156,6 +160,7 @@ def serialize_model(self, handler): "code_challenge_methods_supported", "client_id_metadata_document_supported", "x_resource_url", + "x_scope", ] ) serialized = handler(self) diff --git a/src/mistralai/client/models/inboundauthenticationtype.py b/src/mistralai/client/models/inboundauthenticationtype.py new file mode 100644 index 00000000..9e78a499 --- /dev/null +++ b/src/mistralai/client/models/inboundauthenticationtype.py @@ -0,0 +1,8 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 0c9f48e0518f + +from __future__ import annotations +from typing import Literal + + +InboundAuthenticationType = Literal["webhook",] diff --git a/src/mistralai/client/models/oauth2metadatasecrets.py b/src/mistralai/client/models/oauth2metadatasecrets.py new file mode 100644 index 00000000..d624d9e2 --- /dev/null +++ b/src/mistralai/client/models/oauth2metadatasecrets.py @@ -0,0 +1,83 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 20d0c8c24a9d + +from __future__ import annotations +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from pydantic import model_serializer +from typing_extensions import NotRequired, TypedDict + + +class Oauth2MetadataSecretsTypedDict(TypedDict): + r"""OAuth2 client credentials stored alongside a connector's authentication method. + + Used by OAuth2 and Slack App auth types for token exchange and refresh flows. + Contains the client credentials obtained during OAuth2 Dynamic Client Registration + or provided at connector creation time. + """ + + client_id: NotRequired[Nullable[str]] + client_secret: NotRequired[Nullable[str]] + client_id_issued_at: NotRequired[Nullable[int]] + client_secret_expires_at: NotRequired[Nullable[int]] + + +class Oauth2MetadataSecrets(BaseModel): + r"""OAuth2 client credentials stored alongside a connector's authentication method. + + Used by OAuth2 and Slack App auth types for token exchange and refresh flows. + Contains the client credentials obtained during OAuth2 Dynamic Client Registration + or provided at connector creation time. + """ + + client_id: OptionalNullable[str] = UNSET + + client_secret: OptionalNullable[str] = UNSET + + client_id_issued_at: OptionalNullable[int] = UNSET + + client_secret_expires_at: OptionalNullable[int] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + [ + "client_id", + "client_secret", + "client_id_issued_at", + "client_secret_expires_at", + ] + ) + nullable_fields = set( + [ + "client_id", + "client_secret", + "client_id_issued_at", + "client_secret_expires_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 diff --git a/src/mistralai/client/models/observabilityerrorcode.py b/src/mistralai/client/models/observabilityerrorcode.py index f2a63b13..310f3444 100644 --- a/src/mistralai/client/models/observabilityerrorcode.py +++ b/src/mistralai/client/models/observabilityerrorcode.py @@ -53,6 +53,7 @@ "TEMPLATE_SYNTAX_ERROR", "PROJECT_NAME_ALREADY_EXISTS", "EVALUATION_NAME_ALREADY_EXISTS", + "OPTIMIZATION_TRIAL_KEY_ALREADY_EXISTS", "TRACES_FILTER_QUERY_PARSE_ERROR", "TRACE_NOT_FOUND", "SPAN_NOT_FOUND", diff --git a/src/mistralai/client/models/updateconnectorrequest.py b/src/mistralai/client/models/updateconnectorrequest.py index 8af8c8b4..1417e7f0 100644 --- a/src/mistralai/client/models/updateconnectorrequest.py +++ b/src/mistralai/client/models/updateconnectorrequest.py @@ -2,7 +2,10 @@ # @generated-id: a761cd154109 from __future__ import annotations -from .authdata import AuthData, AuthDataTypedDict +from .authenticationmethodcreateorupdaterequest import ( + AuthenticationMethodCreateOrUpdateRequest, + AuthenticationMethodCreateOrUpdateRequestTypedDict, +) from mistralai.client.types import ( BaseModel, Nullable, @@ -14,7 +17,7 @@ import pydantic from pydantic import model_serializer from pydantic.functional_validators import AfterValidator -from typing import Any, Dict, Literal, Optional +from typing import List, Literal, Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -32,10 +35,10 @@ class UpdateConnectorRequestTypedDict(TypedDict): protocol: Literal["mcp"] server: NotRequired[Nullable[str]] r"""New server url for your mcp connector.""" - headers: NotRequired[Nullable[Dict[str, Any]]] - r"""New headers for your mcp connector.""" - auth_data: NotRequired[Nullable[AuthDataTypedDict]] - r"""New authentication data for your mcp connector.""" + auth_methods: NotRequired[ + Nullable[List[AuthenticationMethodCreateOrUpdateRequestTypedDict]] + ] + r"""list of authentication methods to add to the connector or to update""" class UpdateConnectorRequest(BaseModel): @@ -62,11 +65,10 @@ class UpdateConnectorRequest(BaseModel): server: OptionalNullable[str] = UNSET r"""New server url for your mcp connector.""" - headers: OptionalNullable[Dict[str, Any]] = UNSET - r"""New headers for your mcp connector.""" - - auth_data: OptionalNullable[AuthData] = UNSET - r"""New authentication data for your mcp connector.""" + auth_methods: OptionalNullable[List[AuthenticationMethodCreateOrUpdateRequest]] = ( + UNSET + ) + r"""list of authentication methods to add to the connector or to update""" @model_serializer(mode="wrap") def serialize_model(self, handler): @@ -79,8 +81,7 @@ def serialize_model(self, handler): "system_prompt", "protocol", "server", - "headers", - "auth_data", + "auth_methods", ] ) nullable_fields = set( @@ -91,8 +92,7 @@ def serialize_model(self, handler): "icon_url", "system_prompt", "server", - "headers", - "auth_data", + "auth_methods", ] ) serialized = handler(self) diff --git a/src/mistralai/client/models/workflowexecutioncanceledattributes.py b/src/mistralai/client/models/workflowexecutioncanceledattributes.py index 6c06bfa9..69327cdc 100644 --- a/src/mistralai/client/models/workflowexecutioncanceledattributes.py +++ b/src/mistralai/client/models/workflowexecutioncanceledattributes.py @@ -10,6 +10,7 @@ UNSET_SENTINEL, ) from pydantic import model_serializer +from typing import Optional from typing_extensions import NotRequired, TypedDict @@ -20,6 +21,8 @@ class WorkflowExecutionCanceledAttributesTypedDict(TypedDict): r"""Unique identifier for the task within the workflow execution.""" reason: NotRequired[Nullable[str]] r"""Optional reason provided for the cancellation.""" + attempt: NotRequired[int] + r"""Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.""" class WorkflowExecutionCanceledAttributes(BaseModel): @@ -31,9 +34,12 @@ class WorkflowExecutionCanceledAttributes(BaseModel): reason: OptionalNullable[str] = UNSET r"""Optional reason provided for the cancellation.""" + attempt: Optional[int] = 1 + r"""Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.""" + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["reason"]) + optional_fields = set(["reason", "attempt"]) nullable_fields = set(["reason"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/workflowexecutioncanceledresponse.py b/src/mistralai/client/models/workflowexecutioncanceledresponse.py index ee1c4e71..05b261a2 100644 --- a/src/mistralai/client/models/workflowexecutioncanceledresponse.py +++ b/src/mistralai/client/models/workflowexecutioncanceledresponse.py @@ -29,6 +29,12 @@ class WorkflowExecutionCanceledResponseTypedDict(TypedDict): r"""Execution ID of the root workflow that initiated this execution chain.""" parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" workflow_run_id: str @@ -59,6 +65,15 @@ class WorkflowExecutionCanceledResponse(BaseModel): parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" + workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" @@ -83,7 +98,14 @@ class WorkflowExecutionCanceledResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set(["event_type"]) - nullable_fields = set(["parent_workflow_exec_id"]) + nullable_fields = set( + [ + "parent_workflow_exec_id", + "continued_run_id", + "first_execution_run_id", + "schedule_id", + ] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/workflowexecutioncompletedattributesresponse.py b/src/mistralai/client/models/workflowexecutioncompletedattributesresponse.py index 1fe0c248..f35e3007 100644 --- a/src/mistralai/client/models/workflowexecutioncompletedattributesresponse.py +++ b/src/mistralai/client/models/workflowexecutioncompletedattributesresponse.py @@ -3,8 +3,10 @@ from __future__ import annotations from .jsonpayloadresponse import JSONPayloadResponse, JSONPayloadResponseTypedDict -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 Optional +from typing_extensions import NotRequired, TypedDict class WorkflowExecutionCompletedAttributesResponseTypedDict(TypedDict): @@ -19,6 +21,8 @@ class WorkflowExecutionCompletedAttributesResponseTypedDict(TypedDict): When encrypted, the value field contains base64-encoded encrypted data and encoding_options indicates the type of encryption applied. """ + attempt: NotRequired[int] + r"""Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.""" class WorkflowExecutionCompletedAttributesResponse(BaseModel): @@ -34,3 +38,22 @@ class WorkflowExecutionCompletedAttributesResponse(BaseModel): When encrypted, the value field contains base64-encoded encrypted data and encoding_options indicates the type of encryption applied. """ + + attempt: Optional[int] = 1 + r"""Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["attempt"]) + 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/workflowexecutioncompletedresponse.py b/src/mistralai/client/models/workflowexecutioncompletedresponse.py index 17716668..c58745b1 100644 --- a/src/mistralai/client/models/workflowexecutioncompletedresponse.py +++ b/src/mistralai/client/models/workflowexecutioncompletedresponse.py @@ -29,6 +29,12 @@ class WorkflowExecutionCompletedResponseTypedDict(TypedDict): r"""Execution ID of the root workflow that initiated this execution chain.""" parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" workflow_run_id: str @@ -59,6 +65,15 @@ class WorkflowExecutionCompletedResponse(BaseModel): parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" + workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" @@ -83,7 +98,14 @@ class WorkflowExecutionCompletedResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set(["event_type"]) - nullable_fields = set(["parent_workflow_exec_id"]) + nullable_fields = set( + [ + "parent_workflow_exec_id", + "continued_run_id", + "first_execution_run_id", + "schedule_id", + ] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/workflowexecutioncontinuedasnewresponse.py b/src/mistralai/client/models/workflowexecutioncontinuedasnewresponse.py index 0f60a5be..aadb8a34 100644 --- a/src/mistralai/client/models/workflowexecutioncontinuedasnewresponse.py +++ b/src/mistralai/client/models/workflowexecutioncontinuedasnewresponse.py @@ -30,6 +30,12 @@ class WorkflowExecutionContinuedAsNewResponseTypedDict(TypedDict): r"""Execution ID of the root workflow that initiated this execution chain.""" parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" workflow_run_id: str @@ -61,6 +67,15 @@ class WorkflowExecutionContinuedAsNewResponse(BaseModel): parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" + workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" @@ -85,7 +100,14 @@ class WorkflowExecutionContinuedAsNewResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set(["event_type"]) - nullable_fields = set(["parent_workflow_exec_id"]) + nullable_fields = set( + [ + "parent_workflow_exec_id", + "continued_run_id", + "first_execution_run_id", + "schedule_id", + ] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/workflowexecutionfailedattributes.py b/src/mistralai/client/models/workflowexecutionfailedattributes.py index 1e61f344..440b6c7a 100644 --- a/src/mistralai/client/models/workflowexecutionfailedattributes.py +++ b/src/mistralai/client/models/workflowexecutionfailedattributes.py @@ -3,8 +3,10 @@ from __future__ import annotations from .failure import Failure, FailureTypedDict -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 Optional +from typing_extensions import NotRequired, TypedDict class WorkflowExecutionFailedAttributesTypedDict(TypedDict): @@ -14,6 +16,8 @@ class WorkflowExecutionFailedAttributesTypedDict(TypedDict): r"""Unique identifier for the task within the workflow execution.""" failure: FailureTypedDict r"""Represents an error or exception that occurred during execution.""" + attempt: NotRequired[int] + r"""Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.""" class WorkflowExecutionFailedAttributes(BaseModel): @@ -24,3 +28,22 @@ class WorkflowExecutionFailedAttributes(BaseModel): failure: Failure r"""Represents an error or exception that occurred during execution.""" + + attempt: Optional[int] = 1 + r"""Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["attempt"]) + 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/workflowexecutionfailedresponse.py b/src/mistralai/client/models/workflowexecutionfailedresponse.py index 687d33a9..736f7e7b 100644 --- a/src/mistralai/client/models/workflowexecutionfailedresponse.py +++ b/src/mistralai/client/models/workflowexecutionfailedresponse.py @@ -29,6 +29,12 @@ class WorkflowExecutionFailedResponseTypedDict(TypedDict): r"""Execution ID of the root workflow that initiated this execution chain.""" parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" workflow_run_id: str @@ -59,6 +65,15 @@ class WorkflowExecutionFailedResponse(BaseModel): parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" + workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" @@ -83,7 +98,14 @@ class WorkflowExecutionFailedResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set(["event_type"]) - nullable_fields = set(["parent_workflow_exec_id"]) + nullable_fields = set( + [ + "parent_workflow_exec_id", + "continued_run_id", + "first_execution_run_id", + "schedule_id", + ] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/workflowexecutionstartedattributesresponse.py b/src/mistralai/client/models/workflowexecutionstartedattributesresponse.py index 59746a61..728cc954 100644 --- a/src/mistralai/client/models/workflowexecutionstartedattributesresponse.py +++ b/src/mistralai/client/models/workflowexecutionstartedattributesresponse.py @@ -11,6 +11,7 @@ UNSET_SENTINEL, ) from pydantic import model_serializer +from typing import Optional from typing_extensions import NotRequired, TypedDict @@ -30,6 +31,8 @@ class WorkflowExecutionStartedAttributesResponseTypedDict(TypedDict): """ display_name: NotRequired[Nullable[str]] r"""The user-friendly display name of the workflow, if available.""" + attempt: NotRequired[int] + r"""Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.""" class WorkflowExecutionStartedAttributesResponse(BaseModel): @@ -52,9 +55,12 @@ class WorkflowExecutionStartedAttributesResponse(BaseModel): display_name: OptionalNullable[str] = UNSET r"""The user-friendly display name of the workflow, if available.""" + attempt: Optional[int] = 1 + r"""Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.""" + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["display_name"]) + optional_fields = set(["display_name", "attempt"]) nullable_fields = set(["display_name"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/workflowexecutionstartedresponse.py b/src/mistralai/client/models/workflowexecutionstartedresponse.py index fa1e46a0..8da33ba6 100644 --- a/src/mistralai/client/models/workflowexecutionstartedresponse.py +++ b/src/mistralai/client/models/workflowexecutionstartedresponse.py @@ -29,6 +29,12 @@ class WorkflowExecutionStartedResponseTypedDict(TypedDict): r"""Execution ID of the root workflow that initiated this execution chain.""" parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" workflow_run_id: str @@ -59,6 +65,15 @@ class WorkflowExecutionStartedResponse(BaseModel): parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" + workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" @@ -83,7 +98,14 @@ class WorkflowExecutionStartedResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set(["event_type"]) - nullable_fields = set(["parent_workflow_exec_id"]) + nullable_fields = set( + [ + "parent_workflow_exec_id", + "continued_run_id", + "first_execution_run_id", + "schedule_id", + ] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/workflowtaskfailedresponse.py b/src/mistralai/client/models/workflowtaskfailedresponse.py index 154145e3..cda41976 100644 --- a/src/mistralai/client/models/workflowtaskfailedresponse.py +++ b/src/mistralai/client/models/workflowtaskfailedresponse.py @@ -30,6 +30,12 @@ class WorkflowTaskFailedResponseTypedDict(TypedDict): r"""Execution ID of the root workflow that initiated this execution chain.""" parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" workflow_run_id: str @@ -61,6 +67,15 @@ class WorkflowTaskFailedResponse(BaseModel): parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" + workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" @@ -85,7 +100,14 @@ class WorkflowTaskFailedResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set(["event_type"]) - nullable_fields = set(["parent_workflow_exec_id"]) + nullable_fields = set( + [ + "parent_workflow_exec_id", + "continued_run_id", + "first_execution_run_id", + "schedule_id", + ] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/workflowtasktimedoutresponse.py b/src/mistralai/client/models/workflowtasktimedoutresponse.py index 2c3350e0..457a8737 100644 --- a/src/mistralai/client/models/workflowtasktimedoutresponse.py +++ b/src/mistralai/client/models/workflowtasktimedoutresponse.py @@ -30,6 +30,12 @@ class WorkflowTaskTimedOutResponseTypedDict(TypedDict): r"""Execution ID of the root workflow that initiated this execution chain.""" parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" workflow_run_id: str @@ -61,6 +67,15 @@ class WorkflowTaskTimedOutResponse(BaseModel): parent_workflow_exec_id: Nullable[str] r"""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] + 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.""" + + schedule_id: Nullable[str] + r"""Temporal schedule ID that triggered this execution, if any.""" + workflow_exec_id: str r"""Execution ID of the workflow that emitted this event.""" @@ -85,7 +100,14 @@ class WorkflowTaskTimedOutResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set(["event_type"]) - nullable_fields = set(["parent_workflow_exec_id"]) + nullable_fields = set( + [ + "parent_workflow_exec_id", + "continued_run_id", + "first_execution_run_id", + "schedule_id", + ] + ) serialized = handler(self) m = {} diff --git a/uv.lock b/uv.lock index 5bd20ec8..ab8f935b 100644 --- a/uv.lock +++ b/uv.lock @@ -1047,7 +1047,7 @@ wheels = [ [[package]] name = "mistralai" -version = "2.9.1" +version = "2.9.2" source = { editable = "." } dependencies = [ { name = "eval-type-backport" }, @@ -1149,7 +1149,7 @@ requires-dist = [ { name = "opentelemetry-api", specifier = ">=1.33.1,<2.0.0" }, { name = "opentelemetry-exporter-otlp-proto-http", marker = "extra == 'telemetry'", specifier = ">=1.33.1,<2.0.0" }, { name = "opentelemetry-sdk", marker = "extra == 'telemetry'", specifier = ">=1.33.1,<2.0.0" }, - { name = "opentelemetry-semantic-conventions", specifier = ">=0.60b1,<0.61" }, + { name = "opentelemetry-semantic-conventions", specifier = ">=0.60b1" }, { name = "pydantic", specifier = ">=2.11.2" }, { name = "python-dateutil", specifier = ">=2.8.2" }, { name = "requests", marker = "extra == 'gcp'", specifier = ">=2.32.3" }, @@ -1168,7 +1168,7 @@ dev = [ { name = "msgpack", specifier = ">=1.1.0,<2.0.0" }, { name = "mypy", specifier = "==1.15.0" }, { name = "opentelemetry-exporter-otlp-proto-http", specifier = ">=1.33.1,<2.0.0" }, - { name = "opentelemetry-instrumentation-httpx", specifier = ">=0.60b1,<0.61" }, + { name = "opentelemetry-instrumentation-httpx", specifier = ">=0.60b1" }, { name = "opentelemetry-sdk", specifier = ">=1.33.1,<2.0.0" }, { name = "pylint", specifier = "==3.2.3" }, { name = "pytest", specifier = ">=8.2.2,<9" },