@mistralai/mistralai 2.6.1 → 2.6.3

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 (344) hide show
  1. package/README.md +11 -2
  2. package/esm/funcs/betaUsersListOrganizations.d.ts +23 -0
  3. package/esm/funcs/betaUsersListOrganizations.d.ts.map +1 -0
  4. package/esm/funcs/betaUsersListOrganizations.js +128 -0
  5. package/esm/funcs/betaUsersListOrganizations.js.map +1 -0
  6. package/esm/funcs/betaUsersListWorkspaces.d.ts +21 -0
  7. package/esm/funcs/betaUsersListWorkspaces.d.ts.map +1 -0
  8. package/esm/funcs/betaUsersListWorkspaces.js +126 -0
  9. package/esm/funcs/betaUsersListWorkspaces.js.map +1 -0
  10. package/esm/funcs/realtimeSessionsCreate.d.ts +16 -0
  11. package/esm/funcs/realtimeSessionsCreate.d.ts.map +1 -0
  12. package/esm/funcs/realtimeSessionsCreate.js +82 -0
  13. package/esm/funcs/realtimeSessionsCreate.js.map +1 -0
  14. package/esm/funcs/workflowsDeploymentsGetDeployment.js +5 -1
  15. package/esm/funcs/workflowsDeploymentsGetDeployment.js.map +1 -1
  16. package/esm/lib/config.d.ts +2 -2
  17. package/esm/lib/config.js +2 -2
  18. package/esm/models/components/activitytaskcompletedresponse.d.ts +12 -0
  19. package/esm/models/components/activitytaskcompletedresponse.d.ts.map +1 -1
  20. package/esm/models/components/activitytaskcompletedresponse.js +6 -0
  21. package/esm/models/components/activitytaskcompletedresponse.js.map +1 -1
  22. package/esm/models/components/activitytaskfailedresponse.d.ts +12 -0
  23. package/esm/models/components/activitytaskfailedresponse.d.ts.map +1 -1
  24. package/esm/models/components/activitytaskfailedresponse.js +6 -0
  25. package/esm/models/components/activitytaskfailedresponse.js.map +1 -1
  26. package/esm/models/components/activitytaskretryingresponse.d.ts +12 -0
  27. package/esm/models/components/activitytaskretryingresponse.d.ts.map +1 -1
  28. package/esm/models/components/activitytaskretryingresponse.js +6 -0
  29. package/esm/models/components/activitytaskretryingresponse.js.map +1 -1
  30. package/esm/models/components/activitytaskstartedresponse.d.ts +12 -0
  31. package/esm/models/components/activitytaskstartedresponse.d.ts.map +1 -1
  32. package/esm/models/components/activitytaskstartedresponse.js +6 -0
  33. package/esm/models/components/activitytaskstartedresponse.js.map +1 -1
  34. package/esm/models/components/agentscompletionrequest.d.ts +6 -0
  35. package/esm/models/components/agentscompletionrequest.d.ts.map +1 -1
  36. package/esm/models/components/agentscompletionrequest.js +3 -0
  37. package/esm/models/components/agentscompletionrequest.js.map +1 -1
  38. package/esm/models/components/agentscompletionstreamrequest.d.ts +6 -0
  39. package/esm/models/components/agentscompletionstreamrequest.d.ts.map +1 -1
  40. package/esm/models/components/agentscompletionstreamrequest.js +3 -0
  41. package/esm/models/components/agentscompletionstreamrequest.js.map +1 -1
  42. package/esm/models/components/authdirection.d.ts +10 -0
  43. package/esm/models/components/authdirection.d.ts.map +1 -0
  44. package/esm/models/components/authdirection.js +13 -0
  45. package/esm/models/components/authdirection.js.map +1 -0
  46. package/esm/models/components/authenticationmethodcreateorupdaterequest.d.ts +57 -0
  47. package/esm/models/components/authenticationmethodcreateorupdaterequest.d.ts.map +1 -0
  48. package/esm/models/components/authenticationmethodcreateorupdaterequest.js +50 -0
  49. package/esm/models/components/authenticationmethodcreateorupdaterequest.js.map +1 -0
  50. package/esm/models/components/chatcompletionrequest.d.ts +6 -0
  51. package/esm/models/components/chatcompletionrequest.d.ts.map +1 -1
  52. package/esm/models/components/chatcompletionrequest.js +3 -0
  53. package/esm/models/components/chatcompletionrequest.js.map +1 -1
  54. package/esm/models/components/chatcompletionstreamrequest.d.ts +6 -0
  55. package/esm/models/components/chatcompletionstreamrequest.d.ts.map +1 -1
  56. package/esm/models/components/chatcompletionstreamrequest.js +3 -0
  57. package/esm/models/components/chatcompletionstreamrequest.js.map +1 -1
  58. package/esm/models/components/clientsecret.d.ts +11 -0
  59. package/esm/models/components/clientsecret.d.ts.map +1 -0
  60. package/esm/models/components/clientsecret.js +21 -0
  61. package/esm/models/components/clientsecret.js.map +1 -0
  62. package/esm/models/components/clientsessionpurpose.d.ts +15 -0
  63. package/esm/models/components/clientsessionpurpose.d.ts.map +1 -0
  64. package/esm/models/components/clientsessionpurpose.js +14 -0
  65. package/esm/models/components/clientsessionpurpose.js.map +1 -0
  66. package/esm/models/components/connectorauthenticationheader.d.ts +11 -2
  67. package/esm/models/components/connectorauthenticationheader.d.ts.map +1 -1
  68. package/esm/models/components/connectorauthenticationheader.js +14 -0
  69. package/esm/models/components/connectorauthenticationheader.js.map +1 -1
  70. package/esm/models/components/createconnectorrequest.d.ts +15 -0
  71. package/esm/models/components/createconnectorrequest.d.ts.map +1 -1
  72. package/esm/models/components/createconnectorrequest.js +5 -0
  73. package/esm/models/components/createconnectorrequest.js.map +1 -1
  74. package/esm/models/components/createingestionpipelineconfigurationrequest.d.ts +3 -0
  75. package/esm/models/components/createingestionpipelineconfigurationrequest.d.ts.map +1 -1
  76. package/esm/models/components/createingestionpipelineconfigurationrequest.js +3 -0
  77. package/esm/models/components/createingestionpipelineconfigurationrequest.js.map +1 -1
  78. package/esm/models/components/createrealtimesessionrequest.d.ts +17 -0
  79. package/esm/models/components/createrealtimesessionrequest.d.ts.map +1 -0
  80. package/esm/models/components/createrealtimesessionrequest.js +14 -0
  81. package/esm/models/components/createrealtimesessionrequest.js.map +1 -0
  82. package/esm/models/components/createrealtimesessionresponse.d.ts +18 -0
  83. package/esm/models/components/createrealtimesessionresponse.d.ts.map +1 -0
  84. package/esm/models/components/createrealtimesessionresponse.js +25 -0
  85. package/esm/models/components/createrealtimesessionresponse.js.map +1 -0
  86. package/esm/models/components/customtaskcanceledresponse.d.ts +12 -0
  87. package/esm/models/components/customtaskcanceledresponse.d.ts.map +1 -1
  88. package/esm/models/components/customtaskcanceledresponse.js +6 -0
  89. package/esm/models/components/customtaskcanceledresponse.js.map +1 -1
  90. package/esm/models/components/customtaskcompletedresponse.d.ts +12 -0
  91. package/esm/models/components/customtaskcompletedresponse.d.ts.map +1 -1
  92. package/esm/models/components/customtaskcompletedresponse.js +6 -0
  93. package/esm/models/components/customtaskcompletedresponse.js.map +1 -1
  94. package/esm/models/components/customtaskfailedresponse.d.ts +12 -0
  95. package/esm/models/components/customtaskfailedresponse.d.ts.map +1 -1
  96. package/esm/models/components/customtaskfailedresponse.js +6 -0
  97. package/esm/models/components/customtaskfailedresponse.js.map +1 -1
  98. package/esm/models/components/customtaskinprogressresponse.d.ts +12 -0
  99. package/esm/models/components/customtaskinprogressresponse.d.ts.map +1 -1
  100. package/esm/models/components/customtaskinprogressresponse.js +6 -0
  101. package/esm/models/components/customtaskinprogressresponse.js.map +1 -1
  102. package/esm/models/components/customtaskstartedresponse.d.ts +12 -0
  103. package/esm/models/components/customtaskstartedresponse.d.ts.map +1 -1
  104. package/esm/models/components/customtaskstartedresponse.js +6 -0
  105. package/esm/models/components/customtaskstartedresponse.js.map +1 -1
  106. package/esm/models/components/customtasktimedoutresponse.d.ts +12 -0
  107. package/esm/models/components/customtasktimedoutresponse.d.ts.map +1 -1
  108. package/esm/models/components/customtasktimedoutresponse.js +6 -0
  109. package/esm/models/components/customtasktimedoutresponse.js.map +1 -1
  110. package/esm/models/components/deploymentdetailresponse.d.ts +2 -0
  111. package/esm/models/components/deploymentdetailresponse.d.ts.map +1 -1
  112. package/esm/models/components/deploymentdetailresponse.js.map +1 -1
  113. package/esm/models/components/deploymentresponse.d.ts +2 -0
  114. package/esm/models/components/deploymentresponse.d.ts.map +1 -1
  115. package/esm/models/components/deploymentresponse.js.map +1 -1
  116. package/esm/models/components/deploymentworkerspecresponse.d.ts +5 -0
  117. package/esm/models/components/deploymentworkerspecresponse.d.ts.map +1 -1
  118. package/esm/models/components/deploymentworkerspecresponse.js +2 -0
  119. package/esm/models/components/deploymentworkerspecresponse.js.map +1 -1
  120. package/esm/models/components/extendedoauthservermetadata.d.ts +10 -0
  121. package/esm/models/components/extendedoauthservermetadata.d.ts.map +1 -1
  122. package/esm/models/components/extendedoauthservermetadata.js +67 -0
  123. package/esm/models/components/extendedoauthservermetadata.js.map +1 -1
  124. package/esm/models/components/gitcommitauthor.d.ts +12 -0
  125. package/esm/models/components/gitcommitauthor.d.ts.map +1 -0
  126. package/esm/models/components/gitcommitauthor.js +21 -0
  127. package/esm/models/components/gitcommitauthor.js.map +1 -0
  128. package/esm/models/components/gitcommitmetadata.d.ts +14 -0
  129. package/esm/models/components/gitcommitmetadata.d.ts.map +1 -0
  130. package/esm/models/components/gitcommitmetadata.js +23 -0
  131. package/esm/models/components/gitcommitmetadata.js.map +1 -0
  132. package/esm/models/components/globalheadervalue.d.ts +26 -0
  133. package/esm/models/components/globalheadervalue.d.ts.map +1 -0
  134. package/esm/models/components/globalheadervalue.js +32 -0
  135. package/esm/models/components/globalheadervalue.js.map +1 -0
  136. package/esm/models/components/inboundauthenticationtype.d.ts +9 -0
  137. package/esm/models/components/inboundauthenticationtype.d.ts.map +1 -0
  138. package/esm/models/components/inboundauthenticationtype.js +11 -0
  139. package/esm/models/components/inboundauthenticationtype.js.map +1 -0
  140. package/esm/models/components/index.d.ts +18 -0
  141. package/esm/models/components/index.d.ts.map +1 -1
  142. package/esm/models/components/index.js +18 -0
  143. package/esm/models/components/index.js.map +1 -1
  144. package/esm/models/components/ingestionpipelinetargetindexref.d.ts +14 -0
  145. package/esm/models/components/ingestionpipelinetargetindexref.d.ts.map +1 -0
  146. package/esm/models/components/ingestionpipelinetargetindexref.js +14 -0
  147. package/esm/models/components/ingestionpipelinetargetindexref.js.map +1 -0
  148. package/esm/models/components/listorganizationsresponse.d.ts +14 -0
  149. package/esm/models/components/listorganizationsresponse.d.ts.map +1 -0
  150. package/esm/models/components/listorganizationsresponse.js +15 -0
  151. package/esm/models/components/listorganizationsresponse.js.map +1 -0
  152. package/esm/models/components/listworkspacesresponse.d.ts +14 -0
  153. package/esm/models/components/listworkspacesresponse.d.ts.map +1 -0
  154. package/esm/models/components/listworkspacesresponse.js +15 -0
  155. package/esm/models/components/listworkspacesresponse.js.map +1 -0
  156. package/esm/models/components/oauth2metadatasecrets.d.ts +27 -0
  157. package/esm/models/components/oauth2metadatasecrets.d.ts.map +1 -0
  158. package/esm/models/components/oauth2metadatasecrets.js +24 -0
  159. package/esm/models/components/oauth2metadatasecrets.js.map +1 -0
  160. package/esm/models/components/oauthmetadatasource.d.ts +18 -0
  161. package/esm/models/components/oauthmetadatasource.d.ts.map +1 -0
  162. package/esm/models/components/oauthmetadatasource.js +17 -0
  163. package/esm/models/components/oauthmetadatasource.js.map +1 -0
  164. package/esm/models/components/observabilityerrorcode.d.ts +1 -0
  165. package/esm/models/components/observabilityerrorcode.d.ts.map +1 -1
  166. package/esm/models/components/observabilityerrorcode.js +1 -0
  167. package/esm/models/components/observabilityerrorcode.js.map +1 -1
  168. package/esm/models/components/publicauthenticationmethod.d.ts +6 -0
  169. package/esm/models/components/publicauthenticationmethod.d.ts.map +1 -1
  170. package/esm/models/components/publicauthenticationmethod.js +8 -0
  171. package/esm/models/components/publicauthenticationmethod.js.map +1 -1
  172. package/esm/models/components/requestedservicetier.d.ts +10 -0
  173. package/esm/models/components/requestedservicetier.d.ts.map +1 -0
  174. package/esm/models/components/requestedservicetier.js +12 -0
  175. package/esm/models/components/requestedservicetier.js.map +1 -0
  176. package/esm/models/components/updateconnectorrequest.d.ts +4 -13
  177. package/esm/models/components/updateconnectorrequest.d.ts.map +1 -1
  178. package/esm/models/components/updateconnectorrequest.js +3 -4
  179. package/esm/models/components/updateconnectorrequest.js.map +1 -1
  180. package/esm/models/components/usageinfo.d.ts +5 -0
  181. package/esm/models/components/usageinfo.d.ts.map +1 -1
  182. package/esm/models/components/usageinfo.js +4 -0
  183. package/esm/models/components/usageinfo.js.map +1 -1
  184. package/esm/models/components/userorganization.d.ts +17 -0
  185. package/esm/models/components/userorganization.d.ts.map +1 -0
  186. package/esm/models/components/userorganization.js +15 -0
  187. package/esm/models/components/userorganization.js.map +1 -0
  188. package/esm/models/components/userworkspace.d.ts +21 -0
  189. package/esm/models/components/userworkspace.d.ts.map +1 -0
  190. package/esm/models/components/userworkspace.js +22 -0
  191. package/esm/models/components/userworkspace.js.map +1 -0
  192. package/esm/models/components/workflowexecutioncanceledattributes.d.ts +4 -0
  193. package/esm/models/components/workflowexecutioncanceledattributes.d.ts.map +1 -1
  194. package/esm/models/components/workflowexecutioncanceledattributes.js +1 -0
  195. package/esm/models/components/workflowexecutioncanceledattributes.js.map +1 -1
  196. package/esm/models/components/workflowexecutioncanceledresponse.d.ts +12 -0
  197. package/esm/models/components/workflowexecutioncanceledresponse.d.ts.map +1 -1
  198. package/esm/models/components/workflowexecutioncanceledresponse.js +6 -0
  199. package/esm/models/components/workflowexecutioncanceledresponse.js.map +1 -1
  200. package/esm/models/components/workflowexecutioncompletedattributesresponse.d.ts +4 -0
  201. package/esm/models/components/workflowexecutioncompletedattributesresponse.d.ts.map +1 -1
  202. package/esm/models/components/workflowexecutioncompletedattributesresponse.js +1 -0
  203. package/esm/models/components/workflowexecutioncompletedattributesresponse.js.map +1 -1
  204. package/esm/models/components/workflowexecutioncompletedresponse.d.ts +12 -0
  205. package/esm/models/components/workflowexecutioncompletedresponse.d.ts.map +1 -1
  206. package/esm/models/components/workflowexecutioncompletedresponse.js +6 -0
  207. package/esm/models/components/workflowexecutioncompletedresponse.js.map +1 -1
  208. package/esm/models/components/workflowexecutioncontinuedasnewresponse.d.ts +12 -0
  209. package/esm/models/components/workflowexecutioncontinuedasnewresponse.d.ts.map +1 -1
  210. package/esm/models/components/workflowexecutioncontinuedasnewresponse.js +6 -0
  211. package/esm/models/components/workflowexecutioncontinuedasnewresponse.js.map +1 -1
  212. package/esm/models/components/workflowexecutionfailedattributes.d.ts +4 -0
  213. package/esm/models/components/workflowexecutionfailedattributes.d.ts.map +1 -1
  214. package/esm/models/components/workflowexecutionfailedattributes.js +1 -0
  215. package/esm/models/components/workflowexecutionfailedattributes.js.map +1 -1
  216. package/esm/models/components/workflowexecutionfailedresponse.d.ts +12 -0
  217. package/esm/models/components/workflowexecutionfailedresponse.d.ts.map +1 -1
  218. package/esm/models/components/workflowexecutionfailedresponse.js +6 -0
  219. package/esm/models/components/workflowexecutionfailedresponse.js.map +1 -1
  220. package/esm/models/components/workflowexecutionstartedattributesresponse.d.ts +4 -0
  221. package/esm/models/components/workflowexecutionstartedattributesresponse.d.ts.map +1 -1
  222. package/esm/models/components/workflowexecutionstartedattributesresponse.js +1 -0
  223. package/esm/models/components/workflowexecutionstartedattributesresponse.js.map +1 -1
  224. package/esm/models/components/workflowexecutionstartedresponse.d.ts +12 -0
  225. package/esm/models/components/workflowexecutionstartedresponse.d.ts.map +1 -1
  226. package/esm/models/components/workflowexecutionstartedresponse.js +6 -0
  227. package/esm/models/components/workflowexecutionstartedresponse.js.map +1 -1
  228. package/esm/models/components/workflowtaskfailedresponse.d.ts +12 -0
  229. package/esm/models/components/workflowtaskfailedresponse.d.ts.map +1 -1
  230. package/esm/models/components/workflowtaskfailedresponse.js +6 -0
  231. package/esm/models/components/workflowtaskfailedresponse.js.map +1 -1
  232. package/esm/models/components/workflowtasktimedoutresponse.d.ts +12 -0
  233. package/esm/models/components/workflowtasktimedoutresponse.d.ts.map +1 -1
  234. package/esm/models/components/workflowtasktimedoutresponse.js +6 -0
  235. package/esm/models/components/workflowtasktimedoutresponse.js.map +1 -1
  236. package/esm/models/operations/createclientsessionv1clientsessionspost.d.ts +9 -0
  237. package/esm/models/operations/createclientsessionv1clientsessionspost.d.ts.map +1 -0
  238. package/esm/models/operations/createclientsessionv1clientsessionspost.js +11 -0
  239. package/esm/models/operations/createclientsessionv1clientsessionspost.js.map +1 -0
  240. package/esm/models/operations/getdeploymentv1workflowsdeploymentsnameget.d.ts +5 -0
  241. package/esm/models/operations/getdeploymentv1workflowsdeploymentsnameget.d.ts.map +1 -1
  242. package/esm/models/operations/getdeploymentv1workflowsdeploymentsnameget.js +6 -0
  243. package/esm/models/operations/getdeploymentv1workflowsdeploymentsnameget.js.map +1 -1
  244. package/esm/models/operations/index.d.ts +3 -0
  245. package/esm/models/operations/index.d.ts.map +1 -1
  246. package/esm/models/operations/index.js +3 -0
  247. package/esm/models/operations/index.js.map +1 -1
  248. package/esm/models/operations/usersapilistorganizations.d.ts +39 -0
  249. package/esm/models/operations/usersapilistorganizations.d.ts.map +1 -0
  250. package/esm/models/operations/usersapilistorganizations.js +39 -0
  251. package/esm/models/operations/usersapilistorganizations.js.map +1 -0
  252. package/esm/models/operations/usersapilistworkspaces.d.ts +44 -0
  253. package/esm/models/operations/usersapilistworkspaces.d.ts.map +1 -0
  254. package/esm/models/operations/usersapilistworkspaces.js +44 -0
  255. package/esm/models/operations/usersapilistworkspaces.js.map +1 -0
  256. package/esm/sdk/realtime.d.ts +7 -0
  257. package/esm/sdk/realtime.d.ts.map +1 -0
  258. package/esm/sdk/realtime.js +13 -0
  259. package/esm/sdk/realtime.js.map +1 -0
  260. package/esm/sdk/sdk.d.ts +3 -0
  261. package/esm/sdk/sdk.d.ts.map +1 -1
  262. package/esm/sdk/sdk.js +5 -0
  263. package/esm/sdk/sdk.js.map +1 -1
  264. package/esm/sdk/sessions.d.ts +10 -0
  265. package/esm/sdk/sessions.d.ts.map +1 -0
  266. package/esm/sdk/sessions.js +16 -0
  267. package/esm/sdk/sessions.js.map +1 -0
  268. package/esm/sdk/users.d.ts +23 -0
  269. package/esm/sdk/users.d.ts.map +1 -1
  270. package/esm/sdk/users.js +25 -0
  271. package/esm/sdk/users.js.map +1 -1
  272. package/examples/src/model_management.ts +59 -0
  273. package/jsr.json +1 -1
  274. package/package.json +1 -1
  275. package/src/funcs/betaUsersListOrganizations.ts +257 -0
  276. package/src/funcs/betaUsersListWorkspaces.ts +257 -0
  277. package/src/funcs/realtimeSessionsCreate.ts +170 -0
  278. package/src/funcs/workflowsDeploymentsGetDeployment.ts +6 -1
  279. package/src/lib/config.ts +2 -2
  280. package/src/models/components/activitytaskcompletedresponse.ts +18 -0
  281. package/src/models/components/activitytaskfailedresponse.ts +18 -0
  282. package/src/models/components/activitytaskretryingresponse.ts +18 -0
  283. package/src/models/components/activitytaskstartedresponse.ts +18 -0
  284. package/src/models/components/agentscompletionrequest.ts +11 -0
  285. package/src/models/components/agentscompletionstreamrequest.ts +11 -0
  286. package/src/models/components/authdirection.ts +17 -0
  287. package/src/models/components/authenticationmethodcreateorupdaterequest.ts +138 -0
  288. package/src/models/components/chatcompletionrequest.ts +11 -0
  289. package/src/models/components/chatcompletionstreamrequest.ts +11 -0
  290. package/src/models/components/clientsecret.ts +36 -0
  291. package/src/models/components/clientsessionpurpose.ts +23 -0
  292. package/src/models/components/connectorauthenticationheader.ts +32 -2
  293. package/src/models/components/createconnectorrequest.ts +19 -0
  294. package/src/models/components/createingestionpipelineconfigurationrequest.ts +14 -0
  295. package/src/models/components/createrealtimesessionrequest.ts +39 -0
  296. package/src/models/components/createrealtimesessionresponse.ts +51 -0
  297. package/src/models/components/customtaskcanceledresponse.ts +18 -0
  298. package/src/models/components/customtaskcompletedresponse.ts +18 -0
  299. package/src/models/components/customtaskfailedresponse.ts +18 -0
  300. package/src/models/components/customtaskinprogressresponse.ts +18 -0
  301. package/src/models/components/customtaskstartedresponse.ts +18 -0
  302. package/src/models/components/customtasktimedoutresponse.ts +18 -0
  303. package/src/models/components/deploymentdetailresponse.ts +2 -0
  304. package/src/models/components/deploymentresponse.ts +2 -0
  305. package/src/models/components/deploymentworkerspecresponse.ts +9 -0
  306. package/src/models/components/extendedoauthservermetadata.ts +99 -0
  307. package/src/models/components/gitcommitauthor.ts +40 -0
  308. package/src/models/components/gitcommitmetadata.ts +46 -0
  309. package/src/models/components/globalheadervalue.ts +70 -0
  310. package/src/models/components/inboundauthenticationtype.ts +19 -0
  311. package/src/models/components/index.ts +18 -0
  312. package/src/models/components/ingestionpipelinetargetindexref.ts +36 -0
  313. package/src/models/components/listorganizationsresponse.ts +38 -0
  314. package/src/models/components/listworkspacesresponse.ts +35 -0
  315. package/src/models/components/oauth2metadatasecrets.ts +57 -0
  316. package/src/models/components/oauthmetadatasource.ts +31 -0
  317. package/src/models/components/observabilityerrorcode.ts +1 -0
  318. package/src/models/components/publicauthenticationmethod.ts +16 -0
  319. package/src/models/components/requestedservicetier.ts +18 -0
  320. package/src/models/components/updateconnectorrequest.ts +17 -15
  321. package/src/models/components/usageinfo.ts +9 -0
  322. package/src/models/components/userorganization.ts +39 -0
  323. package/src/models/components/userworkspace.ts +47 -0
  324. package/src/models/components/workflowexecutioncanceledattributes.ts +5 -0
  325. package/src/models/components/workflowexecutioncanceledresponse.ts +18 -0
  326. package/src/models/components/workflowexecutioncompletedattributesresponse.ts +5 -0
  327. package/src/models/components/workflowexecutioncompletedresponse.ts +18 -0
  328. package/src/models/components/workflowexecutioncontinuedasnewresponse.ts +18 -0
  329. package/src/models/components/workflowexecutionfailedattributes.ts +5 -0
  330. package/src/models/components/workflowexecutionfailedresponse.ts +18 -0
  331. package/src/models/components/workflowexecutionstartedattributesresponse.ts +5 -0
  332. package/src/models/components/workflowexecutionstartedresponse.ts +18 -0
  333. package/src/models/components/workflowtaskfailedresponse.ts +18 -0
  334. package/src/models/components/workflowtasktimedoutresponse.ts +18 -0
  335. package/src/models/operations/createclientsessionv1clientsessionspost.ts +20 -0
  336. package/src/models/operations/getdeploymentv1workflowsdeploymentsnameget.ts +11 -0
  337. package/src/models/operations/index.ts +3 -0
  338. package/src/models/operations/usersapilistorganizations.ts +104 -0
  339. package/src/models/operations/usersapilistworkspaces.ts +114 -0
  340. package/src/sdk/realtime.ts +14 -0
  341. package/src/sdk/sdk.ts +6 -0
  342. package/src/sdk/sessions.ts +26 -0
  343. package/src/sdk/users.ts +52 -0
  344. package/examples/src/async_jobs.ts +0 -51
