@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,60 @@
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 { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ OCRBlockConfidenceScores,
12
+ OCRBlockConfidenceScores$inboundSchema,
13
+ } from "./ocrblockconfidencescores.js";
14
+
15
+ export type OCRListBlock = {
16
+ topLeftX: number;
17
+ topLeftY: number;
18
+ bottomRightX: number;
19
+ bottomRightY: number;
20
+ /**
21
+ * Text/markdown/html content of this block
22
+ */
23
+ content: string;
24
+ /**
25
+ * Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.
26
+ */
27
+ confidenceScores?: OCRBlockConfidenceScores | null | undefined;
28
+ type: "list";
29
+ };
30
+
31
+ /** @internal */
32
+ export const OCRListBlock$inboundSchema: z.ZodType<OCRListBlock, unknown> = z
33
+ .object({
34
+ top_left_x: z.int(),
35
+ top_left_y: z.int(),
36
+ bottom_right_x: z.int(),
37
+ bottom_right_y: z.int(),
38
+ content: z.string(),
39
+ confidence_scores: z.nullable(OCRBlockConfidenceScores$inboundSchema)
40
+ .optional(),
41
+ type: z.literal("list"),
42
+ }).transform((v) => {
43
+ return remap$(v, {
44
+ "top_left_x": "topLeftX",
45
+ "top_left_y": "topLeftY",
46
+ "bottom_right_x": "bottomRightX",
47
+ "bottom_right_y": "bottomRightY",
48
+ "confidence_scores": "confidenceScores",
49
+ });
50
+ });
51
+
52
+ export function ocrListBlockFromJSON(
53
+ jsonString: string,
54
+ ): SafeParseResult<OCRListBlock, SDKValidationError> {
55
+ return safeParse(
56
+ jsonString,
57
+ (x) => OCRListBlock$inboundSchema.parse(JSON.parse(x)),
58
+ `Failed to parse 'OCRListBlock' from JSON`,
59
+ );
60
+ }
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: decf753e462c
4
3
  */
5
4
 
6
5
  import * as z from "zod/v4";
