@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
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 67b86956d92b
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
+ import {
12
+ GitCommitAuthor,
13
+ GitCommitAuthor$inboundSchema,
14
+ } from "./gitcommitauthor.js";
15
+
16
+ export type GitCommitMetadata = {
17
+ sha: string;
18
+ message?: string | null | undefined;
19
+ author?: GitCommitAuthor | null | undefined;
20
+ htmlUrl?: string | null | undefined;
21
+ };
22
+
23
+ /** @internal */
24
+ export const GitCommitMetadata$inboundSchema: z.ZodType<
25
+ GitCommitMetadata,
26
+ unknown
27
+ > = z.object({
28
+ sha: z.string(),
29
+ message: z.nullable(z.string()).optional(),
30
+ author: z.nullable(GitCommitAuthor$inboundSchema).optional(),
31
+ html_url: z.nullable(z.string()).optional(),
32
+ }).transform((v) => {
33
+ return remap$(v, {
34
+ "html_url": "htmlUrl",
35
+ });
36
+ });
37
+
38
+ export function gitCommitMetadataFromJSON(
39
+ jsonString: string,
40
+ ): SafeParseResult<GitCommitMetadata, SDKValidationError> {
41
+ return safeParse(
42
+ jsonString,
43
+ (x) => GitCommitMetadata$inboundSchema.parse(JSON.parse(x)),
44
+ `Failed to parse 'GitCommitMetadata' from JSON`,
45
+ );
46
+ }
@@ -0,0 +1,70 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 710f48b40205
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
+ /**
13
+ * Value of a connector-wide header. ``value`` is plaintext in memory so create
14
+ *
15
+ * @remarks
16
+ * round-trips and encryption-at-rest keep the real value; secrets are redacted only
17
+ * on JSON serialization (API responses).
18
+ */
19
+ export type GlobalHeaderValue = {
20
+ isSecret?: boolean | undefined;
21
+ value: string;
22
+ };
23
+
24
+ /** @internal */
25
+ export const GlobalHeaderValue$inboundSchema: z.ZodType<
26
+ GlobalHeaderValue,
27
+ unknown
28
+ > = z.object({
29
+ is_secret: z.boolean().default(true),
30
+ value: z.string(),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "is_secret": "isSecret",
34
+ });
35
+ });
36
+ /** @internal */
37
+ export type GlobalHeaderValue$Outbound = {
38
+ is_secret: boolean;
39
+ value: string;
40
+ };
41
+
42
+ /** @internal */
43
+ export const GlobalHeaderValue$outboundSchema: z.ZodType<
44
+ GlobalHeaderValue$Outbound,
45
+ GlobalHeaderValue
46
+ > = z.object({
47
+ isSecret: z.boolean().default(true),
48
+ value: z.string(),
49
+ }).transform((v) => {
50
+ return remap$(v, {
51
+ isSecret: "is_secret",
52
+ });
53
+ });
54
+
55
+ export function globalHeaderValueToJSON(
56
+ globalHeaderValue: GlobalHeaderValue,
57
+ ): string {
58
+ return JSON.stringify(
59
+ GlobalHeaderValue$outboundSchema.parse(globalHeaderValue),
60
+ );
61
+ }
62
+ export function globalHeaderValueFromJSON(
63
+ jsonString: string,
64
+ ): SafeParseResult<GlobalHeaderValue, SDKValidationError> {
65
+ return safeParse(
66
+ jsonString,
67
+ (x) => GlobalHeaderValue$inboundSchema.parse(JSON.parse(x)),
68
+ `Failed to parse 'GlobalHeaderValue' from JSON`,
69
+ );
70
+ }
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 4a9367ab993e
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+
9
+ export const InboundAuthenticationType = {
10
+ Webhook: "webhook",
11
+ } as const;
12
+ export type InboundAuthenticationType = ClosedEnum<
13
+ typeof InboundAuthenticationType
14
+ >;
15
+
16
+ /** @internal */
17
+ export const InboundAuthenticationType$outboundSchema: z.ZodEnum<
18
+ typeof InboundAuthenticationType
19
+ > = z.enum(InboundAuthenticationType);
@@ -37,7 +37,9 @@ export * from "./audioformat.js";
37
37
  export * from "./audiotranscriptionrequest.js";
38
38
  export * from "./audiotranscriptionrequeststream.js";
