@orq-ai/node 3.1.9 → 3.1.11

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 (448) hide show
  1. package/README.md +55 -1
  2. package/bin/mcp-server.js +50033 -0
  3. package/bin/mcp-server.js.map +318 -0
  4. package/funcs/contactsCreate.d.ts +2 -1
  5. package/funcs/contactsCreate.d.ts.map +1 -1
  6. package/funcs/contactsCreate.js +11 -7
  7. package/funcs/contactsCreate.js.map +1 -1
  8. package/funcs/deploymentsGetConfig.d.ts +2 -1
  9. package/funcs/deploymentsGetConfig.d.ts.map +1 -1
  10. package/funcs/deploymentsGetConfig.js +11 -7
  11. package/funcs/deploymentsGetConfig.js.map +1 -1
  12. package/funcs/deploymentsInvoke.d.ts +2 -1
  13. package/funcs/deploymentsInvoke.d.ts.map +1 -1
  14. package/funcs/deploymentsInvoke.js +11 -7
  15. package/funcs/deploymentsInvoke.js.map +1 -1
  16. package/funcs/deploymentsList.d.ts +2 -1
  17. package/funcs/deploymentsList.d.ts.map +1 -1
  18. package/funcs/deploymentsList.js +11 -7
  19. package/funcs/deploymentsList.js.map +1 -1
  20. package/funcs/deploymentsMetricsCreate.d.ts +2 -1
  21. package/funcs/deploymentsMetricsCreate.d.ts.map +1 -1
  22. package/funcs/deploymentsMetricsCreate.js +11 -7
  23. package/funcs/deploymentsMetricsCreate.js.map +1 -1
  24. package/funcs/deploymentsStream.d.ts +2 -1
  25. package/funcs/deploymentsStream.d.ts.map +1 -1
  26. package/funcs/deploymentsStream.js +11 -7
  27. package/funcs/deploymentsStream.js.map +1 -1
  28. package/funcs/feedbackCreate.d.ts +2 -1
  29. package/funcs/feedbackCreate.d.ts.map +1 -1
  30. package/funcs/feedbackCreate.js +11 -7
  31. package/funcs/feedbackCreate.js.map +1 -1
  32. package/funcs/filesCreate.d.ts +2 -1
  33. package/funcs/filesCreate.d.ts.map +1 -1
  34. package/funcs/filesCreate.js +11 -7
  35. package/funcs/filesCreate.js.map +1 -1
  36. package/funcs/filesDelete.d.ts +2 -1
  37. package/funcs/filesDelete.d.ts.map +1 -1
  38. package/funcs/filesDelete.js +11 -7
  39. package/funcs/filesDelete.js.map +1 -1
  40. package/funcs/filesGet.d.ts +2 -1
  41. package/funcs/filesGet.d.ts.map +1 -1
  42. package/funcs/filesGet.js +11 -7
  43. package/funcs/filesGet.js.map +1 -1
  44. package/funcs/filesList.d.ts +2 -1
  45. package/funcs/filesList.d.ts.map +1 -1
  46. package/funcs/filesList.js +11 -7
  47. package/funcs/filesList.js.map +1 -1
  48. package/funcs/promptsCreate.d.ts +2 -1
  49. package/funcs/promptsCreate.d.ts.map +1 -1
  50. package/funcs/promptsCreate.js +11 -7
  51. package/funcs/promptsCreate.js.map +1 -1
  52. package/funcs/promptsDelete.d.ts +2 -1
  53. package/funcs/promptsDelete.d.ts.map +1 -1
  54. package/funcs/promptsDelete.js +11 -7
  55. package/funcs/promptsDelete.js.map +1 -1
  56. package/funcs/promptsGetVersion.d.ts +2 -1
  57. package/funcs/promptsGetVersion.d.ts.map +1 -1
  58. package/funcs/promptsGetVersion.js +11 -7
  59. package/funcs/promptsGetVersion.js.map +1 -1
  60. package/funcs/promptsList.d.ts +2 -1
  61. package/funcs/promptsList.d.ts.map +1 -1
  62. package/funcs/promptsList.js +11 -7
  63. package/funcs/promptsList.js.map +1 -1
  64. package/funcs/promptsListVersions.d.ts +2 -1
  65. package/funcs/promptsListVersions.d.ts.map +1 -1
  66. package/funcs/promptsListVersions.js +11 -7
  67. package/funcs/promptsListVersions.js.map +1 -1
  68. package/funcs/promptsRetrieve.d.ts +2 -1
  69. package/funcs/promptsRetrieve.d.ts.map +1 -1
  70. package/funcs/promptsRetrieve.js +11 -7
  71. package/funcs/promptsRetrieve.js.map +1 -1
  72. package/funcs/promptsUpdate.d.ts +2 -1
  73. package/funcs/promptsUpdate.d.ts.map +1 -1
  74. package/funcs/promptsUpdate.js +11 -7
  75. package/funcs/promptsUpdate.js.map +1 -1
  76. package/funcs/remoteconfigsRetrieve.d.ts +2 -1
  77. package/funcs/remoteconfigsRetrieve.d.ts.map +1 -1
  78. package/funcs/remoteconfigsRetrieve.js +11 -7
  79. package/funcs/remoteconfigsRetrieve.js.map +1 -1
  80. package/jsr.json +1 -1
  81. package/lib/config.d.ts +6 -6
  82. package/lib/config.d.ts.map +1 -1
  83. package/lib/config.js +3 -3
  84. package/lib/config.js.map +1 -1
  85. package/lib/files.js.map +1 -1
  86. package/lib/primitives.d.ts +3 -0
  87. package/lib/primitives.d.ts.map +1 -1
  88. package/lib/primitives.js +7 -0
  89. package/lib/primitives.js.map +1 -1
  90. package/lib/sdks.d.ts +1 -1
  91. package/lib/sdks.d.ts.map +1 -1
  92. package/mcp-server/build.d.mts.map +1 -0
  93. package/mcp-server/build.mjs +14 -0
  94. package/mcp-server/build.mjs.map +1 -0
  95. package/mcp-server/cli/start/command.d.ts +2 -0
  96. package/mcp-server/cli/start/command.d.ts.map +1 -0
  97. package/mcp-server/cli/start/command.js +154 -0
  98. package/mcp-server/cli/start/command.js.map +1 -0
  99. package/mcp-server/cli/start/impl.d.ts +20 -0
  100. package/mcp-server/cli/start/impl.d.ts.map +1 -0
  101. package/mcp-server/cli/start/impl.js +108 -0
  102. package/mcp-server/cli/start/impl.js.map +1 -0
  103. package/mcp-server/cli.d.ts +6 -0
  104. package/mcp-server/cli.d.ts.map +1 -0
  105. package/mcp-server/cli.js +10 -0
  106. package/mcp-server/cli.js.map +1 -0
  107. package/mcp-server/console-logger.d.ts +7 -0
  108. package/mcp-server/console-logger.d.ts.map +1 -0
  109. package/mcp-server/console-logger.js +59 -0
  110. package/mcp-server/console-logger.js.map +1 -0
  111. package/mcp-server/mcp-server.d.ts +2 -0
  112. package/mcp-server/mcp-server.d.ts.map +1 -0
  113. package/mcp-server/mcp-server.js +29 -0
  114. package/mcp-server/mcp-server.js.map +1 -0
  115. package/mcp-server/resources.d.ts +27 -0
  116. package/mcp-server/resources.d.ts.map +1 -0
  117. package/mcp-server/resources.js +51 -0
  118. package/mcp-server/resources.js.map +1 -0
  119. package/mcp-server/scopes.d.ts +3 -0
  120. package/mcp-server/scopes.d.ts.map +1 -0
  121. package/mcp-server/scopes.js +8 -0
  122. package/mcp-server/scopes.js.map +1 -0
  123. package/mcp-server/server.d.ts +15 -0
  124. package/mcp-server/server.d.ts.map +1 -0
  125. package/mcp-server/server.js +66 -0
  126. package/mcp-server/server.js.map +1 -0
  127. package/mcp-server/shared.d.ts +7 -0
  128. package/mcp-server/shared.d.ts.map +1 -0
  129. package/mcp-server/shared.js +98 -0
  130. package/mcp-server/shared.js.map +1 -0
  131. package/mcp-server/tools/contactsCreate.d.ts +8 -0
  132. package/mcp-server/tools/contactsCreate.d.ts.map +1 -0
  133. package/mcp-server/tools/contactsCreate.js +64 -0
  134. package/mcp-server/tools/contactsCreate.js.map +1 -0
  135. package/mcp-server/tools/deploymentsGetConfig.d.ts +8 -0
  136. package/mcp-server/tools/deploymentsGetConfig.d.ts.map +1 -0
  137. package/mcp-server/tools/deploymentsGetConfig.js +64 -0
  138. package/mcp-server/tools/deploymentsGetConfig.js.map +1 -0
  139. package/mcp-server/tools/deploymentsInvoke.d.ts +8 -0
  140. package/mcp-server/tools/deploymentsInvoke.d.ts.map +1 -0
  141. package/mcp-server/tools/deploymentsInvoke.js +64 -0
  142. package/mcp-server/tools/deploymentsInvoke.js.map +1 -0
  143. package/mcp-server/tools/deploymentsList.d.ts +8 -0
  144. package/mcp-server/tools/deploymentsList.d.ts.map +1 -0
  145. package/mcp-server/tools/deploymentsList.js +64 -0
  146. package/mcp-server/tools/deploymentsList.js.map +1 -0
  147. package/mcp-server/tools/deploymentsMetricsCreate.d.ts +8 -0
  148. package/mcp-server/tools/deploymentsMetricsCreate.d.ts.map +1 -0
  149. package/mcp-server/tools/deploymentsMetricsCreate.js +64 -0
  150. package/mcp-server/tools/deploymentsMetricsCreate.js.map +1 -0
  151. package/mcp-server/tools/deploymentsStream.d.ts +8 -0
  152. package/mcp-server/tools/deploymentsStream.d.ts.map +1 -0
  153. package/mcp-server/tools/deploymentsStream.js +64 -0
  154. package/mcp-server/tools/deploymentsStream.js.map +1 -0
  155. package/mcp-server/tools/feedbackCreate.d.ts +8 -0
  156. package/mcp-server/tools/feedbackCreate.d.ts.map +1 -0
  157. package/mcp-server/tools/feedbackCreate.js +64 -0
  158. package/mcp-server/tools/feedbackCreate.js.map +1 -0
  159. package/mcp-server/tools/filesCreate.d.ts +8 -0
  160. package/mcp-server/tools/filesCreate.d.ts.map +1 -0
  161. package/mcp-server/tools/filesCreate.js +64 -0
  162. package/mcp-server/tools/filesCreate.js.map +1 -0
  163. package/mcp-server/tools/filesDelete.d.ts +8 -0
  164. package/mcp-server/tools/filesDelete.d.ts.map +1 -0
  165. package/mcp-server/tools/filesDelete.js +61 -0
  166. package/mcp-server/tools/filesDelete.js.map +1 -0
  167. package/mcp-server/tools/filesGet.d.ts +8 -0
  168. package/mcp-server/tools/filesGet.d.ts.map +1 -0
  169. package/mcp-server/tools/filesGet.js +64 -0
  170. package/mcp-server/tools/filesGet.js.map +1 -0
  171. package/mcp-server/tools/filesList.d.ts +8 -0
  172. package/mcp-server/tools/filesList.d.ts.map +1 -0
  173. package/mcp-server/tools/filesList.js +64 -0
  174. package/mcp-server/tools/filesList.js.map +1 -0
  175. package/mcp-server/tools/promptsCreate.d.ts +8 -0
  176. package/mcp-server/tools/promptsCreate.d.ts.map +1 -0
  177. package/mcp-server/tools/promptsCreate.js +62 -0
  178. package/mcp-server/tools/promptsCreate.js.map +1 -0
  179. package/mcp-server/tools/promptsDelete.d.ts +8 -0
  180. package/mcp-server/tools/promptsDelete.d.ts.map +1 -0
  181. package/mcp-server/tools/promptsDelete.js +61 -0
  182. package/mcp-server/tools/promptsDelete.js.map +1 -0
  183. package/mcp-server/tools/promptsGetVersion.d.ts +8 -0
  184. package/mcp-server/tools/promptsGetVersion.d.ts.map +1 -0
  185. package/mcp-server/tools/promptsGetVersion.js +64 -0
  186. package/mcp-server/tools/promptsGetVersion.js.map +1 -0
  187. package/mcp-server/tools/promptsList.d.ts +8 -0
  188. package/mcp-server/tools/promptsList.d.ts.map +1 -0
  189. package/mcp-server/tools/promptsList.js +64 -0
  190. package/mcp-server/tools/promptsList.js.map +1 -0
  191. package/mcp-server/tools/promptsListVersions.d.ts +8 -0
  192. package/mcp-server/tools/promptsListVersions.d.ts.map +1 -0
  193. package/mcp-server/tools/promptsListVersions.js +64 -0
  194. package/mcp-server/tools/promptsListVersions.js.map +1 -0
  195. package/mcp-server/tools/promptsRetrieve.d.ts +8 -0
  196. package/mcp-server/tools/promptsRetrieve.d.ts.map +1 -0
  197. package/mcp-server/tools/promptsRetrieve.js +64 -0
  198. package/mcp-server/tools/promptsRetrieve.js.map +1 -0
  199. package/mcp-server/tools/promptsUpdate.d.ts +8 -0
  200. package/mcp-server/tools/promptsUpdate.d.ts.map +1 -0
  201. package/mcp-server/tools/promptsUpdate.js +62 -0
  202. package/mcp-server/tools/promptsUpdate.js.map +1 -0
  203. package/mcp-server/tools/remoteconfigsRetrieve.d.ts +8 -0
  204. package/mcp-server/tools/remoteconfigsRetrieve.d.ts.map +1 -0
  205. package/mcp-server/tools/remoteconfigsRetrieve.js +63 -0
  206. package/mcp-server/tools/remoteconfigsRetrieve.js.map +1 -0
  207. package/mcp-server/tools.d.ts +25 -0
  208. package/mcp-server/tools.d.ts.map +1 -0
  209. package/mcp-server/tools.js +77 -0
  210. package/mcp-server/tools.js.map +1 -0
  211. package/models/components/deployments.d.ts +1716 -400
  212. package/models/components/deployments.d.ts.map +1 -1
  213. package/models/components/deployments.js +1617 -357
  214. package/models/components/deployments.js.map +1 -1
  215. package/models/operations/createcontact.js +2 -2
  216. package/models/operations/createprompt.d.ts +26 -16
  217. package/models/operations/createprompt.d.ts.map +1 -1
  218. package/models/operations/createprompt.js +30 -27
  219. package/models/operations/createprompt.js.map +1 -1
  220. package/models/operations/deploymentcreatemetric.d.ts +790 -132
  221. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  222. package/models/operations/deploymentcreatemetric.js +770 -143
  223. package/models/operations/deploymentcreatemetric.js.map +1 -1
  224. package/models/operations/deploymentgetconfig.d.ts +1824 -503
  225. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  226. package/models/operations/deploymentgetconfig.js +1788 -521
  227. package/models/operations/deploymentgetconfig.js.map +1 -1
  228. package/models/operations/deploymentinvoke.d.ts +17 -17
  229. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  230. package/models/operations/deploymentinvoke.js +20 -20
  231. package/models/operations/deploymentinvoke.js.map +1 -1
  232. package/models/operations/deployments.d.ts +5 -0
  233. package/models/operations/deployments.d.ts.map +1 -1
  234. package/models/operations/deployments.js +2 -0
  235. package/models/operations/deployments.js.map +1 -1
  236. package/models/operations/deploymentstream.d.ts +1742 -426
  237. package/models/operations/deploymentstream.d.ts.map +1 -1
  238. package/models/operations/deploymentstream.js +1643 -386
  239. package/models/operations/deploymentstream.js.map +1 -1
  240. package/models/operations/fileget.js +2 -2
  241. package/models/operations/filelist.js +2 -2
  242. package/models/operations/fileupload.js +2 -2
  243. package/models/operations/getallprompts.d.ts +5 -0
  244. package/models/operations/getallprompts.d.ts.map +1 -1
  245. package/models/operations/getallprompts.js +2 -0
  246. package/models/operations/getallprompts.js.map +1 -1
  247. package/models/operations/getoneprompt.d.ts +5 -0
  248. package/models/operations/getoneprompt.d.ts.map +1 -1
  249. package/models/operations/getoneprompt.js +2 -0
  250. package/models/operations/getoneprompt.js.map +1 -1
  251. package/models/operations/getpromptversion.d.ts +5 -0
  252. package/models/operations/getpromptversion.d.ts.map +1 -1
  253. package/models/operations/getpromptversion.js +2 -0
  254. package/models/operations/getpromptversion.js.map +1 -1
  255. package/models/operations/listpromptversions.d.ts +5 -0
  256. package/models/operations/listpromptversions.d.ts.map +1 -1
  257. package/models/operations/listpromptversions.js +2 -0
  258. package/models/operations/listpromptversions.js.map +1 -1
  259. package/models/operations/updateprompt.d.ts +10 -0
  260. package/models/operations/updateprompt.d.ts.map +1 -1
  261. package/models/operations/updateprompt.js +4 -0
  262. package/models/operations/updateprompt.js.map +1 -1
  263. package/package.json +16 -2
  264. package/packages/orq-rc/README.md +83 -2
  265. package/packages/orq-rc/docs/sdks/datasets/README.md +934 -0
  266. package/packages/orq-rc/docs/sdks/prompts/README.md +110 -110
  267. package/packages/orq-rc/jsr.json +1 -1
  268. package/packages/orq-rc/package-lock.json +1397 -41
  269. package/packages/orq-rc/package.json +16 -2
  270. package/packages/orq-rc/src/funcs/contactsCreate.ts +35 -8
  271. package/packages/orq-rc/src/funcs/datasetsClear.ts +161 -0
  272. package/packages/orq-rc/src/funcs/datasetsCreate.ts +159 -0
  273. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +161 -0
  274. package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +165 -0
  275. package/packages/orq-rc/src/funcs/datasetsDelete.ts +161 -0
  276. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +176 -0
  277. package/packages/orq-rc/src/funcs/datasetsList.ts +161 -0
  278. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +168 -0
  279. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +169 -0
  280. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +175 -0
  281. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +170 -0
  282. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +173 -0
  283. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +35 -8
  284. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +35 -8
  285. package/packages/orq-rc/src/funcs/deploymentsList.ts +36 -8
  286. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +35 -8
  287. package/packages/orq-rc/src/funcs/feedbackCreate.ts +35 -8
  288. package/packages/orq-rc/src/funcs/filesCreate.ts +35 -8
  289. package/packages/orq-rc/src/funcs/filesDelete.ts +35 -8
  290. package/packages/orq-rc/src/funcs/filesGet.ts +35 -8
  291. package/packages/orq-rc/src/funcs/filesList.ts +35 -8
  292. package/packages/orq-rc/src/funcs/promptsCreate.ts +35 -8
  293. package/packages/orq-rc/src/funcs/promptsDelete.ts +35 -8
  294. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +36 -8
  295. package/packages/orq-rc/src/funcs/promptsList.ts +36 -9
  296. package/packages/orq-rc/src/funcs/promptsListVersions.ts +35 -8
  297. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +35 -8
  298. package/packages/orq-rc/src/funcs/promptsUpdate.ts +36 -8
  299. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +35 -8
  300. package/packages/orq-rc/src/lib/config.ts +6 -6
  301. package/packages/orq-rc/src/lib/files.ts +1 -1
  302. package/packages/orq-rc/src/lib/primitives.ts +14 -0
  303. package/packages/orq-rc/src/lib/sdks.ts +1 -1
  304. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +125 -0
  305. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +140 -0
  306. package/packages/orq-rc/src/mcp-server/cli.ts +13 -0
  307. package/packages/orq-rc/src/mcp-server/console-logger.ts +71 -0
  308. package/packages/orq-rc/src/mcp-server/mcp-server.ts +26 -0
  309. package/packages/orq-rc/src/mcp-server/resources.ts +96 -0
  310. package/packages/orq-rc/src/mcp-server/scopes.ts +7 -0
  311. package/packages/orq-rc/src/mcp-server/server.ts +106 -0
  312. package/packages/orq-rc/src/mcp-server/shared.ts +75 -0
  313. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +37 -0
  314. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +35 -0
  315. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +37 -0
  316. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +37 -0
  317. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +37 -0
  318. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +35 -0
  319. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +35 -0
  320. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +37 -0
  321. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +37 -0
  322. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +37 -0
  323. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +37 -0
  324. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +37 -0
  325. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +35 -0
  326. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +37 -0
  327. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +37 -0
  328. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +37 -0
  329. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +37 -0
  330. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +37 -0
  331. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +37 -0
  332. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +33 -0
  333. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +37 -0
  334. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +37 -0
  335. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +35 -0
  336. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +33 -0
  337. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +37 -0
  338. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +37 -0
  339. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +37 -0
  340. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +37 -0
  341. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +35 -0
  342. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +36 -0
  343. package/packages/orq-rc/src/mcp-server/tools.ts +121 -0
  344. package/packages/orq-rc/src/models/components/deployments.ts +3134 -673
  345. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +1816 -0
  346. package/packages/orq-rc/src/models/operations/cleardataset.ts +75 -0
  347. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  348. package/packages/orq-rc/src/models/operations/createdataset.ts +296 -0
  349. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +1740 -0
  350. package/packages/orq-rc/src/models/operations/createprompt.ts +736 -637
  351. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +81 -0
  352. package/packages/orq-rc/src/models/operations/deletedataset.ts +75 -0
  353. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +1799 -334
  354. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +3626 -1003
  355. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +32 -28
  356. package/packages/orq-rc/src/models/operations/deployments.ts +7 -0
  357. package/packages/orq-rc/src/models/operations/fileget.ts +3 -2
  358. package/packages/orq-rc/src/models/operations/filelist.ts +3 -2
  359. package/packages/orq-rc/src/models/operations/fileupload.ts +4 -2
  360. package/packages/orq-rc/src/models/operations/getallprompts.ts +15 -8
  361. package/packages/orq-rc/src/models/operations/getoneprompt.ts +15 -8
  362. package/packages/orq-rc/src/models/operations/getpromptversion.ts +31 -56
  363. package/packages/orq-rc/src/models/operations/index.ts +12 -0
  364. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +1071 -0
  365. package/packages/orq-rc/src/models/operations/listdatasets.ts +406 -0
  366. package/packages/orq-rc/src/models/operations/listpromptversions.ts +31 -56
  367. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +924 -0
  368. package/packages/orq-rc/src/models/operations/retrievedataset.ts +288 -0
  369. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +1729 -0
  370. package/packages/orq-rc/src/models/operations/updatedataset.ts +374 -0
  371. package/packages/orq-rc/src/models/operations/updateprompt.ts +629 -698
  372. package/packages/orq-rc/src/sdk/datasets.ts +222 -0
  373. package/packages/orq-rc/src/sdk/prompts.ts +14 -14
  374. package/packages/orq-rc/src/sdk/sdk.ts +6 -0
  375. package/packages/orq-rc/src/types/async.ts +68 -0
  376. package/src/funcs/contactsCreate.ts +35 -8
  377. package/src/funcs/deploymentsGetConfig.ts +35 -8
  378. package/src/funcs/deploymentsInvoke.ts +35 -8
  379. package/src/funcs/deploymentsList.ts +36 -8
  380. package/src/funcs/deploymentsMetricsCreate.ts +35 -8
  381. package/src/funcs/deploymentsStream.ts +35 -8
  382. package/src/funcs/feedbackCreate.ts +35 -8
  383. package/src/funcs/filesCreate.ts +35 -8
  384. package/src/funcs/filesDelete.ts +35 -8
  385. package/src/funcs/filesGet.ts +35 -8
  386. package/src/funcs/filesList.ts +35 -8
  387. package/src/funcs/promptsCreate.ts +35 -8
  388. package/src/funcs/promptsDelete.ts +35 -8
  389. package/src/funcs/promptsGetVersion.ts +36 -8
  390. package/src/funcs/promptsList.ts +35 -8
  391. package/src/funcs/promptsListVersions.ts +35 -8
  392. package/src/funcs/promptsRetrieve.ts +35 -8
  393. package/src/funcs/promptsUpdate.ts +36 -8
  394. package/src/funcs/remoteconfigsRetrieve.ts +35 -8
  395. package/src/lib/config.ts +6 -6
  396. package/src/lib/files.ts +1 -1
  397. package/src/lib/primitives.ts +14 -0
  398. package/src/lib/sdks.ts +1 -1
  399. package/src/mcp-server/cli/start/command.ts +125 -0
  400. package/src/mcp-server/cli/start/impl.ts +140 -0
  401. package/src/mcp-server/cli.ts +13 -0
  402. package/src/mcp-server/console-logger.ts +71 -0
  403. package/src/mcp-server/mcp-server.ts +26 -0
  404. package/src/mcp-server/resources.ts +96 -0
  405. package/src/mcp-server/scopes.ts +7 -0
  406. package/src/mcp-server/server.ts +84 -0
  407. package/src/mcp-server/shared.ts +75 -0
  408. package/src/mcp-server/tools/contactsCreate.ts +37 -0
  409. package/src/mcp-server/tools/deploymentsGetConfig.ts +37 -0
  410. package/src/mcp-server/tools/deploymentsInvoke.ts +37 -0
  411. package/src/mcp-server/tools/deploymentsList.ts +37 -0
  412. package/src/mcp-server/tools/deploymentsMetricsCreate.ts +37 -0
  413. package/src/mcp-server/tools/deploymentsStream.ts +37 -0
  414. package/src/mcp-server/tools/feedbackCreate.ts +37 -0
  415. package/src/mcp-server/tools/filesCreate.ts +37 -0
  416. package/src/mcp-server/tools/filesDelete.ts +33 -0
  417. package/src/mcp-server/tools/filesGet.ts +37 -0
  418. package/src/mcp-server/tools/filesList.ts +37 -0
  419. package/src/mcp-server/tools/promptsCreate.ts +35 -0
  420. package/src/mcp-server/tools/promptsDelete.ts +33 -0
  421. package/src/mcp-server/tools/promptsGetVersion.ts +37 -0
  422. package/src/mcp-server/tools/promptsList.ts +37 -0
  423. package/src/mcp-server/tools/promptsListVersions.ts +37 -0
  424. package/src/mcp-server/tools/promptsRetrieve.ts +37 -0
  425. package/src/mcp-server/tools/promptsUpdate.ts +35 -0
  426. package/src/mcp-server/tools/remoteconfigsRetrieve.ts +36 -0
  427. package/src/mcp-server/tools.ts +121 -0
  428. package/src/models/components/deployments.ts +3133 -635
  429. package/src/models/operations/createcontact.ts +2 -2
  430. package/src/models/operations/createprompt.ts +48 -30
  431. package/src/models/operations/deploymentcreatemetric.ts +1859 -324
  432. package/src/models/operations/deploymentgetconfig.ts +3449 -886
  433. package/src/models/operations/deploymentinvoke.ts +32 -28
  434. package/src/models/operations/deployments.ts +7 -0
  435. package/src/models/operations/deploymentstream.ts +3661 -763
  436. package/src/models/operations/fileget.ts +2 -2
  437. package/src/models/operations/filelist.ts +2 -2
  438. package/src/models/operations/fileupload.ts +2 -2
  439. package/src/models/operations/getallprompts.ts +7 -0
  440. package/src/models/operations/getoneprompt.ts +7 -0
  441. package/src/models/operations/getpromptversion.ts +7 -0
  442. package/src/models/operations/listpromptversions.ts +7 -0
  443. package/src/models/operations/updateprompt.ts +14 -0
  444. package/src/types/async.ts +68 -0
  445. package/types/async.d.ts +23 -0
  446. package/types/async.d.ts.map +1 -0
  447. package/types/async.js +44 -0
  448. package/types/async.js.map +1 -0