@@ -19,10 +18,14 @@ import {
19
18
  * @remarks
20
19
  *
21
20
  * Note on page-level stats:
22
- * - For 'page' granularity: average/minimum are computed from per-token exp(logprob).
23
- * - For 'word' granularity: average/minimum are computed from per-word confidence,
24
- * where each word's confidence is exp(mean(token_logprobs)) — a geometric mean
25
- * over the word's subword tokens.
21
+ * - For 'page' and 'block' granularity: average/minimum are computed from per-token
22
+ * exp(logprob). Neither ``word_confidence_scores`` nor ``token_scores`` is populated.
23
+ * Per-block scores are attached to response blocks separately for 'block' granularity.
24
+ * - For 'word' granularity: average/minimum are computed from per-word confidence, where
25
+ * each word's confidence is exp(mean(token_logprobs)) — a geometric mean over the
26
+ * word's subword tokens. ``word_confidence_scores`` is populated.
27
+ * - For 'token' granularity (internal): average/minimum are computed from
28
+ * ``token_scores``; ``token_scores`` is populated.
26
29
  */
27
30
  export type OCRPageConfidenceScores = {
28
31
  /**
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 42fd4a9011ba
4
3
  */
5
4
 
6
5
  import * as z from "zod/v4";
@@ -1,17 +1,41 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: f70a10633312
4
3
  */
5
4
 
6
5
  import * as z from "zod/v4";
7
6
  import { remap as remap$ } from "../../lib/primitives.js";
8
7
  import { safeParse } from "../../lib/schemas.js";
8
+ import * as discriminatedUnionTypes from "../../types/discriminatedUnion.js";
9
+ import { discriminatedUnion } from "../../types/discriminatedUnion.js";
9
10
  import { Result as SafeParseResult } from "../../types/fp.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+ import {
13
+ OCRAsideTextBlock,
14
+ OCRAsideTextBlock$inboundSchema,
15
+ } from "./ocrasidetextblock.js";
16
+ import {
17
+ OCRCaptionBlock,
18
+ OCRCaptionBlock$inboundSchema,
19
+ } from "./ocrcaptionblock.js";
20
+ import { OCRCodeBlock, OCRCodeBlock$inboundSchema } from "./ocrcodeblock.js";
21
+ import {
22
+ OCREquationBlock,
23
+ OCREquationBlock$inboundSchema,
24
+ } from "./ocrequationblock.js";
25
+ import {
26
+ OCRFooterBlock,
27
+ OCRFooterBlock$inboundSchema,
28
+ } from "./ocrfooterblock.js";
29
+ import {
30
+ OCRHeaderBlock,
31
+ OCRHeaderBlock$inboundSchema,
32
+ } from "./ocrheaderblock.js";
33
+ import { OCRImageBlock, OCRImageBlock$inboundSchema } from "./ocrimageblock.js";
11
34
  import {
12
35
  OCRImageObject,
13
36
  OCRImageObject$inboundSchema,
14
37
  } from "./ocrimageobject.js";
38
+ import { OCRListBlock, OCRListBlock$inboundSchema } from "./ocrlistblock.js";
15
39
  import {
16
40
  OCRPageConfidenceScores,
17
41
  OCRPageConfidenceScores$inboundSchema,
@@ -20,10 +44,37 @@ import {
20
44
  OCRPageDimensions,
21
45
  OCRPageDimensions$inboundSchema,
22
46
  } from "./ocrpagedimensions.js";
47
+ import {
48
+ OCRReferencesBlock,
49
+ OCRReferencesBlock$inboundSchema,
50
+ } from "./ocrreferencesblock.js";
51
+ import {
52
+ OCRSignatureBlock,
53
+ OCRSignatureBlock$inboundSchema,
54
+ } from "./ocrsignatureblock.js";
55
+ import { OCRTableBlock, OCRTableBlock$inboundSchema } from "./ocrtableblock.js";
23
56
  import {
24
57
  OCRTableObject,
25
58
  OCRTableObject$inboundSchema,
26
59
  } from "./ocrtableobject.js";
60
+ import { OCRTextBlock, OCRTextBlock$inboundSchema } from "./ocrtextblock.js";
61
+ import { OCRTitleBlock, OCRTitleBlock$inboundSchema } from "./ocrtitleblock.js";
62
+
63
+ export type Block =
64
+ | OCRAsideTextBlock
65
+ | OCRCaptionBlock
66
+ | OCRCodeBlock
67
+ | OCREquationBlock
68
+ | OCRFooterBlock
69
+ | OCRHeaderBlock
70
+ | OCRImageBlock
71
+ | OCRListBlock
72
+ | OCRReferencesBlock
73
+ | OCRSignatureBlock
74
+ | OCRTableBlock
75
+ | OCRTextBlock
76
+ | OCRTitleBlock
77
+ | discriminatedUnionTypes.Unknown<"type">;
27
78
 
28
79
  export type OCRPageObject = {
29
80
  /**
@@ -62,8 +113,58 @@ export type OCRPageObject = {
62
113
  * Confidence scores for the OCR page (populated when confidence_scores_granularity is set)
63
114
  */
64
115
  confidenceScores?: OCRPageConfidenceScores | null | undefined;
116
+ /**
117
+ * Paragraph-level bounding boxes for all content blocks in reading order (populated when include_blocks is True)
118
+ */
119
+ blocks?:
120
+ | Array<
121
+ | OCRAsideTextBlock
122
+ | OCRCaptionBlock
123
+ | OCRCodeBlock
124
+ | OCREquationBlock
125
+ | OCRFooterBlock
126
+ | OCRHeaderBlock
127
+ | OCRImageBlock
128
+ | OCRListBlock
129
+ | OCRReferencesBlock
130
+ | OCRSignatureBlock
131
+ | OCRTableBlock
132
+ | OCRTextBlock
133
+ | OCRTitleBlock
134
+ | discriminatedUnionTypes.Unknown<"type">
135
+ >
136
+ | null
137
+ | undefined;
65
138
  };
66
139
 
140
+ /** @internal */
141
+ export const Block$inboundSchema: z.ZodType<Block, unknown> =
142
+ discriminatedUnion("type", {
143
+ aside_text: OCRAsideTextBlock$inboundSchema,
144
+ caption: OCRCaptionBlock$inboundSchema,
145
+ code: OCRCodeBlock$inboundSchema,
146
+ equation: OCREquationBlock$inboundSchema,
147
+ footer: OCRFooterBlock$inboundSchema,
148
+ header: OCRHeaderBlock$inboundSchema,
149
+ image: OCRImageBlock$inboundSchema,
150
+ list: OCRListBlock$inboundSchema,
151
+ references: OCRReferencesBlock$inboundSchema,
152
+ signature: OCRSignatureBlock$inboundSchema,
153
+ table: OCRTableBlock$inboundSchema,
154
+ text: OCRTextBlock$inboundSchema,
155
+ title: OCRTitleBlock$inboundSchema,
156
+ });
157
+
158
+ export function blockFromJSON(
159
+ jsonString: string,
160
+ ): SafeParseResult<Block, SDKValidationError> {
161
+ return safeParse(
162
+ jsonString,
163
+ (x) => Block$inboundSchema.parse(JSON.parse(x)),
164
+ `Failed to parse 'Block' from JSON`,
165
+ );
166
+ }
167
+
67
168
  /** @internal */
68
169
  export const OCRPageObject$inboundSchema: z.ZodType<OCRPageObject, unknown> = z
69
170
  .object({
@@ -77,6 +178,21 @@ export const OCRPageObject$inboundSchema: z.ZodType<OCRPageObject, unknown> = z
77
178
  dimensions: z.nullable(OCRPageDimensions$inboundSchema),
78
179
  confidence_scores: z.nullable(OCRPageConfidenceScores$inboundSchema)
79
180
  .optional(),
181
+ blocks: z.nullable(z.array(discriminatedUnion("type", {
182
+ aside_text: OCRAsideTextBlock$inboundSchema,
183
+ caption: OCRCaptionBlock$inboundSchema,
184
+ code: OCRCodeBlock$inboundSchema,
185
+ equation: OCREquationBlock$inboundSchema,
186
+ footer: OCRFooterBlock$inboundSchema,
187
+ header: OCRHeaderBlock$inboundSchema,
188
+ image: OCRImageBlock$inboundSchema,
189
+ list: OCRListBlock$inboundSchema,
190
+ references: OCRReferencesBlock$inboundSchema,
191
+ signature: OCRSignatureBlock$inboundSchema,
192
+ table: OCRTableBlock$inboundSchema,
193
+ text: OCRTextBlock$inboundSchema,
194
+ title: OCRTitleBlock$inboundSchema,
195
+ }))).optional(),
80
196
  }).transform((v) => {
81
197
  return remap$(v, {
82
198
  "confidence_scores": "confidenceScores",
@@ -0,0 +1,62 @@
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 { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ OCRBlockConfidenceScores,
12
+ OCRBlockConfidenceScores$inboundSchema,
13
+ } from "./ocrblockconfidencescores.js";
14
+
15
+ export type OCRReferencesBlock = {
16
+ topLeftX: number;
17
+ topLeftY: number;
18
+ bottomRightX: number;
19
+ bottomRightY: number;
20
+ /**
21
+ * Text/markdown/html content of this block
22
+ */
23
+ content: string;
24
+ /**
25
+ * Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.
26
+ */
27
+ confidenceScores?: OCRBlockConfidenceScores | null | undefined;
28
+ type: "references";
29
+ };
30
+
31
+ /** @internal */
32
+ export const OCRReferencesBlock$inboundSchema: z.ZodType<
33
+ OCRReferencesBlock,
34
+ unknown
35
+ > = z.object({
36
+ top_left_x: z.int(),
37
+ top_left_y: z.int(),
38
+ bottom_right_x: z.int(),
39
+ bottom_right_y: z.int(),
40
+ content: z.string(),
41
+ confidence_scores: z.nullable(OCRBlockConfidenceScores$inboundSchema)
42
+ .optional(),
43
+ type: z.literal("references"),
44
+ }).transform((v) => {
45
+ return remap$(v, {
46
+ "top_left_x": "topLeftX",
47
+ "top_left_y": "topLeftY",
48
+ "bottom_right_x": "bottomRightX",
49
+ "bottom_right_y": "bottomRightY",
50
+ "confidence_scores": "confidenceScores",
51
+ });
52
+ });
53
+
54
+ export function ocrReferencesBlockFromJSON(
55
+ jsonString: string,
56
+ ): SafeParseResult<OCRReferencesBlock, SDKValidationError> {
57
+ return safeParse(
58
+ jsonString,
59
+ (x) => OCRReferencesBlock$inboundSchema.parse(JSON.parse(x)),
60
+ `Failed to parse 'OCRReferencesBlock' from JSON`,
61
+ );
62
+ }
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 0ba6aeaa0fc5
4
3
  */
5
4
 
6
5
  import * as z from "zod/v4";
@@ -47,6 +46,7 @@ export type TableFormat = ClosedEnum<typeof TableFormat>;
47
46
  export const ConfidenceScoresGranularity = {
48
47
  Word: "word",
49
48
  Page: "page",
49
+ Block: "block",
50
50
  } as const;
51
51
  export type ConfidenceScoresGranularity = ClosedEnum<
52
52
  typeof ConfidenceScoresGranularity
@@ -87,10 +87,20 @@ export type OCRRequest = {
87
87
  */
88
88
  documentAnnotationPrompt?: string | null | undefined;
89
89
  tableFormat?: TableFormat | null | undefined;
90
+ /**
91
+ * Extract the page header into the response's `header` field and remove it from the markdown content
92
+ */
90
93
  extractHeader?: boolean | undefined;
94
+ /**
95
+ * Extract the page footer into the response's `footer` field and remove it from the markdown content
96
+ */
91
97
  extractFooter?: boolean | undefined;
92
98
  /**
93
- * Granularity for confidence scores: 'word' (per-word scores) or 'page' (aggregate only). Defaults to None (no confidence scores) to keep response payload small.
99
+ * Return paragraph-level bounding boxes for all content blocks in the response
100
+ */
101
+ includeBlocks?: boolean | undefined;
102
+ /**
103
+ * Granularity for confidence scores: 'page' (aggregate only), 'word' (per-word scores), or 'block' (per-block scores). Defaults to None (no confidence scores) to keep response payload small.
94
104
  */
95
105
  confidenceScoresGranularity?: ConfidenceScoresGranularity | null | undefined;
96
106
  };
@@ -151,6 +161,7 @@ export type OCRRequest$Outbound = {
151
161
  table_format?: string | null | undefined;
152
162
  extract_header?: boolean | undefined;
153
163
  extract_footer?: boolean | undefined;
164
+ include_blocks: boolean;
154
165
  confidence_scores_granularity?: string | null | undefined;
155
166
  };
156
167
 
@@ -176,6 +187,7 @@ export const OCRRequest$outboundSchema: z.ZodType<
176
187
  tableFormat: z.nullable(TableFormat$outboundSchema).optional(),
177
188
  extractHeader: z.boolean().optional(),
178
189
  extractFooter: z.boolean().optional(),
190
+ includeBlocks: z.boolean().default(true),
179
191
  confidenceScoresGranularity: z.nullable(
180
192
  ConfidenceScoresGranularity$outboundSchema,
181
193
  ).optional(),
@@ -190,6 +202,7 @@ export const OCRRequest$outboundSchema: z.ZodType<
190
202
  tableFormat: "table_format",
191
203
  extractHeader: "extract_header",
192
204
  extractFooter: "extract_footer",
205
+ includeBlocks: "include_blocks",
193
206
  confidenceScoresGranularity: "confidence_scores_granularity",
194
207
  });
195
208
  });
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: fe7a971e30b0
4
3
  */
5
4
 
6
5
  import * as z from "zod/v4";
@@ -0,0 +1,65 @@
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 { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ OCRBlockConfidenceScores,
12
+ OCRBlockConfidenceScores$inboundSchema,
13
+ } from "./ocrblockconfidencescores.js";
14
+
15
+ /**
16
+ * Signature region. ``content`` is the transcribed name when legible, else ``""``.
17
+ */
18
+ export type OCRSignatureBlock = {
19
+ topLeftX: number;
20
+ topLeftY: number;
21
+ bottomRightX: number;
22
+ bottomRightY: number;
23
+ /**
24
+ * Text/markdown/html content of this block
25
+ */
26
+ content: string;
27
+ /**
28
+ * Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.
29
+ */
30
+ confidenceScores?: OCRBlockConfidenceScores | null | undefined;
31
+ type: "signature";
32
+ };
33
+
34
+ /** @internal */
35
+ export const OCRSignatureBlock$inboundSchema: z.ZodType<
36
+ OCRSignatureBlock,
37
+ unknown
38
+ > = z.object({
39
+ top_left_x: z.int(),
40
+ top_left_y: z.int(),
41
+ bottom_right_x: z.int(),
42
+ bottom_right_y: z.int(),
43
+ content: z.string(),
44
+ confidence_scores: z.nullable(OCRBlockConfidenceScores$inboundSchema)
45
+ .optional(),
46
+ type: z.literal("signature"),
47
+ }).transform((v) => {
48
+ return remap$(v, {
49
+ "top_left_x": "topLeftX",
50
+ "top_left_y": "topLeftY",
51
+ "bottom_right_x": "bottomRightX",
52
+ "bottom_right_y": "bottomRightY",
53
+ "confidence_scores": "confidenceScores",
54
+ });
55
+ });
56
+
57
+ export function ocrSignatureBlockFromJSON(
58
+ jsonString: string,
59
+ ): SafeParseResult<OCRSignatureBlock, SDKValidationError> {
60
+ return safeParse(
61
+ jsonString,
62
+ (x) => OCRSignatureBlock$inboundSchema.parse(JSON.parse(x)),
63
+ `Failed to parse 'OCRSignatureBlock' from JSON`,
64
+ );
65
+ }
@@ -0,0 +1,66 @@
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 { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ OCRBlockConfidenceScores,
12
+ OCRBlockConfidenceScores$inboundSchema,
13
+ } from "./ocrblockconfidencescores.js";
14
+
15
+ export type OCRTableBlock = {
16
+ topLeftX: number;
17
+ topLeftY: number;
18
+ bottomRightX: number;
19
+ bottomRightY: number;
20
+ /**
21
+ * Text/markdown/html content of this block
22
+ */
23
+ content: string;
24
+ /**
25
+ * Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.
26
+ */
27
+ confidenceScores?: OCRBlockConfidenceScores | null | undefined;
28
+ type: "table";
29
+ /**
30
+ * References the corresponding entry in OCRPageObject.tables, when tables are extracted
31
+ */
32
+ tableId?: string | null | undefined;
33
+ };
34
+
35
+ /** @internal */
36
+ export const OCRTableBlock$inboundSchema: z.ZodType<OCRTableBlock, unknown> = z
37
+ .object({
38
+ top_left_x: z.int(),
39
+ top_left_y: z.int(),
40
+ bottom_right_x: z.int(),
41
+ bottom_right_y: z.int(),
42
+ content: z.string(),
43
+ confidence_scores: z.nullable(OCRBlockConfidenceScores$inboundSchema)
44
+ .optional(),
45
+ type: z.literal("table"),
46
+ table_id: z.nullable(z.string()).optional(),
47
+ }).transform((v) => {
48
+ return remap$(v, {
49
+ "top_left_x": "topLeftX",
50
+ "top_left_y": "topLeftY",
51
+ "bottom_right_x": "bottomRightX",
52
+ "bottom_right_y": "bottomRightY",
53
+ "confidence_scores": "confidenceScores",
54
+ "table_id": "tableId",
55
+ });
56
+ });
57
+
58
+ export function ocrTableBlockFromJSON(
59
+ jsonString: string,
60
+ ): SafeParseResult<OCRTableBlock, SDKValidationError> {
61
+ return safeParse(
62
+ jsonString,
63
+ (x) => OCRTableBlock$inboundSchema.parse(JSON.parse(x)),
64
+ `Failed to parse 'OCRTableBlock' from JSON`,
65
+ );
66
+ }
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 3a73614fc034
4
3
  */
5
4
 
6
5
  import * as z from "zod/v4";
@@ -0,0 +1,60 @@
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 { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ OCRBlockConfidenceScores,
12
+ OCRBlockConfidenceScores$inboundSchema,
13
+ } from "./ocrblockconfidencescores.js";
14
+
15
+ export type OCRTextBlock = {
16
+ topLeftX: number;
17
+ topLeftY: number;
18
+ bottomRightX: number;
19
+ bottomRightY: number;
20
+ /**
21
+ * Text/markdown/html content of this block
22
+ */
23
+ content: string;
24
+ /**
25
+ * Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.
26
+ */
27
+ confidenceScores?: OCRBlockConfidenceScores | null | undefined;
28
+ type: "text";
29
+ };
30
+
31
+ /** @internal */
32
+ export const OCRTextBlock$inboundSchema: z.ZodType<OCRTextBlock, unknown> = z
33
+ .object({
34
+ top_left_x: z.int(),
35
+ top_left_y: z.int(),
36
+ bottom_right_x: z.int(),
37
+ bottom_right_y: z.int(),
38
+ content: z.string(),
39
+ confidence_scores: z.nullable(OCRBlockConfidenceScores$inboundSchema)
40
+ .optional(),
41
+ type: z.literal("text"),
42
+ }).transform((v) => {
43
+ return remap$(v, {
44
+ "top_left_x": "topLeftX",
45
+ "top_left_y": "topLeftY",
46
+ "bottom_right_x": "bottomRightX",
47
+ "bottom_right_y": "bottomRightY",
48
+ "confidence_scores": "confidenceScores",
49
+ });
50
+ });
51
+
52
+ export function ocrTextBlockFromJSON(
53
+ jsonString: string,
54
+ ): SafeParseResult<OCRTextBlock, SDKValidationError> {
55
+ return safeParse(
56
+ jsonString,
57
+ (x) => OCRTextBlock$inboundSchema.parse(JSON.parse(x)),
58
+ `Failed to parse 'OCRTextBlock' from JSON`,
59
+ );
60
+ }
@@ -0,0 +1,60 @@
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 { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ OCRBlockConfidenceScores,
12
+ OCRBlockConfidenceScores$inboundSchema,
13
+ } from "./ocrblockconfidencescores.js";
14
+
15
+ export type OCRTitleBlock = {
16
+ topLeftX: number;
17
+ topLeftY: number;
18
+ bottomRightX: number;
19
+ bottomRightY: number;
20
+ /**
21
+ * Text/markdown/html content of this block
22
+ */
23
+ content: string;
24
+ /**
25
+ * Confidence scores for this block. Populated when confidence_scores_granularity is set to 'block'.
26
+ */
27
+ confidenceScores?: OCRBlockConfidenceScores | null | undefined;
28
+ type: "title";
29
+ };
30
+
31
+ /** @internal */
32
+ export const OCRTitleBlock$inboundSchema: z.ZodType<OCRTitleBlock, unknown> = z
33
+ .object({
34
+ top_left_x: z.int(),
35
+ top_left_y: z.int(),
36
+ bottom_right_x: z.int(),
37
+ bottom_right_y: z.int(),
38
+ content: z.string(),
39
+ confidence_scores: z.nullable(OCRBlockConfidenceScores$inboundSchema)
40
+ .optional(),
41
+ type: z.literal("title"),
42
+ }).transform((v) => {
43
+ return remap$(v, {
44
+ "top_left_x": "topLeftX",
45
+ "top_left_y": "topLeftY",
46
+ "bottom_right_x": "bottomRightX",
47
+ "bottom_right_y": "bottomRightY",
48
+ "confidence_scores": "confidenceScores",
49
+ });
50
+ });
51
+
52
+ export function ocrTitleBlockFromJSON(
53
+ jsonString: string,
54
+ ): SafeParseResult<OCRTitleBlock, SDKValidationError> {
55
+ return safeParse(
56
+ jsonString,
57
+ (x) => OCRTitleBlock$inboundSchema.parse(JSON.parse(x)),
58
+ `Failed to parse 'OCRTitleBlock' from JSON`,
59
+ );
60
+ }
@@ -1,6 +1,5 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: b28754b794b1
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: a1f842644807
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: 0c909c55bb1f
4
3
  */
5
4
 
6
5
  import * as z from "zod/v4";
@@ -8,7 +7,12 @@ import { ClosedEnum } from "../../types/enums.js";
8
7
 
9
8
  export const ReasoningEffort = {
10
9
  None: "none",
10
+ Minimal: "minimal",
11
+ Low: "low",
12
+ Medium: "medium",
11
13
  High: "high",
14
+ Xhigh: "xhigh",
15
+ Max: "max",
12
16
  } as const;
13
17
  export type ReasoningEffort = ClosedEnum<typeof ReasoningEffort>;
14
18