39
39
  export * from "./authdata.js";
40
+ export * from "./authdirection.js";
40
41
  export * from "./authenticationconfiguration.js";
42
+ export * from "./authenticationmethodcreateorupdaterequest.js";
41
43
  export * from "./authstatus.js";
42
44
  export * from "./authurlresponse.js";
43
45
  export * from "./basefielddefinition.js";
@@ -68,6 +70,8 @@ export * from "./classificationtargetresult.js";
68
70
  export * from "./classifierfinetunedmodel.js";
69
71
  export * from "./classifiertargetresult.js";
70
72
  export * from "./clientcapabilities.js";
73
+ export * from "./clientsecret.js";
74
+ export * from "./clientsessionpurpose.js";
71
75
  export * from "./clienttaskscapability.js";
72
76
  export * from "./clienttasksrequestscapability.js";
73
77
  export * from "./codeinterpretertool.js";
@@ -119,6 +123,8 @@ export * from "./createjudgerequest.js";
119
123
  export * from "./createlibraryrequest.js";
120
124
  export * from "./createpromptrequest.js";
121
125
  export * from "./createpromptversionresponse.js";
126
+ export * from "./createrealtimesessionrequest.js";
127
+ export * from "./createrealtimesessionresponse.js";
122
128
  export * from "./createskillrequest.js";
123
129
  export * from "./createskillversionresponse.js";
124
130
  export * from "./credentialscreateorupdate.js";
@@ -244,6 +250,9 @@ export * from "./gettrace.js";
244
250
  export * from "./gettracefieldoptions.js";
245
251
  export * from "./gettracefields.js";
246
252
  export * from "./gettraces.js";
253
+ export * from "./gitcommitauthor.js";
254
+ export * from "./gitcommitmetadata.js";
255
+ export * from "./globalheadervalue.js";
247
256
  export * from "./granularity.js";
248
257
  export * from "./guardrailconfig.js";
249
258
  export * from "./httpstatus.js";
@@ -257,7 +266,9 @@ export * from "./importdatasetfromdatasetrequest.js";
257
266
  export * from "./importdatasetfromexplorerrequest.js";
258
267
  export * from "./importdatasetfromfilerequest.js";
259
268
  export * from "./importdatasetfromplaygroundrequest.js";
269
+ export * from "./inboundauthenticationtype.js";
260
270
  export * from "./ingestionpipelineconfiguration.js";
271
+ export * from "./ingestionpipelinetargetindexref.js";
261
272
  export * from "./inputentries.js";
262
273
  export * from "./inputs.js";
263
274
  export * from "./instructrequest.js";
@@ -291,6 +302,7 @@ export * from "./listdocumentsresponse.js";
291
302
  export * from "./listfilesresponse.js";
292
303
  export * from "./listjudgesresponse.js";
293
304
  export * from "./listlibrariesresponse.js";
305
+ export * from "./listorganizationsresponse.js";
294
306
  export * from "./listpromptsresponse.js";
295
307
  export * from "./listpromptversionsresponse.js";
296
308
  export * from "./listsharingresponse.js";
@@ -299,6 +311,7 @@ export * from "./listskillversionsresponse.js";
299
311
  export * from "./listsortdirection.js";
300
312
  export * from "./listsortfield.js";
301
313
  export * from "./listworkfloweventresponse.js";
314
+ export * from "./listworkspacesresponse.js";
302
315
  export * from "./locationtype.js";
303
316
  export * from "./logicalexpression.js";
304
317
  export * from "./logsrequest.js";
@@ -338,8 +351,10 @@ export * from "./moderationllmv2config.js";
338
351
  export * from "./moderationobject.js";
339
352
  export * from "./moderationresponse.js";
340
353
  export * from "./networkencodedinput.js";
354
+ export * from "./oauth2metadatasecrets.js";
341
355
  export * from "./oauth2token.js";
342
356
  export * from "./oauth2tokenauth.js";
357
+ export * from "./oauthmetadatasource.js";
343
358
  export * from "./observabilityerrorcode.js";
344
359
  export * from "./observabilityerrordetail.js";
345
360
  export * from "./ocrasidetextblock.js";
@@ -417,6 +432,7 @@ export * from "./registerdeploymentrequestvespafield.js";
417
432
  export * from "./registerdeploymentrequestvespaindex.js";
418
433
  export * from "./registersearchindexresponseindex.js";
