@mistralai/mistralai 3.4.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 (681) hide show
  1. package/README.md +76 -46
  2. package/esm/funcs/{betaRagManagedIndexesCreate.d.ts → betaContextSearchIndexesCreate.d.ts} +2 -2
  3. package/esm/funcs/betaContextSearchIndexesCreate.d.ts.map +1 -0
  4. package/esm/funcs/{betaRagManagedIndexesCreate.js → betaContextSearchIndexesCreate.js} +2 -2
  5. package/esm/funcs/betaContextSearchIndexesCreate.js.map +1 -0
  6. package/esm/funcs/{betaRagManagedIndexesDelete.d.ts → betaContextSearchIndexesDelete.d.ts} +2 -2
  7. package/esm/funcs/betaContextSearchIndexesDelete.d.ts.map +1 -0
  8. package/esm/funcs/{betaRagManagedIndexesDelete.js → betaContextSearchIndexesDelete.js} +2 -2
  9. package/esm/funcs/betaContextSearchIndexesDelete.js.map +1 -0
  10. package/esm/funcs/{betaRagManagedIndexesDeleteDocuments.d.ts → betaContextSearchIndexesDeleteDocuments.d.ts} +2 -2
  11. package/esm/funcs/betaContextSearchIndexesDeleteDocuments.d.ts.map +1 -0
  12. package/esm/funcs/{betaRagManagedIndexesDeleteDocuments.js → betaContextSearchIndexesDeleteDocuments.js} +2 -2
  13. package/esm/funcs/betaContextSearchIndexesDeleteDocuments.js.map +1 -0
  14. package/esm/funcs/{betaRagManagedIndexesGenerateIndexSummary.d.ts → betaContextSearchIndexesGenerateIndexSummary.d.ts} +2 -2
  15. package/esm/funcs/betaContextSearchIndexesGenerateIndexSummary.d.ts.map +1 -0
  16. package/esm/funcs/{betaRagManagedIndexesGenerateIndexSummary.js → betaContextSearchIndexesGenerateIndexSummary.js} +2 -2
  17. package/esm/funcs/betaContextSearchIndexesGenerateIndexSummary.js.map +1 -0
  18. package/esm/funcs/{betaRagManagedIndexesGet.d.ts → betaContextSearchIndexesGet.d.ts} +2 -2
  19. package/esm/funcs/{betaRagManagedIndexesDelete.d.ts.map → betaContextSearchIndexesGet.d.ts.map} +1 -1
  20. package/esm/funcs/{betaRagManagedIndexesGet.js → betaContextSearchIndexesGet.js} +2 -2
  21. package/esm/funcs/betaContextSearchIndexesGet.js.map +1 -0
  22. package/esm/funcs/{betaRagManagedIndexesGetChunk.d.ts → betaContextSearchIndexesGetChunk.d.ts} +2 -2
  23. package/esm/funcs/betaContextSearchIndexesGetChunk.d.ts.map +1 -0
  24. package/esm/funcs/{betaRagManagedIndexesGetChunk.js → betaContextSearchIndexesGetChunk.js} +2 -2
  25. package/esm/funcs/betaContextSearchIndexesGetChunk.js.map +1 -0
  26. package/esm/funcs/{betaRagManagedIndexesGetIndexSummary.d.ts → betaContextSearchIndexesGetIndexSummary.d.ts} +2 -2
  27. package/esm/funcs/betaContextSearchIndexesGetIndexSummary.d.ts.map +1 -0
  28. package/esm/funcs/{betaRagManagedIndexesGetIndexSummary.js → betaContextSearchIndexesGetIndexSummary.js} +2 -2
  29. package/esm/funcs/betaContextSearchIndexesGetIndexSummary.js.map +1 -0
  30. package/esm/funcs/{betaRagManagedIndexesGrep.d.ts → betaContextSearchIndexesGrep.d.ts} +2 -2
  31. package/esm/funcs/betaContextSearchIndexesGrep.d.ts.map +1 -0
  32. package/esm/funcs/{betaRagManagedIndexesGrep.js → betaContextSearchIndexesGrep.js} +2 -2
  33. package/esm/funcs/betaContextSearchIndexesGrep.js.map +1 -0
  34. package/esm/funcs/betaContextSearchIndexesIngestDocuments.d.ts +19 -0
  35. package/esm/funcs/betaContextSearchIndexesIngestDocuments.d.ts.map +1 -0
  36. package/esm/funcs/{betaRagManagedIndexesIngestDocuments.js → betaContextSearchIndexesIngestDocuments.js} +2 -2
  37. package/esm/funcs/betaContextSearchIndexesIngestDocuments.js.map +1 -0
  38. package/esm/funcs/{betaRagManagedIndexesList.d.ts → betaContextSearchIndexesList.d.ts} +2 -2
  39. package/esm/funcs/betaContextSearchIndexesList.d.ts.map +1 -0
  40. package/esm/funcs/{betaRagManagedIndexesList.js → betaContextSearchIndexesList.js} +3 -3
  41. package/esm/funcs/betaContextSearchIndexesList.js.map +1 -0
  42. package/esm/funcs/{betaRagManagedIndexesNavigate.d.ts → betaContextSearchIndexesNavigate.d.ts} +2 -2
  43. package/esm/funcs/betaContextSearchIndexesNavigate.d.ts.map +1 -0
  44. package/esm/funcs/{betaRagManagedIndexesNavigate.js → betaContextSearchIndexesNavigate.js} +2 -2
  45. package/esm/funcs/betaContextSearchIndexesNavigate.js.map +1 -0
  46. package/esm/funcs/{betaRagManagedIndexesRead.d.ts → betaContextSearchIndexesRead.d.ts} +2 -2
  47. package/esm/funcs/betaContextSearchIndexesRead.d.ts.map +1 -0
  48. package/esm/funcs/{betaRagManagedIndexesRead.js → betaContextSearchIndexesRead.js} +2 -2
  49. package/esm/funcs/betaContextSearchIndexesRead.js.map +1 -0
  50. package/esm/funcs/{betaRagManagedIndexesSearch.d.ts → betaContextSearchIndexesSearch.d.ts} +2 -2
  51. package/esm/funcs/betaContextSearchIndexesSearch.d.ts.map +1 -0
  52. package/esm/funcs/{betaRagManagedIndexesSearch.js → betaContextSearchIndexesSearch.js} +2 -2
  53. package/esm/funcs/betaContextSearchIndexesSearch.js.map +1 -0
  54. package/esm/funcs/{betaRagManagedIndexesSetIndexSummary.d.ts → betaContextSearchIndexesSetIndexSummary.d.ts} +2 -2
  55. package/esm/funcs/betaContextSearchIndexesSetIndexSummary.d.ts.map +1 -0
  56. package/esm/funcs/{betaRagManagedIndexesSetIndexSummary.js → betaContextSearchIndexesSetIndexSummary.js} +2 -2
  57. package/esm/funcs/betaContextSearchIndexesSetIndexSummary.js.map +1 -0
  58. package/esm/funcs/{betaRagManagedIndexesUpdate.d.ts → betaContextSearchIndexesUpdate.d.ts} +2 -2
  59. package/esm/funcs/betaContextSearchIndexesUpdate.d.ts.map +1 -0
  60. package/esm/funcs/{betaRagManagedIndexesUpdate.js → betaContextSearchIndexesUpdate.js} +2 -2
  61. package/esm/funcs/betaContextSearchIndexesUpdate.js.map +1 -0
  62. package/esm/funcs/betaTriggersCreate.d.ts +15 -0
  63. package/esm/funcs/betaTriggersCreate.d.ts.map +1 -0
  64. package/esm/funcs/betaTriggersCreate.js +80 -0
  65. package/esm/funcs/betaTriggersCreate.js.map +1 -0
  66. package/esm/funcs/betaTriggersDelete.d.ts +15 -0
  67. package/esm/funcs/betaTriggersDelete.d.ts.map +1 -0
  68. package/esm/funcs/betaTriggersDelete.js +87 -0
  69. package/esm/funcs/betaTriggersDelete.js.map +1 -0
  70. package/esm/funcs/{betaRagManagedIndexesIngestDocuments.d.ts → betaTriggersGet.d.ts} +3 -6
  71. package/esm/funcs/betaTriggersGet.d.ts.map +1 -0
  72. package/esm/funcs/betaTriggersGet.js +86 -0
  73. package/esm/funcs/betaTriggersGet.js.map +1 -0
  74. package/esm/funcs/betaTriggersList.d.ts +16 -0
  75. package/esm/funcs/betaTriggersList.d.ts.map +1 -0
  76. package/esm/funcs/betaTriggersList.js +88 -0
  77. package/esm/funcs/betaTriggersList.js.map +1 -0
  78. package/esm/funcs/betaTriggersListEvents.d.ts +16 -0
  79. package/esm/funcs/betaTriggersListEvents.d.ts.map +1 -0
  80. package/esm/funcs/betaTriggersListEvents.js +92 -0
  81. package/esm/funcs/betaTriggersListEvents.js.map +1 -0
  82. package/esm/funcs/betaWebhooksCreate.d.ts +15 -0
  83. package/esm/funcs/betaWebhooksCreate.d.ts.map +1 -0
  84. package/esm/funcs/betaWebhooksCreate.js +80 -0
  85. package/esm/funcs/betaWebhooksCreate.js.map +1 -0
  86. package/esm/funcs/betaWebhooksDelete.d.ts +15 -0
  87. package/esm/funcs/betaWebhooksDelete.d.ts.map +1 -0
  88. package/esm/funcs/betaWebhooksDelete.js +87 -0
  89. package/esm/funcs/betaWebhooksDelete.js.map +1 -0
  90. package/esm/funcs/betaWebhooksGet.d.ts +16 -0
  91. package/esm/funcs/betaWebhooksGet.d.ts.map +1 -0
  92. package/esm/funcs/betaWebhooksGet.js +86 -0
  93. package/esm/funcs/betaWebhooksGet.js.map +1 -0
  94. package/esm/funcs/betaWebhooksGetSigningSecret.d.ts +16 -0
  95. package/esm/funcs/betaWebhooksGetSigningSecret.d.ts.map +1 -0
  96. package/esm/funcs/betaWebhooksGetSigningSecret.js +88 -0
  97. package/esm/funcs/betaWebhooksGetSigningSecret.js.map +1 -0
  98. package/esm/funcs/betaWebhooksList.d.ts +14 -0
  99. package/esm/funcs/betaWebhooksList.d.ts.map +1 -0
  100. package/esm/funcs/betaWebhooksList.js +67 -0
  101. package/esm/funcs/betaWebhooksList.js.map +1 -0
  102. package/esm/funcs/workflowsAddWorkflowTags.d.ts +15 -0
  103. package/esm/funcs/workflowsAddWorkflowTags.d.ts.map +1 -0
  104. package/esm/funcs/workflowsAddWorkflowTags.js +88 -0
  105. package/esm/funcs/workflowsAddWorkflowTags.js.map +1 -0
  106. package/esm/funcs/workflowsDeploymentsGetDeploymentArchive.d.ts +22 -0
  107. package/esm/funcs/workflowsDeploymentsGetDeploymentArchive.d.ts.map +1 -0
  108. package/esm/funcs/workflowsDeploymentsGetDeploymentArchive.js +94 -0
  109. package/esm/funcs/workflowsDeploymentsGetDeploymentArchive.js.map +1 -0
  110. package/esm/lib/config.d.ts +2 -2
  111. package/esm/lib/config.js +2 -2
  112. package/esm/models/components/connectoropenapispec.d.ts +14 -0
  113. package/esm/models/components/connectoropenapispec.d.ts.map +1 -0
  114. package/esm/models/components/connectoropenapispec.js +14 -0
  115. package/esm/models/components/connectoropenapispec.js.map +1 -0
  116. package/esm/models/components/createtrigger.d.ts +34 -0
  117. package/esm/models/components/createtrigger.d.ts.map +1 -0
  118. package/esm/models/components/createtrigger.js +26 -0
  119. package/esm/models/components/createtrigger.js.map +1 -0
  120. package/esm/models/components/createtriggeraction.d.ts +18 -0
  121. package/esm/models/components/createtriggeraction.d.ts.map +1 -0
  122. package/esm/models/components/createtriggeraction.js +19 -0
  123. package/esm/models/components/createtriggeraction.js.map +1 -0
  124. package/esm/models/components/createwebhook.d.ts +62 -0
  125. package/esm/models/components/createwebhook.d.ts.map +1 -0
  126. package/esm/models/components/createwebhook.js +47 -0
  127. package/esm/models/components/createwebhook.js.map +1 -0
  128. package/esm/models/components/deploymentarchiveresponse.d.ts +20 -0
  129. package/esm/models/components/deploymentarchiveresponse.d.ts.map +1 -0
  130. package/esm/models/components/deploymentarchiveresponse.js +20 -0
  131. package/esm/models/components/deploymentarchiveresponse.js.map +1 -0
  132. package/esm/models/components/deploymentworkerspecinput.d.ts +15 -2
  133. package/esm/models/components/deploymentworkerspecinput.d.ts.map +1 -1
  134. package/esm/models/components/deploymentworkerspecinput.js +5 -1
  135. package/esm/models/components/deploymentworkerspecinput.js.map +1 -1
  136. package/esm/models/components/deploymentworkerspecresponse.d.ts +8 -0
  137. package/esm/models/components/deploymentworkerspecresponse.d.ts.map +1 -1
  138. package/esm/models/components/deploymentworkerspecresponse.js +4 -0
  139. package/esm/models/components/deploymentworkerspecresponse.js.map +1 -1
  140. package/esm/models/components/getlog.d.ts +1 -0
  141. package/esm/models/components/getlog.d.ts.map +1 -1
  142. package/esm/models/components/getlog.js +2 -0
  143. package/esm/models/components/getlog.js.map +1 -1
  144. package/esm/models/components/getspan.d.ts +1 -0
  145. package/esm/models/components/getspan.d.ts.map +1 -1
  146. package/esm/models/components/getspan.js +2 -0
  147. package/esm/models/components/getspan.js.map +1 -1
  148. package/esm/models/components/getspanevaluation.d.ts +1 -0
  149. package/esm/models/components/getspanevaluation.d.ts.map +1 -1
  150. package/esm/models/components/getspanevaluation.js +2 -0
  151. package/esm/models/components/getspanevaluation.js.map +1 -1
  152. package/esm/models/components/gettrace.d.ts +1 -0
  153. package/esm/models/components/gettrace.d.ts.map +1 -1
  154. package/esm/models/components/gettrace.js +2 -0
  155. package/esm/models/components/gettrace.js.map +1 -1
  156. package/esm/models/components/httpconnector.d.ts +5 -0
  157. package/esm/models/components/httpconnector.d.ts.map +1 -1
  158. package/esm/models/components/httpconnector.js +3 -0
  159. package/esm/models/components/httpconnector.js.map +1 -1
  160. package/esm/models/components/index.d.ts +22 -0
  161. package/esm/models/components/index.d.ts.map +1 -1
  162. package/esm/models/components/index.js +22 -0
  163. package/esm/models/components/index.js.map +1 -1
  164. package/esm/models/components/openapifilesource.d.ts +14 -0
  165. package/esm/models/components/openapifilesource.d.ts.map +1 -0
  166. package/esm/models/components/openapifilesource.js +14 -0
  167. package/esm/models/components/openapifilesource.js.map +1 -0
  168. package/esm/models/components/openapispecsource.d.ts +11 -0
  169. package/esm/models/components/openapispecsource.d.ts.map +1 -0
  170. package/esm/models/components/openapispecsource.js +16 -0
  171. package/esm/models/components/openapispecsource.js.map +1 -0
  172. package/esm/models/components/openapiurlsource.d.ts +14 -0
  173. package/esm/models/components/openapiurlsource.d.ts.map +1 -0
  174. package/esm/models/components/openapiurlsource.js +14 -0
  175. package/esm/models/components/openapiurlsource.js.map +1 -0
  176. package/esm/models/components/systemv2.d.ts +4 -0
  177. package/esm/models/components/systemv2.d.ts.map +1 -1
  178. package/esm/models/components/systemv2.js +2 -0
  179. package/esm/models/components/systemv2.js.map +1 -1
  180. package/esm/models/components/trigger.d.ts +24 -0
  181. package/esm/models/components/trigger.d.ts.map +1 -0
  182. package/esm/models/components/trigger.js +37 -0
  183. package/esm/models/components/trigger.js.map +1 -0
  184. package/esm/models/components/triggeraction.d.ts +12 -0
  185. package/esm/models/components/triggeraction.d.ts.map +1 -0
  186. package/esm/models/components/triggeraction.js +21 -0
  187. package/esm/models/components/triggeraction.js.map +1 -0
  188. package/esm/models/components/triggeractiontype.d.ts +14 -0
  189. package/esm/models/components/triggeractiontype.d.ts.map +1 -0
  190. package/esm/models/components/triggeractiontype.js +15 -0
  191. package/esm/models/components/triggeractiontype.js.map +1 -0
  192. package/esm/models/components/triggerevent.d.ts +19 -0
  193. package/esm/models/components/triggerevent.d.ts.map +1 -0
  194. package/esm/models/components/triggerevent.js +33 -0
  195. package/esm/models/components/triggerevent.js.map +1 -0
  196. package/esm/models/components/triggereventlist.d.ts +11 -0
  197. package/esm/models/components/triggereventlist.d.ts.map +1 -0
  198. package/esm/models/components/triggereventlist.js +14 -0
  199. package/esm/models/components/triggereventlist.js.map +1 -0
  200. package/esm/models/components/triggerhandler.d.ts +13 -0
  201. package/esm/models/components/triggerhandler.d.ts.map +1 -0
  202. package/esm/models/components/triggerhandler.js +14 -0
  203. package/esm/models/components/triggerhandler.js.map +1 -0
  204. package/esm/models/components/triggersownertype.d.ts +12 -0
  205. package/esm/models/components/triggersownertype.d.ts.map +1 -0
  206. package/esm/models/components/triggersownertype.js +13 -0
  207. package/esm/models/components/triggersownertype.js.map +1 -0
  208. package/esm/models/components/triggerstatusvalue.d.ts +12 -0
  209. package/esm/models/components/triggerstatusvalue.d.ts.map +1 -0
  210. package/esm/models/components/triggerstatusvalue.js +13 -0
  211. package/esm/models/components/triggerstatusvalue.js.map +1 -0
  212. package/esm/models/components/voicecreaterequest.d.ts +2 -3
  213. package/esm/models/components/voicecreaterequest.d.ts.map +1 -1
  214. package/esm/models/components/voicecreaterequest.js +2 -2
  215. package/esm/models/components/voicecreaterequest.js.map +1 -1
  216. package/esm/models/components/voiceupdaterequest.d.ts +2 -1
  217. package/esm/models/components/voiceupdaterequest.d.ts.map +1 -1
  218. package/esm/models/components/voiceupdaterequest.js +2 -1
  219. package/esm/models/components/voiceupdaterequest.js.map +1 -1
  220. package/esm/models/components/webhook.d.ts +35 -0
  221. package/esm/models/components/webhook.d.ts.map +1 -0
  222. package/esm/models/components/webhook.js +60 -0
  223. package/esm/models/components/webhook.js.map +1 -0
  224. package/esm/models/components/webhookprovider.d.ts +18 -0
  225. package/esm/models/components/webhookprovider.d.ts.map +1 -0
  226. package/esm/models/components/webhookprovider.js +19 -0
  227. package/esm/models/components/webhookprovider.js.map +1 -0
  228. package/esm/models/components/webhooksignatureencoding.d.ts +12 -0
  229. package/esm/models/components/webhooksignatureencoding.d.ts.map +1 -0
  230. package/esm/models/components/webhooksignatureencoding.js +13 -0
  231. package/esm/models/components/webhooksignatureencoding.js.map +1 -0
  232. package/esm/models/components/webhooksignaturehashalgorithm.d.ts +12 -0
  233. package/esm/models/components/webhooksignaturehashalgorithm.d.ts.map +1 -0
  234. package/esm/models/components/webhooksignaturehashalgorithm.js +13 -0
  235. package/esm/models/components/webhooksignaturehashalgorithm.js.map +1 -0
  236. package/esm/models/components/webhooksigningsecret.d.ts +13 -0
  237. package/esm/models/components/webhooksigningsecret.d.ts.map +1 -0
  238. package/esm/models/components/webhooksigningsecret.js +18 -0
  239. package/esm/models/components/webhooksigningsecret.js.map +1 -0
  240. package/esm/models/components/workflowsworkerspecupdate.d.ts +10 -0
  241. package/esm/models/components/workflowsworkerspecupdate.d.ts.map +1 -1
  242. package/esm/models/components/workflowsworkerspecupdate.js +4 -0
  243. package/esm/models/components/workflowsworkerspecupdate.js.map +1 -1
  244. package/esm/models/components/workflowtagsaddrequest.d.ts +15 -0
  245. package/esm/models/components/workflowtagsaddrequest.d.ts.map +1 -0
  246. package/esm/models/components/workflowtagsaddrequest.js +12 -0
  247. package/esm/models/components/workflowtagsaddrequest.js.map +1 -0
  248. package/esm/models/operations/addworkflowtagsv1workflowsworkflowidentifiertagspost.d.ts +15 -0
  249. package/esm/models/operations/addworkflowtagsv1workflowsworkflowidentifiertagspost.d.ts.map +1 -0
  250. package/esm/models/operations/addworkflowtagsv1workflowsworkflowidentifiertagspost.js +21 -0
  251. package/esm/models/operations/addworkflowtagsv1workflowsworkflowidentifiertagspost.js.map +1 -0
  252. package/esm/models/operations/deletetriggerv1triggerstriggeriddelete.d.ts +12 -0
  253. package/esm/models/operations/deletetriggerv1triggerstriggeriddelete.d.ts.map +1 -0
  254. package/esm/models/operations/deletetriggerv1triggerstriggeriddelete.js +17 -0
  255. package/esm/models/operations/deletetriggerv1triggerstriggeriddelete.js.map +1 -0
  256. package/esm/models/operations/deletewebhookv1webhookswebhookiddelete.d.ts +12 -0
  257. package/esm/models/operations/deletewebhookv1webhookswebhookiddelete.d.ts.map +1 -0
  258. package/esm/models/operations/deletewebhookv1webhookswebhookiddelete.js +17 -0
  259. package/esm/models/operations/deletewebhookv1webhookswebhookiddelete.js.map +1 -0
  260. package/esm/models/operations/getdeploymentarchivev1workflowsdeploymentsnamearchiveget.d.ts +12 -0
  261. package/esm/models/operations/getdeploymentarchivev1workflowsdeploymentsnamearchiveget.d.ts.map +1 -0
  262. package/esm/models/operations/getdeploymentarchivev1workflowsdeploymentsnamearchiveget.js +13 -0
  263. package/esm/models/operations/getdeploymentarchivev1workflowsdeploymentsnamearchiveget.js.map +1 -0
  264. package/esm/models/operations/gettriggerv1triggerstriggeridget.d.ts +12 -0
  265. package/esm/models/operations/gettriggerv1triggerstriggeridget.d.ts.map +1 -0
  266. package/esm/models/operations/gettriggerv1triggerstriggeridget.js +17 -0
  267. package/esm/models/operations/gettriggerv1triggerstriggeridget.js.map +1 -0
  268. package/esm/models/operations/getwebhooksigningsecretv1webhookswebhookidsigningsecretget.d.ts +12 -0
  269. package/esm/models/operations/getwebhooksigningsecretv1webhookswebhookidsigningsecretget.d.ts.map +1 -0
  270. package/esm/models/operations/getwebhooksigningsecretv1webhookswebhookidsigningsecretget.js +18 -0
  271. package/esm/models/operations/getwebhooksigningsecretv1webhookswebhookidsigningsecretget.js.map +1 -0
  272. package/esm/models/operations/getwebhookv1webhookswebhookidget.d.ts +12 -0
  273. package/esm/models/operations/getwebhookv1webhookswebhookidget.d.ts.map +1 -0
  274. package/esm/models/operations/getwebhookv1webhookswebhookidget.js +17 -0
  275. package/esm/models/operations/getwebhookv1webhookswebhookidget.js.map +1 -0
  276. package/esm/models/operations/index.d.ts +9 -0
  277. package/esm/models/operations/index.d.ts.map +1 -1
  278. package/esm/models/operations/index.js +9 -0
  279. package/esm/models/operations/index.js.map +1 -1
  280. package/esm/models/operations/listtriggereventsv1triggerstriggerideventsget.d.ts +17 -0
  281. package/esm/models/operations/listtriggereventsv1triggerstriggerideventsget.d.ts.map +1 -0
  282. package/esm/models/operations/listtriggereventsv1triggerstriggerideventsget.js +18 -0
  283. package/esm/models/operations/listtriggereventsv1triggerstriggerideventsget.js.map +1 -0
  284. package/esm/models/operations/listtriggersv1triggersget.d.ts +26 -0
  285. package/esm/models/operations/listtriggersv1triggersget.d.ts.map +1 -0
  286. package/esm/models/operations/listtriggersv1triggersget.js +21 -0
  287. package/esm/models/operations/listtriggersv1triggersget.js.map +1 -0
  288. package/esm/models/operations/skillslist.d.ts +3 -0
  289. package/esm/models/operations/skillslist.d.ts.map +1 -1
  290. package/esm/models/operations/skillslist.js.map +1 -1
  291. package/esm/sdk/beta.d.ts +9 -0
  292. package/esm/sdk/beta.d.ts.map +1 -1
  293. package/esm/sdk/beta.js +15 -0
  294. package/esm/sdk/beta.js.map +1 -1
  295. package/esm/sdk/context.d.ts +7 -0
  296. package/esm/sdk/context.d.ts.map +1 -0
  297. package/esm/sdk/context.js +12 -0
  298. package/esm/sdk/context.js.map +1 -0
  299. package/esm/sdk/{managedindexes.d.ts → contextsearchindexes.d.ts} +2 -2
  300. package/esm/sdk/contextsearchindexes.d.ts.map +1 -0
  301. package/esm/sdk/{managedindexes.js → contextsearchindexes.js} +32 -32
  302. package/esm/sdk/contextsearchindexes.js.map +1 -0
  303. package/esm/sdk/deployments.d.ts +10 -0
  304. package/esm/sdk/deployments.d.ts.map +1 -1
  305. package/esm/sdk/deployments.js +13 -0
  306. package/esm/sdk/deployments.js.map +1 -1
  307. package/esm/sdk/rag.d.ts +2 -5
  308. package/esm/sdk/rag.d.ts.map +1 -1
  309. package/esm/sdk/rag.js +2 -7
  310. package/esm/sdk/rag.js.map +1 -1
  311. package/esm/sdk/{searchindexes.d.ts → ragsearchindexes.d.ts} +2 -2
  312. package/esm/sdk/ragsearchindexes.d.ts.map +1 -0
  313. package/esm/sdk/{searchindexes.js → ragsearchindexes.js} +2 -2
  314. package/esm/sdk/ragsearchindexes.js.map +1 -0
  315. package/esm/sdk/triggers.d.ts +26 -0
  316. package/esm/sdk/triggers.d.ts.map +1 -0
  317. package/esm/sdk/triggers.js +43 -0
  318. package/esm/sdk/triggers.js.map +1 -0
  319. package/esm/sdk/webhooks.d.ts +26 -0
  320. package/esm/sdk/webhooks.d.ts.map +1 -0
  321. package/esm/sdk/webhooks.js +43 -0
  322. package/esm/sdk/webhooks.js.map +1 -0
  323. package/esm/sdk/workflows.d.ts +4 -0
  324. package/esm/sdk/workflows.d.ts.map +1 -1
  325. package/esm/sdk/workflows.js +7 -0
  326. package/esm/sdk/workflows.js.map +1 -1
  327. package/jsr.json +1 -1
  328. package/package.json +11 -11
  329. package/packages/mistralai-azure/examples/chatComplete.example.ts +0 -1
  330. package/packages/mistralai-azure/src/core.ts +0 -1
  331. package/packages/mistralai-azure/src/funcs/chatComplete.ts +1 -2
  332. package/packages/mistralai-azure/src/funcs/chatStream.ts +1 -2
  333. package/packages/mistralai-azure/src/funcs/ocrProcess.ts +1 -2
  334. package/packages/mistralai-azure/src/hooks/hooks.ts +0 -1
  335. package/packages/mistralai-azure/src/hooks/index.ts +0 -1
  336. package/packages/mistralai-azure/src/hooks/types.ts +1 -1
  337. package/packages/mistralai-azure/src/index.ts +0 -1
  338. package/packages/mistralai-azure/src/lib/base64.ts +0 -1
  339. package/packages/mistralai-azure/src/lib/config.ts +7 -8
  340. package/packages/mistralai-azure/src/lib/encodings.ts +59 -25
  341. package/packages/mistralai-azure/src/lib/env.ts +7 -4
  342. package/packages/mistralai-azure/src/lib/event-streams.ts +46 -21
  343. package/packages/mistralai-azure/src/lib/files.ts +0 -1
  344. package/packages/mistralai-azure/src/lib/http.ts +3 -2
  345. package/packages/mistralai-azure/src/lib/logger.ts +0 -1
  346. package/packages/mistralai-azure/src/lib/matchers.ts +1 -2
  347. package/packages/mistralai-azure/src/lib/primitives.ts +16 -1
  348. package/packages/mistralai-azure/src/lib/retries.ts +8 -1
  349. package/packages/mistralai-azure/src/lib/schemas.ts +0 -1
  350. package/packages/mistralai-azure/src/lib/sdks.ts +54 -18
  351. package/packages/mistralai-azure/src/lib/security.ts +10 -6
  352. package/packages/mistralai-azure/src/lib/url.ts +0 -1
  353. package/packages/mistralai-azure/src/models/components/apikeyauth.ts +0 -1
  354. package/packages/mistralai-azure/src/models/components/assistantmessage.ts +0 -1
  355. package/packages/mistralai-azure/src/models/components/builtinconnectors.ts +1 -1
  356. package/packages/mistralai-azure/src/models/components/chatcompletionchoice.ts +12 -1
  357. package/packages/mistralai-azure/src/models/components/chatcompletionrequest.ts +28 -40
  358. package/packages/mistralai-azure/src/models/components/chatcompletionresponse.ts +0 -1
  359. package/packages/mistralai-azure/src/models/components/chatcompletionresponsechoicelogprobs.ts +35 -0
  360. package/packages/mistralai-azure/src/models/components/chatcompletionresponsetokenlogprobs.ts +42 -0
  361. package/packages/mistralai-azure/src/models/components/chatcompletionresponsetokenlogprobstopk.ts +56 -0
  362. package/packages/mistralai-azure/src/models/components/chatcompletionstreamrequest.ts +28 -40
  363. package/packages/mistralai-azure/src/models/components/completionchunk.ts +0 -1
  364. package/packages/mistralai-azure/src/models/components/completionevent.ts +2 -2
  365. package/packages/mistralai-azure/src/models/components/completionresponsestreamchoice.ts +12 -1
  366. package/packages/mistralai-azure/src/models/components/contentchunk.ts +0 -1
  367. package/packages/mistralai-azure/src/models/components/customconnector.ts +5 -1
  368. package/packages/mistralai-azure/src/models/components/deltamessage.ts +0 -1
  369. package/packages/mistralai-azure/src/models/components/documentlibrarytool.ts +0 -1
  370. package/packages/mistralai-azure/src/models/components/documenturlchunk.ts +0 -1
  371. package/packages/mistralai-azure/src/models/components/filechunk.ts +0 -1
  372. package/packages/mistralai-azure/src/models/components/function.ts +0 -1
  373. package/packages/mistralai-azure/src/models/components/functioncall.ts +0 -1
  374. package/packages/mistralai-azure/src/models/components/functionname.ts +0 -1
  375. package/packages/mistralai-azure/src/models/components/guardrailconfig.ts +0 -1
  376. package/packages/mistralai-azure/src/models/components/imagedetail.ts +0 -1
  377. package/packages/mistralai-azure/src/models/components/imagegenerationtool.ts +0 -1
  378. package/packages/mistralai-azure/src/models/components/imageurl.ts +0 -1
  379. package/packages/mistralai-azure/src/models/components/imageurlchunk.ts +0 -1
  380. package/packages/mistralai-azure/src/models/components/index.ts +17 -4
  381. package/packages/mistralai-azure/src/models/components/jsonschema.ts +0 -1
  382. package/packages/mistralai-azure/src/models/components/mistralpromptmode.ts +0 -1
  383. package/packages/mistralai-azure/src/models/components/moderationllmaction.ts +0 -1
  384. package/packages/mistralai-azure/src/models/components/moderationllmv1categorythresholds.ts +0 -1
  385. package/packages/mistralai-azure/src/models/components/moderationllmv1config.ts +0 -1
  386. package/packages/mistralai-azure/src/models/components/moderationllmv2categorythresholds.ts +0 -1
  387. package/packages/mistralai-azure/src/models/components/moderationllmv2config.ts +0 -1
  388. package/packages/mistralai-azure/src/models/components/oauth2tokenauth.ts +0 -1
  389. package/packages/mistralai-azure/src/models/components/ocrasidetextblock.ts +62 -0
  390. package/packages/mistralai-azure/src/models/components/ocrblockconfidencescores.ts +59 -0
  391. package/packages/mistralai-azure/src/models/components/ocrcaptionblock.ts +62 -0
  392. package/packages/mistralai-azure/src/models/components/ocrcodeblock.ts +60 -0
  393. package/packages/mistralai-azure/src/models/components/ocrconfidencescore.ts +0 -1
  394. package/packages/mistralai-azure/src/models/components/ocrequationblock.ts +62 -0
  395. package/packages/mistralai-azure/src/models/components/ocrfooterblock.ts +60 -0
  396. package/packages/mistralai-azure/src/models/components/ocrheaderblock.ts +60 -0
  397. package/packages/mistralai-azure/src/models/components/ocrimageblock.ts +66 -0
  398. package/packages/mistralai-azure/src/models/components/ocrimageobject.ts +0 -1
  399. package/packages/mistralai-azure/src/models/components/ocrlistblock.ts +60 -0
  400. package/packages/mistralai-azure/src/models/components/ocrpageconfidencescores.ts +8 -5
  401. package/packages/mistralai-azure/src/models/components/ocrpagedimensions.ts +0 -1
  402. package/packages/mistralai-azure/src/models/components/ocrpageobject.ts +117 -1
  403. package/packages/mistralai-azure/src/models/components/ocrreferencesblock.ts +62 -0
  404. package/packages/mistralai-azure/src/models/components/ocrrequest.ts +15 -2
  405. package/packages/mistralai-azure/src/models/components/ocrresponse.ts +0 -1
  406. package/packages/mistralai-azure/src/models/components/ocrsignatureblock.ts +65 -0
  407. package/packages/mistralai-azure/src/models/components/ocrtableblock.ts +66 -0
  408. package/packages/mistralai-azure/src/models/components/ocrtableobject.ts +0 -1
  409. package/packages/mistralai-azure/src/models/components/ocrtextblock.ts +60 -0
  410. package/packages/mistralai-azure/src/models/components/ocrtitleblock.ts +60 -0
  411. package/packages/mistralai-azure/src/models/components/ocrusageinfo.ts +0 -1
  412. package/packages/mistralai-azure/src/models/components/prediction.ts +0 -1
  413. package/packages/mistralai-azure/src/models/components/reasoningeffort.ts +5 -1
  414. package/packages/mistralai-azure/src/models/components/referencechunk.ts +0 -1
  415. package/packages/mistralai-azure/src/models/components/responseformat.ts +0 -1
  416. package/packages/mistralai-azure/src/models/components/responseformats.ts +0 -1
  417. package/packages/mistralai-azure/src/models/components/security.ts +0 -1
  418. package/packages/mistralai-azure/src/models/components/systemmessage.ts +0 -1
  419. package/packages/mistralai-azure/src/models/components/systemmessagecontentchunks.ts +0 -1
  420. package/packages/mistralai-azure/src/models/components/textchunk.ts +0 -1
  421. package/packages/mistralai-azure/src/models/components/thinkchunk.ts +0 -1
  422. package/packages/mistralai-azure/src/models/components/tool.ts +0 -1
  423. package/packages/mistralai-azure/src/models/components/toolcall.ts +3 -4
  424. package/packages/mistralai-azure/src/models/components/toolchoice.ts +2 -3
  425. package/packages/mistralai-azure/src/models/components/toolchoiceenum.ts +0 -1
  426. package/packages/mistralai-azure/src/models/components/toolconfiguration.ts +0 -1
  427. package/packages/mistralai-azure/src/models/components/toolmessage.ts +0 -1
  428. package/packages/mistralai-azure/src/models/components/toolreferencechunk.ts +0 -1
  429. package/packages/mistralai-azure/src/models/components/usageinfo.ts +0 -1
  430. package/packages/mistralai-azure/src/models/components/usermessage.ts +0 -1
  431. package/packages/mistralai-azure/src/models/components/validationerror.ts +0 -1
  432. package/packages/mistralai-azure/src/models/errors/httpclienterrors.ts +0 -1
  433. package/packages/mistralai-azure/src/models/errors/httpvalidationerror.ts +0 -1
  434. package/packages/mistralai-azure/src/models/errors/index.ts +0 -1
  435. package/packages/mistralai-azure/src/models/errors/mistralazureerror.ts +0 -1
  436. package/packages/mistralai-azure/src/models/errors/responsevalidationerror.ts +0 -1
  437. package/packages/mistralai-azure/src/models/errors/sdkerror.ts +0 -1
  438. package/packages/mistralai-azure/src/models/errors/sdkvalidationerror.ts +0 -1
  439. package/packages/mistralai-azure/src/sdk/chat.ts +0 -1
  440. package/packages/mistralai-azure/src/sdk/index.ts +0 -1
  441. package/packages/mistralai-azure/src/sdk/ocr.ts +0 -1
  442. package/packages/mistralai-azure/src/types/async.ts +0 -1
  443. package/packages/mistralai-azure/src/types/blobs.ts +0 -1
  444. package/packages/mistralai-azure/src/types/constdatetime.ts +0 -1
  445. package/packages/mistralai-azure/src/types/discriminatedUnion.ts +0 -1
  446. package/packages/mistralai-azure/src/types/enums.ts +0 -1
  447. package/packages/mistralai-azure/src/types/fp.ts +0 -1
  448. package/packages/mistralai-azure/src/types/index.ts +0 -1
  449. package/packages/mistralai-azure/src/types/operations.ts +0 -1
  450. package/packages/mistralai-azure/src/types/rfcdate.ts +0 -1
  451. package/packages/mistralai-azure/src/types/smartUnion.ts +0 -1
  452. package/packages/mistralai-azure/src/types/streams.ts +0 -1
  453. package/packages/mistralai-azure/src/types/unrecognized.ts +0 -1
  454. package/packages/mistralai-gcp/examples/chatComplete.example.ts +0 -1
  455. package/packages/mistralai-gcp/src/core.ts +0 -1
  456. package/packages/mistralai-gcp/src/funcs/chatComplete.ts +1 -2
  457. package/packages/mistralai-gcp/src/funcs/chatStream.ts +1 -2
  458. package/packages/mistralai-gcp/src/funcs/fimComplete.ts +1 -2
  459. package/packages/mistralai-gcp/src/funcs/fimStream.ts +1 -2
  460. package/packages/mistralai-gcp/src/hooks/hooks.ts +0 -1
  461. package/packages/mistralai-gcp/src/hooks/index.ts +0 -1
  462. package/packages/mistralai-gcp/src/hooks/types.ts +1 -1
  463. package/packages/mistralai-gcp/src/index.ts +0 -1
  464. package/packages/mistralai-gcp/src/lib/base64.ts +0 -1
  465. package/packages/mistralai-gcp/src/lib/config.ts +7 -8
  466. package/packages/mistralai-gcp/src/lib/encodings.ts +59 -25
  467. package/packages/mistralai-gcp/src/lib/event-streams.ts +46 -21
  468. package/packages/mistralai-gcp/src/lib/files.ts +0 -1
  469. package/packages/mistralai-gcp/src/lib/http.ts +3 -2
  470. package/packages/mistralai-gcp/src/lib/logger.ts +0 -1
  471. package/packages/mistralai-gcp/src/lib/matchers.ts +1 -2
  472. package/packages/mistralai-gcp/src/lib/primitives.ts +16 -1
  473. package/packages/mistralai-gcp/src/lib/retries.ts +8 -1
  474. package/packages/mistralai-gcp/src/lib/schemas.ts +0 -1
  475. package/packages/mistralai-gcp/src/lib/sdks.ts +54 -18
  476. package/packages/mistralai-gcp/src/lib/security.ts +10 -6
  477. package/packages/mistralai-gcp/src/lib/url.ts +0 -1
  478. package/packages/mistralai-gcp/src/models/components/apikeyauth.ts +0 -1
  479. package/packages/mistralai-gcp/src/models/components/assistantmessage.ts +0 -1
  480. package/packages/mistralai-gcp/src/models/components/builtinconnectors.ts +1 -1
  481. package/packages/mistralai-gcp/src/models/components/chatcompletionchoice.ts +12 -1
  482. package/packages/mistralai-gcp/src/models/components/chatcompletionrequest.ts +28 -40
  483. package/packages/mistralai-gcp/src/models/components/chatcompletionresponse.ts +0 -1
  484. package/packages/mistralai-gcp/src/models/components/chatcompletionresponsechoicelogprobs.ts +35 -0
  485. package/packages/mistralai-gcp/src/models/components/chatcompletionresponsetokenlogprobs.ts +42 -0
  486. package/packages/mistralai-gcp/src/models/components/chatcompletionresponsetokenlogprobstopk.ts +56 -0
  487. package/packages/mistralai-gcp/src/models/components/chatcompletionstreamrequest.ts +28 -40
  488. package/packages/mistralai-gcp/src/models/components/completionchunk.ts +0 -1
  489. package/packages/mistralai-gcp/src/models/components/completionevent.ts +2 -2
  490. package/packages/mistralai-gcp/src/models/components/completionresponsestreamchoice.ts +12 -1
  491. package/packages/mistralai-gcp/src/models/components/contentchunk.ts +0 -1
  492. package/packages/mistralai-gcp/src/models/components/customconnector.ts +0 -1
  493. package/packages/mistralai-gcp/src/models/components/deltamessage.ts +0 -1
  494. package/packages/mistralai-gcp/src/models/components/documentlibrarytool.ts +0 -1
  495. package/packages/mistralai-gcp/src/models/components/fimcompletionrequest.ts +0 -1
  496. package/packages/mistralai-gcp/src/models/components/fimcompletionresponse.ts +0 -1
  497. package/packages/mistralai-gcp/src/models/components/fimcompletionstreamrequest.ts +0 -1
  498. package/packages/mistralai-gcp/src/models/components/function.ts +0 -1
  499. package/packages/mistralai-gcp/src/models/components/functioncall.ts +0 -1
  500. package/packages/mistralai-gcp/src/models/components/functionname.ts +0 -1
  501. package/packages/mistralai-gcp/src/models/components/guardrailconfig.ts +0 -1
  502. package/packages/mistralai-gcp/src/models/components/imagedetail.ts +0 -1
  503. package/packages/mistralai-gcp/src/models/components/imagegenerationtool.ts +0 -1
  504. package/packages/mistralai-gcp/src/models/components/imageurl.ts +0 -1
  505. package/packages/mistralai-gcp/src/models/components/imageurlchunk.ts +0 -1
  506. package/packages/mistralai-gcp/src/models/components/index.ts +3 -4
  507. package/packages/mistralai-gcp/src/models/components/jsonschema.ts +0 -1
  508. package/packages/mistralai-gcp/src/models/components/mistralpromptmode.ts +0 -1
  509. package/packages/mistralai-gcp/src/models/components/moderationllmaction.ts +0 -1
  510. package/packages/mistralai-gcp/src/models/components/moderationllmv1categorythresholds.ts +0 -1
  511. package/packages/mistralai-gcp/src/models/components/moderationllmv1config.ts +0 -1
  512. package/packages/mistralai-gcp/src/models/components/moderationllmv2categorythresholds.ts +0 -1
  513. package/packages/mistralai-gcp/src/models/components/moderationllmv2config.ts +0 -1
  514. package/packages/mistralai-gcp/src/models/components/oauth2tokenauth.ts +0 -1
  515. package/packages/mistralai-gcp/src/models/components/prediction.ts +0 -1
  516. package/packages/mistralai-gcp/src/models/components/reasoningeffort.ts +5 -1
  517. package/packages/mistralai-gcp/src/models/components/referencechunk.ts +0 -1
  518. package/packages/mistralai-gcp/src/models/components/responseformat.ts +0 -1
  519. package/packages/mistralai-gcp/src/models/components/responseformats.ts +0 -1
  520. package/packages/mistralai-gcp/src/models/components/security.ts +0 -1
  521. package/packages/mistralai-gcp/src/models/components/systemmessage.ts +0 -1
  522. package/packages/mistralai-gcp/src/models/components/systemmessagecontentchunks.ts +0 -1
  523. package/packages/mistralai-gcp/src/models/components/textchunk.ts +0 -1
  524. package/packages/mistralai-gcp/src/models/components/thinkchunk.ts +0 -1
  525. package/packages/mistralai-gcp/src/models/components/tool.ts +0 -1
  526. package/packages/mistralai-gcp/src/models/components/toolcall.ts +3 -4
  527. package/packages/mistralai-gcp/src/models/components/toolchoice.ts +2 -3
  528. package/packages/mistralai-gcp/src/models/components/toolchoiceenum.ts +0 -1
  529. package/packages/mistralai-gcp/src/models/components/toolconfiguration.ts +0 -1
  530. package/packages/mistralai-gcp/src/models/components/toolmessage.ts +0 -1
  531. package/packages/mistralai-gcp/src/models/components/toolreferencechunk.ts +0 -1
  532. package/packages/mistralai-gcp/src/models/components/usageinfo.ts +0 -1
  533. package/packages/mistralai-gcp/src/models/components/usermessage.ts +0 -1
  534. package/packages/mistralai-gcp/src/models/components/validationerror.ts +0 -1
  535. package/packages/mistralai-gcp/src/models/errors/httpclienterrors.ts +0 -1
  536. package/packages/mistralai-gcp/src/models/errors/httpvalidationerror.ts +0 -1
  537. package/packages/mistralai-gcp/src/models/errors/index.ts +0 -1
  538. package/packages/mistralai-gcp/src/models/errors/mistralgcperror.ts +0 -1
  539. package/packages/mistralai-gcp/src/models/errors/responsevalidationerror.ts +0 -1
  540. package/packages/mistralai-gcp/src/models/errors/sdkerror.ts +0 -1
  541. package/packages/mistralai-gcp/src/models/errors/sdkvalidationerror.ts +0 -1
  542. package/packages/mistralai-gcp/src/sdk/chat.ts +0 -1
  543. package/packages/mistralai-gcp/src/sdk/fim.ts +0 -1
  544. package/packages/mistralai-gcp/src/sdk/index.ts +0 -1
  545. package/packages/mistralai-gcp/src/types/async.ts +0 -1
  546. package/packages/mistralai-gcp/src/types/blobs.ts +0 -1
  547. package/packages/mistralai-gcp/src/types/constdatetime.ts +0 -1
  548. package/packages/mistralai-gcp/src/types/discriminatedUnion.ts +0 -1
  549. package/packages/mistralai-gcp/src/types/enums.ts +0 -1
  550. package/packages/mistralai-gcp/src/types/fp.ts +0 -1
  551. package/packages/mistralai-gcp/src/types/index.ts +0 -1
  552. package/packages/mistralai-gcp/src/types/operations.ts +0 -1
  553. package/packages/mistralai-gcp/src/types/rfcdate.ts +0 -1
  554. package/packages/mistralai-gcp/src/types/smartUnion.ts +0 -1
  555. package/packages/mistralai-gcp/src/types/streams.ts +0 -1
  556. package/packages/mistralai-gcp/src/types/unrecognized.ts +0 -1
  557. package/src/funcs/{betaRagManagedIndexesCreate.ts → betaContextSearchIndexesCreate.ts} +1 -1
  558. package/src/funcs/{betaRagManagedIndexesDelete.ts → betaContextSearchIndexesDelete.ts} +1 -1
  559. package/src/funcs/{betaRagManagedIndexesDeleteDocuments.ts → betaContextSearchIndexesDeleteDocuments.ts} +1 -1
  560. package/src/funcs/{betaRagManagedIndexesGenerateIndexSummary.ts → betaContextSearchIndexesGenerateIndexSummary.ts} +1 -1
  561. package/src/funcs/{betaRagManagedIndexesGet.ts → betaContextSearchIndexesGet.ts} +1 -1
  562. package/src/funcs/{betaRagManagedIndexesGetChunk.ts → betaContextSearchIndexesGetChunk.ts} +1 -1
  563. package/src/funcs/{betaRagManagedIndexesGetIndexSummary.ts → betaContextSearchIndexesGetIndexSummary.ts} +1 -1
  564. package/src/funcs/{betaRagManagedIndexesGrep.ts → betaContextSearchIndexesGrep.ts} +1 -1
  565. package/src/funcs/{betaRagManagedIndexesIngestDocuments.ts → betaContextSearchIndexesIngestDocuments.ts} +1 -1
  566. package/src/funcs/{betaRagManagedIndexesList.ts → betaContextSearchIndexesList.ts} +2 -2
  567. package/src/funcs/{betaRagManagedIndexesNavigate.ts → betaContextSearchIndexesNavigate.ts} +1 -1
  568. package/src/funcs/{betaRagManagedIndexesRead.ts → betaContextSearchIndexesRead.ts} +1 -1
  569. package/src/funcs/{betaRagManagedIndexesSearch.ts → betaContextSearchIndexesSearch.ts} +1 -1
  570. package/src/funcs/{betaRagManagedIndexesSetIndexSummary.ts → betaContextSearchIndexesSetIndexSummary.ts} +1 -1
  571. package/src/funcs/{betaRagManagedIndexesUpdate.ts → betaContextSearchIndexesUpdate.ts} +1 -1
  572. package/src/funcs/betaTriggersCreate.ts +168 -0
  573. package/src/funcs/betaTriggersDelete.ts +176 -0
  574. package/src/funcs/betaTriggersGet.ts +177 -0
  575. package/src/funcs/betaTriggersList.ts +178 -0
  576. package/src/funcs/betaTriggersListEvents.ts +182 -0
  577. package/src/funcs/betaWebhooksCreate.ts +168 -0
  578. package/src/funcs/betaWebhooksDelete.ts +176 -0
  579. package/src/funcs/betaWebhooksGet.ts +177 -0
  580. package/src/funcs/betaWebhooksGetSigningSecret.ts +182 -0
  581. package/src/funcs/betaWebhooksList.ts +142 -0
  582. package/src/funcs/workflowsAddWorkflowTags.ts +186 -0
  583. package/src/funcs/workflowsDeploymentsGetDeploymentArchive.ts +188 -0
  584. package/src/lib/config.ts +2 -2
  585. package/src/models/components/connectoropenapispec.ts +37 -0
  586. package/src/models/components/createtrigger.ts +69 -0
  587. package/src/models/components/createtriggeraction.ts +45 -0
  588. package/src/models/components/createwebhook.ts +121 -0
  589. package/src/models/components/deploymentarchiveresponse.ts +47 -0
  590. package/src/models/components/deploymentworkerspecinput.ts +20 -3
  591. package/src/models/components/deploymentworkerspecresponse.ts +12 -0
  592. package/src/models/components/getlog.ts +3 -0
  593. package/src/models/components/getspan.ts +3 -0
  594. package/src/models/components/getspanevaluation.ts +3 -0
  595. package/src/models/components/gettrace.ts +3 -0
  596. package/src/models/components/httpconnector.ts +10 -0
  597. package/src/models/components/index.ts +22 -0
  598. package/src/models/components/openapifilesource.ts +35 -0
  599. package/src/models/components/openapispecsource.ts +42 -0
  600. package/src/models/components/openapiurlsource.ts +35 -0
  601. package/src/models/components/systemv2.ts +4 -0
  602. package/src/models/components/trigger.ts +67 -0
  603. package/src/models/components/triggeraction.ts +39 -0
  604. package/src/models/components/triggeractiontype.ts +26 -0
  605. package/src/models/components/triggerevent.ts +62 -0
  606. package/src/models/components/triggereventlist.ts +31 -0
  607. package/src/models/components/triggerhandler.ts +21 -0
  608. package/src/models/components/triggersownertype.ts +24 -0
  609. package/src/models/components/triggerstatusvalue.ts +21 -0
  610. package/src/models/components/voicecreaterequest.ts +3 -5
  611. package/src/models/components/voiceupdaterequest.ts +3 -2
  612. package/src/models/components/webhook.ts +111 -0
  613. package/src/models/components/webhookprovider.ts +30 -0
  614. package/src/models/components/webhooksignatureencoding.ts +26 -0
  615. package/src/models/components/webhooksignaturehashalgorithm.ts +26 -0
  616. package/src/models/components/webhooksigningsecret.ts +38 -0
  617. package/src/models/components/workflowsworkerspecupdate.ts +14 -0
  618. package/src/models/components/workflowtagsaddrequest.ts +33 -0
  619. package/src/models/operations/addworkflowtagsv1workflowsworkflowidentifiertagspost.ts +44 -0
  620. package/src/models/operations/deletetriggerv1triggerstriggeriddelete.ts +39 -0
  621. package/src/models/operations/deletewebhookv1webhookswebhookiddelete.ts +39 -0
  622. package/src/models/operations/getdeploymentarchivev1workflowsdeploymentsnamearchiveget.ts +34 -0
  623. package/src/models/operations/gettriggerv1triggerstriggeridget.ts +38 -0
  624. package/src/models/operations/getwebhooksigningsecretv1webhookswebhookidsigningsecretget.ts +40 -0
  625. package/src/models/operations/getwebhookv1webhookswebhookidget.ts +38 -0
  626. package/src/models/operations/index.ts +9 -0
  627. package/src/models/operations/listtriggereventsv1triggerstriggerideventsget.ts +45 -0
  628. package/src/models/operations/listtriggersv1triggersget.ts +54 -0
  629. package/src/models/operations/skillslist.ts +3 -0
  630. package/src/sdk/beta.ts +18 -0
  631. package/src/sdk/context.ts +13 -0
  632. package/src/sdk/{managedindexes.ts → contextsearchindexes.ts} +31 -31
  633. package/src/sdk/deployments.ts +22 -0
  634. package/src/sdk/rag.ts +4 -10
  635. package/src/sdk/{searchindexes.ts → ragsearchindexes.ts} +1 -1
  636. package/src/sdk/triggers.ts +85 -0
  637. package/src/sdk/webhooks.ts +84 -0
  638. package/src/sdk/workflows.ts +16 -0
  639. package/esm/funcs/betaRagManagedIndexesCreate.d.ts.map +0 -1
  640. package/esm/funcs/betaRagManagedIndexesCreate.js.map +0 -1
  641. package/esm/funcs/betaRagManagedIndexesDelete.js.map +0 -1
  642. package/esm/funcs/betaRagManagedIndexesDeleteDocuments.d.ts.map +0 -1
  643. package/esm/funcs/betaRagManagedIndexesDeleteDocuments.js.map +0 -1
  644. package/esm/funcs/betaRagManagedIndexesGenerateIndexSummary.d.ts.map +0 -1
  645. package/esm/funcs/betaRagManagedIndexesGenerateIndexSummary.js.map +0 -1
  646. package/esm/funcs/betaRagManagedIndexesGet.d.ts.map +0 -1
  647. package/esm/funcs/betaRagManagedIndexesGet.js.map +0 -1
  648. package/esm/funcs/betaRagManagedIndexesGetChunk.d.ts.map +0 -1
  649. package/esm/funcs/betaRagManagedIndexesGetChunk.js.map +0 -1
  650. package/esm/funcs/betaRagManagedIndexesGetIndexSummary.d.ts.map +0 -1
  651. package/esm/funcs/betaRagManagedIndexesGetIndexSummary.js.map +0 -1
  652. package/esm/funcs/betaRagManagedIndexesGrep.d.ts.map +0 -1
  653. package/esm/funcs/betaRagManagedIndexesGrep.js.map +0 -1
  654. package/esm/funcs/betaRagManagedIndexesIngestDocuments.d.ts.map +0 -1
  655. package/esm/funcs/betaRagManagedIndexesIngestDocuments.js.map +0 -1
  656. package/esm/funcs/betaRagManagedIndexesList.d.ts.map +0 -1
  657. package/esm/funcs/betaRagManagedIndexesList.js.map +0 -1
  658. package/esm/funcs/betaRagManagedIndexesNavigate.d.ts.map +0 -1
  659. package/esm/funcs/betaRagManagedIndexesNavigate.js.map +0 -1
  660. package/esm/funcs/betaRagManagedIndexesRead.d.ts.map +0 -1
  661. package/esm/funcs/betaRagManagedIndexesRead.js.map +0 -1
  662. package/esm/funcs/betaRagManagedIndexesSearch.d.ts.map +0 -1
  663. package/esm/funcs/betaRagManagedIndexesSearch.js.map +0 -1
  664. package/esm/funcs/betaRagManagedIndexesSetIndexSummary.d.ts.map +0 -1
  665. package/esm/funcs/betaRagManagedIndexesSetIndexSummary.js.map +0 -1
  666. package/esm/funcs/betaRagManagedIndexesUpdate.d.ts.map +0 -1
  667. package/esm/funcs/betaRagManagedIndexesUpdate.js.map +0 -1
  668. package/esm/sdk/managedindexes.d.ts.map +0 -1
  669. package/esm/sdk/managedindexes.js.map +0 -1
  670. package/esm/sdk/searchindexes.d.ts.map +0 -1
  671. package/esm/sdk/searchindexes.js.map +0 -1
  672. package/packages/mistralai-azure/src/lib/dlv.ts +0 -54
  673. package/packages/mistralai-azure/src/lib/is-plain-object.ts +0 -44
  674. package/packages/mistralai-azure/src/models/components/codeinterpretertool.ts +0 -44
  675. package/packages/mistralai-azure/src/models/components/websearchpremiumtool.ts +0 -44
  676. package/packages/mistralai-azure/src/models/components/websearchtool.ts +0 -40
  677. package/packages/mistralai-gcp/src/lib/dlv.ts +0 -54
  678. package/packages/mistralai-gcp/src/lib/is-plain-object.ts +0 -44
  679. package/packages/mistralai-gcp/src/models/components/codeinterpretertool.ts +0 -44
  680. package/packages/mistralai-gcp/src/models/components/websearchpremiumtool.ts +0 -44
  681. package/packages/mistralai-gcp/src/models/components/websearchtool.ts +0 -40
