@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
@@ -1,10 +1,9 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: d2c2f5d9f1c7
4
3
  */
5
4
 
6
5
  import { bytesToBase64 } from "./base64.js";
7
- import { isPlainObject } from "./is-plain-object.js";
6
+ import { isPlainObject } from "./primitives.js";
8
7
 
9
8
  export class EncodingError extends Error {
10
9
  constructor(message: string) {
@@ -13,10 +12,41 @@ export class EncodingError extends Error {
13
12
  }
14
13
  }
15
14
 
15
+ export type CharEncoding = "percent" | "percentExceptReserved" | "none";
16
+
17
+ const reservedEscapes = /%(2[346bcf]|3[abdf]|40|5[bd])/gi;
18
+
19
+ function encodeKeyChars(
20
+ v: string,
21
+ charEncoding: CharEncoding | undefined,
22
+ ): string {
23
+ return encodeChars(
24
+ v,
25
+ charEncoding === "percentExceptReserved" ? "percent" : charEncoding,
26
+ );
27
+ }
28
+
29
+ function encodeChars(
30
+ v: string,
31
+ charEncoding: CharEncoding | undefined,
32
+ ): string {
33
+ switch (charEncoding) {
34
+ case "percent":
35
+ return encodeURIComponent(v);
36
+ case "percentExceptReserved":
37
+ return encodeURIComponent(v).replace(
38
+ reservedEscapes,
39
+ (m) => decodeURIComponent(m),
40
+ );
41
+ default:
42
+ return v;
43
+ }
44
+ }
45
+
16
46
  export function encodeMatrix(
17
47
  key: string,
18
48
  value: unknown,
19
- options?: { explode?: boolean; charEncoding?: "percent" | "none" },
49
+ options?: { explode?: boolean; charEncoding?: CharEncoding },
20
50
  ): string | undefined {
21
51
  let out = "";
22
52
  const pairs: [string, unknown][] = options?.explode
@@ -28,7 +58,7 @@ export function encodeMatrix(
28
58
  }
29
59
 
30
60
  const encodeString = (v: string) => {
31
- return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
61
+ return encodeChars(v, options?.charEncoding);
32
62
  };
33
63
  const encodeValue = (v: unknown) => encodeString(serializeValue(v));
34
64
 
@@ -53,7 +83,7 @@ export function encodeMatrix(
53
83
  return;
54
84
  }
55
85
 
56
- const keyPrefix = encodeString(pk);
86
+ const keyPrefix = encodeKeyChars(pk, options?.charEncoding);
57
87
  tmp = `${keyPrefix}=${encValue}`;
58
88
  // trim trailing '=' if value was empty
59
89
  if (tmp === `${keyPrefix}=`) {
@@ -74,7 +104,7 @@ export function encodeMatrix(
74
104
  export function encodeLabel(
75
105
  key: string,
76
106
  value: unknown,
77
- options?: { explode?: boolean; charEncoding?: "percent" | "none" },
107
+ options?: { explode?: boolean; charEncoding?: CharEncoding },
78
108
  ): string | undefined {
79
109
  let out = "";
80
110
  const pairs: [string, unknown][] = options?.explode
@@ -86,7 +116,7 @@ export function encodeLabel(
86
116
  }
87
117
 
88
118
  const encodeString = (v: string) => {
89
- return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
119
+ return encodeChars(v, options?.charEncoding);
90
120
  };
91
121
  const encodeValue = (v: unknown) => encodeString(serializeValue(v));
92
122
 
@@ -104,7 +134,7 @@ export function encodeLabel(
104
134
  encValue = mapped?.join("").slice(1);
105
135
  } else {
106
136
  const k = options?.explode && isPlainObject(value)
107
- ? `${encodeString(pk)}=`
137
+ ? `${encodeKeyChars(pk, options?.charEncoding)}=`
108
138
  : "";
109
139
  encValue = `${k}${encodeValue(pv)}`;
110
140
  }
@@ -118,14 +148,14 @@ export function encodeLabel(
118
148
  type FormEncoder = (
119
149
  key: string,
120
150
  value: unknown,
121
- options?: { explode?: boolean; charEncoding?: "percent" | "none" },
151
+ options?: { explode?: boolean; charEncoding?: CharEncoding },
122
152
  ) => string | undefined;
123
153
 
124
154
  function formEncoder(sep: string): FormEncoder {
125
155
  return (
126
156
  key: string,
127
157
  value: unknown,
128
- options?: { explode?: boolean; charEncoding?: "percent" | "none" },
158
+ options?: { explode?: boolean; charEncoding?: CharEncoding },
129
159
  ) => {
130
160
  let out = "";
131
161
  const pairs: [string, unknown][] = options?.explode
@@ -137,7 +167,7 @@ function formEncoder(sep: string): FormEncoder {
137
167
  }
138
168
 
139
169
  const encodeString = (v: string) => {
140
- return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
170
+ return encodeChars(v, options?.charEncoding);
141
171
  };
142
172
 
143
173
  const encodeValue = (v: unknown) => encodeString(serializeValue(v));
@@ -164,7 +194,7 @@ function formEncoder(sep: string): FormEncoder {
164
194
  return;
165
195
  }
166
196
 
167
- tmp = `${encodeString(pk)}=${encValue}`;
197
+ tmp = `${encodeKeyChars(pk, options?.charEncoding)}=${encValue}`;
168
198
 
169
199
  // If we end up with the nothing then skip forward
170
200
  if (!tmp || tmp === "=") {
@@ -185,7 +215,7 @@ export const encodePipeDelimited = formEncoder("|");
185
215
  export function encodeBodyForm(
186
216
  key: string,
187
217
  value: unknown,
188
- options?: { explode?: boolean; charEncoding?: "percent" | "none" },
218
+ options?: { explode?: boolean; charEncoding?: CharEncoding },
189
219
  ): string {
190
220
  let out = "";
191
221
  const pairs: [string, unknown][] = options?.explode
@@ -193,7 +223,7 @@ export function encodeBodyForm(
193
223
  : [[key, value]];
194
224
 
195
225
  const encodeString = (v: string) => {
196
- return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
226
+ return encodeChars(v, options?.charEncoding);
197
227
  };
198
228
 
199
229
  const encodeValue = (v: unknown) => encodeString(serializeValue(v));
@@ -212,7 +242,7 @@ export function encodeBodyForm(
212
242
  encValue = `${encodeValue(pv)}`;
213
243
  }
214
244
 
215
- tmp = `${encodeString(pk)}=${encValue}`;
245
+ tmp = `${encodeKeyChars(pk, options?.charEncoding)}=${encValue}`;
216
246
 
217
247
  // If we end up with the nothing then skip forward
218
248
  if (!tmp || tmp === "=") {
@@ -228,7 +258,7 @@ export function encodeBodyForm(
228
258
  export function encodeDeepObject(
229
259
  key: string,
230
260
  value: unknown,
231
- options?: { charEncoding?: "percent" | "none" },
261
+ options?: { charEncoding?: CharEncoding },
232
262
  ): string | undefined {
233
263
  if (value == null) {
234
264
  return;
@@ -246,7 +276,7 @@ export function encodeDeepObject(
246
276
  export function encodeDeepObjectObject(
247
277
  key: string,
248
278
  value: unknown,
249
- options?: { charEncoding?: "percent" | "none" },
279
+ options?: { charEncoding?: CharEncoding },
250
280
  ): string | undefined {
251
281
  if (value == null) {
252
282
  return;
@@ -255,7 +285,7 @@ export function encodeDeepObjectObject(
255
285
  let out = "";
256
286
 
257
287
  const encodeString = (v: string) => {
258
- return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
288
+ return encodeChars(v, options?.charEncoding);
259
289
  };
260
290
 
261
291
  if (!isPlainObject(value)) {
@@ -279,7 +309,9 @@ export function encodeDeepObjectObject(
279
309
 
280
310
  const pairs: unknown[] = Array.isArray(cv) ? cv : [cv];
281
311
  const encoded = mapDefined(pairs, (v) => {
282
- return `${encodeString(pk)}=${encodeString(serializeValue(v))}`;
312
+ return `${encodeKeyChars(pk, options?.charEncoding)}=${
313
+ encodeString(serializeValue(v))
314
+ }`;
283
315
  })?.join("&");
284
316
 
285
317
  out += encoded == null ? "" : `&${encoded}`;
@@ -291,25 +323,27 @@ export function encodeDeepObjectObject(
291
323
  export function encodeJSON(
292
324
  key: string,
293
325
  value: unknown,
294
- options?: { explode?: boolean; charEncoding?: "percent" | "none" },
326
+ options?: { explode?: boolean; charEncoding?: CharEncoding },
295
327
  ): string | undefined {
296
328
  if (typeof value === "undefined") {
297
329
  return;
298
330
  }
299
331
 
300
332
  const encodeString = (v: string) => {
301
- return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
333
+ return encodeChars(v, options?.charEncoding);
302
334
  };
303
335
 
304
336
  const encVal = encodeString(JSON.stringify(value, jsonReplacer));
305
337
 
306
- return options?.explode ? encVal : `${encodeString(key)}=${encVal}`;
338
+ return options?.explode
339
+ ? encVal
340
+ : `${encodeKeyChars(key, options?.charEncoding)}=${encVal}`;
307
341
  }
308
342
 
309
343
  export const encodeSimple = (
310
344
  key: string,
311
345
  value: unknown,
312
- options?: { explode?: boolean; charEncoding?: "percent" | "none" },
346
+ options?: { explode?: boolean; charEncoding?: CharEncoding },
313
347
  ): string | undefined => {
314
348
  let out = "";
315
349
  const pairs: [string, unknown][] = options?.explode
@@ -321,7 +355,7 @@ export const encodeSimple = (
321
355
  }
322
356
 
323
357
  const encodeString = (v: string) => {
324
- return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
358
+ return encodeChars(v, options?.charEncoding);
325
359
  };
326
360
  const encodeValue = (v: unknown) => encodeString(serializeValue(v));
327
361
 
@@ -427,7 +461,7 @@ export function queryJoin(...args: (string | undefined)[]): string {
427
461
 
428
462
  type QueryEncoderOptions = {
429
463
  explode?: boolean;
430
- charEncoding?: "percent" | "none";
464
+ charEncoding?: CharEncoding;
431
465
  allowEmptyValue?: string[];
432
466
  };
433
467
 
@@ -1,14 +1,18 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 205d20a788e0
4
3
  */
5
4
 
6
- // Ensure ReadableStream always declares [Symbol.asyncIterator] so the
7
- // override keyword works consistently regardless of installed type
8
- // definitions (e.g. bun-types omits it from its ReadableStream).
5
+ // Some environments' type definitions do not include ReadableStream's async
6
+ // iterator, even though the runtime supports it or this class polyfills it.
7
+ // Declare the method here so Stream can override it and preserve T in for-await.
9
8
  declare global {
10
9
  interface ReadableStream<R = any> {
11
- [Symbol.asyncIterator](): AsyncIterableIterator<R>;
10
+ [Symbol.asyncIterator](): {
11
+ next(): Promise<IteratorResult<R, undefined>>;
12
+ throw?(e?: unknown): Promise<IteratorResult<R, undefined>>;
13
+ return?(): Promise<IteratorResult<R, undefined>>;
14
+ [Symbol.asyncIterator](): any;
15
+ };
12
16
  }
13
17
  }
14
18
 
@@ -27,22 +31,45 @@ export class EventStream<T extends SseMessage<unknown>>
27
31
  opts?: { dataRequired?: boolean },
28
32
  ) {
29
33
  const upstream = responseBody.getReader();
30
- let buffer: Uint8Array = new Uint8Array();
34
+ let buffer: Uint8Array = new Uint8Array(4096);
35
+ let bufferLen = 0;
36
+ let searchStart = 0;
31
37
  const state = { eventId: undefined as string | undefined };
32
38
  const dataRequired = opts?.dataRequired ?? true;
33
39
  super({
34
40
  async pull(downstream) {
35
41
  try {
36
42
  while (true) {
37
- const match = findBoundary(buffer);
43
+ const match = findBoundary(buffer, bufferLen, searchStart);
38
44
  if (!match) {
45
+ // Bytes before the trailing MAX_BOUNDARY_LEN-1 were already
46
+ // scanned with full lookahead and cannot start a boundary even
47
+ // once more data arrives, so the next scan can skip them.
48
+ searchStart = Math.max(0, bufferLen - MAX_BOUNDARY_LEN + 1);
39
49
  const chunk = await upstream.read();
40
50
  if (chunk.done) return downstream.close();
41
- buffer = concatBuffer(buffer, chunk.value);
51
+ if (bufferLen + chunk.value.length > buffer.length) {
52
+ const grown = new Uint8Array(
53
+ Math.max(buffer.length * 2, bufferLen + chunk.value.length),
54
+ );
55
+ grown.set(buffer.subarray(0, bufferLen));
56
+ buffer = grown;
57
+ }
58
+ buffer.set(chunk.value, bufferLen);
59
+ bufferLen += chunk.value.length;
42
60
  continue;
43
61
  }
44
62
  const message = buffer.slice(0, match.index);
45
- buffer = buffer.slice(match.index + match.length);
63
+ buffer.copyWithin(0, match.index + match.length, bufferLen);
64
+ bufferLen -= match.index + match.length;
65
+ if (buffer.length > 4096 && bufferLen <= buffer.length >> 2) {
66
+ // Release oversized capacity retained after an unusually large
67
+ // event so long-lived streams do not hold peak memory.
68
+ const shrunk = new Uint8Array(Math.max(4096, bufferLen * 2));
69
+ shrunk.set(buffer.subarray(0, bufferLen));
70
+ buffer = shrunk;
71
+ }
72
+ searchStart = 0;
46
73
  const item = parseMessage(message, parse, state, dataRequired);
47
74
  if (item && !item.done) return downstream.enqueue(item.value);
48
75
  if (item?.done) {
@@ -59,8 +86,11 @@ export class EventStream<T extends SseMessage<unknown>>
59
86
  });
60
87
  }
61
88
 
62
- // Polyfill for older browsers
63
- override [Symbol.asyncIterator](): AsyncIterableIterator<T> {
89
+ // Use ReadableStream's iterator return type instead of `any` so stream events
90
+ // keep their generated type in for-await loops.
91
+ override [Symbol.asyncIterator](): ReturnType<
92
+ ReadableStream<T>[typeof Symbol.asyncIterator]
93
+ > {
64
94
  const fn = (ReadableStream.prototype as any)[Symbol.asyncIterator];
65
95
  if (typeof fn === "function") return fn.call(this);
66
96
  const reader = this.getReader();
@@ -86,17 +116,10 @@ export class EventStream<T extends SseMessage<unknown>>
86
116
  [Symbol.asyncIterator]() {
87
117
  return this;
88
118
  },
89
- };
119
+ } as ReturnType<ReadableStream<T>[typeof Symbol.asyncIterator]>;
90
120
  }
91
121
  }
92
122
 
93
- function concatBuffer(a: Uint8Array, b: Uint8Array): Uint8Array {
94
- const c = new Uint8Array(a.length + b.length);
95
- c.set(a, 0);
96
- c.set(b, a.length);
97
- return c;
98
- }
99
-
100
123
  const CR = 13;
101
124
  const LF = 10;
102
125
  const BOUNDARIES = [
@@ -109,12 +132,14 @@ const BOUNDARIES = [
109
132
  [LF, CR], // \n\r
110
133
  [LF, LF], // \n\n
111
134
  ];
135
+ const MAX_BOUNDARY_LEN = BOUNDARIES.reduce((m, b) => Math.max(m, b.length), 0);
112
136
 
113
137
  function findBoundary(
114
138
  buf: Uint8Array,
139
+ len: number,
140
+ from: number,
115
141
  ): { index: number; length: number } | null {
116
- const len = buf.length;
117
- for (let i = 0; i < len; i++) {
142
+ for (let i = from; i < len; i++) {
118
143
  if (buf[i] !== CR && buf[i] !== LF) continue;
119
144
  for (const boundary of BOUNDARIES) {
120
145
  if (i + boundary.length > len) continue;
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 3227ace67cc8
4
3
  */
5
4
 
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 75ccecdb8ca8
4
3
  */
5
4
 
6
5
  export type Fetcher = (
@@ -46,8 +45,10 @@ export class HTTPClient {
46
45
  private requestHooks: BeforeRequestHook[] = [];
47
46
  private requestErrorHooks: RequestErrorHook[] = [];
48
47
  private responseHooks: ResponseHook[] = [];
48
+ private options: HTTPClientOptions;
49
49
 
50
- constructor(private options: HTTPClientOptions = {}) {
50
+ constructor(options: HTTPClientOptions = {}) {
51
+ this.options = options;
51
52
  this.fetcher = options.fetcher || DEFAULT_FETCHER;
52
53
  }
53
54
 
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: eb31bd8b1629
4
3
  */
5
4
 
6
5
  export interface Logger {
@@ -1,13 +1,12 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 9ecd10b48ebe
4
3
  */
5
4
 
6
5
  import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
6
  import { SDKError } from "../models/errors/sdkerror.js";
8
7
  import { ERR, OK, Result } from "../types/fp.js";
9
8
  import { matchResponse, matchStatusCode, StatusCodePredicate } from "./http.js";
10
- import { isPlainObject } from "./is-plain-object.js";
9
+ import { isPlainObject } from "./primitives.js";
11
10
 
12
11
  export type Encoding =
13
12
  | "jsonl"
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 5453293e6e64
4
3
  */
5
4
 
6
5
  class InvariantError extends Error {
@@ -149,3 +148,19 @@ export function allRequired<V extends Record<string, unknown>>(
149
148
 
150
149
  return v as ReturnType<typeof allRequired<V>>;
151
150
  }
151
+
152
+ export function isPlainObject(
153
+ value: unknown,
154
+ ): value is Record<string, unknown> {
155
+ if (value === null || typeof value !== "object") return false;
156
+ if (Object.prototype.toString.call(value) !== "[object Object]") return false;
157
+ const proto = Object.getPrototypeOf(value);
158
+ if (proto === null || proto === Object.prototype) return true;
159
+ // cross-realm plain objects (vm contexts, iframes) inherit from a
160
+ // different realm's Object.prototype, which itself has a null prototype
161
+ try {
162
+ return Object.getPrototypeOf(proto) === null;
163
+ } catch {
164
+ return false;
165
+ }
166
+ }
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 7761f1f62f9d
4
3
  */
5
4
 
6
5
  import { isConnectionError, isTimeoutError } from "./http.js";
@@ -195,6 +194,14 @@ async function retryBackoff(
195
194
  }
196
195
 
197
196
  function retryIntervalFromResponse(res: Response): number {
197
+ const retryAfterMsVal = res.headers.get("retry-after-ms");
198
+ if (retryAfterMsVal) {
199
+ const parsedMs = Number(retryAfterMsVal);
200
+ if (Number.isFinite(parsedMs) && parsedMs >= 0) {
201
+ return parsedMs;
202
+ }
203
+ }
204
+
198
205
  const retryVal = res.headers.get("retry-after") || "";
199
206
  if (!retryVal) {
200
207
  return 0;
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: d99fed8ffff5
4
3
  */
5
4
 
6
5
  import * as z from "zod/v4";
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 04d516044972
4
3
  */
5
4
 
6
5
  import { SDKHooks } from "../hooks/hooks.js";
@@ -24,6 +23,7 @@ import {
24
23
  matchContentType,
25
24
  } from "./http.js";
26
25
  import { Logger } from "./logger.js";
26
+ import { combineSignals } from "./primitives.js";
27
27
  import { retry, RetryConfig } from "./retries.js";
28
28
  import { SecurityState } from "./security.js";
29
29
 
@@ -129,27 +129,55 @@ export class ClientSDK {
129
129
  if (path) {
130
130
  baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
131
131
  reqURL = new URL(path, baseURL);
132
+ if (!reqURL.search && baseURL.search) {
133
+ reqURL.search = baseURL.search;
134
+ }
132
135
  } else {
133
136
  reqURL = baseURL;
134
137
  }
135
138
  reqURL.hash = "";
136
139
 
137
- let finalQuery = query || "";
138
-
139
- const secQuery: string[] = [];
140
- for (const [k, v] of Object.entries(security?.queryParams || {})) {
141
- const q = encodeForm(k, v, { charEncoding: "percent" });
142
- if (typeof q !== "undefined") {
143
- secQuery.push(q);
140
+ // Appends already-encoded query pairs to a query string, replacing any
141
+ // existing pairs with the same key so later sources take precedence.
142
+ const mergeQuery = (current: string, additions: string): string => {
143
+ if (!additions) {
144
+ return current;
144
145
  }
145
- }
146
- if (secQuery.length) {
147
- finalQuery += `&${secQuery.join("&")}`;
148
- }
146
+ const additionKeys = new Set(
147
+ additions
148
+ .split("&")
149
+ .filter((pair) => pair !== "")
150
+ .map((pair) => pair.split("=")[0] ?? ""),
151
+ );
152
+ const kept = current.split("&").filter((pair) => {
153
+ return pair !== "" && !additionKeys.has(pair.split("=")[0] ?? "");
154
+ });
155
+ return [...kept, additions].join("&");
156
+ };
157
+
158
+ const encodeQueryRecord = (record: Record<string, unknown>): string => {
159
+ return Object.entries(record)
160
+ .map(([k, v]) => {
161
+ if (v == null) {
162
+ return undefined;
163
+ }
164
+ const value = v;
165
+ return encodeForm(k, value, {
166
+ explode: Array.isArray(value),
167
+ charEncoding: "percent",
168
+ });
169
+ })
170
+ .filter((pair): pair is string => typeof pair !== "undefined")
171
+ .join("&");
172
+ };
173
+
174
+ const finalQuery = [
175
+ query || "",
176
+ encodeQueryRecord(security?.queryParams || {}),
177
+ ].reduce(mergeQuery, reqURL.search.slice(1));
149
178
 
150
179
  if (finalQuery) {
151
- const q = finalQuery.startsWith("&") ? finalQuery.slice(1) : finalQuery;
152
- reqURL.search = `?${q}`;
180
+ reqURL.search = `?${finalQuery}`;
153
181
  }
154
182
 
155
183
  const headers = new Headers(opHeaders);
@@ -195,9 +223,8 @@ export class ClientSDK {
195
223
  ...options?.fetchOptions,
196
224
  ...options,
197
225
  };
198
- if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
199
- const timeoutSignal = AbortSignal.timeout(conf.timeoutMs);
200
- fetchOptions.signal = timeoutSignal;
226
+ if (!fetchOptions?.signal && conf.timeoutMs != null && conf.timeoutMs > 0) {
227
+ context.timeoutMs = conf.timeoutMs;
201
228
  }
202
229
 
203
230
  if (conf.body instanceof ReadableStream) {
@@ -244,10 +271,19 @@ export class ClientSDK {
244
271
  >
245
272
  > {
246
273
  const { context, isErrorStatusCode } = options;
274
+ const timeoutMs = context.timeoutMs;
247
275
 
248
276
  return retry(
249
277
  async () => {
250
- const req = await this.#hooks.beforeRequest(context, request.clone());
278
+ const cloned = request.clone();
279
+ let attempt = cloned;
280
+ if (timeoutMs != null && timeoutMs > 0) {
281
+ const timeoutSignal = AbortSignal.timeout(timeoutMs);
282
+ const combined = combineSignals(cloned.signal, timeoutSignal)
283
+ ?? timeoutSignal;
284
+ attempt = new Request(cloned, { signal: combined });
285
+ }
286
+ const req = await this.#hooks.beforeRequest(context, attempt);
251
287
  await logRequest(this.#logger, req).catch((e) =>
252
288
  this.#logger?.log("Failed to log request:", e)
253
289
  );
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: f141fe3b5267
4
3
  */
5
4
 
6
5
  import * as components from "../models/components/index.js";
@@ -13,17 +12,22 @@ type OAuth2PasswordFlow = {
13
12
  tokenURL: string;
14
13
  };
15
14
 
16
- export enum SecurityErrorCode {
17
- Incomplete = "incomplete",
18
- UnrecognisedSecurityType = "unrecognized_security_type",
19
- }
15
+ export const SecurityErrorCode = {
16
+ Incomplete: "incomplete",
17
+ UnrecognisedSecurityType: "unrecognized_security_type",
18
+ } as const;
19
+ export type SecurityErrorCode =
20
+ (typeof SecurityErrorCode)[keyof typeof SecurityErrorCode];
20
21
 
21
22
  export class SecurityError extends Error {
23
+ public code: SecurityErrorCode;
24
+
22
25
  constructor(
23
- public code: SecurityErrorCode,
26
+ code: SecurityErrorCode,
24
27
  message: string,
25
28
  ) {
26
29
  super(message);
30
+ this.code = code;
27
31
  this.name = "SecurityError";
28
32
  }
29
33
 
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 99e508cd1d1d
4
3
  */
5
4
 
6
5
  const hasOwn = Object.prototype.hasOwnProperty;
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: aa35170263e3
4
3
  */
5
4
 
6
5
  import * as z from "zod/v4";
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: caba2bab8be4
4
3
  */
5
4
 
6
5
  import * as z from "zod/v4";
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: d426535f2d54
4
3
  */
5
4
 
6
5
  import * as z from "zod/v4";
@@ -12,6 +11,7 @@ export const BuiltInConnectors = {
12
11
  CodeInterpreter: "code_interpreter",
13
12
  ImageGeneration: "image_generation",
14
13
  DocumentLibrary: "document_library",
14
+ MistralMcp: "mistral_mcp",
15
15
  } as const;
16
16
  export type BuiltInConnectors = ClosedEnum<typeof BuiltInConnectors>;
17
17