@@ -12,284 +12,801 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  export type Inputs = string | number | boolean;
13
13
 
14
14
  /**
15
- * The role of the prompt message
15
+ * The role of the messages author, in this case tool.
16
16
  */
17
- export const Role = {
18
- System: "system",
19
- Assistant: "assistant",
20
- User: "user",
21
- Exception: "exception",
17
+ export const DeploymentsPrefixMessages5Role = {
22
18
  Tool: "tool",
23
- Prompt: "prompt",
24
- Correction: "correction",
25
- ExpectedOutput: "expected_output",
26
19
  } as const;
27
20
  /**
28
- * The role of the prompt message
21
+ * The role of the messages author, in this case tool.
29
22
  */
30
- export type Role = ClosedEnum<typeof Role>;
23
+ export type DeploymentsPrefixMessages5Role = ClosedEnum<
24
+ typeof DeploymentsPrefixMessages5Role
25
+ >;
31
26
 
32
- export const TwoType = {
33
- ImageUrl: "image_url",
34
- } as const;
35
- export type TwoType = ClosedEnum<typeof TwoType>;
27
+ /**
28
+ * The contents of the tool message.
29
+ */
30
+ export type DeploymentsPrefixMessagesContent = string | Array<string>;
36
31
 
37
- export type ImageUrl = {
32
+ export type Five = {
38
33
  /**
39
- * Either a URL of the image or the base64 encoded data URI.
34
+ * The role of the messages author, in this case tool.
40
35
  */
41
- url: string;
36
+ role: DeploymentsPrefixMessages5Role;
42
37
  /**
43
- * Specifies the detail level of the image. Currently only supported with OpenAI models
38
+ * The contents of the tool message.
44
39
  */
45
- detail?: string | undefined;
40
+ content: string | Array<string>;
41
+ /**
42
+ * Tool call that this message is responding to.
43
+ */
44
+ toolCallId: string;
46
45
  };
47
46
 
48
47
  /**
49
- * The image part of the prompt message. Only supported with vision models.
48
+ * The type of the content part.
50
49
  */
51
- export type Two2 = {
52
- type: TwoType;
53
- imageUrl: ImageUrl;
50
+ export const Deployments2PrefixMessages4Type = {
51
+ Refusal: "refusal",
52
+ } as const;
53
+ /**
54
+ * The type of the content part.
55
+ */
56
+ export type Deployments2PrefixMessages4Type = ClosedEnum<
57
+ typeof Deployments2PrefixMessages4Type
58
+ >;
59
+
60
+ export type Deployments22 = {
61
+ /**
62
+ * The type of the content part.
63
+ */
64
+ type: Deployments2PrefixMessages4Type;
65
+ /**
66
+ * The refusal message generated by the model.
67
+ */
68
+ refusal: string;
54
69
  };
55
70
 
56
- export const Deployments2Type = {
71
+ /**
72
+ * The type of the content part.
73
+ */
74
+ export const Deployments2PrefixMessagesType = {
57
75
  Text: "text",
58
76
  } as const;
59
- export type Deployments2Type = ClosedEnum<typeof Deployments2Type>;
60
-
61
77
  /**
62
- * Text content part of a prompt message
78
+ * The type of the content part.
63
79
  */
64
- export type One = {
65
- type: Deployments2Type;
80
+ export type Deployments2PrefixMessagesType = ClosedEnum<
81
+ typeof Deployments2PrefixMessagesType
82
+ >;
83
+
84
+ export type Deployments21 = {
85
+ /**
86
+ * The type of the content part.
87
+ */
88
+ type: Deployments2PrefixMessagesType;
89
+ /**
90
+ * The text content.
91
+ */
66
92
  text: string;
67
93
  };
68
94
 
69
- export type Two = One | Two2;
95
+ export type DeploymentsContent2 = Deployments21 | Deployments22;
96
+
97
+ /**
98
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
99
+ */
100
+ export type PrefixMessagesContent =
101
+ | string
102
+ | Array<Deployments21 | Deployments22>;
103
+
104
+ /**
105
+ * The role of the messages author, in this case `assistant`.
106
+ */
107
+ export const DeploymentsPrefixMessages4Role = {
108
+ Assistant: "assistant",
109
+ } as const;
110
+ /**
111
+ * The role of the messages author, in this case `assistant`.
112
+ */
113
+ export type DeploymentsPrefixMessages4Role = ClosedEnum<
114
+ typeof DeploymentsPrefixMessages4Role
115
+ >;
70
116
 
71
117
  /**
72
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
118
+ * Data about a previous audio response from the model.
73
119
  */
74
- export type Content = string | Array<One | Two2>;
120
+ export type Audio = {
121
+ /**
122
+ * Unique identifier for a previous audio response from the model.
123
+ */
124
+ id: string;
125
+ };
75
126
 
127
+ /**
128
+ * The type of the tool. Currently, only `5` is supported.
129
+ */
76
130
  export const Type = {
77
131
  Function: "function",
78
132
  } as const;
133
+ /**
134
+ * The type of the tool. Currently, only `5` is supported.
135
+ */
79
136
  export type Type = ClosedEnum<typeof Type>;
80
137
 
81
138
  export type FunctionT = {
82
- name: string;
83
139
  /**
84
- * JSON string arguments for the functions
140
+ * The name of the function to call.
141
+ */
142
+ name?: string | undefined;
143
+ /**
144
+ * The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
85
145
  */
86
- arguments: string;
146
+ arguments?: string | undefined;
87
147
  };
88
148
 
89
149
  export type ToolCalls = {
90
- id?: string | undefined;
91
- index?: number | undefined;
150
+ /**
151
+ * The ID of the tool call.
152
+ */
153
+ id: string;
154
+ /**
155
+ * The type of the tool. Currently, only `5` is supported.
156
+ */
92
157
  type: Type;
93
158
  function: FunctionT;
94
159
  };
95
160
 
96
- export type PrefixMessages = {
161
+ export type Four = {
97
162
  /**
98
- * The role of the prompt message
163
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
99
164
  */
100
- role: Role;
165
+ content?: string | Array<Deployments21 | Deployments22> | undefined;
166
+ /**
167
+ * The refusal message by the assistant.
168
+ */
169
+ refusal?: string | null | undefined;
170
+ /**
171
+ * The role of the messages author, in this case `assistant`.
172
+ */
173
+ role: DeploymentsPrefixMessages4Role;
174
+ /**
175
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
176
+ */
177
+ name?: string | undefined;
178
+ /**
179
+ * Data about a previous audio response from the model.
180
+ */
181
+ audio?: Audio | null | undefined;
101
182
  /**
102
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
183
+ * The tool calls generated by the model, such as function calls.
103
184
  */
104
- content: string | Array<One | Two2>;
105
185
  toolCalls?: Array<ToolCalls> | undefined;
106
186
  };
107
187
 
108
188
  /**
109
- * The role of the prompt message
189
+ * The role of the messages author, in this case `user`.
110
190
  */
111
- export const DeploymentsRole = {
112
- System: "system",
113
- Assistant: "assistant",
191
+ export const DeploymentsPrefixMessagesRole = {
114
192
  User: "user",
115
- Exception: "exception",
116
- Tool: "tool",
117
- Prompt: "prompt",
118
- Correction: "correction",
119
- ExpectedOutput: "expected_output",
120
193
  } as const;
121
194
  /**
122
- * The role of the prompt message
195
+ * The role of the messages author, in this case `user`.
123
196
  */
124
- export type DeploymentsRole = ClosedEnum<typeof DeploymentsRole>;
197
+ export type DeploymentsPrefixMessagesRole = ClosedEnum<
198
+ typeof DeploymentsPrefixMessagesRole
199
+ >;
125
200
 
126
- export const Deployments2MessagesContentType = {
127
- ImageUrl: "image_url",
201
+ export const Deployments2Type = {
202
+ InputAudio: "input_audio",
128
203
  } as const;
129
- export type Deployments2MessagesContentType = ClosedEnum<
130
- typeof Deployments2MessagesContentType
131
- >;
204
+ export type Deployments2Type = ClosedEnum<typeof Deployments2Type>;
132
205
 
133
- export type TwoImageUrl = {
206
+ /**
207
+ * The format of the encoded audio data. Currently supports `wav` and `mp3`.
208
+ */
209
+ export const Format = {
210
+ Mp3: "mp3",
211
+ Wav: "wav",
212
+ } as const;
213
+ /**
214
+ * The format of the encoded audio data. Currently supports `wav` and `mp3`.
215
+ */
216
+ export type Format = ClosedEnum<typeof Format>;
217
+
218
+ export type InputAudio = {
134
219
  /**
135
- * Either a URL of the image or the base64 encoded data URI.
220
+ * Base64 encoded audio data.
136
221
  */
137
- url: string;
222
+ data: string;
138
223
  /**
139
- * Specifies the detail level of the image. Currently only supported with OpenAI models
224
+ * The format of the encoded audio data. Currently supports `wav` and `mp3`.
140
225
  */
141
- detail?: string | undefined;
226
+ format: Format;
227
+ };
228
+
229
+ export type Two3 = {
230
+ type: Deployments2Type;
231
+ inputAudio: InputAudio;
142
232
  };
143
233
 
234
+ export const TwoType = {
235
+ ImageUrl: "image_url",
236
+ } as const;
237
+ export type TwoType = ClosedEnum<typeof TwoType>;
238
+
144
239
  /**
145
- * The image part of the prompt message. Only supported with vision models.
240
+ * Specifies the detail level of the image.
146
241
  */
147
- export type Deployments22 = {
148
- type: Deployments2MessagesContentType;
149
- imageUrl: TwoImageUrl;
242
+ export const Detail = {
243
+ Low: "low",
244
+ High: "high",
245
+ Auto: "auto",
246
+ } as const;
247
+ /**
248
+ * Specifies the detail level of the image.
249
+ */
250
+ export type Detail = ClosedEnum<typeof Detail>;
251
+
252
+ export type ImageUrl = {
253
+ /**
254
+ * Either a URL of the image or the base64 encoded image data.
255
+ */
256
+ url: string;
257
+ /**
258
+ * Specifies the detail level of the image.
259
+ */
260
+ detail?: Detail | undefined;
150
261
  };
151
262
 
152
- export const Deployments2MessagesType = {
263
+ export type Two2 = {
264
+ type: TwoType;
265
+ imageUrl: ImageUrl;
266
+ };
267
+
268
+ export const Deployments2PrefixMessages3Type = {
153
269
  Text: "text",
154
270
  } as const;
155
- export type Deployments2MessagesType = ClosedEnum<
156
- typeof Deployments2MessagesType
271
+ export type Deployments2PrefixMessages3Type = ClosedEnum<
272
+ typeof Deployments2PrefixMessages3Type
157
273
  >;
158
274
 
159
- /**
160
- * Text content part of a prompt message
161
- */
162
275
  export type Two1 = {
163
- type: Deployments2MessagesType;
276
+ type: Deployments2PrefixMessages3Type;
164
277
  text: string;
165
278
  };
166
279
 
167
- export type Content2 = Two1 | Deployments22;
280
+ export type Content2 = Two1 | Two2 | Two3;
168
281
 
169
282
  /**
170
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
283
+ * The contents of the user message.
171
284
  */
172
- export type DeploymentsContent = string | Array<Two1 | Deployments22>;
285
+ export type Content = string | Array<Two1 | Two2 | Two3>;
173
286
 
174
- export const DeploymentsType = {
175
- Function: "function",
287
+ export type Three = {
288
+ /**
289
+ * The role of the messages author, in this case `user`.
290
+ */
291
+ role: DeploymentsPrefixMessagesRole;
292
+ /**
293
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
294
+ */
295
+ name?: string | undefined;
296
+ /**
297
+ * The contents of the user message.
298
+ */
299
+ content: string | Array<Two1 | Two2 | Two3>;
300
+ };
301
+
302
+ /**
303
+ * The role of the messages author, in this case `system`.
304
+ */
305
+ export const PrefixMessagesRole = {
306
+ System: "system",
176
307
  } as const;
177
- export type DeploymentsType = ClosedEnum<typeof DeploymentsType>;
308
+ /**
309
+ * The role of the messages author, in this case `system`.
310
+ */
311
+ export type PrefixMessagesRole = ClosedEnum<typeof PrefixMessagesRole>;
178
312
 
179
- export type DeploymentsFunction = {
180
- name: string;
313
+ export type Two = {
314
+ /**
315
+ * The role of the messages author, in this case `system`.
316
+ */
317
+ role: PrefixMessagesRole;
318
+ /**
319
+ * The contents of the system message.
320
+ */
321
+ content: string;
181
322
  /**
182
- * JSON string arguments for the functions
323
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
183
324
  */
184
- arguments: string;
325
+ name?: string | undefined;
185
326
  };
186
327
 
187
- export type DeploymentsToolCalls = {
188
- id?: string | undefined;
189
- index?: number | undefined;
190
- type: DeploymentsType;
191
- function: DeploymentsFunction;
192
- };
328
+ /**
329
+ * The role of the messages author, in this case `developer`.
330
+ */
331
+ export const Role = {
332
+ Developer: "developer",
333
+ } as const;
334
+ /**
335
+ * The role of the messages author, in this case `developer`.
336
+ */
337
+ export type Role = ClosedEnum<typeof Role>;
193
338
 
194
- export type Messages = {
339
+ export type One = {
195
340
  /**
196
- * The role of the prompt message
341
+ * The role of the messages author, in this case `developer`.
197
342
  */
198
- role: DeploymentsRole;
343
+ role: Role;
344
+ /**
345
+ * The contents of the developer message.
346
+ */
347
+ content: string;
199
348
  /**
200
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
349
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
201
350
  */
202
- content: string | Array<Two1 | Deployments22>;
203
- toolCalls?: Array<DeploymentsToolCalls> | undefined;
351
+ name?: string | undefined;
204
352
  };
205
353
 
354
+ export type PrefixMessages = One | Two | Three | Five | Four;
355
+
206
356
  /**
207
- * Metadata about the document
357
+ * The role of the messages author, in this case tool.
208
358
  */
209
- export type Metadata = {
359
+ export const DeploymentsMessages5Role = {
360
+ Tool: "tool",
361
+ } as const;
362
+ /**
363
+ * The role of the messages author, in this case tool.
364
+ */
365
+ export type DeploymentsMessages5Role = ClosedEnum<
366
+ typeof DeploymentsMessages5Role
367
+ >;
368
+
369
+ /**
370
+ * The contents of the tool message.
371
+ */
372
+ export type DeploymentsMessages5Content = string | Array<string>;
373
+
374
+ export type Messages5 = {
210
375
  /**
211
- * Name of the file the text is from.
376
+ * The role of the messages author, in this case tool.
212
377
  */
213
- fileName?: string | undefined;
378
+ role: DeploymentsMessages5Role;
214
379
  /**
215
- * Content type of the file the text is from.
380
+ * The contents of the tool message.
216
381
  */
217
- fileType?: string | undefined;
382
+ content: string | Array<string>;
218
383
  /**
219
- * The page number the text is from.
384
+ * Tool call that this message is responding to.
220
385
  */
221
- pageNumber?: number | undefined;
386
+ toolCallId: string;
222
387
  };
223
388
 
224
- export type Documents = {
389
+ /**
390
+ * The type of the content part.
391
+ */
392
+ export const Deployments2Messages4ContentType = {
393
+ Refusal: "refusal",
394
+ } as const;
395
+ /**
396
+ * The type of the content part.
397
+ */
398
+ export type Deployments2Messages4ContentType = ClosedEnum<
399
+ typeof Deployments2Messages4ContentType
400
+ >;
401
+
402
+ export type Deployments2Messages42 = {
225
403
  /**
226
- * The text content of the document
404
+ * The type of the content part.
227
405
  */
228
- text: string;
406
+ type: Deployments2Messages4ContentType;
229
407
  /**
230
- * Metadata about the document
408
+ * The refusal message generated by the model.
231
409
  */
232
- metadata?: Metadata | undefined;
410
+ refusal: string;
233
411
  };
234
412
 
235
- export type InvokeOptions = {
413
+ /**
414
+ * The type of the content part.
415
+ */
416
+ export const Deployments2Messages4Type = {
417
+ Text: "text",
418
+ } as const;
419
+ /**
420
+ * The type of the content part.
421
+ */
422
+ export type Deployments2Messages4Type = ClosedEnum<
423
+ typeof Deployments2Messages4Type
424
+ >;
425
+
426
+ export type Deployments2Messages41 = {
236
427
  /**
237
- * Whether to include the retrieved knowledge chunks in the response.
428
+ * The type of the content part.
238
429
  */
239
- includeRetrievals?: boolean | undefined;
430
+ type: Deployments2Messages4Type;
431
+ /**
432
+ * The text content.
433
+ */
434
+ text: string;
240
435
  };
241
436
 
437
+ export type DeploymentsContentMessages42 =
438
+ | Deployments2Messages41
439
+ | Deployments2Messages42;
440
+
242
441
  /**
243
- * The deployment request payload
442
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
244
443
  */
245
- export type Deployments = {
444
+ export type DeploymentsMessagesContent =
445
+ | string
446
+ | Array<Deployments2Messages41 | Deployments2Messages42>;
447
+
448
+ /**
449
+ * The role of the messages author, in this case `assistant`.
450
+ */
451
+ export const DeploymentsMessages4Role = {
452
+ Assistant: "assistant",
453
+ } as const;
454
+ /**
455
+ * The role of the messages author, in this case `assistant`.
456
+ */
457
+ export type DeploymentsMessages4Role = ClosedEnum<
458
+ typeof DeploymentsMessages4Role
459
+ >;
460
+
461
+ /**
462
+ * Data about a previous audio response from the model.
463
+ */
464
+ export type MessagesAudio = {
246
465
  /**
247
- * The deployment key to invoke
466
+ * Unique identifier for a previous audio response from the model.
248
467
  */
249
- key: string;
468
+ id: string;
469
+ };
470
+
471
+ /**
472
+ * The type of the tool. Currently, only `5` is supported.
473
+ */
474
+ export const MessagesType = {
475
+ Function: "function",
476
+ } as const;
477
+ /**
478
+ * The type of the tool. Currently, only `5` is supported.
479
+ */
480
+ export type MessagesType = ClosedEnum<typeof MessagesType>;
481
+
482
+ export type MessagesFunction = {
250
483
  /**
251
- * Key-value pairs variables to replace in your prompts. If a variable is not provided that is defined in the prompt, the default variables are used.
484
+ * The name of the function to call.
252
485
  */
253
- inputs?: { [k: string]: string | number | boolean } | undefined;
486
+ name?: string | undefined;
254
487
  /**
255
- * Key-value pairs that match your data model and fields declared in your configuration matrix. If you send multiple prompt keys, the context will be applied to the evaluation of each key.
488
+ * The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
256
489
  */
257
- context?: { [k: string]: any } | undefined;
490
+ arguments?: string | undefined;
491
+ };
492
+
493
+ export type MessagesToolCalls = {
258
494
  /**
259
- * A list of messages to include after the `System` message, but before the `User` and `Assistant` pairs configured in your deployment.
495
+ * The ID of the tool call.
260
496
  */
261
- prefixMessages?: Array<PrefixMessages> | undefined;
497
+ id: string;
262
498
  /**
263
- * A list of messages to send to the deployment.
499
+ * The type of the tool. Currently, only `5` is supported.
264
500
  */
265
- messages?: Array<Messages> | undefined;
501
+ type: MessagesType;
502
+ function: MessagesFunction;
503
+ };
504
+
505
+ export type Messages4 = {
266
506
  /**
267
- * A list of file IDs that are associated with the deployment request.
507
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
268
508
  */
269
- fileIds?: Array<string> | undefined;
509
+ content?:
510
+ | string
511
+ | Array<Deployments2Messages41 | Deployments2Messages42>
512
+ | undefined;
270
513
  /**
271
- * Key-value pairs that you want to attach to the log generated by this request.
514
+ * The refusal message by the assistant.
272
515
  */
273
- metadata?: { [k: string]: any } | undefined;
516
+ refusal?: string | null | undefined;
274
517
  /**
275
- * Utilized for passing additional parameters to the model provider. Exercise caution when using this feature, as the included parameters will overwrite any parameters specified in the deployment prompt configuration.
518
+ * The role of the messages author, in this case `assistant`.
276
519
  */
277
- extraParams?: { [k: string]: any } | undefined;
520
+ role: DeploymentsMessages4Role;
278
521
  /**
279
- * A list of relevant documents that evaluators and guardrails can cite to evaluate the user input or the model response based on your deployment settings.
522
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
280
523
  */
281
- documents?: Array<Documents> | undefined;
282
- invokeOptions?: InvokeOptions | undefined;
524
+ name?: string | undefined;
525
+ /**
526
+ * Data about a previous audio response from the model.
527
+ */
528
+ audio?: MessagesAudio | null | undefined;
529
+ /**
530
+ * The tool calls generated by the model, such as function calls.
531
+ */
532
+ toolCalls?: Array<MessagesToolCalls> | undefined;
283
533
  };
284
534
 
285
- /** @internal */
286
- export const Inputs$inboundSchema: z.ZodType<Inputs, z.ZodTypeDef, unknown> = z
287
- .union([z.string(), z.number(), z.boolean()]);
288
-
289
- /** @internal */
290
- export type Inputs$Outbound = string | number | boolean;
291
-
292
- /** @internal */
535
+ /**
536
+ * The role of the messages author, in this case `user`.
537
+ */
538
+ export const DeploymentsMessages3Role = {
539
+ User: "user",
540
+ } as const;
541
+ /**
542
+ * The role of the messages author, in this case `user`.
543
+ */
544
+ export type DeploymentsMessages3Role = ClosedEnum<
545
+ typeof DeploymentsMessages3Role
546
+ >;
547
+
548
+ export const Deployments2Messages3ContentType = {
549
+ InputAudio: "input_audio",
550
+ } as const;
551
+ export type Deployments2Messages3ContentType = ClosedEnum<
552
+ typeof Deployments2Messages3ContentType
553
+ >;
554
+
555
+ /**
556
+ * The format of the encoded audio data. Currently supports `wav` and `mp3`.
557
+ */
558
+ export const TwoFormat = {
559
+ Mp3: "mp3",
560
+ Wav: "wav",
561
+ } as const;
562
+ /**
563
+ * The format of the encoded audio data. Currently supports `wav` and `mp3`.
564
+ */
565
+ export type TwoFormat = ClosedEnum<typeof TwoFormat>;
566
+
567
+ export type TwoInputAudio = {
568
+ /**
569
+ * Base64 encoded audio data.
570
+ */
571
+ data: string;
572
+ /**
573
+ * The format of the encoded audio data. Currently supports `wav` and `mp3`.
574
+ */
575
+ format: TwoFormat;
576
+ };
577
+
578
+ export type Deployments23 = {
579
+ type: Deployments2Messages3ContentType;
580
+ inputAudio: TwoInputAudio;
581
+ };
582
+
583
+ export const Deployments2Messages3Type = {
584
+ ImageUrl: "image_url",
585
+ } as const;
586
+ export type Deployments2Messages3Type = ClosedEnum<
587
+ typeof Deployments2Messages3Type
588
+ >;
589
+
590
+ /**
591
+ * Specifies the detail level of the image.
592
+ */
593
+ export const TwoDetail = {
594
+ Low: "low",
595
+ High: "high",
596
+ Auto: "auto",
597
+ } as const;
598
+ /**
599
+ * Specifies the detail level of the image.
600
+ */
601
+ export type TwoDetail = ClosedEnum<typeof TwoDetail>;
602
+
603
+ export type TwoImageUrl = {
604
+ /**
605
+ * Either a URL of the image or the base64 encoded image data.
606
+ */
607
+ url: string;
608
+ /**
609
+ * Specifies the detail level of the image.
610
+ */
611
+ detail?: TwoDetail | undefined;
612
+ };
613
+
614
+ export type Deployments2Messages2 = {
615
+ type: Deployments2Messages3Type;
616
+ imageUrl: TwoImageUrl;
617
+ };
618
+
619
+ export const Deployments2MessagesType = {
620
+ Text: "text",
621
+ } as const;
622
+ export type Deployments2MessagesType = ClosedEnum<
623
+ typeof Deployments2MessagesType
624
+ >;
625
+
626
+ export type Deployments2Messages1 = {
627
+ type: Deployments2MessagesType;
628
+ text: string;
629
+ };
630
+
631
+ export type DeploymentsContentMessages2 =
632
+ | Deployments2Messages1
633
+ | Deployments2Messages2
634
+ | Deployments23;
635
+
636
+ /**
637
+ * The contents of the user message.
638
+ */
639
+ export type MessagesContent =
640
+ | string
641
+ | Array<Deployments2Messages1 | Deployments2Messages2 | Deployments23>;
642
+
643
+ export type Messages3 = {
644
+ /**
645
+ * The role of the messages author, in this case `user`.
646
+ */
647
+ role: DeploymentsMessages3Role;
648
+ /**
649
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
650
+ */
651
+ name?: string | undefined;
652
+ /**
653
+ * The contents of the user message.
654
+ */
655
+ content:
656
+ | string
657
+ | Array<Deployments2Messages1 | Deployments2Messages2 | Deployments23>;
658
+ };
659
+
660
+ /**
661
+ * The role of the messages author, in this case `system`.
662
+ */
663
+ export const DeploymentsMessagesRole = {
664
+ System: "system",
665
+ } as const;
666
+ /**
667
+ * The role of the messages author, in this case `system`.
668
+ */
669
+ export type DeploymentsMessagesRole = ClosedEnum<
670
+ typeof DeploymentsMessagesRole
671
+ >;
672
+
673
+ export type Messages2 = {
674
+ /**
675
+ * The role of the messages author, in this case `system`.
676
+ */
677
+ role: DeploymentsMessagesRole;
678
+ /**
679
+ * The contents of the system message.
680
+ */
681
+ content: string;
682
+ /**
683
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
684
+ */
685
+ name?: string | undefined;
686
+ };
687
+
688
+ /**
689
+ * The role of the messages author, in this case `developer`.
690
+ */
691
+ export const MessagesRole = {
692
+ Developer: "developer",
693
+ } as const;
694
+ /**
695
+ * The role of the messages author, in this case `developer`.
696
+ */
697
+ export type MessagesRole = ClosedEnum<typeof MessagesRole>;
698
+
699
+ export type Messages1 = {
700
+ /**
701
+ * The role of the messages author, in this case `developer`.
702
+ */
703
+ role: MessagesRole;
704
+ /**
705
+ * The contents of the developer message.
706
+ */
707
+ content: string;
708
+ /**
709
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
710
+ */
711
+ name?: string | undefined;
712
+ };
713
+
714
+ export type Messages =
715
+ | Messages1
716
+ | Messages2
717
+ | Messages3
718
+ | Messages5
719
+ | Messages4;
720
+
721
+ /**
722
+ * Metadata about the document
723
+ */
724
+ export type Metadata = {
725
+ /**
726
+ * Name of the file the text is from.
727
+ */
728
+ fileName?: string | undefined;
729
+ /**
730
+ * Content type of the file the text is from.
731
+ */
732
+ fileType?: string | undefined;
733
+ /**
734
+ * The page number the text is from.
735
+ */
736
+ pageNumber?: number | undefined;
737
+ };
738
+
739
+ export type Documents = {
740
+ /**
741
+ * The text content of the document
742
+ */
743
+ text: string;
744
+ /**
745
+ * Metadata about the document
746
+ */
747
+ metadata?: Metadata | undefined;
748
+ };
749
+
750
+ export type InvokeOptions = {
751
+ /**
752
+ * Whether to include the retrieved knowledge chunks in the response.
753
+ */
754
+ includeRetrievals?: boolean | undefined;
755
+ };
756
+
757
+ /**
758
+ * The deployment request payload
759
+ */
760
+ export type Deployments = {
761
+ /**
762
+ * The deployment key to invoke
763
+ */
764
+ key: string;
765
+ /**
766
+ * Key-value pairs variables to replace in your prompts. If a variable is not provided that is defined in the prompt, the default variables are used.
767
+ */
768
+ inputs?: { [k: string]: string | number | boolean } | undefined;
769
+ /**
770
+ * Key-value pairs that match your data model and fields declared in your configuration matrix. If you send multiple prompt keys, the context will be applied to the evaluation of each key.
771
+ */
772
+ context?: { [k: string]: any } | undefined;
773
+ /**
774
+ * A list of messages to include after the `System` message, but before the `User` and `Assistant` pairs configured in your deployment.
775
+ */
776
+ prefixMessages?: Array<One | Two | Three | Five | Four> | undefined;
777
+ /**
778
+ * A list of messages to send to the deployment.
779
+ */
780
+ messages?:
781
+ | Array<Messages1 | Messages2 | Messages3 | Messages5 | Messages4>
782
+ | undefined;
783
+ /**
784
+ * A list of file IDs that are associated with the deployment request.
785
+ */
786
+ fileIds?: Array<string> | undefined;
787
+ /**
788
+ * Key-value pairs that you want to attach to the log generated by this request.
789
+ */
790
+ metadata?: { [k: string]: any } | undefined;
791
+ /**
792
+ * Utilized for passing additional parameters to the model provider. Exercise caution when using this feature, as the included parameters will overwrite any parameters specified in the deployment prompt configuration.
793
+ */
794
+ extraParams?: { [k: string]: any } | undefined;
795
+ /**
796
+ * A list of relevant documents that evaluators and guardrails can cite to evaluate the user input or the model response based on your deployment settings.
797
+ */
798
+ documents?: Array<Documents> | undefined;
799
+ invokeOptions?: InvokeOptions | undefined;
800
+ };
801
+
802
+ /** @internal */
803
+ export const Inputs$inboundSchema: z.ZodType<Inputs, z.ZodTypeDef, unknown> = z
804
+ .union([z.string(), z.number(), z.boolean()]);
805
+
806
+ /** @internal */
807
+ export type Inputs$Outbound = string | number | boolean;
808
+
809
+ /** @internal */
293
810
  export const Inputs$outboundSchema: z.ZodType<
294
811
  Inputs$Outbound,
295
812
  z.ZodTypeDef,
@@ -324,490 +841,2291 @@ export function inputsFromJSON(
324
841
  }
325
842
 
326
843
  /** @internal */
327
- export const Role$inboundSchema: z.ZodNativeEnum<typeof Role> = z.nativeEnum(
328
- Role,
329
- );
844
+ export const DeploymentsPrefixMessages5Role$inboundSchema: z.ZodNativeEnum<
845
+ typeof DeploymentsPrefixMessages5Role
846
+ > = z.nativeEnum(DeploymentsPrefixMessages5Role);
330
847
 
331
848
  /** @internal */
332
- export const Role$outboundSchema: z.ZodNativeEnum<typeof Role> =
333
- Role$inboundSchema;
849
+ export const DeploymentsPrefixMessages5Role$outboundSchema: z.ZodNativeEnum<
850
+ typeof DeploymentsPrefixMessages5Role
851
+ > = DeploymentsPrefixMessages5Role$inboundSchema;
334
852
 
335
853
  /**
336
854
  * @internal
337
855
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
338
856
  */
339
- export namespace Role$ {
340
- /** @deprecated use `Role$inboundSchema` instead. */
341
- export const inboundSchema = Role$inboundSchema;
342
- /** @deprecated use `Role$outboundSchema` instead. */
343
- export const outboundSchema = Role$outboundSchema;
857
+ export namespace DeploymentsPrefixMessages5Role$ {
858
+ /** @deprecated use `DeploymentsPrefixMessages5Role$inboundSchema` instead. */
859
+ export const inboundSchema = DeploymentsPrefixMessages5Role$inboundSchema;
860
+ /** @deprecated use `DeploymentsPrefixMessages5Role$outboundSchema` instead. */
861
+ export const outboundSchema = DeploymentsPrefixMessages5Role$outboundSchema;
344
862
  }
345
863
 
346
864
  /** @internal */
347
- export const TwoType$inboundSchema: z.ZodNativeEnum<typeof TwoType> = z
348
- .nativeEnum(TwoType);
865
+ export const DeploymentsPrefixMessagesContent$inboundSchema: z.ZodType<
866
+ DeploymentsPrefixMessagesContent,
867
+ z.ZodTypeDef,
868
+ unknown
869
+ > = z.union([z.string(), z.array(z.string())]);
349
870
 
350
871
  /** @internal */
351
- export const TwoType$outboundSchema: z.ZodNativeEnum<typeof TwoType> =
352
- TwoType$inboundSchema;
872
+ export type DeploymentsPrefixMessagesContent$Outbound = string | Array<string>;
873
+
874
+ /** @internal */
875
+ export const DeploymentsPrefixMessagesContent$outboundSchema: z.ZodType<
876
+ DeploymentsPrefixMessagesContent$Outbound,
877
+ z.ZodTypeDef,
878
+ DeploymentsPrefixMessagesContent
879
+ > = z.union([z.string(), z.array(z.string())]);
353
880
 
354
881
  /**
355
882
  * @internal
356
883
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
357
884
  */
358
- export namespace TwoType$ {
359
- /** @deprecated use `TwoType$inboundSchema` instead. */
360
- export const inboundSchema = TwoType$inboundSchema;
361
- /** @deprecated use `TwoType$outboundSchema` instead. */
362
- export const outboundSchema = TwoType$outboundSchema;
885
+ export namespace DeploymentsPrefixMessagesContent$ {
886
+ /** @deprecated use `DeploymentsPrefixMessagesContent$inboundSchema` instead. */
887
+ export const inboundSchema = DeploymentsPrefixMessagesContent$inboundSchema;
888
+ /** @deprecated use `DeploymentsPrefixMessagesContent$outboundSchema` instead. */
889
+ export const outboundSchema = DeploymentsPrefixMessagesContent$outboundSchema;
890
+ /** @deprecated use `DeploymentsPrefixMessagesContent$Outbound` instead. */
891
+ export type Outbound = DeploymentsPrefixMessagesContent$Outbound;
892
+ }
893
+
894
+ export function deploymentsPrefixMessagesContentToJSON(
895
+ deploymentsPrefixMessagesContent: DeploymentsPrefixMessagesContent,
896
+ ): string {
897
+ return JSON.stringify(
898
+ DeploymentsPrefixMessagesContent$outboundSchema.parse(
899
+ deploymentsPrefixMessagesContent,
900
+ ),
901
+ );
902
+ }
903
+
904
+ export function deploymentsPrefixMessagesContentFromJSON(
905
+ jsonString: string,
906
+ ): SafeParseResult<DeploymentsPrefixMessagesContent, SDKValidationError> {
907
+ return safeParse(
908
+ jsonString,
909
+ (x) => DeploymentsPrefixMessagesContent$inboundSchema.parse(JSON.parse(x)),
910
+ `Failed to parse 'DeploymentsPrefixMessagesContent' from JSON`,
911
+ );
912
+ }
913
+
914
+ /** @internal */
915
+ export const Five$inboundSchema: z.ZodType<Five, z.ZodTypeDef, unknown> = z
916
+ .object({
917
+ role: DeploymentsPrefixMessages5Role$inboundSchema,
918
+ content: z.union([z.string(), z.array(z.string())]),
919
+ tool_call_id: z.string(),
920
+ }).transform((v) => {
921
+ return remap$(v, {
922
+ "tool_call_id": "toolCallId",
923
+ });
924
+ });
925
+
926
+ /** @internal */
927
+ export type Five$Outbound = {
928
+ role: string;
929
+ content: string | Array<string>;
930
+ tool_call_id: string;
931
+ };
932
+
933
+ /** @internal */
934
+ export const Five$outboundSchema: z.ZodType<Five$Outbound, z.ZodTypeDef, Five> =
935
+ z.object({
936
+ role: DeploymentsPrefixMessages5Role$outboundSchema,
937
+ content: z.union([z.string(), z.array(z.string())]),
938
+ toolCallId: z.string(),
939
+ }).transform((v) => {
940
+ return remap$(v, {
941
+ toolCallId: "tool_call_id",
942
+ });
943
+ });
944
+
945
+ /**
946
+ * @internal
947
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
948
+ */
949
+ export namespace Five$ {
950
+ /** @deprecated use `Five$inboundSchema` instead. */
951
+ export const inboundSchema = Five$inboundSchema;
952
+ /** @deprecated use `Five$outboundSchema` instead. */
953
+ export const outboundSchema = Five$outboundSchema;
954
+ /** @deprecated use `Five$Outbound` instead. */
955
+ export type Outbound = Five$Outbound;
956
+ }
957
+
958
+ export function fiveToJSON(five: Five): string {
959
+ return JSON.stringify(Five$outboundSchema.parse(five));
960
+ }
961
+
962
+ export function fiveFromJSON(
963
+ jsonString: string,
964
+ ): SafeParseResult<Five, SDKValidationError> {
965
+ return safeParse(
966
+ jsonString,
967
+ (x) => Five$inboundSchema.parse(JSON.parse(x)),
968
+ `Failed to parse 'Five' from JSON`,
969
+ );
970
+ }
971
+
972
+ /** @internal */
973
+ export const Deployments2PrefixMessages4Type$inboundSchema: z.ZodNativeEnum<
974
+ typeof Deployments2PrefixMessages4Type
975
+ > = z.nativeEnum(Deployments2PrefixMessages4Type);
976
+
977
+ /** @internal */
978
+ export const Deployments2PrefixMessages4Type$outboundSchema: z.ZodNativeEnum<
979
+ typeof Deployments2PrefixMessages4Type
980
+ > = Deployments2PrefixMessages4Type$inboundSchema;
981
+
982
+ /**
983
+ * @internal
984
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
985
+ */
986
+ export namespace Deployments2PrefixMessages4Type$ {
987
+ /** @deprecated use `Deployments2PrefixMessages4Type$inboundSchema` instead. */
988
+ export const inboundSchema = Deployments2PrefixMessages4Type$inboundSchema;
989
+ /** @deprecated use `Deployments2PrefixMessages4Type$outboundSchema` instead. */
990
+ export const outboundSchema = Deployments2PrefixMessages4Type$outboundSchema;
991
+ }
992
+
993
+ /** @internal */
994
+ export const Deployments22$inboundSchema: z.ZodType<
995
+ Deployments22,
996
+ z.ZodTypeDef,
997
+ unknown
998
+ > = z.object({
999
+ type: Deployments2PrefixMessages4Type$inboundSchema,
1000
+ refusal: z.string(),
1001
+ });
1002
+
1003
+ /** @internal */
1004
+ export type Deployments22$Outbound = {
1005
+ type: string;
1006
+ refusal: string;
1007
+ };
1008
+
1009
+ /** @internal */
1010
+ export const Deployments22$outboundSchema: z.ZodType<
1011
+ Deployments22$Outbound,
1012
+ z.ZodTypeDef,
1013
+ Deployments22
1014
+ > = z.object({
1015
+ type: Deployments2PrefixMessages4Type$outboundSchema,
1016
+ refusal: z.string(),
1017
+ });
1018
+
1019
+ /**
1020
+ * @internal
1021
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1022
+ */
1023
+ export namespace Deployments22$ {
1024
+ /** @deprecated use `Deployments22$inboundSchema` instead. */
1025
+ export const inboundSchema = Deployments22$inboundSchema;
1026
+ /** @deprecated use `Deployments22$outboundSchema` instead. */
1027
+ export const outboundSchema = Deployments22$outboundSchema;
1028
+ /** @deprecated use `Deployments22$Outbound` instead. */
1029
+ export type Outbound = Deployments22$Outbound;
1030
+ }
1031
+
1032
+ export function deployments22ToJSON(deployments22: Deployments22): string {
1033
+ return JSON.stringify(Deployments22$outboundSchema.parse(deployments22));
1034
+ }
1035
+
1036
+ export function deployments22FromJSON(
1037
+ jsonString: string,
1038
+ ): SafeParseResult<Deployments22, SDKValidationError> {
1039
+ return safeParse(
1040
+ jsonString,
1041
+ (x) => Deployments22$inboundSchema.parse(JSON.parse(x)),
1042
+ `Failed to parse 'Deployments22' from JSON`,
1043
+ );
1044
+ }
1045
+
1046
+ /** @internal */
1047
+ export const Deployments2PrefixMessagesType$inboundSchema: z.ZodNativeEnum<
1048
+ typeof Deployments2PrefixMessagesType
1049
+ > = z.nativeEnum(Deployments2PrefixMessagesType);
1050
+
1051
+ /** @internal */
1052
+ export const Deployments2PrefixMessagesType$outboundSchema: z.ZodNativeEnum<
1053
+ typeof Deployments2PrefixMessagesType
1054
+ > = Deployments2PrefixMessagesType$inboundSchema;
1055
+
1056
+ /**
1057
+ * @internal
1058
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1059
+ */
1060
+ export namespace Deployments2PrefixMessagesType$ {
1061
+ /** @deprecated use `Deployments2PrefixMessagesType$inboundSchema` instead. */
1062
+ export const inboundSchema = Deployments2PrefixMessagesType$inboundSchema;
1063
+ /** @deprecated use `Deployments2PrefixMessagesType$outboundSchema` instead. */
1064
+ export const outboundSchema = Deployments2PrefixMessagesType$outboundSchema;
1065
+ }
1066
+
1067
+ /** @internal */
1068
+ export const Deployments21$inboundSchema: z.ZodType<
1069
+ Deployments21,
1070
+ z.ZodTypeDef,
1071
+ unknown
1072
+ > = z.object({
1073
+ type: Deployments2PrefixMessagesType$inboundSchema,
1074
+ text: z.string(),
1075
+ });
1076
+
1077
+ /** @internal */
1078
+ export type Deployments21$Outbound = {
1079
+ type: string;
1080
+ text: string;
1081
+ };
1082
+
1083
+ /** @internal */
1084
+ export const Deployments21$outboundSchema: z.ZodType<
1085
+ Deployments21$Outbound,
1086
+ z.ZodTypeDef,
1087
+ Deployments21
1088
+ > = z.object({
1089
+ type: Deployments2PrefixMessagesType$outboundSchema,
1090
+ text: z.string(),
1091
+ });
1092
+
1093
+ /**
1094
+ * @internal
1095
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1096
+ */
1097
+ export namespace Deployments21$ {
1098
+ /** @deprecated use `Deployments21$inboundSchema` instead. */
1099
+ export const inboundSchema = Deployments21$inboundSchema;
1100
+ /** @deprecated use `Deployments21$outboundSchema` instead. */
1101
+ export const outboundSchema = Deployments21$outboundSchema;
1102
+ /** @deprecated use `Deployments21$Outbound` instead. */
1103
+ export type Outbound = Deployments21$Outbound;
1104
+ }
1105
+
1106
+ export function deployments21ToJSON(deployments21: Deployments21): string {
1107
+ return JSON.stringify(Deployments21$outboundSchema.parse(deployments21));
1108
+ }
1109
+
1110
+ export function deployments21FromJSON(
1111
+ jsonString: string,
1112
+ ): SafeParseResult<Deployments21, SDKValidationError> {
1113
+ return safeParse(
1114
+ jsonString,
1115
+ (x) => Deployments21$inboundSchema.parse(JSON.parse(x)),
1116
+ `Failed to parse 'Deployments21' from JSON`,
1117
+ );
1118
+ }
1119
+
1120
+ /** @internal */
1121
+ export const DeploymentsContent2$inboundSchema: z.ZodType<
1122
+ DeploymentsContent2,
1123
+ z.ZodTypeDef,
1124
+ unknown
1125
+ > = z.union([
1126
+ z.lazy(() => Deployments21$inboundSchema),
1127
+ z.lazy(() => Deployments22$inboundSchema),
1128
+ ]);
1129
+
1130
+ /** @internal */
1131
+ export type DeploymentsContent2$Outbound =
1132
+ | Deployments21$Outbound
1133
+ | Deployments22$Outbound;
1134
+
1135
+ /** @internal */
1136
+ export const DeploymentsContent2$outboundSchema: z.ZodType<
1137
+ DeploymentsContent2$Outbound,
1138
+ z.ZodTypeDef,
1139
+ DeploymentsContent2
1140
+ > = z.union([
1141
+ z.lazy(() => Deployments21$outboundSchema),
1142
+ z.lazy(() => Deployments22$outboundSchema),
1143
+ ]);
1144
+
1145
+ /**
1146
+ * @internal
1147
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1148
+ */
1149
+ export namespace DeploymentsContent2$ {
1150
+ /** @deprecated use `DeploymentsContent2$inboundSchema` instead. */
1151
+ export const inboundSchema = DeploymentsContent2$inboundSchema;
1152
+ /** @deprecated use `DeploymentsContent2$outboundSchema` instead. */
1153
+ export const outboundSchema = DeploymentsContent2$outboundSchema;
1154
+ /** @deprecated use `DeploymentsContent2$Outbound` instead. */
1155
+ export type Outbound = DeploymentsContent2$Outbound;
1156
+ }
1157
+
1158
+ export function deploymentsContent2ToJSON(
1159
+ deploymentsContent2: DeploymentsContent2,
1160
+ ): string {
1161
+ return JSON.stringify(
1162
+ DeploymentsContent2$outboundSchema.parse(deploymentsContent2),
1163
+ );
1164
+ }
1165
+
1166
+ export function deploymentsContent2FromJSON(
1167
+ jsonString: string,
1168
+ ): SafeParseResult<DeploymentsContent2, SDKValidationError> {
1169
+ return safeParse(
1170
+ jsonString,
1171
+ (x) => DeploymentsContent2$inboundSchema.parse(JSON.parse(x)),
1172
+ `Failed to parse 'DeploymentsContent2' from JSON`,
1173
+ );
1174
+ }
1175
+
1176
+ /** @internal */
1177
+ export const PrefixMessagesContent$inboundSchema: z.ZodType<
1178
+ PrefixMessagesContent,
1179
+ z.ZodTypeDef,
1180
+ unknown
1181
+ > = z.union([
1182
+ z.string(),
1183
+ z.array(z.union([
1184
+ z.lazy(() => Deployments21$inboundSchema),
1185
+ z.lazy(() => Deployments22$inboundSchema),
1186
+ ])),
1187
+ ]);
1188
+
1189
+ /** @internal */
1190
+ export type PrefixMessagesContent$Outbound =
1191
+ | string
1192
+ | Array<Deployments21$Outbound | Deployments22$Outbound>;
1193
+
1194
+ /** @internal */
1195
+ export const PrefixMessagesContent$outboundSchema: z.ZodType<
1196
+ PrefixMessagesContent$Outbound,
1197
+ z.ZodTypeDef,
1198
+ PrefixMessagesContent
1199
+ > = z.union([
1200
+ z.string(),
1201
+ z.array(z.union([
1202
+ z.lazy(() => Deployments21$outboundSchema),
1203
+ z.lazy(() => Deployments22$outboundSchema),
1204
+ ])),
1205
+ ]);
1206
+
1207
+ /**
1208
+ * @internal
1209
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1210
+ */
1211
+ export namespace PrefixMessagesContent$ {
1212
+ /** @deprecated use `PrefixMessagesContent$inboundSchema` instead. */
1213
+ export const inboundSchema = PrefixMessagesContent$inboundSchema;
1214
+ /** @deprecated use `PrefixMessagesContent$outboundSchema` instead. */
1215
+ export const outboundSchema = PrefixMessagesContent$outboundSchema;
1216
+ /** @deprecated use `PrefixMessagesContent$Outbound` instead. */
1217
+ export type Outbound = PrefixMessagesContent$Outbound;
1218
+ }
1219
+
1220
+ export function prefixMessagesContentToJSON(
1221
+ prefixMessagesContent: PrefixMessagesContent,
1222
+ ): string {
1223
+ return JSON.stringify(
1224
+ PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent),
1225
+ );
1226
+ }
1227
+
1228
+ export function prefixMessagesContentFromJSON(
1229
+ jsonString: string,
1230
+ ): SafeParseResult<PrefixMessagesContent, SDKValidationError> {
1231
+ return safeParse(
1232
+ jsonString,
1233
+ (x) => PrefixMessagesContent$inboundSchema.parse(JSON.parse(x)),
1234
+ `Failed to parse 'PrefixMessagesContent' from JSON`,
1235
+ );
1236
+ }
1237
+
1238
+ /** @internal */
1239
+ export const DeploymentsPrefixMessages4Role$inboundSchema: z.ZodNativeEnum<
1240
+ typeof DeploymentsPrefixMessages4Role
1241
+ > = z.nativeEnum(DeploymentsPrefixMessages4Role);
1242
+
1243
+ /** @internal */
1244
+ export const DeploymentsPrefixMessages4Role$outboundSchema: z.ZodNativeEnum<
1245
+ typeof DeploymentsPrefixMessages4Role
1246
+ > = DeploymentsPrefixMessages4Role$inboundSchema;
1247
+
1248
+ /**
1249
+ * @internal
1250
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1251
+ */
1252
+ export namespace DeploymentsPrefixMessages4Role$ {
1253
+ /** @deprecated use `DeploymentsPrefixMessages4Role$inboundSchema` instead. */
1254
+ export const inboundSchema = DeploymentsPrefixMessages4Role$inboundSchema;
1255
+ /** @deprecated use `DeploymentsPrefixMessages4Role$outboundSchema` instead. */
1256
+ export const outboundSchema = DeploymentsPrefixMessages4Role$outboundSchema;
1257
+ }
1258
+
1259
+ /** @internal */
1260
+ export const Audio$inboundSchema: z.ZodType<Audio, z.ZodTypeDef, unknown> = z
1261
+ .object({
1262
+ id: z.string(),
1263
+ });
1264
+
1265
+ /** @internal */
1266
+ export type Audio$Outbound = {
1267
+ id: string;
1268
+ };
1269
+
1270
+ /** @internal */
1271
+ export const Audio$outboundSchema: z.ZodType<
1272
+ Audio$Outbound,
1273
+ z.ZodTypeDef,
1274
+ Audio
1275
+ > = z.object({
1276
+ id: z.string(),
1277
+ });
1278
+
1279
+ /**
1280
+ * @internal
1281
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1282
+ */
1283
+ export namespace Audio$ {
1284
+ /** @deprecated use `Audio$inboundSchema` instead. */
1285
+ export const inboundSchema = Audio$inboundSchema;
1286
+ /** @deprecated use `Audio$outboundSchema` instead. */
1287
+ export const outboundSchema = Audio$outboundSchema;
1288
+ /** @deprecated use `Audio$Outbound` instead. */
1289
+ export type Outbound = Audio$Outbound;
1290
+ }
1291
+
1292
+ export function audioToJSON(audio: Audio): string {
1293
+ return JSON.stringify(Audio$outboundSchema.parse(audio));
1294
+ }
1295
+
1296
+ export function audioFromJSON(
1297
+ jsonString: string,
1298
+ ): SafeParseResult<Audio, SDKValidationError> {
1299
+ return safeParse(
1300
+ jsonString,
1301
+ (x) => Audio$inboundSchema.parse(JSON.parse(x)),
1302
+ `Failed to parse 'Audio' from JSON`,
1303
+ );
1304
+ }
1305
+
1306
+ /** @internal */
1307
+ export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
1308
+ Type,
1309
+ );
1310
+
1311
+ /** @internal */
1312
+ export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
1313
+ Type$inboundSchema;
1314
+
1315
+ /**
1316
+ * @internal
1317
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1318
+ */
1319
+ export namespace Type$ {
1320
+ /** @deprecated use `Type$inboundSchema` instead. */
1321
+ export const inboundSchema = Type$inboundSchema;
1322
+ /** @deprecated use `Type$outboundSchema` instead. */
1323
+ export const outboundSchema = Type$outboundSchema;
1324
+ }
1325
+
1326
+ /** @internal */
1327
+ export const FunctionT$inboundSchema: z.ZodType<
1328
+ FunctionT,
1329
+ z.ZodTypeDef,
1330
+ unknown
1331
+ > = z.object({
1332
+ name: z.string().optional(),
1333
+ arguments: z.string().optional(),
1334
+ });
1335
+
1336
+ /** @internal */
1337
+ export type FunctionT$Outbound = {
1338
+ name?: string | undefined;
1339
+ arguments?: string | undefined;
1340
+ };
1341
+
1342
+ /** @internal */
1343
+ export const FunctionT$outboundSchema: z.ZodType<
1344
+ FunctionT$Outbound,
1345
+ z.ZodTypeDef,
1346
+ FunctionT
1347
+ > = z.object({
1348
+ name: z.string().optional(),
1349
+ arguments: z.string().optional(),
1350
+ });
1351
+
1352
+ /**
1353
+ * @internal
1354
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1355
+ */
1356
+ export namespace FunctionT$ {
1357
+ /** @deprecated use `FunctionT$inboundSchema` instead. */
1358
+ export const inboundSchema = FunctionT$inboundSchema;
1359
+ /** @deprecated use `FunctionT$outboundSchema` instead. */
1360
+ export const outboundSchema = FunctionT$outboundSchema;
1361
+ /** @deprecated use `FunctionT$Outbound` instead. */
1362
+ export type Outbound = FunctionT$Outbound;
1363
+ }
1364
+
1365
+ export function functionToJSON(functionT: FunctionT): string {
1366
+ return JSON.stringify(FunctionT$outboundSchema.parse(functionT));
1367
+ }
1368
+
1369
+ export function functionFromJSON(
1370
+ jsonString: string,
1371
+ ): SafeParseResult<FunctionT, SDKValidationError> {
1372
+ return safeParse(
1373
+ jsonString,
1374
+ (x) => FunctionT$inboundSchema.parse(JSON.parse(x)),
1375
+ `Failed to parse 'FunctionT' from JSON`,
1376
+ );
1377
+ }
1378
+
1379
+ /** @internal */
1380
+ export const ToolCalls$inboundSchema: z.ZodType<
1381
+ ToolCalls,
1382
+ z.ZodTypeDef,
1383
+ unknown
1384
+ > = z.object({
1385
+ id: z.string(),
1386
+ type: Type$inboundSchema,
1387
+ function: z.lazy(() => FunctionT$inboundSchema),
1388
+ });
1389
+
1390
+ /** @internal */
1391
+ export type ToolCalls$Outbound = {
1392
+ id: string;
1393
+ type: string;
1394
+ function: FunctionT$Outbound;
1395
+ };
1396
+
1397
+ /** @internal */
1398
+ export const ToolCalls$outboundSchema: z.ZodType<
1399
+ ToolCalls$Outbound,
1400
+ z.ZodTypeDef,
1401
+ ToolCalls
1402
+ > = z.object({
1403
+ id: z.string(),
1404
+ type: Type$outboundSchema,
1405
+ function: z.lazy(() => FunctionT$outboundSchema),
1406
+ });
1407
+
1408
+ /**
1409
+ * @internal
1410
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1411
+ */
1412
+ export namespace ToolCalls$ {
1413
+ /** @deprecated use `ToolCalls$inboundSchema` instead. */
1414
+ export const inboundSchema = ToolCalls$inboundSchema;
1415
+ /** @deprecated use `ToolCalls$outboundSchema` instead. */
1416
+ export const outboundSchema = ToolCalls$outboundSchema;
1417
+ /** @deprecated use `ToolCalls$Outbound` instead. */
1418
+ export type Outbound = ToolCalls$Outbound;
1419
+ }
1420
+
1421
+ export function toolCallsToJSON(toolCalls: ToolCalls): string {
1422
+ return JSON.stringify(ToolCalls$outboundSchema.parse(toolCalls));
1423
+ }
1424
+
1425
+ export function toolCallsFromJSON(
1426
+ jsonString: string,
1427
+ ): SafeParseResult<ToolCalls, SDKValidationError> {
1428
+ return safeParse(
1429
+ jsonString,
1430
+ (x) => ToolCalls$inboundSchema.parse(JSON.parse(x)),
1431
+ `Failed to parse 'ToolCalls' from JSON`,
1432
+ );
1433
+ }
1434
+
1435
+ /** @internal */
1436
+ export const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown> = z
1437
+ .object({
1438
+ content: z.union([
1439
+ z.string(),
1440
+ z.array(z.union([
1441
+ z.lazy(() => Deployments21$inboundSchema),
1442
+ z.lazy(() => Deployments22$inboundSchema),
1443
+ ])),
1444
+ ]).optional(),
1445
+ refusal: z.nullable(z.string()).optional(),
1446
+ role: DeploymentsPrefixMessages4Role$inboundSchema,
1447
+ name: z.string().optional(),
1448
+ audio: z.nullable(z.lazy(() => Audio$inboundSchema)).optional(),
1449
+ tool_calls: z.array(z.lazy(() => ToolCalls$inboundSchema)).optional(),
1450
+ }).transform((v) => {
1451
+ return remap$(v, {
1452
+ "tool_calls": "toolCalls",
1453
+ });
1454
+ });
1455
+
1456
+ /** @internal */
1457
+ export type Four$Outbound = {
1458
+ content?:
1459
+ | string
1460
+ | Array<Deployments21$Outbound | Deployments22$Outbound>
1461
+ | undefined;
1462
+ refusal?: string | null | undefined;
1463
+ role: string;
1464
+ name?: string | undefined;
1465
+ audio?: Audio$Outbound | null | undefined;
1466
+ tool_calls?: Array<ToolCalls$Outbound> | undefined;
1467
+ };
1468
+
1469
+ /** @internal */
1470
+ export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
1471
+ z.object({
1472
+ content: z.union([
1473
+ z.string(),
1474
+ z.array(z.union([
1475
+ z.lazy(() => Deployments21$outboundSchema),
1476
+ z.lazy(() => Deployments22$outboundSchema),
1477
+ ])),
1478
+ ]).optional(),
1479
+ refusal: z.nullable(z.string()).optional(),
1480
+ role: DeploymentsPrefixMessages4Role$outboundSchema,
1481
+ name: z.string().optional(),
1482
+ audio: z.nullable(z.lazy(() => Audio$outboundSchema)).optional(),
1483
+ toolCalls: z.array(z.lazy(() => ToolCalls$outboundSchema)).optional(),
1484
+ }).transform((v) => {
1485
+ return remap$(v, {
1486
+ toolCalls: "tool_calls",
1487
+ });
1488
+ });
1489
+
1490
+ /**
1491
+ * @internal
1492
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1493
+ */
1494
+ export namespace Four$ {
1495
+ /** @deprecated use `Four$inboundSchema` instead. */
1496
+ export const inboundSchema = Four$inboundSchema;
1497
+ /** @deprecated use `Four$outboundSchema` instead. */
1498
+ export const outboundSchema = Four$outboundSchema;
1499
+ /** @deprecated use `Four$Outbound` instead. */
1500
+ export type Outbound = Four$Outbound;
1501
+ }
1502
+
1503
+ export function fourToJSON(four: Four): string {
1504
+ return JSON.stringify(Four$outboundSchema.parse(four));
1505
+ }
1506
+
1507
+ export function fourFromJSON(
1508
+ jsonString: string,
1509
+ ): SafeParseResult<Four, SDKValidationError> {
1510
+ return safeParse(
1511
+ jsonString,
1512
+ (x) => Four$inboundSchema.parse(JSON.parse(x)),
1513
+ `Failed to parse 'Four' from JSON`,
1514
+ );
1515
+ }
1516
+
1517
+ /** @internal */
1518
+ export const DeploymentsPrefixMessagesRole$inboundSchema: z.ZodNativeEnum<
1519
+ typeof DeploymentsPrefixMessagesRole
1520
+ > = z.nativeEnum(DeploymentsPrefixMessagesRole);
1521
+
1522
+ /** @internal */
1523
+ export const DeploymentsPrefixMessagesRole$outboundSchema: z.ZodNativeEnum<
1524
+ typeof DeploymentsPrefixMessagesRole
1525
+ > = DeploymentsPrefixMessagesRole$inboundSchema;
1526
+
1527
+ /**
1528
+ * @internal
1529
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1530
+ */
1531
+ export namespace DeploymentsPrefixMessagesRole$ {
1532
+ /** @deprecated use `DeploymentsPrefixMessagesRole$inboundSchema` instead. */
1533
+ export const inboundSchema = DeploymentsPrefixMessagesRole$inboundSchema;
1534
+ /** @deprecated use `DeploymentsPrefixMessagesRole$outboundSchema` instead. */
1535
+ export const outboundSchema = DeploymentsPrefixMessagesRole$outboundSchema;
1536
+ }
1537
+
1538
+ /** @internal */
1539
+ export const Deployments2Type$inboundSchema: z.ZodNativeEnum<
1540
+ typeof Deployments2Type
1541
+ > = z.nativeEnum(Deployments2Type);
1542
+
1543
+ /** @internal */
1544
+ export const Deployments2Type$outboundSchema: z.ZodNativeEnum<
1545
+ typeof Deployments2Type
1546
+ > = Deployments2Type$inboundSchema;
1547
+
1548
+ /**
1549
+ * @internal
1550
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1551
+ */
1552
+ export namespace Deployments2Type$ {
1553
+ /** @deprecated use `Deployments2Type$inboundSchema` instead. */
1554
+ export const inboundSchema = Deployments2Type$inboundSchema;
1555
+ /** @deprecated use `Deployments2Type$outboundSchema` instead. */
1556
+ export const outboundSchema = Deployments2Type$outboundSchema;
1557
+ }
1558
+
1559
+ /** @internal */
1560
+ export const Format$inboundSchema: z.ZodNativeEnum<typeof Format> = z
1561
+ .nativeEnum(Format);
1562
+
1563
+ /** @internal */
1564
+ export const Format$outboundSchema: z.ZodNativeEnum<typeof Format> =
1565
+ Format$inboundSchema;
1566
+
1567
+ /**
1568
+ * @internal
1569
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1570
+ */
1571
+ export namespace Format$ {
1572
+ /** @deprecated use `Format$inboundSchema` instead. */
1573
+ export const inboundSchema = Format$inboundSchema;
1574
+ /** @deprecated use `Format$outboundSchema` instead. */
1575
+ export const outboundSchema = Format$outboundSchema;
1576
+ }
1577
+
1578
+ /** @internal */
1579
+ export const InputAudio$inboundSchema: z.ZodType<
1580
+ InputAudio,
1581
+ z.ZodTypeDef,
1582
+ unknown
1583
+ > = z.object({
1584
+ data: z.string(),
1585
+ format: Format$inboundSchema,
1586
+ });
1587
+
1588
+ /** @internal */
1589
+ export type InputAudio$Outbound = {
1590
+ data: string;
1591
+ format: string;
1592
+ };
1593
+
1594
+ /** @internal */
1595
+ export const InputAudio$outboundSchema: z.ZodType<
1596
+ InputAudio$Outbound,
1597
+ z.ZodTypeDef,
1598
+ InputAudio
1599
+ > = z.object({
1600
+ data: z.string(),
1601
+ format: Format$outboundSchema,
1602
+ });
1603
+
1604
+ /**
1605
+ * @internal
1606
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1607
+ */
1608
+ export namespace InputAudio$ {
1609
+ /** @deprecated use `InputAudio$inboundSchema` instead. */
1610
+ export const inboundSchema = InputAudio$inboundSchema;
1611
+ /** @deprecated use `InputAudio$outboundSchema` instead. */
1612
+ export const outboundSchema = InputAudio$outboundSchema;
1613
+ /** @deprecated use `InputAudio$Outbound` instead. */
1614
+ export type Outbound = InputAudio$Outbound;
1615
+ }
1616
+
1617
+ export function inputAudioToJSON(inputAudio: InputAudio): string {
1618
+ return JSON.stringify(InputAudio$outboundSchema.parse(inputAudio));
1619
+ }
1620
+
1621
+ export function inputAudioFromJSON(
1622
+ jsonString: string,
1623
+ ): SafeParseResult<InputAudio, SDKValidationError> {
1624
+ return safeParse(
1625
+ jsonString,
1626
+ (x) => InputAudio$inboundSchema.parse(JSON.parse(x)),
1627
+ `Failed to parse 'InputAudio' from JSON`,
1628
+ );
1629
+ }
1630
+
1631
+ /** @internal */
1632
+ export const Two3$inboundSchema: z.ZodType<Two3, z.ZodTypeDef, unknown> = z
1633
+ .object({
1634
+ type: Deployments2Type$inboundSchema,
1635
+ input_audio: z.lazy(() => InputAudio$inboundSchema),
1636
+ }).transform((v) => {
1637
+ return remap$(v, {
1638
+ "input_audio": "inputAudio",
1639
+ });
1640
+ });
1641
+
1642
+ /** @internal */
1643
+ export type Two3$Outbound = {
1644
+ type: string;
1645
+ input_audio: InputAudio$Outbound;
1646
+ };
1647
+
1648
+ /** @internal */
1649
+ export const Two3$outboundSchema: z.ZodType<Two3$Outbound, z.ZodTypeDef, Two3> =
1650
+ z.object({
1651
+ type: Deployments2Type$outboundSchema,
1652
+ inputAudio: z.lazy(() => InputAudio$outboundSchema),
1653
+ }).transform((v) => {
1654
+ return remap$(v, {
1655
+ inputAudio: "input_audio",
1656
+ });
1657
+ });
1658
+
1659
+ /**
1660
+ * @internal
1661
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1662
+ */
1663
+ export namespace Two3$ {
1664
+ /** @deprecated use `Two3$inboundSchema` instead. */
1665
+ export const inboundSchema = Two3$inboundSchema;
1666
+ /** @deprecated use `Two3$outboundSchema` instead. */
1667
+ export const outboundSchema = Two3$outboundSchema;
1668
+ /** @deprecated use `Two3$Outbound` instead. */
1669
+ export type Outbound = Two3$Outbound;
1670
+ }
1671
+
1672
+ export function two3ToJSON(two3: Two3): string {
1673
+ return JSON.stringify(Two3$outboundSchema.parse(two3));
1674
+ }
1675
+
1676
+ export function two3FromJSON(
1677
+ jsonString: string,
1678
+ ): SafeParseResult<Two3, SDKValidationError> {
1679
+ return safeParse(
1680
+ jsonString,
1681
+ (x) => Two3$inboundSchema.parse(JSON.parse(x)),
1682
+ `Failed to parse 'Two3' from JSON`,
1683
+ );
1684
+ }
1685
+
1686
+ /** @internal */
1687
+ export const TwoType$inboundSchema: z.ZodNativeEnum<typeof TwoType> = z
1688
+ .nativeEnum(TwoType);
1689
+
1690
+ /** @internal */
1691
+ export const TwoType$outboundSchema: z.ZodNativeEnum<typeof TwoType> =
1692
+ TwoType$inboundSchema;
1693
+
1694
+ /**
1695
+ * @internal
1696
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1697
+ */
1698
+ export namespace TwoType$ {
1699
+ /** @deprecated use `TwoType$inboundSchema` instead. */
1700
+ export const inboundSchema = TwoType$inboundSchema;
1701
+ /** @deprecated use `TwoType$outboundSchema` instead. */
1702
+ export const outboundSchema = TwoType$outboundSchema;
1703
+ }
1704
+
1705
+ /** @internal */
1706
+ export const Detail$inboundSchema: z.ZodNativeEnum<typeof Detail> = z
1707
+ .nativeEnum(Detail);
1708
+
1709
+ /** @internal */
1710
+ export const Detail$outboundSchema: z.ZodNativeEnum<typeof Detail> =
1711
+ Detail$inboundSchema;
1712
+
1713
+ /**
1714
+ * @internal
1715
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1716
+ */
1717
+ export namespace Detail$ {
1718
+ /** @deprecated use `Detail$inboundSchema` instead. */
1719
+ export const inboundSchema = Detail$inboundSchema;
1720
+ /** @deprecated use `Detail$outboundSchema` instead. */
1721
+ export const outboundSchema = Detail$outboundSchema;
1722
+ }
1723
+
1724
+ /** @internal */
1725
+ export const ImageUrl$inboundSchema: z.ZodType<
1726
+ ImageUrl,
1727
+ z.ZodTypeDef,
1728
+ unknown
1729
+ > = z.object({
1730
+ url: z.string(),
1731
+ detail: Detail$inboundSchema.optional(),
1732
+ });
1733
+
1734
+ /** @internal */
1735
+ export type ImageUrl$Outbound = {
1736
+ url: string;
1737
+ detail?: string | undefined;
1738
+ };
1739
+
1740
+ /** @internal */
1741
+ export const ImageUrl$outboundSchema: z.ZodType<
1742
+ ImageUrl$Outbound,
1743
+ z.ZodTypeDef,
1744
+ ImageUrl
1745
+ > = z.object({
1746
+ url: z.string(),
1747
+ detail: Detail$outboundSchema.optional(),
1748
+ });
1749
+
1750
+ /**
1751
+ * @internal
1752
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1753
+ */
1754
+ export namespace ImageUrl$ {
1755
+ /** @deprecated use `ImageUrl$inboundSchema` instead. */
1756
+ export const inboundSchema = ImageUrl$inboundSchema;
1757
+ /** @deprecated use `ImageUrl$outboundSchema` instead. */
1758
+ export const outboundSchema = ImageUrl$outboundSchema;
1759
+ /** @deprecated use `ImageUrl$Outbound` instead. */
1760
+ export type Outbound = ImageUrl$Outbound;
1761
+ }
1762
+
1763
+ export function imageUrlToJSON(imageUrl: ImageUrl): string {
1764
+ return JSON.stringify(ImageUrl$outboundSchema.parse(imageUrl));
1765
+ }
1766
+
1767
+ export function imageUrlFromJSON(
1768
+ jsonString: string,
1769
+ ): SafeParseResult<ImageUrl, SDKValidationError> {
1770
+ return safeParse(
1771
+ jsonString,
1772
+ (x) => ImageUrl$inboundSchema.parse(JSON.parse(x)),
1773
+ `Failed to parse 'ImageUrl' from JSON`,
1774
+ );
1775
+ }
1776
+
1777
+ /** @internal */
1778
+ export const Two2$inboundSchema: z.ZodType<Two2, z.ZodTypeDef, unknown> = z
1779
+ .object({
1780
+ type: TwoType$inboundSchema,
1781
+ image_url: z.lazy(() => ImageUrl$inboundSchema),
1782
+ }).transform((v) => {
1783
+ return remap$(v, {
1784
+ "image_url": "imageUrl",
1785
+ });
1786
+ });
1787
+
1788
+ /** @internal */
1789
+ export type Two2$Outbound = {
1790
+ type: string;
1791
+ image_url: ImageUrl$Outbound;
1792
+ };
1793
+
1794
+ /** @internal */
1795
+ export const Two2$outboundSchema: z.ZodType<Two2$Outbound, z.ZodTypeDef, Two2> =
1796
+ z.object({
1797
+ type: TwoType$outboundSchema,
1798
+ imageUrl: z.lazy(() => ImageUrl$outboundSchema),
1799
+ }).transform((v) => {
1800
+ return remap$(v, {
1801
+ imageUrl: "image_url",
1802
+ });
1803
+ });
1804
+
1805
+ /**
1806
+ * @internal
1807
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1808
+ */
1809
+ export namespace Two2$ {
1810
+ /** @deprecated use `Two2$inboundSchema` instead. */
1811
+ export const inboundSchema = Two2$inboundSchema;
1812
+ /** @deprecated use `Two2$outboundSchema` instead. */
1813
+ export const outboundSchema = Two2$outboundSchema;
1814
+ /** @deprecated use `Two2$Outbound` instead. */
1815
+ export type Outbound = Two2$Outbound;
1816
+ }
1817
+
1818
+ export function two2ToJSON(two2: Two2): string {
1819
+ return JSON.stringify(Two2$outboundSchema.parse(two2));
1820
+ }
1821
+
1822
+ export function two2FromJSON(
1823
+ jsonString: string,
1824
+ ): SafeParseResult<Two2, SDKValidationError> {
1825
+ return safeParse(
1826
+ jsonString,
1827
+ (x) => Two2$inboundSchema.parse(JSON.parse(x)),
1828
+ `Failed to parse 'Two2' from JSON`,
1829
+ );
1830
+ }
1831
+
1832
+ /** @internal */
1833
+ export const Deployments2PrefixMessages3Type$inboundSchema: z.ZodNativeEnum<
1834
+ typeof Deployments2PrefixMessages3Type
1835
+ > = z.nativeEnum(Deployments2PrefixMessages3Type);
1836
+
1837
+ /** @internal */
1838
+ export const Deployments2PrefixMessages3Type$outboundSchema: z.ZodNativeEnum<
1839
+ typeof Deployments2PrefixMessages3Type
1840
+ > = Deployments2PrefixMessages3Type$inboundSchema;
1841
+
1842
+ /**
1843
+ * @internal
1844
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1845
+ */
1846
+ export namespace Deployments2PrefixMessages3Type$ {
1847
+ /** @deprecated use `Deployments2PrefixMessages3Type$inboundSchema` instead. */
1848
+ export const inboundSchema = Deployments2PrefixMessages3Type$inboundSchema;
1849
+ /** @deprecated use `Deployments2PrefixMessages3Type$outboundSchema` instead. */
1850
+ export const outboundSchema = Deployments2PrefixMessages3Type$outboundSchema;
1851
+ }
1852
+
1853
+ /** @internal */
1854
+ export const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown> = z
1855
+ .object({
1856
+ type: Deployments2PrefixMessages3Type$inboundSchema,
1857
+ text: z.string(),
1858
+ });
1859
+
1860
+ /** @internal */
1861
+ export type Two1$Outbound = {
1862
+ type: string;
1863
+ text: string;
1864
+ };
1865
+
1866
+ /** @internal */
1867
+ export const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1> =
1868
+ z.object({
1869
+ type: Deployments2PrefixMessages3Type$outboundSchema,
1870
+ text: z.string(),
1871
+ });
1872
+
1873
+ /**
1874
+ * @internal
1875
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1876
+ */
1877
+ export namespace Two1$ {
1878
+ /** @deprecated use `Two1$inboundSchema` instead. */
1879
+ export const inboundSchema = Two1$inboundSchema;
1880
+ /** @deprecated use `Two1$outboundSchema` instead. */
1881
+ export const outboundSchema = Two1$outboundSchema;
1882
+ /** @deprecated use `Two1$Outbound` instead. */
1883
+ export type Outbound = Two1$Outbound;
1884
+ }
1885
+
1886
+ export function two1ToJSON(two1: Two1): string {
1887
+ return JSON.stringify(Two1$outboundSchema.parse(two1));
1888
+ }
1889
+
1890
+ export function two1FromJSON(
1891
+ jsonString: string,
1892
+ ): SafeParseResult<Two1, SDKValidationError> {
1893
+ return safeParse(
1894
+ jsonString,
1895
+ (x) => Two1$inboundSchema.parse(JSON.parse(x)),
1896
+ `Failed to parse 'Two1' from JSON`,
1897
+ );
1898
+ }
1899
+
1900
+ /** @internal */
1901
+ export const Content2$inboundSchema: z.ZodType<
1902
+ Content2,
1903
+ z.ZodTypeDef,
1904
+ unknown
1905
+ > = z.union([
1906
+ z.lazy(() => Two1$inboundSchema),
1907
+ z.lazy(() => Two2$inboundSchema),
1908
+ z.lazy(() => Two3$inboundSchema),
1909
+ ]);
1910
+
1911
+ /** @internal */
1912
+ export type Content2$Outbound = Two1$Outbound | Two2$Outbound | Two3$Outbound;
1913
+
1914
+ /** @internal */
1915
+ export const Content2$outboundSchema: z.ZodType<
1916
+ Content2$Outbound,
1917
+ z.ZodTypeDef,
1918
+ Content2
1919
+ > = z.union([
1920
+ z.lazy(() => Two1$outboundSchema),
1921
+ z.lazy(() => Two2$outboundSchema),
1922
+ z.lazy(() => Two3$outboundSchema),
1923
+ ]);
1924
+
1925
+ /**
1926
+ * @internal
1927
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1928
+ */
1929
+ export namespace Content2$ {
1930
+ /** @deprecated use `Content2$inboundSchema` instead. */
1931
+ export const inboundSchema = Content2$inboundSchema;
1932
+ /** @deprecated use `Content2$outboundSchema` instead. */
1933
+ export const outboundSchema = Content2$outboundSchema;
1934
+ /** @deprecated use `Content2$Outbound` instead. */
1935
+ export type Outbound = Content2$Outbound;
1936
+ }
1937
+
1938
+ export function content2ToJSON(content2: Content2): string {
1939
+ return JSON.stringify(Content2$outboundSchema.parse(content2));
1940
+ }
1941
+
1942
+ export function content2FromJSON(
1943
+ jsonString: string,
1944
+ ): SafeParseResult<Content2, SDKValidationError> {
1945
+ return safeParse(
1946
+ jsonString,
1947
+ (x) => Content2$inboundSchema.parse(JSON.parse(x)),
1948
+ `Failed to parse 'Content2' from JSON`,
1949
+ );
1950
+ }
1951
+
1952
+ /** @internal */
1953
+ export const Content$inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown> =
1954
+ z.union([
1955
+ z.string(),
1956
+ z.array(z.union([
1957
+ z.lazy(() => Two1$inboundSchema),
1958
+ z.lazy(() => Two2$inboundSchema),
1959
+ z.lazy(() => Two3$inboundSchema),
1960
+ ])),
1961
+ ]);
1962
+
1963
+ /** @internal */
1964
+ export type Content$Outbound =
1965
+ | string
1966
+ | Array<Two1$Outbound | Two2$Outbound | Two3$Outbound>;
1967
+
1968
+ /** @internal */
1969
+ export const Content$outboundSchema: z.ZodType<
1970
+ Content$Outbound,
1971
+ z.ZodTypeDef,
1972
+ Content
1973
+ > = z.union([
1974
+ z.string(),
1975
+ z.array(z.union([
1976
+ z.lazy(() => Two1$outboundSchema),
1977
+ z.lazy(() => Two2$outboundSchema),
1978
+ z.lazy(() => Two3$outboundSchema),
1979
+ ])),
1980
+ ]);
1981
+
1982
+ /**
1983
+ * @internal
1984
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1985
+ */
1986
+ export namespace Content$ {
1987
+ /** @deprecated use `Content$inboundSchema` instead. */
1988
+ export const inboundSchema = Content$inboundSchema;
1989
+ /** @deprecated use `Content$outboundSchema` instead. */
1990
+ export const outboundSchema = Content$outboundSchema;
1991
+ /** @deprecated use `Content$Outbound` instead. */
1992
+ export type Outbound = Content$Outbound;
1993
+ }
1994
+
1995
+ export function contentToJSON(content: Content): string {
1996
+ return JSON.stringify(Content$outboundSchema.parse(content));
1997
+ }
1998
+
1999
+ export function contentFromJSON(
2000
+ jsonString: string,
2001
+ ): SafeParseResult<Content, SDKValidationError> {
2002
+ return safeParse(
2003
+ jsonString,
2004
+ (x) => Content$inboundSchema.parse(JSON.parse(x)),
2005
+ `Failed to parse 'Content' from JSON`,
2006
+ );
2007
+ }
2008
+
2009
+ /** @internal */
2010
+ export const Three$inboundSchema: z.ZodType<Three, z.ZodTypeDef, unknown> = z
2011
+ .object({
2012
+ role: DeploymentsPrefixMessagesRole$inboundSchema,
2013
+ name: z.string().optional(),
2014
+ content: z.union([
2015
+ z.string(),
2016
+ z.array(z.union([
2017
+ z.lazy(() => Two1$inboundSchema),
2018
+ z.lazy(() => Two2$inboundSchema),
2019
+ z.lazy(() => Two3$inboundSchema),
2020
+ ])),
2021
+ ]),
2022
+ });
2023
+
2024
+ /** @internal */
2025
+ export type Three$Outbound = {
2026
+ role: string;
2027
+ name?: string | undefined;
2028
+ content: string | Array<Two1$Outbound | Two2$Outbound | Two3$Outbound>;
2029
+ };
2030
+
2031
+ /** @internal */
2032
+ export const Three$outboundSchema: z.ZodType<
2033
+ Three$Outbound,
2034
+ z.ZodTypeDef,
2035
+ Three
2036
+ > = z.object({
2037
+ role: DeploymentsPrefixMessagesRole$outboundSchema,
2038
+ name: z.string().optional(),
2039
+ content: z.union([
2040
+ z.string(),
2041
+ z.array(z.union([
2042
+ z.lazy(() => Two1$outboundSchema),
2043
+ z.lazy(() => Two2$outboundSchema),
2044
+ z.lazy(() => Two3$outboundSchema),
2045
+ ])),
2046
+ ]),
2047
+ });
2048
+
2049
+ /**
2050
+ * @internal
2051
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2052
+ */
2053
+ export namespace Three$ {
2054
+ /** @deprecated use `Three$inboundSchema` instead. */
2055
+ export const inboundSchema = Three$inboundSchema;
2056
+ /** @deprecated use `Three$outboundSchema` instead. */
2057
+ export const outboundSchema = Three$outboundSchema;
2058
+ /** @deprecated use `Three$Outbound` instead. */
2059
+ export type Outbound = Three$Outbound;
2060
+ }
2061
+
2062
+ export function threeToJSON(three: Three): string {
2063
+ return JSON.stringify(Three$outboundSchema.parse(three));
2064
+ }
2065
+
2066
+ export function threeFromJSON(
2067
+ jsonString: string,
2068
+ ): SafeParseResult<Three, SDKValidationError> {
2069
+ return safeParse(
2070
+ jsonString,
2071
+ (x) => Three$inboundSchema.parse(JSON.parse(x)),
2072
+ `Failed to parse 'Three' from JSON`,
2073
+ );
2074
+ }
2075
+
2076
+ /** @internal */
2077
+ export const PrefixMessagesRole$inboundSchema: z.ZodNativeEnum<
2078
+ typeof PrefixMessagesRole
2079
+ > = z.nativeEnum(PrefixMessagesRole);
2080
+
2081
+ /** @internal */
2082
+ export const PrefixMessagesRole$outboundSchema: z.ZodNativeEnum<
2083
+ typeof PrefixMessagesRole
2084
+ > = PrefixMessagesRole$inboundSchema;
2085
+
2086
+ /**
2087
+ * @internal
2088
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2089
+ */
2090
+ export namespace PrefixMessagesRole$ {
2091
+ /** @deprecated use `PrefixMessagesRole$inboundSchema` instead. */
2092
+ export const inboundSchema = PrefixMessagesRole$inboundSchema;
2093
+ /** @deprecated use `PrefixMessagesRole$outboundSchema` instead. */
2094
+ export const outboundSchema = PrefixMessagesRole$outboundSchema;
2095
+ }
2096
+
2097
+ /** @internal */
2098
+ export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z
2099
+ .object({
2100
+ role: PrefixMessagesRole$inboundSchema,
2101
+ content: z.string(),
2102
+ name: z.string().optional(),
2103
+ });
2104
+
2105
+ /** @internal */
2106
+ export type Two$Outbound = {
2107
+ role: string;
2108
+ content: string;
2109
+ name?: string | undefined;
2110
+ };
2111
+
2112
+ /** @internal */
2113
+ export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
2114
+ .object({
2115
+ role: PrefixMessagesRole$outboundSchema,
2116
+ content: z.string(),
2117
+ name: z.string().optional(),
2118
+ });
2119
+
2120
+ /**
2121
+ * @internal
2122
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2123
+ */
2124
+ export namespace Two$ {
2125
+ /** @deprecated use `Two$inboundSchema` instead. */
2126
+ export const inboundSchema = Two$inboundSchema;
2127
+ /** @deprecated use `Two$outboundSchema` instead. */
2128
+ export const outboundSchema = Two$outboundSchema;
2129
+ /** @deprecated use `Two$Outbound` instead. */
2130
+ export type Outbound = Two$Outbound;
2131
+ }
2132
+
2133
+ export function twoToJSON(two: Two): string {
2134
+ return JSON.stringify(Two$outboundSchema.parse(two));
2135
+ }
2136
+
2137
+ export function twoFromJSON(
2138
+ jsonString: string,
2139
+ ): SafeParseResult<Two, SDKValidationError> {
2140
+ return safeParse(
2141
+ jsonString,
2142
+ (x) => Two$inboundSchema.parse(JSON.parse(x)),
2143
+ `Failed to parse 'Two' from JSON`,
2144
+ );
2145
+ }
2146
+
2147
+ /** @internal */
2148
+ export const Role$inboundSchema: z.ZodNativeEnum<typeof Role> = z.nativeEnum(
2149
+ Role,
2150
+ );
2151
+
2152
+ /** @internal */
2153
+ export const Role$outboundSchema: z.ZodNativeEnum<typeof Role> =
2154
+ Role$inboundSchema;
2155
+
2156
+ /**
2157
+ * @internal
2158
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2159
+ */
2160
+ export namespace Role$ {
2161
+ /** @deprecated use `Role$inboundSchema` instead. */
2162
+ export const inboundSchema = Role$inboundSchema;
2163
+ /** @deprecated use `Role$outboundSchema` instead. */
2164
+ export const outboundSchema = Role$outboundSchema;
2165
+ }
2166
+
2167
+ /** @internal */
2168
+ export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
2169
+ .object({
2170
+ role: Role$inboundSchema,
2171
+ content: z.string(),
2172
+ name: z.string().optional(),
2173
+ });
2174
+
2175
+ /** @internal */
2176
+ export type One$Outbound = {
2177
+ role: string;
2178
+ content: string;
2179
+ name?: string | undefined;
2180
+ };
2181
+
2182
+ /** @internal */
2183
+ export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
2184
+ .object({
2185
+ role: Role$outboundSchema,
2186
+ content: z.string(),
2187
+ name: z.string().optional(),
2188
+ });
2189
+
2190
+ /**
2191
+ * @internal
2192
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2193
+ */
2194
+ export namespace One$ {
2195
+ /** @deprecated use `One$inboundSchema` instead. */
2196
+ export const inboundSchema = One$inboundSchema;
2197
+ /** @deprecated use `One$outboundSchema` instead. */
2198
+ export const outboundSchema = One$outboundSchema;
2199
+ /** @deprecated use `One$Outbound` instead. */
2200
+ export type Outbound = One$Outbound;
2201
+ }
2202
+
2203
+ export function oneToJSON(one: One): string {
2204
+ return JSON.stringify(One$outboundSchema.parse(one));
2205
+ }
2206
+
2207
+ export function oneFromJSON(
2208
+ jsonString: string,
2209
+ ): SafeParseResult<One, SDKValidationError> {
2210
+ return safeParse(
2211
+ jsonString,
2212
+ (x) => One$inboundSchema.parse(JSON.parse(x)),
2213
+ `Failed to parse 'One' from JSON`,
2214
+ );
2215
+ }
2216
+
2217
+ /** @internal */
2218
+ export const PrefixMessages$inboundSchema: z.ZodType<
2219
+ PrefixMessages,
2220
+ z.ZodTypeDef,
2221
+ unknown
2222
+ > = z.union([
2223
+ z.lazy(() => One$inboundSchema),
2224
+ z.lazy(() => Two$inboundSchema),
2225
+ z.lazy(() => Three$inboundSchema),
2226
+ z.lazy(() => Five$inboundSchema),
2227
+ z.lazy(() => Four$inboundSchema),
2228
+ ]);
2229
+
2230
+ /** @internal */
2231
+ export type PrefixMessages$Outbound =
2232
+ | One$Outbound
2233
+ | Two$Outbound
2234
+ | Three$Outbound
2235
+ | Five$Outbound
2236
+ | Four$Outbound;
2237
+
2238
+ /** @internal */
2239
+ export const PrefixMessages$outboundSchema: z.ZodType<
2240
+ PrefixMessages$Outbound,
2241
+ z.ZodTypeDef,
2242
+ PrefixMessages
2243
+ > = z.union([
2244
+ z.lazy(() => One$outboundSchema),
2245
+ z.lazy(() => Two$outboundSchema),
2246
+ z.lazy(() => Three$outboundSchema),
2247
+ z.lazy(() => Five$outboundSchema),
2248
+ z.lazy(() => Four$outboundSchema),
2249
+ ]);
2250
+
2251
+ /**
2252
+ * @internal
2253
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2254
+ */
2255
+ export namespace PrefixMessages$ {
2256
+ /** @deprecated use `PrefixMessages$inboundSchema` instead. */
2257
+ export const inboundSchema = PrefixMessages$inboundSchema;
2258
+ /** @deprecated use `PrefixMessages$outboundSchema` instead. */
2259
+ export const outboundSchema = PrefixMessages$outboundSchema;
2260
+ /** @deprecated use `PrefixMessages$Outbound` instead. */
2261
+ export type Outbound = PrefixMessages$Outbound;
2262
+ }
2263
+
2264
+ export function prefixMessagesToJSON(prefixMessages: PrefixMessages): string {
2265
+ return JSON.stringify(PrefixMessages$outboundSchema.parse(prefixMessages));
2266
+ }
2267
+
2268
+ export function prefixMessagesFromJSON(
2269
+ jsonString: string,
2270
+ ): SafeParseResult<PrefixMessages, SDKValidationError> {
2271
+ return safeParse(
2272
+ jsonString,
2273
+ (x) => PrefixMessages$inboundSchema.parse(JSON.parse(x)),
2274
+ `Failed to parse 'PrefixMessages' from JSON`,
2275
+ );
2276
+ }
2277
+
2278
+ /** @internal */
2279
+ export const DeploymentsMessages5Role$inboundSchema: z.ZodNativeEnum<
2280
+ typeof DeploymentsMessages5Role
2281
+ > = z.nativeEnum(DeploymentsMessages5Role);
2282
+
2283
+ /** @internal */
2284
+ export const DeploymentsMessages5Role$outboundSchema: z.ZodNativeEnum<
2285
+ typeof DeploymentsMessages5Role
2286
+ > = DeploymentsMessages5Role$inboundSchema;
2287
+
2288
+ /**
2289
+ * @internal
2290
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2291
+ */
2292
+ export namespace DeploymentsMessages5Role$ {
2293
+ /** @deprecated use `DeploymentsMessages5Role$inboundSchema` instead. */
2294
+ export const inboundSchema = DeploymentsMessages5Role$inboundSchema;
2295
+ /** @deprecated use `DeploymentsMessages5Role$outboundSchema` instead. */
2296
+ export const outboundSchema = DeploymentsMessages5Role$outboundSchema;
2297
+ }
2298
+
2299
+ /** @internal */
2300
+ export const DeploymentsMessages5Content$inboundSchema: z.ZodType<
2301
+ DeploymentsMessages5Content,
2302
+ z.ZodTypeDef,
2303
+ unknown
2304
+ > = z.union([z.string(), z.array(z.string())]);
2305
+
2306
+ /** @internal */
2307
+ export type DeploymentsMessages5Content$Outbound = string | Array<string>;
2308
+
2309
+ /** @internal */
2310
+ export const DeploymentsMessages5Content$outboundSchema: z.ZodType<
2311
+ DeploymentsMessages5Content$Outbound,
2312
+ z.ZodTypeDef,
2313
+ DeploymentsMessages5Content
2314
+ > = z.union([z.string(), z.array(z.string())]);
2315
+
2316
+ /**
2317
+ * @internal
2318
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2319
+ */
2320
+ export namespace DeploymentsMessages5Content$ {
2321
+ /** @deprecated use `DeploymentsMessages5Content$inboundSchema` instead. */
2322
+ export const inboundSchema = DeploymentsMessages5Content$inboundSchema;
2323
+ /** @deprecated use `DeploymentsMessages5Content$outboundSchema` instead. */
2324
+ export const outboundSchema = DeploymentsMessages5Content$outboundSchema;
2325
+ /** @deprecated use `DeploymentsMessages5Content$Outbound` instead. */
2326
+ export type Outbound = DeploymentsMessages5Content$Outbound;
2327
+ }
2328
+
2329
+ export function deploymentsMessages5ContentToJSON(
2330
+ deploymentsMessages5Content: DeploymentsMessages5Content,
2331
+ ): string {
2332
+ return JSON.stringify(
2333
+ DeploymentsMessages5Content$outboundSchema.parse(
2334
+ deploymentsMessages5Content,
2335
+ ),
2336
+ );
2337
+ }
2338
+
2339
+ export function deploymentsMessages5ContentFromJSON(
2340
+ jsonString: string,
2341
+ ): SafeParseResult<DeploymentsMessages5Content, SDKValidationError> {
2342
+ return safeParse(
2343
+ jsonString,
2344
+ (x) => DeploymentsMessages5Content$inboundSchema.parse(JSON.parse(x)),
2345
+ `Failed to parse 'DeploymentsMessages5Content' from JSON`,
2346
+ );
2347
+ }
2348
+
2349
+ /** @internal */
2350
+ export const Messages5$inboundSchema: z.ZodType<
2351
+ Messages5,
2352
+ z.ZodTypeDef,
2353
+ unknown
2354
+ > = z.object({
2355
+ role: DeploymentsMessages5Role$inboundSchema,
2356
+ content: z.union([z.string(), z.array(z.string())]),
2357
+ tool_call_id: z.string(),
2358
+ }).transform((v) => {
2359
+ return remap$(v, {
2360
+ "tool_call_id": "toolCallId",
2361
+ });
2362
+ });
2363
+
2364
+ /** @internal */
2365
+ export type Messages5$Outbound = {
2366
+ role: string;
2367
+ content: string | Array<string>;
2368
+ tool_call_id: string;
2369
+ };
2370
+
2371
+ /** @internal */
2372
+ export const Messages5$outboundSchema: z.ZodType<
2373
+ Messages5$Outbound,
2374
+ z.ZodTypeDef,
2375
+ Messages5
2376
+ > = z.object({
2377
+ role: DeploymentsMessages5Role$outboundSchema,
2378
+ content: z.union([z.string(), z.array(z.string())]),
2379
+ toolCallId: z.string(),
2380
+ }).transform((v) => {
2381
+ return remap$(v, {
2382
+ toolCallId: "tool_call_id",
2383
+ });
2384
+ });
2385
+
2386
+ /**
2387
+ * @internal
2388
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2389
+ */
2390
+ export namespace Messages5$ {
2391
+ /** @deprecated use `Messages5$inboundSchema` instead. */
2392
+ export const inboundSchema = Messages5$inboundSchema;
2393
+ /** @deprecated use `Messages5$outboundSchema` instead. */
2394
+ export const outboundSchema = Messages5$outboundSchema;
2395
+ /** @deprecated use `Messages5$Outbound` instead. */
2396
+ export type Outbound = Messages5$Outbound;
2397
+ }
2398
+
2399
+ export function messages5ToJSON(messages5: Messages5): string {
2400
+ return JSON.stringify(Messages5$outboundSchema.parse(messages5));
2401
+ }
2402
+
2403
+ export function messages5FromJSON(
2404
+ jsonString: string,
2405
+ ): SafeParseResult<Messages5, SDKValidationError> {
2406
+ return safeParse(
2407
+ jsonString,
2408
+ (x) => Messages5$inboundSchema.parse(JSON.parse(x)),
2409
+ `Failed to parse 'Messages5' from JSON`,
2410
+ );
2411
+ }
2412
+
2413
+ /** @internal */
2414
+ export const Deployments2Messages4ContentType$inboundSchema: z.ZodNativeEnum<
2415
+ typeof Deployments2Messages4ContentType
2416
+ > = z.nativeEnum(Deployments2Messages4ContentType);
2417
+
2418
+ /** @internal */
2419
+ export const Deployments2Messages4ContentType$outboundSchema: z.ZodNativeEnum<
2420
+ typeof Deployments2Messages4ContentType
2421
+ > = Deployments2Messages4ContentType$inboundSchema;
2422
+
2423
+ /**
2424
+ * @internal
2425
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2426
+ */
2427
+ export namespace Deployments2Messages4ContentType$ {
2428
+ /** @deprecated use `Deployments2Messages4ContentType$inboundSchema` instead. */
2429
+ export const inboundSchema = Deployments2Messages4ContentType$inboundSchema;
2430
+ /** @deprecated use `Deployments2Messages4ContentType$outboundSchema` instead. */
2431
+ export const outboundSchema = Deployments2Messages4ContentType$outboundSchema;
2432
+ }
2433
+
2434
+ /** @internal */
2435
+ export const Deployments2Messages42$inboundSchema: z.ZodType<
2436
+ Deployments2Messages42,
2437
+ z.ZodTypeDef,
2438
+ unknown
2439
+ > = z.object({
2440
+ type: Deployments2Messages4ContentType$inboundSchema,
2441
+ refusal: z.string(),
2442
+ });
2443
+
2444
+ /** @internal */
2445
+ export type Deployments2Messages42$Outbound = {
2446
+ type: string;
2447
+ refusal: string;
2448
+ };
2449
+
2450
+ /** @internal */
2451
+ export const Deployments2Messages42$outboundSchema: z.ZodType<
2452
+ Deployments2Messages42$Outbound,
2453
+ z.ZodTypeDef,
2454
+ Deployments2Messages42
2455
+ > = z.object({
2456
+ type: Deployments2Messages4ContentType$outboundSchema,
2457
+ refusal: z.string(),
2458
+ });
2459
+
2460
+ /**
2461
+ * @internal
2462
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2463
+ */
2464
+ export namespace Deployments2Messages42$ {
2465
+ /** @deprecated use `Deployments2Messages42$inboundSchema` instead. */
2466
+ export const inboundSchema = Deployments2Messages42$inboundSchema;
2467
+ /** @deprecated use `Deployments2Messages42$outboundSchema` instead. */
2468
+ export const outboundSchema = Deployments2Messages42$outboundSchema;
2469
+ /** @deprecated use `Deployments2Messages42$Outbound` instead. */
2470
+ export type Outbound = Deployments2Messages42$Outbound;
2471
+ }
2472
+
2473
+ export function deployments2Messages42ToJSON(
2474
+ deployments2Messages42: Deployments2Messages42,
2475
+ ): string {
2476
+ return JSON.stringify(
2477
+ Deployments2Messages42$outboundSchema.parse(deployments2Messages42),
2478
+ );
2479
+ }
2480
+
2481
+ export function deployments2Messages42FromJSON(
2482
+ jsonString: string,
2483
+ ): SafeParseResult<Deployments2Messages42, SDKValidationError> {
2484
+ return safeParse(
2485
+ jsonString,
2486
+ (x) => Deployments2Messages42$inboundSchema.parse(JSON.parse(x)),
2487
+ `Failed to parse 'Deployments2Messages42' from JSON`,
2488
+ );
2489
+ }
2490
+
2491
+ /** @internal */
2492
+ export const Deployments2Messages4Type$inboundSchema: z.ZodNativeEnum<
2493
+ typeof Deployments2Messages4Type
2494
+ > = z.nativeEnum(Deployments2Messages4Type);
2495
+
2496
+ /** @internal */
2497
+ export const Deployments2Messages4Type$outboundSchema: z.ZodNativeEnum<
2498
+ typeof Deployments2Messages4Type
2499
+ > = Deployments2Messages4Type$inboundSchema;
2500
+
2501
+ /**
2502
+ * @internal
2503
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2504
+ */
2505
+ export namespace Deployments2Messages4Type$ {
2506
+ /** @deprecated use `Deployments2Messages4Type$inboundSchema` instead. */
2507
+ export const inboundSchema = Deployments2Messages4Type$inboundSchema;
2508
+ /** @deprecated use `Deployments2Messages4Type$outboundSchema` instead. */
2509
+ export const outboundSchema = Deployments2Messages4Type$outboundSchema;
2510
+ }
2511
+
2512
+ /** @internal */
2513
+ export const Deployments2Messages41$inboundSchema: z.ZodType<
2514
+ Deployments2Messages41,
2515
+ z.ZodTypeDef,
2516
+ unknown
2517
+ > = z.object({
2518
+ type: Deployments2Messages4Type$inboundSchema,
2519
+ text: z.string(),
2520
+ });
2521
+
2522
+ /** @internal */
2523
+ export type Deployments2Messages41$Outbound = {
2524
+ type: string;
2525
+ text: string;
2526
+ };
2527
+
2528
+ /** @internal */
2529
+ export const Deployments2Messages41$outboundSchema: z.ZodType<
2530
+ Deployments2Messages41$Outbound,
2531
+ z.ZodTypeDef,
2532
+ Deployments2Messages41
2533
+ > = z.object({
2534
+ type: Deployments2Messages4Type$outboundSchema,
2535
+ text: z.string(),
2536
+ });
2537
+
2538
+ /**
2539
+ * @internal
2540
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2541
+ */
2542
+ export namespace Deployments2Messages41$ {
2543
+ /** @deprecated use `Deployments2Messages41$inboundSchema` instead. */
2544
+ export const inboundSchema = Deployments2Messages41$inboundSchema;
2545
+ /** @deprecated use `Deployments2Messages41$outboundSchema` instead. */
2546
+ export const outboundSchema = Deployments2Messages41$outboundSchema;
2547
+ /** @deprecated use `Deployments2Messages41$Outbound` instead. */
2548
+ export type Outbound = Deployments2Messages41$Outbound;
2549
+ }
2550
+
2551
+ export function deployments2Messages41ToJSON(
2552
+ deployments2Messages41: Deployments2Messages41,
2553
+ ): string {
2554
+ return JSON.stringify(
2555
+ Deployments2Messages41$outboundSchema.parse(deployments2Messages41),
2556
+ );
2557
+ }
2558
+
2559
+ export function deployments2Messages41FromJSON(
2560
+ jsonString: string,
2561
+ ): SafeParseResult<Deployments2Messages41, SDKValidationError> {
2562
+ return safeParse(
2563
+ jsonString,
2564
+ (x) => Deployments2Messages41$inboundSchema.parse(JSON.parse(x)),
2565
+ `Failed to parse 'Deployments2Messages41' from JSON`,
2566
+ );
2567
+ }
2568
+
2569
+ /** @internal */
2570
+ export const DeploymentsContentMessages42$inboundSchema: z.ZodType<
2571
+ DeploymentsContentMessages42,
2572
+ z.ZodTypeDef,
2573
+ unknown
2574
+ > = z.union([
2575
+ z.lazy(() => Deployments2Messages41$inboundSchema),
2576
+ z.lazy(() => Deployments2Messages42$inboundSchema),
2577
+ ]);
2578
+
2579
+ /** @internal */
2580
+ export type DeploymentsContentMessages42$Outbound =
2581
+ | Deployments2Messages41$Outbound
2582
+ | Deployments2Messages42$Outbound;
2583
+
2584
+ /** @internal */
2585
+ export const DeploymentsContentMessages42$outboundSchema: z.ZodType<
2586
+ DeploymentsContentMessages42$Outbound,
2587
+ z.ZodTypeDef,
2588
+ DeploymentsContentMessages42
2589
+ > = z.union([
2590
+ z.lazy(() => Deployments2Messages41$outboundSchema),
2591
+ z.lazy(() => Deployments2Messages42$outboundSchema),
2592
+ ]);
2593
+
2594
+ /**
2595
+ * @internal
2596
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2597
+ */
2598
+ export namespace DeploymentsContentMessages42$ {
2599
+ /** @deprecated use `DeploymentsContentMessages42$inboundSchema` instead. */
2600
+ export const inboundSchema = DeploymentsContentMessages42$inboundSchema;
2601
+ /** @deprecated use `DeploymentsContentMessages42$outboundSchema` instead. */
2602
+ export const outboundSchema = DeploymentsContentMessages42$outboundSchema;
2603
+ /** @deprecated use `DeploymentsContentMessages42$Outbound` instead. */
2604
+ export type Outbound = DeploymentsContentMessages42$Outbound;
2605
+ }
2606
+
2607
+ export function deploymentsContentMessages42ToJSON(
2608
+ deploymentsContentMessages42: DeploymentsContentMessages42,
2609
+ ): string {
2610
+ return JSON.stringify(
2611
+ DeploymentsContentMessages42$outboundSchema.parse(
2612
+ deploymentsContentMessages42,
2613
+ ),
2614
+ );
2615
+ }
2616
+
2617
+ export function deploymentsContentMessages42FromJSON(
2618
+ jsonString: string,
2619
+ ): SafeParseResult<DeploymentsContentMessages42, SDKValidationError> {
2620
+ return safeParse(
2621
+ jsonString,
2622
+ (x) => DeploymentsContentMessages42$inboundSchema.parse(JSON.parse(x)),
2623
+ `Failed to parse 'DeploymentsContentMessages42' from JSON`,
2624
+ );
363
2625
  }
364
2626
 
365
2627
  /** @internal */
366
- export const ImageUrl$inboundSchema: z.ZodType<
367
- ImageUrl,
2628
+ export const DeploymentsMessagesContent$inboundSchema: z.ZodType<
2629
+ DeploymentsMessagesContent,
368
2630
  z.ZodTypeDef,
369
2631
  unknown
370
- > = z.object({
371
- url: z.string(),
372
- detail: z.string().optional(),
373
- });
2632
+ > = z.union([
2633
+ z.string(),
2634
+ z.array(z.union([
2635
+ z.lazy(() => Deployments2Messages41$inboundSchema),
2636
+ z.lazy(() => Deployments2Messages42$inboundSchema),
2637
+ ])),
2638
+ ]);
374
2639
 
375
2640
  /** @internal */
376
- export type ImageUrl$Outbound = {
377
- url: string;
378
- detail?: string | undefined;
379
- };
2641
+ export type DeploymentsMessagesContent$Outbound =
2642
+ | string
2643
+ | Array<Deployments2Messages41$Outbound | Deployments2Messages42$Outbound>;
380
2644
 
381
2645
  /** @internal */
382
- export const ImageUrl$outboundSchema: z.ZodType<
383
- ImageUrl$Outbound,
2646
+ export const DeploymentsMessagesContent$outboundSchema: z.ZodType<
2647
+ DeploymentsMessagesContent$Outbound,
384
2648
  z.ZodTypeDef,
385
- ImageUrl
386
- > = z.object({
387
- url: z.string(),
388
- detail: z.string().optional(),
389
- });
2649
+ DeploymentsMessagesContent
2650
+ > = z.union([
2651
+ z.string(),
2652
+ z.array(z.union([
2653
+ z.lazy(() => Deployments2Messages41$outboundSchema),
2654
+ z.lazy(() => Deployments2Messages42$outboundSchema),
2655
+ ])),
2656
+ ]);
390
2657
 
391
2658
  /**
392
2659
  * @internal
393
2660
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
394
2661
  */
395
- export namespace ImageUrl$ {
396
- /** @deprecated use `ImageUrl$inboundSchema` instead. */
397
- export const inboundSchema = ImageUrl$inboundSchema;
398
- /** @deprecated use `ImageUrl$outboundSchema` instead. */
399
- export const outboundSchema = ImageUrl$outboundSchema;
400
- /** @deprecated use `ImageUrl$Outbound` instead. */
401
- export type Outbound = ImageUrl$Outbound;
2662
+ export namespace DeploymentsMessagesContent$ {
2663
+ /** @deprecated use `DeploymentsMessagesContent$inboundSchema` instead. */
2664
+ export const inboundSchema = DeploymentsMessagesContent$inboundSchema;
2665
+ /** @deprecated use `DeploymentsMessagesContent$outboundSchema` instead. */
2666
+ export const outboundSchema = DeploymentsMessagesContent$outboundSchema;
2667
+ /** @deprecated use `DeploymentsMessagesContent$Outbound` instead. */
2668
+ export type Outbound = DeploymentsMessagesContent$Outbound;
402
2669
  }
403
2670
 
404
- export function imageUrlToJSON(imageUrl: ImageUrl): string {
405
- return JSON.stringify(ImageUrl$outboundSchema.parse(imageUrl));
2671
+ export function deploymentsMessagesContentToJSON(
2672
+ deploymentsMessagesContent: DeploymentsMessagesContent,
2673
+ ): string {
2674
+ return JSON.stringify(
2675
+ DeploymentsMessagesContent$outboundSchema.parse(deploymentsMessagesContent),
2676
+ );
406
2677
  }
407
2678
 
408
- export function imageUrlFromJSON(
2679
+ export function deploymentsMessagesContentFromJSON(
409
2680
  jsonString: string,
410
- ): SafeParseResult<ImageUrl, SDKValidationError> {
2681
+ ): SafeParseResult<DeploymentsMessagesContent, SDKValidationError> {
411
2682
  return safeParse(
412
2683
  jsonString,
413
- (x) => ImageUrl$inboundSchema.parse(JSON.parse(x)),
414
- `Failed to parse 'ImageUrl' from JSON`,
2684
+ (x) => DeploymentsMessagesContent$inboundSchema.parse(JSON.parse(x)),
2685
+ `Failed to parse 'DeploymentsMessagesContent' from JSON`,
415
2686
  );
416
2687
  }
417
2688
 
418
2689
  /** @internal */
419
- export const Two2$inboundSchema: z.ZodType<Two2, z.ZodTypeDef, unknown> = z
420
- .object({
421
- type: TwoType$inboundSchema,
422
- image_url: z.lazy(() => ImageUrl$inboundSchema),
423
- }).transform((v) => {
424
- return remap$(v, {
425
- "image_url": "imageUrl",
426
- });
427
- });
2690
+ export const DeploymentsMessages4Role$inboundSchema: z.ZodNativeEnum<
2691
+ typeof DeploymentsMessages4Role
2692
+ > = z.nativeEnum(DeploymentsMessages4Role);
428
2693
 
429
2694
  /** @internal */
430
- export type Two2$Outbound = {
431
- type: string;
432
- image_url: ImageUrl$Outbound;
2695
+ export const DeploymentsMessages4Role$outboundSchema: z.ZodNativeEnum<
2696
+ typeof DeploymentsMessages4Role
2697
+ > = DeploymentsMessages4Role$inboundSchema;
2698
+
2699
+ /**
2700
+ * @internal
2701
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2702
+ */
2703
+ export namespace DeploymentsMessages4Role$ {
2704
+ /** @deprecated use `DeploymentsMessages4Role$inboundSchema` instead. */
2705
+ export const inboundSchema = DeploymentsMessages4Role$inboundSchema;
2706
+ /** @deprecated use `DeploymentsMessages4Role$outboundSchema` instead. */
2707
+ export const outboundSchema = DeploymentsMessages4Role$outboundSchema;
2708
+ }
2709
+
2710
+ /** @internal */
2711
+ export const MessagesAudio$inboundSchema: z.ZodType<
2712
+ MessagesAudio,
2713
+ z.ZodTypeDef,
2714
+ unknown
2715
+ > = z.object({
2716
+ id: z.string(),
2717
+ });
2718
+
2719
+ /** @internal */
2720
+ export type MessagesAudio$Outbound = {
2721
+ id: string;
433
2722
  };
434
2723
 
435
2724
  /** @internal */
436
- export const Two2$outboundSchema: z.ZodType<Two2$Outbound, z.ZodTypeDef, Two2> =
437
- z.object({
438
- type: TwoType$outboundSchema,
439
- imageUrl: z.lazy(() => ImageUrl$outboundSchema),
440
- }).transform((v) => {
441
- return remap$(v, {
442
- imageUrl: "image_url",
443
- });
444
- });
2725
+ export const MessagesAudio$outboundSchema: z.ZodType<
2726
+ MessagesAudio$Outbound,
2727
+ z.ZodTypeDef,
2728
+ MessagesAudio
2729
+ > = z.object({
2730
+ id: z.string(),
2731
+ });
445
2732
 
446
2733
  /**
447
2734
  * @internal
448
2735
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
449
2736
  */
450
- export namespace Two2$ {
451
- /** @deprecated use `Two2$inboundSchema` instead. */
452
- export const inboundSchema = Two2$inboundSchema;
453
- /** @deprecated use `Two2$outboundSchema` instead. */
454
- export const outboundSchema = Two2$outboundSchema;
455
- /** @deprecated use `Two2$Outbound` instead. */
456
- export type Outbound = Two2$Outbound;
2737
+ export namespace MessagesAudio$ {
2738
+ /** @deprecated use `MessagesAudio$inboundSchema` instead. */
2739
+ export const inboundSchema = MessagesAudio$inboundSchema;
2740
+ /** @deprecated use `MessagesAudio$outboundSchema` instead. */
2741
+ export const outboundSchema = MessagesAudio$outboundSchema;
2742
+ /** @deprecated use `MessagesAudio$Outbound` instead. */
2743
+ export type Outbound = MessagesAudio$Outbound;
457
2744
  }
458
2745
 
459
- export function two2ToJSON(two2: Two2): string {
460
- return JSON.stringify(Two2$outboundSchema.parse(two2));
2746
+ export function messagesAudioToJSON(messagesAudio: MessagesAudio): string {
2747
+ return JSON.stringify(MessagesAudio$outboundSchema.parse(messagesAudio));
461
2748
  }
462
2749
 
463
- export function two2FromJSON(
2750
+ export function messagesAudioFromJSON(
464
2751
  jsonString: string,
465
- ): SafeParseResult<Two2, SDKValidationError> {
2752
+ ): SafeParseResult<MessagesAudio, SDKValidationError> {
466
2753
  return safeParse(
467
2754
  jsonString,
468
- (x) => Two2$inboundSchema.parse(JSON.parse(x)),
469
- `Failed to parse 'Two2' from JSON`,
2755
+ (x) => MessagesAudio$inboundSchema.parse(JSON.parse(x)),
2756
+ `Failed to parse 'MessagesAudio' from JSON`,
470
2757
  );
471
2758
  }
472
2759
 
473
2760
  /** @internal */
474
- export const Deployments2Type$inboundSchema: z.ZodNativeEnum<
475
- typeof Deployments2Type
476
- > = z.nativeEnum(Deployments2Type);
2761
+ export const MessagesType$inboundSchema: z.ZodNativeEnum<typeof MessagesType> =
2762
+ z.nativeEnum(MessagesType);
477
2763
 
478
2764
  /** @internal */
479
- export const Deployments2Type$outboundSchema: z.ZodNativeEnum<
480
- typeof Deployments2Type
481
- > = Deployments2Type$inboundSchema;
2765
+ export const MessagesType$outboundSchema: z.ZodNativeEnum<typeof MessagesType> =
2766
+ MessagesType$inboundSchema;
482
2767
 
483
2768
  /**
484
2769
  * @internal
485
2770
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
486
2771
  */
487
- export namespace Deployments2Type$ {
488
- /** @deprecated use `Deployments2Type$inboundSchema` instead. */
489
- export const inboundSchema = Deployments2Type$inboundSchema;
490
- /** @deprecated use `Deployments2Type$outboundSchema` instead. */
491
- export const outboundSchema = Deployments2Type$outboundSchema;
2772
+ export namespace MessagesType$ {
2773
+ /** @deprecated use `MessagesType$inboundSchema` instead. */
2774
+ export const inboundSchema = MessagesType$inboundSchema;
2775
+ /** @deprecated use `MessagesType$outboundSchema` instead. */
2776
+ export const outboundSchema = MessagesType$outboundSchema;
492
2777
  }
493
2778
 
494
2779
  /** @internal */
495
- export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
496
- .object({
497
- type: Deployments2Type$inboundSchema,
498
- text: z.string(),
499
- });
2780
+ export const MessagesFunction$inboundSchema: z.ZodType<
2781
+ MessagesFunction,
2782
+ z.ZodTypeDef,
2783
+ unknown
2784
+ > = z.object({
2785
+ name: z.string().optional(),
2786
+ arguments: z.string().optional(),
2787
+ });
500
2788
 
501
2789
  /** @internal */
502
- export type One$Outbound = {
503
- type: string;
504
- text: string;
2790
+ export type MessagesFunction$Outbound = {
2791
+ name?: string | undefined;
2792
+ arguments?: string | undefined;
505
2793
  };
506
2794
 
507
2795
  /** @internal */
508
- export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
509
- .object({
510
- type: Deployments2Type$outboundSchema,
511
- text: z.string(),
512
- });
2796
+ export const MessagesFunction$outboundSchema: z.ZodType<
2797
+ MessagesFunction$Outbound,
2798
+ z.ZodTypeDef,
2799
+ MessagesFunction
2800
+ > = z.object({
2801
+ name: z.string().optional(),
2802
+ arguments: z.string().optional(),
2803
+ });
513
2804
 
514
2805
  /**
515
2806
  * @internal
516
2807
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
517
2808
  */
518
- export namespace One$ {
519
- /** @deprecated use `One$inboundSchema` instead. */
520
- export const inboundSchema = One$inboundSchema;
521
- /** @deprecated use `One$outboundSchema` instead. */
522
- export const outboundSchema = One$outboundSchema;
523
- /** @deprecated use `One$Outbound` instead. */
524
- export type Outbound = One$Outbound;
2809
+ export namespace MessagesFunction$ {
2810
+ /** @deprecated use `MessagesFunction$inboundSchema` instead. */
2811
+ export const inboundSchema = MessagesFunction$inboundSchema;
2812
+ /** @deprecated use `MessagesFunction$outboundSchema` instead. */
2813
+ export const outboundSchema = MessagesFunction$outboundSchema;
2814
+ /** @deprecated use `MessagesFunction$Outbound` instead. */
2815
+ export type Outbound = MessagesFunction$Outbound;
525
2816
  }
526
2817
 
527
- export function oneToJSON(one: One): string {
528
- return JSON.stringify(One$outboundSchema.parse(one));
2818
+ export function messagesFunctionToJSON(
2819
+ messagesFunction: MessagesFunction,
2820
+ ): string {
2821
+ return JSON.stringify(
2822
+ MessagesFunction$outboundSchema.parse(messagesFunction),
2823
+ );
529
2824
  }
530
2825
 
531
- export function oneFromJSON(
2826
+ export function messagesFunctionFromJSON(
532
2827
  jsonString: string,
533
- ): SafeParseResult<One, SDKValidationError> {
2828
+ ): SafeParseResult<MessagesFunction, SDKValidationError> {
534
2829
  return safeParse(
535
2830
  jsonString,
536
- (x) => One$inboundSchema.parse(JSON.parse(x)),
537
- `Failed to parse 'One' from JSON`,
2831
+ (x) => MessagesFunction$inboundSchema.parse(JSON.parse(x)),
2832
+ `Failed to parse 'MessagesFunction' from JSON`,
538
2833
  );
539
2834
  }
540
2835
 
541
2836
  /** @internal */
542
- export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z.union(
543
- [z.lazy(() => One$inboundSchema), z.lazy(() => Two2$inboundSchema)],
544
- );
2837
+ export const MessagesToolCalls$inboundSchema: z.ZodType<
2838
+ MessagesToolCalls,
2839
+ z.ZodTypeDef,
2840
+ unknown
2841
+ > = z.object({
2842
+ id: z.string(),
2843
+ type: MessagesType$inboundSchema,
2844
+ function: z.lazy(() => MessagesFunction$inboundSchema),
2845
+ });
545
2846
 
546
2847
  /** @internal */
547
- export type Two$Outbound = One$Outbound | Two2$Outbound;
2848
+ export type MessagesToolCalls$Outbound = {
2849
+ id: string;
2850
+ type: string;
2851
+ function: MessagesFunction$Outbound;
2852
+ };
548
2853
 
549
2854
  /** @internal */
550
- export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
551
- .union([z.lazy(() => One$outboundSchema), z.lazy(() => Two2$outboundSchema)]);
2855
+ export const MessagesToolCalls$outboundSchema: z.ZodType<
2856
+ MessagesToolCalls$Outbound,
2857
+ z.ZodTypeDef,
2858
+ MessagesToolCalls
2859
+ > = z.object({
2860
+ id: z.string(),
2861
+ type: MessagesType$outboundSchema,
2862
+ function: z.lazy(() => MessagesFunction$outboundSchema),
2863
+ });
552
2864
 
553
2865
  /**
554
2866
  * @internal
555
2867
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
556
2868
  */
557
- export namespace Two$ {
558
- /** @deprecated use `Two$inboundSchema` instead. */
559
- export const inboundSchema = Two$inboundSchema;
560
- /** @deprecated use `Two$outboundSchema` instead. */
561
- export const outboundSchema = Two$outboundSchema;
562
- /** @deprecated use `Two$Outbound` instead. */
563
- export type Outbound = Two$Outbound;
2869
+ export namespace MessagesToolCalls$ {
2870
+ /** @deprecated use `MessagesToolCalls$inboundSchema` instead. */
2871
+ export const inboundSchema = MessagesToolCalls$inboundSchema;
2872
+ /** @deprecated use `MessagesToolCalls$outboundSchema` instead. */
2873
+ export const outboundSchema = MessagesToolCalls$outboundSchema;
2874
+ /** @deprecated use `MessagesToolCalls$Outbound` instead. */
2875
+ export type Outbound = MessagesToolCalls$Outbound;
564
2876
  }
565
2877
 
566
- export function twoToJSON(two: Two): string {
567
- return JSON.stringify(Two$outboundSchema.parse(two));
2878
+ export function messagesToolCallsToJSON(
2879
+ messagesToolCalls: MessagesToolCalls,
2880
+ ): string {
2881
+ return JSON.stringify(
2882
+ MessagesToolCalls$outboundSchema.parse(messagesToolCalls),
2883
+ );
568
2884
  }
569
2885
 
570
- export function twoFromJSON(
2886
+ export function messagesToolCallsFromJSON(
571
2887
  jsonString: string,
572
- ): SafeParseResult<Two, SDKValidationError> {
2888
+ ): SafeParseResult<MessagesToolCalls, SDKValidationError> {
573
2889
  return safeParse(
574
2890
  jsonString,
575
- (x) => Two$inboundSchema.parse(JSON.parse(x)),
576
- `Failed to parse 'Two' from JSON`,
2891
+ (x) => MessagesToolCalls$inboundSchema.parse(JSON.parse(x)),
2892
+ `Failed to parse 'MessagesToolCalls' from JSON`,
577
2893
  );
578
2894
  }
579
2895
 
580
2896
  /** @internal */
581
- export const Content$inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown> =
582
- z.union([
2897
+ export const Messages4$inboundSchema: z.ZodType<
2898
+ Messages4,
2899
+ z.ZodTypeDef,
2900
+ unknown
2901
+ > = z.object({
2902
+ content: z.union([
583
2903
  z.string(),
584
2904
  z.array(z.union([
585
- z.lazy(() => One$inboundSchema),
586
- z.lazy(() => Two2$inboundSchema),
2905
+ z.lazy(() => Deployments2Messages41$inboundSchema),
2906
+ z.lazy(() => Deployments2Messages42$inboundSchema),
587
2907
  ])),
588
- ]);
2908
+ ]).optional(),
2909
+ refusal: z.nullable(z.string()).optional(),
2910
+ role: DeploymentsMessages4Role$inboundSchema,
2911
+ name: z.string().optional(),
2912
+ audio: z.nullable(z.lazy(() => MessagesAudio$inboundSchema)).optional(),
2913
+ tool_calls: z.array(z.lazy(() => MessagesToolCalls$inboundSchema)).optional(),
2914
+ }).transform((v) => {
2915
+ return remap$(v, {
2916
+ "tool_calls": "toolCalls",
2917
+ });
2918
+ });
589
2919
 
590
2920
  /** @internal */
591
- export type Content$Outbound = string | Array<One$Outbound | Two2$Outbound>;
2921
+ export type Messages4$Outbound = {
2922
+ content?:
2923
+ | string
2924
+ | Array<Deployments2Messages41$Outbound | Deployments2Messages42$Outbound>
2925
+ | undefined;
2926
+ refusal?: string | null | undefined;
2927
+ role: string;
2928
+ name?: string | undefined;
2929
+ audio?: MessagesAudio$Outbound | null | undefined;
2930
+ tool_calls?: Array<MessagesToolCalls$Outbound> | undefined;
2931
+ };
592
2932
 
593
2933
  /** @internal */
594
- export const Content$outboundSchema: z.ZodType<
595
- Content$Outbound,
2934
+ export const Messages4$outboundSchema: z.ZodType<
2935
+ Messages4$Outbound,
596
2936
  z.ZodTypeDef,
597
- Content
598
- > = z.union([
599
- z.string(),
600
- z.array(z.union([
601
- z.lazy(() => One$outboundSchema),
602
- z.lazy(() => Two2$outboundSchema),
603
- ])),
604
- ]);
2937
+ Messages4
2938
+ > = z.object({
2939
+ content: z.union([
2940
+ z.string(),
2941
+ z.array(z.union([
2942
+ z.lazy(() => Deployments2Messages41$outboundSchema),
2943
+ z.lazy(() => Deployments2Messages42$outboundSchema),
2944
+ ])),
2945
+ ]).optional(),
2946
+ refusal: z.nullable(z.string()).optional(),
2947
+ role: DeploymentsMessages4Role$outboundSchema,
2948
+ name: z.string().optional(),
2949
+ audio: z.nullable(z.lazy(() => MessagesAudio$outboundSchema)).optional(),
2950
+ toolCalls: z.array(z.lazy(() => MessagesToolCalls$outboundSchema)).optional(),
2951
+ }).transform((v) => {
2952
+ return remap$(v, {
2953
+ toolCalls: "tool_calls",
2954
+ });
2955
+ });
605
2956
 
606
2957
  /**
607
2958
  * @internal
608
2959
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
609
2960
  */
610
- export namespace Content$ {
611
- /** @deprecated use `Content$inboundSchema` instead. */
612
- export const inboundSchema = Content$inboundSchema;
613
- /** @deprecated use `Content$outboundSchema` instead. */
614
- export const outboundSchema = Content$outboundSchema;
615
- /** @deprecated use `Content$Outbound` instead. */
616
- export type Outbound = Content$Outbound;
2961
+ export namespace Messages4$ {
2962
+ /** @deprecated use `Messages4$inboundSchema` instead. */
2963
+ export const inboundSchema = Messages4$inboundSchema;
2964
+ /** @deprecated use `Messages4$outboundSchema` instead. */
2965
+ export const outboundSchema = Messages4$outboundSchema;
2966
+ /** @deprecated use `Messages4$Outbound` instead. */
2967
+ export type Outbound = Messages4$Outbound;
617
2968
  }
618
2969
 
619
- export function contentToJSON(content: Content): string {
620
- return JSON.stringify(Content$outboundSchema.parse(content));
2970
+ export function messages4ToJSON(messages4: Messages4): string {
2971
+ return JSON.stringify(Messages4$outboundSchema.parse(messages4));
621
2972
  }
622
2973
 
623
- export function contentFromJSON(
2974
+ export function messages4FromJSON(
624
2975
  jsonString: string,
625
- ): SafeParseResult<Content, SDKValidationError> {
2976
+ ): SafeParseResult<Messages4, SDKValidationError> {
626
2977
  return safeParse(
627
2978
  jsonString,
628
- (x) => Content$inboundSchema.parse(JSON.parse(x)),
629
- `Failed to parse 'Content' from JSON`,
2979
+ (x) => Messages4$inboundSchema.parse(JSON.parse(x)),
2980
+ `Failed to parse 'Messages4' from JSON`,
630
2981
  );
631
2982
  }
632
2983
 
633
2984
  /** @internal */
634
- export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
635
- Type,
636
- );
2985
+ export const DeploymentsMessages3Role$inboundSchema: z.ZodNativeEnum<
2986
+ typeof DeploymentsMessages3Role
2987
+ > = z.nativeEnum(DeploymentsMessages3Role);
637
2988
 
638
2989
  /** @internal */
639
- export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
640
- Type$inboundSchema;
2990
+ export const DeploymentsMessages3Role$outboundSchema: z.ZodNativeEnum<
2991
+ typeof DeploymentsMessages3Role
2992
+ > = DeploymentsMessages3Role$inboundSchema;
641
2993
 
642
2994
  /**
643
2995
  * @internal
644
2996
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
645
2997
  */
646
- export namespace Type$ {
647
- /** @deprecated use `Type$inboundSchema` instead. */
648
- export const inboundSchema = Type$inboundSchema;
649
- /** @deprecated use `Type$outboundSchema` instead. */
650
- export const outboundSchema = Type$outboundSchema;
2998
+ export namespace DeploymentsMessages3Role$ {
2999
+ /** @deprecated use `DeploymentsMessages3Role$inboundSchema` instead. */
3000
+ export const inboundSchema = DeploymentsMessages3Role$inboundSchema;
3001
+ /** @deprecated use `DeploymentsMessages3Role$outboundSchema` instead. */
3002
+ export const outboundSchema = DeploymentsMessages3Role$outboundSchema;
651
3003
  }
652
3004
 
653
3005
  /** @internal */
654
- export const FunctionT$inboundSchema: z.ZodType<
655
- FunctionT,
656
- z.ZodTypeDef,
657
- unknown
658
- > = z.object({
659
- name: z.string(),
660
- arguments: z.string(),
661
- });
662
-
663
- /** @internal */
664
- export type FunctionT$Outbound = {
665
- name: string;
666
- arguments: string;
667
- };
3006
+ export const Deployments2Messages3ContentType$inboundSchema: z.ZodNativeEnum<
3007
+ typeof Deployments2Messages3ContentType
3008
+ > = z.nativeEnum(Deployments2Messages3ContentType);
668
3009
 
669
3010
  /** @internal */
670
- export const FunctionT$outboundSchema: z.ZodType<
671
- FunctionT$Outbound,
672
- z.ZodTypeDef,
673
- FunctionT
674
- > = z.object({
675
- name: z.string(),
676
- arguments: z.string(),
677
- });
3011
+ export const Deployments2Messages3ContentType$outboundSchema: z.ZodNativeEnum<
3012
+ typeof Deployments2Messages3ContentType
3013
+ > = Deployments2Messages3ContentType$inboundSchema;
678
3014
 
679
3015
  /**
680
3016
  * @internal
681
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
682
- */
683
- export namespace FunctionT$ {
684
- /** @deprecated use `FunctionT$inboundSchema` instead. */
685
- export const inboundSchema = FunctionT$inboundSchema;
686
- /** @deprecated use `FunctionT$outboundSchema` instead. */
687
- export const outboundSchema = FunctionT$outboundSchema;
688
- /** @deprecated use `FunctionT$Outbound` instead. */
689
- export type Outbound = FunctionT$Outbound;
3017
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3018
+ */
3019
+ export namespace Deployments2Messages3ContentType$ {
3020
+ /** @deprecated use `Deployments2Messages3ContentType$inboundSchema` instead. */
3021
+ export const inboundSchema = Deployments2Messages3ContentType$inboundSchema;
3022
+ /** @deprecated use `Deployments2Messages3ContentType$outboundSchema` instead. */
3023
+ export const outboundSchema = Deployments2Messages3ContentType$outboundSchema;
690
3024
  }
691
3025
 
692
- export function functionToJSON(functionT: FunctionT): string {
693
- return JSON.stringify(FunctionT$outboundSchema.parse(functionT));
694
- }
3026
+ /** @internal */
3027
+ export const TwoFormat$inboundSchema: z.ZodNativeEnum<typeof TwoFormat> = z
3028
+ .nativeEnum(TwoFormat);
695
3029
 
696
- export function functionFromJSON(
697
- jsonString: string,
698
- ): SafeParseResult<FunctionT, SDKValidationError> {
699
- return safeParse(
700
- jsonString,
701
- (x) => FunctionT$inboundSchema.parse(JSON.parse(x)),
702
- `Failed to parse 'FunctionT' from JSON`,
703
- );
3030
+ /** @internal */
3031
+ export const TwoFormat$outboundSchema: z.ZodNativeEnum<typeof TwoFormat> =
3032
+ TwoFormat$inboundSchema;
3033
+
3034
+ /**
3035
+ * @internal
3036
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3037
+ */
3038
+ export namespace TwoFormat$ {
3039
+ /** @deprecated use `TwoFormat$inboundSchema` instead. */
3040
+ export const inboundSchema = TwoFormat$inboundSchema;
3041
+ /** @deprecated use `TwoFormat$outboundSchema` instead. */
3042
+ export const outboundSchema = TwoFormat$outboundSchema;
704
3043
  }
705
3044
 
706
3045
  /** @internal */
707
- export const ToolCalls$inboundSchema: z.ZodType<
708
- ToolCalls,
3046
+ export const TwoInputAudio$inboundSchema: z.ZodType<
3047
+ TwoInputAudio,
709
3048
  z.ZodTypeDef,
710
3049
  unknown
711
3050
  > = z.object({
712
- id: z.string().optional(),
713
- index: z.number().optional(),
714
- type: Type$inboundSchema,
715
- function: z.lazy(() => FunctionT$inboundSchema),
3051
+ data: z.string(),
3052
+ format: TwoFormat$inboundSchema,
716
3053
  });
717
3054
 
718
3055
  /** @internal */
719
- export type ToolCalls$Outbound = {
720
- id?: string | undefined;
721
- index?: number | undefined;
722
- type: string;
723
- function: FunctionT$Outbound;
3056
+ export type TwoInputAudio$Outbound = {
3057
+ data: string;
3058
+ format: string;
724
3059
  };
725
3060
 
726
3061
  /** @internal */
727
- export const ToolCalls$outboundSchema: z.ZodType<
728
- ToolCalls$Outbound,
3062
+ export const TwoInputAudio$outboundSchema: z.ZodType<
3063
+ TwoInputAudio$Outbound,
729
3064
  z.ZodTypeDef,
730
- ToolCalls
3065
+ TwoInputAudio
731
3066
  > = z.object({
732
- id: z.string().optional(),
733
- index: z.number().optional(),
734
- type: Type$outboundSchema,
735
- function: z.lazy(() => FunctionT$outboundSchema),
3067
+ data: z.string(),
3068
+ format: TwoFormat$outboundSchema,
736
3069
  });
737
3070
 
738
3071
  /**
739
3072
  * @internal
740
3073
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
741
3074
  */
742
- export namespace ToolCalls$ {
743
- /** @deprecated use `ToolCalls$inboundSchema` instead. */
744
- export const inboundSchema = ToolCalls$inboundSchema;
745
- /** @deprecated use `ToolCalls$outboundSchema` instead. */
746
- export const outboundSchema = ToolCalls$outboundSchema;
747
- /** @deprecated use `ToolCalls$Outbound` instead. */
748
- export type Outbound = ToolCalls$Outbound;
3075
+ export namespace TwoInputAudio$ {
3076
+ /** @deprecated use `TwoInputAudio$inboundSchema` instead. */
3077
+ export const inboundSchema = TwoInputAudio$inboundSchema;
3078
+ /** @deprecated use `TwoInputAudio$outboundSchema` instead. */
3079
+ export const outboundSchema = TwoInputAudio$outboundSchema;
3080
+ /** @deprecated use `TwoInputAudio$Outbound` instead. */
3081
+ export type Outbound = TwoInputAudio$Outbound;
749
3082
  }
750
3083
 
751
- export function toolCallsToJSON(toolCalls: ToolCalls): string {
752
- return JSON.stringify(ToolCalls$outboundSchema.parse(toolCalls));
3084
+ export function twoInputAudioToJSON(twoInputAudio: TwoInputAudio): string {
3085
+ return JSON.stringify(TwoInputAudio$outboundSchema.parse(twoInputAudio));
753
3086
  }
754
3087
 
755
- export function toolCallsFromJSON(
3088
+ export function twoInputAudioFromJSON(
756
3089
  jsonString: string,
757
- ): SafeParseResult<ToolCalls, SDKValidationError> {
3090
+ ): SafeParseResult<TwoInputAudio, SDKValidationError> {
758
3091
  return safeParse(
759
3092
  jsonString,
760
- (x) => ToolCalls$inboundSchema.parse(JSON.parse(x)),
761
- `Failed to parse 'ToolCalls' from JSON`,
3093
+ (x) => TwoInputAudio$inboundSchema.parse(JSON.parse(x)),
3094
+ `Failed to parse 'TwoInputAudio' from JSON`,
762
3095
  );
763
3096
  }
764
3097
 
765
3098
  /** @internal */
766
- export const PrefixMessages$inboundSchema: z.ZodType<
767
- PrefixMessages,
3099
+ export const Deployments23$inboundSchema: z.ZodType<
3100
+ Deployments23,
768
3101
  z.ZodTypeDef,
769
3102
  unknown
770
3103
  > = z.object({
771
- role: Role$inboundSchema,
772
- content: z.union([
773
- z.string(),
774
- z.array(z.union([
775
- z.lazy(() => One$inboundSchema),
776
- z.lazy(() => Two2$inboundSchema),
777
- ])),
778
- ]),
779
- tool_calls: z.array(z.lazy(() => ToolCalls$inboundSchema)).optional(),
3104
+ type: Deployments2Messages3ContentType$inboundSchema,
3105
+ input_audio: z.lazy(() => TwoInputAudio$inboundSchema),
780
3106
  }).transform((v) => {
781
3107
  return remap$(v, {
782
- "tool_calls": "toolCalls",
3108
+ "input_audio": "inputAudio",
783
3109
  });
784
3110
  });
785
3111
 
786
3112
  /** @internal */
787
- export type PrefixMessages$Outbound = {
788
- role: string;
789
- content: string | Array<One$Outbound | Two2$Outbound>;
790
- tool_calls?: Array<ToolCalls$Outbound> | undefined;
3113
+ export type Deployments23$Outbound = {
3114
+ type: string;
3115
+ input_audio: TwoInputAudio$Outbound;
791
3116
  };
792
3117
 
793
3118
  /** @internal */
794
- export const PrefixMessages$outboundSchema: z.ZodType<
795
- PrefixMessages$Outbound,
3119
+ export const Deployments23$outboundSchema: z.ZodType<
3120
+ Deployments23$Outbound,
796
3121
  z.ZodTypeDef,
797
- PrefixMessages
3122
+ Deployments23
798
3123
  > = z.object({
799
- role: Role$outboundSchema,
800
- content: z.union([
801
- z.string(),
802
- z.array(z.union([
803
- z.lazy(() => One$outboundSchema),
804
- z.lazy(() => Two2$outboundSchema),
805
- ])),
806
- ]),
807
- toolCalls: z.array(z.lazy(() => ToolCalls$outboundSchema)).optional(),
3124
+ type: Deployments2Messages3ContentType$outboundSchema,
3125
+ inputAudio: z.lazy(() => TwoInputAudio$outboundSchema),
808
3126
  }).transform((v) => {
809
3127
  return remap$(v, {
810
- toolCalls: "tool_calls",
3128
+ inputAudio: "input_audio",
811
3129
  });
812
3130
  });
813
3131
 
@@ -815,69 +3133,67 @@ export const PrefixMessages$outboundSchema: z.ZodType<
815
3133
  * @internal
816
3134
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
817
3135
  */
818
- export namespace PrefixMessages$ {
819
- /** @deprecated use `PrefixMessages$inboundSchema` instead. */
820
- export const inboundSchema = PrefixMessages$inboundSchema;
821
- /** @deprecated use `PrefixMessages$outboundSchema` instead. */
822
- export const outboundSchema = PrefixMessages$outboundSchema;
823
- /** @deprecated use `PrefixMessages$Outbound` instead. */
824
- export type Outbound = PrefixMessages$Outbound;
3136
+ export namespace Deployments23$ {
3137
+ /** @deprecated use `Deployments23$inboundSchema` instead. */
3138
+ export const inboundSchema = Deployments23$inboundSchema;
3139
+ /** @deprecated use `Deployments23$outboundSchema` instead. */
3140
+ export const outboundSchema = Deployments23$outboundSchema;
3141
+ /** @deprecated use `Deployments23$Outbound` instead. */
3142
+ export type Outbound = Deployments23$Outbound;
825
3143
  }
826
3144
 
827
- export function prefixMessagesToJSON(prefixMessages: PrefixMessages): string {
828
- return JSON.stringify(PrefixMessages$outboundSchema.parse(prefixMessages));
3145
+ export function deployments23ToJSON(deployments23: Deployments23): string {
3146
+ return JSON.stringify(Deployments23$outboundSchema.parse(deployments23));
829
3147
  }
830
3148
 
831
- export function prefixMessagesFromJSON(
3149
+ export function deployments23FromJSON(
832
3150
  jsonString: string,
833
- ): SafeParseResult<PrefixMessages, SDKValidationError> {
3151
+ ): SafeParseResult<Deployments23, SDKValidationError> {
834
3152
  return safeParse(
835
3153
  jsonString,
836
- (x) => PrefixMessages$inboundSchema.parse(JSON.parse(x)),
837
- `Failed to parse 'PrefixMessages' from JSON`,
3154
+ (x) => Deployments23$inboundSchema.parse(JSON.parse(x)),
3155
+ `Failed to parse 'Deployments23' from JSON`,
838
3156
  );
839
3157
  }
840
3158
 
841
3159
  /** @internal */
842
- export const DeploymentsRole$inboundSchema: z.ZodNativeEnum<
843
- typeof DeploymentsRole
844
- > = z.nativeEnum(DeploymentsRole);
3160
+ export const Deployments2Messages3Type$inboundSchema: z.ZodNativeEnum<
3161
+ typeof Deployments2Messages3Type
3162
+ > = z.nativeEnum(Deployments2Messages3Type);
845
3163
 
846
3164
  /** @internal */
847
- export const DeploymentsRole$outboundSchema: z.ZodNativeEnum<
848
- typeof DeploymentsRole
849
- > = DeploymentsRole$inboundSchema;
3165
+ export const Deployments2Messages3Type$outboundSchema: z.ZodNativeEnum<
3166
+ typeof Deployments2Messages3Type
3167
+ > = Deployments2Messages3Type$inboundSchema;
850
3168
 
851
3169
  /**
852
3170
  * @internal
853
3171
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
854
3172
  */
855
- export namespace DeploymentsRole$ {
856
- /** @deprecated use `DeploymentsRole$inboundSchema` instead. */
857
- export const inboundSchema = DeploymentsRole$inboundSchema;
858
- /** @deprecated use `DeploymentsRole$outboundSchema` instead. */
859
- export const outboundSchema = DeploymentsRole$outboundSchema;
3173
+ export namespace Deployments2Messages3Type$ {
3174
+ /** @deprecated use `Deployments2Messages3Type$inboundSchema` instead. */
3175
+ export const inboundSchema = Deployments2Messages3Type$inboundSchema;
3176
+ /** @deprecated use `Deployments2Messages3Type$outboundSchema` instead. */
3177
+ export const outboundSchema = Deployments2Messages3Type$outboundSchema;
860
3178
  }
861
3179
 
862
3180
  /** @internal */
863
- export const Deployments2MessagesContentType$inboundSchema: z.ZodNativeEnum<
864
- typeof Deployments2MessagesContentType
865
- > = z.nativeEnum(Deployments2MessagesContentType);
3181
+ export const TwoDetail$inboundSchema: z.ZodNativeEnum<typeof TwoDetail> = z
3182
+ .nativeEnum(TwoDetail);
866
3183
 
867
3184
  /** @internal */
868
- export const Deployments2MessagesContentType$outboundSchema: z.ZodNativeEnum<
869
- typeof Deployments2MessagesContentType
870
- > = Deployments2MessagesContentType$inboundSchema;
3185
+ export const TwoDetail$outboundSchema: z.ZodNativeEnum<typeof TwoDetail> =
3186
+ TwoDetail$inboundSchema;
871
3187
 
872
3188
  /**
873
3189
  * @internal
874
3190
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
875
3191
  */
876
- export namespace Deployments2MessagesContentType$ {
877
- /** @deprecated use `Deployments2MessagesContentType$inboundSchema` instead. */
878
- export const inboundSchema = Deployments2MessagesContentType$inboundSchema;
879
- /** @deprecated use `Deployments2MessagesContentType$outboundSchema` instead. */
880
- export const outboundSchema = Deployments2MessagesContentType$outboundSchema;
3192
+ export namespace TwoDetail$ {
3193
+ /** @deprecated use `TwoDetail$inboundSchema` instead. */
3194
+ export const inboundSchema = TwoDetail$inboundSchema;
3195
+ /** @deprecated use `TwoDetail$outboundSchema` instead. */
3196
+ export const outboundSchema = TwoDetail$outboundSchema;
881
3197
  }
882
3198
 
883
3199
  /** @internal */
@@ -887,7 +3203,7 @@ export const TwoImageUrl$inboundSchema: z.ZodType<
887
3203
  unknown
888
3204
  > = z.object({
889
3205
  url: z.string(),
890
- detail: z.string().optional(),
3206
+ detail: TwoDetail$inboundSchema.optional(),
891
3207
  });
892
3208
 
893
3209
  /** @internal */
@@ -903,7 +3219,7 @@ export const TwoImageUrl$outboundSchema: z.ZodType<
903
3219
  TwoImageUrl
904
3220
  > = z.object({
905
3221
  url: z.string(),
906
- detail: z.string().optional(),
3222
+ detail: TwoDetail$outboundSchema.optional(),
907
3223
  });
908
3224
 
909
3225
  /**
@@ -934,12 +3250,12 @@ export function twoImageUrlFromJSON(
934
3250
  }
935
3251
 
936
3252
  /** @internal */
937
- export const Deployments22$inboundSchema: z.ZodType<
938
- Deployments22,
3253
+ export const Deployments2Messages2$inboundSchema: z.ZodType<
3254
+ Deployments2Messages2,
939
3255
  z.ZodTypeDef,
940
3256
  unknown
941
3257
  > = z.object({
942
- type: Deployments2MessagesContentType$inboundSchema,
3258
+ type: Deployments2Messages3Type$inboundSchema,
943
3259
  image_url: z.lazy(() => TwoImageUrl$inboundSchema),
944
3260
  }).transform((v) => {
945
3261
  return remap$(v, {
@@ -948,18 +3264,18 @@ export const Deployments22$inboundSchema: z.ZodType<
948
3264
  });
949
3265
 
950
3266
  /** @internal */
951
- export type Deployments22$Outbound = {
3267
+ export type Deployments2Messages2$Outbound = {
952
3268
  type: string;
953
3269
  image_url: TwoImageUrl$Outbound;
954
3270
  };
955
3271
 
956
3272
  /** @internal */
957
- export const Deployments22$outboundSchema: z.ZodType<
958
- Deployments22$Outbound,
3273
+ export const Deployments2Messages2$outboundSchema: z.ZodType<
3274
+ Deployments2Messages2$Outbound,
959
3275
  z.ZodTypeDef,
960
- Deployments22
3276
+ Deployments2Messages2
961
3277
  > = z.object({
962
- type: Deployments2MessagesContentType$outboundSchema,
3278
+ type: Deployments2Messages3Type$outboundSchema,
963
3279
  imageUrl: z.lazy(() => TwoImageUrl$outboundSchema),
964
3280
  }).transform((v) => {
965
3281
  return remap$(v, {
@@ -971,26 +3287,30 @@ export const Deployments22$outboundSchema: z.ZodType<
971
3287
  * @internal
972
3288
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
973
3289
  */
974
- export namespace Deployments22$ {
975
- /** @deprecated use `Deployments22$inboundSchema` instead. */
976
- export const inboundSchema = Deployments22$inboundSchema;
977
- /** @deprecated use `Deployments22$outboundSchema` instead. */
978
- export const outboundSchema = Deployments22$outboundSchema;
979
- /** @deprecated use `Deployments22$Outbound` instead. */
980
- export type Outbound = Deployments22$Outbound;
3290
+ export namespace Deployments2Messages2$ {
3291
+ /** @deprecated use `Deployments2Messages2$inboundSchema` instead. */
3292
+ export const inboundSchema = Deployments2Messages2$inboundSchema;
3293
+ /** @deprecated use `Deployments2Messages2$outboundSchema` instead. */
3294
+ export const outboundSchema = Deployments2Messages2$outboundSchema;
3295
+ /** @deprecated use `Deployments2Messages2$Outbound` instead. */
3296
+ export type Outbound = Deployments2Messages2$Outbound;
981
3297
  }
982
3298
 
983
- export function deployments22ToJSON(deployments22: Deployments22): string {
984
- return JSON.stringify(Deployments22$outboundSchema.parse(deployments22));
3299
+ export function deployments2Messages2ToJSON(
3300
+ deployments2Messages2: Deployments2Messages2,
3301
+ ): string {
3302
+ return JSON.stringify(
3303
+ Deployments2Messages2$outboundSchema.parse(deployments2Messages2),
3304
+ );
985
3305
  }
986
3306
 
987
- export function deployments22FromJSON(
3307
+ export function deployments2Messages2FromJSON(
988
3308
  jsonString: string,
989
- ): SafeParseResult<Deployments22, SDKValidationError> {
3309
+ ): SafeParseResult<Deployments2Messages2, SDKValidationError> {
990
3310
  return safeParse(
991
3311
  jsonString,
992
- (x) => Deployments22$inboundSchema.parse(JSON.parse(x)),
993
- `Failed to parse 'Deployments22' from JSON`,
3312
+ (x) => Deployments2Messages2$inboundSchema.parse(JSON.parse(x)),
3313
+ `Failed to parse 'Deployments2Messages2' from JSON`,
994
3314
  );
995
3315
  }
996
3316
 
@@ -1016,130 +3336,157 @@ export namespace Deployments2MessagesType$ {
1016
3336
  }
1017
3337
 
1018
3338
  /** @internal */
1019
- export const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown> = z
1020
- .object({
1021
- type: Deployments2MessagesType$inboundSchema,
1022
- text: z.string(),
1023
- });
3339
+ export const Deployments2Messages1$inboundSchema: z.ZodType<
3340
+ Deployments2Messages1,
3341
+ z.ZodTypeDef,
3342
+ unknown
3343
+ > = z.object({
3344
+ type: Deployments2MessagesType$inboundSchema,
3345
+ text: z.string(),
3346
+ });
1024
3347
 
1025
3348
  /** @internal */
1026
- export type Two1$Outbound = {
3349
+ export type Deployments2Messages1$Outbound = {
1027
3350
  type: string;
1028
3351
  text: string;
1029
3352
  };
1030
3353
 
1031
3354
  /** @internal */
1032
- export const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1> =
1033
- z.object({
1034
- type: Deployments2MessagesType$outboundSchema,
1035
- text: z.string(),
1036
- });
3355
+ export const Deployments2Messages1$outboundSchema: z.ZodType<
3356
+ Deployments2Messages1$Outbound,
3357
+ z.ZodTypeDef,
3358
+ Deployments2Messages1
3359
+ > = z.object({
3360
+ type: Deployments2MessagesType$outboundSchema,
3361
+ text: z.string(),
3362
+ });
1037
3363
 
1038
3364
  /**
1039
3365
  * @internal
1040
3366
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1041
3367
  */
1042
- export namespace Two1$ {
1043
- /** @deprecated use `Two1$inboundSchema` instead. */
1044
- export const inboundSchema = Two1$inboundSchema;
1045
- /** @deprecated use `Two1$outboundSchema` instead. */
1046
- export const outboundSchema = Two1$outboundSchema;
1047
- /** @deprecated use `Two1$Outbound` instead. */
1048
- export type Outbound = Two1$Outbound;
3368
+ export namespace Deployments2Messages1$ {
3369
+ /** @deprecated use `Deployments2Messages1$inboundSchema` instead. */
3370
+ export const inboundSchema = Deployments2Messages1$inboundSchema;
3371
+ /** @deprecated use `Deployments2Messages1$outboundSchema` instead. */
3372
+ export const outboundSchema = Deployments2Messages1$outboundSchema;
3373
+ /** @deprecated use `Deployments2Messages1$Outbound` instead. */
3374
+ export type Outbound = Deployments2Messages1$Outbound;
1049
3375
  }
1050
3376
 
1051
- export function two1ToJSON(two1: Two1): string {
1052
- return JSON.stringify(Two1$outboundSchema.parse(two1));
3377
+ export function deployments2Messages1ToJSON(
3378
+ deployments2Messages1: Deployments2Messages1,
3379
+ ): string {
3380
+ return JSON.stringify(
3381
+ Deployments2Messages1$outboundSchema.parse(deployments2Messages1),
3382
+ );
1053
3383
  }
1054
3384
 
1055
- export function two1FromJSON(
3385
+ export function deployments2Messages1FromJSON(
1056
3386
  jsonString: string,
1057
- ): SafeParseResult<Two1, SDKValidationError> {
3387
+ ): SafeParseResult<Deployments2Messages1, SDKValidationError> {
1058
3388
  return safeParse(
1059
3389
  jsonString,
1060
- (x) => Two1$inboundSchema.parse(JSON.parse(x)),
1061
- `Failed to parse 'Two1' from JSON`,
3390
+ (x) => Deployments2Messages1$inboundSchema.parse(JSON.parse(x)),
3391
+ `Failed to parse 'Deployments2Messages1' from JSON`,
1062
3392
  );
1063
3393
  }
1064
3394
 
1065
3395
  /** @internal */
1066
- export const Content2$inboundSchema: z.ZodType<
1067
- Content2,
3396
+ export const DeploymentsContentMessages2$inboundSchema: z.ZodType<
3397
+ DeploymentsContentMessages2,
1068
3398
  z.ZodTypeDef,
1069
3399
  unknown
1070
3400
  > = z.union([
1071
- z.lazy(() => Two1$inboundSchema),
1072
- z.lazy(() => Deployments22$inboundSchema),
3401
+ z.lazy(() => Deployments2Messages1$inboundSchema),
3402
+ z.lazy(() => Deployments2Messages2$inboundSchema),
3403
+ z.lazy(() => Deployments23$inboundSchema),
1073
3404
  ]);
1074
3405
 
1075
3406
  /** @internal */
1076
- export type Content2$Outbound = Two1$Outbound | Deployments22$Outbound;
3407
+ export type DeploymentsContentMessages2$Outbound =
3408
+ | Deployments2Messages1$Outbound
3409
+ | Deployments2Messages2$Outbound
3410
+ | Deployments23$Outbound;
1077
3411
 
1078
3412
  /** @internal */
1079
- export const Content2$outboundSchema: z.ZodType<
1080
- Content2$Outbound,
3413
+ export const DeploymentsContentMessages2$outboundSchema: z.ZodType<
3414
+ DeploymentsContentMessages2$Outbound,
1081
3415
  z.ZodTypeDef,
1082
- Content2
3416
+ DeploymentsContentMessages2
1083
3417
  > = z.union([
1084
- z.lazy(() => Two1$outboundSchema),
1085
- z.lazy(() => Deployments22$outboundSchema),
3418
+ z.lazy(() => Deployments2Messages1$outboundSchema),
3419
+ z.lazy(() => Deployments2Messages2$outboundSchema),
3420
+ z.lazy(() => Deployments23$outboundSchema),
1086
3421
  ]);
1087
3422
 
1088
3423
  /**
1089
3424
  * @internal
1090
3425
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1091
3426
  */
1092
- export namespace Content2$ {
1093
- /** @deprecated use `Content2$inboundSchema` instead. */
1094
- export const inboundSchema = Content2$inboundSchema;
1095
- /** @deprecated use `Content2$outboundSchema` instead. */
1096
- export const outboundSchema = Content2$outboundSchema;
1097
- /** @deprecated use `Content2$Outbound` instead. */
1098
- export type Outbound = Content2$Outbound;
3427
+ export namespace DeploymentsContentMessages2$ {
3428
+ /** @deprecated use `DeploymentsContentMessages2$inboundSchema` instead. */
3429
+ export const inboundSchema = DeploymentsContentMessages2$inboundSchema;
3430
+ /** @deprecated use `DeploymentsContentMessages2$outboundSchema` instead. */
3431
+ export const outboundSchema = DeploymentsContentMessages2$outboundSchema;
3432
+ /** @deprecated use `DeploymentsContentMessages2$Outbound` instead. */
3433
+ export type Outbound = DeploymentsContentMessages2$Outbound;
1099
3434
  }
1100
3435
 
1101
- export function content2ToJSON(content2: Content2): string {
1102
- return JSON.stringify(Content2$outboundSchema.parse(content2));
3436
+ export function deploymentsContentMessages2ToJSON(
3437
+ deploymentsContentMessages2: DeploymentsContentMessages2,
3438
+ ): string {
3439
+ return JSON.stringify(
3440
+ DeploymentsContentMessages2$outboundSchema.parse(
3441
+ deploymentsContentMessages2,
3442
+ ),
3443
+ );
1103
3444
  }
1104
3445
 
1105
- export function content2FromJSON(
3446
+ export function deploymentsContentMessages2FromJSON(
1106
3447
  jsonString: string,
1107
- ): SafeParseResult<Content2, SDKValidationError> {
3448
+ ): SafeParseResult<DeploymentsContentMessages2, SDKValidationError> {
1108
3449
  return safeParse(
1109
3450
  jsonString,
1110
- (x) => Content2$inboundSchema.parse(JSON.parse(x)),
1111
- `Failed to parse 'Content2' from JSON`,
3451
+ (x) => DeploymentsContentMessages2$inboundSchema.parse(JSON.parse(x)),
3452
+ `Failed to parse 'DeploymentsContentMessages2' from JSON`,
1112
3453
  );
1113
3454
  }
1114
3455
 
1115
3456
  /** @internal */
1116
- export const DeploymentsContent$inboundSchema: z.ZodType<
1117
- DeploymentsContent,
3457
+ export const MessagesContent$inboundSchema: z.ZodType<
3458
+ MessagesContent,
1118
3459
  z.ZodTypeDef,
1119
3460
  unknown
1120
3461
  > = z.union([
1121
3462
  z.string(),
1122
3463
  z.array(z.union([
1123
- z.lazy(() => Two1$inboundSchema),
1124
- z.lazy(() => Deployments22$inboundSchema),
3464
+ z.lazy(() => Deployments2Messages1$inboundSchema),
3465
+ z.lazy(() => Deployments2Messages2$inboundSchema),
3466
+ z.lazy(() => Deployments23$inboundSchema),
1125
3467
  ])),
1126
3468
  ]);
1127
3469
 
1128
3470
  /** @internal */
1129
- export type DeploymentsContent$Outbound =
3471
+ export type MessagesContent$Outbound =
1130
3472
  | string
1131
- | Array<Two1$Outbound | Deployments22$Outbound>;
3473
+ | Array<
3474
+ | Deployments2Messages1$Outbound
3475
+ | Deployments2Messages2$Outbound
3476
+ | Deployments23$Outbound
3477
+ >;
1132
3478
 
1133
3479
  /** @internal */
1134
- export const DeploymentsContent$outboundSchema: z.ZodType<
1135
- DeploymentsContent$Outbound,
3480
+ export const MessagesContent$outboundSchema: z.ZodType<
3481
+ MessagesContent$Outbound,
1136
3482
  z.ZodTypeDef,
1137
- DeploymentsContent
3483
+ MessagesContent
1138
3484
  > = z.union([
1139
3485
  z.string(),
1140
3486
  z.array(z.union([
1141
- z.lazy(() => Two1$outboundSchema),
1142
- z.lazy(() => Deployments22$outboundSchema),
3487
+ z.lazy(() => Deployments2Messages1$outboundSchema),
3488
+ z.lazy(() => Deployments2Messages2$outboundSchema),
3489
+ z.lazy(() => Deployments23$outboundSchema),
1143
3490
  ])),
1144
3491
  ]);
1145
3492
 
@@ -1147,171 +3494,256 @@ export const DeploymentsContent$outboundSchema: z.ZodType<
1147
3494
  * @internal
1148
3495
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1149
3496
  */
1150
- export namespace DeploymentsContent$ {
1151
- /** @deprecated use `DeploymentsContent$inboundSchema` instead. */
1152
- export const inboundSchema = DeploymentsContent$inboundSchema;
1153
- /** @deprecated use `DeploymentsContent$outboundSchema` instead. */
1154
- export const outboundSchema = DeploymentsContent$outboundSchema;
1155
- /** @deprecated use `DeploymentsContent$Outbound` instead. */
1156
- export type Outbound = DeploymentsContent$Outbound;
3497
+ export namespace MessagesContent$ {
3498
+ /** @deprecated use `MessagesContent$inboundSchema` instead. */
3499
+ export const inboundSchema = MessagesContent$inboundSchema;
3500
+ /** @deprecated use `MessagesContent$outboundSchema` instead. */
3501
+ export const outboundSchema = MessagesContent$outboundSchema;
3502
+ /** @deprecated use `MessagesContent$Outbound` instead. */
3503
+ export type Outbound = MessagesContent$Outbound;
1157
3504
  }
1158
3505
 
1159
- export function deploymentsContentToJSON(
1160
- deploymentsContent: DeploymentsContent,
3506
+ export function messagesContentToJSON(
3507
+ messagesContent: MessagesContent,
1161
3508
  ): string {
1162
- return JSON.stringify(
1163
- DeploymentsContent$outboundSchema.parse(deploymentsContent),
3509
+ return JSON.stringify(MessagesContent$outboundSchema.parse(messagesContent));
3510
+ }
3511
+
3512
+ export function messagesContentFromJSON(
3513
+ jsonString: string,
3514
+ ): SafeParseResult<MessagesContent, SDKValidationError> {
3515
+ return safeParse(
3516
+ jsonString,
3517
+ (x) => MessagesContent$inboundSchema.parse(JSON.parse(x)),
3518
+ `Failed to parse 'MessagesContent' from JSON`,
1164
3519
  );
1165
3520
  }
1166
3521
 
1167
- export function deploymentsContentFromJSON(
3522
+ /** @internal */
3523
+ export const Messages3$inboundSchema: z.ZodType<
3524
+ Messages3,
3525
+ z.ZodTypeDef,
3526
+ unknown
3527
+ > = z.object({
3528
+ role: DeploymentsMessages3Role$inboundSchema,
3529
+ name: z.string().optional(),
3530
+ content: z.union([
3531
+ z.string(),
3532
+ z.array(z.union([
3533
+ z.lazy(() => Deployments2Messages1$inboundSchema),
3534
+ z.lazy(() => Deployments2Messages2$inboundSchema),
3535
+ z.lazy(() => Deployments23$inboundSchema),
3536
+ ])),
3537
+ ]),
3538
+ });
3539
+
3540
+ /** @internal */
3541
+ export type Messages3$Outbound = {
3542
+ role: string;
3543
+ name?: string | undefined;
3544
+ content:
3545
+ | string
3546
+ | Array<
3547
+ | Deployments2Messages1$Outbound
3548
+ | Deployments2Messages2$Outbound
3549
+ | Deployments23$Outbound
3550
+ >;
3551
+ };
3552
+
3553
+ /** @internal */
3554
+ export const Messages3$outboundSchema: z.ZodType<
3555
+ Messages3$Outbound,
3556
+ z.ZodTypeDef,
3557
+ Messages3
3558
+ > = z.object({
3559
+ role: DeploymentsMessages3Role$outboundSchema,
3560
+ name: z.string().optional(),
3561
+ content: z.union([
3562
+ z.string(),
3563
+ z.array(z.union([
3564
+ z.lazy(() => Deployments2Messages1$outboundSchema),
3565
+ z.lazy(() => Deployments2Messages2$outboundSchema),
3566
+ z.lazy(() => Deployments23$outboundSchema),
3567
+ ])),
3568
+ ]),
3569
+ });
3570
+
3571
+ /**
3572
+ * @internal
3573
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3574
+ */
3575
+ export namespace Messages3$ {
3576
+ /** @deprecated use `Messages3$inboundSchema` instead. */
3577
+ export const inboundSchema = Messages3$inboundSchema;
3578
+ /** @deprecated use `Messages3$outboundSchema` instead. */
3579
+ export const outboundSchema = Messages3$outboundSchema;
3580
+ /** @deprecated use `Messages3$Outbound` instead. */
3581
+ export type Outbound = Messages3$Outbound;
3582
+ }
3583
+
3584
+ export function messages3ToJSON(messages3: Messages3): string {
3585
+ return JSON.stringify(Messages3$outboundSchema.parse(messages3));
3586
+ }
3587
+
3588
+ export function messages3FromJSON(
1168
3589
  jsonString: string,
1169
- ): SafeParseResult<DeploymentsContent, SDKValidationError> {
3590
+ ): SafeParseResult<Messages3, SDKValidationError> {
1170
3591
  return safeParse(
1171
3592
  jsonString,
1172
- (x) => DeploymentsContent$inboundSchema.parse(JSON.parse(x)),
1173
- `Failed to parse 'DeploymentsContent' from JSON`,
3593
+ (x) => Messages3$inboundSchema.parse(JSON.parse(x)),
3594
+ `Failed to parse 'Messages3' from JSON`,
1174
3595
  );
1175
3596
  }
1176
3597
 
1177
3598
  /** @internal */
1178
- export const DeploymentsType$inboundSchema: z.ZodNativeEnum<
1179
- typeof DeploymentsType
1180
- > = z.nativeEnum(DeploymentsType);
3599
+ export const DeploymentsMessagesRole$inboundSchema: z.ZodNativeEnum<
3600
+ typeof DeploymentsMessagesRole
3601
+ > = z.nativeEnum(DeploymentsMessagesRole);
1181
3602
 
1182
3603
  /** @internal */
1183
- export const DeploymentsType$outboundSchema: z.ZodNativeEnum<
1184
- typeof DeploymentsType
1185
- > = DeploymentsType$inboundSchema;
3604
+ export const DeploymentsMessagesRole$outboundSchema: z.ZodNativeEnum<
3605
+ typeof DeploymentsMessagesRole
3606
+ > = DeploymentsMessagesRole$inboundSchema;
1186
3607
 
1187
3608
  /**
1188
3609
  * @internal
1189
3610
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1190
3611
  */
1191
- export namespace DeploymentsType$ {
1192
- /** @deprecated use `DeploymentsType$inboundSchema` instead. */
1193
- export const inboundSchema = DeploymentsType$inboundSchema;
1194
- /** @deprecated use `DeploymentsType$outboundSchema` instead. */
1195
- export const outboundSchema = DeploymentsType$outboundSchema;
3612
+ export namespace DeploymentsMessagesRole$ {
3613
+ /** @deprecated use `DeploymentsMessagesRole$inboundSchema` instead. */
3614
+ export const inboundSchema = DeploymentsMessagesRole$inboundSchema;
3615
+ /** @deprecated use `DeploymentsMessagesRole$outboundSchema` instead. */
3616
+ export const outboundSchema = DeploymentsMessagesRole$outboundSchema;
1196
3617
  }
1197
3618
 
1198
3619
  /** @internal */
1199
- export const DeploymentsFunction$inboundSchema: z.ZodType<
1200
- DeploymentsFunction,
3620
+ export const Messages2$inboundSchema: z.ZodType<
3621
+ Messages2,
1201
3622
  z.ZodTypeDef,
1202
3623
  unknown
1203
3624
  > = z.object({
1204
- name: z.string(),
1205
- arguments: z.string(),
3625
+ role: DeploymentsMessagesRole$inboundSchema,
3626
+ content: z.string(),
3627
+ name: z.string().optional(),
1206
3628
  });
1207
3629
 
1208
3630
  /** @internal */
1209
- export type DeploymentsFunction$Outbound = {
1210
- name: string;
1211
- arguments: string;
3631
+ export type Messages2$Outbound = {
3632
+ role: string;
3633
+ content: string;
3634
+ name?: string | undefined;
1212
3635
  };
1213
3636
 
1214
3637
  /** @internal */
1215
- export const DeploymentsFunction$outboundSchema: z.ZodType<
1216
- DeploymentsFunction$Outbound,
3638
+ export const Messages2$outboundSchema: z.ZodType<
3639
+ Messages2$Outbound,
1217
3640
  z.ZodTypeDef,
1218
- DeploymentsFunction
3641
+ Messages2
1219
3642
  > = z.object({
1220
- name: z.string(),
1221
- arguments: z.string(),
3643
+ role: DeploymentsMessagesRole$outboundSchema,
3644
+ content: z.string(),
3645
+ name: z.string().optional(),
1222
3646
  });
1223
3647
 
1224
3648
  /**
1225
3649
  * @internal
1226
3650
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1227
3651
  */
1228
- export namespace DeploymentsFunction$ {
1229
- /** @deprecated use `DeploymentsFunction$inboundSchema` instead. */
1230
- export const inboundSchema = DeploymentsFunction$inboundSchema;
1231
- /** @deprecated use `DeploymentsFunction$outboundSchema` instead. */
1232
- export const outboundSchema = DeploymentsFunction$outboundSchema;
1233
- /** @deprecated use `DeploymentsFunction$Outbound` instead. */
1234
- export type Outbound = DeploymentsFunction$Outbound;
3652
+ export namespace Messages2$ {
3653
+ /** @deprecated use `Messages2$inboundSchema` instead. */
3654
+ export const inboundSchema = Messages2$inboundSchema;
3655
+ /** @deprecated use `Messages2$outboundSchema` instead. */
3656
+ export const outboundSchema = Messages2$outboundSchema;
3657
+ /** @deprecated use `Messages2$Outbound` instead. */
3658
+ export type Outbound = Messages2$Outbound;
1235
3659
  }
1236
3660
 
1237
- export function deploymentsFunctionToJSON(
1238
- deploymentsFunction: DeploymentsFunction,
1239
- ): string {
1240
- return JSON.stringify(
1241
- DeploymentsFunction$outboundSchema.parse(deploymentsFunction),
1242
- );
3661
+ export function messages2ToJSON(messages2: Messages2): string {
3662
+ return JSON.stringify(Messages2$outboundSchema.parse(messages2));
1243
3663
  }
1244
3664
 
1245
- export function deploymentsFunctionFromJSON(
3665
+ export function messages2FromJSON(
1246
3666
  jsonString: string,
1247
- ): SafeParseResult<DeploymentsFunction, SDKValidationError> {
3667
+ ): SafeParseResult<Messages2, SDKValidationError> {
1248
3668
  return safeParse(
1249
3669
  jsonString,
1250
- (x) => DeploymentsFunction$inboundSchema.parse(JSON.parse(x)),
1251
- `Failed to parse 'DeploymentsFunction' from JSON`,
3670
+ (x) => Messages2$inboundSchema.parse(JSON.parse(x)),
3671
+ `Failed to parse 'Messages2' from JSON`,
1252
3672
  );
1253
3673
  }
1254
3674
 
1255
3675
  /** @internal */
1256
- export const DeploymentsToolCalls$inboundSchema: z.ZodType<
1257
- DeploymentsToolCalls,
3676
+ export const MessagesRole$inboundSchema: z.ZodNativeEnum<typeof MessagesRole> =
3677
+ z.nativeEnum(MessagesRole);
3678
+
3679
+ /** @internal */
3680
+ export const MessagesRole$outboundSchema: z.ZodNativeEnum<typeof MessagesRole> =
3681
+ MessagesRole$inboundSchema;
3682
+
3683
+ /**
3684
+ * @internal
3685
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3686
+ */
3687
+ export namespace MessagesRole$ {
3688
+ /** @deprecated use `MessagesRole$inboundSchema` instead. */
3689
+ export const inboundSchema = MessagesRole$inboundSchema;
3690
+ /** @deprecated use `MessagesRole$outboundSchema` instead. */
3691
+ export const outboundSchema = MessagesRole$outboundSchema;
3692
+ }
3693
+
3694
+ /** @internal */
3695
+ export const Messages1$inboundSchema: z.ZodType<
3696
+ Messages1,
1258
3697
  z.ZodTypeDef,
1259
3698
  unknown
1260
3699
  > = z.object({
1261
- id: z.string().optional(),
1262
- index: z.number().optional(),
1263
- type: DeploymentsType$inboundSchema,
1264
- function: z.lazy(() => DeploymentsFunction$inboundSchema),
3700
+ role: MessagesRole$inboundSchema,
3701
+ content: z.string(),
3702
+ name: z.string().optional(),
1265
3703
  });
1266
3704
 
1267
3705
  /** @internal */
1268
- export type DeploymentsToolCalls$Outbound = {
1269
- id?: string | undefined;
1270
- index?: number | undefined;
1271
- type: string;
1272
- function: DeploymentsFunction$Outbound;
3706
+ export type Messages1$Outbound = {
3707
+ role: string;
3708
+ content: string;
3709
+ name?: string | undefined;
1273
3710
  };
1274
3711
 
1275
3712
  /** @internal */
1276
- export const DeploymentsToolCalls$outboundSchema: z.ZodType<
1277
- DeploymentsToolCalls$Outbound,
3713
+ export const Messages1$outboundSchema: z.ZodType<
3714
+ Messages1$Outbound,
1278
3715
  z.ZodTypeDef,
1279
- DeploymentsToolCalls
3716
+ Messages1
1280
3717
  > = z.object({
1281
- id: z.string().optional(),
1282
- index: z.number().optional(),
1283
- type: DeploymentsType$outboundSchema,
1284
- function: z.lazy(() => DeploymentsFunction$outboundSchema),
3718
+ role: MessagesRole$outboundSchema,
3719
+ content: z.string(),
3720
+ name: z.string().optional(),
1285
3721
  });
1286
3722
 
1287
3723
  /**
1288
3724
  * @internal
1289
3725
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1290
3726
  */
1291
- export namespace DeploymentsToolCalls$ {
1292
- /** @deprecated use `DeploymentsToolCalls$inboundSchema` instead. */
1293
- export const inboundSchema = DeploymentsToolCalls$inboundSchema;
1294
- /** @deprecated use `DeploymentsToolCalls$outboundSchema` instead. */
1295
- export const outboundSchema = DeploymentsToolCalls$outboundSchema;
1296
- /** @deprecated use `DeploymentsToolCalls$Outbound` instead. */
1297
- export type Outbound = DeploymentsToolCalls$Outbound;
3727
+ export namespace Messages1$ {
3728
+ /** @deprecated use `Messages1$inboundSchema` instead. */
3729
+ export const inboundSchema = Messages1$inboundSchema;
3730
+ /** @deprecated use `Messages1$outboundSchema` instead. */
3731
+ export const outboundSchema = Messages1$outboundSchema;
3732
+ /** @deprecated use `Messages1$Outbound` instead. */
3733
+ export type Outbound = Messages1$Outbound;
1298
3734
  }
1299
3735
 
1300
- export function deploymentsToolCallsToJSON(
1301
- deploymentsToolCalls: DeploymentsToolCalls,
1302
- ): string {
1303
- return JSON.stringify(
1304
- DeploymentsToolCalls$outboundSchema.parse(deploymentsToolCalls),
1305
- );
3736
+ export function messages1ToJSON(messages1: Messages1): string {
3737
+ return JSON.stringify(Messages1$outboundSchema.parse(messages1));
1306
3738
  }
1307
3739
 
1308
- export function deploymentsToolCallsFromJSON(
3740
+ export function messages1FromJSON(
1309
3741
  jsonString: string,
1310
- ): SafeParseResult<DeploymentsToolCalls, SDKValidationError> {
3742
+ ): SafeParseResult<Messages1, SDKValidationError> {
1311
3743
  return safeParse(
1312
3744
  jsonString,
1313
- (x) => DeploymentsToolCalls$inboundSchema.parse(JSON.parse(x)),
1314
- `Failed to parse 'DeploymentsToolCalls' from JSON`,
3745
+ (x) => Messages1$inboundSchema.parse(JSON.parse(x)),
3746
+ `Failed to parse 'Messages1' from JSON`,
1315
3747
  );
1316
3748
  }
1317
3749
 
@@ -1320,51 +3752,34 @@ export const Messages$inboundSchema: z.ZodType<
1320
3752
  Messages,
1321
3753
  z.ZodTypeDef,
1322
3754
  unknown
1323
- > = z.object({
1324
- role: DeploymentsRole$inboundSchema,
1325
- content: z.union([
1326
- z.string(),
1327
- z.array(z.union([
1328
- z.lazy(() => Two1$inboundSchema),
1329
- z.lazy(() => Deployments22$inboundSchema),
1330
- ])),
1331
- ]),
1332
- tool_calls: z.array(z.lazy(() => DeploymentsToolCalls$inboundSchema))
1333
- .optional(),
1334
- }).transform((v) => {
1335
- return remap$(v, {
1336
- "tool_calls": "toolCalls",
1337
- });
1338
- });
3755
+ > = z.union([
3756
+ z.lazy(() => Messages1$inboundSchema),
3757
+ z.lazy(() => Messages2$inboundSchema),
3758
+ z.lazy(() => Messages3$inboundSchema),
3759
+ z.lazy(() => Messages5$inboundSchema),
3760
+ z.lazy(() => Messages4$inboundSchema),
3761
+ ]);
1339
3762
 
1340
3763
  /** @internal */
1341
- export type Messages$Outbound = {
1342
- role: string;
1343
- content: string | Array<Two1$Outbound | Deployments22$Outbound>;
1344
- tool_calls?: Array<DeploymentsToolCalls$Outbound> | undefined;
1345
- };
3764
+ export type Messages$Outbound =
3765
+ | Messages1$Outbound
3766
+ | Messages2$Outbound
3767
+ | Messages3$Outbound
3768
+ | Messages5$Outbound
3769
+ | Messages4$Outbound;
1346
3770
 
1347
3771
  /** @internal */
1348
3772
  export const Messages$outboundSchema: z.ZodType<
1349
3773
  Messages$Outbound,
1350
3774
  z.ZodTypeDef,
1351
3775
  Messages
1352
- > = z.object({
1353
- role: DeploymentsRole$outboundSchema,
1354
- content: z.union([
1355
- z.string(),
1356
- z.array(z.union([
1357
- z.lazy(() => Two1$outboundSchema),
1358
- z.lazy(() => Deployments22$outboundSchema),
1359
- ])),
1360
- ]),
1361
- toolCalls: z.array(z.lazy(() => DeploymentsToolCalls$outboundSchema))
1362
- .optional(),
1363
- }).transform((v) => {
1364
- return remap$(v, {
1365
- toolCalls: "tool_calls",
1366
- });
1367
- });
3776
+ > = z.union([
3777
+ z.lazy(() => Messages1$outboundSchema),
3778
+ z.lazy(() => Messages2$outboundSchema),
3779
+ z.lazy(() => Messages3$outboundSchema),
3780
+ z.lazy(() => Messages5$outboundSchema),
3781
+ z.lazy(() => Messages4$outboundSchema),
3782
+ ]);
1368
3783
 
1369
3784
  /**
1370
3785
  * @internal
@@ -1581,9 +3996,24 @@ export const Deployments$inboundSchema: z.ZodType<
1581
3996
  key: z.string(),
1582
3997
  inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
1583
3998
  context: z.record(z.any()).optional(),
1584
- prefix_messages: z.array(z.lazy(() => PrefixMessages$inboundSchema))
1585
- .optional(),
1586
- messages: z.array(z.lazy(() => Messages$inboundSchema)).optional(),
3999
+ prefix_messages: z.array(
4000
+ z.union([
4001
+ z.lazy(() => One$inboundSchema),
4002
+ z.lazy(() => Two$inboundSchema),
4003
+ z.lazy(() => Three$inboundSchema),
4004
+ z.lazy(() => Five$inboundSchema),
4005
+ z.lazy(() => Four$inboundSchema),
4006
+ ]),
4007
+ ).optional(),
4008
+ messages: z.array(
4009
+ z.union([
4010
+ z.lazy(() => Messages1$inboundSchema),
4011
+ z.lazy(() => Messages2$inboundSchema),
4012
+ z.lazy(() => Messages3$inboundSchema),
4013
+ z.lazy(() => Messages5$inboundSchema),
4014
+ z.lazy(() => Messages4$inboundSchema),
4015
+ ]),
4016
+ ).optional(),
1587
4017
  file_ids: z.array(z.string()).optional(),
1588
4018
  metadata: z.record(z.any()).optional(),
1589
4019
  extra_params: z.record(z.any()).optional(),
@@ -1603,8 +4033,24 @@ export type Deployments$Outbound = {
1603
4033
  key: string;
1604
4034
  inputs?: { [k: string]: string | number | boolean } | undefined;
1605
4035
  context?: { [k: string]: any } | undefined;
1606
- prefix_messages?: Array<PrefixMessages$Outbound> | undefined;
1607
- messages?: Array<Messages$Outbound> | undefined;
4036
+ prefix_messages?:
4037
+ | Array<
4038
+ | One$Outbound
4039
+ | Two$Outbound
4040
+ | Three$Outbound
4041
+ | Five$Outbound
4042
+ | Four$Outbound
4043
+ >
4044
+ | undefined;
4045
+ messages?:
4046
+ | Array<
4047
+ | Messages1$Outbound
4048
+ | Messages2$Outbound
4049
+ | Messages3$Outbound
4050
+ | Messages5$Outbound
4051
+ | Messages4$Outbound
4052
+ >
4053
+ | undefined;
1608
4054
  file_ids?: Array<string> | undefined;
1609
4055
  metadata?: { [k: string]: any } | undefined;
1610
4056
  extra_params?: { [k: string]: any } | undefined;
@@ -1621,9 +4067,24 @@ export const Deployments$outboundSchema: z.ZodType<
1621
4067
  key: z.string(),
1622
4068
  inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
1623
4069
  context: z.record(z.any()).optional(),
1624
- prefixMessages: z.array(z.lazy(() => PrefixMessages$outboundSchema))
1625
- .optional(),
1626
- messages: z.array(z.lazy(() => Messages$outboundSchema)).optional(),
4070
+ prefixMessages: z.array(
4071
+ z.union([
4072
+ z.lazy(() => One$outboundSchema),
4073
+ z.lazy(() => Two$outboundSchema),
4074
+ z.lazy(() => Three$outboundSchema),
4075
+ z.lazy(() => Five$outboundSchema),
4076
+ z.lazy(() => Four$outboundSchema),
4077
+ ]),
4078
+ ).optional(),
4079
+ messages: z.array(
4080
+ z.union([
4081
+ z.lazy(() => Messages1$outboundSchema),
4082
+ z.lazy(() => Messages2$outboundSchema),
4083
+ z.lazy(() => Messages3$outboundSchema),
4084
+ z.lazy(() => Messages5$outboundSchema),
4085
+ z.lazy(() => Messages4$outboundSchema),
4086
+ ]),
4087
+ ).optional(),
1627
4088
  fileIds: z.array(z.string()).optional(),
1628
4089
  metadata: z.record(z.any()).optional(),
1629
4090
  extraParams: z.record(z.any()).optional(),