419
434
  export * from "./registrysharingscope.js";
435
+ export * from "./requestedservicetier.js";
420
436
  export * from "./requestsource.js";
421
437
  export * from "./resetinvocationbody.js";
422
438
  export * from "./resourcelink.js";
@@ -561,6 +577,8 @@ export * from "./useridentityapikey.js";
561
577
  export * from "./useridentityorganization.js";
562
578
  export * from "./useridentityworkspace.js";
563
579
  export * from "./usermessage.js";
580
+ export * from "./userorganization.js";
581
+ export * from "./userworkspace.js";
564
582
  export * from "./validationerror.js";
565
583
  export * from "./voicecreaterequest.js";
566
584
  export * from "./voicelistresponse.js";
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 2f5c19bbf71c
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+
8
+ export type IngestionPipelineTargetIndexRef = {
9
+ type?: "vespa" | undefined;
10
+ name: string;
11
+ };
12
+
13
+ /** @internal */
14
+ export type IngestionPipelineTargetIndexRef$Outbound = {
15
+ type: "vespa";
16
+ name: string;
17
+ };
18
+
19
+ /** @internal */
20
+ export const IngestionPipelineTargetIndexRef$outboundSchema: z.ZodType<
21
+ IngestionPipelineTargetIndexRef$Outbound,
22
+ IngestionPipelineTargetIndexRef
23
+ > = z.object({
24
+ type: z.literal("vespa").default("vespa" as const),
25
+ name: z.string(),
26
+ });
27
+
28
+ export function ingestionPipelineTargetIndexRefToJSON(
29
+ ingestionPipelineTargetIndexRef: IngestionPipelineTargetIndexRef,
30
+ ): string {
31
+ return JSON.stringify(
32
+ IngestionPipelineTargetIndexRef$outboundSchema.parse(
33
+ ingestionPipelineTargetIndexRef,
34
+ ),
35
+ );
36
+ }
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 1e00d716ccf6
4
+ */
5
+
6
+ import * as z from "zod/v4";
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
+ UserOrganization,
12
+ UserOrganization$inboundSchema,
13
+ } from "./userorganization.js";
14
+
15
+ export type ListOrganizationsResponse = {
16
+ /**
17
+ * The organizations the authenticated user is a member of.
18
+ */
19
+ organizations: Array<UserOrganization>;
20
+ };
21
+
22
+ /** @internal */
23
+ export const ListOrganizationsResponse$inboundSchema: z.ZodType<
24
+ ListOrganizationsResponse,
25
+ unknown
26
+ > = z.object({
27
+ organizations: z.array(UserOrganization$inboundSchema),
28
+ });
29
+
30
+ export function listOrganizationsResponseFromJSON(
31
+ jsonString: string,
32
+ ): SafeParseResult<ListOrganizationsResponse, SDKValidationError> {
33
+ return safeParse(
34
+ jsonString,
35
+ (x) => ListOrganizationsResponse$inboundSchema.parse(JSON.parse(x)),
36
+ `Failed to parse 'ListOrganizationsResponse' from JSON`,
37
+ );
38
+ }
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: d0a0a253bc7e
4
+ */
5
+
6
+ import * as z from "zod/v4";
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 { UserWorkspace, UserWorkspace$inboundSchema } from "./userworkspace.js";
11
+
12
+ export type ListWorkspacesResponse = {
13
+ /**
14
+ * The workspaces the authenticated user is a member of, each tagged with the organization it belongs to.
15
+ */
16
+ workspaces: Array<UserWorkspace>;
17
+ };
18
+
19
+ /** @internal */
20
+ export const ListWorkspacesResponse$inboundSchema: z.ZodType<
21
+ ListWorkspacesResponse,
22
+ unknown
23
+ > = z.object({
24
+ workspaces: z.array(UserWorkspace$inboundSchema),
25
+ });
26
+
27
+ export function listWorkspacesResponseFromJSON(
28
+ jsonString: string,
29
+ ): SafeParseResult<ListWorkspacesResponse, SDKValidationError> {
30
+ return safeParse(
31
+ jsonString,
32
+ (x) => ListWorkspacesResponse$inboundSchema.parse(JSON.parse(x)),
33
+ `Failed to parse 'ListWorkspacesResponse' from JSON`,
34
+ );
35
+ }
@@ -0,0 +1,57 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 9fac067e968f
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import { remap as remap$ } from "../../lib/primitives.js";
8
+
9
+ /**
10
+ * OAuth2 client credentials stored alongside a connector's authentication method.
11
+ *
12
+ * @remarks
13
+ *
14
+ * Used by OAuth2 and Slack App auth types for token exchange and refresh flows.
15
+ * Contains the client credentials obtained during OAuth2 Dynamic Client Registration
16
+ * or provided at connector creation time.
17
+ */
18
+ export type Oauth2MetadataSecrets = {
19
+ clientId?: string | null | undefined;
20
+ clientSecret?: string | null | undefined;
21
+ clientIdIssuedAt?: number | null | undefined;
22
+ clientSecretExpiresAt?: number | null | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export type Oauth2MetadataSecrets$Outbound = {
27
+ client_id?: string | null | undefined;
28
+ client_secret?: string | null | undefined;
29
+ client_id_issued_at?: number | null | undefined;
30
+ client_secret_expires_at?: number | null | undefined;
31
+ };
32
+
33
+ /** @internal */
34
+ export const Oauth2MetadataSecrets$outboundSchema: z.ZodType<
35
+ Oauth2MetadataSecrets$Outbound,
36
+ Oauth2MetadataSecrets
37
+ > = z.object({
38
+ clientId: z.nullable(z.string()).optional(),
39
+ clientSecret: z.nullable(z.string()).optional(),
40
+ clientIdIssuedAt: z.nullable(z.int()).optional(),
41
+ clientSecretExpiresAt: z.nullable(z.int()).optional(),
42
+ }).transform((v) => {
43
+ return remap$(v, {
44
+ clientId: "client_id",
45
+ clientSecret: "client_secret",
46
+ clientIdIssuedAt: "client_id_issued_at",
47
+ clientSecretExpiresAt: "client_secret_expires_at",
48
+ });
49
+ });
50
+
51
+ export function oauth2MetadataSecretsToJSON(
52
+ oauth2MetadataSecrets: Oauth2MetadataSecrets,
53
+ ): string {
54
+ return JSON.stringify(
55
+ Oauth2MetadataSecrets$outboundSchema.parse(oauth2MetadataSecrets),
56
+ );
57
+ }
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 10a04a8e4a87
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { OpenEnum } from "../../types/enums.js";
9
+
10
+ /**
11
+ * How a connector's OAuth server metadata was obtained.
12
+ */
13
+ export const OAuthMetadataSource = {
14
+ Autodiscovery: "autodiscovery",
15
+ Provided: "provided",
16
+ } as const;
17
+ /**
18
+ * How a connector's OAuth server metadata was obtained.
19
+ */
20
+ export type OAuthMetadataSource = OpenEnum<typeof OAuthMetadataSource>;
21
+
22
+ /** @internal */
23
+ export const OAuthMetadataSource$inboundSchema: z.ZodType<
24
+ OAuthMetadataSource,
25
+ unknown
26
+ > = openEnums.inboundSchema(OAuthMetadataSource);
27
+ /** @internal */
28
+ export const OAuthMetadataSource$outboundSchema: z.ZodType<
29
+ string,
30
+ OAuthMetadataSource
31
+ > = openEnums.outboundSchema(OAuthMetadataSource);
@@ -55,6 +55,7 @@ export const ObservabilityErrorCode = {
55
55
  TemplateSyntaxError: "TEMPLATE_SYNTAX_ERROR",
56
56
  ProjectNameAlreadyExists: "PROJECT_NAME_ALREADY_EXISTS",
57
57
  EvaluationNameAlreadyExists: "EVALUATION_NAME_ALREADY_EXISTS",
58
+ OptimizationTrialKeyAlreadyExists: "OPTIMIZATION_TRIAL_KEY_ALREADY_EXISTS",
58
59
  TracesFilterQueryParseError: "TRACES_FILTER_QUERY_PARSE_ERROR",
59
60
  TraceNotFound: "TRACE_NOT_FOUND",
60
61
  SpanNotFound: "SPAN_NOT_FOUND",
@@ -12,6 +12,14 @@ import {
12
12
  ConnectorAuthenticationHeader,
13
13
  ConnectorAuthenticationHeader$inboundSchema,
14
14
  } from "./connectorauthenticationheader.js";
15
+ import {
16
+ ExtendedOAuthServerMetadata,
17
+ ExtendedOAuthServerMetadata$inboundSchema,
18
+ } from "./extendedoauthservermetadata.js";
19
+ import {
20
+ GlobalHeaderValue,
21
+ GlobalHeaderValue$inboundSchema,
22
+ } from "./globalheadervalue.js";
15
23
  import {
16
24
  OutboundAuthenticationType,
17
25
  OutboundAuthenticationType$inboundSchema,
@@ -23,7 +31,9 @@ import {
23
31
  export type PublicAuthenticationMethod = {
24
32
  methodType: OutboundAuthenticationType;
25
33
  headers?: Array<ConnectorAuthenticationHeader> | null | undefined;
34
+ globalHeaders?: { [k: string]: GlobalHeaderValue } | undefined;
26
35
  hasDefaultCredentials: boolean;
36
+ oauth2ServerMetadata?: ExtendedOAuthServerMetadata | null | undefined;
27
37
  };
28
38
 
29
39
  /** @internal */
@@ -34,11 +44,17 @@ export const PublicAuthenticationMethod$inboundSchema: z.ZodType<
34
44
  method_type: OutboundAuthenticationType$inboundSchema,
35
45
  headers: z.nullable(z.array(ConnectorAuthenticationHeader$inboundSchema))
36
46
  .optional(),
47
+ global_headers: z.record(z.string(), GlobalHeaderValue$inboundSchema)
48
+ .optional(),
37
49
  has_default_credentials: z.boolean(),
50
+ oauth2_server_metadata: z.nullable(ExtendedOAuthServerMetadata$inboundSchema)
51
+ .optional(),
38
52
  }).transform((v) => {
39
53
  return remap$(v, {
40
54
  "method_type": "methodType",
55
+ "global_headers": "globalHeaders",
41
56
  "has_default_credentials": "hasDefaultCredentials",
57
+ "oauth2_server_metadata": "oauth2ServerMetadata",
42
58
  });
43
59
  });
44
60
 
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 2dea786aa53c
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+
9
+ export const RequestedServiceTier = {
10
+ Auto: "auto",
11
+ StandardOnly: "standard_only",
12
+ } as const;
13
+ export type RequestedServiceTier = ClosedEnum<typeof RequestedServiceTier>;
14
+
15
+ /** @internal */
16
+ export const RequestedServiceTier$outboundSchema: z.ZodEnum<
17
+ typeof RequestedServiceTier
18
+ > = z.enum(RequestedServiceTier);
@@ -6,10 +6,10 @@
6
6
  import * as z from "zod/v4";
7
7
  import { remap as remap$ } from "../../lib/primitives.js";
8
8
  import {
9
- AuthData,
10
- AuthData$Outbound,
11
- AuthData$outboundSchema,
12
- } from "./authdata.js";
9
+ AuthenticationMethodCreateOrUpdateRequest,
10
+ AuthenticationMethodCreateOrUpdateRequest$Outbound,
11
+ AuthenticationMethodCreateOrUpdateRequest$outboundSchema,
12
+ } from "./authenticationmethodcreateorupdaterequest.js";
13
13
 
14
14
  export type UpdateConnectorRequest = {
15
15
  /**
@@ -38,13 +38,12 @@ export type UpdateConnectorRequest = {
38
38
  */
39
39
  server?: string | null | undefined;
40
40
  /**
41
- * New headers for your mcp connector.
41
+ * list of authentication methods to add to the connector or to update
42
42
  */
43
- headers?: { [k: string]: any } | null | undefined;
44
- /**
45
- * New authentication data for your mcp connector.
46
- */
47
- authData?: AuthData | null | undefined;
43
+ authMethods?:
44
+ | Array<AuthenticationMethodCreateOrUpdateRequest>
45
+ | null
46
+ | undefined;
48
47
  };
49
48
 
50
49
  /** @internal */
@@ -56,8 +55,10 @@ export type UpdateConnectorRequest$Outbound = {
56
55
  system_prompt?: string | null | undefined;
57
56
  protocol: "mcp";
58
57
  server?: string | null | undefined;
59
- headers?: { [k: string]: any } | null | undefined;
60
- auth_data?: AuthData$Outbound | null | undefined;
58
+ auth_methods?:
59
+ | Array<AuthenticationMethodCreateOrUpdateRequest$Outbound>
60
+ | null
61
+ | undefined;
61
62
  };
62
63
 
63
64
  /** @internal */
@@ -72,13 +73,14 @@ export const UpdateConnectorRequest$outboundSchema: z.ZodType<
72
73
  systemPrompt: z.nullable(z.string()).optional(),
73
74
  protocol: z.literal("mcp").default("mcp" as const),
74
75
  server: z.nullable(z.string()).optional(),
75
- headers: z.nullable(z.record(z.string(), z.any())).optional(),
76
- authData: z.nullable(AuthData$outboundSchema).optional(),
76
+ authMethods: z.nullable(
77
+ z.array(AuthenticationMethodCreateOrUpdateRequest$outboundSchema),
78
+ ).optional(),
77
79
  }).transform((v) => {
78
80
  return remap$(v, {
79
81
  iconUrl: "icon_url",
80
82
  systemPrompt: "system_prompt",
81
- authData: "auth_data",
83
+ authMethods: "auth_methods",
82
84
  });
83
85
  });