package/src/lib/config.ts CHANGED
@@ -70,8 +70,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
70
70
  export const SDK_METADATA = {
71
71
  language: "typescript",
72
72
  openapiDocVersion: "1.0.0",
73
- sdkVersion: "2.6.1",
73
+ sdkVersion: "2.6.3",
74
74
  genVersion: "2.884.13",
75
75
  userAgent:
76
- "speakeasy-sdk/typescript 2.6.1 2.884.13 1.0.0 @mistralai/mistralai",
76
+ "speakeasy-sdk/typescript 2.6.3 2.884.13 1.0.0 @mistralai/mistralai",
77
77
  } as const;
@@ -37,6 +37,18 @@ export type ActivityTaskCompletedResponse = {
37
37
  * Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.
38
38
  */
39
39
  parentWorkflowExecId: string | null;
40
+ /**
41
+ * Run ID of the execution this run continued from. Non-null for continue-as-new runs.
42
+ */
43
+ continuedRunId: string | null;
44
+ /**
45
+ * Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.
46
+ */
47
+ firstExecutionRunId: string | null;
48
+ /**
49
+ * Temporal schedule ID that triggered this execution, if any.
50
+ */
51
+ scheduleId: string | null;
40
52
  /**
41
53
  * Execution ID of the workflow that emitted this event.
42
54
  */
@@ -68,6 +80,9 @@ export const ActivityTaskCompletedResponse$inboundSchema: z.ZodType<
68
80
  event_timestamp: z.int(),
69
81
  root_workflow_exec_id: z.string(),
70
82
  parent_workflow_exec_id: z.nullable(z.string()),
83
+ continued_run_id: z.nullable(z.string()),
84
+ first_execution_run_id: z.nullable(z.string()),
85
+ schedule_id: z.nullable(z.string()),
71
86
  workflow_exec_id: z.string(),
72
87
  workflow_run_id: z.string(),
73
88
  workflow_name: z.string(),
@@ -81,6 +96,9 @@ export const ActivityTaskCompletedResponse$inboundSchema: z.ZodType<
81
96
  "event_timestamp": "eventTimestamp",
82
97
  "root_workflow_exec_id": "rootWorkflowExecId",
83
98
  "parent_workflow_exec_id": "parentWorkflowExecId",
99
+ "continued_run_id": "continuedRunId",
100
+ "first_execution_run_id": "firstExecutionRunId",
101
+ "schedule_id": "scheduleId",
84
102
  "workflow_exec_id": "workflowExecId",
85
103
  "workflow_run_id": "workflowRunId",
86
104
  "workflow_name": "workflowName",
@@ -37,6 +37,18 @@ export type ActivityTaskFailedResponse = {
37
37
  * Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.
38
38
  */
39
39
  parentWorkflowExecId: string | null;
40
+ /**
41
+ * Run ID of the execution this run continued from. Non-null for continue-as-new runs.
42
+ */
43
+ continuedRunId: string | null;
44
+ /**
45
+ * Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.
46
+ */
47
+ firstExecutionRunId: string | null;
48
+ /**
49
+ * Temporal schedule ID that triggered this execution, if any.
50
+ */
51
+ scheduleId: string | null;
40
52
  /**
41
53
  * Execution ID of the workflow that emitted this event.
42
54
  */
@@ -68,6 +80,9 @@ export const ActivityTaskFailedResponse$inboundSchema: z.ZodType<
68
80
  event_timestamp: z.int(),
69
81
  root_workflow_exec_id: z.string(),
70
82
  parent_workflow_exec_id: z.nullable(z.string()),
83
+ continued_run_id: z.nullable(z.string()),
84
+ first_execution_run_id: z.nullable(z.string()),
85
+ schedule_id: z.nullable(z.string()),
71
86
  workflow_exec_id: z.string(),
72
87
  workflow_run_id: z.string(),
73
88
  workflow_name: z.string(),
@@ -79,6 +94,9 @@ export const ActivityTaskFailedResponse$inboundSchema: z.ZodType<
79
94
  "event_timestamp": "eventTimestamp",
80
95
  "root_workflow_exec_id": "rootWorkflowExecId",
81
96
  "parent_workflow_exec_id": "parentWorkflowExecId",
97
+ "continued_run_id": "continuedRunId",
98
+ "first_execution_run_id": "firstExecutionRunId",
99
+ "schedule_id": "scheduleId",
82
100
  "workflow_exec_id": "workflowExecId",
83
101
  "workflow_run_id": "workflowRunId",
84
102
  "workflow_name": "workflowName",
@@ -37,6 +37,18 @@ export type ActivityTaskRetryingResponse = {
37
37
  * Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.
38
38
  */
39
39
  parentWorkflowExecId: string | null;
40
+ /**
41
+ * Run ID of the execution this run continued from. Non-null for continue-as-new runs.
42
+ */
43
+ continuedRunId: string | null;
44
+ /**
45
+ * Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.
46
+ */
47
+ firstExecutionRunId: string | null;
48
+ /**
49
+ * Temporal schedule ID that triggered this execution, if any.
50
+ */
51
+ scheduleId: string | null;
40
52
  /**
41
53
  * Execution ID of the workflow that emitted this event.
42
54
  */
@@ -68,6 +80,9 @@ export const ActivityTaskRetryingResponse$inboundSchema: z.ZodType<
68
80
  event_timestamp: z.int(),
69
81
  root_workflow_exec_id: z.string(),
70
82
  parent_workflow_exec_id: z.nullable(z.string()),
83
+ continued_run_id: z.nullable(z.string()),
84
+ first_execution_run_id: z.nullable(z.string()),
85
+ schedule_id: z.nullable(z.string()),
71
86
  workflow_exec_id: z.string(),
72
87
  workflow_run_id: z.string(),
73
88
  workflow_name: z.string(),
@@ -81,6 +96,9 @@ export const ActivityTaskRetryingResponse$inboundSchema: z.ZodType<
81
96
  "event_timestamp": "eventTimestamp",
82
97
  "root_workflow_exec_id": "rootWorkflowExecId",
83
98
  "parent_workflow_exec_id": "parentWorkflowExecId",
99
+ "continued_run_id": "continuedRunId",
100
+ "first_execution_run_id": "firstExecutionRunId",
101
+ "schedule_id": "scheduleId",
84
102
  "workflow_exec_id": "workflowExecId",
85
103
  "workflow_run_id": "workflowRunId",
86
104
  "workflow_name": "workflowName",
@@ -38,6 +38,18 @@ export type ActivityTaskStartedResponse = {
38
38
  * Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.
39
39
  */
40
40
  parentWorkflowExecId: string | null;
41
+ /**
42
+ * Run ID of the execution this run continued from. Non-null for continue-as-new runs.
43
+ */
44
+ continuedRunId: string | null;
45
+ /**
46
+ * Run ID of the first execution in this workflow chain. Equals workflow_run_id on fresh starts and resets (chain anchor resets on reset); differs on CAN and Retry runs where it stays anchored to the original first run.
47
+ */
48
+ firstExecutionRunId: string | null;
49
+ /**
50
+ * Temporal schedule ID that triggered this execution, if any.
51
+ */
52
+ scheduleId: string | null;
41
53
  /**
42
54
  * Execution ID of the workflow that emitted this event.
43
55
  */
@@ -69,6 +81,9 @@ export const ActivityTaskStartedResponse$inboundSchema: z.ZodType<
69
81
  event_timestamp: z.int(),
70
82
  root_workflow_exec_id: z.string(),
71
83
  parent_workflow_exec_id: z.nullable(z.string()),
84
+ continued_run_id: z.nullable(z.string()),
85
+ first_execution_run_id: z.nullable(z.string()),
86
+ schedule_id: z.nullable(z.string()),
72
87
  workflow_exec_id: z.string(),
73
88
  workflow_run_id: z.string(),
74
89
  workflow_name: z.string(),
@@ -82,6 +97,9 @@ export const ActivityTaskStartedResponse$inboundSchema: z.ZodType<
82
97
  "event_timestamp": "eventTimestamp",
83
98
  "root_workflow_exec_id": "rootWorkflowExecId",
84
99
  "parent_workflow_exec_id": "parentWorkflowExecId",
100
+ "continued_run_id": "continuedRunId",
101
+ "first_execution_run_id": "firstExecutionRunId",
102
+ "schedule_id": "scheduleId",
85
103
  "workflow_exec_id": "workflowExecId",
86
104
  "workflow_run_id": "workflowRunId",
87
105
  "workflow_name": "workflowName",
@@ -49,6 +49,10 @@ import {
49
49
  ReasoningEffort,
50
50
  ReasoningEffort$outboundSchema,
51
51
  } from "./reasoningeffort.js";
52
+ import {
53
+ RequestedServiceTier,
54
+ RequestedServiceTier$outboundSchema,
55
+ } from "./requestedservicetier.js";
52
56
  import {
53
57
  ResponseFormat,
54
58
  ResponseFormat$Outbound,
@@ -180,6 +184,10 @@ export type AgentsCompletionRequest = {
180
184
  promptMode?: MistralPromptMode | null | undefined;
181
185
  guardrails?: Array<GuardrailConfig> | null | undefined;
182
186
  promptCacheKey?: string | null | undefined;
187
+ /**
188
+ * Determines whether to serve the request using priority or standard capacity.
189
+ */
190
+ serviceTier?: RequestedServiceTier | null | undefined;
183
191
  /**
184
192
  * The ID of the agent to use for this completion.
185
193
  */
@@ -326,6 +334,7 @@ export type AgentsCompletionRequest$Outbound = {
326
334
  prompt_mode?: string | null | undefined;
327
335
  guardrails?: Array<GuardrailConfig$Outbound> | null | undefined;
328
336
  prompt_cache_key?: string | null | undefined;
337
+ service_tier?: string | null | undefined;
329
338
  agent_id: string;
330
339
  };
331
340
 
@@ -376,6 +385,7 @@ export const AgentsCompletionRequest$outboundSchema: z.ZodType<
376
385
  promptMode: z.nullable(MistralPromptMode$outboundSchema).optional(),
377
386
  guardrails: z.nullable(z.array(GuardrailConfig$outboundSchema)).optional(),
378
387
  promptCacheKey: z.nullable(z.string()).optional(),
388
+ serviceTier: z.nullable(RequestedServiceTier$outboundSchema).optional(),
379
389
  agentId: z.string(),
380
390
  }).transform((v) => {
381
391
  return remap$(v, {
@@ -389,6 +399,7 @@ export const AgentsCompletionRequest$outboundSchema: z.ZodType<
389
399
  reasoningEffort: "reasoning_effort",
390
400
  promptMode: "prompt_mode",
391
401
  promptCacheKey: "prompt_cache_key",
402
+ serviceTier: "service_tier",
392
403
  agentId: "agent_id",
393
404
  });
394
405
  });
@@ -49,6 +49,10 @@ import {
49
49
  ReasoningEffort,
50
50
  ReasoningEffort$outboundSchema,
51
51
  } from "./reasoningeffort.js";
52
+ import {
53
+ RequestedServiceTier,
54
+ RequestedServiceTier$outboundSchema,
55
+ } from "./requestedservicetier.js";
52
56
  import {
53
57
  ResponseFormat,
54
58
  ResponseFormat$Outbound,
@@ -179,6 +183,10 @@ export type AgentsCompletionStreamRequest = {
179
183
  promptMode?: MistralPromptMode | null | undefined;
180
184
  guardrails?: Array<GuardrailConfig> | null | undefined;
181
185
  promptCacheKey?: string | null | undefined;
186
+ /**
187
+ * Determines whether to serve the request using priority or standard capacity.
188
+ */
189
+ serviceTier?: RequestedServiceTier | null | undefined;
182
190
  /**
183
191
  * The ID of the agent to use for this completion.
184
192
  */
@@ -326,6 +334,7 @@ export type AgentsCompletionStreamRequest$Outbound = {
326
334
  prompt_mode?: string | null | undefined;
327
335
  guardrails?: Array<GuardrailConfig$Outbound> | null | undefined;
328
336
  prompt_cache_key?: string | null | undefined;
337
+ service_tier?: string | null | undefined;
329
338
  agent_id: string;
330
339
  };
331
340
 
@@ -376,6 +385,7 @@ export const AgentsCompletionStreamRequest$outboundSchema: z.ZodType<
376
385
  promptMode: z.nullable(MistralPromptMode$outboundSchema).optional(),
377
386
  guardrails: z.nullable(z.array(GuardrailConfig$outboundSchema)).optional(),
378
387
  promptCacheKey: z.nullable(z.string()).optional(),
388
+ serviceTier: z.nullable(RequestedServiceTier$outboundSchema).optional(),
379
389
  agentId: z.string(),
380
390
  }).transform((v) => {
381
391
  return remap$(v, {
@@ -389,6 +399,7 @@ export const AgentsCompletionStreamRequest$outboundSchema: z.ZodType<
389
399
  reasoningEffort: "reasoning_effort",
390
400
  promptMode: "prompt_mode",
391
401
  promptCacheKey: "prompt_cache_key",
402
+ serviceTier: "service_tier",
392
403
  agentId: "agent_id",
393
404
  });
394
405
  });
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 2086f6a291b7
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+
9
+ export const AuthDirection = {
10
+ Inbound: "inbound",
11
+ Outbound: "outbound",
12
+ } as const;
13
+ export type AuthDirection = ClosedEnum<typeof AuthDirection>;
14
+
15
+ /** @internal */
16
+ export const AuthDirection$outboundSchema: z.ZodEnum<typeof AuthDirection> = z
17
+ .enum(AuthDirection);
@@ -0,0 +1,138 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b4ab75565bc0
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import { remap as remap$ } from "../../lib/primitives.js";
8
+ import { smartUnion } from "../../types/smartUnion.js";
9
+ import {
10
+ AuthDirection,
11
+ AuthDirection$outboundSchema,
12
+ } from "./authdirection.js";
13
+ import {
14
+ ConnectorAuthenticationHeader,
15
+ ConnectorAuthenticationHeader$Outbound,
16
+ ConnectorAuthenticationHeader$outboundSchema,
17
+ } from "./connectorauthenticationheader.js";
18
+ import {
19
+ ExtendedOAuthServerMetadata,
20
+ ExtendedOAuthServerMetadata$Outbound,
21
+ ExtendedOAuthServerMetadata$outboundSchema,
22
+ } from "./extendedoauthservermetadata.js";
23
+ import {
24
+ GlobalHeaderValue,
25
+ GlobalHeaderValue$Outbound,
26
+ GlobalHeaderValue$outboundSchema,
27
+ } from "./globalheadervalue.js";
28
+ import {
29
+ InboundAuthenticationType,
30
+ InboundAuthenticationType$outboundSchema,
31
+ } from "./inboundauthenticationtype.js";
32
+ import {
33
+ Oauth2MetadataSecrets,
34
+ Oauth2MetadataSecrets$Outbound,
35
+ Oauth2MetadataSecrets$outboundSchema,
36
+ } from "./oauth2metadatasecrets.js";
37
+ import {
38
+ OutboundAuthenticationType,
39
+ OutboundAuthenticationType$outboundSchema,
40
+ } from "./outboundauthenticationtype.js";
41
+
42
+ /**
43
+ * The type of authentication method (e.g. oauth2, bearer, none).
44
+ */
45
+ export type MethodType = OutboundAuthenticationType | InboundAuthenticationType;
46
+
47
+ export type AuthenticationMethodCreateOrUpdateRequest = {
48
+ /**
49
+ * The type of authentication method (e.g. oauth2, bearer, none).
50
+ */
51
+ methodType: OutboundAuthenticationType | InboundAuthenticationType;
52
+ authDirection?: AuthDirection | undefined;
53
+ /**
54
+ * Set of headers to connect to the connector
55
+ */
56
+ headers?: Array<ConnectorAuthenticationHeader> | null | undefined;
57
+ /**
58
+ * Connector-wide headers keyed by header name, applied to every credential. Secret values are encrypted at rest and never returned in clear.
59
+ */
60
+ globalHeaders?: { [k: string]: GlobalHeaderValue } | undefined;
61
+ /**
62
+ * New OAuth2 client credentials (client_id and client_secret).
63
+ */
64
+ oauth2MetadataSecrets?: Oauth2MetadataSecrets | null | undefined;
65
+ /**
66
+ * New OAuth2 authorization server metadata.
67
+ */
68
+ oauth2ServerMetadata?: ExtendedOAuthServerMetadata | null | undefined;
69
+ };
70
+
71
+ /** @internal */
72
+ export type MethodType$Outbound = string | string;
73
+
74
+ /** @internal */
75
+ export const MethodType$outboundSchema: z.ZodType<
76
+ MethodType$Outbound,
77
+ MethodType
78
+ > = smartUnion([
79
+ OutboundAuthenticationType$outboundSchema,
80
+ InboundAuthenticationType$outboundSchema,
81
+ ]);
82
+
83
+ export function methodTypeToJSON(methodType: MethodType): string {
84
+ return JSON.stringify(MethodType$outboundSchema.parse(methodType));
85
+ }
86
+
87
+ /** @internal */
88
+ export type AuthenticationMethodCreateOrUpdateRequest$Outbound = {
89
+ method_type: string | string;
90
+ auth_direction?: string | undefined;
91
+ headers?: Array<ConnectorAuthenticationHeader$Outbound> | null | undefined;
92
+ global_headers?: { [k: string]: GlobalHeaderValue$Outbound } | undefined;
93
+ oauth2_metadata_secrets?: Oauth2MetadataSecrets$Outbound | null | undefined;
94
+ oauth2_server_metadata?:
95
+ | ExtendedOAuthServerMetadata$Outbound
96
+ | null
97
+ | undefined;
98
+ };
99
+
100
+ /** @internal */
101
+ export const AuthenticationMethodCreateOrUpdateRequest$outboundSchema:
102
+ z.ZodType<
103
+ AuthenticationMethodCreateOrUpdateRequest$Outbound,
104
+ AuthenticationMethodCreateOrUpdateRequest
105
+ > = z.object({
106
+ methodType: smartUnion([
107
+ OutboundAuthenticationType$outboundSchema,
108
+ InboundAuthenticationType$outboundSchema,
109
+ ]),
110
+ authDirection: AuthDirection$outboundSchema.optional(),
111
+ headers: z.nullable(z.array(ConnectorAuthenticationHeader$outboundSchema))
112
+ .optional(),
113
+ globalHeaders: z.record(z.string(), GlobalHeaderValue$outboundSchema)
114
+ .optional(),
115
+ oauth2MetadataSecrets: z.nullable(Oauth2MetadataSecrets$outboundSchema)
116
+ .optional(),
117
+ oauth2ServerMetadata: z.nullable(ExtendedOAuthServerMetadata$outboundSchema)
118
+ .optional(),
119
+ }).transform((v) => {
120
+ return remap$(v, {
121
+ methodType: "method_type",
122
+ authDirection: "auth_direction",
123
+ globalHeaders: "global_headers",
124
+ oauth2MetadataSecrets: "oauth2_metadata_secrets",
125
+ oauth2ServerMetadata: "oauth2_server_metadata",
126
+ });
127
+ });
128
+
129
+ export function authenticationMethodCreateOrUpdateRequestToJSON(
130
+ authenticationMethodCreateOrUpdateRequest:
131
+ AuthenticationMethodCreateOrUpdateRequest,
132
+ ): string {
133
+ return JSON.stringify(
134
+ AuthenticationMethodCreateOrUpdateRequest$outboundSchema.parse(
135
+ authenticationMethodCreateOrUpdateRequest,
136
+ ),
137
+ );
138
+ }
@@ -49,6 +49,10 @@ import {
49
49
  ReasoningEffort,
50
50
  ReasoningEffort$outboundSchema,
51
51
  } from "./reasoningeffort.js";
52
+ import {
53
+ RequestedServiceTier,
54
+ RequestedServiceTier$outboundSchema,
55
+ } from "./requestedservicetier.js";
52
56
  import {
53
57
  ResponseFormat,
54
58
  ResponseFormat$Outbound,
@@ -204,6 +208,10 @@ export type ChatCompletionRequest = {
204
208
  promptMode?: MistralPromptMode | null | undefined;
205
209
  guardrails?: Array<GuardrailConfig> | null | undefined;
206
210
  promptCacheKey?: string | null | undefined;
211
+ /**
212
+ * Determines whether to serve the request using priority or standard capacity.
213
+ */
214
+ serviceTier?: RequestedServiceTier | null | undefined;
207
215
  /**
208
216
  * Whether to inject a safety prompt before all conversations.
209
217
  */
@@ -349,6 +357,7 @@ export type ChatCompletionRequest$Outbound = {
349
357
  prompt_mode?: string | null | undefined;
350
358
  guardrails?: Array<GuardrailConfig$Outbound> | null | undefined;
351
359
  prompt_cache_key?: string | null | undefined;
360
+ service_tier?: string | null | undefined;
352
361
  safe_prompt?: boolean | undefined;
353
362
  };
354
363
 
@@ -402,6 +411,7 @@ export const ChatCompletionRequest$outboundSchema: z.ZodType<
402
411
  promptMode: z.nullable(MistralPromptMode$outboundSchema).optional(),
403
412
  guardrails: z.nullable(z.array(GuardrailConfig$outboundSchema)).optional(),
404
413
  promptCacheKey: z.nullable(z.string()).optional(),
414
+ serviceTier: z.nullable(RequestedServiceTier$outboundSchema).optional(),
405
415
  safePrompt: z.boolean().optional(),
406
416
  }).transform((v) => {
407
417
  return remap$(v, {
@@ -416,6 +426,7 @@ export const ChatCompletionRequest$outboundSchema: z.ZodType<
416
426
  reasoningEffort: "reasoning_effort",
417
427
  promptMode: "prompt_mode",
418
428
  promptCacheKey: "prompt_cache_key",
429
+ serviceTier: "service_tier",
419
430
  safePrompt: "safe_prompt",
420
431
  });
421
432
  });
@@ -49,6 +49,10 @@ import {
49
49
  ReasoningEffort,
50
50
  ReasoningEffort$outboundSchema,
51
51
  } from "./reasoningeffort.js";
52
+ import {
53
+ RequestedServiceTier,
54
+ RequestedServiceTier$outboundSchema,
55
+ } from "./requestedservicetier.js";
52
56
  import {
53
57
  ResponseFormat,
54
58
  ResponseFormat$Outbound,
@@ -201,6 +205,10 @@ export type ChatCompletionStreamRequest = {
201
205
  promptMode?: MistralPromptMode | null | undefined;
202
206
  guardrails?: Array<GuardrailConfig> | null | undefined;
203
207
  promptCacheKey?: string | null | undefined;
208
+ /**
209
+ * Determines whether to serve the request using priority or standard capacity.
210
+ */
211
+ serviceTier?: RequestedServiceTier | null | undefined;
204
212
  /**
205
213
  * Whether to inject a safety prompt before all conversations.
206
214
  */
@@ -350,6 +358,7 @@ export type ChatCompletionStreamRequest$Outbound = {
350
358
  prompt_mode?: string | null | undefined;
351
359
  guardrails?: Array<GuardrailConfig$Outbound> | null | undefined;
352
360
  prompt_cache_key?: string | null | undefined;
361
+ service_tier?: string | null | undefined;
353
362
  safe_prompt?: boolean | undefined;
354
363
  };
355
364
 
@@ -403,6 +412,7 @@ export const ChatCompletionStreamRequest$outboundSchema: z.ZodType<
403
412
  promptMode: z.nullable(MistralPromptMode$outboundSchema).optional(),
404
413
  guardrails: z.nullable(z.array(GuardrailConfig$outboundSchema)).optional(),
405
414
  promptCacheKey: z.nullable(z.string()).optional(),
415
+ serviceTier: z.nullable(RequestedServiceTier$outboundSchema).optional(),
406
416
  safePrompt: z.boolean().optional(),
407
417
  }).transform((v) => {
408
418
  return remap$(v, {
@@ -417,6 +427,7 @@ export const ChatCompletionStreamRequest$outboundSchema: z.ZodType<
417
427
  reasoningEffort: "reasoning_effort",
418
428
  promptMode: "prompt_mode",
419
429
  promptCacheKey: "prompt_cache_key",
430
+ serviceTier: "service_tier",
420
431
  safePrompt: "safe_prompt",
421
432
  });
422
433
  });
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: f15778761426
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import { remap as remap$ } from "../../lib/primitives.js";
8
+ import { safeParse } from "../../lib/schemas.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type ClientSecret = {
13
+ value: string;
14
+ expiresAt: Date;
15
+ };
16
+
17
+ /** @internal */
18
+ export const ClientSecret$inboundSchema: z.ZodType<ClientSecret, unknown> = z
19
+ .object({
20
+ value: z.string(),
21
+ expires_at: z.iso.datetime({ offset: true }).transform(v => new Date(v)),
22
+ }).transform((v) => {
23
+ return remap$(v, {
24
+ "expires_at": "expiresAt",
25
+ });
26
+ });
27
+
28
+ export function clientSecretFromJSON(
29
+ jsonString: string,
30
+ ): SafeParseResult<ClientSecret, SDKValidationError> {
31
+ return safeParse(
32
+ jsonString,
33
+ (x) => ClientSecret$inboundSchema.parse(JSON.parse(x)),
34
+ `Failed to parse 'ClientSecret' from JSON`,
35
+ );
36
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 999ece97f40e
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+
9
+ /**
10
+ * Supported purposes for client sessions.
11
+ */
12
+ export const ClientSessionPurpose = {
13
+ Realtime: "realtime",
14
+ } as const;
15
+ /**
16
+ * Supported purposes for client sessions.
17
+ */
18
+ export type ClientSessionPurpose = ClosedEnum<typeof ClientSessionPurpose>;
19
+
20
+ /** @internal */
21
+ export const ClientSessionPurpose$inboundSchema: z.ZodEnum<
22
+ typeof ClientSessionPurpose
23
+ > = z.enum(ClientSessionPurpose);
@@ -11,8 +11,8 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
12
  export type ConnectorAuthenticationHeader = {
13
13
  name: string;
14
- isRequired: boolean;
15
- isSecret: boolean;
14
+ isRequired?: boolean | undefined;
15
+ isSecret?: boolean | undefined;
16
16
  };
17
17
 
18
18
  /** @internal */
@@ -29,7 +29,37 @@ export const ConnectorAuthenticationHeader$inboundSchema: z.ZodType<
29
29
  "is_secret": "isSecret",
30
30
  });
31
31
  });
