@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,47 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 7a0cb86aee63
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 UserWorkspace = {
13
+ /**
14
+ * The workspace's unique identifier.
15
+ */
16
+ id: string;
17
+ /**
18
+ * The workspace's display name.
19
+ */
20
+ name: string;
21
+ /**
22
+ * The identifier of the organization this workspace belongs to.
23
+ */
24
+ organizationId: string;
25
+ };
26
+
27
+ /** @internal */
28
+ export const UserWorkspace$inboundSchema: z.ZodType<UserWorkspace, unknown> = z
29
+ .object({
30
+ id: z.string(),
31
+ name: z.string(),
32
+ organization_id: z.string(),
33
+ }).transform((v) => {
34
+ return remap$(v, {
35
+ "organization_id": "organizationId",
36
+ });
37
+ });
38
+
39
+ export function userWorkspaceFromJSON(
40
+ jsonString: string,
41
+ ): SafeParseResult<UserWorkspace, SDKValidationError> {
42
+ return safeParse(
43
+ jsonString,
44
+ (x) => UserWorkspace$inboundSchema.parse(JSON.parse(x)),
45
+ `Failed to parse 'UserWorkspace' from JSON`,
46
+ );
47
+ }
@@ -21,6 +21,10 @@ export type WorkflowExecutionCanceledAttributes = {
21
21
  * Optional reason provided for the cancellation.
22
22
  */
23
23
  reason?: string | null | undefined;
24
+ /**
25
+ * Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.
26
+ */
27
+ attempt: number;
24
28
  };
25
29
 
26
30
  /** @internal */