84
86
 
@@ -14,6 +14,10 @@ export type UsageInfo = {
14
14
  completionTokens?: number | undefined;
15
15
  totalTokens?: number | undefined;
16
16
  promptAudioSeconds?: number | null | undefined;
17
+ /**
18
+ * The service tier at which the request was processed: standard or priority.
19
+ */
20
+ serviceTier?: string | null | undefined;
17
21
  [additionalProperties: string]: unknown;
18
22
  };
19
23
 
@@ -23,12 +27,14 @@ export const UsageInfo$inboundSchema: z.ZodType<UsageInfo, unknown> = z.object({
23
27
  completion_tokens: z.int().default(0),
24
28
  total_tokens: z.int().default(0),
25
29
  prompt_audio_seconds: z.nullable(z.int()).optional(),
30
+ service_tier: z.nullable(z.string()).optional(),
26
31
  }).catchall(z.any()).transform((v) => {
27
32
  return remap$(v, {
28
33
  "prompt_tokens": "promptTokens",
29
34
  "completion_tokens": "completionTokens",
30
35
  "total_tokens": "totalTokens",
31
36
  "prompt_audio_seconds": "promptAudioSeconds",
37
+ "service_tier": "serviceTier",
32
38
  });
33
39
  });
34
40
  /** @internal */