32
+ /** @internal */
33
+ export type ConnectorAuthenticationHeader$Outbound = {
34
+ name: string;
35
+ is_required: boolean;
36
+ is_secret: boolean;
37
+ };
32
38
 
39
+ /** @internal */
40
+ export const ConnectorAuthenticationHeader$outboundSchema: z.ZodType<
41
+ ConnectorAuthenticationHeader$Outbound,
42
+ ConnectorAuthenticationHeader
43
+ > = z.object({
44
+ name: z.string(),
45
+ isRequired: z.boolean().default(true),
46
+ isSecret: z.boolean().default(true),
47
+ }).transform((v) => {
48
+ return remap$(v, {
49
+ isRequired: "is_required",
50
+ isSecret: "is_secret",
51
+ });
52
+ });
53
+
54
+ export function connectorAuthenticationHeaderToJSON(
55
+ connectorAuthenticationHeader: ConnectorAuthenticationHeader,
56
+ ): string {
57
+ return JSON.stringify(
58
+ ConnectorAuthenticationHeader$outboundSchema.parse(
59
+ connectorAuthenticationHeader,
60
+ ),
61
+ );
62
+ }
33
63
  export function connectorAuthenticationHeaderFromJSON(
34
64
  jsonString: string,
35
65
  ): SafeParseResult<ConnectorAuthenticationHeader, SDKValidationError> {