@@ -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 OCRCodeBlock = {
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: "code";
29
+ };
30
+
31
+ /** @internal */
32
+ export const OCRCodeBlock$inboundSchema: z.ZodType<OCRCodeBlock, 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("code"),
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 ocrCodeBlockFromJSON(
53
+ jsonString: string,
54
+ ): SafeParseResult<OCRCodeBlock, SDKValidationError> {
55
+ return safeParse(
56
+ jsonString,
57
+ (x) => OCRCodeBlock$inboundSchema.parse(JSON.parse(x)),
58
+ `Failed to parse 'OCRCodeBlock' 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: f0ae261a8be7
4
3
  */
5
4
 
6
5
  import * as z from "zod/v4";
@@ -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 OCREquationBlock = {
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: "equation";
29
+ };
30
+
31
+ /** @internal */
32
+ export const OCREquationBlock$inboundSchema: z.ZodType<
33
+ OCREquationBlock,
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("equation"),
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 ocrEquationBlockFromJSON(
55
+ jsonString: string,
56
+ ): SafeParseResult<OCREquationBlock, SDKValidationError> {
57
+ return safeParse(
58
+ jsonString,
59
+ (x) => OCREquationBlock$inboundSchema.parse(JSON.parse(x)),
60
+ `Failed to parse 'OCREquationBlock' from JSON`,
61
+ );
62
+ }
@@ -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 OCRFooterBlock = {
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: "footer";
29
+ };
30
+
31
+ /** @internal */
32
+ export const OCRFooterBlock$inboundSchema: z.ZodType<OCRFooterBlock, unknown> =
33
+ z.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("footer"),
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 ocrFooterBlockFromJSON(
53
+ jsonString: string,
54
+ ): SafeParseResult<OCRFooterBlock, SDKValidationError> {
55
+ return safeParse(
56
+ jsonString,
57
+ (x) => OCRFooterBlock$inboundSchema.parse(JSON.parse(x)),
58
+ `Failed to parse 'OCRFooterBlock' 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 OCRHeaderBlock = {
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: "header";
29
+ };
30
+
31
+ /** @internal */
32
+ export const OCRHeaderBlock$inboundSchema: z.ZodType<OCRHeaderBlock, unknown> =
33
+ z.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("header"),
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 ocrHeaderBlockFromJSON(
53
+ jsonString: string,
54
+ ): SafeParseResult<OCRHeaderBlock, SDKValidationError> {
55
+ return safeParse(
56
+ jsonString,
57
+ (x) => OCRHeaderBlock$inboundSchema.parse(JSON.parse(x)),
58
+ `Failed to parse 'OCRHeaderBlock' from JSON`,
59
+ );
60
+ }
@@ -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 OCRImageBlock = {
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: "image";
29
+ /**
30
+ * References the corresponding entry in OCRPageObject.images
31
+ */
32
+ imageId: string;
33
+ };
34
+
35
+ /** @internal */
36
+ export const OCRImageBlock$inboundSchema: z.ZodType<OCRImageBlock, 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("image"),
46
+ image_id: z.string(),
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
+ "image_id": "imageId",
55
+ });
56
+ });
57
+
58
+ export function ocrImageBlockFromJSON(
59
+ jsonString: string,
60
+ ): SafeParseResult<OCRImageBlock, SDKValidationError> {
61
+ return safeParse(
62
+ jsonString,
63
+ (x) => OCRImageBlock$inboundSchema.parse(JSON.parse(x)),
64
+ `Failed to parse 'OCRImageBlock' 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: 8f5d7dd401b0
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 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
+ }