@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
@@ -15,6 +15,11 @@ import {
15
15
  ExtendedOAuthServerMetadata$Outbound,
16
16
  ExtendedOAuthServerMetadata$outboundSchema,
17
17
  } from "./extendedoauthservermetadata.js";
18
+ import {
19
+ GlobalHeaderValue,
20
+ GlobalHeaderValue$Outbound,
21
+ GlobalHeaderValue$outboundSchema,
22
+ } from "./globalheadervalue.js";
18
23
  import {
19
24
  PublicResourceVisibility,
20
25
  PublicResourceVisibility$outboundSchema,
@@ -31,6 +36,10 @@ import {
31
36
  * (no ``shared_global``).
32
37
  */
33
38
  export type CreateConnectorRequest = {
39
+ /**
40
+ * Protocol of the connector. Only 'mcp' is supported on the public endpoint; creating HTTP connectors here is explicitly refused.
41
+ */
42
+ protocol?: "mcp" | undefined;
34
43
  /**
35
44
  * The name of the connector. Should be 64 char length maximum, alphanumeric, only underscores/dashes.
36
45
  */
@@ -63,6 +72,10 @@ export type CreateConnectorRequest = {
63
72
  * Optional organization-level headers to be sent with the request to the mcp server.
64
73
  */
65
74
  headers?: { [k: string]: any } | null | undefined;
75
+ /**
76
+ * Optional connector-wide headers, keyed by header name, set at creation and applied to every credential. Secret values are encrypted at rest and never returned in clear.
77
+ */
78
+ globalHeaders?: { [k: string]: GlobalHeaderValue } | undefined;
66
79
  /**
67
80
  * Optional additional authentication data for the connector.
68
81
  */
@@ -83,6 +96,7 @@ export type CreateConnectorRequest = {
83
96
 
84
97
  /** @internal */
85
98
  export type CreateConnectorRequest$Outbound = {
99
+ protocol: "mcp";
86
100
  name: string;
87
101
  title?: string | null | undefined;
88
102
  description: string;
@@ -90,6 +104,7 @@ export type CreateConnectorRequest$Outbound = {
90
104
  visibility?: string | undefined;
91
105
  server: string;
92
106
  headers?: { [k: string]: any } | null | undefined;
107
+ global_headers?: { [k: string]: GlobalHeaderValue$Outbound } | undefined;
93
108
  auth_data?: AuthData$Outbound | null | undefined;
94
109
  oauth2_server_metadata?:
95
110
  | ExtendedOAuthServerMetadata$Outbound
@@ -104,6 +119,7 @@ export const CreateConnectorRequest$outboundSchema: z.ZodType<
104
119
  CreateConnectorRequest$Outbound,
105
120
  CreateConnectorRequest
106
121
  > = z.object({
122
+ protocol: z.literal("mcp").default("mcp" as const),
107
123
  name: z.string(),
108
124
  title: z.nullable(z.string()).optional(),
109
125
  description: z.string(),
@@ -111,6 +127,8 @@ export const CreateConnectorRequest$outboundSchema: z.ZodType<
111
127
  visibility: PublicResourceVisibility$outboundSchema.optional(),
112
128
  server: z.string(),
113
129
  headers: z.nullable(z.record(z.string(), z.any())).optional(),
130
+ globalHeaders: z.record(z.string(), GlobalHeaderValue$outboundSchema)
131
+ .optional(),
114
132
  authData: z.nullable(AuthData$outboundSchema).optional(),
115
133
  oauth2ServerMetadata: z.nullable(ExtendedOAuthServerMetadata$outboundSchema)
116
134
  .optional(),
@@ -119,6 +137,7 @@ export const CreateConnectorRequest$outboundSchema: z.ZodType<
119
137
  }).transform((v) => {
120
138
  return remap$(v, {
121
139
  iconUrl: "icon_url",
140
+ globalHeaders: "global_headers",
122
141
  authData: "auth_data",
123
142
  oauth2ServerMetadata: "oauth2_server_metadata",
124
143
  oauth2ServerMetadataUrl: "oauth2_server_metadata_url",
@@ -5,16 +5,26 @@
5
5
 
6
6
  import * as z from "zod/v4";
7
7
  import { remap as remap$ } from "../../lib/primitives.js";
8
+ import {
9
+ IngestionPipelineTargetIndexRef,
10
+ IngestionPipelineTargetIndexRef$Outbound,
11
+ IngestionPipelineTargetIndexRef$outboundSchema,
12
+ } from "./ingestionpipelinetargetindexref.js";
8
13
 
9
14
  export type CreateIngestionPipelineConfigurationRequest = {
10
15
  name: string;
11
16
  pipelineComposition?: { [k: string]: string } | null | undefined;
17
+ targetIndexes?: Array<IngestionPipelineTargetIndexRef> | null | undefined;
12
18
  };
13
19
 
14
20
  /** @internal */
15
21
  export type CreateIngestionPipelineConfigurationRequest$Outbound = {
16
22
  name: string;
17
23
  pipeline_composition?: { [k: string]: string } | null | undefined;
24
+ target_indexes?:
25
+ | Array<IngestionPipelineTargetIndexRef$Outbound>
26
+ | null
27
+ | undefined;
18
28
  };
19
29
 
20
30
  /** @internal */
@@ -26,9 +36,13 @@ export const CreateIngestionPipelineConfigurationRequest$outboundSchema:
26
36
  name: z.string(),
27
37
  pipelineComposition: z.nullable(z.record(z.string(), z.string()))
28
38
  .optional(),
39
+ targetIndexes: z.nullable(
40
+ z.array(IngestionPipelineTargetIndexRef$outboundSchema),
41
+ ).optional(),
29
42
  }).transform((v) => {
30
43
  return remap$(v, {
31
44
  pipelineComposition: "pipeline_composition",
45
+ targetIndexes: "target_indexes",
32
46
  });
33
47
  });
34
48
 
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 36695fe8032a
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+
8
+ /**
9
+ * Payload used to create realtime client sessions.
10
+ */
11
+ export type CreateRealtimeSessionRequest = {
12
+ purpose: "realtime";
13
+ model: string;
14
+ };
15
+
16
+ /** @internal */
17
+ export type CreateRealtimeSessionRequest$Outbound = {
18
+ purpose: "realtime";
19
+ model: string;
20
+ };
21
+
22
+ /** @internal */
23
+ export const CreateRealtimeSessionRequest$outboundSchema: z.ZodType<
24
+ CreateRealtimeSessionRequest$Outbound,
25
+ CreateRealtimeSessionRequest
26
+ > = z.object({
27
+ purpose: z.literal("realtime"),
28
+ model: z.string(),
29
+ });
30
+
31
+ export function createRealtimeSessionRequestToJSON(
32
+ createRealtimeSessionRequest: CreateRealtimeSessionRequest,
33
+ ): string {
34
+ return JSON.stringify(
35
+ CreateRealtimeSessionRequest$outboundSchema.parse(
36
+ createRealtimeSessionRequest,
37
+ ),
38
+ );
39
+ }
@@ -0,0 +1,51 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 54b042ff1e68
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 { ClientSecret, ClientSecret$inboundSchema } from "./clientsecret.js";
12
+ import {
13
+ ClientSessionPurpose,
14
+ ClientSessionPurpose$inboundSchema,
15
+ } from "./clientsessionpurpose.js";
16
+
17
+ export type CreateRealtimeSessionResponse = {
18
+ object: "client.session";
19
+ /**
20
+ * Supported purposes for client sessions.
21
+ */
22
+ purpose: ClientSessionPurpose;
23
+ expiresAt: Date;
24
+ clientSecret: ClientSecret;
25
+ };
26
+
27
+ /** @internal */
28
+ export const CreateRealtimeSessionResponse$inboundSchema: z.ZodType<
29
+ CreateRealtimeSessionResponse,
30
+ unknown
31
+ > = z.object({
32
+ object: z.literal("client.session").default("client.session"),
33
+ purpose: ClientSessionPurpose$inboundSchema,
34
+ expires_at: z.iso.datetime({ offset: true }).transform(v => new Date(v)),
35
+ client_secret: ClientSecret$inboundSchema,
36
+ }).transform((v) => {
37
+ return remap$(v, {
38
+ "expires_at": "expiresAt",
39
+ "client_secret": "clientSecret",
40
+ });
41
+ });
42
+
43
+ export function createRealtimeSessionResponseFromJSON(
44
+ jsonString: string,
45
+ ): SafeParseResult<CreateRealtimeSessionResponse, SDKValidationError> {
46
+ return safeParse(
47
+ jsonString,
48
+ (x) => CreateRealtimeSessionResponse$inboundSchema.parse(JSON.parse(x)),
49
+ `Failed to parse 'CreateRealtimeSessionResponse' from JSON`,
50
+ );
51
+ }
@@ -37,6 +37,18 @@ export type CustomTaskCanceledResponse = {
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 CustomTaskCanceledResponse$inboundSchema: z.ZodType<
68
80
  event_timestamp: z.int(),
69
81
  root_workflow_exec_id: z.string(),
70
82
  parent_workflow_exec_id: z.nullable(z.string()),
83
+ continued_run_id: z.nullable(z.string()),
84
+ first_execution_run_id: z.nullable(z.string()),
85
+ schedule_id: z.nullable(z.string()),
71
86
  workflow_exec_id: z.string(),
72
87
  workflow_run_id: z.string(),
73
88
  workflow_name: z.string(),
@@ -79,6 +94,9 @@ export const CustomTaskCanceledResponse$inboundSchema: z.ZodType<
79
94
  "event_timestamp": "eventTimestamp",
80
95
  "root_workflow_exec_id": "rootWorkflowExecId",
81
96
  "parent_workflow_exec_id": "parentWorkflowExecId",
97
+ "continued_run_id": "continuedRunId",
98
+ "first_execution_run_id": "firstExecutionRunId",
99
+ "schedule_id": "scheduleId",
82
100
  "workflow_exec_id": "workflowExecId",
83
101
  "workflow_run_id": "workflowRunId",
84
102
  "workflow_name": "workflowName",
@@ -37,6 +37,18 @@ export type CustomTaskCompletedResponse = {
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 CustomTaskCompletedResponse$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 CustomTaskCompletedResponse$inboundSchema: z.ZodType<
81
96
  "event_timestamp": "eventTimestamp",
82
97
  "root_workflow_exec_id": "rootWorkflowExecId",
83
98
  "parent_workflow_exec_id": "parentWorkflowExecId",
99
+ "continued_run_id": "continuedRunId",
100
+ "first_execution_run_id": "firstExecutionRunId",
101
+ "schedule_id": "scheduleId",
84
102
  "workflow_exec_id": "workflowExecId",
85
103
  "workflow_run_id": "workflowRunId",
86
104
  "workflow_name": "workflowName",
@@ -37,6 +37,18 @@ export type CustomTaskFailedResponse = {
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 CustomTaskFailedResponse$inboundSchema: z.ZodType<
68
80
  event_timestamp: z.int(),
69
81
  root_workflow_exec_id: z.string(),
70
82
  parent_workflow_exec_id: z.nullable(z.string()),
83
+ continued_run_id: z.nullable(z.string()),
84
+ first_execution_run_id: z.nullable(z.string()),
85
+ schedule_id: z.nullable(z.string()),
71
86
  workflow_exec_id: z.string(),
72
87
  workflow_run_id: z.string(),
73
88
  workflow_name: z.string(),
@@ -79,6 +94,9 @@ export const CustomTaskFailedResponse$inboundSchema: z.ZodType<
79
94
  "event_timestamp": "eventTimestamp",
80
95
  "root_workflow_exec_id": "rootWorkflowExecId",
81
96
  "parent_workflow_exec_id": "parentWorkflowExecId",
97
+ "continued_run_id": "continuedRunId",
98
+ "first_execution_run_id": "firstExecutionRunId",
99
+ "schedule_id": "scheduleId",
82
100
  "workflow_exec_id": "workflowExecId",
83
101
  "workflow_run_id": "workflowRunId",
84
102
  "workflow_name": "workflowName",
@@ -38,6 +38,18 @@ export type CustomTaskInProgressResponse = {
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 CustomTaskInProgressResponse$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 CustomTaskInProgressResponse$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",
@@ -38,6 +38,18 @@ export type CustomTaskStartedResponse = {
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 CustomTaskStartedResponse$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 CustomTaskStartedResponse$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",
@@ -37,6 +37,18 @@ export type CustomTaskTimedOutResponse = {
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 CustomTaskTimedOutResponse$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 CustomTaskTimedOutResponse$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",
@@ -49,6 +49,8 @@ export type DeploymentDetailResponse = {
49
49
  updatedAt: Date;
50
50
  /**
51
51
  * Where the deployment is running
52
+ *
53
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
52
54
  */
53
55
  location?: DeploymentLocation | null | undefined;
54
56
  /**
@@ -45,6 +45,8 @@ export type DeploymentResponse = {
45
45
  updatedAt: Date;
46
46
  /**
47
47
  * Where the deployment is running
48
+ *
49
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
48
50
  */
49
51
  location?: DeploymentLocation | null | undefined;
50
52
  /**
@@ -8,6 +8,10 @@ import { remap as remap$ } from "../../lib/primitives.js";
8
8
  import { safeParse } from "../../lib/schemas.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import {
12
+ GitCommitMetadata,
13
+ GitCommitMetadata$inboundSchema,
14
+ } from "./gitcommitmetadata.js";
11
15
 
12
16
  export type DeploymentWorkerSpecResponse = {
13
17
  githubUrl: string;
@@ -16,7 +20,11 @@ export type DeploymentWorkerSpecResponse = {
16
20
  entrypoint?: string | null | undefined;
17
21
  workingDir?: string | null | undefined;
18
22
  restartedAt?: string | null | undefined;
23
+ /**
24
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
25
+ */
19
26
  commitSha?: string | null | undefined;
27
+ commit?: GitCommitMetadata | null | undefined;
20
28
  };
21
29
 
22
30
  /** @internal */
@@ -31,6 +39,7 @@ export const DeploymentWorkerSpecResponse$inboundSchema: z.ZodType<
31
39
  working_dir: z.nullable(z.string()).optional(),
32
40
  restarted_at: z.nullable(z.string()).optional(),
33
41
  commit_sha: z.nullable(z.string()).optional(),
42
+ commit: z.nullable(GitCommitMetadata$inboundSchema).optional(),
34
43
  }).transform((v) => {
35
44
  return remap$(v, {
36
45
  "github_url": "githubUrl",
@@ -5,6 +5,14 @@
5
5
 
6
6
  import * as z from "zod/v4";
7
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
+ OAuthMetadataSource,
13
+ OAuthMetadataSource$inboundSchema,
14
+ OAuthMetadataSource$outboundSchema,
15
+ } from "./oauthmetadatasource.js";
8
16
 
9
17
  /**
10
18
  * Custom superset of RFC 8414 OAuth 2.0 Authorization Server Metadata.
@@ -43,9 +51,85 @@ export type ExtendedOAuthServerMetadata = {
43
51
  | undefined;
44
52
  codeChallengeMethodsSupported?: Array<string> | null | undefined;
45
53
  clientIdMetadataDocumentSupported?: boolean | null | undefined;
54
+ xSource?: OAuthMetadataSource | null | undefined;
46
55
  xResourceUrl?: string | null | undefined;
56
+ xScope?: string | null | undefined;
47
57
  };
48
58
 
59
+ /** @internal */
60
+ export const ExtendedOAuthServerMetadata$inboundSchema: z.ZodType<
61
+ ExtendedOAuthServerMetadata,
62
+ unknown
63
+ > = z.object({
64
+ issuer: z.string(),
65
+ authorization_endpoint: z.string(),
66
+ token_endpoint: z.string(),
67
+ registration_endpoint: z.nullable(z.string()).optional(),
68
+ scopes_supported: z.nullable(z.array(z.string())).optional(),
69
+ response_types_supported: z.array(z.string()).optional(),
70
+ response_modes_supported: z.nullable(z.array(z.string())).optional(),
71
+ grant_types_supported: z.nullable(z.array(z.string())).optional(),
72
+ token_endpoint_auth_methods_supported: z.nullable(z.array(z.string()))
73
+ .optional(),
74
+ token_endpoint_auth_signing_alg_values_supported: z.nullable(
75
+ z.array(z.string()),
76
+ ).optional(),
77
+ service_documentation: z.nullable(z.string()).optional(),
78
+ ui_locales_supported: z.nullable(z.array(z.string())).optional(),
79
+ op_policy_uri: z.nullable(z.string()).optional(),
80
+ op_tos_uri: z.nullable(z.string()).optional(),
81
+ revocation_endpoint: z.nullable(z.string()).optional(),
82
+ revocation_endpoint_auth_methods_supported: z.nullable(z.array(z.string()))
83
+ .optional(),
84
+ revocation_endpoint_auth_signing_alg_values_supported: z.nullable(
85
+ z.array(z.string()),
86
+ ).optional(),
87
+ introspection_endpoint: z.nullable(z.string()).optional(),
88
+ introspection_endpoint_auth_methods_supported: z.nullable(z.array(z.string()))
89
+ .optional(),
90
+ introspection_endpoint_auth_signing_alg_values_supported: z.nullable(
91
+ z.array(z.string()),
92
+ ).optional(),
93
+ code_challenge_methods_supported: z.nullable(z.array(z.string())).optional(),
94
+ client_id_metadata_document_supported: z.nullable(z.boolean()).optional(),
95
+ x_source: z.nullable(OAuthMetadataSource$inboundSchema).optional(),
96
+ x_resource_url: z.nullable(z.string()).optional(),
97
+ x_scope: z.nullable(z.string()).optional(),
98
+ }).transform((v) => {
99
+ return remap$(v, {
100
+ "authorization_endpoint": "authorizationEndpoint",
101
+ "token_endpoint": "tokenEndpoint",
102
+ "registration_endpoint": "registrationEndpoint",
103
+ "scopes_supported": "scopesSupported",
104
+ "response_types_supported": "responseTypesSupported",
105
+ "response_modes_supported": "responseModesSupported",
106
+ "grant_types_supported": "grantTypesSupported",
107
+ "token_endpoint_auth_methods_supported":
108
+ "tokenEndpointAuthMethodsSupported",
109
+ "token_endpoint_auth_signing_alg_values_supported":
110
+ "tokenEndpointAuthSigningAlgValuesSupported",
111
+ "service_documentation": "serviceDocumentation",
112
+ "ui_locales_supported": "uiLocalesSupported",
113
+ "op_policy_uri": "opPolicyUri",
114
+ "op_tos_uri": "opTosUri",
115
+ "revocation_endpoint": "revocationEndpoint",
116
+ "revocation_endpoint_auth_methods_supported":
117
+ "revocationEndpointAuthMethodsSupported",
118
+ "revocation_endpoint_auth_signing_alg_values_supported":
119
+ "revocationEndpointAuthSigningAlgValuesSupported",
120
+ "introspection_endpoint": "introspectionEndpoint",
121
+ "introspection_endpoint_auth_methods_supported":
122
+ "introspectionEndpointAuthMethodsSupported",
123
+ "introspection_endpoint_auth_signing_alg_values_supported":
124
+ "introspectionEndpointAuthSigningAlgValuesSupported",
125
+ "code_challenge_methods_supported": "codeChallengeMethodsSupported",
126
+ "client_id_metadata_document_supported":
127
+ "clientIdMetadataDocumentSupported",
128
+ "x_source": "xSource",
129
+ "x_resource_url": "xResourceUrl",
130
+ "x_scope": "xScope",
131
+ });
132
+ });
49
133
  /** @internal */
50
134
  export type ExtendedOAuthServerMetadata$Outbound = {
51
135
  issuer: string;
@@ -82,7 +166,9 @@ export type ExtendedOAuthServerMetadata$Outbound = {
82
166
  | undefined;
83
167
  code_challenge_methods_supported?: Array<string> | null | undefined;
84
168
  client_id_metadata_document_supported?: boolean | null | undefined;
169
+ x_source?: string | null | undefined;
85
170
  x_resource_url?: string | null | undefined;
171
+ x_scope?: string | null | undefined;
86
172
  };
87
173
 
88
174
  /** @internal */
@@ -119,7 +205,9 @@ export const ExtendedOAuthServerMetadata$outboundSchema: z.ZodType<
119
205
  ).optional(),
120
206
  codeChallengeMethodsSupported: z.nullable(z.array(z.string())).optional(),
121
207
  clientIdMetadataDocumentSupported: z.nullable(z.boolean()).optional(),
208
+ xSource: z.nullable(OAuthMetadataSource$outboundSchema).optional(),
122
209
  xResourceUrl: z.nullable(z.string()).optional(),
210
+ xScope: z.nullable(z.string()).optional(),
123
211
  }).transform((v) => {
124
212
  return remap$(v, {
125
213
  authorizationEndpoint: "authorization_endpoint",
@@ -148,7 +236,9 @@ export const ExtendedOAuthServerMetadata$outboundSchema: z.ZodType<
148
236
  "introspection_endpoint_auth_signing_alg_values_supported",
149
237
  codeChallengeMethodsSupported: "code_challenge_methods_supported",
150
238
  clientIdMetadataDocumentSupported: "client_id_metadata_document_supported",
239
+ xSource: "x_source",
151
240
  xResourceUrl: "x_resource_url",
241
+ xScope: "x_scope",
152
242
  });
153
243
  });
154
244
 
@@ -161,3 +251,12 @@ export function extendedOAuthServerMetadataToJSON(
161
251
  ),
162
252
  );
163
253
  }
254
+ export function extendedOAuthServerMetadataFromJSON(
255
+ jsonString: string,
256
+ ): SafeParseResult<ExtendedOAuthServerMetadata, SDKValidationError> {
257
+ return safeParse(
258
+ jsonString,
259
+ (x) => ExtendedOAuthServerMetadata$inboundSchema.parse(JSON.parse(x)),
260
+ `Failed to parse 'ExtendedOAuthServerMetadata' from JSON`,
261
+ );
262
+ }
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: f2dd415a6130
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 GitCommitAuthor = {
13
+ name?: string | null | undefined;
14
+ username?: string | null | undefined;
15
+ htmlUrl?: string | null | undefined;
16
+ };
17
+
18
+ /** @internal */
19
+ export const GitCommitAuthor$inboundSchema: z.ZodType<
20
+ GitCommitAuthor,
21
+ unknown
22
+ > = z.object({
23
+ name: z.nullable(z.string()).optional(),
24
+ username: z.nullable(z.string()).optional(),
25
+ html_url: z.nullable(z.string()).optional(),
26
+ }).transform((v) => {
27
+ return remap$(v, {
28
+ "html_url": "htmlUrl",
29
+ });
30
+ });
31
+
32
+ export function gitCommitAuthorFromJSON(
33
+ jsonString: string,
34
+ ): SafeParseResult<GitCommitAuthor, SDKValidationError> {
35
+ return safeParse(
36
+ jsonString,
37
+ (x) => GitCommitAuthor$inboundSchema.parse(JSON.parse(x)),
38
+ `Failed to parse 'GitCommitAuthor' from JSON`,
39
+ );
40
+ }