@@ -37,6 +43,7 @@ export type UsageInfo$Outbound = {
37
43
  completion_tokens: number;
38
44
  total_tokens: number;
39
45
  prompt_audio_seconds?: number | null | undefined;
46
+ service_tier?: string | null | undefined;
40
47
  [additionalProperties: string]: unknown;
41
48
  };
42
49
 
@@ -49,6 +56,7 @@ export const UsageInfo$outboundSchema: z.ZodType<
49
56
  completionTokens: z.int().default(0),
50
57
  totalTokens: z.int().default(0),
51
58
  promptAudioSeconds: z.nullable(z.int()).optional(),
59
+ serviceTier: z.nullable(z.string()).optional(),
52
60
  }).catchall(z.any()).transform((v) => {
53
61
  return {
54
62
  ...remap$(v, {
@@ -56,6 +64,7 @@ export const UsageInfo$outboundSchema: z.ZodType<
56
64
  completionTokens: "completion_tokens",
57
65
  totalTokens: "total_tokens",
58
66
  promptAudioSeconds: "prompt_audio_seconds",
67
+ serviceTier: "service_tier",
59
68
  }),
60
69
  };
61
70
  });
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: f685bfb80176
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type UserOrganization = {
12
+ /**
13
+ * The organization's unique identifier.
14
+ */
15
+ id: string;
16
+ /**
17
+ * The organization's display name.
18
+ */
19
+ name: string;
20
+ };
21
+
22
+ /** @internal */
23
+ export const UserOrganization$inboundSchema: z.ZodType<
24
+ UserOrganization,
25
+ unknown
26
+ > = z.object({
27
+ id: z.string(),
28
+ name: z.string(),
29
+ });
30
+
31
+ export function userOrganizationFromJSON(
32
+ jsonString: string,
33
+ ): SafeParseResult<UserOrganization, SDKValidationError> {
34
+ return safeParse(
35
+ jsonString,
36
+ (x) => UserOrganization$inboundSchema.parse(JSON.parse(x)),
37
+ `Failed to parse 'UserOrganization' from JSON`,
38
+ );
39
+ }