@mistralai/mistralai 3.3.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (825) hide show
  1. package/README.md +76 -46
  2. package/esm/extra/realtime/connection.d.ts +16 -3
  3. package/esm/extra/realtime/connection.d.ts.map +1 -1
  4. package/esm/extra/realtime/connection.js +35 -9
  5. package/esm/extra/realtime/connection.js.map +1 -1
  6. package/esm/extra/realtime/errors.d.ts +18 -0
  7. package/esm/extra/realtime/errors.d.ts.map +1 -1
  8. package/esm/extra/realtime/errors.js +19 -0
  9. package/esm/extra/realtime/errors.js.map +1 -1
  10. package/esm/extra/realtime/index.d.ts +20 -1
  11. package/esm/extra/realtime/index.d.ts.map +1 -1
  12. package/esm/extra/realtime/index.js +5 -0
  13. package/esm/extra/realtime/index.js.map +1 -1
  14. package/esm/extra/realtime/speech.d.ts +64 -0
  15. package/esm/extra/realtime/speech.d.ts.map +1 -0
  16. package/esm/extra/realtime/speech.js +461 -0
  17. package/esm/extra/realtime/speech.js.map +1 -0
  18. package/esm/extra/realtime/transcription.d.ts +2 -2
  19. package/esm/extra/realtime/transcription.d.ts.map +1 -1
  20. package/esm/extra/realtime/transcription.js +11 -2
  21. package/esm/extra/realtime/transcription.js.map +1 -1
  22. package/esm/extra/workflows/encoding/payload-encoder.d.ts.map +1 -1
  23. package/esm/extra/workflows/encoding/payload-encoder.js +2 -2
  24. package/esm/extra/workflows/encoding/payload-encoder.js.map +1 -1
  25. package/esm/extra/workflows/encoding/python-json.d.ts +3 -2
  26. package/esm/extra/workflows/encoding/python-json.d.ts.map +1 -1
  27. package/esm/extra/workflows/encoding/python-json.js +24 -9
  28. package/esm/extra/workflows/encoding/python-json.js.map +1 -1
  29. package/esm/funcs/{betaRagManagedIndexesCreate.d.ts → betaContextSearchIndexesCreate.d.ts} +2 -2
  30. package/esm/funcs/betaContextSearchIndexesCreate.d.ts.map +1 -0
  31. package/esm/funcs/{betaRagManagedIndexesCreate.js → betaContextSearchIndexesCreate.js} +3 -3
  32. package/esm/funcs/betaContextSearchIndexesCreate.js.map +1 -0
  33. package/esm/funcs/{betaRagManagedIndexesDelete.d.ts → betaContextSearchIndexesDelete.d.ts} +2 -2
  34. package/esm/funcs/betaContextSearchIndexesDelete.d.ts.map +1 -0
  35. package/esm/funcs/{betaRagManagedIndexesDelete.js → betaContextSearchIndexesDelete.js} +2 -2
  36. package/esm/funcs/betaContextSearchIndexesDelete.js.map +1 -0
  37. package/esm/funcs/{betaRagManagedIndexesDeleteDocuments.d.ts → betaContextSearchIndexesDeleteDocuments.d.ts} +2 -2
  38. package/esm/funcs/betaContextSearchIndexesDeleteDocuments.d.ts.map +1 -0
  39. package/esm/funcs/{betaRagManagedIndexesDeleteDocuments.js → betaContextSearchIndexesDeleteDocuments.js} +2 -2
  40. package/esm/funcs/betaContextSearchIndexesDeleteDocuments.js.map +1 -0
  41. package/esm/funcs/{betaRagManagedIndexesGenerateIndexSummary.d.ts → betaContextSearchIndexesGenerateIndexSummary.d.ts} +2 -2
  42. package/esm/funcs/betaContextSearchIndexesGenerateIndexSummary.d.ts.map +1 -0
  43. package/esm/funcs/{betaRagManagedIndexesGenerateIndexSummary.js → betaContextSearchIndexesGenerateIndexSummary.js} +2 -2
  44. package/esm/funcs/betaContextSearchIndexesGenerateIndexSummary.js.map +1 -0
  45. package/esm/funcs/{betaRagManagedIndexesGet.d.ts → betaContextSearchIndexesGet.d.ts} +2 -2
  46. package/esm/funcs/{betaRagManagedIndexesDelete.d.ts.map → betaContextSearchIndexesGet.d.ts.map} +1 -1
  47. package/esm/funcs/{betaRagManagedIndexesGet.js → betaContextSearchIndexesGet.js} +2 -2
  48. package/esm/funcs/betaContextSearchIndexesGet.js.map +1 -0
  49. package/esm/funcs/{betaRagManagedIndexesGetChunk.d.ts → betaContextSearchIndexesGetChunk.d.ts} +2 -2
  50. package/esm/funcs/betaContextSearchIndexesGetChunk.d.ts.map +1 -0
  51. package/esm/funcs/{betaRagManagedIndexesGetChunk.js → betaContextSearchIndexesGetChunk.js} +2 -2
  52. package/esm/funcs/betaContextSearchIndexesGetChunk.js.map +1 -0
  53. package/esm/funcs/{betaRagManagedIndexesGetIndexSummary.d.ts → betaContextSearchIndexesGetIndexSummary.d.ts} +2 -2
  54. package/esm/funcs/betaContextSearchIndexesGetIndexSummary.d.ts.map +1 -0
  55. package/esm/funcs/{betaRagManagedIndexesGetIndexSummary.js → betaContextSearchIndexesGetIndexSummary.js} +2 -2
  56. package/esm/funcs/betaContextSearchIndexesGetIndexSummary.js.map +1 -0
  57. package/esm/funcs/{betaRagManagedIndexesGrep.d.ts → betaContextSearchIndexesGrep.d.ts} +2 -2
  58. package/esm/funcs/betaContextSearchIndexesGrep.d.ts.map +1 -0
  59. package/esm/funcs/{betaRagManagedIndexesGrep.js → betaContextSearchIndexesGrep.js} +2 -2
  60. package/esm/funcs/betaContextSearchIndexesGrep.js.map +1 -0
  61. package/esm/funcs/betaContextSearchIndexesIngestDocuments.d.ts +19 -0
  62. package/esm/funcs/betaContextSearchIndexesIngestDocuments.d.ts.map +1 -0
  63. package/esm/funcs/{betaRagManagedIndexesIngestDocuments.js → betaContextSearchIndexesIngestDocuments.js} +2 -2
  64. package/esm/funcs/betaContextSearchIndexesIngestDocuments.js.map +1 -0
  65. package/esm/funcs/{betaRagManagedIndexesList.d.ts → betaContextSearchIndexesList.d.ts} +2 -2
  66. package/esm/funcs/betaContextSearchIndexesList.d.ts.map +1 -0
  67. package/esm/funcs/{betaRagManagedIndexesList.js → betaContextSearchIndexesList.js} +3 -3
  68. package/esm/funcs/betaContextSearchIndexesList.js.map +1 -0
  69. package/esm/funcs/{betaRagManagedIndexesNavigate.d.ts → betaContextSearchIndexesNavigate.d.ts} +2 -2
  70. package/esm/funcs/betaContextSearchIndexesNavigate.d.ts.map +1 -0
  71. package/esm/funcs/{betaRagManagedIndexesNavigate.js → betaContextSearchIndexesNavigate.js} +2 -2
  72. package/esm/funcs/betaContextSearchIndexesNavigate.js.map +1 -0
  73. package/esm/funcs/{betaRagManagedIndexesRead.d.ts → betaContextSearchIndexesRead.d.ts} +2 -2
  74. package/esm/funcs/betaContextSearchIndexesRead.d.ts.map +1 -0
  75. package/esm/funcs/{betaRagManagedIndexesRead.js → betaContextSearchIndexesRead.js} +2 -2
  76. package/esm/funcs/betaContextSearchIndexesRead.js.map +1 -0
  77. package/esm/funcs/{betaRagManagedIndexesSearch.d.ts → betaContextSearchIndexesSearch.d.ts} +2 -2
  78. package/esm/funcs/betaContextSearchIndexesSearch.d.ts.map +1 -0
  79. package/esm/funcs/{betaRagManagedIndexesSearch.js → betaContextSearchIndexesSearch.js} +2 -2
  80. package/esm/funcs/betaContextSearchIndexesSearch.js.map +1 -0
  81. package/esm/funcs/{betaRagManagedIndexesSetIndexSummary.d.ts → betaContextSearchIndexesSetIndexSummary.d.ts} +2 -2
  82. package/esm/funcs/betaContextSearchIndexesSetIndexSummary.d.ts.map +1 -0
  83. package/esm/funcs/{betaRagManagedIndexesSetIndexSummary.js → betaContextSearchIndexesSetIndexSummary.js} +2 -2
  84. package/esm/funcs/betaContextSearchIndexesSetIndexSummary.js.map +1 -0
  85. package/esm/funcs/{betaRagManagedIndexesUpdate.d.ts → betaContextSearchIndexesUpdate.d.ts} +2 -2
  86. package/esm/funcs/betaContextSearchIndexesUpdate.d.ts.map +1 -0
  87. package/esm/funcs/{betaRagManagedIndexesUpdate.js → betaContextSearchIndexesUpdate.js} +2 -2
  88. package/esm/funcs/betaContextSearchIndexesUpdate.js.map +1 -0
  89. package/esm/funcs/betaTriggersCreate.d.ts +15 -0
  90. package/esm/funcs/betaTriggersCreate.d.ts.map +1 -0
  91. package/esm/funcs/betaTriggersCreate.js +80 -0
  92. package/esm/funcs/betaTriggersCreate.js.map +1 -0
  93. package/esm/funcs/betaTriggersDelete.d.ts +15 -0
  94. package/esm/funcs/betaTriggersDelete.d.ts.map +1 -0
  95. package/esm/funcs/betaTriggersDelete.js +87 -0
  96. package/esm/funcs/betaTriggersDelete.js.map +1 -0
  97. package/esm/funcs/{betaRagManagedIndexesIngestDocuments.d.ts → betaTriggersGet.d.ts} +3 -6
  98. package/esm/funcs/betaTriggersGet.d.ts.map +1 -0
  99. package/esm/funcs/betaTriggersGet.js +86 -0
  100. package/esm/funcs/betaTriggersGet.js.map +1 -0
  101. package/esm/funcs/betaTriggersList.d.ts +16 -0
  102. package/esm/funcs/betaTriggersList.d.ts.map +1 -0
  103. package/esm/funcs/betaTriggersList.js +88 -0
  104. package/esm/funcs/betaTriggersList.js.map +1 -0
  105. package/esm/funcs/betaTriggersListEvents.d.ts +16 -0
  106. package/esm/funcs/betaTriggersListEvents.d.ts.map +1 -0
  107. package/esm/funcs/betaTriggersListEvents.js +92 -0
  108. package/esm/funcs/betaTriggersListEvents.js.map +1 -0
  109. package/esm/funcs/betaWebhooksCreate.d.ts +15 -0
  110. package/esm/funcs/betaWebhooksCreate.d.ts.map +1 -0
  111. package/esm/funcs/betaWebhooksCreate.js +80 -0
  112. package/esm/funcs/betaWebhooksCreate.js.map +1 -0
  113. package/esm/funcs/betaWebhooksDelete.d.ts +15 -0
  114. package/esm/funcs/betaWebhooksDelete.d.ts.map +1 -0
  115. package/esm/funcs/betaWebhooksDelete.js +87 -0
  116. package/esm/funcs/betaWebhooksDelete.js.map +1 -0
  117. package/esm/funcs/betaWebhooksGet.d.ts +16 -0
  118. package/esm/funcs/betaWebhooksGet.d.ts.map +1 -0
  119. package/esm/funcs/betaWebhooksGet.js +86 -0
  120. package/esm/funcs/betaWebhooksGet.js.map +1 -0
  121. package/esm/funcs/betaWebhooksGetSigningSecret.d.ts +16 -0
  122. package/esm/funcs/betaWebhooksGetSigningSecret.d.ts.map +1 -0
  123. package/esm/funcs/betaWebhooksGetSigningSecret.js +88 -0
  124. package/esm/funcs/betaWebhooksGetSigningSecret.js.map +1 -0
  125. package/esm/funcs/betaWebhooksList.d.ts +14 -0
  126. package/esm/funcs/betaWebhooksList.d.ts.map +1 -0
  127. package/esm/funcs/betaWebhooksList.js +67 -0
  128. package/esm/funcs/betaWebhooksList.js.map +1 -0
  129. package/esm/funcs/workflowsAddWorkflowTags.d.ts +15 -0
  130. package/esm/funcs/workflowsAddWorkflowTags.d.ts.map +1 -0
  131. package/esm/funcs/workflowsAddWorkflowTags.js +88 -0
  132. package/esm/funcs/workflowsAddWorkflowTags.js.map +1 -0
  133. package/esm/funcs/workflowsDeploymentsGetDeploymentArchive.d.ts +22 -0
  134. package/esm/funcs/workflowsDeploymentsGetDeploymentArchive.d.ts.map +1 -0
  135. package/esm/funcs/workflowsDeploymentsGetDeploymentArchive.js +94 -0
  136. package/esm/funcs/workflowsDeploymentsGetDeploymentArchive.js.map +1 -0
  137. package/esm/lib/config.d.ts +2 -2
  138. package/esm/lib/config.js +2 -2
  139. package/esm/models/components/connectionpreference.d.ts +12 -2
  140. package/esm/models/components/connectionpreference.d.ts.map +1 -1
  141. package/esm/models/components/connectionpreference.js +3 -3
  142. package/esm/models/components/connectionpreference.js.map +1 -1
  143. package/esm/models/components/connectoropenapispec.d.ts +14 -0
  144. package/esm/models/components/connectoropenapispec.d.ts.map +1 -0
  145. package/esm/models/components/connectoropenapispec.js +14 -0
  146. package/esm/models/components/connectoropenapispec.js.map +1 -0
  147. package/esm/models/components/createtrigger.d.ts +34 -0
  148. package/esm/models/components/createtrigger.d.ts.map +1 -0
  149. package/esm/models/components/createtrigger.js +26 -0
  150. package/esm/models/components/createtrigger.js.map +1 -0
  151. package/esm/models/components/createtriggeraction.d.ts +18 -0
  152. package/esm/models/components/createtriggeraction.d.ts.map +1 -0
  153. package/esm/models/components/createtriggeraction.js +19 -0
  154. package/esm/models/components/createtriggeraction.js.map +1 -0
  155. package/esm/models/components/createwebhook.d.ts +62 -0
  156. package/esm/models/components/createwebhook.d.ts.map +1 -0
  157. package/esm/models/components/createwebhook.js +47 -0
  158. package/esm/models/components/createwebhook.js.map +1 -0
  159. package/esm/models/components/deploymentarchiveresponse.d.ts +20 -0
  160. package/esm/models/components/deploymentarchiveresponse.d.ts.map +1 -0
  161. package/esm/models/components/deploymentarchiveresponse.js +20 -0
  162. package/esm/models/components/deploymentarchiveresponse.js.map +1 -0
  163. package/esm/models/components/deploymentworkerspecinput.d.ts +15 -2
  164. package/esm/models/components/deploymentworkerspecinput.d.ts.map +1 -1
  165. package/esm/models/components/deploymentworkerspecinput.js +5 -1
  166. package/esm/models/components/deploymentworkerspecinput.js.map +1 -1
  167. package/esm/models/components/deploymentworkerspecresponse.d.ts +8 -0
  168. package/esm/models/components/deploymentworkerspecresponse.d.ts.map +1 -1
  169. package/esm/models/components/deploymentworkerspecresponse.js +4 -0
  170. package/esm/models/components/deploymentworkerspecresponse.js.map +1 -1
  171. package/esm/models/components/getlog.d.ts +1 -0
  172. package/esm/models/components/getlog.d.ts.map +1 -1
  173. package/esm/models/components/getlog.js +2 -0
  174. package/esm/models/components/getlog.js.map +1 -1
  175. package/esm/models/components/getspan.d.ts +1 -0
  176. package/esm/models/components/getspan.d.ts.map +1 -1
  177. package/esm/models/components/getspan.js +2 -0
  178. package/esm/models/components/getspan.js.map +1 -1
  179. package/esm/models/components/getspanevaluation.d.ts +1 -0
  180. package/esm/models/components/getspanevaluation.d.ts.map +1 -1
  181. package/esm/models/components/getspanevaluation.js +2 -0
  182. package/esm/models/components/getspanevaluation.js.map +1 -1
  183. package/esm/models/components/gettrace.d.ts +1 -0
  184. package/esm/models/components/gettrace.d.ts.map +1 -1
  185. package/esm/models/components/gettrace.js +2 -0
  186. package/esm/models/components/gettrace.js.map +1 -1
  187. package/esm/models/components/httpconnector.d.ts +5 -0
  188. package/esm/models/components/httpconnector.d.ts.map +1 -1
  189. package/esm/models/components/httpconnector.js +3 -0
  190. package/esm/models/components/httpconnector.js.map +1 -1
  191. package/esm/models/components/index.d.ts +33 -5
  192. package/esm/models/components/index.d.ts.map +1 -1
  193. package/esm/models/components/index.js +33 -5
  194. package/esm/models/components/index.js.map +1 -1
  195. package/esm/models/components/observabilityerrorcode.d.ts +1 -0
  196. package/esm/models/components/observabilityerrorcode.d.ts.map +1 -1
  197. package/esm/models/components/observabilityerrorcode.js +1 -0
  198. package/esm/models/components/observabilityerrorcode.js.map +1 -1
  199. package/esm/models/components/openapifilesource.d.ts +14 -0
  200. package/esm/models/components/openapifilesource.d.ts.map +1 -0
  201. package/esm/models/components/openapifilesource.js +14 -0
  202. package/esm/models/components/openapifilesource.js.map +1 -0
  203. package/esm/models/components/openapispecsource.d.ts +11 -0
  204. package/esm/models/components/openapispecsource.d.ts.map +1 -0
  205. package/esm/models/components/openapispecsource.js +16 -0
  206. package/esm/models/components/openapispecsource.js.map +1 -0
  207. package/esm/models/components/openapiurlsource.d.ts +14 -0
  208. package/esm/models/components/openapiurlsource.d.ts.map +1 -0
  209. package/esm/models/components/openapiurlsource.js +14 -0
  210. package/esm/models/components/openapiurlsource.js.map +1 -0
  211. package/esm/models/components/realtimespeecherror.d.ts +20 -0
  212. package/esm/models/components/realtimespeecherror.d.ts.map +1 -0
  213. package/esm/models/components/realtimespeecherror.js +23 -0
  214. package/esm/models/components/realtimespeecherror.js.map +1 -0
  215. package/esm/models/components/realtimespeecherrordetail.d.ts +45 -0
  216. package/esm/models/components/realtimespeecherrordetail.d.ts.map +1 -0
  217. package/esm/models/components/realtimespeecherrordetail.js +33 -0
  218. package/esm/models/components/realtimespeecherrordetail.js.map +1 -0
  219. package/esm/models/components/realtimespeechinputtextappend.d.ts +19 -0
  220. package/esm/models/components/realtimespeechinputtextappend.d.ts.map +1 -0
  221. package/esm/models/components/realtimespeechinputtextappend.js +22 -0
  222. package/esm/models/components/realtimespeechinputtextappend.js.map +1 -0
  223. package/esm/models/components/realtimespeechinputtextend.d.ts +17 -0
  224. package/esm/models/components/realtimespeechinputtextend.d.ts.map +1 -0
  225. package/esm/models/components/realtimespeechinputtextend.js +20 -0
  226. package/esm/models/components/realtimespeechinputtextend.js.map +1 -0
  227. package/esm/models/components/realtimespeechinputtextflush.d.ts +19 -0
  228. package/esm/models/components/realtimespeechinputtextflush.d.ts.map +1 -0
  229. package/esm/models/components/realtimespeechinputtextflush.js +22 -0
  230. package/esm/models/components/realtimespeechinputtextflush.js.map +1 -0
  231. package/esm/models/components/realtimespeechsession.d.ts +31 -0
  232. package/esm/models/components/realtimespeechsession.d.ts.map +1 -0
  233. package/esm/models/components/realtimespeechsession.js +49 -0
  234. package/esm/models/components/realtimespeechsession.js.map +1 -0
  235. package/esm/models/components/realtimespeechsessioncreated.d.ts +20 -0
  236. package/esm/models/components/realtimespeechsessioncreated.d.ts.map +1 -0
  237. package/esm/models/components/realtimespeechsessioncreated.js +23 -0
  238. package/esm/models/components/realtimespeechsessioncreated.js.map +1 -0
  239. package/esm/models/components/realtimespeechsessionupdated.d.ts +20 -0
  240. package/esm/models/components/realtimespeechsessionupdated.d.ts.map +1 -0
  241. package/esm/models/components/realtimespeechsessionupdated.js +23 -0
  242. package/esm/models/components/realtimespeechsessionupdated.js.map +1 -0
  243. package/esm/models/components/realtimespeechsessionupdatemessage.d.ts +20 -0
  244. package/esm/models/components/realtimespeechsessionupdatemessage.d.ts.map +1 -0
  245. package/esm/models/components/realtimespeechsessionupdatemessage.js +23 -0
  246. package/esm/models/components/realtimespeechsessionupdatemessage.js.map +1 -0
  247. package/esm/models/components/realtimespeechsessionupdatepayload.d.ts +42 -0
  248. package/esm/models/components/realtimespeechsessionupdatepayload.d.ts.map +1 -0
  249. package/esm/models/components/realtimespeechsessionupdatepayload.js +45 -0
  250. package/esm/models/components/realtimespeechsessionupdatepayload.js.map +1 -0
  251. package/esm/models/components/realtimespeechstreamingmode.d.ts +12 -0
  252. package/esm/models/components/realtimespeechstreamingmode.d.ts.map +1 -0
  253. package/esm/models/components/realtimespeechstreamingmode.js +13 -0
  254. package/esm/models/components/realtimespeechstreamingmode.js.map +1 -0
  255. package/esm/models/components/speechoutputformat.d.ts +2 -0
  256. package/esm/models/components/speechoutputformat.d.ts.map +1 -1
  257. package/esm/models/components/speechoutputformat.js +3 -1
  258. package/esm/models/components/speechoutputformat.js.map +1 -1
  259. package/esm/models/components/speechstreamaudiodelta.d.ts +8 -0
  260. package/esm/models/components/speechstreamaudiodelta.d.ts.map +1 -1
  261. package/esm/models/components/speechstreamaudiodelta.js +12 -0
  262. package/esm/models/components/speechstreamaudiodelta.js.map +1 -1
  263. package/esm/models/components/speechstreamdone.d.ts +10 -2
  264. package/esm/models/components/speechstreamdone.d.ts.map +1 -1
  265. package/esm/models/components/speechstreamdone.js +10 -2
  266. package/esm/models/components/speechstreamdone.js.map +1 -1
  267. package/esm/models/components/systemv2.d.ts +4 -0
  268. package/esm/models/components/systemv2.d.ts.map +1 -1
  269. package/esm/models/components/systemv2.js +2 -0
  270. package/esm/models/components/systemv2.js.map +1 -1
  271. package/esm/models/components/trigger.d.ts +24 -0
  272. package/esm/models/components/trigger.d.ts.map +1 -0
  273. package/esm/models/components/trigger.js +37 -0
  274. package/esm/models/components/trigger.js.map +1 -0
  275. package/esm/models/components/triggeraction.d.ts +12 -0
  276. package/esm/models/components/triggeraction.d.ts.map +1 -0
  277. package/esm/models/components/triggeraction.js +21 -0
  278. package/esm/models/components/triggeraction.js.map +1 -0
  279. package/esm/models/components/triggeractiontype.d.ts +14 -0
  280. package/esm/models/components/triggeractiontype.d.ts.map +1 -0
  281. package/esm/models/components/triggeractiontype.js +15 -0
  282. package/esm/models/components/triggeractiontype.js.map +1 -0
  283. package/esm/models/components/triggerevent.d.ts +19 -0
  284. package/esm/models/components/triggerevent.d.ts.map +1 -0
  285. package/esm/models/components/triggerevent.js +33 -0
  286. package/esm/models/components/triggerevent.js.map +1 -0
  287. package/esm/models/components/triggereventlist.d.ts +11 -0
  288. package/esm/models/components/triggereventlist.d.ts.map +1 -0
  289. package/esm/models/components/triggereventlist.js +14 -0
  290. package/esm/models/components/triggereventlist.js.map +1 -0
  291. package/esm/models/components/triggerhandler.d.ts +13 -0
  292. package/esm/models/components/triggerhandler.d.ts.map +1 -0
  293. package/esm/models/components/triggerhandler.js +14 -0
  294. package/esm/models/components/triggerhandler.js.map +1 -0
  295. package/esm/models/components/triggersownertype.d.ts +12 -0
  296. package/esm/models/components/triggersownertype.d.ts.map +1 -0
  297. package/esm/models/components/triggersownertype.js +13 -0
  298. package/esm/models/components/triggersownertype.js.map +1 -0
  299. package/esm/models/components/triggerstatusvalue.d.ts +12 -0
  300. package/esm/models/components/triggerstatusvalue.d.ts.map +1 -0
  301. package/esm/models/components/triggerstatusvalue.js +13 -0
  302. package/esm/models/components/triggerstatusvalue.js.map +1 -0
  303. package/esm/models/components/voicecreaterequest.d.ts +2 -3
  304. package/esm/models/components/voicecreaterequest.d.ts.map +1 -1
  305. package/esm/models/components/voicecreaterequest.js +2 -2
  306. package/esm/models/components/voicecreaterequest.js.map +1 -1
  307. package/esm/models/components/voiceupdaterequest.d.ts +2 -1
  308. package/esm/models/components/voiceupdaterequest.d.ts.map +1 -1
  309. package/esm/models/components/voiceupdaterequest.js +2 -1
  310. package/esm/models/components/voiceupdaterequest.js.map +1 -1
  311. package/esm/models/components/webhook.d.ts +35 -0
  312. package/esm/models/components/webhook.d.ts.map +1 -0
  313. package/esm/models/components/webhook.js +60 -0
  314. package/esm/models/components/webhook.js.map +1 -0
  315. package/esm/models/components/webhookprovider.d.ts +18 -0
  316. package/esm/models/components/webhookprovider.d.ts.map +1 -0
  317. package/esm/models/components/webhookprovider.js +19 -0
  318. package/esm/models/components/webhookprovider.js.map +1 -0
  319. package/esm/models/components/webhooksignatureencoding.d.ts +12 -0
  320. package/esm/models/components/webhooksignatureencoding.d.ts.map +1 -0
  321. package/esm/models/components/webhooksignatureencoding.js +13 -0
  322. package/esm/models/components/webhooksignatureencoding.js.map +1 -0
  323. package/esm/models/components/webhooksignaturehashalgorithm.d.ts +12 -0
  324. package/esm/models/components/webhooksignaturehashalgorithm.d.ts.map +1 -0
  325. package/esm/models/components/webhooksignaturehashalgorithm.js +13 -0
  326. package/esm/models/components/webhooksignaturehashalgorithm.js.map +1 -0
  327. package/esm/models/components/webhooksigningsecret.d.ts +13 -0
  328. package/esm/models/components/webhooksigningsecret.d.ts.map +1 -0
  329. package/esm/models/components/webhooksigningsecret.js +18 -0
  330. package/esm/models/components/webhooksigningsecret.js.map +1 -0
  331. package/esm/models/components/workflowsworkerspecupdate.d.ts +10 -0
  332. package/esm/models/components/workflowsworkerspecupdate.d.ts.map +1 -1
  333. package/esm/models/components/workflowsworkerspecupdate.js +4 -0
  334. package/esm/models/components/workflowsworkerspecupdate.js.map +1 -1
  335. package/esm/models/components/workflowtagsaddrequest.d.ts +15 -0
  336. package/esm/models/components/workflowtagsaddrequest.d.ts.map +1 -0
  337. package/esm/models/components/workflowtagsaddrequest.js +12 -0
  338. package/esm/models/components/workflowtagsaddrequest.js.map +1 -0
  339. package/esm/models/operations/addworkflowtagsv1workflowsworkflowidentifiertagspost.d.ts +15 -0
  340. package/esm/models/operations/addworkflowtagsv1workflowsworkflowidentifiertagspost.d.ts.map +1 -0
  341. package/esm/models/operations/addworkflowtagsv1workflowsworkflowidentifiertagspost.js +21 -0
  342. package/esm/models/operations/addworkflowtagsv1workflowsworkflowidentifiertagspost.js.map +1 -0
  343. package/esm/models/operations/deletetriggerv1triggerstriggeriddelete.d.ts +12 -0
  344. package/esm/models/operations/deletetriggerv1triggerstriggeriddelete.d.ts.map +1 -0
  345. package/esm/models/operations/deletetriggerv1triggerstriggeriddelete.js +17 -0
  346. package/esm/models/operations/deletetriggerv1triggerstriggeriddelete.js.map +1 -0
  347. package/esm/models/operations/deletewebhookv1webhookswebhookiddelete.d.ts +12 -0
  348. package/esm/models/operations/deletewebhookv1webhookswebhookiddelete.d.ts.map +1 -0
  349. package/esm/models/operations/deletewebhookv1webhookswebhookiddelete.js +17 -0
  350. package/esm/models/operations/deletewebhookv1webhookswebhookiddelete.js.map +1 -0
  351. package/esm/models/operations/getdeploymentarchivev1workflowsdeploymentsnamearchiveget.d.ts +12 -0
  352. package/esm/models/operations/getdeploymentarchivev1workflowsdeploymentsnamearchiveget.d.ts.map +1 -0
  353. package/esm/models/operations/getdeploymentarchivev1workflowsdeploymentsnamearchiveget.js +13 -0
  354. package/esm/models/operations/getdeploymentarchivev1workflowsdeploymentsnamearchiveget.js.map +1 -0
  355. package/esm/models/operations/gettriggerv1triggerstriggeridget.d.ts +12 -0
  356. package/esm/models/operations/gettriggerv1triggerstriggeridget.d.ts.map +1 -0
  357. package/esm/models/operations/gettriggerv1triggerstriggeridget.js +17 -0
  358. package/esm/models/operations/gettriggerv1triggerstriggeridget.js.map +1 -0
  359. package/esm/models/operations/getwebhooksigningsecretv1webhookswebhookidsigningsecretget.d.ts +12 -0
  360. package/esm/models/operations/getwebhooksigningsecretv1webhookswebhookidsigningsecretget.d.ts.map +1 -0
  361. package/esm/models/operations/getwebhooksigningsecretv1webhookswebhookidsigningsecretget.js +18 -0
  362. package/esm/models/operations/getwebhooksigningsecretv1webhookswebhookidsigningsecretget.js.map +1 -0
  363. package/esm/models/operations/getwebhookv1webhookswebhookidget.d.ts +12 -0
  364. package/esm/models/operations/getwebhookv1webhookswebhookidget.d.ts.map +1 -0
  365. package/esm/models/operations/getwebhookv1webhookswebhookidget.js +17 -0
  366. package/esm/models/operations/getwebhookv1webhookswebhookidget.js.map +1 -0
  367. package/esm/models/operations/index.d.ts +9 -0
  368. package/esm/models/operations/index.d.ts.map +1 -1
  369. package/esm/models/operations/index.js +9 -0
  370. package/esm/models/operations/index.js.map +1 -1
  371. package/esm/models/operations/listtriggereventsv1triggerstriggerideventsget.d.ts +17 -0
  372. package/esm/models/operations/listtriggereventsv1triggerstriggerideventsget.d.ts.map +1 -0
  373. package/esm/models/operations/listtriggereventsv1triggerstriggerideventsget.js +18 -0
  374. package/esm/models/operations/listtriggereventsv1triggerstriggerideventsget.js.map +1 -0
  375. package/esm/models/operations/listtriggersv1triggersget.d.ts +26 -0
  376. package/esm/models/operations/listtriggersv1triggersget.d.ts.map +1 -0
  377. package/esm/models/operations/listtriggersv1triggersget.js +21 -0
  378. package/esm/models/operations/listtriggersv1triggersget.js.map +1 -0
  379. package/esm/models/operations/skillslist.d.ts +3 -0
  380. package/esm/models/operations/skillslist.d.ts.map +1 -1
  381. package/esm/models/operations/skillslist.js.map +1 -1
  382. package/esm/sdk/beta.d.ts +9 -0
  383. package/esm/sdk/beta.d.ts.map +1 -1
  384. package/esm/sdk/beta.js +15 -0
  385. package/esm/sdk/beta.js.map +1 -1
  386. package/esm/sdk/context.d.ts +7 -0
  387. package/esm/sdk/context.d.ts.map +1 -0
  388. package/esm/sdk/context.js +12 -0
  389. package/esm/sdk/context.js.map +1 -0
  390. package/esm/sdk/{managedindexes.d.ts → contextsearchindexes.d.ts} +2 -2
  391. package/esm/sdk/contextsearchindexes.d.ts.map +1 -0
  392. package/esm/sdk/{managedindexes.js → contextsearchindexes.js} +32 -32
  393. package/esm/sdk/contextsearchindexes.js.map +1 -0
  394. package/esm/sdk/deployments.d.ts +10 -0
  395. package/esm/sdk/deployments.d.ts.map +1 -1
  396. package/esm/sdk/deployments.js +13 -0
  397. package/esm/sdk/deployments.js.map +1 -1
  398. package/esm/sdk/rag.d.ts +2 -5
  399. package/esm/sdk/rag.d.ts.map +1 -1
  400. package/esm/sdk/rag.js +2 -7
  401. package/esm/sdk/rag.js.map +1 -1
  402. package/esm/sdk/{searchindexes.d.ts → ragsearchindexes.d.ts} +2 -2
  403. package/esm/sdk/ragsearchindexes.d.ts.map +1 -0
  404. package/esm/sdk/{searchindexes.js → ragsearchindexes.js} +2 -2
  405. package/esm/sdk/ragsearchindexes.js.map +1 -0
  406. package/esm/sdk/triggers.d.ts +26 -0
  407. package/esm/sdk/triggers.d.ts.map +1 -0
  408. package/esm/sdk/triggers.js +43 -0
  409. package/esm/sdk/triggers.js.map +1 -0
  410. package/esm/sdk/webhooks.d.ts +26 -0
  411. package/esm/sdk/webhooks.d.ts.map +1 -0
  412. package/esm/sdk/webhooks.js +43 -0
  413. package/esm/sdk/webhooks.js.map +1 -0
  414. package/esm/sdk/workflows.d.ts +4 -0
  415. package/esm/sdk/workflows.d.ts.map +1 -1
  416. package/esm/sdk/workflows.js +7 -0
  417. package/esm/sdk/workflows.js.map +1 -1
  418. package/jsr.json +1 -1
  419. package/package.json +11 -11
  420. package/packages/mistralai-azure/examples/chatComplete.example.ts +0 -1
  421. package/packages/mistralai-azure/src/core.ts +0 -1
  422. package/packages/mistralai-azure/src/funcs/chatComplete.ts +1 -2
  423. package/packages/mistralai-azure/src/funcs/chatStream.ts +1 -2
  424. package/packages/mistralai-azure/src/funcs/ocrProcess.ts +1 -2
  425. package/packages/mistralai-azure/src/hooks/hooks.ts +0 -1
  426. package/packages/mistralai-azure/src/hooks/index.ts +0 -1
  427. package/packages/mistralai-azure/src/hooks/types.ts +1 -1
  428. package/packages/mistralai-azure/src/index.ts +0 -1
  429. package/packages/mistralai-azure/src/lib/base64.ts +0 -1
  430. package/packages/mistralai-azure/src/lib/config.ts +7 -8
  431. package/packages/mistralai-azure/src/lib/encodings.ts +59 -25
  432. package/packages/mistralai-azure/src/lib/env.ts +7 -4
  433. package/packages/mistralai-azure/src/lib/event-streams.ts +46 -21
  434. package/packages/mistralai-azure/src/lib/files.ts +0 -1
  435. package/packages/mistralai-azure/src/lib/http.ts +3 -2
  436. package/packages/mistralai-azure/src/lib/logger.ts +0 -1
  437. package/packages/mistralai-azure/src/lib/matchers.ts +1 -2
  438. package/packages/mistralai-azure/src/lib/primitives.ts +16 -1
  439. package/packages/mistralai-azure/src/lib/retries.ts +8 -1
  440. package/packages/mistralai-azure/src/lib/schemas.ts +0 -1
  441. package/packages/mistralai-azure/src/lib/sdks.ts +54 -18
  442. package/packages/mistralai-azure/src/lib/security.ts +10 -6
  443. package/packages/mistralai-azure/src/lib/url.ts +0 -1
  444. package/packages/mistralai-azure/src/models/components/apikeyauth.ts +0 -1
  445. package/packages/mistralai-azure/src/models/components/assistantmessage.ts +0 -1
  446. package/packages/mistralai-azure/src/models/components/builtinconnectors.ts +1 -1
  447. package/packages/mistralai-azure/src/models/components/chatcompletionchoice.ts +12 -1
  448. package/packages/mistralai-azure/src/models/components/chatcompletionrequest.ts +28 -40
  449. package/packages/mistralai-azure/src/models/components/chatcompletionresponse.ts +0 -1
  450. package/packages/mistralai-azure/src/models/components/chatcompletionresponsechoicelogprobs.ts +35 -0
  451. package/packages/mistralai-azure/src/models/components/chatcompletionresponsetokenlogprobs.ts +42 -0
  452. package/packages/mistralai-azure/src/models/components/chatcompletionresponsetokenlogprobstopk.ts +56 -0
  453. package/packages/mistralai-azure/src/models/components/chatcompletionstreamrequest.ts +28 -40
  454. package/packages/mistralai-azure/src/models/components/completionchunk.ts +0 -1
  455. package/packages/mistralai-azure/src/models/components/completionevent.ts +2 -2
  456. package/packages/mistralai-azure/src/models/components/completionresponsestreamchoice.ts +12 -1
  457. package/packages/mistralai-azure/src/models/components/contentchunk.ts +0 -1
  458. package/packages/mistralai-azure/src/models/components/customconnector.ts +5 -1
  459. package/packages/mistralai-azure/src/models/components/deltamessage.ts +0 -1
  460. package/packages/mistralai-azure/src/models/components/documentlibrarytool.ts +0 -1
  461. package/packages/mistralai-azure/src/models/components/documenturlchunk.ts +0 -1
  462. package/packages/mistralai-azure/src/models/components/filechunk.ts +0 -1
  463. package/packages/mistralai-azure/src/models/components/function.ts +0 -1
  464. package/packages/mistralai-azure/src/models/components/functioncall.ts +0 -1
  465. package/packages/mistralai-azure/src/models/components/functionname.ts +0 -1
  466. package/packages/mistralai-azure/src/models/components/guardrailconfig.ts +0 -1
  467. package/packages/mistralai-azure/src/models/components/imagedetail.ts +0 -1
  468. package/packages/mistralai-azure/src/models/components/imagegenerationtool.ts +0 -1
  469. package/packages/mistralai-azure/src/models/components/imageurl.ts +0 -1
  470. package/packages/mistralai-azure/src/models/components/imageurlchunk.ts +0 -1
  471. package/packages/mistralai-azure/src/models/components/index.ts +17 -4
  472. package/packages/mistralai-azure/src/models/components/jsonschema.ts +0 -1
  473. package/packages/mistralai-azure/src/models/components/mistralpromptmode.ts +0 -1
  474. package/packages/mistralai-azure/src/models/components/moderationllmaction.ts +0 -1
  475. package/packages/mistralai-azure/src/models/components/moderationllmv1categorythresholds.ts +0 -1
  476. package/packages/mistralai-azure/src/models/components/moderationllmv1config.ts +0 -1
  477. package/packages/mistralai-azure/src/models/components/moderationllmv2categorythresholds.ts +0 -1
  478. package/packages/mistralai-azure/src/models/components/moderationllmv2config.ts +0 -1
  479. package/packages/mistralai-azure/src/models/components/oauth2tokenauth.ts +0 -1
  480. package/packages/mistralai-azure/src/models/components/ocrasidetextblock.ts +62 -0
  481. package/packages/mistralai-azure/src/models/components/ocrblockconfidencescores.ts +59 -0
  482. package/packages/mistralai-azure/src/models/components/ocrcaptionblock.ts +62 -0
  483. package/packages/mistralai-azure/src/models/components/ocrcodeblock.ts +60 -0
  484. package/packages/mistralai-azure/src/models/components/ocrconfidencescore.ts +0 -1
  485. package/packages/mistralai-azure/src/models/components/ocrequationblock.ts +62 -0
  486. package/packages/mistralai-azure/src/models/components/ocrfooterblock.ts +60 -0
  487. package/packages/mistralai-azure/src/models/components/ocrheaderblock.ts +60 -0
  488. package/packages/mistralai-azure/src/models/components/ocrimageblock.ts +66 -0
  489. package/packages/mistralai-azure/src/models/components/ocrimageobject.ts +0 -1
  490. package/packages/mistralai-azure/src/models/components/ocrlistblock.ts +60 -0
  491. package/packages/mistralai-azure/src/models/components/ocrpageconfidencescores.ts +8 -5
  492. package/packages/mistralai-azure/src/models/components/ocrpagedimensions.ts +0 -1
  493. package/packages/mistralai-azure/src/models/components/ocrpageobject.ts +117 -1
  494. package/packages/mistralai-azure/src/models/components/ocrreferencesblock.ts +62 -0
  495. package/packages/mistralai-azure/src/models/components/ocrrequest.ts +15 -2
  496. package/packages/mistralai-azure/src/models/components/ocrresponse.ts +0 -1
  497. package/packages/mistralai-azure/src/models/components/ocrsignatureblock.ts +65 -0
  498. package/packages/mistralai-azure/src/models/components/ocrtableblock.ts +66 -0
  499. package/packages/mistralai-azure/src/models/components/ocrtableobject.ts +0 -1
  500. package/packages/mistralai-azure/src/models/components/ocrtextblock.ts +60 -0
  501. package/packages/mistralai-azure/src/models/components/ocrtitleblock.ts +60 -0
  502. package/packages/mistralai-azure/src/models/components/ocrusageinfo.ts +0 -1
  503. package/packages/mistralai-azure/src/models/components/prediction.ts +0 -1
  504. package/packages/mistralai-azure/src/models/components/reasoningeffort.ts +5 -1
  505. package/packages/mistralai-azure/src/models/components/referencechunk.ts +0 -1
  506. package/packages/mistralai-azure/src/models/components/responseformat.ts +0 -1
  507. package/packages/mistralai-azure/src/models/components/responseformats.ts +0 -1
  508. package/packages/mistralai-azure/src/models/components/security.ts +0 -1
  509. package/packages/mistralai-azure/src/models/components/systemmessage.ts +0 -1
  510. package/packages/mistralai-azure/src/models/components/systemmessagecontentchunks.ts +0 -1
  511. package/packages/mistralai-azure/src/models/components/textchunk.ts +0 -1
  512. package/packages/mistralai-azure/src/models/components/thinkchunk.ts +0 -1
  513. package/packages/mistralai-azure/src/models/components/tool.ts +0 -1
  514. package/packages/mistralai-azure/src/models/components/toolcall.ts +3 -4
  515. package/packages/mistralai-azure/src/models/components/toolchoice.ts +2 -3
  516. package/packages/mistralai-azure/src/models/components/toolchoiceenum.ts +0 -1
  517. package/packages/mistralai-azure/src/models/components/toolconfiguration.ts +0 -1
  518. package/packages/mistralai-azure/src/models/components/toolmessage.ts +0 -1
  519. package/packages/mistralai-azure/src/models/components/toolreferencechunk.ts +0 -1
  520. package/packages/mistralai-azure/src/models/components/usageinfo.ts +0 -1
  521. package/packages/mistralai-azure/src/models/components/usermessage.ts +0 -1
  522. package/packages/mistralai-azure/src/models/components/validationerror.ts +0 -1
  523. package/packages/mistralai-azure/src/models/errors/httpclienterrors.ts +0 -1
  524. package/packages/mistralai-azure/src/models/errors/httpvalidationerror.ts +0 -1
  525. package/packages/mistralai-azure/src/models/errors/index.ts +0 -1
  526. package/packages/mistralai-azure/src/models/errors/mistralazureerror.ts +0 -1
  527. package/packages/mistralai-azure/src/models/errors/responsevalidationerror.ts +0 -1
  528. package/packages/mistralai-azure/src/models/errors/sdkerror.ts +0 -1
  529. package/packages/mistralai-azure/src/models/errors/sdkvalidationerror.ts +0 -1
  530. package/packages/mistralai-azure/src/sdk/chat.ts +0 -1
  531. package/packages/mistralai-azure/src/sdk/index.ts +0 -1
  532. package/packages/mistralai-azure/src/sdk/ocr.ts +0 -1
  533. package/packages/mistralai-azure/src/types/async.ts +0 -1
  534. package/packages/mistralai-azure/src/types/blobs.ts +0 -1
  535. package/packages/mistralai-azure/src/types/constdatetime.ts +0 -1
  536. package/packages/mistralai-azure/src/types/discriminatedUnion.ts +0 -1
  537. package/packages/mistralai-azure/src/types/enums.ts +0 -1
  538. package/packages/mistralai-azure/src/types/fp.ts +0 -1
  539. package/packages/mistralai-azure/src/types/index.ts +0 -1
  540. package/packages/mistralai-azure/src/types/operations.ts +0 -1
  541. package/packages/mistralai-azure/src/types/rfcdate.ts +0 -1
  542. package/packages/mistralai-azure/src/types/smartUnion.ts +0 -1
  543. package/packages/mistralai-azure/src/types/streams.ts +0 -1
  544. package/packages/mistralai-azure/src/types/unrecognized.ts +0 -1
  545. package/packages/mistralai-gcp/examples/chatComplete.example.ts +0 -1
  546. package/packages/mistralai-gcp/src/core.ts +0 -1
  547. package/packages/mistralai-gcp/src/funcs/chatComplete.ts +1 -2
  548. package/packages/mistralai-gcp/src/funcs/chatStream.ts +1 -2
  549. package/packages/mistralai-gcp/src/funcs/fimComplete.ts +1 -2
  550. package/packages/mistralai-gcp/src/funcs/fimStream.ts +1 -2
  551. package/packages/mistralai-gcp/src/hooks/hooks.ts +0 -1
  552. package/packages/mistralai-gcp/src/hooks/index.ts +0 -1
  553. package/packages/mistralai-gcp/src/hooks/types.ts +1 -1
  554. package/packages/mistralai-gcp/src/index.ts +0 -1
  555. package/packages/mistralai-gcp/src/lib/base64.ts +0 -1
  556. package/packages/mistralai-gcp/src/lib/config.ts +7 -8
  557. package/packages/mistralai-gcp/src/lib/encodings.ts +59 -25
  558. package/packages/mistralai-gcp/src/lib/event-streams.ts +46 -21
  559. package/packages/mistralai-gcp/src/lib/files.ts +0 -1
  560. package/packages/mistralai-gcp/src/lib/http.ts +3 -2
  561. package/packages/mistralai-gcp/src/lib/logger.ts +0 -1
  562. package/packages/mistralai-gcp/src/lib/matchers.ts +1 -2
  563. package/packages/mistralai-gcp/src/lib/primitives.ts +16 -1
  564. package/packages/mistralai-gcp/src/lib/retries.ts +8 -1
  565. package/packages/mistralai-gcp/src/lib/schemas.ts +0 -1
  566. package/packages/mistralai-gcp/src/lib/sdks.ts +54 -18
  567. package/packages/mistralai-gcp/src/lib/security.ts +10 -6
  568. package/packages/mistralai-gcp/src/lib/url.ts +0 -1
  569. package/packages/mistralai-gcp/src/models/components/apikeyauth.ts +0 -1
  570. package/packages/mistralai-gcp/src/models/components/assistantmessage.ts +0 -1
  571. package/packages/mistralai-gcp/src/models/components/builtinconnectors.ts +1 -1
  572. package/packages/mistralai-gcp/src/models/components/chatcompletionchoice.ts +12 -1
  573. package/packages/mistralai-gcp/src/models/components/chatcompletionrequest.ts +28 -40
  574. package/packages/mistralai-gcp/src/models/components/chatcompletionresponse.ts +0 -1
  575. package/packages/mistralai-gcp/src/models/components/chatcompletionresponsechoicelogprobs.ts +35 -0
  576. package/packages/mistralai-gcp/src/models/components/chatcompletionresponsetokenlogprobs.ts +42 -0
  577. package/packages/mistralai-gcp/src/models/components/chatcompletionresponsetokenlogprobstopk.ts +56 -0
  578. package/packages/mistralai-gcp/src/models/components/chatcompletionstreamrequest.ts +28 -40
  579. package/packages/mistralai-gcp/src/models/components/completionchunk.ts +0 -1
  580. package/packages/mistralai-gcp/src/models/components/completionevent.ts +2 -2
  581. package/packages/mistralai-gcp/src/models/components/completionresponsestreamchoice.ts +12 -1
  582. package/packages/mistralai-gcp/src/models/components/contentchunk.ts +0 -1
  583. package/packages/mistralai-gcp/src/models/components/customconnector.ts +0 -1
  584. package/packages/mistralai-gcp/src/models/components/deltamessage.ts +0 -1
  585. package/packages/mistralai-gcp/src/models/components/documentlibrarytool.ts +0 -1
  586. package/packages/mistralai-gcp/src/models/components/fimcompletionrequest.ts +0 -1
  587. package/packages/mistralai-gcp/src/models/components/fimcompletionresponse.ts +0 -1
  588. package/packages/mistralai-gcp/src/models/components/fimcompletionstreamrequest.ts +0 -1
  589. package/packages/mistralai-gcp/src/models/components/function.ts +0 -1
  590. package/packages/mistralai-gcp/src/models/components/functioncall.ts +0 -1
  591. package/packages/mistralai-gcp/src/models/components/functionname.ts +0 -1
  592. package/packages/mistralai-gcp/src/models/components/guardrailconfig.ts +0 -1
  593. package/packages/mistralai-gcp/src/models/components/imagedetail.ts +0 -1
  594. package/packages/mistralai-gcp/src/models/components/imagegenerationtool.ts +0 -1
  595. package/packages/mistralai-gcp/src/models/components/imageurl.ts +0 -1
  596. package/packages/mistralai-gcp/src/models/components/imageurlchunk.ts +0 -1
  597. package/packages/mistralai-gcp/src/models/components/index.ts +3 -4
  598. package/packages/mistralai-gcp/src/models/components/jsonschema.ts +0 -1
  599. package/packages/mistralai-gcp/src/models/components/mistralpromptmode.ts +0 -1
  600. package/packages/mistralai-gcp/src/models/components/moderationllmaction.ts +0 -1
  601. package/packages/mistralai-gcp/src/models/components/moderationllmv1categorythresholds.ts +0 -1
  602. package/packages/mistralai-gcp/src/models/components/moderationllmv1config.ts +0 -1
  603. package/packages/mistralai-gcp/src/models/components/moderationllmv2categorythresholds.ts +0 -1
  604. package/packages/mistralai-gcp/src/models/components/moderationllmv2config.ts +0 -1
  605. package/packages/mistralai-gcp/src/models/components/oauth2tokenauth.ts +0 -1
  606. package/packages/mistralai-gcp/src/models/components/prediction.ts +0 -1
  607. package/packages/mistralai-gcp/src/models/components/reasoningeffort.ts +5 -1
  608. package/packages/mistralai-gcp/src/models/components/referencechunk.ts +0 -1
  609. package/packages/mistralai-gcp/src/models/components/responseformat.ts +0 -1
  610. package/packages/mistralai-gcp/src/models/components/responseformats.ts +0 -1
  611. package/packages/mistralai-gcp/src/models/components/security.ts +0 -1
  612. package/packages/mistralai-gcp/src/models/components/systemmessage.ts +0 -1
  613. package/packages/mistralai-gcp/src/models/components/systemmessagecontentchunks.ts +0 -1
  614. package/packages/mistralai-gcp/src/models/components/textchunk.ts +0 -1
  615. package/packages/mistralai-gcp/src/models/components/thinkchunk.ts +0 -1
  616. package/packages/mistralai-gcp/src/models/components/tool.ts +0 -1
  617. package/packages/mistralai-gcp/src/models/components/toolcall.ts +3 -4
  618. package/packages/mistralai-gcp/src/models/components/toolchoice.ts +2 -3
  619. package/packages/mistralai-gcp/src/models/components/toolchoiceenum.ts +0 -1
  620. package/packages/mistralai-gcp/src/models/components/toolconfiguration.ts +0 -1
  621. package/packages/mistralai-gcp/src/models/components/toolmessage.ts +0 -1
  622. package/packages/mistralai-gcp/src/models/components/toolreferencechunk.ts +0 -1
  623. package/packages/mistralai-gcp/src/models/components/usageinfo.ts +0 -1
  624. package/packages/mistralai-gcp/src/models/components/usermessage.ts +0 -1
  625. package/packages/mistralai-gcp/src/models/components/validationerror.ts +0 -1
  626. package/packages/mistralai-gcp/src/models/errors/httpclienterrors.ts +0 -1
  627. package/packages/mistralai-gcp/src/models/errors/httpvalidationerror.ts +0 -1
  628. package/packages/mistralai-gcp/src/models/errors/index.ts +0 -1
  629. package/packages/mistralai-gcp/src/models/errors/mistralgcperror.ts +0 -1
  630. package/packages/mistralai-gcp/src/models/errors/responsevalidationerror.ts +0 -1
  631. package/packages/mistralai-gcp/src/models/errors/sdkerror.ts +0 -1
  632. package/packages/mistralai-gcp/src/models/errors/sdkvalidationerror.ts +0 -1
  633. package/packages/mistralai-gcp/src/sdk/chat.ts +0 -1
  634. package/packages/mistralai-gcp/src/sdk/fim.ts +0 -1
  635. package/packages/mistralai-gcp/src/sdk/index.ts +0 -1
  636. package/packages/mistralai-gcp/src/types/async.ts +0 -1
  637. package/packages/mistralai-gcp/src/types/blobs.ts +0 -1
  638. package/packages/mistralai-gcp/src/types/constdatetime.ts +0 -1
  639. package/packages/mistralai-gcp/src/types/discriminatedUnion.ts +0 -1
  640. package/packages/mistralai-gcp/src/types/enums.ts +0 -1
  641. package/packages/mistralai-gcp/src/types/fp.ts +0 -1
  642. package/packages/mistralai-gcp/src/types/index.ts +0 -1
  643. package/packages/mistralai-gcp/src/types/operations.ts +0 -1
  644. package/packages/mistralai-gcp/src/types/rfcdate.ts +0 -1
  645. package/packages/mistralai-gcp/src/types/smartUnion.ts +0 -1
  646. package/packages/mistralai-gcp/src/types/streams.ts +0 -1
  647. package/packages/mistralai-gcp/src/types/unrecognized.ts +0 -1
  648. package/src/extra/realtime/connection.ts +88 -13
  649. package/src/extra/realtime/errors.ts +32 -0
  650. package/src/extra/realtime/index.ts +42 -1
  651. package/src/extra/realtime/speech.ts +646 -0
  652. package/src/extra/realtime/transcription.ts +22 -9
  653. package/src/extra/workflows/encoding/payload-encoder.ts +2 -1
  654. package/src/extra/workflows/encoding/python-json.ts +34 -8
  655. package/src/funcs/{betaRagManagedIndexesCreate.ts → betaContextSearchIndexesCreate.ts} +2 -2
  656. package/src/funcs/{betaRagManagedIndexesDelete.ts → betaContextSearchIndexesDelete.ts} +1 -1
  657. package/src/funcs/{betaRagManagedIndexesDeleteDocuments.ts → betaContextSearchIndexesDeleteDocuments.ts} +1 -1
  658. package/src/funcs/{betaRagManagedIndexesGenerateIndexSummary.ts → betaContextSearchIndexesGenerateIndexSummary.ts} +1 -1
  659. package/src/funcs/{betaRagManagedIndexesGet.ts → betaContextSearchIndexesGet.ts} +1 -1
  660. package/src/funcs/{betaRagManagedIndexesGetChunk.ts → betaContextSearchIndexesGetChunk.ts} +1 -1
  661. package/src/funcs/{betaRagManagedIndexesGetIndexSummary.ts → betaContextSearchIndexesGetIndexSummary.ts} +1 -1
  662. package/src/funcs/{betaRagManagedIndexesGrep.ts → betaContextSearchIndexesGrep.ts} +1 -1
  663. package/src/funcs/{betaRagManagedIndexesIngestDocuments.ts → betaContextSearchIndexesIngestDocuments.ts} +1 -1
  664. package/src/funcs/{betaRagManagedIndexesList.ts → betaContextSearchIndexesList.ts} +2 -2
  665. package/src/funcs/{betaRagManagedIndexesNavigate.ts → betaContextSearchIndexesNavigate.ts} +1 -1
  666. package/src/funcs/{betaRagManagedIndexesRead.ts → betaContextSearchIndexesRead.ts} +1 -1
  667. package/src/funcs/{betaRagManagedIndexesSearch.ts → betaContextSearchIndexesSearch.ts} +1 -1
  668. package/src/funcs/{betaRagManagedIndexesSetIndexSummary.ts → betaContextSearchIndexesSetIndexSummary.ts} +1 -1
  669. package/src/funcs/{betaRagManagedIndexesUpdate.ts → betaContextSearchIndexesUpdate.ts} +1 -1
  670. package/src/funcs/betaTriggersCreate.ts +168 -0
  671. package/src/funcs/betaTriggersDelete.ts +176 -0
  672. package/src/funcs/betaTriggersGet.ts +177 -0
  673. package/src/funcs/betaTriggersList.ts +178 -0
  674. package/src/funcs/betaTriggersListEvents.ts +182 -0
  675. package/src/funcs/betaWebhooksCreate.ts +168 -0
  676. package/src/funcs/betaWebhooksDelete.ts +176 -0
  677. package/src/funcs/betaWebhooksGet.ts +177 -0
  678. package/src/funcs/betaWebhooksGetSigningSecret.ts +182 -0
  679. package/src/funcs/betaWebhooksList.ts +142 -0
  680. package/src/funcs/workflowsAddWorkflowTags.ts +186 -0
  681. package/src/funcs/workflowsDeploymentsGetDeploymentArchive.ts +188 -0
  682. package/src/lib/config.ts +2 -2
  683. package/src/models/components/connectionpreference.ts +15 -5
  684. package/src/models/components/connectoropenapispec.ts +37 -0
  685. package/src/models/components/createtrigger.ts +69 -0
  686. package/src/models/components/createtriggeraction.ts +45 -0
  687. package/src/models/components/createwebhook.ts +121 -0
  688. package/src/models/components/deploymentarchiveresponse.ts +47 -0
  689. package/src/models/components/deploymentworkerspecinput.ts +20 -3
  690. package/src/models/components/deploymentworkerspecresponse.ts +12 -0
  691. package/src/models/components/getlog.ts +3 -0
  692. package/src/models/components/getspan.ts +3 -0
  693. package/src/models/components/getspanevaluation.ts +3 -0
  694. package/src/models/components/gettrace.ts +3 -0
  695. package/src/models/components/httpconnector.ts +10 -0
  696. package/src/models/components/index.ts +33 -5
  697. package/src/models/components/observabilityerrorcode.ts +2 -0
  698. package/src/models/components/openapifilesource.ts +35 -0
  699. package/src/models/components/openapispecsource.ts +42 -0
  700. package/src/models/components/openapiurlsource.ts +35 -0
  701. package/src/models/components/realtimespeecherror.ts +59 -0
  702. package/src/models/components/realtimespeecherrordetail.ts +100 -0
  703. package/src/models/components/realtimespeechinputtextappend.ts +55 -0
  704. package/src/models/components/realtimespeechinputtextend.ts +49 -0
  705. package/src/models/components/realtimespeechinputtextflush.ts +55 -0
  706. package/src/models/components/realtimespeechsession.ts +98 -0
  707. package/src/models/components/realtimespeechsessioncreated.ts +61 -0
  708. package/src/models/components/realtimespeechsessionupdated.ts +61 -0
  709. package/src/models/components/realtimespeechsessionupdatemessage.ts +62 -0
  710. package/src/models/components/realtimespeechsessionupdatepayload.ts +108 -0
  711. package/src/models/components/realtimespeechstreamingmode.ts +23 -0
  712. package/src/models/components/speechoutputformat.ts +5 -1
  713. package/src/models/components/speechstreamaudiodelta.ts +25 -0
  714. package/src/models/components/speechstreamdone.ts +28 -5
  715. package/src/models/components/systemv2.ts +4 -0
  716. package/src/models/components/trigger.ts +67 -0
  717. package/src/models/components/triggeraction.ts +39 -0
  718. package/src/models/components/triggeractiontype.ts +26 -0
  719. package/src/models/components/triggerevent.ts +62 -0
  720. package/src/models/components/triggereventlist.ts +31 -0
  721. package/src/models/components/triggerhandler.ts +21 -0
  722. package/src/models/components/triggersownertype.ts +24 -0
  723. package/src/models/components/triggerstatusvalue.ts +21 -0
  724. package/src/models/components/voicecreaterequest.ts +3 -5
  725. package/src/models/components/voiceupdaterequest.ts +3 -2
  726. package/src/models/components/webhook.ts +111 -0
  727. package/src/models/components/webhookprovider.ts +30 -0
  728. package/src/models/components/webhooksignatureencoding.ts +26 -0
  729. package/src/models/components/webhooksignaturehashalgorithm.ts +26 -0
  730. package/src/models/components/webhooksigningsecret.ts +38 -0
  731. package/src/models/components/workflowsworkerspecupdate.ts +14 -0
  732. package/src/models/components/workflowtagsaddrequest.ts +33 -0
  733. package/src/models/operations/addworkflowtagsv1workflowsworkflowidentifiertagspost.ts +44 -0
  734. package/src/models/operations/deletetriggerv1triggerstriggeriddelete.ts +39 -0
  735. package/src/models/operations/deletewebhookv1webhookswebhookiddelete.ts +39 -0
  736. package/src/models/operations/getdeploymentarchivev1workflowsdeploymentsnamearchiveget.ts +34 -0
  737. package/src/models/operations/gettriggerv1triggerstriggeridget.ts +38 -0
  738. package/src/models/operations/getwebhooksigningsecretv1webhookswebhookidsigningsecretget.ts +40 -0
  739. package/src/models/operations/getwebhookv1webhookswebhookidget.ts +38 -0
  740. package/src/models/operations/index.ts +9 -0
  741. package/src/models/operations/listtriggereventsv1triggerstriggerideventsget.ts +45 -0
  742. package/src/models/operations/listtriggersv1triggersget.ts +54 -0
  743. package/src/models/operations/skillslist.ts +3 -0
  744. package/src/sdk/beta.ts +18 -0
  745. package/src/sdk/context.ts +13 -0
  746. package/src/sdk/{managedindexes.ts → contextsearchindexes.ts} +31 -31
  747. package/src/sdk/deployments.ts +22 -0
  748. package/src/sdk/rag.ts +4 -10
  749. package/src/sdk/{searchindexes.ts → ragsearchindexes.ts} +1 -1
  750. package/src/sdk/triggers.ts +85 -0
  751. package/src/sdk/webhooks.ts +84 -0
  752. package/src/sdk/workflows.ts +16 -0
  753. package/tests/extra/realtime-speech-ws.test.ts +193 -0
  754. package/tests/extra/realtime-speech.test.ts +532 -0
  755. package/tests/extra/realtime.test.ts +217 -0
  756. package/tests/extra/workflow-encryption.test.ts +2 -2
  757. package/tests/hooks/workflow-encoding.test.ts +1 -1
  758. package/esm/funcs/betaRagManagedIndexesCreate.d.ts.map +0 -1
  759. package/esm/funcs/betaRagManagedIndexesCreate.js.map +0 -1
  760. package/esm/funcs/betaRagManagedIndexesDelete.js.map +0 -1
  761. package/esm/funcs/betaRagManagedIndexesDeleteDocuments.d.ts.map +0 -1
  762. package/esm/funcs/betaRagManagedIndexesDeleteDocuments.js.map +0 -1
  763. package/esm/funcs/betaRagManagedIndexesGenerateIndexSummary.d.ts.map +0 -1
  764. package/esm/funcs/betaRagManagedIndexesGenerateIndexSummary.js.map +0 -1
  765. package/esm/funcs/betaRagManagedIndexesGet.d.ts.map +0 -1
  766. package/esm/funcs/betaRagManagedIndexesGet.js.map +0 -1
  767. package/esm/funcs/betaRagManagedIndexesGetChunk.d.ts.map +0 -1
  768. package/esm/funcs/betaRagManagedIndexesGetChunk.js.map +0 -1
  769. package/esm/funcs/betaRagManagedIndexesGetIndexSummary.d.ts.map +0 -1
  770. package/esm/funcs/betaRagManagedIndexesGetIndexSummary.js.map +0 -1
  771. package/esm/funcs/betaRagManagedIndexesGrep.d.ts.map +0 -1
  772. package/esm/funcs/betaRagManagedIndexesGrep.js.map +0 -1
  773. package/esm/funcs/betaRagManagedIndexesIngestDocuments.d.ts.map +0 -1
  774. package/esm/funcs/betaRagManagedIndexesIngestDocuments.js.map +0 -1
  775. package/esm/funcs/betaRagManagedIndexesList.d.ts.map +0 -1
  776. package/esm/funcs/betaRagManagedIndexesList.js.map +0 -1
  777. package/esm/funcs/betaRagManagedIndexesNavigate.d.ts.map +0 -1
  778. package/esm/funcs/betaRagManagedIndexesNavigate.js.map +0 -1
  779. package/esm/funcs/betaRagManagedIndexesRead.d.ts.map +0 -1
  780. package/esm/funcs/betaRagManagedIndexesRead.js.map +0 -1
  781. package/esm/funcs/betaRagManagedIndexesSearch.d.ts.map +0 -1
  782. package/esm/funcs/betaRagManagedIndexesSearch.js.map +0 -1
  783. package/esm/funcs/betaRagManagedIndexesSetIndexSummary.d.ts.map +0 -1
  784. package/esm/funcs/betaRagManagedIndexesSetIndexSummary.js.map +0 -1
  785. package/esm/funcs/betaRagManagedIndexesUpdate.d.ts.map +0 -1
  786. package/esm/funcs/betaRagManagedIndexesUpdate.js.map +0 -1
  787. package/esm/models/components/completiontokensdetails.d.ts +0 -19
  788. package/esm/models/components/completiontokensdetails.d.ts.map +0 -1
  789. package/esm/models/components/completiontokensdetails.js +0 -18
  790. package/esm/models/components/completiontokensdetails.js.map +0 -1
  791. package/esm/models/components/messagetokens.d.ts +0 -18
  792. package/esm/models/components/messagetokens.d.ts.map +0 -1
  793. package/esm/models/components/messagetokens.js +0 -26
  794. package/esm/models/components/messagetokens.js.map +0 -1
  795. package/esm/models/components/prompttokensdetails.d.ts +0 -16
  796. package/esm/models/components/prompttokensdetails.d.ts.map +0 -1
  797. package/esm/models/components/prompttokensdetails.js +0 -22
  798. package/esm/models/components/prompttokensdetails.js.map +0 -1
  799. package/esm/models/components/roles.d.ts +0 -12
  800. package/esm/models/components/roles.d.ts.map +0 -1
  801. package/esm/models/components/roles.js +0 -14
  802. package/esm/models/components/roles.js.map +0 -1
  803. package/esm/models/components/usageinfodollardefs.d.ts +0 -24
  804. package/esm/models/components/usageinfodollardefs.d.ts.map +0 -1
  805. package/esm/models/components/usageinfodollardefs.js +0 -41
  806. package/esm/models/components/usageinfodollardefs.js.map +0 -1
  807. package/esm/sdk/managedindexes.d.ts.map +0 -1
  808. package/esm/sdk/managedindexes.js.map +0 -1
  809. package/esm/sdk/searchindexes.d.ts.map +0 -1
  810. package/esm/sdk/searchindexes.js.map +0 -1
  811. package/packages/mistralai-azure/src/lib/dlv.ts +0 -54
  812. package/packages/mistralai-azure/src/lib/is-plain-object.ts +0 -44
  813. package/packages/mistralai-azure/src/models/components/codeinterpretertool.ts +0 -44
  814. package/packages/mistralai-azure/src/models/components/websearchpremiumtool.ts +0 -44
  815. package/packages/mistralai-azure/src/models/components/websearchtool.ts +0 -40
  816. package/packages/mistralai-gcp/src/lib/dlv.ts +0 -54
  817. package/packages/mistralai-gcp/src/lib/is-plain-object.ts +0 -44
  818. package/packages/mistralai-gcp/src/models/components/codeinterpretertool.ts +0 -44
  819. package/packages/mistralai-gcp/src/models/components/websearchpremiumtool.ts +0 -44
  820. package/packages/mistralai-gcp/src/models/components/websearchtool.ts +0 -40
  821. package/src/models/components/completiontokensdetails.ts +0 -44
  822. package/src/models/components/messagetokens.ts +0 -47
  823. package/src/models/components/prompttokensdetails.ts +0 -44
  824. package/src/models/components/roles.ts +0 -19
  825. package/src/models/components/usageinfodollardefs.ts +0 -76