@@ -30,6 +34,7 @@ export const WorkflowExecutionCanceledAttributes$inboundSchema: z.ZodType<
30
34
  > = z.object({
31
35
  task_id: z.string(),
32
36
  reason: z.nullable(z.string()).optional(),
37
+ attempt: z.int().default(1),
33
38
  }).transform((v) => {
34
39
  return remap$(v, {
35
40
  "task_id": "taskId",
@@ -37,6 +37,18 @@ export type WorkflowExecutionCanceledResponse = {
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 WorkflowExecutionCanceledResponse$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 WorkflowExecutionCanceledResponse$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",
@@ -31,6 +31,10 @@ export type WorkflowExecutionCompletedAttributesResponse = {
31
31
  * and encoding_options indicates the type of encryption applied.
32
32
  */
33
33
  result: JSONPayloadResponse;
34
+ /**
35
+ * Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.
36
+ */
37
+ attempt: number;
34
38
  };
35
39
 
36
40
  /** @internal */
@@ -38,6 +42,7 @@ export const WorkflowExecutionCompletedAttributesResponse$inboundSchema:
38
42
  z.ZodType<WorkflowExecutionCompletedAttributesResponse, unknown> = z.object({
39
43
  task_id: z.string(),
40
44
  result: JSONPayloadResponse$inboundSchema,
45
+ attempt: z.int().default(1),
41
46
  }).transform((v) => {
42
47
  return remap$(v, {
43
48
  "task_id": "taskId",
@@ -37,6 +37,18 @@ export type WorkflowExecutionCompletedResponse = {
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 WorkflowExecutionCompletedResponse$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 WorkflowExecutionCompletedResponse$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 WorkflowExecutionContinuedAsNewResponse = {
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 WorkflowExecutionContinuedAsNewResponse$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 WorkflowExecutionContinuedAsNewResponse$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",
@@ -22,6 +22,10 @@ export type WorkflowExecutionFailedAttributes = {
22
22
  * Represents an error or exception that occurred during execution.
23
23
  */
24
24
  failure: Failure;
25
+ /**
26
+ * Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.
27
+ */
28
+ attempt: number;
25
29
  };
26
30
 
27
31
  /** @internal */
@@ -31,6 +35,7 @@ export const WorkflowExecutionFailedAttributes$inboundSchema: z.ZodType<
31
35
  > = z.object({
32
36
  task_id: z.string(),
33
37
  failure: Failure$inboundSchema,
38
+ attempt: z.int().default(1),
34
39
  }).transform((v) => {
35
40
  return remap$(v, {
36
41
  "task_id": "taskId",
@@ -37,6 +37,18 @@ export type WorkflowExecutionFailedResponse = {
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 WorkflowExecutionFailedResponse$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 WorkflowExecutionFailedResponse$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",
@@ -39,6 +39,10 @@ export type WorkflowExecutionStartedAttributesResponse = {
39
39
  * and encoding_options indicates the type of encryption applied.
40
40
  */
41
41
  input: JSONPayloadResponse;
42
+ /**
43
+ * Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.
44
+ */
45
+ attempt: number;
42
46
  };
43
47
 
44
48
  /** @internal */
@@ -48,6 +52,7 @@ export const WorkflowExecutionStartedAttributesResponse$inboundSchema:
48
52
  workflow_name: z.string(),
49
53
  display_name: z.nullable(z.string()).optional(),
50
54
  input: JSONPayloadResponse$inboundSchema,
55
+ attempt: z.int().default(1),
51
56
  }).transform((v) => {
52
57
  return remap$(v, {
53
58
  "task_id": "taskId",
@@ -37,6 +37,18 @@ export type WorkflowExecutionStartedResponse = {
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 WorkflowExecutionStartedResponse$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 WorkflowExecutionStartedResponse$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 WorkflowTaskFailedResponse = {
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 WorkflowTaskFailedResponse$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(),
@@ -80,6 +95,9 @@ export const WorkflowTaskFailedResponse$inboundSchema: z.ZodType<
80
95
  "event_timestamp": "eventTimestamp",
81
96
  "root_workflow_exec_id": "rootWorkflowExecId",
82
97
  "parent_workflow_exec_id": "parentWorkflowExecId",
98
+ "continued_run_id": "continuedRunId",
99
+ "first_execution_run_id": "firstExecutionRunId",
100
+ "schedule_id": "scheduleId",
83
101
  "workflow_exec_id": "workflowExecId",
84
102
  "workflow_run_id": "workflowRunId",
85
103
  "workflow_name": "workflowName",
@@ -38,6 +38,18 @@ export type WorkflowTaskTimedOutResponse = {
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 WorkflowTaskTimedOutResponse$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 WorkflowTaskTimedOutResponse$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",
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 0ef3837f40cb
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import * as components from "../components/index.js";
8
+
9
+ export type Body = components.CreateRealtimeSessionRequest;
10
+
11
+ /** @internal */
12
+ export type Body$Outbound = components.CreateRealtimeSessionRequest$Outbound;
13
+
14
+ /** @internal */
15
+ export const Body$outboundSchema: z.ZodType<Body$Outbound, Body> =
16
+ components.CreateRealtimeSessionRequest$outboundSchema;
17
+
18
+ export function bodyToJSON(body: Body): string {
19
+ return JSON.stringify(Body$outboundSchema.parse(body));
20
+ }
@@ -4,14 +4,20 @@
4
4
  */
5
5
 
6
6
  import * as z from "zod/v4";
7
+ import { remap as remap$ } from "../../lib/primitives.js";
7
8
 
8
9
  export type GetDeploymentV1WorkflowsDeploymentsNameGetRequest = {
9
10
  name: string;
11
+ /**
12
+ * Scope serving status to this workflow
13
+ */
14
+ workflowName?: string | null | undefined;
10
15
  };
11
16
 
12
17
  /** @internal */
13
18
  export type GetDeploymentV1WorkflowsDeploymentsNameGetRequest$Outbound = {
14
19
  name: string;
20
+ workflow_name?: string | null | undefined;
15
21
  };
16
22
 
17
23
  /** @internal */
@@ -21,6 +27,11 @@ export const GetDeploymentV1WorkflowsDeploymentsNameGetRequest$outboundSchema:
21
27
  GetDeploymentV1WorkflowsDeploymentsNameGetRequest
22
28
  > = z.object({
23
29
  name: z.string(),
30
+ workflowName: z.nullable(z.string()).optional(),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ workflowName: "workflow_name",
34
+ });
24
35
  });
25
36
 
26
37
  export function getDeploymentV1WorkflowsDeploymentsNameGetRequestToJSON(
@@ -49,6 +49,7 @@ export * from "./connectorlistworkspacecredentialsv1.js";
49
49
  export * from "./connectorsharev1.js";
50
50
  export * from "./connectorunsharev1.js";
51
51
  export * from "./connectorupdatev1.js";
52
+ export * from "./createclientsessionv1clientsessionspost.js";
52
53
  export * from "./createdatasetrecordv1observabilitydatasetsdatasetidrecordspost.js";
53
54
  export * from "./deletecampaignv1observabilitycampaignscampaigniddelete.js";
54
55
  export * from "./deletedatasetrecordv1observabilitydatasetrecordsdatasetrecordiddelete.js";
@@ -202,3 +203,5 @@ export * from "./updatevoicev1audiovoicesvoiceidpatch.js";
202
203
  export * from "./updateworkflowexecutionv1workflowsexecutionsexecutionidupdatespost.js";
203
204
  export * from "./updateworkflowv1workflowsworkflowidentifierput.js";
204
205
  export * from "./usersapigetidentity.js";
206
+ export * from "./usersapilistorganizations.js";
207
+ export * from "./usersapilistworkspaces.js";
@@ -0,0 +1,104 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 4a5dc076290b
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 * as components from "../components/index.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+
13
+ export type UsersApiListOrganizationsSecurity = {
14
+ dashboardUserContextAuth: string;
15
+ };
16
+
17
+ export type UsersApiListOrganizationsRequest = {
18
+ /**
19
+ * Number of organizations to skip before returning results.
20
+ */
21
+ offset?: number | undefined;
22
+ /**
23
+ * Maximum number of organizations to return.
24
+ */
25
+ limit?: number | undefined;
26
+ };
27
+
28
+ export type UsersApiListOrganizationsResponse = {
29
+ result: components.ListOrganizationsResponse;
30
+ };
31
+
32
+ /** @internal */
33
+ export type UsersApiListOrganizationsSecurity$Outbound = {
34
+ DashboardUserContextAuth: string;
35
+ };
36
+
37
+ /** @internal */
38
+ export const UsersApiListOrganizationsSecurity$outboundSchema: z.ZodType<
39
+ UsersApiListOrganizationsSecurity$Outbound,
40
+ UsersApiListOrganizationsSecurity
41
+ > = z.object({
42
+ dashboardUserContextAuth: z.string(),
43
+ }).transform((v) => {
44
+ return remap$(v, {
45
+ dashboardUserContextAuth: "DashboardUserContextAuth",
46
+ });
47
+ });
48
+
49
+ export function usersApiListOrganizationsSecurityToJSON(
50
+ usersApiListOrganizationsSecurity: UsersApiListOrganizationsSecurity,
51
+ ): string {
52
+ return JSON.stringify(
53
+ UsersApiListOrganizationsSecurity$outboundSchema.parse(
54
+ usersApiListOrganizationsSecurity,
55
+ ),
56
+ );
57
+ }
58
+
59
+ /** @internal */
60
+ export type UsersApiListOrganizationsRequest$Outbound = {
61
+ offset: number;
62
+ limit: number;
63
+ };
64
+
65
+ /** @internal */
66
+ export const UsersApiListOrganizationsRequest$outboundSchema: z.ZodType<
67
+ UsersApiListOrganizationsRequest$Outbound,
68
+ UsersApiListOrganizationsRequest
69
+ > = z.object({
70
+ offset: z.int().default(0),
71
+ limit: z.int().default(100),
72
+ });
73
+
74
+ export function usersApiListOrganizationsRequestToJSON(
75
+ usersApiListOrganizationsRequest: UsersApiListOrganizationsRequest,
76
+ ): string {
77
+ return JSON.stringify(
78
+ UsersApiListOrganizationsRequest$outboundSchema.parse(
79
+ usersApiListOrganizationsRequest,
80
+ ),
81
+ );
82
+ }
83
+
84
+ /** @internal */
85
+ export const UsersApiListOrganizationsResponse$inboundSchema: z.ZodType<
86
+ UsersApiListOrganizationsResponse,
87
+ unknown
88
+ > = z.object({
89
+ Result: components.ListOrganizationsResponse$inboundSchema,
90
+ }).transform((v) => {
91
+ return remap$(v, {
92
+ "Result": "result",
93
+ });
94
+ });
95
+
96
+ export function usersApiListOrganizationsResponseFromJSON(
97
+ jsonString: string,
98
+ ): SafeParseResult<UsersApiListOrganizationsResponse, SDKValidationError> {
99
+ return safeParse(
100
+ jsonString,
101
+ (x) => UsersApiListOrganizationsResponse$inboundSchema.parse(JSON.parse(x)),
102
+ `Failed to parse 'UsersApiListOrganizationsResponse' from JSON`,
103
+ );
104
+ }