@@ -0,0 +1,186 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { MistralCore } from "../core.js";
7
+ import { encodeJSON, encodeSimple } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
9
+ import * as M from "../lib/matchers.js";
10
+ import { compactMap } from "../lib/primitives.js";
11
+ import { safeParse } from "../lib/schemas.js";
12
+ import { RequestOptions } from "../lib/sdks.js";
13
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
14
+ import { pathToFunc } from "../lib/url.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/httpclienterrors.js";
22
+ import * as errors from "../models/errors/index.js";
23
+ import { MistralError } from "../models/errors/mistralerror.js";
24
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
25
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
26
+ import * as operations from "../models/operations/index.js";
27
+ import { APICall, APIPromise } from "../types/async.js";
28
+ import { Result } from "../types/fp.js";
29
+
30
+ /**
31
+ * Add Workflow Tags
32
+ */
33
+ export function workflowsAddWorkflowTags(
34
+ client: MistralCore,
35
+ request:
36
+ operations.AddWorkflowTagsV1WorkflowsWorkflowIdentifierTagsPostRequest,
37
+ options?: RequestOptions,
38
+ ): APIPromise<
39
+ Result<
40
+ void,
41
+ | errors.HTTPValidationError
42
+ | MistralError
43
+ | ResponseValidationError
44
+ | ConnectionError
45
+ | RequestAbortedError
46
+ | RequestTimeoutError
47
+ | InvalidRequestError
48
+ | UnexpectedClientError
49
+ | SDKValidationError
50
+ >
51
+ > {
52
+ return new APIPromise($do(
53
+ client,
54
+ request,
55
+ options,
56
+ ));
57
+ }
58
+
59
+ async function $do(
60
+ client: MistralCore,
61
+ request:
62
+ operations.AddWorkflowTagsV1WorkflowsWorkflowIdentifierTagsPostRequest,
63
+ options?: RequestOptions,
64
+ ): Promise<
65
+ [
66
+ Result<
67
+ void,
68
+ | errors.HTTPValidationError
69
+ | MistralError
70
+ | ResponseValidationError
71
+ | ConnectionError
72
+ | RequestAbortedError
73
+ | RequestTimeoutError
74
+ | InvalidRequestError
75
+ | UnexpectedClientError
76
+ | SDKValidationError
77
+ >,
78
+ APICall,
79
+ ]
80
+ > {
81
+ const parsed = safeParse(
82
+ request,
83
+ (value) =>
84
+ operations
85
+ .AddWorkflowTagsV1WorkflowsWorkflowIdentifierTagsPostRequest$outboundSchema
86
+ .parse(value),
87
+ "Input validation failed",
88
+ );
89
+ if (!parsed.ok) {
90
+ return [parsed, { status: "invalid" }];
91
+ }
92
+ const payload = parsed.value;
93
+ const body = encodeJSON("body", payload.WorkflowTagsAddRequest, {
94
+ explode: true,
95
+ });
96
+
97
+ const pathParams = {
98
+ workflow_identifier: encodeSimple(
99
+ "workflow_identifier",
100
+ payload.workflow_identifier,
101
+ { explode: false, charEncoding: "percent" },
102
+ ),
103
+ };
104
+ const path = pathToFunc("/v1/workflows/{workflow_identifier}/tags")(
105
+ pathParams,
106
+ );
107
+
108
+ const headers = new Headers(compactMap({
109
+ "Content-Type": "application/json",
110
+ Accept: "application/json",
111
+ }));
112
+
113
+ const secConfig = await extractSecurity(client._options.apiKey);
114
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
115
+ const requestSecurity = resolveGlobalSecurity(securityInput);
116
+
117
+ const context = {
118
+ options: client._options,
119
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
120
+ operationID:
121
+ "add_workflow_tags_v1_workflows__workflow_identifier__tags_post",
122
+ oAuth2Scopes: null,
123
+
124
+ resolvedSecurity: requestSecurity,
125
+
126
+ securitySource: client._options.apiKey,
127
+ retryConfig: options?.retries
128
+ || client._options.retryConfig
129
+ || { strategy: "none" },
130
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
131
+ };
132
+
133
+ const requestRes = client._createRequest(context, {
134
+ security: requestSecurity,
135
+ method: "POST",
136
+ baseURL: options?.serverURL,
137
+ path: path,
138
+ headers: headers,
139
+ body: body,
140
+ userAgent: client._options.userAgent,
141
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 300000,
142
+ }, options);
143
+ if (!requestRes.ok) {
144
+ return [requestRes, { status: "invalid" }];
145
+ }
146
+ const req = requestRes.value;
147
+
148
+ const doResult = await client._do(req, {
149
+ context,
150
+ isErrorStatusCode: (statusCode: number) =>
151
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
152
+ retryConfig: context.retryConfig,
153
+ retryCodes: context.retryCodes,
154
+ });
155
+ if (!doResult.ok) {
156
+ return [doResult, { status: "request-error", request: req }];
157
+ }
158
+ const response = doResult.value;
159
+
160
+ const responseFields = {
161
+ HttpMeta: { Response: response, Request: req },
162
+ };
163
+
164
+ const [result] = await M.match<
165
+ void,
166
+ | errors.HTTPValidationError
167
+ | MistralError
168
+ | ResponseValidationError
169
+ | ConnectionError
170
+ | RequestAbortedError
171
+ | RequestTimeoutError
172
+ | InvalidRequestError
173
+ | UnexpectedClientError
174
+ | SDKValidationError
175
+ >(
176
+ M.nil(204, z.void()),
177
+ M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
178
+ M.fail("4XX"),
179
+ M.fail("5XX"),
180
+ )(response, req, { extraFields: responseFields });
181
+ if (!result.ok) {
182
+ return [result, { status: "complete", request: req, response }];
183
+ }
184
+
185
+ return [result, { status: "complete", request: req, response }];
186
+ }
@@ -0,0 +1,188 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { MistralCore } from "../core.js";
6
+ import { encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import * as components from "../models/components/index.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/httpclienterrors.js";
22
+ import * as errors from "../models/errors/index.js";
23
+ import { MistralError } from "../models/errors/mistralerror.js";
24
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
25
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
26
+ import * as operations from "../models/operations/index.js";
27
+ import { APICall, APIPromise } from "../types/async.js";
28
+ import { Result } from "../types/fp.js";
29
+
30
+ /**
31
+ * Get Deployment Archive
32
+ *
33
+ * @remarks
34
+ * Get the archive a managed deployment builds from, with a signed URL to download it.
35
+ *
36
+ * `download_url` expires within 24 hours, and is null once Mistral Cloud has deleted the archive.
37
+ * A deployment that builds from a repository answers 404.
38
+ */
39
+ export function workflowsDeploymentsGetDeploymentArchive(
40
+ client: MistralCore,
41
+ request:
42
+ operations.GetDeploymentArchiveV1WorkflowsDeploymentsNameArchiveGetRequest,
43
+ options?: RequestOptions,
44
+ ): APIPromise<
45
+ Result<
46
+ components.DeploymentArchiveResponse,
47
+ | errors.HTTPValidationError
48
+ | MistralError
49
+ | ResponseValidationError
50
+ | ConnectionError
51
+ | RequestAbortedError
52
+ | RequestTimeoutError
53
+ | InvalidRequestError
54
+ | UnexpectedClientError
55
+ | SDKValidationError
56
+ >
57
+ > {
58
+ return new APIPromise($do(
59
+ client,
60
+ request,
61
+ options,
62
+ ));
63
+ }
64
+
65
+ async function $do(
66
+ client: MistralCore,
67
+ request:
68
+ operations.GetDeploymentArchiveV1WorkflowsDeploymentsNameArchiveGetRequest,
69
+ options?: RequestOptions,
70
+ ): Promise<
71
+ [
72
+ Result<
73
+ components.DeploymentArchiveResponse,
74
+ | errors.HTTPValidationError
75
+ | MistralError
76
+ | ResponseValidationError
77
+ | ConnectionError
78
+ | RequestAbortedError
79
+ | RequestTimeoutError
80
+ | InvalidRequestError
81
+ | UnexpectedClientError
82
+ | SDKValidationError
83
+ >,
84
+ APICall,
85
+ ]
86
+ > {
87
+ const parsed = safeParse(
88
+ request,
89
+ (value) =>
90
+ operations
91
+ .GetDeploymentArchiveV1WorkflowsDeploymentsNameArchiveGetRequest$outboundSchema
92
+ .parse(value),
93
+ "Input validation failed",
94
+ );
95
+ if (!parsed.ok) {
96
+ return [parsed, { status: "invalid" }];
97
+ }
98
+ const payload = parsed.value;
99
+ const body = null;
100
+
101
+ const pathParams = {
102
+ name: encodeSimple("name", payload.name, {
103
+ explode: false,
104
+ charEncoding: "percent",
105
+ }),
106
+ };
107
+ const path = pathToFunc("/v1/workflows/deployments/{name}/archive")(
108
+ pathParams,
109
+ );
110
+
111
+ const headers = new Headers(compactMap({
112
+ Accept: "application/json",
113
+ }));
114
+
115
+ const secConfig = await extractSecurity(client._options.apiKey);
116
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
117
+ const requestSecurity = resolveGlobalSecurity(securityInput);
118
+
119
+ const context = {
120
+ options: client._options,
121
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
122
+ operationID:
123
+ "get_deployment_archive_v1_workflows_deployments__name__archive_get",
124
+ oAuth2Scopes: null,
125
+
126
+ resolvedSecurity: requestSecurity,
127
+
128
+ securitySource: client._options.apiKey,
129
+ retryConfig: options?.retries
130
+ || client._options.retryConfig
131
+ || { strategy: "none" },
132
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
133
+ };
134
+
135
+ const requestRes = client._createRequest(context, {
136
+ security: requestSecurity,
137
+ method: "GET",
138
+ baseURL: options?.serverURL,
139
+ path: path,
140
+ headers: headers,
141
+ body: body,
142
+ userAgent: client._options.userAgent,
143
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 300000,
144
+ }, options);
145
+ if (!requestRes.ok) {
146
+ return [requestRes, { status: "invalid" }];
147
+ }
148
+ const req = requestRes.value;
149
+
150
+ const doResult = await client._do(req, {
151
+ context,
152
+ isErrorStatusCode: (statusCode: number) =>
153
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
154
+ retryConfig: context.retryConfig,
155
+ retryCodes: context.retryCodes,
156
+ });
157
+ if (!doResult.ok) {
158
+ return [doResult, { status: "request-error", request: req }];
159
+ }
160
+ const response = doResult.value;
161
+
162
+ const responseFields = {
163
+ HttpMeta: { Response: response, Request: req },
164
+ };
165
+
166
+ const [result] = await M.match<
167
+ components.DeploymentArchiveResponse,
168
+ | errors.HTTPValidationError
169
+ | MistralError
170
+ | ResponseValidationError
171
+ | ConnectionError
172
+ | RequestAbortedError
173
+ | RequestTimeoutError
174
+ | InvalidRequestError
175
+ | UnexpectedClientError
176
+ | SDKValidationError
177
+ >(
178
+ M.json(200, components.DeploymentArchiveResponse$inboundSchema),
179
+ M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
180
+ M.fail("4XX"),
181
+ M.fail("5XX"),
182
+ )(response, req, { extraFields: responseFields });
183
+ if (!result.ok) {
184
+ return [result, { status: "complete", request: req, response }];
185
+ }
186
+
187
+ return [result, { status: "complete", request: req, response }];
188
+ }
package/src/lib/config.ts CHANGED
@@ -69,8 +69,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
69
69
  export const SDK_METADATA = {
70
70
  language: "typescript",
71
71
  openapiDocVersion: "1.0.0",
72
- sdkVersion: "3.3.0",
72
+ sdkVersion: "3.5.0",
73
73
  genVersion: "2.935.1",
74
74
  userAgent:
75
- "speakeasy-sdk/typescript 3.3.0 2.935.1 1.0.0 @mistralai/mistralai",
75
+ "speakeasy-sdk/typescript 3.5.0 2.935.1 1.0.0 @mistralai/mistralai",
76
76
  } as const;
@@ -14,10 +14,20 @@ import {
14
14
  } from "./toolexecutionconfiguration.js";
15
15
 
16
16
  export type ConnectionPreference = {
17
- name: string;
18
17
  toolConfiguration: ToolExecutionConfiguration;
19
- isDefault?: boolean | null | undefined;
20
18
  consumerType?: ConsumerType | null | undefined;
19
+ /**
20
+ * Deprecated: always `default`, a connection holds a single preference.
21
+ *
22
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
23
+ */
24
+ name: string;
25
+ /**
26
+ * Deprecated: always `true`.
27
+ *
28
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
29
+ */
30
+ isDefault?: boolean | null | undefined;
21
31
  };
22
32
 
23
33
  /** @internal */
@@ -25,15 +35,15 @@ export const ConnectionPreference$inboundSchema: z.ZodType<
25
35
  ConnectionPreference,
26
36
  unknown
27
37
  > = z.object({
28
- name: z.string(),
29
38
  tool_configuration: ToolExecutionConfiguration$inboundSchema,
30
- is_default: z.nullable(z.boolean()).optional(),
31
39
  consumer_type: z.nullable(ConsumerType$inboundSchema).optional(),
40
+ name: z.string().default("default"),
41
+ is_default: z.nullable(z.boolean()).optional(),
32
42
  }).transform((v) => {
33
43
  return remap$(v, {
34
44
  "tool_configuration": "toolConfiguration",
35
- "is_default": "isDefault",
36
45
  "consumer_type": "consumerType",
46
+ "is_default": "isDefault",
37
47
  });
38
48
  });
39
49
 
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ OpenApiSpecSource,
11
+ OpenApiSpecSource$inboundSchema,
12
+ } from "./openapispecsource.js";
13
+
14
+ export type ConnectorOpenApiSpec = {
15
+ /**
16
+ * Where the spec came from. Null when unknown, e.g. a file uploaded without a name, or hidden, e.g. on Mistral connectors.
17
+ */
18
+ source: OpenApiSpecSource | null;
19
+ };
20
+
21
+ /** @internal */
22
+ export const ConnectorOpenApiSpec$inboundSchema: z.ZodType<
23
+ ConnectorOpenApiSpec,
24
+ unknown
25
+ > = z.object({
26
+ source: z.nullable(OpenApiSpecSource$inboundSchema),
27
+ });
28
+
29
+ export function connectorOpenApiSpecFromJSON(
30
+ jsonString: string,
31
+ ): SafeParseResult<ConnectorOpenApiSpec, SDKValidationError> {
32
+ return safeParse(
33
+ jsonString,
34
+ (x) => ConnectorOpenApiSpec$inboundSchema.parse(JSON.parse(x)),
35
+ `Failed to parse 'ConnectorOpenApiSpec' from JSON`,
36
+ );
37
+ }
@@ -0,0 +1,69 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import {
8
+ CreateTriggerAction,
9
+ CreateTriggerAction$Outbound,
10
+ CreateTriggerAction$outboundSchema,
11
+ } from "./createtriggeraction.js";
12
+ import {
13
+ TriggerHandler,
14
+ TriggerHandler$outboundSchema,
15
+ } from "./triggerhandler.js";
16
+ import {
17
+ TriggersOwnerType,
18
+ TriggersOwnerType$outboundSchema,
19
+ } from "./triggersownertype.js";
20
+
21
+ export type CreateTrigger = {
22
+ /**
23
+ * ID of the event source that fires this trigger
24
+ */
25
+ eventSourceId: string;
26
+ handler: TriggerHandler;
27
+ action: CreateTriggerAction;
28
+ /**
29
+ * jmespath expression to filter events, e.g. event_type == 'push' && repository.name == 'dashboard'
30
+ */
31
+ filters?: string | null | undefined;
32
+ ownerType: TriggersOwnerType;
33
+ /**
34
+ * Human-readable title of the trigger
35
+ */
36
+ title: string;
37
+ };
38
+
39
+ /** @internal */
40
+ export type CreateTrigger$Outbound = {
41
+ event_source_id: string;
42
+ handler: string;
43
+ action: CreateTriggerAction$Outbound;
44
+ filters?: string | null | undefined;
45
+ owner_type: string;
46
+ title: string;
47
+ };
48
+
49
+ /** @internal */
50
+ export const CreateTrigger$outboundSchema: z.ZodType<
51
+ CreateTrigger$Outbound,
52
+ CreateTrigger
53
+ > = z.object({
54
+ eventSourceId: z.string(),
55
+ handler: TriggerHandler$outboundSchema,
56
+ action: CreateTriggerAction$outboundSchema,
57
+ filters: z.nullable(z.string()).optional(),
58
+ ownerType: TriggersOwnerType$outboundSchema,
59
+ title: z.string(),
60
+ }).transform((v) => {
61
+ return remap$(v, {
62
+ eventSourceId: "event_source_id",
63
+ ownerType: "owner_type",
64
+ });
65
+ });
66
+
67
+ export function createTriggerToJSON(createTrigger: CreateTrigger): string {
68
+ return JSON.stringify(CreateTrigger$outboundSchema.parse(createTrigger));
69
+ }
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import {
8
+ TriggerActionType,
9
+ TriggerActionType$outboundSchema,
10
+ } from "./triggeractiontype.js";
11
+
12
+ export type CreateTriggerAction = {
13
+ /**
14
+ * ID of the target primitive (workflow, agent, or app)
15
+ */
16
+ primitiveId: string;
17
+ type: TriggerActionType;
18
+ };
19
+
20
+ /** @internal */
21
+ export type CreateTriggerAction$Outbound = {
22
+ primitive_id: string;
23
+ type: string;
24
+ };
25
+
26
+ /** @internal */
27
+ export const CreateTriggerAction$outboundSchema: z.ZodType<
28
+ CreateTriggerAction$Outbound,
29
+ CreateTriggerAction
30
+ > = z.object({
31
+ primitiveId: z.string(),
32
+ type: TriggerActionType$outboundSchema,
33
+ }).transform((v) => {
34
+ return remap$(v, {
35
+ primitiveId: "primitive_id",
36
+ });
37
+ });
38
+
39
+ export function createTriggerActionToJSON(
40
+ createTriggerAction: CreateTriggerAction,
41
+ ): string {
42
+ return JSON.stringify(
43
+ CreateTriggerAction$outboundSchema.parse(createTriggerAction),
44
+ );
45
+ }
@@ -0,0 +1,121 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import {
8
+ TriggersOwnerType,
9
+ TriggersOwnerType$outboundSchema,
10
+ } from "./triggersownertype.js";
11
+ import {
12
+ WebhookProvider,
13
+ WebhookProvider$outboundSchema,
14
+ } from "./webhookprovider.js";
15
+ import {
16
+ WebhookSignatureEncoding,
17
+ WebhookSignatureEncoding$outboundSchema,
18
+ } from "./webhooksignatureencoding.js";
19
+ import {
20
+ WebhookSignatureHashAlgorithm,
21
+ WebhookSignatureHashAlgorithm$outboundSchema,
22
+ } from "./webhooksignaturehashalgorithm.js";
23
+
24
+ export type CreateWebhook = {
25
+ provider: WebhookProvider;
26
+ ownerType?: TriggersOwnerType | undefined;
27
+ /**
28
+ * Human-readable name for this webhook
29
+ */
30
+ name: string;
31
+ /**
32
+ * Signing secret provided by the third-party provider
33
+ */
34
+ secret?: string | null | undefined;
35
+ /**
36
+ * Encryption key used to decrypt webhook payloads
37
+ */
38
+ encryptionKey?: string | null | undefined;
39
+ expiresAt?: Date | null | undefined;
40
+ signatureHashAlgorithm?: WebhookSignatureHashAlgorithm | null | undefined;
41
+ signatureHeaderName?: string | null | undefined;
42
+ validityPeriodSecond?: number | null | undefined;
43
+ /**
44
+ * Regex to extract signature, eg sha256=(.*)
45
+ */
46
+ signatureExtractorRegex?: string | null | undefined;
47
+ timestampExtractorRegex?: string | null | undefined;
48
+ /**
49
+ * Pattern for signature payload, eg {body} or {timestamp}.{body}
50
+ */
51
+ signaturePayloadPattern?: string | null | undefined;
52
+ signatureEncoding?: WebhookSignatureEncoding | null | undefined;
53
+ successStatusCode?: number | null | undefined;
54
+ /**
55
+ * Path to extract event type, eg body.type or headers.X-GitHub-Event
56
+ */
57
+ eventTypePath?: string | null | undefined;
58
+ };
59
+
60
+ /** @internal */
61
+ export type CreateWebhook$Outbound = {
62
+ provider: string;
63
+ owner_type?: string | undefined;
64
+ name: string;
65
+ secret?: string | null | undefined;
66
+ encryption_key?: string | null | undefined;
67
+ expires_at?: string | null | undefined;
68
+ signature_hash_algorithm?: string | null | undefined;
69
+ signature_header_name?: string | null | undefined;
70
+ validity_period_second?: number | null | undefined;
71
+ signature_extractor_regex?: string | null | undefined;
72
+ timestamp_extractor_regex?: string | null | undefined;
73
+ signature_payload_pattern?: string | null | undefined;
74
+ signature_encoding?: string | null | undefined;
75
+ success_status_code?: number | null | undefined;
76
+ event_type_path?: string | null | undefined;
77
+ };
78
+
79
+ /** @internal */
80
+ export const CreateWebhook$outboundSchema: z.ZodType<
81
+ CreateWebhook$Outbound,
82
+ CreateWebhook
83
+ > = z.object({
84
+ provider: WebhookProvider$outboundSchema,
85
+ ownerType: TriggersOwnerType$outboundSchema.optional(),
86
+ name: z.string(),
87
+ secret: z.nullable(z.string()).optional(),
88
+ encryptionKey: z.nullable(z.string()).optional(),
89
+ expiresAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
90
+ signatureHashAlgorithm: z.nullable(
91
+ WebhookSignatureHashAlgorithm$outboundSchema,
92
+ ).optional(),
93
+ signatureHeaderName: z.nullable(z.string()).optional(),
94
+ validityPeriodSecond: z.nullable(z.int()).optional(),
95
+ signatureExtractorRegex: z.nullable(z.string()).optional(),
96
+ timestampExtractorRegex: z.nullable(z.string()).optional(),
97
+ signaturePayloadPattern: z.nullable(z.string()).optional(),
98
+ signatureEncoding: z.nullable(WebhookSignatureEncoding$outboundSchema)
99
+ .optional(),
100
+ successStatusCode: z.nullable(z.int()).optional(),
101
+ eventTypePath: z.nullable(z.string()).optional(),
102
+ }).transform((v) => {
103
+ return remap$(v, {
104
+ ownerType: "owner_type",
105
+ encryptionKey: "encryption_key",
106
+ expiresAt: "expires_at",
107
+ signatureHashAlgorithm: "signature_hash_algorithm",
108
+ signatureHeaderName: "signature_header_name",
109
+ validityPeriodSecond: "validity_period_second",
110
+ signatureExtractorRegex: "signature_extractor_regex",
111
+ timestampExtractorRegex: "timestamp_extractor_regex",
112
+ signaturePayloadPattern: "signature_payload_pattern",
113
+ signatureEncoding: "signature_encoding",
114
+ successStatusCode: "success_status_code",
115
+ eventTypePath: "event_type_path",
116
+ });
117
+ });
118
+
119
+ export function createWebhookToJSON(createWebhook: CreateWebhook): string {
120
+ return JSON.stringify(CreateWebhook$outboundSchema.parse(createWebhook));
121
+ }