@orq-ai/node 4.1.0-rc.34 → 4.1.0-rc.35

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 (461) hide show
  1. package/README.md +42 -18
  2. package/bin/mcp-server.js +4959 -5404
  3. package/bin/mcp-server.js.map +126 -82
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/agentsResponsesCreate.d.ts +7 -1
  6. package/funcs/agentsResponsesCreate.d.ts.map +1 -1
  7. package/funcs/agentsResponsesCreate.js +9 -2
  8. package/funcs/agentsResponsesCreate.js.map +1 -1
  9. package/funcs/budgetsCreate.d.ts +1 -1
  10. package/funcs/budgetsCreate.js +1 -1
  11. package/funcs/contactsList.js +1 -0
  12. package/funcs/contactsList.js.map +1 -1
  13. package/funcs/conversationsCreate.d.ts +17 -0
  14. package/funcs/conversationsCreate.d.ts.map +1 -0
  15. package/funcs/conversationsCreate.js +114 -0
  16. package/funcs/conversationsCreate.js.map +1 -0
  17. package/funcs/conversationsDelete.d.ts +17 -0
  18. package/funcs/conversationsDelete.d.ts.map +1 -0
  19. package/funcs/conversationsDelete.js +127 -0
  20. package/funcs/conversationsDelete.js.map +1 -0
  21. package/funcs/conversationsGenerateName.d.ts +18 -0
  22. package/funcs/conversationsGenerateName.d.ts.map +1 -0
  23. package/funcs/conversationsGenerateName.js +128 -0
  24. package/funcs/conversationsGenerateName.js.map +1 -0
  25. package/funcs/conversationsList.d.ts +17 -0
  26. package/funcs/conversationsList.d.ts.map +1 -0
  27. package/funcs/conversationsList.js +124 -0
  28. package/funcs/conversationsList.js.map +1 -0
  29. package/funcs/conversationsRetrieve.d.ts +18 -0
  30. package/funcs/conversationsRetrieve.d.ts.map +1 -0
  31. package/funcs/conversationsRetrieve.js +126 -0
  32. package/funcs/conversationsRetrieve.js.map +1 -0
  33. package/funcs/conversationsUpdate.d.ts +18 -0
  34. package/funcs/conversationsUpdate.d.ts.map +1 -0
  35. package/funcs/conversationsUpdate.js +128 -0
  36. package/funcs/conversationsUpdate.js.map +1 -0
  37. package/funcs/evalsInvoke.d.ts +15 -0
  38. package/funcs/evalsInvoke.d.ts.map +1 -0
  39. package/funcs/evalsInvoke.js +121 -0
  40. package/funcs/evalsInvoke.js.map +1 -0
  41. package/funcs/memoryStoresListDocuments.js +2 -0
  42. package/funcs/memoryStoresListDocuments.js.map +1 -1
  43. package/funcs/memoryStoresListMemories.js +1 -0
  44. package/funcs/memoryStoresListMemories.js.map +1 -1
  45. package/jsr.json +1 -1
  46. package/lib/config.d.ts +3 -3
  47. package/lib/config.js +3 -3
  48. package/mcp-server/mcp-server.js +1 -1
  49. package/mcp-server/server.d.ts.map +1 -1
  50. package/mcp-server/server.js +15 -1
  51. package/mcp-server/server.js.map +1 -1
  52. package/mcp-server/tools/budgetsCreate.js +1 -1
  53. package/mcp-server/tools/budgetsCreate.js.map +1 -1
  54. package/mcp-server/tools/conversationsCreate.d.ts +8 -0
  55. package/mcp-server/tools/conversationsCreate.d.ts.map +1 -0
  56. package/mcp-server/tools/conversationsCreate.js +64 -0
  57. package/mcp-server/tools/conversationsCreate.js.map +1 -0
  58. package/mcp-server/tools/conversationsDelete.d.ts +8 -0
  59. package/mcp-server/tools/conversationsDelete.d.ts.map +1 -0
  60. package/mcp-server/tools/conversationsDelete.js +63 -0
  61. package/mcp-server/tools/conversationsDelete.js.map +1 -0
  62. package/mcp-server/tools/conversationsGenerateName.d.ts +10 -0
  63. package/mcp-server/tools/conversationsGenerateName.d.ts.map +1 -0
  64. package/mcp-server/tools/conversationsGenerateName.js +66 -0
  65. package/mcp-server/tools/conversationsGenerateName.js.map +1 -0
  66. package/mcp-server/tools/conversationsList.d.ts +10 -0
  67. package/mcp-server/tools/conversationsList.d.ts.map +1 -0
  68. package/mcp-server/tools/conversationsList.js +66 -0
  69. package/mcp-server/tools/conversationsList.js.map +1 -0
  70. package/mcp-server/tools/conversationsRetrieve.d.ts +8 -0
  71. package/mcp-server/tools/conversationsRetrieve.d.ts.map +1 -0
  72. package/mcp-server/tools/conversationsRetrieve.js +64 -0
  73. package/mcp-server/tools/conversationsRetrieve.js.map +1 -0
  74. package/mcp-server/tools/conversationsUpdate.d.ts +10 -0
  75. package/mcp-server/tools/conversationsUpdate.d.ts.map +1 -0
  76. package/mcp-server/tools/conversationsUpdate.js +66 -0
  77. package/mcp-server/tools/conversationsUpdate.js.map +1 -0
  78. package/mcp-server/tools/evalsInvoke.d.ts +8 -0
  79. package/mcp-server/tools/evalsInvoke.d.ts.map +1 -0
  80. package/mcp-server/tools/evalsInvoke.js +62 -0
  81. package/mcp-server/tools/evalsInvoke.js.map +1 -0
  82. package/models/components/agentexecutionstartedstreamingevent.d.ts +8 -8
  83. package/models/components/agentexecutionstartedstreamingevent.d.ts.map +1 -1
  84. package/models/components/agentexecutionstartedstreamingevent.js +11 -12
  85. package/models/components/agentexecutionstartedstreamingevent.js.map +1 -1
  86. package/models/components/agentinactivestreamingevent.d.ts +21 -21
  87. package/models/components/agentinactivestreamingevent.d.ts.map +1 -1
  88. package/models/components/agentinactivestreamingevent.js +27 -28
  89. package/models/components/agentinactivestreamingevent.js.map +1 -1
  90. package/models/components/agentresponsemessage.d.ts +56 -0
  91. package/models/components/agentresponsemessage.d.ts.map +1 -0
  92. package/models/components/agentresponsemessage.js +116 -0
  93. package/models/components/agentresponsemessage.js.map +1 -0
  94. package/models/components/agentstartedstreamingevent.d.ts +6 -6
  95. package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
  96. package/models/components/agentstartedstreamingevent.js +11 -12
  97. package/models/components/agentstartedstreamingevent.js.map +1 -1
  98. package/models/components/agentthoughtstreamingevent.d.ts +26 -24
  99. package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
  100. package/models/components/agentthoughtstreamingevent.js +34 -32
  101. package/models/components/agentthoughtstreamingevent.js.map +1 -1
  102. package/models/components/conversationresponse.d.ts +39 -5
  103. package/models/components/conversationresponse.d.ts.map +1 -1
  104. package/models/components/conversationresponse.js +52 -8
  105. package/models/components/conversationresponse.js.map +1 -1
  106. package/models/components/createagentresponse.d.ts +124 -0
  107. package/models/components/createagentresponse.d.ts.map +1 -0
  108. package/models/components/createagentresponse.js +191 -0
  109. package/models/components/createagentresponse.js.map +1 -0
  110. package/models/components/imagecontentpartschema.d.ts +18 -18
  111. package/models/components/imagecontentpartschema.d.ts.map +1 -1
  112. package/models/components/imagecontentpartschema.js +23 -21
  113. package/models/components/imagecontentpartschema.js.map +1 -1
  114. package/models/components/index.d.ts +18 -0
  115. package/models/components/index.d.ts.map +1 -1
  116. package/models/components/index.js +18 -0
  117. package/models/components/index.js.map +1 -1
  118. package/models/components/invokedeploymentrequest.d.ts +161 -1040
  119. package/models/components/invokedeploymentrequest.d.ts.map +1 -1
  120. package/models/components/invokedeploymentrequest.js +161 -1015
  121. package/models/components/invokedeploymentrequest.js.map +1 -1
  122. package/models/components/partdoneevent.js +2 -2
  123. package/models/components/reasoningpart.js +2 -2
  124. package/models/components/responsedoneevent.d.ts +24 -24
  125. package/models/components/responsedoneevent.d.ts.map +1 -1
  126. package/models/components/responsedoneevent.js +31 -32
  127. package/models/components/responsedoneevent.js.map +1 -1
  128. package/models/components/toolexecutionfailedstreamingevent.d.ts +2 -0
  129. package/models/components/toolexecutionfailedstreamingevent.d.ts.map +1 -1
  130. package/models/components/toolexecutionfailedstreamingevent.js +2 -0
  131. package/models/components/toolexecutionfailedstreamingevent.js.map +1 -1
  132. package/models/components/toolexecutionfinishedstreamingevent.d.ts +2 -0
  133. package/models/components/toolexecutionfinishedstreamingevent.d.ts.map +1 -1
  134. package/models/components/toolexecutionfinishedstreamingevent.js +2 -0
  135. package/models/components/toolexecutionfinishedstreamingevent.js.map +1 -1
  136. package/models/components/toolexecutionstartedstreamingevent.d.ts +2 -0
  137. package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -1
  138. package/models/components/toolexecutionstartedstreamingevent.js +2 -0
  139. package/models/components/toolexecutionstartedstreamingevent.js.map +1 -1
  140. package/models/errors/generateconversationname.d.ts +55 -0
  141. package/models/errors/generateconversationname.d.ts.map +1 -0
  142. package/models/errors/generateconversationname.js +106 -0
  143. package/models/errors/generateconversationname.js.map +1 -0
  144. package/models/errors/index.d.ts +5 -0
  145. package/models/errors/index.d.ts.map +1 -1
  146. package/models/errors/index.js +5 -0
  147. package/models/errors/index.js.map +1 -1
  148. package/models/operations/createagentrequest.d.ts +3 -0
  149. package/models/operations/createagentrequest.d.ts.map +1 -1
  150. package/models/operations/createagentrequest.js +4 -4
  151. package/models/operations/createagentrequest.js.map +1 -1
  152. package/models/operations/createagentresponserequest.d.ts +37 -147
  153. package/models/operations/createagentresponserequest.d.ts.map +1 -1
  154. package/models/operations/createagentresponserequest.js +64 -205
  155. package/models/operations/createagentresponserequest.js.map +1 -1
  156. package/models/operations/createbudget.d.ts +69 -13
  157. package/models/operations/createbudget.d.ts.map +1 -1
  158. package/models/operations/createbudget.js +61 -12
  159. package/models/operations/createbudget.js.map +1 -1
  160. package/models/operations/createcontact.js +2 -2
  161. package/models/operations/createconversation.d.ts +62 -8
  162. package/models/operations/createconversation.d.ts.map +1 -1
  163. package/models/operations/createconversation.js +94 -10
  164. package/models/operations/createconversation.js.map +1 -1
  165. package/models/operations/createdataset.js +2 -2
  166. package/models/operations/createdatasetitem.d.ts +154 -1034
  167. package/models/operations/createdatasetitem.d.ts.map +1 -1
  168. package/models/operations/createdatasetitem.js +149 -959
  169. package/models/operations/createdatasetitem.js.map +1 -1
  170. package/models/operations/createdatasource.js +2 -2
  171. package/models/operations/createeval.js +28 -28
  172. package/models/operations/creatememory.d.ts +10 -5
  173. package/models/operations/creatememory.d.ts.map +1 -1
  174. package/models/operations/creatememory.js +6 -2
  175. package/models/operations/creatememory.js.map +1 -1
  176. package/models/operations/creatememorydocument.d.ts +4 -4
  177. package/models/operations/creatememorydocument.d.ts.map +1 -1
  178. package/models/operations/creatememorydocument.js +2 -2
  179. package/models/operations/creatememorydocument.js.map +1 -1
  180. package/models/operations/createprompt.d.ts +136 -479
  181. package/models/operations/createprompt.d.ts.map +1 -1
  182. package/models/operations/createprompt.js +158 -473
  183. package/models/operations/createprompt.js.map +1 -1
  184. package/models/operations/createtool.js +12 -12
  185. package/models/operations/deploymentcreatemetric.d.ts +154 -1034
  186. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  187. package/models/operations/deploymentcreatemetric.js +140 -975
  188. package/models/operations/deploymentcreatemetric.js.map +1 -1
  189. package/models/operations/deploymentgetconfig.d.ts +222 -1102
  190. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  191. package/models/operations/deploymentgetconfig.js +263 -1059
  192. package/models/operations/deploymentgetconfig.js.map +1 -1
  193. package/models/operations/deploymentinvoke.d.ts +27 -26
  194. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  195. package/models/operations/deploymentinvoke.js +29 -28
  196. package/models/operations/deploymentinvoke.js.map +1 -1
  197. package/models/operations/deployments.d.ts +14 -13
  198. package/models/operations/deployments.d.ts.map +1 -1
  199. package/models/operations/deployments.js +14 -13
  200. package/models/operations/deployments.js.map +1 -1
  201. package/models/operations/deploymentstream.d.ts +187 -1066
  202. package/models/operations/deploymentstream.d.ts.map +1 -1
  203. package/models/operations/deploymentstream.js +163 -989
  204. package/models/operations/deploymentstream.js.map +1 -1
  205. package/models/operations/fileget.js +2 -2
  206. package/models/operations/filelist.js +2 -2
  207. package/models/operations/fileupload.d.ts +8 -8
  208. package/models/operations/fileupload.d.ts.map +1 -1
  209. package/models/operations/fileupload.js +13 -14
  210. package/models/operations/fileupload.js.map +1 -1
  211. package/models/operations/generateconversationname.d.ts +136 -0
  212. package/models/operations/generateconversationname.d.ts.map +1 -0
  213. package/models/operations/generateconversationname.js +179 -0
  214. package/models/operations/generateconversationname.js.map +1 -0
  215. package/models/operations/getallmemories.d.ts +10 -0
  216. package/models/operations/getallmemories.d.ts.map +1 -1
  217. package/models/operations/getallmemories.js +6 -0
  218. package/models/operations/getallmemories.js.map +1 -1
  219. package/models/operations/getallmemorydocuments.d.ts +10 -0
  220. package/models/operations/getallmemorydocuments.d.ts.map +1 -1
  221. package/models/operations/getallmemorydocuments.js +8 -0
  222. package/models/operations/getallmemorydocuments.js.map +1 -1
  223. package/models/operations/getallprompts.d.ts +14 -13
  224. package/models/operations/getallprompts.d.ts.map +1 -1
  225. package/models/operations/getallprompts.js +14 -13
  226. package/models/operations/getallprompts.js.map +1 -1
  227. package/models/operations/getalltools.js +12 -12
  228. package/models/operations/getbudget.d.ts +5 -0
  229. package/models/operations/getbudget.d.ts.map +1 -1
  230. package/models/operations/getbudget.js +6 -2
  231. package/models/operations/getbudget.js.map +1 -1
  232. package/models/operations/getevals.js +28 -28
  233. package/models/operations/getoneprompt.d.ts +14 -13
  234. package/models/operations/getoneprompt.d.ts.map +1 -1
  235. package/models/operations/getoneprompt.js +14 -13
  236. package/models/operations/getoneprompt.js.map +1 -1
  237. package/models/operations/getpromptversion.d.ts +14 -13
  238. package/models/operations/getpromptversion.d.ts.map +1 -1
  239. package/models/operations/getpromptversion.js +14 -13
  240. package/models/operations/getpromptversion.js.map +1 -1
  241. package/models/operations/index.d.ts +7 -0
  242. package/models/operations/index.d.ts.map +1 -1
  243. package/models/operations/index.js +7 -0
  244. package/models/operations/index.js.map +1 -1
  245. package/models/operations/invokeagent.d.ts +6 -6
  246. package/models/operations/invokeagent.d.ts.map +1 -1
  247. package/models/operations/invokeagent.js +10 -9
  248. package/models/operations/invokeagent.js.map +1 -1
  249. package/models/operations/listagents.d.ts +3 -0
  250. package/models/operations/listagents.d.ts.map +1 -1
  251. package/models/operations/listagents.js +2 -2
  252. package/models/operations/listagents.js.map +1 -1
  253. package/models/operations/listbudgets.d.ts +5 -0
  254. package/models/operations/listbudgets.d.ts.map +1 -1
  255. package/models/operations/listbudgets.js +6 -2
  256. package/models/operations/listbudgets.js.map +1 -1
  257. package/models/operations/listcontacts.d.ts +5 -0
  258. package/models/operations/listcontacts.d.ts.map +1 -1
  259. package/models/operations/listcontacts.js +4 -2
  260. package/models/operations/listcontacts.js.map +1 -1
  261. package/models/operations/listconversations.d.ts +60 -0
  262. package/models/operations/listconversations.d.ts.map +1 -0
  263. package/models/operations/listconversations.js +109 -0
  264. package/models/operations/listconversations.js.map +1 -0
  265. package/models/operations/listdatasetdatapoints.d.ts +76 -516
  266. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  267. package/models/operations/listdatasetdatapoints.js +75 -475
  268. package/models/operations/listdatasetdatapoints.js.map +1 -1
  269. package/models/operations/listdatasets.js +2 -2
  270. package/models/operations/listdatasources.js +2 -2
  271. package/models/operations/listpromptversions.d.ts +14 -13
  272. package/models/operations/listpromptversions.d.ts.map +1 -1
  273. package/models/operations/listpromptversions.js +14 -13
  274. package/models/operations/listpromptversions.js.map +1 -1
  275. package/models/operations/retrieveagentrequest.d.ts +3 -0
  276. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  277. package/models/operations/retrieveagentrequest.js +2 -2
  278. package/models/operations/retrieveagentrequest.js.map +1 -1
  279. package/models/operations/retrievecontact.js +2 -2
  280. package/models/operations/retrieveconversation.d.ts +39 -5
  281. package/models/operations/retrieveconversation.d.ts.map +1 -1
  282. package/models/operations/retrieveconversation.js +53 -8
  283. package/models/operations/retrieveconversation.js.map +1 -1
  284. package/models/operations/retrievedatapoint.d.ts +76 -516
  285. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  286. package/models/operations/retrievedatapoint.js +75 -473
  287. package/models/operations/retrievedatapoint.js.map +1 -1
  288. package/models/operations/retrievedataset.js +2 -2
  289. package/models/operations/retrievedatasource.js +2 -2
  290. package/models/operations/retrievememory.d.ts +5 -0
  291. package/models/operations/retrievememory.d.ts.map +1 -1
  292. package/models/operations/retrievememory.js +4 -0
  293. package/models/operations/retrievememory.js.map +1 -1
  294. package/models/operations/retrievetool.js +12 -12
  295. package/models/operations/runagent.js +4 -4
  296. package/models/operations/streamrunagent.js +4 -4
  297. package/models/operations/updateagent.d.ts +3 -0
  298. package/models/operations/updateagent.d.ts.map +1 -1
  299. package/models/operations/updateagent.js +4 -4
  300. package/models/operations/updateagent.js.map +1 -1
  301. package/models/operations/updatebudget.d.ts +5 -0
  302. package/models/operations/updatebudget.d.ts.map +1 -1
  303. package/models/operations/updatebudget.js +6 -2
  304. package/models/operations/updatebudget.js.map +1 -1
  305. package/models/operations/updatecontact.js +2 -2
  306. package/models/operations/updateconversation.d.ts +63 -6
  307. package/models/operations/updateconversation.d.ts.map +1 -1
  308. package/models/operations/updateconversation.js +93 -9
  309. package/models/operations/updateconversation.js.map +1 -1
  310. package/models/operations/updatedatapoint.d.ts +154 -1034
  311. package/models/operations/updatedatapoint.d.ts.map +1 -1
  312. package/models/operations/updatedatapoint.js +147 -955
  313. package/models/operations/updatedatapoint.js.map +1 -1
  314. package/models/operations/updatedataset.js +2 -2
  315. package/models/operations/updatedatasource.js +2 -2
  316. package/models/operations/updateeval.js +28 -28
  317. package/models/operations/updatememory.d.ts +10 -5
  318. package/models/operations/updatememory.d.ts.map +1 -1
  319. package/models/operations/updatememory.js +6 -2
  320. package/models/operations/updatememory.js.map +1 -1
  321. package/models/operations/updatememorydocument.d.ts +4 -4
  322. package/models/operations/updatememorydocument.d.ts.map +1 -1
  323. package/models/operations/updatememorydocument.js +2 -2
  324. package/models/operations/updatememorydocument.js.map +1 -1
  325. package/models/operations/updatememorystore.d.ts +24 -59
  326. package/models/operations/updatememorystore.d.ts.map +1 -1
  327. package/models/operations/updatememorystore.js +27 -55
  328. package/models/operations/updatememorystore.js.map +1 -1
  329. package/models/operations/updateprompt.d.ts +149 -486
  330. package/models/operations/updateprompt.d.ts.map +1 -1
  331. package/models/operations/updateprompt.js +156 -466
  332. package/models/operations/updateprompt.js.map +1 -1
  333. package/models/operations/updatetool.js +14 -14
  334. package/package.json +1 -1
  335. package/sdk/budgets.d.ts +1 -1
  336. package/sdk/budgets.js +1 -1
  337. package/sdk/conversations.d.ts +47 -0
  338. package/sdk/conversations.d.ts.map +1 -0
  339. package/sdk/conversations.js +72 -0
  340. package/sdk/conversations.js.map +1 -0
  341. package/sdk/evals.d.ts +4 -0
  342. package/sdk/evals.d.ts.map +1 -1
  343. package/sdk/evals.js +7 -0
  344. package/sdk/evals.js.map +1 -1
  345. package/sdk/responses.d.ts +5 -1
  346. package/sdk/responses.d.ts.map +1 -1
  347. package/sdk/responses.js +3 -1
  348. package/sdk/responses.js.map +1 -1
  349. package/sdk/sdk.d.ts +3 -0
  350. package/sdk/sdk.d.ts.map +1 -1
  351. package/sdk/sdk.js +4 -0
  352. package/sdk/sdk.js.map +1 -1
  353. package/src/funcs/agentsResponsesCreate.ts +14 -10
  354. package/src/funcs/budgetsCreate.ts +1 -1
  355. package/src/funcs/contactsList.ts +1 -0
  356. package/src/funcs/conversationsCreate.ts +161 -0
  357. package/src/funcs/conversationsDelete.ts +180 -0
  358. package/src/funcs/conversationsGenerateName.ts +194 -0
  359. package/src/funcs/conversationsList.ts +181 -0
  360. package/src/funcs/conversationsRetrieve.ts +180 -0
  361. package/src/funcs/conversationsUpdate.ts +184 -0
  362. package/src/funcs/evalsInvoke.ts +177 -0
  363. package/src/funcs/memoryStoresListDocuments.ts +2 -0
  364. package/src/funcs/memoryStoresListMemories.ts +1 -0
  365. package/src/lib/config.ts +3 -3
  366. package/src/mcp-server/mcp-server.ts +1 -1
  367. package/src/mcp-server/server.ts +15 -1
  368. package/src/mcp-server/tools/budgetsCreate.ts +1 -1
  369. package/src/mcp-server/tools/conversationsCreate.ts +37 -0
  370. package/src/mcp-server/tools/conversationsDelete.ts +35 -0
  371. package/src/mcp-server/tools/conversationsGenerateName.ts +40 -0
  372. package/src/mcp-server/tools/conversationsList.ts +41 -0
  373. package/src/mcp-server/tools/conversationsRetrieve.ts +37 -0
  374. package/src/mcp-server/tools/conversationsUpdate.ts +40 -0
  375. package/src/mcp-server/tools/evalsInvoke.ts +35 -0
  376. package/src/models/components/agentexecutionstartedstreamingevent.ts +53 -34
  377. package/src/models/components/agentinactivestreamingevent.ts +85 -57
  378. package/src/models/components/agentresponsemessage.ts +185 -0
  379. package/src/models/components/agentstartedstreamingevent.ts +30 -21
  380. package/src/models/components/agentthoughtstreamingevent.ts +167 -118
  381. package/src/models/components/conversationresponse.ts +100 -12
  382. package/src/models/components/createagentresponse.ts +340 -0
  383. package/src/models/components/imagecontentpartschema.ts +52 -37
  384. package/src/models/components/index.ts +18 -0
  385. package/src/models/components/invokedeploymentrequest.ts +515 -2564
  386. package/src/models/components/partdoneevent.ts +2 -2
  387. package/src/models/components/reasoningpart.ts +2 -2
  388. package/src/models/components/responsedoneevent.ts +93 -68
  389. package/src/models/components/toolexecutionfailedstreamingevent.ts +4 -0
  390. package/src/models/components/toolexecutionfinishedstreamingevent.ts +4 -0
  391. package/src/models/components/toolexecutionstartedstreamingevent.ts +4 -0
  392. package/src/models/errors/generateconversationname.ts +132 -0
  393. package/src/models/errors/index.ts +5 -0
  394. package/src/models/operations/createagentrequest.ts +7 -4
  395. package/src/models/operations/createagentresponserequest.ts +126 -435
  396. package/src/models/operations/createbudget.ts +143 -28
  397. package/src/models/operations/createcontact.ts +2 -2
  398. package/src/models/operations/createconversation.ts +192 -17
  399. package/src/models/operations/createdataset.ts +2 -2
  400. package/src/models/operations/createdatasetitem.ts +601 -2786
  401. package/src/models/operations/createdatasource.ts +2 -2
  402. package/src/models/operations/createeval.ts +28 -28
  403. package/src/models/operations/creatememory.ts +14 -5
  404. package/src/models/operations/creatememorydocument.ts +4 -4
  405. package/src/models/operations/createprompt.ts +397 -1201
  406. package/src/models/operations/createtool.ts +12 -12
  407. package/src/models/operations/deploymentcreatemetric.ts +601 -3040
  408. package/src/models/operations/deploymentgetconfig.ts +824 -2901
  409. package/src/models/operations/deploymentinvoke.ts +47 -46
  410. package/src/models/operations/deployments.ts +16 -15
  411. package/src/models/operations/deploymentstream.ts +727 -2977
  412. package/src/models/operations/fileget.ts +2 -2
  413. package/src/models/operations/filelist.ts +2 -2
  414. package/src/models/operations/fileupload.ts +30 -27
  415. package/src/models/operations/generateconversationname.ts +341 -0
  416. package/src/models/operations/getallmemories.ts +16 -0
  417. package/src/models/operations/getallmemorydocuments.ts +22 -0
  418. package/src/models/operations/getallprompts.ts +16 -15
  419. package/src/models/operations/getalltools.ts +12 -12
  420. package/src/models/operations/getbudget.ts +11 -2
  421. package/src/models/operations/getevals.ts +28 -28
  422. package/src/models/operations/getoneprompt.ts +16 -15
  423. package/src/models/operations/getpromptversion.ts +16 -15
  424. package/src/models/operations/index.ts +7 -0
  425. package/src/models/operations/invokeagent.ts +19 -26
  426. package/src/models/operations/listagents.ts +5 -2
  427. package/src/models/operations/listbudgets.ts +11 -2
  428. package/src/models/operations/listcontacts.ts +9 -2
  429. package/src/models/operations/listconversations.ts +161 -0
  430. package/src/models/operations/listdatasetdatapoints.ts +288 -1355
  431. package/src/models/operations/listdatasets.ts +2 -2
  432. package/src/models/operations/listdatasources.ts +2 -2
  433. package/src/models/operations/listpromptversions.ts +16 -15
  434. package/src/models/operations/retrieveagentrequest.ts +5 -2
  435. package/src/models/operations/retrievecontact.ts +2 -2
  436. package/src/models/operations/retrieveconversation.ts +107 -12
  437. package/src/models/operations/retrievedatapoint.ts +263 -1288
  438. package/src/models/operations/retrievedataset.ts +2 -2
  439. package/src/models/operations/retrievedatasource.ts +2 -2
  440. package/src/models/operations/retrievememory.ts +9 -0
  441. package/src/models/operations/retrievetool.ts +12 -12
  442. package/src/models/operations/runagent.ts +4 -4
  443. package/src/models/operations/streamrunagent.ts +4 -4
  444. package/src/models/operations/updateagent.ts +7 -4
  445. package/src/models/operations/updatebudget.ts +11 -2
  446. package/src/models/operations/updatecontact.ts +2 -2
  447. package/src/models/operations/updateconversation.ts +192 -14
  448. package/src/models/operations/updatedatapoint.ts +556 -2717
  449. package/src/models/operations/updatedataset.ts +2 -2
  450. package/src/models/operations/updatedatasource.ts +2 -2
  451. package/src/models/operations/updateeval.ts +28 -28
  452. package/src/models/operations/updatememory.ts +14 -5
  453. package/src/models/operations/updatememorydocument.ts +4 -4
  454. package/src/models/operations/updatememorystore.ts +64 -154
  455. package/src/models/operations/updateprompt.ts +385 -1144
  456. package/src/models/operations/updatetool.ts +14 -14
  457. package/src/sdk/budgets.ts +1 -1
  458. package/src/sdk/conversations.ts +125 -0
  459. package/src/sdk/evals.ts +15 -0
  460. package/src/sdk/responses.ts +8 -3
  461. package/src/sdk/sdk.ts +6 -0
@@ -10,92 +10,15 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import * as components from "../components/index.js";
11
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
 
13
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type =
14
- {
15
- Text: "text",
16
- } as const;
17
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type =
18
- ClosedEnum<
19
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type
20
- >;
21
-
22
- /**
23
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
24
- */
25
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType =
26
- {
27
- Ephemeral: "ephemeral",
28
- } as const;
29
- /**
30
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
31
- */
32
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType =
33
- ClosedEnum<
34
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType
35
- >;
36
-
37
- /**
38
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
39
- *
40
- * @remarks
41
- *
42
- * - `5m`: 5 minutes
43
- * - `1h`: 1 hour
44
- *
45
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
46
- */
47
- export const DeploymentGetConfig2DeploymentsRequestTtl = {
48
- Fivem: "5m",
49
- Oneh: "1h",
50
- } as const;
51
- /**
52
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
53
- *
54
- * @remarks
55
- *
56
- * - `5m`: 5 minutes
57
- * - `1h`: 1 hour
58
- *
59
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
60
- */
61
- export type DeploymentGetConfig2DeploymentsRequestTtl = ClosedEnum<
62
- typeof DeploymentGetConfig2DeploymentsRequestTtl
63
- >;
64
-
65
- export type DeploymentGetConfig2DeploymentsRequestCacheControl = {
66
- /**
67
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
68
- */
69
- type:
70
- DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType;
71
- /**
72
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
73
- *
74
- * @remarks
75
- *
76
- * - `5m`: 5 minutes
77
- * - `1h`: 1 hour
78
- *
79
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
80
- */
81
- ttl?: DeploymentGetConfig2DeploymentsRequestTtl | undefined;
82
- };
83
-
84
- export type DeploymentGetConfig21 = {
85
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type;
86
- text: string;
87
- cacheControl?: DeploymentGetConfig2DeploymentsRequestCacheControl | undefined;
88
- };
89
-
90
- export type DeploymentGetConfigContentDeploymentsRequest2 =
91
- DeploymentGetConfig21;
13
+ export type DeploymentGetConfigContentDeployments2 =
14
+ components.TextContentPartSchema;
92
15
 
93
16
  /**
94
17
  * The contents of the tool message.
95
18
  */
96
- export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent =
19
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent =
97
20
  | string
98
- | Array<DeploymentGetConfig21>;
21
+ | Array<components.TextContentPartSchema>;
99
22
 
100
23
  /**
101
24
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
@@ -162,7 +85,7 @@ export type ToolMessage = {
162
85
  /**
163
86
  * The contents of the tool message.
164
87
  */
165
- content: string | Array<DeploymentGetConfig21>;
88
+ content: string | Array<components.TextContentPartSchema>;
166
89
  /**
167
90
  * Tool call that this message is responding to.
168
91
  */
@@ -170,75 +93,8 @@ export type ToolMessage = {
170
93
  cacheControl?: PrefixMessagesCacheControl | undefined;
171
94
  };
172
95
 
173
- /**
174
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
175
- */
176
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType =
177
- {
178
- Ephemeral: "ephemeral",
179
- } as const;
180
- /**
181
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
182
- */
183
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType =
184
- ClosedEnum<
185
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType
186
- >;
187
-
188
- /**
189
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
190
- *
191
- * @remarks
192
- *
193
- * - `5m`: 5 minutes
194
- * - `1h`: 1 hour
195
- *
196
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
197
- */
198
- export const DeploymentGetConfig2DeploymentsTtl = {
199
- Fivem: "5m",
200
- Oneh: "1h",
201
- } as const;
202
- /**
203
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
204
- *
205
- * @remarks
206
- *
207
- * - `5m`: 5 minutes
208
- * - `1h`: 1 hour
209
- *
210
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
211
- */
212
- export type DeploymentGetConfig2DeploymentsTtl = ClosedEnum<
213
- typeof DeploymentGetConfig2DeploymentsTtl
214
- >;
215
-
216
- export type DeploymentGetConfig2DeploymentsCacheControl = {
217
- /**
218
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
219
- */
220
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType;
221
- /**
222
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
223
- *
224
- * @remarks
225
- *
226
- * - `5m`: 5 minutes
227
- * - `1h`: 1 hour
228
- *
229
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
230
- */
231
- ttl?: DeploymentGetConfig2DeploymentsTtl | undefined;
232
- };
233
-
234
- export type Two1 = {
235
- type: "text";
236
- text: string;
237
- cacheControl?: DeploymentGetConfig2DeploymentsCacheControl | undefined;
238
- };
239
-
240
- export type DeploymentGetConfigContentDeployments2 =
241
- | Two1
96
+ export type DeploymentGetConfigContent2 =
97
+ | (components.TextContentPartSchema & { type: "text" })
242
98
  | components.RefusalPartSchema
243
99
  | components.ReasoningPartSchema
244
100
  | components.RedactedReasoningPartSchema;
@@ -246,10 +102,10 @@ export type DeploymentGetConfigContentDeployments2 =
246
102
  /**
247
103
  * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
248
104
  */
249
- export type DeploymentGetConfigPrefixMessagesDeploymentsContent =
105
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent =
250
106
  | string
251
107
  | Array<
252
- | Two1
108
+ | (components.TextContentPartSchema & { type: "text" })
253
109
  | components.RefusalPartSchema
254
110
  | components.ReasoningPartSchema
255
111
  | components.RedactedReasoningPartSchema
@@ -276,7 +132,7 @@ export const PrefixMessagesType = {
276
132
  */
277
133
  export type PrefixMessagesType = ClosedEnum<typeof PrefixMessagesType>;
278
134
 
279
- export type FunctionT = {
135
+ export type PrefixMessagesFunction = {
280
136
  /**
281
137
  * The name of the function to call.
282
138
  */
@@ -287,7 +143,7 @@ export type FunctionT = {
287
143
  arguments?: string | undefined;
288
144
  };
289
145
 
290
- export type ToolCalls = {
146
+ export type PrefixMessagesToolCalls = {
291
147
  /**
292
148
  * The ID of the tool call.
293
149
  */
@@ -296,7 +152,7 @@ export type ToolCalls = {
296
152
  * The type of the tool. Currently, only `function` is supported.
297
153
  */
298
154
  type: PrefixMessagesType;
299
- function: FunctionT;
155
+ function: PrefixMessagesFunction;
300
156
  /**
301
157
  * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
302
158
  */
@@ -310,7 +166,7 @@ export type AssistantMessage = {
310
166
  content?:
311
167
  | string
312
168
  | Array<
313
- | Two1
169
+ | (components.TextContentPartSchema & { type: "text" })
314
170
  | components.RefusalPartSchema
315
171
  | components.ReasoningPartSchema
316
172
  | components.RedactedReasoningPartSchema
@@ -336,20 +192,20 @@ export type AssistantMessage = {
336
192
  /**
337
193
  * The tool calls generated by the model, such as function calls.
338
194
  */
339
- toolCalls?: Array<ToolCalls> | undefined;
195
+ toolCalls?: Array<PrefixMessagesToolCalls> | undefined;
340
196
  };
341
197
 
342
198
  /**
343
199
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
344
200
  */
345
- export const DeploymentGetConfig2DeploymentsRequestType = {
201
+ export const DeploymentGetConfig2DeploymentsType = {
346
202
  Ephemeral: "ephemeral",
347
203
  } as const;
348
204
  /**
349
205
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
350
206
  */
351
- export type DeploymentGetConfig2DeploymentsRequestType = ClosedEnum<
352
- typeof DeploymentGetConfig2DeploymentsRequestType
207
+ export type DeploymentGetConfig2DeploymentsType = ClosedEnum<
208
+ typeof DeploymentGetConfig2DeploymentsType
353
209
  >;
354
210
 
355
211
  /**
@@ -362,7 +218,7 @@ export type DeploymentGetConfig2DeploymentsRequestType = ClosedEnum<
362
218
  *
363
219
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
364
220
  */
365
- export const DeploymentGetConfig2Ttl = {
221
+ export const Ttl = {
366
222
  Fivem: "5m",
367
223
  Oneh: "1h",
368
224
  } as const;
@@ -376,15 +232,13 @@ export const DeploymentGetConfig2Ttl = {
376
232
  *
377
233
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
378
234
  */
379
- export type DeploymentGetConfig2Ttl = ClosedEnum<
380
- typeof DeploymentGetConfig2Ttl
381
- >;
235
+ export type Ttl = ClosedEnum<typeof Ttl>;
382
236
 
383
- export type DeploymentGetConfig2CacheControl = {
237
+ export type CacheControl = {
384
238
  /**
385
239
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
386
240
  */
387
- type: DeploymentGetConfig2DeploymentsRequestType;
241
+ type: DeploymentGetConfig2DeploymentsType;
388
242
  /**
389
243
  * The time-to-live for the cache control breakpoint. This may be one of the following values:
390
244
  *
@@ -395,7 +249,7 @@ export type DeploymentGetConfig2CacheControl = {
395
249
  *
396
250
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
397
251
  */
398
- ttl?: DeploymentGetConfig2Ttl | undefined;
252
+ ttl?: Ttl | undefined;
399
253
  };
400
254
 
401
255
  export type Four = {
@@ -403,78 +257,15 @@ export type Four = {
403
257
  * The type of the content part. Always `file`.
404
258
  */
405
259
  type: "file";
406
- cacheControl?: DeploymentGetConfig2CacheControl | undefined;
260
+ cacheControl?: CacheControl | undefined;
407
261
  /**
408
262
  * File data for the content part. Must contain either file_data or uri, but not both.
409
263
  */
410
264
  file: components.FileContentPartSchema;
411
265
  };
412
266
 
413
- /**
414
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
415
- */
416
- export const DeploymentGetConfig2Type = {
417
- Ephemeral: "ephemeral",
418
- } as const;
419
- /**
420
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
421
- */
422
- export type DeploymentGetConfig2Type = ClosedEnum<
423
- typeof DeploymentGetConfig2Type
424
- >;
425
-
426
- /**
427
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
428
- *
429
- * @remarks
430
- *
431
- * - `5m`: 5 minutes
432
- * - `1h`: 1 hour
433
- *
434
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
435
- */
436
- export const TwoTtl = {
437
- Fivem: "5m",
438
- Oneh: "1h",
439
- } as const;
440
- /**
441
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
442
- *
443
- * @remarks
444
- *
445
- * - `5m`: 5 minutes
446
- * - `1h`: 1 hour
447
- *
448
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
449
- */
450
- export type TwoTtl = ClosedEnum<typeof TwoTtl>;
451
-
452
- export type TwoCacheControl = {
453
- /**
454
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
455
- */
456
- type: DeploymentGetConfig2Type;
457
- /**
458
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
459
- *
460
- * @remarks
461
- *
462
- * - `5m`: 5 minutes
463
- * - `1h`: 1 hour
464
- *
465
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
466
- */
467
- ttl?: TwoTtl | undefined;
468
- };
469
-
470
- export type One = {
471
- type: "text";
472
- text: string;
473
- cacheControl?: TwoCacheControl | undefined;
474
- };
475
-
476
- export type DeploymentGetConfigContent2 =
477
- | One
267
+ export type Content2 =
268
+ | (components.TextContentPartSchema & { type: "text" })
478
269
  | components.ImageContentPartSchema
479
270
  | components.AudioContentPartSchema
480
271
  | Four;
@@ -482,10 +273,10 @@ export type DeploymentGetConfigContent2 =
482
273
  /**
483
274
  * The contents of the user message.
484
275
  */
485
- export type DeploymentGetConfigPrefixMessagesContent =
276
+ export type DeploymentGetConfigPrefixMessagesDeploymentsContent =
486
277
  | string
487
278
  | Array<
488
- | One
279
+ | (components.TextContentPartSchema & { type: "text" })
489
280
  | components.ImageContentPartSchema
490
281
  | components.AudioContentPartSchema
491
282
  | Four
@@ -506,31 +297,88 @@ export type UserMessage = {
506
297
  content:
507
298
  | string
508
299
  | Array<
509
- | One
300
+ | (components.TextContentPartSchema & { type: "text" })
510
301
  | components.ImageContentPartSchema
511
302
  | components.AudioContentPartSchema
512
303
  | Four
513
304
  >;
514
305
  };
515
306
 
516
- export const DeploymentGetConfigContentType = {
517
- Text: "text",
518
- } as const;
519
- export type DeploymentGetConfigContentType = ClosedEnum<
520
- typeof DeploymentGetConfigContentType
521
- >;
307
+ /**
308
+ * The contents of the developer message.
309
+ */
310
+ export type DeploymentGetConfigPrefixMessagesContent =
311
+ | string
312
+ | Array<components.TextContentPartSchema>;
313
+
314
+ export type DeveloperMessage = {
315
+ /**
316
+ * The role of the messages author, in this case `developer`.
317
+ */
318
+ role: "developer";
319
+ /**
320
+ * The contents of the developer message.
321
+ */
322
+ content: string | Array<components.TextContentPartSchema>;
323
+ /**
324
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
325
+ */
326
+ name?: string | undefined;
327
+ };
328
+
329
+ /**
330
+ * The contents of the system message.
331
+ */
332
+ export type PrefixMessagesContent =
333
+ | string
334
+ | Array<components.TextContentPartSchema>;
335
+
336
+ /**
337
+ * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
338
+ */
339
+ export type SystemMessage = {
340
+ /**
341
+ * The role of the messages author, in this case `system`.
342
+ */
343
+ role: "system";
344
+ /**
345
+ * The contents of the system message.
346
+ */
347
+ content: string | Array<components.TextContentPartSchema>;
348
+ /**
349
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
350
+ */
351
+ name?: string | undefined;
352
+ };
353
+
354
+ export type PrefixMessages =
355
+ | SystemMessage
356
+ | DeveloperMessage
357
+ | UserMessage
358
+ | AssistantMessage
359
+ | ToolMessage;
360
+
361
+ export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2 =
362
+ components.TextContentPartSchema;
363
+
364
+ /**
365
+ * The contents of the tool message.
366
+ */
367
+ export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent =
368
+ | string
369
+ | Array<components.TextContentPartSchema>;
522
370
 
523
371
  /**
524
372
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
525
373
  */
526
- export const DeploymentGetConfigContentDeploymentsType = {
374
+ export const DeploymentGetConfigMessagesType = {
527
375
  Ephemeral: "ephemeral",
528
376
  } as const;
529
377
  /**
530
378
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
531
379
  */
532
- export type DeploymentGetConfigContentDeploymentsType = ClosedEnum<
533
- typeof DeploymentGetConfigContentDeploymentsType
380
+ export type DeploymentGetConfigMessagesType = ClosedEnum<
381
+ typeof DeploymentGetConfigMessagesType
534
382
  >;
535
383
 
536
384
  /**
@@ -543,7 +391,7 @@ export type DeploymentGetConfigContentDeploymentsType = ClosedEnum<
543
391
  *
544
392
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
545
393
  */
546
- export const ContentTtl = {
394
+ export const MessagesTtl = {
547
395
  Fivem: "5m",
548
396
  Oneh: "1h",
549
397
  } as const;
@@ -557,13 +405,13 @@ export const ContentTtl = {
557
405
  *
558
406
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
559
407
  */
560
- export type ContentTtl = ClosedEnum<typeof ContentTtl>;
408
+ export type MessagesTtl = ClosedEnum<typeof MessagesTtl>;
561
409
 
562
- export type ContentCacheControl = {
410
+ export type MessagesCacheControl = {
563
411
  /**
564
412
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
565
413
  */
566
- type: DeploymentGetConfigContentDeploymentsType;
414
+ type: DeploymentGetConfigMessagesType;
567
415
  /**
568
416
  * The time-to-live for the cache control breakpoint. This may be one of the following values:
569
417
  *
@@ -574,280 +422,10 @@ export type ContentCacheControl = {
574
422
  *
575
423
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
576
424
  */
577
- ttl?: ContentTtl | undefined;
578
- };
579
-
580
- export type Content2 = {
581
- type: DeploymentGetConfigContentType;
582
- text: string;
583
- cacheControl?: ContentCacheControl | undefined;
425
+ ttl?: MessagesTtl | undefined;
584
426
  };
585
427
 
586
- /**
587
- * The contents of the developer message.
588
- */
589
- export type PrefixMessagesContent = string | Array<Content2>;
590
-
591
- export type DeveloperMessage = {
592
- /**
593
- * The role of the messages author, in this case `developer`.
594
- */
595
- role: "developer";
596
- /**
597
- * The contents of the developer message.
598
- */
599
- content: string | Array<Content2>;
600
- /**
601
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
602
- */
603
- name?: string | undefined;
604
- };
605
-
606
- export const Type = {
607
- Text: "text",
608
- } as const;
609
- export type Type = ClosedEnum<typeof Type>;
610
-
611
- /**
612
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
613
- */
614
- export const ContentType = {
615
- Ephemeral: "ephemeral",
616
- } as const;
617
- /**
618
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
619
- */
620
- export type ContentType = ClosedEnum<typeof ContentType>;
621
-
622
- /**
623
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
624
- *
625
- * @remarks
626
- *
627
- * - `5m`: 5 minutes
628
- * - `1h`: 1 hour
629
- *
630
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
631
- */
632
- export const Ttl = {
633
- Fivem: "5m",
634
- Oneh: "1h",
635
- } as const;
636
- /**
637
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
638
- *
639
- * @remarks
640
- *
641
- * - `5m`: 5 minutes
642
- * - `1h`: 1 hour
643
- *
644
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
645
- */
646
- export type Ttl = ClosedEnum<typeof Ttl>;
647
-
648
- export type CacheControl = {
649
- /**
650
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
651
- */
652
- type: ContentType;
653
- /**
654
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
655
- *
656
- * @remarks
657
- *
658
- * - `5m`: 5 minutes
659
- * - `1h`: 1 hour
660
- *
661
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
662
- */
663
- ttl?: Ttl | undefined;
664
- };
665
-
666
- export type Two = {
667
- type: Type;
668
- text: string;
669
- cacheControl?: CacheControl | undefined;
670
- };
671
-
672
- /**
673
- * The contents of the system message.
674
- */
675
- export type Content = string | Array<Two>;
676
-
677
- /**
678
- * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
679
- */
680
- export type SystemMessage = {
681
- /**
682
- * The role of the messages author, in this case `system`.
683
- */
684
- role: "system";
685
- /**
686
- * The contents of the system message.
687
- */
688
- content: string | Array<Two>;
689
- /**
690
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
691
- */
692
- name?: string | undefined;
693
- };
694
-
695
- export type PrefixMessages =
696
- | SystemMessage
697
- | DeveloperMessage
698
- | UserMessage
699
- | AssistantMessage
700
- | ToolMessage;
701
-
702
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type = {
703
- Text: "text",
704
- } as const;
705
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type =
706
- ClosedEnum<
707
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type
708
- >;
709
-
710
- /**
711
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
712
- */
713
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType =
714
- {
715
- Ephemeral: "ephemeral",
716
- } as const;
717
- /**
718
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
719
- */
720
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType =
721
- ClosedEnum<
722
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType
723
- >;
724
-
725
- /**
726
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
727
- *
728
- * @remarks
729
- *
730
- * - `5m`: 5 minutes
731
- * - `1h`: 1 hour
732
- *
733
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
734
- */
735
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl = {
736
- Fivem: "5m",
737
- Oneh: "1h",
738
- } as const;
739
- /**
740
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
741
- *
742
- * @remarks
743
- *
744
- * - `5m`: 5 minutes
745
- * - `1h`: 1 hour
746
- *
747
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
748
- */
749
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl =
750
- ClosedEnum<
751
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl
752
- >;
753
-
754
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl =
755
- {
756
- /**
757
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
758
- */
759
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType;
760
- /**
761
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
762
- *
763
- * @remarks
764
- *
765
- * - `5m`: 5 minutes
766
- * - `1h`: 1 hour
767
- *
768
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
769
- */
770
- ttl?:
771
- | DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl
772
- | undefined;
773
- };
774
-
775
- export type DeploymentGetConfig2DeploymentsRequestRequestBody1 = {
776
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type;
777
- text: string;
778
- cacheControl?:
779
- | DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl
780
- | undefined;
781
- };
782
-
783
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52 =
784
- DeploymentGetConfig2DeploymentsRequestRequestBody1;
785
-
786
- /**
787
- * The contents of the tool message.
788
- */
789
- export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent =
790
- | string
791
- | Array<DeploymentGetConfig2DeploymentsRequestRequestBody1>;
792
-
793
- /**
794
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
795
- */
796
- export const DeploymentGetConfigMessagesType = {
797
- Ephemeral: "ephemeral",
798
- } as const;
799
- /**
800
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
801
- */
802
- export type DeploymentGetConfigMessagesType = ClosedEnum<
803
- typeof DeploymentGetConfigMessagesType
804
- >;
805
-
806
- /**
807
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
808
- *
809
- * @remarks
810
- *
811
- * - `5m`: 5 minutes
812
- * - `1h`: 1 hour
813
- *
814
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
815
- */
816
- export const MessagesTtl = {
817
- Fivem: "5m",
818
- Oneh: "1h",
819
- } as const;
820
- /**
821
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
822
- *
823
- * @remarks
824
- *
825
- * - `5m`: 5 minutes
826
- * - `1h`: 1 hour
827
- *
828
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
829
- */
830
- export type MessagesTtl = ClosedEnum<typeof MessagesTtl>;
831
-
832
- export type MessagesCacheControl = {
833
- /**
834
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
835
- */
836
- type: DeploymentGetConfigMessagesType;
837
- /**
838
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
839
- *
840
- * @remarks
841
- *
842
- * - `5m`: 5 minutes
843
- * - `1h`: 1 hour
844
- *
845
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
846
- */
847
- ttl?: MessagesTtl | undefined;
848
- };
849
-
850
- export type MessagesToolMessage = {
428
+ export type MessagesToolMessage = {
851
429
  /**
852
430
  * The role of the messages author, in this case tool.
853
431
  */
@@ -855,7 +433,7 @@ export type MessagesToolMessage = {
855
433
  /**
856
434
  * The contents of the tool message.
857
435
  */
858
- content: string | Array<DeploymentGetConfig2DeploymentsRequestRequestBody1>;
436
+ content: string | Array<components.TextContentPartSchema>;
859
437
  /**
860
438
  * Tool call that this message is responding to.
861
439
  */
@@ -863,81 +441,8 @@ export type MessagesToolMessage = {
863
441
  cacheControl?: MessagesCacheControl | undefined;
864
442
  };
865
443
 
866
- /**
867
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
868
- */
869
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType =
870
- {
871
- Ephemeral: "ephemeral",
872
- } as const;
873
- /**
874
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
875
- */
876
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType =
877
- ClosedEnum<
878
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType
879
- >;
880
-
881
- /**
882
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
883
- *
884
- * @remarks
885
- *
886
- * - `5m`: 5 minutes
887
- * - `1h`: 1 hour
888
- *
889
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
890
- */
891
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl = {
892
- Fivem: "5m",
893
- Oneh: "1h",
894
- } as const;
895
- /**
896
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
897
- *
898
- * @remarks
899
- *
900
- * - `5m`: 5 minutes
901
- * - `1h`: 1 hour
902
- *
903
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
904
- */
905
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl =
906
- ClosedEnum<
907
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl
908
- >;
909
-
910
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl =
911
- {
912
- /**
913
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
914
- */
915
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType;
916
- /**
917
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
918
- *
919
- * @remarks
920
- *
921
- * - `5m`: 5 minutes
922
- * - `1h`: 1 hour
923
- *
924
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
925
- */
926
- ttl?:
927
- | DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl
928
- | undefined;
929
- };
930
-
931
- export type DeploymentGetConfig2DeploymentsRequest1 = {
932
- type: "text";
933
- text: string;
934
- cacheControl?:
935
- | DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl
936
- | undefined;
937
- };
938
-
939
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42 =
940
- | DeploymentGetConfig2DeploymentsRequest1
444
+ export type DeploymentGetConfigContentDeploymentsRequestRequestBody2 =
445
+ | (components.TextContentPartSchema & { type: "text" })
941
446
  | components.RefusalPartSchema
942
447
  | components.ReasoningPartSchema
943
448
  | components.RedactedReasoningPartSchema;
@@ -948,7 +453,7 @@ export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42 =
948
453
  export type DeploymentGetConfigMessagesDeploymentsRequestContent =
949
454
  | string
950
455
  | Array<
951
- | DeploymentGetConfig2DeploymentsRequest1
456
+ | (components.TextContentPartSchema & { type: "text" })
952
457
  | components.RefusalPartSchema
953
458
  | components.ReasoningPartSchema
954
459
  | components.RedactedReasoningPartSchema
@@ -1009,7 +514,7 @@ export type MessagesAssistantMessage = {
1009
514
  content?:
1010
515
  | string
1011
516
  | Array<
1012
- | DeploymentGetConfig2DeploymentsRequest1
517
+ | (components.TextContentPartSchema & { type: "text" })
1013
518
  | components.RefusalPartSchema
1014
519
  | components.ReasoningPartSchema
1015
520
  | components.RedactedReasoningPartSchema
@@ -1041,17 +546,15 @@ export type MessagesAssistantMessage = {
1041
546
  /**
1042
547
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1043
548
  */
1044
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type =
1045
- {
1046
- Ephemeral: "ephemeral",
1047
- } as const;
549
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyType = {
550
+ Ephemeral: "ephemeral",
551
+ } as const;
1048
552
  /**
1049
553
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1050
554
  */
1051
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type =
1052
- ClosedEnum<
1053
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type
1054
- >;
555
+ export type DeploymentGetConfig2DeploymentsRequestRequestBodyType = ClosedEnum<
556
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
557
+ >;
1055
558
 
1056
559
  /**
1057
560
  * The time-to-live for the cache control breakpoint. This may be one of the following values:
@@ -1063,7 +566,7 @@ export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Ty
1063
566
  *
1064
567
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1065
568
  */
1066
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl = {
569
+ export const TwoTtl = {
1067
570
  Fivem: "5m",
1068
571
  Oneh: "1h",
1069
572
  } as const;
@@ -1077,94 +580,13 @@ export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl = {
1077
580
  *
1078
581
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1079
582
  */
1080
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl =
1081
- ClosedEnum<
1082
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl
1083
- >;
1084
-
1085
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl =
1086
- {
1087
- /**
1088
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1089
- */
1090
- type:
1091
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type;
1092
- /**
1093
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
1094
- *
1095
- * @remarks
1096
- *
1097
- * - `5m`: 5 minutes
1098
- * - `1h`: 1 hour
1099
- *
1100
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1101
- */
1102
- ttl?:
1103
- | DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl
1104
- | undefined;
1105
- };
583
+ export type TwoTtl = ClosedEnum<typeof TwoTtl>;
1106
584
 
1107
- export type Two4 = {
585
+ export type TwoCacheControl = {
1108
586
  /**
1109
- * The type of the content part. Always `file`.
587
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1110
588
  */
1111
- type: "file";
1112
- cacheControl?:
1113
- | DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl
1114
- | undefined;
1115
- /**
1116
- * File data for the content part. Must contain either file_data or uri, but not both.
1117
- */
1118
- file: components.FileContentPartSchema;
1119
- };
1120
-
1121
- /**
1122
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1123
- */
1124
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type = {
1125
- Ephemeral: "ephemeral",
1126
- } as const;
1127
- /**
1128
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1129
- */
1130
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type =
1131
- ClosedEnum<
1132
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type
1133
- >;
1134
-
1135
- /**
1136
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
1137
- *
1138
- * @remarks
1139
- *
1140
- * - `5m`: 5 minutes
1141
- * - `1h`: 1 hour
1142
- *
1143
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1144
- */
1145
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyTtl = {
1146
- Fivem: "5m",
1147
- Oneh: "1h",
1148
- } as const;
1149
- /**
1150
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
1151
- *
1152
- * @remarks
1153
- *
1154
- * - `5m`: 5 minutes
1155
- * - `1h`: 1 hour
1156
- *
1157
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1158
- */
1159
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyTtl = ClosedEnum<
1160
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyTtl
1161
- >;
1162
-
1163
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl = {
1164
- /**
1165
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1166
- */
1167
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type;
589
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyType;
1168
590
  /**
1169
591
  * The time-to-live for the cache control breakpoint. This may be one of the following values:
1170
592
  *
@@ -1175,19 +597,23 @@ export type DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl = {
1175
597
  *
1176
598
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1177
599
  */
1178
- ttl?: DeploymentGetConfig2DeploymentsRequestRequestBodyTtl | undefined;
600
+ ttl?: TwoTtl | undefined;
1179
601
  };
1180
602
 
1181
- export type DeploymentGetConfig2Deployments1 = {
1182
- type: "text";
1183
- text: string;
1184
- cacheControl?:
1185
- | DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl
1186
- | undefined;
603
+ export type Two4 = {
604
+ /**
605
+ * The type of the content part. Always `file`.
606
+ */
607
+ type: "file";
608
+ cacheControl?: TwoCacheControl | undefined;
609
+ /**
610
+ * File data for the content part. Must contain either file_data or uri, but not both.
611
+ */
612
+ file: components.FileContentPartSchema;
1187
613
  };
1188
614
 
1189
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32 =
1190
- | DeploymentGetConfig2Deployments1
615
+ export type DeploymentGetConfigContentDeploymentsRequest2 =
616
+ | (components.TextContentPartSchema & { type: "text" })
1191
617
  | components.ImageContentPartSchema
1192
618
  | components.AudioContentPartSchema
1193
619
  | Two4;
@@ -1198,7 +624,7 @@ export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32 =
1198
624
  export type DeploymentGetConfigMessagesDeploymentsContent =
1199
625
  | string
1200
626
  | Array<
1201
- | DeploymentGetConfig2Deployments1
627
+ | (components.TextContentPartSchema & { type: "text" })
1202
628
  | components.ImageContentPartSchema
1203
629
  | components.AudioContentPartSchema
1204
630
  | Two4
@@ -1219,95 +645,19 @@ export type MessagesUserMessage = {
1219
645
  content:
1220
646
  | string
1221
647
  | Array<
1222
- | DeploymentGetConfig2Deployments1
648
+ | (components.TextContentPartSchema & { type: "text" })
1223
649
  | components.ImageContentPartSchema
1224
650
  | components.AudioContentPartSchema
1225
651
  | Two4
1226
652
  >;
1227
653
  };
1228
654
 
1229
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType =
1230
- {
1231
- Text: "text",
1232
- } as const;
1233
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType =
1234
- ClosedEnum<
1235
- typeof DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType
1236
- >;
1237
-
1238
- /**
1239
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1240
- */
1241
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type =
1242
- {
1243
- Ephemeral: "ephemeral",
1244
- } as const;
1245
- /**
1246
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1247
- */
1248
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type =
1249
- ClosedEnum<
1250
- typeof DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type
1251
- >;
1252
-
1253
- /**
1254
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
1255
- *
1256
- * @remarks
1257
- *
1258
- * - `5m`: 5 minutes
1259
- * - `1h`: 1 hour
1260
- *
1261
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1262
- */
1263
- export const DeploymentGetConfigContentDeploymentsTtl = {
1264
- Fivem: "5m",
1265
- Oneh: "1h",
1266
- } as const;
1267
- /**
1268
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
1269
- *
1270
- * @remarks
1271
- *
1272
- * - `5m`: 5 minutes
1273
- * - `1h`: 1 hour
1274
- *
1275
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1276
- */
1277
- export type DeploymentGetConfigContentDeploymentsTtl = ClosedEnum<
1278
- typeof DeploymentGetConfigContentDeploymentsTtl
1279
- >;
1280
-
1281
- export type DeploymentGetConfigContentDeploymentsCacheControl = {
1282
- /**
1283
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1284
- */
1285
- type: DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type;
1286
- /**
1287
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
1288
- *
1289
- * @remarks
1290
- *
1291
- * - `5m`: 5 minutes
1292
- * - `1h`: 1 hour
1293
- *
1294
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1295
- */
1296
- ttl?: DeploymentGetConfigContentDeploymentsTtl | undefined;
1297
- };
1298
-
1299
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2 = {
1300
- type: DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType;
1301
- text: string;
1302
- cacheControl?: DeploymentGetConfigContentDeploymentsCacheControl | undefined;
1303
- };
1304
-
1305
655
  /**
1306
656
  * The contents of the developer message.
1307
657
  */
1308
658
  export type DeploymentGetConfigMessagesContent =
1309
659
  | string
1310
- | Array<DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2>;
660
+ | Array<components.TextContentPartSchema>;
1311
661
 
1312
662
  export type MessagesDeveloperMessage = {
1313
663
  /**
@@ -1317,94 +667,17 @@ export type MessagesDeveloperMessage = {
1317
667
  /**
1318
668
  * The contents of the developer message.
1319
669
  */
1320
- content:
1321
- | string
1322
- | Array<DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2>;
670
+ content: string | Array<components.TextContentPartSchema>;
1323
671
  /**
1324
672
  * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
1325
673
  */
1326
674
  name?: string | undefined;
1327
675
  };
1328
676
 
1329
- export const DeploymentGetConfigContentDeploymentsRequestType = {
1330
- Text: "text",
1331
- } as const;
1332
- export type DeploymentGetConfigContentDeploymentsRequestType = ClosedEnum<
1333
- typeof DeploymentGetConfigContentDeploymentsRequestType
1334
- >;
1335
-
1336
- /**
1337
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1338
- */
1339
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyType = {
1340
- Ephemeral: "ephemeral",
1341
- } as const;
1342
- /**
1343
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1344
- */
1345
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyType =
1346
- ClosedEnum<
1347
- typeof DeploymentGetConfigContentDeploymentsRequestRequestBodyType
1348
- >;
1349
-
1350
- /**
1351
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
1352
- *
1353
- * @remarks
1354
- *
1355
- * - `5m`: 5 minutes
1356
- * - `1h`: 1 hour
1357
- *
1358
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1359
- */
1360
- export const DeploymentGetConfigContentTtl = {
1361
- Fivem: "5m",
1362
- Oneh: "1h",
1363
- } as const;
1364
- /**
1365
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
1366
- *
1367
- * @remarks
1368
- *
1369
- * - `5m`: 5 minutes
1370
- * - `1h`: 1 hour
1371
- *
1372
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1373
- */
1374
- export type DeploymentGetConfigContentTtl = ClosedEnum<
1375
- typeof DeploymentGetConfigContentTtl
1376
- >;
1377
-
1378
- export type DeploymentGetConfigContentCacheControl = {
1379
- /**
1380
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1381
- */
1382
- type: DeploymentGetConfigContentDeploymentsRequestRequestBodyType;
1383
- /**
1384
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
1385
- *
1386
- * @remarks
1387
- *
1388
- * - `5m`: 5 minutes
1389
- * - `1h`: 1 hour
1390
- *
1391
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1392
- */
1393
- ttl?: DeploymentGetConfigContentTtl | undefined;
1394
- };
1395
-
1396
- export type DeploymentGetConfigContentDeploymentsRequestRequestBody2 = {
1397
- type: DeploymentGetConfigContentDeploymentsRequestType;
1398
- text: string;
1399
- cacheControl?: DeploymentGetConfigContentCacheControl | undefined;
1400
- };
1401
-
1402
677
  /**
1403
678
  * The contents of the system message.
1404
679
  */
1405
- export type MessagesContent =
1406
- | string
1407
- | Array<DeploymentGetConfigContentDeploymentsRequestRequestBody2>;
680
+ export type MessagesContent = string | Array<components.TextContentPartSchema>;
1408
681
 
1409
682
  /**
1410
683
  * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
@@ -1417,16 +690,14 @@ export type MessagesSystemMessage = {
1417
690
  /**
1418
691
  * The contents of the system message.
1419
692
  */
1420
- content:
1421
- | string
1422
- | Array<DeploymentGetConfigContentDeploymentsRequestRequestBody2>;
693
+ content: string | Array<components.TextContentPartSchema>;
1423
694
  /**
1424
695
  * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
1425
696
  */
1426
697
  name?: string | undefined;
1427
698
  };
1428
699
 
1429
- export type Messages =
700
+ export type DeploymentGetConfigMessages =
1430
701
  | MessagesSystemMessage
1431
702
  | MessagesDeveloperMessage
1432
703
  | MessagesUserMessage
@@ -1938,13 +1209,13 @@ export type DeploymentGetConfig22 = {
1938
1209
  /**
1939
1210
  * Text content part of a prompt message
1940
1211
  */
1941
- export type DeploymentGetConfig2DeploymentsResponse1 = {
1212
+ export type DeploymentGetConfig21 = {
1942
1213
  type: "text";
1943
1214
  text: string;
1944
1215
  };
1945
1216
 
1946
1217
  export type DeploymentGetConfigContentDeploymentsResponse2 =
1947
- | DeploymentGetConfig2DeploymentsResponse1
1218
+ | DeploymentGetConfig21
1948
1219
  | DeploymentGetConfig22
1949
1220
  | DeploymentGetConfig23;
1950
1221
 
@@ -1954,9 +1225,7 @@ export type DeploymentGetConfigContentDeploymentsResponse2 =
1954
1225
  export type DeploymentGetConfigContent =
1955
1226
  | string
1956
1227
  | Array<
1957
- | DeploymentGetConfig2DeploymentsResponse1
1958
- | DeploymentGetConfig22
1959
- | DeploymentGetConfig23
1228
+ DeploymentGetConfig21 | DeploymentGetConfig22 | DeploymentGetConfig23
1960
1229
  >;
1961
1230
 
1962
1231
  export const DeploymentGetConfigDeploymentsResponseType = {
@@ -1981,7 +1250,7 @@ export type DeploymentGetConfigToolCalls = {
1981
1250
  function: DeploymentGetConfigDeploymentsFunction;
1982
1251
  };
1983
1252
 
1984
- export type DeploymentGetConfigMessages = {
1253
+ export type DeploymentGetConfigDeploymentsMessages = {
1985
1254
  /**
1986
1255
  * The role of the prompt message
1987
1256
  */
@@ -1992,13 +1261,11 @@ export type DeploymentGetConfigMessages = {
1992
1261
  content:
1993
1262
  | string
1994
1263
  | Array<
1995
- | DeploymentGetConfig2DeploymentsResponse1
1996
- | DeploymentGetConfig22
1997
- | DeploymentGetConfig23
1264
+ DeploymentGetConfig21 | DeploymentGetConfig22 | DeploymentGetConfig23
1998
1265
  >
1999
1266
  | null;
2000
1267
  toolCalls?: Array<DeploymentGetConfigToolCalls> | undefined;
2001
- toolCallId?: string | undefined;
1268
+ toolCallId?: string | null | undefined;
2002
1269
  };
2003
1270
 
2004
1271
  /**
@@ -2345,7 +1612,7 @@ export type DeploymentGetConfigResponseBody = {
2345
1612
  * The current version of the deployment
2346
1613
  */
2347
1614
  version: string;
2348
- messages: Array<DeploymentGetConfigMessages>;
1615
+ messages: Array<DeploymentGetConfigDeploymentsMessages>;
2349
1616
  /**
2350
1617
  * Model Parameters: Not all parameters apply to every model
2351
1618
  */
@@ -2357,258 +1624,100 @@ export type DeploymentGetConfigResponseBody = {
2357
1624
  };
2358
1625
 
2359
1626
  /** @internal */
2360
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type$inboundSchema:
2361
- z.ZodNativeEnum<
2362
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type
2363
- > = z.nativeEnum(
2364
- DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type,
2365
- );
1627
+ export const DeploymentGetConfigContentDeployments2$inboundSchema: z.ZodType<
1628
+ DeploymentGetConfigContentDeployments2,
1629
+ z.ZodTypeDef,
1630
+ unknown
1631
+ > = components.TextContentPartSchema$inboundSchema;
2366
1632
  /** @internal */
2367
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type$outboundSchema:
2368
- z.ZodNativeEnum<
2369
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type
2370
- > =
2371
- DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type$inboundSchema;
1633
+ export type DeploymentGetConfigContentDeployments2$Outbound =
1634
+ components.TextContentPartSchema$Outbound;
2372
1635
 
2373
1636
  /** @internal */
2374
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType$inboundSchema:
2375
- z.ZodNativeEnum<
2376
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType
2377
- > = z.nativeEnum(
2378
- DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType,
2379
- );
2380
- /** @internal */
2381
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType$outboundSchema:
2382
- z.ZodNativeEnum<
2383
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType
2384
- > =
2385
- DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType$inboundSchema;
1637
+ export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
1638
+ DeploymentGetConfigContentDeployments2$Outbound,
1639
+ z.ZodTypeDef,
1640
+ DeploymentGetConfigContentDeployments2
1641
+ > = components.TextContentPartSchema$outboundSchema;
2386
1642
 
2387
- /** @internal */
2388
- export const DeploymentGetConfig2DeploymentsRequestTtl$inboundSchema:
2389
- z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestTtl> = z
2390
- .nativeEnum(DeploymentGetConfig2DeploymentsRequestTtl);
2391
- /** @internal */
2392
- export const DeploymentGetConfig2DeploymentsRequestTtl$outboundSchema:
2393
- z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestTtl> =
2394
- DeploymentGetConfig2DeploymentsRequestTtl$inboundSchema;
1643
+ export function deploymentGetConfigContentDeployments2ToJSON(
1644
+ deploymentGetConfigContentDeployments2:
1645
+ DeploymentGetConfigContentDeployments2,
1646
+ ): string {
1647
+ return JSON.stringify(
1648
+ DeploymentGetConfigContentDeployments2$outboundSchema.parse(
1649
+ deploymentGetConfigContentDeployments2,
1650
+ ),
1651
+ );
1652
+ }
1653
+ export function deploymentGetConfigContentDeployments2FromJSON(
1654
+ jsonString: string,
1655
+ ): SafeParseResult<DeploymentGetConfigContentDeployments2, SDKValidationError> {
1656
+ return safeParse(
1657
+ jsonString,
1658
+ (x) =>
1659
+ DeploymentGetConfigContentDeployments2$inboundSchema.parse(JSON.parse(x)),
1660
+ `Failed to parse 'DeploymentGetConfigContentDeployments2' from JSON`,
1661
+ );
1662
+ }
2395
1663
 
2396
1664
  /** @internal */
2397
- export const DeploymentGetConfig2DeploymentsRequestCacheControl$inboundSchema:
1665
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$inboundSchema:
2398
1666
  z.ZodType<
2399
- DeploymentGetConfig2DeploymentsRequestCacheControl,
1667
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
2400
1668
  z.ZodTypeDef,
2401
1669
  unknown
2402
- > = z.object({
2403
- type:
2404
- DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType$inboundSchema,
2405
- ttl: DeploymentGetConfig2DeploymentsRequestTtl$inboundSchema.default("5m"),
2406
- });
1670
+ > = z.union([
1671
+ z.string(),
1672
+ z.array(components.TextContentPartSchema$inboundSchema),
1673
+ ]);
2407
1674
  /** @internal */
2408
- export type DeploymentGetConfig2DeploymentsRequestCacheControl$Outbound = {
2409
- type: string;
2410
- ttl: string;
2411
- };
1675
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound =
1676
+ | string
1677
+ | Array<components.TextContentPartSchema$Outbound>;
2412
1678
 
2413
1679
  /** @internal */
2414
- export const DeploymentGetConfig2DeploymentsRequestCacheControl$outboundSchema:
1680
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
2415
1681
  z.ZodType<
2416
- DeploymentGetConfig2DeploymentsRequestCacheControl$Outbound,
1682
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound,
2417
1683
  z.ZodTypeDef,
2418
- DeploymentGetConfig2DeploymentsRequestCacheControl
2419
- > = z.object({
2420
- type:
2421
- DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType$outboundSchema,
2422
- ttl: DeploymentGetConfig2DeploymentsRequestTtl$outboundSchema.default("5m"),
2423
- });
1684
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent
1685
+ > = z.union([
1686
+ z.string(),
1687
+ z.array(components.TextContentPartSchema$outboundSchema),
1688
+ ]);
2424
1689
 
2425
- export function deploymentGetConfig2DeploymentsRequestCacheControlToJSON(
2426
- deploymentGetConfig2DeploymentsRequestCacheControl:
2427
- DeploymentGetConfig2DeploymentsRequestCacheControl,
1690
+ export function deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContentToJSON(
1691
+ deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent:
1692
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
2428
1693
  ): string {
2429
1694
  return JSON.stringify(
2430
- DeploymentGetConfig2DeploymentsRequestCacheControl$outboundSchema.parse(
2431
- deploymentGetConfig2DeploymentsRequestCacheControl,
2432
- ),
1695
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema
1696
+ .parse(
1697
+ deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
1698
+ ),
2433
1699
  );
2434
1700
  }
2435
- export function deploymentGetConfig2DeploymentsRequestCacheControlFromJSON(
1701
+ export function deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContentFromJSON(
2436
1702
  jsonString: string,
2437
1703
  ): SafeParseResult<
2438
- DeploymentGetConfig2DeploymentsRequestCacheControl,
1704
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
2439
1705
  SDKValidationError
2440
1706
  > {
2441
1707
  return safeParse(
2442
1708
  jsonString,
2443
1709
  (x) =>
2444
- DeploymentGetConfig2DeploymentsRequestCacheControl$inboundSchema.parse(
2445
- JSON.parse(x),
2446
- ),
2447
- `Failed to parse 'DeploymentGetConfig2DeploymentsRequestCacheControl' from JSON`,
1710
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$inboundSchema
1711
+ .parse(JSON.parse(x)),
1712
+ `Failed to parse 'DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent' from JSON`,
2448
1713
  );
2449
1714
  }
2450
1715
 
2451
1716
  /** @internal */
2452
- export const DeploymentGetConfig21$inboundSchema: z.ZodType<
2453
- DeploymentGetConfig21,
2454
- z.ZodTypeDef,
2455
- unknown
2456
- > = z.object({
2457
- type:
2458
- DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type$inboundSchema,
2459
- text: z.string(),
2460
- cache_control: z.lazy(() =>
2461
- DeploymentGetConfig2DeploymentsRequestCacheControl$inboundSchema
2462
- ).optional(),
2463
- }).transform((v) => {
2464
- return remap$(v, {
2465
- "cache_control": "cacheControl",
2466
- });
2467
- });
2468
- /** @internal */
2469
- export type DeploymentGetConfig21$Outbound = {
2470
- type: string;
2471
- text: string;
2472
- cache_control?:
2473
- | DeploymentGetConfig2DeploymentsRequestCacheControl$Outbound
2474
- | undefined;
2475
- };
2476
-
2477
- /** @internal */
2478
- export const DeploymentGetConfig21$outboundSchema: z.ZodType<
2479
- DeploymentGetConfig21$Outbound,
2480
- z.ZodTypeDef,
2481
- DeploymentGetConfig21
2482
- > = z.object({
2483
- type:
2484
- DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type$outboundSchema,
2485
- text: z.string(),
2486
- cacheControl: z.lazy(() =>
2487
- DeploymentGetConfig2DeploymentsRequestCacheControl$outboundSchema
2488
- ).optional(),
2489
- }).transform((v) => {
2490
- return remap$(v, {
2491
- cacheControl: "cache_control",
2492
- });
2493
- });
2494
-
2495
- export function deploymentGetConfig21ToJSON(
2496
- deploymentGetConfig21: DeploymentGetConfig21,
2497
- ): string {
2498
- return JSON.stringify(
2499
- DeploymentGetConfig21$outboundSchema.parse(deploymentGetConfig21),
2500
- );
2501
- }
2502
- export function deploymentGetConfig21FromJSON(
2503
- jsonString: string,
2504
- ): SafeParseResult<DeploymentGetConfig21, SDKValidationError> {
2505
- return safeParse(
2506
- jsonString,
2507
- (x) => DeploymentGetConfig21$inboundSchema.parse(JSON.parse(x)),
2508
- `Failed to parse 'DeploymentGetConfig21' from JSON`,
2509
- );
2510
- }
2511
-
2512
- /** @internal */
2513
- export const DeploymentGetConfigContentDeploymentsRequest2$inboundSchema:
2514
- z.ZodType<
2515
- DeploymentGetConfigContentDeploymentsRequest2,
2516
- z.ZodTypeDef,
2517
- unknown
2518
- > = z.lazy(() => DeploymentGetConfig21$inboundSchema);
2519
- /** @internal */
2520
- export type DeploymentGetConfigContentDeploymentsRequest2$Outbound =
2521
- DeploymentGetConfig21$Outbound;
2522
-
2523
- /** @internal */
2524
- export const DeploymentGetConfigContentDeploymentsRequest2$outboundSchema:
2525
- z.ZodType<
2526
- DeploymentGetConfigContentDeploymentsRequest2$Outbound,
2527
- z.ZodTypeDef,
2528
- DeploymentGetConfigContentDeploymentsRequest2
2529
- > = z.lazy(() => DeploymentGetConfig21$outboundSchema);
2530
-
2531
- export function deploymentGetConfigContentDeploymentsRequest2ToJSON(
2532
- deploymentGetConfigContentDeploymentsRequest2:
2533
- DeploymentGetConfigContentDeploymentsRequest2,
2534
- ): string {
2535
- return JSON.stringify(
2536
- DeploymentGetConfigContentDeploymentsRequest2$outboundSchema.parse(
2537
- deploymentGetConfigContentDeploymentsRequest2,
2538
- ),
2539
- );
2540
- }
2541
- export function deploymentGetConfigContentDeploymentsRequest2FromJSON(
2542
- jsonString: string,
2543
- ): SafeParseResult<
2544
- DeploymentGetConfigContentDeploymentsRequest2,
2545
- SDKValidationError
2546
- > {
2547
- return safeParse(
2548
- jsonString,
2549
- (x) =>
2550
- DeploymentGetConfigContentDeploymentsRequest2$inboundSchema.parse(
2551
- JSON.parse(x),
2552
- ),
2553
- `Failed to parse 'DeploymentGetConfigContentDeploymentsRequest2' from JSON`,
2554
- );
2555
- }
2556
-
2557
- /** @internal */
2558
- export const DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$inboundSchema:
2559
- z.ZodType<
2560
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent,
2561
- z.ZodTypeDef,
2562
- unknown
2563
- > = z.union([
2564
- z.string(),
2565
- z.array(z.lazy(() => DeploymentGetConfig21$inboundSchema)),
2566
- ]);
2567
- /** @internal */
2568
- export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound =
2569
- | string
2570
- | Array<DeploymentGetConfig21$Outbound>;
2571
-
2572
- /** @internal */
2573
- export const DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema:
2574
- z.ZodType<
2575
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound,
2576
- z.ZodTypeDef,
2577
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent
2578
- > = z.union([
2579
- z.string(),
2580
- z.array(z.lazy(() => DeploymentGetConfig21$outboundSchema)),
2581
- ]);
2582
-
2583
- export function deploymentGetConfigPrefixMessagesDeploymentsRequestContentToJSON(
2584
- deploymentGetConfigPrefixMessagesDeploymentsRequestContent:
2585
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent,
2586
- ): string {
2587
- return JSON.stringify(
2588
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema
2589
- .parse(deploymentGetConfigPrefixMessagesDeploymentsRequestContent),
2590
- );
2591
- }
2592
- export function deploymentGetConfigPrefixMessagesDeploymentsRequestContentFromJSON(
2593
- jsonString: string,
2594
- ): SafeParseResult<
2595
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent,
2596
- SDKValidationError
2597
- > {
2598
- return safeParse(
2599
- jsonString,
2600
- (x) =>
2601
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$inboundSchema
2602
- .parse(JSON.parse(x)),
2603
- `Failed to parse 'DeploymentGetConfigPrefixMessagesDeploymentsRequestContent' from JSON`,
2604
- );
2605
- }
2606
-
2607
- /** @internal */
2608
- export const DeploymentGetConfigPrefixMessagesType$inboundSchema:
2609
- z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesType> = z.nativeEnum(
2610
- DeploymentGetConfigPrefixMessagesType,
2611
- );
1717
+ export const DeploymentGetConfigPrefixMessagesType$inboundSchema:
1718
+ z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesType> = z.nativeEnum(
1719
+ DeploymentGetConfigPrefixMessagesType,
1720
+ );
2612
1721
  /** @internal */
2613
1722
  export const DeploymentGetConfigPrefixMessagesType$outboundSchema:
2614
1723
  z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesType> =
@@ -2674,7 +1783,7 @@ export const ToolMessage$inboundSchema: z.ZodType<
2674
1783
  role: z.literal("tool"),
2675
1784
  content: z.union([
2676
1785
  z.string(),
2677
- z.array(z.lazy(() => DeploymentGetConfig21$inboundSchema)),
1786
+ z.array(components.TextContentPartSchema$inboundSchema),
2678
1787
  ]),
2679
1788
  tool_call_id: z.string(),
2680
1789
  cache_control: z.lazy(() => PrefixMessagesCacheControl$inboundSchema)
@@ -2688,7 +1797,7 @@ export const ToolMessage$inboundSchema: z.ZodType<
2688
1797
  /** @internal */
2689
1798
  export type ToolMessage$Outbound = {
2690
1799
  role: "tool";
2691
- content: string | Array<DeploymentGetConfig21$Outbound>;
1800
+ content: string | Array<components.TextContentPartSchema$Outbound>;
2692
1801
  tool_call_id: string;
2693
1802
  cache_control?: PrefixMessagesCacheControl$Outbound | undefined;
2694
1803
  };
@@ -2702,7 +1811,7 @@ export const ToolMessage$outboundSchema: z.ZodType<
2702
1811
  role: z.literal("tool"),
2703
1812
  content: z.union([
2704
1813
  z.string(),
2705
- z.array(z.lazy(() => DeploymentGetConfig21$outboundSchema)),
1814
+ z.array(components.TextContentPartSchema$outboundSchema),
2706
1815
  ]),
2707
1816
  toolCallId: z.string(),
2708
1817
  cacheControl: z.lazy(() => PrefixMessagesCacheControl$outboundSchema)
@@ -2728,247 +1837,128 @@ export function toolMessageFromJSON(
2728
1837
  }
2729
1838
 
2730
1839
  /** @internal */
2731
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema:
2732
- z.ZodNativeEnum<
2733
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType
2734
- > = z.nativeEnum(
2735
- DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType,
2736
- );
2737
- /** @internal */
2738
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema:
2739
- z.ZodNativeEnum<
2740
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType
2741
- > =
2742
- DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema;
2743
-
2744
- /** @internal */
2745
- export const DeploymentGetConfig2DeploymentsTtl$inboundSchema: z.ZodNativeEnum<
2746
- typeof DeploymentGetConfig2DeploymentsTtl
2747
- > = z.nativeEnum(DeploymentGetConfig2DeploymentsTtl);
2748
- /** @internal */
2749
- export const DeploymentGetConfig2DeploymentsTtl$outboundSchema: z.ZodNativeEnum<
2750
- typeof DeploymentGetConfig2DeploymentsTtl
2751
- > = DeploymentGetConfig2DeploymentsTtl$inboundSchema;
2752
-
2753
- /** @internal */
2754
- export const DeploymentGetConfig2DeploymentsCacheControl$inboundSchema:
2755
- z.ZodType<
2756
- DeploymentGetConfig2DeploymentsCacheControl,
2757
- z.ZodTypeDef,
2758
- unknown
2759
- > = z.object({
2760
- type:
2761
- DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema,
2762
- ttl: DeploymentGetConfig2DeploymentsTtl$inboundSchema.default("5m"),
2763
- });
2764
- /** @internal */
2765
- export type DeploymentGetConfig2DeploymentsCacheControl$Outbound = {
2766
- type: string;
2767
- ttl: string;
2768
- };
2769
-
2770
- /** @internal */
2771
- export const DeploymentGetConfig2DeploymentsCacheControl$outboundSchema:
2772
- z.ZodType<
2773
- DeploymentGetConfig2DeploymentsCacheControl$Outbound,
2774
- z.ZodTypeDef,
2775
- DeploymentGetConfig2DeploymentsCacheControl
2776
- > = z.object({
2777
- type:
2778
- DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema,
2779
- ttl: DeploymentGetConfig2DeploymentsTtl$outboundSchema.default("5m"),
2780
- });
2781
-
2782
- export function deploymentGetConfig2DeploymentsCacheControlToJSON(
2783
- deploymentGetConfig2DeploymentsCacheControl:
2784
- DeploymentGetConfig2DeploymentsCacheControl,
2785
- ): string {
2786
- return JSON.stringify(
2787
- DeploymentGetConfig2DeploymentsCacheControl$outboundSchema.parse(
2788
- deploymentGetConfig2DeploymentsCacheControl,
2789
- ),
2790
- );
2791
- }
2792
- export function deploymentGetConfig2DeploymentsCacheControlFromJSON(
2793
- jsonString: string,
2794
- ): SafeParseResult<
2795
- DeploymentGetConfig2DeploymentsCacheControl,
2796
- SDKValidationError
2797
- > {
2798
- return safeParse(
2799
- jsonString,
2800
- (x) =>
2801
- DeploymentGetConfig2DeploymentsCacheControl$inboundSchema.parse(
2802
- JSON.parse(x),
2803
- ),
2804
- `Failed to parse 'DeploymentGetConfig2DeploymentsCacheControl' from JSON`,
2805
- );
2806
- }
2807
-
2808
- /** @internal */
2809
- export const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown> = z
2810
- .object({
2811
- type: z.literal("text"),
2812
- text: z.string(),
2813
- cache_control: z.lazy(() =>
2814
- DeploymentGetConfig2DeploymentsCacheControl$inboundSchema
2815
- ).optional(),
2816
- }).transform((v) => {
2817
- return remap$(v, {
2818
- "cache_control": "cacheControl",
2819
- });
2820
- });
2821
- /** @internal */
2822
- export type Two1$Outbound = {
2823
- type: "text";
2824
- text: string;
2825
- cache_control?:
2826
- | DeploymentGetConfig2DeploymentsCacheControl$Outbound
2827
- | undefined;
2828
- };
2829
-
2830
- /** @internal */
2831
- export const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1> =
2832
- z.object({
2833
- type: z.literal("text"),
2834
- text: z.string(),
2835
- cacheControl: z.lazy(() =>
2836
- DeploymentGetConfig2DeploymentsCacheControl$outboundSchema
2837
- ).optional(),
2838
- }).transform((v) => {
2839
- return remap$(v, {
2840
- cacheControl: "cache_control",
2841
- });
2842
- });
2843
-
2844
- export function two1ToJSON(two1: Two1): string {
2845
- return JSON.stringify(Two1$outboundSchema.parse(two1));
2846
- }
2847
- export function two1FromJSON(
2848
- jsonString: string,
2849
- ): SafeParseResult<Two1, SDKValidationError> {
2850
- return safeParse(
2851
- jsonString,
2852
- (x) => Two1$inboundSchema.parse(JSON.parse(x)),
2853
- `Failed to parse 'Two1' from JSON`,
2854
- );
2855
- }
2856
-
2857
- /** @internal */
2858
- export const DeploymentGetConfigContentDeployments2$inboundSchema: z.ZodType<
2859
- DeploymentGetConfigContentDeployments2,
1840
+ export const DeploymentGetConfigContent2$inboundSchema: z.ZodType<
1841
+ DeploymentGetConfigContent2,
2860
1842
  z.ZodTypeDef,
2861
1843
  unknown
2862
1844
  > = z.union([
2863
- z.lazy(() => Two1$inboundSchema),
1845
+ components.TextContentPartSchema$inboundSchema.and(
1846
+ z.object({ type: z.literal("text") }),
1847
+ ),
2864
1848
  components.RefusalPartSchema$inboundSchema,
2865
1849
  components.ReasoningPartSchema$inboundSchema,
2866
1850
  components.RedactedReasoningPartSchema$inboundSchema,
2867
1851
  ]);
2868
1852
  /** @internal */
2869
- export type DeploymentGetConfigContentDeployments2$Outbound =
2870
- | Two1$Outbound
1853
+ export type DeploymentGetConfigContent2$Outbound =
1854
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2871
1855
  | components.RefusalPartSchema$Outbound
2872
1856
  | components.ReasoningPartSchema$Outbound
2873
1857
  | components.RedactedReasoningPartSchema$Outbound;
2874
1858
 
2875
1859
  /** @internal */
2876
- export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
2877
- DeploymentGetConfigContentDeployments2$Outbound,
1860
+ export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
1861
+ DeploymentGetConfigContent2$Outbound,
2878
1862
  z.ZodTypeDef,
2879
- DeploymentGetConfigContentDeployments2
1863
+ DeploymentGetConfigContent2
2880
1864
  > = z.union([
2881
- z.lazy(() => Two1$outboundSchema),
1865
+ components.TextContentPartSchema$outboundSchema.and(
1866
+ z.object({ type: z.literal("text") }),
1867
+ ),
2882
1868
  components.RefusalPartSchema$outboundSchema,
2883
1869
  components.ReasoningPartSchema$outboundSchema,
2884
1870
  components.RedactedReasoningPartSchema$outboundSchema,
2885
1871
  ]);
2886
1872
 
2887
- export function deploymentGetConfigContentDeployments2ToJSON(
2888
- deploymentGetConfigContentDeployments2:
2889
- DeploymentGetConfigContentDeployments2,
1873
+ export function deploymentGetConfigContent2ToJSON(
1874
+ deploymentGetConfigContent2: DeploymentGetConfigContent2,
2890
1875
  ): string {
2891
1876
  return JSON.stringify(
2892
- DeploymentGetConfigContentDeployments2$outboundSchema.parse(
2893
- deploymentGetConfigContentDeployments2,
1877
+ DeploymentGetConfigContent2$outboundSchema.parse(
1878
+ deploymentGetConfigContent2,
2894
1879
  ),
2895
1880
  );
2896
1881
  }
2897
- export function deploymentGetConfigContentDeployments2FromJSON(
1882
+ export function deploymentGetConfigContent2FromJSON(
2898
1883
  jsonString: string,
2899
- ): SafeParseResult<DeploymentGetConfigContentDeployments2, SDKValidationError> {
1884
+ ): SafeParseResult<DeploymentGetConfigContent2, SDKValidationError> {
2900
1885
  return safeParse(
2901
1886
  jsonString,
2902
- (x) =>
2903
- DeploymentGetConfigContentDeployments2$inboundSchema.parse(JSON.parse(x)),
2904
- `Failed to parse 'DeploymentGetConfigContentDeployments2' from JSON`,
1887
+ (x) => DeploymentGetConfigContent2$inboundSchema.parse(JSON.parse(x)),
1888
+ `Failed to parse 'DeploymentGetConfigContent2' from JSON`,
2905
1889
  );
2906
1890
  }
2907
1891
 
2908
1892
  /** @internal */
2909
- export const DeploymentGetConfigPrefixMessagesDeploymentsContent$inboundSchema:
1893
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$inboundSchema:
2910
1894
  z.ZodType<
2911
- DeploymentGetConfigPrefixMessagesDeploymentsContent,
1895
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent,
2912
1896
  z.ZodTypeDef,
2913
1897
  unknown
2914
1898
  > = z.union([
2915
1899
  z.string(),
2916
- z.array(z.union([
2917
- z.lazy(() => Two1$inboundSchema),
2918
- components.RefusalPartSchema$inboundSchema,
2919
- components.ReasoningPartSchema$inboundSchema,
2920
- components.RedactedReasoningPartSchema$inboundSchema,
2921
- ])),
1900
+ z.array(
1901
+ z.union([
1902
+ components.TextContentPartSchema$inboundSchema.and(
1903
+ z.object({ type: z.literal("text") }),
1904
+ ),
1905
+ components.RefusalPartSchema$inboundSchema,
1906
+ components.ReasoningPartSchema$inboundSchema,
1907
+ components.RedactedReasoningPartSchema$inboundSchema,
1908
+ ]),
1909
+ ),
2922
1910
  ]);
2923
1911
  /** @internal */
2924
- export type DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound =
1912
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound =
2925
1913
  | string
2926
1914
  | Array<
2927
- | Two1$Outbound
1915
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2928
1916
  | components.RefusalPartSchema$Outbound
2929
1917
  | components.ReasoningPartSchema$Outbound
2930
1918
  | components.RedactedReasoningPartSchema$Outbound
2931
1919
  >;
2932
1920
 
2933
1921
  /** @internal */
2934
- export const DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema:
1922
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema:
2935
1923
  z.ZodType<
2936
- DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound,
1924
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound,
2937
1925
  z.ZodTypeDef,
2938
- DeploymentGetConfigPrefixMessagesDeploymentsContent
1926
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent
2939
1927
  > = z.union([
2940
1928
  z.string(),
2941
- z.array(z.union([
2942
- z.lazy(() => Two1$outboundSchema),
2943
- components.RefusalPartSchema$outboundSchema,
2944
- components.ReasoningPartSchema$outboundSchema,
2945
- components.RedactedReasoningPartSchema$outboundSchema,
2946
- ])),
1929
+ z.array(
1930
+ z.union([
1931
+ components.TextContentPartSchema$outboundSchema.and(
1932
+ z.object({ type: z.literal("text") }),
1933
+ ),
1934
+ components.RefusalPartSchema$outboundSchema,
1935
+ components.ReasoningPartSchema$outboundSchema,
1936
+ components.RedactedReasoningPartSchema$outboundSchema,
1937
+ ]),
1938
+ ),
2947
1939
  ]);
2948
1940
 
2949
- export function deploymentGetConfigPrefixMessagesDeploymentsContentToJSON(
2950
- deploymentGetConfigPrefixMessagesDeploymentsContent:
2951
- DeploymentGetConfigPrefixMessagesDeploymentsContent,
1941
+ export function deploymentGetConfigPrefixMessagesDeploymentsRequestContentToJSON(
1942
+ deploymentGetConfigPrefixMessagesDeploymentsRequestContent:
1943
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent,
2952
1944
  ): string {
2953
1945
  return JSON.stringify(
2954
- DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema.parse(
2955
- deploymentGetConfigPrefixMessagesDeploymentsContent,
2956
- ),
1946
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema
1947
+ .parse(deploymentGetConfigPrefixMessagesDeploymentsRequestContent),
2957
1948
  );
2958
1949
  }
2959
- export function deploymentGetConfigPrefixMessagesDeploymentsContentFromJSON(
1950
+ export function deploymentGetConfigPrefixMessagesDeploymentsRequestContentFromJSON(
2960
1951
  jsonString: string,
2961
1952
  ): SafeParseResult<
2962
- DeploymentGetConfigPrefixMessagesDeploymentsContent,
1953
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent,
2963
1954
  SDKValidationError
2964
1955
  > {
2965
1956
  return safeParse(
2966
1957
  jsonString,
2967
1958
  (x) =>
2968
- DeploymentGetConfigPrefixMessagesDeploymentsContent$inboundSchema.parse(
2969
- JSON.parse(x),
2970
- ),
2971
- `Failed to parse 'DeploymentGetConfigPrefixMessagesDeploymentsContent' from JSON`,
1959
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$inboundSchema
1960
+ .parse(JSON.parse(x)),
1961
+ `Failed to parse 'DeploymentGetConfigPrefixMessagesDeploymentsRequestContent' from JSON`,
2972
1962
  );
2973
1963
  }
2974
1964
 
@@ -3014,8 +2004,8 @@ export const PrefixMessagesType$outboundSchema: z.ZodNativeEnum<
3014
2004
  > = PrefixMessagesType$inboundSchema;
3015
2005
 
3016
2006
  /** @internal */
3017
- export const FunctionT$inboundSchema: z.ZodType<
3018
- FunctionT,
2007
+ export const PrefixMessagesFunction$inboundSchema: z.ZodType<
2008
+ PrefixMessagesFunction,
3019
2009
  z.ZodTypeDef,
3020
2010
  unknown
3021
2011
  > = z.object({
@@ -3023,43 +2013,47 @@ export const FunctionT$inboundSchema: z.ZodType<
3023
2013
  arguments: z.string().optional(),
3024
2014
  });
3025
2015
  /** @internal */
3026
- export type FunctionT$Outbound = {
2016
+ export type PrefixMessagesFunction$Outbound = {
3027
2017
  name?: string | undefined;
3028
2018
  arguments?: string | undefined;
3029
2019
  };
3030
2020
 
3031
2021
  /** @internal */
3032
- export const FunctionT$outboundSchema: z.ZodType<
3033
- FunctionT$Outbound,
2022
+ export const PrefixMessagesFunction$outboundSchema: z.ZodType<
2023
+ PrefixMessagesFunction$Outbound,
3034
2024
  z.ZodTypeDef,
3035
- FunctionT
2025
+ PrefixMessagesFunction
3036
2026
  > = z.object({
3037
2027
  name: z.string().optional(),
3038
2028
  arguments: z.string().optional(),
3039
2029
  });
3040
2030
 
3041
- export function functionToJSON(functionT: FunctionT): string {
3042
- return JSON.stringify(FunctionT$outboundSchema.parse(functionT));
2031
+ export function prefixMessagesFunctionToJSON(
2032
+ prefixMessagesFunction: PrefixMessagesFunction,
2033
+ ): string {
2034
+ return JSON.stringify(
2035
+ PrefixMessagesFunction$outboundSchema.parse(prefixMessagesFunction),
2036
+ );
3043
2037
  }
3044
- export function functionFromJSON(
2038
+ export function prefixMessagesFunctionFromJSON(
3045
2039
  jsonString: string,
3046
- ): SafeParseResult<FunctionT, SDKValidationError> {
2040
+ ): SafeParseResult<PrefixMessagesFunction, SDKValidationError> {
3047
2041
  return safeParse(
3048
2042
  jsonString,
3049
- (x) => FunctionT$inboundSchema.parse(JSON.parse(x)),
3050
- `Failed to parse 'FunctionT' from JSON`,
2043
+ (x) => PrefixMessagesFunction$inboundSchema.parse(JSON.parse(x)),
2044
+ `Failed to parse 'PrefixMessagesFunction' from JSON`,
3051
2045
  );
3052
2046
  }
3053
2047
 
3054
2048
  /** @internal */
3055
- export const ToolCalls$inboundSchema: z.ZodType<
3056
- ToolCalls,
2049
+ export const PrefixMessagesToolCalls$inboundSchema: z.ZodType<
2050
+ PrefixMessagesToolCalls,
3057
2051
  z.ZodTypeDef,
3058
2052
  unknown
3059
2053
  > = z.object({
3060
2054
  id: z.string(),
3061
2055
  type: PrefixMessagesType$inboundSchema,
3062
- function: z.lazy(() => FunctionT$inboundSchema),
2056
+ function: z.lazy(() => PrefixMessagesFunction$inboundSchema),
3063
2057
  thought_signature: z.string().optional(),
3064
2058
  }).transform((v) => {
3065
2059
  return remap$(v, {
@@ -3067,22 +2061,22 @@ export const ToolCalls$inboundSchema: z.ZodType<
3067
2061
  });
3068
2062
  });
3069
2063
  /** @internal */
3070
- export type ToolCalls$Outbound = {
2064
+ export type PrefixMessagesToolCalls$Outbound = {
3071
2065
  id: string;
3072
2066
  type: string;
3073
- function: FunctionT$Outbound;
2067
+ function: PrefixMessagesFunction$Outbound;
3074
2068
  thought_signature?: string | undefined;
3075
2069
  };
3076
2070
 
3077
2071
  /** @internal */
3078
- export const ToolCalls$outboundSchema: z.ZodType<
3079
- ToolCalls$Outbound,
2072
+ export const PrefixMessagesToolCalls$outboundSchema: z.ZodType<
2073
+ PrefixMessagesToolCalls$Outbound,
3080
2074
  z.ZodTypeDef,
3081
- ToolCalls
2075
+ PrefixMessagesToolCalls
3082
2076
  > = z.object({
3083
2077
  id: z.string(),
3084
2078
  type: PrefixMessagesType$outboundSchema,
3085
- function: z.lazy(() => FunctionT$outboundSchema),
2079
+ function: z.lazy(() => PrefixMessagesFunction$outboundSchema),
3086
2080
  thoughtSignature: z.string().optional(),
3087
2081
  }).transform((v) => {
3088
2082
  return remap$(v, {
@@ -3090,16 +2084,20 @@ export const ToolCalls$outboundSchema: z.ZodType<
3090
2084
  });
3091
2085
  });
3092
2086
 
3093
- export function toolCallsToJSON(toolCalls: ToolCalls): string {
3094
- return JSON.stringify(ToolCalls$outboundSchema.parse(toolCalls));
2087
+ export function prefixMessagesToolCallsToJSON(
2088
+ prefixMessagesToolCalls: PrefixMessagesToolCalls,
2089
+ ): string {
2090
+ return JSON.stringify(
2091
+ PrefixMessagesToolCalls$outboundSchema.parse(prefixMessagesToolCalls),
2092
+ );
3095
2093
  }
3096
- export function toolCallsFromJSON(
2094
+ export function prefixMessagesToolCallsFromJSON(
3097
2095
  jsonString: string,
3098
- ): SafeParseResult<ToolCalls, SDKValidationError> {
2096
+ ): SafeParseResult<PrefixMessagesToolCalls, SDKValidationError> {
3099
2097
  return safeParse(
3100
2098
  jsonString,
3101
- (x) => ToolCalls$inboundSchema.parse(JSON.parse(x)),
3102
- `Failed to parse 'ToolCalls' from JSON`,
2099
+ (x) => PrefixMessagesToolCalls$inboundSchema.parse(JSON.parse(x)),
2100
+ `Failed to parse 'PrefixMessagesToolCalls' from JSON`,
3103
2101
  );
3104
2102
  }
3105
2103
 
@@ -3114,7 +2112,9 @@ export const AssistantMessage$inboundSchema: z.ZodType<
3114
2112
  z.string(),
3115
2113
  z.array(
3116
2114
  z.union([
3117
- z.lazy(() => Two1$inboundSchema),
2115
+ components.TextContentPartSchema$inboundSchema.and(
2116
+ z.object({ type: z.literal("text") }),
2117
+ ),
3118
2118
  components.RefusalPartSchema$inboundSchema,
3119
2119
  components.ReasoningPartSchema$inboundSchema,
3120
2120
  components.RedactedReasoningPartSchema$inboundSchema,
@@ -3126,7 +2126,8 @@ export const AssistantMessage$inboundSchema: z.ZodType<
3126
2126
  role: z.literal("assistant"),
3127
2127
  name: z.string().optional(),
3128
2128
  audio: z.nullable(z.lazy(() => Audio$inboundSchema)).optional(),
3129
- tool_calls: z.array(z.lazy(() => ToolCalls$inboundSchema)).optional(),
2129
+ tool_calls: z.array(z.lazy(() => PrefixMessagesToolCalls$inboundSchema))
2130
+ .optional(),
3130
2131
  }).transform((v) => {
3131
2132
  return remap$(v, {
3132
2133
  "tool_calls": "toolCalls",
@@ -3137,7 +2138,7 @@ export type AssistantMessage$Outbound = {
3137
2138
  content?:
3138
2139
  | string
3139
2140
  | Array<
3140
- | Two1$Outbound
2141
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
3141
2142
  | components.RefusalPartSchema$Outbound
3142
2143
  | components.ReasoningPartSchema$Outbound
3143
2144
  | components.RedactedReasoningPartSchema$Outbound
@@ -3148,7 +2149,7 @@ export type AssistantMessage$Outbound = {
3148
2149
  role: "assistant";
3149
2150
  name?: string | undefined;
3150
2151
  audio?: Audio$Outbound | null | undefined;
3151
- tool_calls?: Array<ToolCalls$Outbound> | undefined;
2152
+ tool_calls?: Array<PrefixMessagesToolCalls$Outbound> | undefined;
3152
2153
  };
3153
2154
 
3154
2155
  /** @internal */
@@ -3162,7 +2163,9 @@ export const AssistantMessage$outboundSchema: z.ZodType<
3162
2163
  z.string(),
3163
2164
  z.array(
3164
2165
  z.union([
3165
- z.lazy(() => Two1$outboundSchema),
2166
+ components.TextContentPartSchema$outboundSchema.and(
2167
+ z.object({ type: z.literal("text") }),
2168
+ ),
3166
2169
  components.RefusalPartSchema$outboundSchema,
3167
2170
  components.ReasoningPartSchema$outboundSchema,
3168
2171
  components.RedactedReasoningPartSchema$outboundSchema,
@@ -3174,7 +2177,8 @@ export const AssistantMessage$outboundSchema: z.ZodType<
3174
2177
  role: z.literal("assistant"),
3175
2178
  name: z.string().optional(),
3176
2179
  audio: z.nullable(z.lazy(() => Audio$outboundSchema)).optional(),
3177
- toolCalls: z.array(z.lazy(() => ToolCalls$outboundSchema)).optional(),
2180
+ toolCalls: z.array(z.lazy(() => PrefixMessagesToolCalls$outboundSchema))
2181
+ .optional(),
3178
2182
  }).transform((v) => {
3179
2183
  return remap$(v, {
3180
2184
  toolCalls: "tool_calls",
@@ -3199,64 +2203,55 @@ export function assistantMessageFromJSON(
3199
2203
  }
3200
2204
 
3201
2205
  /** @internal */
3202
- export const DeploymentGetConfig2DeploymentsRequestType$inboundSchema:
3203
- z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestType> = z
3204
- .nativeEnum(DeploymentGetConfig2DeploymentsRequestType);
2206
+ export const DeploymentGetConfig2DeploymentsType$inboundSchema: z.ZodNativeEnum<
2207
+ typeof DeploymentGetConfig2DeploymentsType
2208
+ > = z.nativeEnum(DeploymentGetConfig2DeploymentsType);
3205
2209
  /** @internal */
3206
- export const DeploymentGetConfig2DeploymentsRequestType$outboundSchema:
3207
- z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestType> =
3208
- DeploymentGetConfig2DeploymentsRequestType$inboundSchema;
2210
+ export const DeploymentGetConfig2DeploymentsType$outboundSchema:
2211
+ z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsType> =
2212
+ DeploymentGetConfig2DeploymentsType$inboundSchema;
3209
2213
 
3210
2214
  /** @internal */
3211
- export const DeploymentGetConfig2Ttl$inboundSchema: z.ZodNativeEnum<
3212
- typeof DeploymentGetConfig2Ttl
3213
- > = z.nativeEnum(DeploymentGetConfig2Ttl);
2215
+ export const Ttl$inboundSchema: z.ZodNativeEnum<typeof Ttl> = z.nativeEnum(Ttl);
3214
2216
  /** @internal */
3215
- export const DeploymentGetConfig2Ttl$outboundSchema: z.ZodNativeEnum<
3216
- typeof DeploymentGetConfig2Ttl
3217
- > = DeploymentGetConfig2Ttl$inboundSchema;
2217
+ export const Ttl$outboundSchema: z.ZodNativeEnum<typeof Ttl> =
2218
+ Ttl$inboundSchema;
3218
2219
 
3219
2220
  /** @internal */
3220
- export const DeploymentGetConfig2CacheControl$inboundSchema: z.ZodType<
3221
- DeploymentGetConfig2CacheControl,
2221
+ export const CacheControl$inboundSchema: z.ZodType<
2222
+ CacheControl,
3222
2223
  z.ZodTypeDef,
3223
2224
  unknown
3224
2225
  > = z.object({
3225
- type: DeploymentGetConfig2DeploymentsRequestType$inboundSchema,
3226
- ttl: DeploymentGetConfig2Ttl$inboundSchema.default("5m"),
2226
+ type: DeploymentGetConfig2DeploymentsType$inboundSchema,
2227
+ ttl: Ttl$inboundSchema.default("5m"),
3227
2228
  });
3228
2229
  /** @internal */
3229
- export type DeploymentGetConfig2CacheControl$Outbound = {
2230
+ export type CacheControl$Outbound = {
3230
2231
  type: string;
3231
2232
  ttl: string;
3232
2233
  };
3233
2234
 
3234
2235
  /** @internal */
3235
- export const DeploymentGetConfig2CacheControl$outboundSchema: z.ZodType<
3236
- DeploymentGetConfig2CacheControl$Outbound,
2236
+ export const CacheControl$outboundSchema: z.ZodType<
2237
+ CacheControl$Outbound,
3237
2238
  z.ZodTypeDef,
3238
- DeploymentGetConfig2CacheControl
2239
+ CacheControl
3239
2240
  > = z.object({
3240
- type: DeploymentGetConfig2DeploymentsRequestType$outboundSchema,
3241
- ttl: DeploymentGetConfig2Ttl$outboundSchema.default("5m"),
2241
+ type: DeploymentGetConfig2DeploymentsType$outboundSchema,
2242
+ ttl: Ttl$outboundSchema.default("5m"),
3242
2243
  });
3243
2244
 
3244
- export function deploymentGetConfig2CacheControlToJSON(
3245
- deploymentGetConfig2CacheControl: DeploymentGetConfig2CacheControl,
3246
- ): string {
3247
- return JSON.stringify(
3248
- DeploymentGetConfig2CacheControl$outboundSchema.parse(
3249
- deploymentGetConfig2CacheControl,
3250
- ),
3251
- );
2245
+ export function cacheControlToJSON(cacheControl: CacheControl): string {
2246
+ return JSON.stringify(CacheControl$outboundSchema.parse(cacheControl));
3252
2247
  }
3253
- export function deploymentGetConfig2CacheControlFromJSON(
2248
+ export function cacheControlFromJSON(
3254
2249
  jsonString: string,
3255
- ): SafeParseResult<DeploymentGetConfig2CacheControl, SDKValidationError> {
2250
+ ): SafeParseResult<CacheControl, SDKValidationError> {
3256
2251
  return safeParse(
3257
2252
  jsonString,
3258
- (x) => DeploymentGetConfig2CacheControl$inboundSchema.parse(JSON.parse(x)),
3259
- `Failed to parse 'DeploymentGetConfig2CacheControl' from JSON`,
2253
+ (x) => CacheControl$inboundSchema.parse(JSON.parse(x)),
2254
+ `Failed to parse 'CacheControl' from JSON`,
3260
2255
  );
3261
2256
  }
3262
2257
 
@@ -3264,8 +2259,7 @@ export function deploymentGetConfig2CacheControlFromJSON(
3264
2259
  export const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown> = z
3265
2260
  .object({
3266
2261
  type: z.literal("file"),
3267
- cache_control: z.lazy(() => DeploymentGetConfig2CacheControl$inboundSchema)
3268
- .optional(),
2262
+ cache_control: z.lazy(() => CacheControl$inboundSchema).optional(),
3269
2263
  file: components.FileContentPartSchema$inboundSchema,
3270
2264
  }).transform((v) => {
3271
2265
  return remap$(v, {
@@ -3275,7 +2269,7 @@ export const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown> = z
3275
2269
  /** @internal */
3276
2270
  export type Four$Outbound = {
3277
2271
  type: "file";
3278
- cache_control?: DeploymentGetConfig2CacheControl$Outbound | undefined;
2272
+ cache_control?: CacheControl$Outbound | undefined;
3279
2273
  file: components.FileContentPartSchema$Outbound;
3280
2274
  };
3281
2275
 
@@ -3283,8 +2277,7 @@ export type Four$Outbound = {
3283
2277
  export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
3284
2278
  z.object({
3285
2279
  type: z.literal("file"),
3286
- cacheControl: z.lazy(() => DeploymentGetConfig2CacheControl$outboundSchema)
3287
- .optional(),
2280
+ cacheControl: z.lazy(() => CacheControl$outboundSchema).optional(),
3288
2281
  file: components.FileContentPartSchema$outboundSchema,
3289
2282
  }).transform((v) => {
3290
2283
  return remap$(v, {
@@ -3306,215 +2299,124 @@ export function fourFromJSON(
3306
2299
  }
3307
2300
 
3308
2301
  /** @internal */
3309
- export const DeploymentGetConfig2Type$inboundSchema: z.ZodNativeEnum<
3310
- typeof DeploymentGetConfig2Type
3311
- > = z.nativeEnum(DeploymentGetConfig2Type);
3312
- /** @internal */
3313
- export const DeploymentGetConfig2Type$outboundSchema: z.ZodNativeEnum<
3314
- typeof DeploymentGetConfig2Type
3315
- > = DeploymentGetConfig2Type$inboundSchema;
3316
-
3317
- /** @internal */
3318
- export const TwoTtl$inboundSchema: z.ZodNativeEnum<typeof TwoTtl> = z
3319
- .nativeEnum(TwoTtl);
3320
- /** @internal */
3321
- export const TwoTtl$outboundSchema: z.ZodNativeEnum<typeof TwoTtl> =
3322
- TwoTtl$inboundSchema;
3323
-
3324
- /** @internal */
3325
- export const TwoCacheControl$inboundSchema: z.ZodType<
3326
- TwoCacheControl,
3327
- z.ZodTypeDef,
3328
- unknown
3329
- > = z.object({
3330
- type: DeploymentGetConfig2Type$inboundSchema,
3331
- ttl: TwoTtl$inboundSchema.default("5m"),
3332
- });
3333
- /** @internal */
3334
- export type TwoCacheControl$Outbound = {
3335
- type: string;
3336
- ttl: string;
3337
- };
3338
-
3339
- /** @internal */
3340
- export const TwoCacheControl$outboundSchema: z.ZodType<
3341
- TwoCacheControl$Outbound,
3342
- z.ZodTypeDef,
3343
- TwoCacheControl
3344
- > = z.object({
3345
- type: DeploymentGetConfig2Type$outboundSchema,
3346
- ttl: TwoTtl$outboundSchema.default("5m"),
3347
- });
3348
-
3349
- export function twoCacheControlToJSON(
3350
- twoCacheControl: TwoCacheControl,
3351
- ): string {
3352
- return JSON.stringify(TwoCacheControl$outboundSchema.parse(twoCacheControl));
3353
- }
3354
- export function twoCacheControlFromJSON(
3355
- jsonString: string,
3356
- ): SafeParseResult<TwoCacheControl, SDKValidationError> {
3357
- return safeParse(
3358
- jsonString,
3359
- (x) => TwoCacheControl$inboundSchema.parse(JSON.parse(x)),
3360
- `Failed to parse 'TwoCacheControl' from JSON`,
3361
- );
3362
- }
3363
-
3364
- /** @internal */
3365
- export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
3366
- .object({
3367
- type: z.literal("text"),
3368
- text: z.string(),
3369
- cache_control: z.lazy(() => TwoCacheControl$inboundSchema).optional(),
3370
- }).transform((v) => {
3371
- return remap$(v, {
3372
- "cache_control": "cacheControl",
3373
- });
3374
- });
3375
- /** @internal */
3376
- export type One$Outbound = {
3377
- type: "text";
3378
- text: string;
3379
- cache_control?: TwoCacheControl$Outbound | undefined;
3380
- };
3381
-
3382
- /** @internal */
3383
- export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
3384
- .object({
3385
- type: z.literal("text"),
3386
- text: z.string(),
3387
- cacheControl: z.lazy(() => TwoCacheControl$outboundSchema).optional(),
3388
- }).transform((v) => {
3389
- return remap$(v, {
3390
- cacheControl: "cache_control",
3391
- });
3392
- });
3393
-
3394
- export function oneToJSON(one: One): string {
3395
- return JSON.stringify(One$outboundSchema.parse(one));
3396
- }
3397
- export function oneFromJSON(
3398
- jsonString: string,
3399
- ): SafeParseResult<One, SDKValidationError> {
3400
- return safeParse(
3401
- jsonString,
3402
- (x) => One$inboundSchema.parse(JSON.parse(x)),
3403
- `Failed to parse 'One' from JSON`,
3404
- );
3405
- }
3406
-
3407
- /** @internal */
3408
- export const DeploymentGetConfigContent2$inboundSchema: z.ZodType<
3409
- DeploymentGetConfigContent2,
2302
+ export const Content2$inboundSchema: z.ZodType<
2303
+ Content2,
3410
2304
  z.ZodTypeDef,
3411
2305
  unknown
3412
2306
  > = z.union([
3413
- z.lazy(() => One$inboundSchema),
2307
+ components.TextContentPartSchema$inboundSchema.and(
2308
+ z.object({ type: z.literal("text") }),
2309
+ ),
3414
2310
  components.ImageContentPartSchema$inboundSchema,
3415
2311
  components.AudioContentPartSchema$inboundSchema,
3416
2312
  z.lazy(() => Four$inboundSchema),
3417
2313
  ]);
3418
2314
  /** @internal */
3419
- export type DeploymentGetConfigContent2$Outbound =
3420
- | One$Outbound
2315
+ export type Content2$Outbound =
2316
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
3421
2317
  | components.ImageContentPartSchema$Outbound
3422
2318
  | components.AudioContentPartSchema$Outbound
3423
2319
  | Four$Outbound;
3424
2320
 
3425
2321
  /** @internal */
3426
- export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
3427
- DeploymentGetConfigContent2$Outbound,
2322
+ export const Content2$outboundSchema: z.ZodType<
2323
+ Content2$Outbound,
3428
2324
  z.ZodTypeDef,
3429
- DeploymentGetConfigContent2
2325
+ Content2
3430
2326
  > = z.union([
3431
- z.lazy(() => One$outboundSchema),
2327
+ components.TextContentPartSchema$outboundSchema.and(
2328
+ z.object({ type: z.literal("text") }),
2329
+ ),
3432
2330
  components.ImageContentPartSchema$outboundSchema,
3433
2331
  components.AudioContentPartSchema$outboundSchema,
3434
2332
  z.lazy(() => Four$outboundSchema),
3435
2333
  ]);
3436
2334
 
3437
- export function deploymentGetConfigContent2ToJSON(
3438
- deploymentGetConfigContent2: DeploymentGetConfigContent2,
3439
- ): string {
3440
- return JSON.stringify(
3441
- DeploymentGetConfigContent2$outboundSchema.parse(
3442
- deploymentGetConfigContent2,
3443
- ),
3444
- );
2335
+ export function content2ToJSON(content2: Content2): string {
2336
+ return JSON.stringify(Content2$outboundSchema.parse(content2));
3445
2337
  }
3446
- export function deploymentGetConfigContent2FromJSON(
2338
+ export function content2FromJSON(
3447
2339
  jsonString: string,
3448
- ): SafeParseResult<DeploymentGetConfigContent2, SDKValidationError> {
2340
+ ): SafeParseResult<Content2, SDKValidationError> {
3449
2341
  return safeParse(
3450
2342
  jsonString,
3451
- (x) => DeploymentGetConfigContent2$inboundSchema.parse(JSON.parse(x)),
3452
- `Failed to parse 'DeploymentGetConfigContent2' from JSON`,
2343
+ (x) => Content2$inboundSchema.parse(JSON.parse(x)),
2344
+ `Failed to parse 'Content2' from JSON`,
3453
2345
  );
3454
2346
  }
3455
2347
 
3456
2348
  /** @internal */
3457
- export const DeploymentGetConfigPrefixMessagesContent$inboundSchema: z.ZodType<
3458
- DeploymentGetConfigPrefixMessagesContent,
3459
- z.ZodTypeDef,
3460
- unknown
3461
- > = z.union([
3462
- z.string(),
3463
- z.array(z.union([
3464
- z.lazy(() => One$inboundSchema),
3465
- components.ImageContentPartSchema$inboundSchema,
3466
- components.AudioContentPartSchema$inboundSchema,
3467
- z.lazy(() => Four$inboundSchema),
3468
- ])),
3469
- ]);
2349
+ export const DeploymentGetConfigPrefixMessagesDeploymentsContent$inboundSchema:
2350
+ z.ZodType<
2351
+ DeploymentGetConfigPrefixMessagesDeploymentsContent,
2352
+ z.ZodTypeDef,
2353
+ unknown
2354
+ > = z.union([
2355
+ z.string(),
2356
+ z.array(
2357
+ z.union([
2358
+ components.TextContentPartSchema$inboundSchema.and(
2359
+ z.object({ type: z.literal("text") }),
2360
+ ),
2361
+ components.ImageContentPartSchema$inboundSchema,
2362
+ components.AudioContentPartSchema$inboundSchema,
2363
+ z.lazy(() => Four$inboundSchema),
2364
+ ]),
2365
+ ),
2366
+ ]);
3470
2367
  /** @internal */
3471
- export type DeploymentGetConfigPrefixMessagesContent$Outbound =
2368
+ export type DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound =
3472
2369
  | string
3473
2370
  | Array<
3474
- | One$Outbound
2371
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
3475
2372
  | components.ImageContentPartSchema$Outbound
3476
2373
  | components.AudioContentPartSchema$Outbound
3477
2374
  | Four$Outbound
3478
2375
  >;
3479
2376
 
3480
2377
  /** @internal */
3481
- export const DeploymentGetConfigPrefixMessagesContent$outboundSchema: z.ZodType<
3482
- DeploymentGetConfigPrefixMessagesContent$Outbound,
3483
- z.ZodTypeDef,
3484
- DeploymentGetConfigPrefixMessagesContent
3485
- > = z.union([
3486
- z.string(),
3487
- z.array(z.union([
3488
- z.lazy(() => One$outboundSchema),
3489
- components.ImageContentPartSchema$outboundSchema,
3490
- components.AudioContentPartSchema$outboundSchema,
3491
- z.lazy(() => Four$outboundSchema),
3492
- ])),
3493
- ]);
2378
+ export const DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema:
2379
+ z.ZodType<
2380
+ DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound,
2381
+ z.ZodTypeDef,
2382
+ DeploymentGetConfigPrefixMessagesDeploymentsContent
2383
+ > = z.union([
2384
+ z.string(),
2385
+ z.array(
2386
+ z.union([
2387
+ components.TextContentPartSchema$outboundSchema.and(
2388
+ z.object({ type: z.literal("text") }),
2389
+ ),
2390
+ components.ImageContentPartSchema$outboundSchema,
2391
+ components.AudioContentPartSchema$outboundSchema,
2392
+ z.lazy(() => Four$outboundSchema),
2393
+ ]),
2394
+ ),
2395
+ ]);
3494
2396
 
3495
- export function deploymentGetConfigPrefixMessagesContentToJSON(
3496
- deploymentGetConfigPrefixMessagesContent:
3497
- DeploymentGetConfigPrefixMessagesContent,
2397
+ export function deploymentGetConfigPrefixMessagesDeploymentsContentToJSON(
2398
+ deploymentGetConfigPrefixMessagesDeploymentsContent:
2399
+ DeploymentGetConfigPrefixMessagesDeploymentsContent,
3498
2400
  ): string {
3499
2401
  return JSON.stringify(
3500
- DeploymentGetConfigPrefixMessagesContent$outboundSchema.parse(
3501
- deploymentGetConfigPrefixMessagesContent,
2402
+ DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema.parse(
2403
+ deploymentGetConfigPrefixMessagesDeploymentsContent,
3502
2404
  ),
3503
2405
  );
3504
2406
  }
3505
- export function deploymentGetConfigPrefixMessagesContentFromJSON(
2407
+ export function deploymentGetConfigPrefixMessagesDeploymentsContentFromJSON(
3506
2408
  jsonString: string,
3507
2409
  ): SafeParseResult<
3508
- DeploymentGetConfigPrefixMessagesContent,
2410
+ DeploymentGetConfigPrefixMessagesDeploymentsContent,
3509
2411
  SDKValidationError
3510
2412
  > {
3511
2413
  return safeParse(
3512
2414
  jsonString,
3513
2415
  (x) =>
3514
- DeploymentGetConfigPrefixMessagesContent$inboundSchema.parse(
2416
+ DeploymentGetConfigPrefixMessagesDeploymentsContent$inboundSchema.parse(
3515
2417
  JSON.parse(x),
3516
2418
  ),
3517
- `Failed to parse 'DeploymentGetConfigPrefixMessagesContent' from JSON`,
2419
+ `Failed to parse 'DeploymentGetConfigPrefixMessagesDeploymentsContent' from JSON`,
3518
2420
  );
3519
2421
  }
3520
2422
 
@@ -3528,12 +2430,16 @@ export const UserMessage$inboundSchema: z.ZodType<
3528
2430
  name: z.string().optional(),
3529
2431
  content: z.union([
3530
2432
  z.string(),
3531
- z.array(z.union([
3532
- z.lazy(() => One$inboundSchema),
3533
- components.ImageContentPartSchema$inboundSchema,
3534
- components.AudioContentPartSchema$inboundSchema,
3535
- z.lazy(() => Four$inboundSchema),
3536
- ])),
2433
+ z.array(
2434
+ z.union([
2435
+ components.TextContentPartSchema$inboundSchema.and(
2436
+ z.object({ type: z.literal("text") }),
2437
+ ),
2438
+ components.ImageContentPartSchema$inboundSchema,
2439
+ components.AudioContentPartSchema$inboundSchema,
2440
+ z.lazy(() => Four$inboundSchema),
2441
+ ]),
2442
+ ),
3537
2443
  ]),
3538
2444
  });
3539
2445
  /** @internal */
@@ -3543,7 +2449,7 @@ export type UserMessage$Outbound = {
3543
2449
  content:
3544
2450
  | string
3545
2451
  | Array<
3546
- | One$Outbound
2452
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
3547
2453
  | components.ImageContentPartSchema$Outbound
3548
2454
  | components.AudioContentPartSchema$Outbound
3549
2455
  | Four$Outbound
@@ -3560,12 +2466,16 @@ export const UserMessage$outboundSchema: z.ZodType<
3560
2466
  name: z.string().optional(),
3561
2467
  content: z.union([
3562
2468
  z.string(),
3563
- z.array(z.union([
3564
- z.lazy(() => One$outboundSchema),
3565
- components.ImageContentPartSchema$outboundSchema,
3566
- components.AudioContentPartSchema$outboundSchema,
3567
- z.lazy(() => Four$outboundSchema),
3568
- ])),
2469
+ z.array(
2470
+ z.union([
2471
+ components.TextContentPartSchema$outboundSchema.and(
2472
+ z.object({ type: z.literal("text") }),
2473
+ ),
2474
+ components.ImageContentPartSchema$outboundSchema,
2475
+ components.AudioContentPartSchema$outboundSchema,
2476
+ z.lazy(() => Four$outboundSchema),
2477
+ ]),
2478
+ ),
3569
2479
  ]),
3570
2480
  });
3571
2481
 
@@ -3583,151 +2493,52 @@ export function userMessageFromJSON(
3583
2493
  }
3584
2494
 
3585
2495
  /** @internal */
3586
- export const DeploymentGetConfigContentType$inboundSchema: z.ZodNativeEnum<
3587
- typeof DeploymentGetConfigContentType
3588
- > = z.nativeEnum(DeploymentGetConfigContentType);
3589
- /** @internal */
3590
- export const DeploymentGetConfigContentType$outboundSchema: z.ZodNativeEnum<
3591
- typeof DeploymentGetConfigContentType
3592
- > = DeploymentGetConfigContentType$inboundSchema;
3593
-
3594
- /** @internal */
3595
- export const DeploymentGetConfigContentDeploymentsType$inboundSchema:
3596
- z.ZodNativeEnum<typeof DeploymentGetConfigContentDeploymentsType> = z
3597
- .nativeEnum(DeploymentGetConfigContentDeploymentsType);
3598
- /** @internal */
3599
- export const DeploymentGetConfigContentDeploymentsType$outboundSchema:
3600
- z.ZodNativeEnum<typeof DeploymentGetConfigContentDeploymentsType> =
3601
- DeploymentGetConfigContentDeploymentsType$inboundSchema;
3602
-
3603
- /** @internal */
3604
- export const ContentTtl$inboundSchema: z.ZodNativeEnum<typeof ContentTtl> = z
3605
- .nativeEnum(ContentTtl);
3606
- /** @internal */
3607
- export const ContentTtl$outboundSchema: z.ZodNativeEnum<typeof ContentTtl> =
3608
- ContentTtl$inboundSchema;
3609
-
3610
- /** @internal */
3611
- export const ContentCacheControl$inboundSchema: z.ZodType<
3612
- ContentCacheControl,
2496
+ export const DeploymentGetConfigPrefixMessagesContent$inboundSchema: z.ZodType<
2497
+ DeploymentGetConfigPrefixMessagesContent,
3613
2498
  z.ZodTypeDef,
3614
2499
  unknown
3615
- > = z.object({
3616
- type: DeploymentGetConfigContentDeploymentsType$inboundSchema,
3617
- ttl: ContentTtl$inboundSchema.default("5m"),
3618
- });
2500
+ > = z.union([
2501
+ z.string(),
2502
+ z.array(components.TextContentPartSchema$inboundSchema),
2503
+ ]);
3619
2504
  /** @internal */
3620
- export type ContentCacheControl$Outbound = {
3621
- type: string;
3622
- ttl: string;
3623
- };
2505
+ export type DeploymentGetConfigPrefixMessagesContent$Outbound =
2506
+ | string
2507
+ | Array<components.TextContentPartSchema$Outbound>;
3624
2508
 
3625
2509
  /** @internal */
3626
- export const ContentCacheControl$outboundSchema: z.ZodType<
3627
- ContentCacheControl$Outbound,
2510
+ export const DeploymentGetConfigPrefixMessagesContent$outboundSchema: z.ZodType<
2511
+ DeploymentGetConfigPrefixMessagesContent$Outbound,
3628
2512
  z.ZodTypeDef,
3629
- ContentCacheControl
3630
- > = z.object({
3631
- type: DeploymentGetConfigContentDeploymentsType$outboundSchema,
3632
- ttl: ContentTtl$outboundSchema.default("5m"),
3633
- });
2513
+ DeploymentGetConfigPrefixMessagesContent
2514
+ > = z.union([
2515
+ z.string(),
2516
+ z.array(components.TextContentPartSchema$outboundSchema),
2517
+ ]);
3634
2518
 
3635
- export function contentCacheControlToJSON(
3636
- contentCacheControl: ContentCacheControl,
2519
+ export function deploymentGetConfigPrefixMessagesContentToJSON(
2520
+ deploymentGetConfigPrefixMessagesContent:
2521
+ DeploymentGetConfigPrefixMessagesContent,
3637
2522
  ): string {
3638
2523
  return JSON.stringify(
3639
- ContentCacheControl$outboundSchema.parse(contentCacheControl),
3640
- );
3641
- }
3642
- export function contentCacheControlFromJSON(
3643
- jsonString: string,
3644
- ): SafeParseResult<ContentCacheControl, SDKValidationError> {
3645
- return safeParse(
3646
- jsonString,
3647
- (x) => ContentCacheControl$inboundSchema.parse(JSON.parse(x)),
3648
- `Failed to parse 'ContentCacheControl' from JSON`,
3649
- );
3650
- }
3651
-
3652
- /** @internal */
3653
- export const Content2$inboundSchema: z.ZodType<
3654
- Content2,
3655
- z.ZodTypeDef,
3656
- unknown
3657
- > = z.object({
3658
- type: DeploymentGetConfigContentType$inboundSchema,
3659
- text: z.string(),
3660
- cache_control: z.lazy(() => ContentCacheControl$inboundSchema).optional(),
3661
- }).transform((v) => {
3662
- return remap$(v, {
3663
- "cache_control": "cacheControl",
3664
- });
3665
- });
3666
- /** @internal */
3667
- export type Content2$Outbound = {
3668
- type: string;
3669
- text: string;
3670
- cache_control?: ContentCacheControl$Outbound | undefined;
3671
- };
3672
-
3673
- /** @internal */
3674
- export const Content2$outboundSchema: z.ZodType<
3675
- Content2$Outbound,
3676
- z.ZodTypeDef,
3677
- Content2
3678
- > = z.object({
3679
- type: DeploymentGetConfigContentType$outboundSchema,
3680
- text: z.string(),
3681
- cacheControl: z.lazy(() => ContentCacheControl$outboundSchema).optional(),
3682
- }).transform((v) => {
3683
- return remap$(v, {
3684
- cacheControl: "cache_control",
3685
- });
3686
- });
3687
-
3688
- export function content2ToJSON(content2: Content2): string {
3689
- return JSON.stringify(Content2$outboundSchema.parse(content2));
3690
- }
3691
- export function content2FromJSON(
3692
- jsonString: string,
3693
- ): SafeParseResult<Content2, SDKValidationError> {
3694
- return safeParse(
3695
- jsonString,
3696
- (x) => Content2$inboundSchema.parse(JSON.parse(x)),
3697
- `Failed to parse 'Content2' from JSON`,
3698
- );
3699
- }
3700
-
3701
- /** @internal */
3702
- export const PrefixMessagesContent$inboundSchema: z.ZodType<
3703
- PrefixMessagesContent,
3704
- z.ZodTypeDef,
3705
- unknown
3706
- > = z.union([z.string(), z.array(z.lazy(() => Content2$inboundSchema))]);
3707
- /** @internal */
3708
- export type PrefixMessagesContent$Outbound = string | Array<Content2$Outbound>;
3709
-
3710
- /** @internal */
3711
- export const PrefixMessagesContent$outboundSchema: z.ZodType<
3712
- PrefixMessagesContent$Outbound,
3713
- z.ZodTypeDef,
3714
- PrefixMessagesContent
3715
- > = z.union([z.string(), z.array(z.lazy(() => Content2$outboundSchema))]);
3716
-
3717
- export function prefixMessagesContentToJSON(
3718
- prefixMessagesContent: PrefixMessagesContent,
3719
- ): string {
3720
- return JSON.stringify(
3721
- PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent),
2524
+ DeploymentGetConfigPrefixMessagesContent$outboundSchema.parse(
2525
+ deploymentGetConfigPrefixMessagesContent,
2526
+ ),
3722
2527
  );
3723
2528
  }
3724
- export function prefixMessagesContentFromJSON(
2529
+ export function deploymentGetConfigPrefixMessagesContentFromJSON(
3725
2530
  jsonString: string,
3726
- ): SafeParseResult<PrefixMessagesContent, SDKValidationError> {
2531
+ ): SafeParseResult<
2532
+ DeploymentGetConfigPrefixMessagesContent,
2533
+ SDKValidationError
2534
+ > {
3727
2535
  return safeParse(
3728
2536
  jsonString,
3729
- (x) => PrefixMessagesContent$inboundSchema.parse(JSON.parse(x)),
3730
- `Failed to parse 'PrefixMessagesContent' from JSON`,
2537
+ (x) =>
2538
+ DeploymentGetConfigPrefixMessagesContent$inboundSchema.parse(
2539
+ JSON.parse(x),
2540
+ ),
2541
+ `Failed to parse 'DeploymentGetConfigPrefixMessagesContent' from JSON`,
3731
2542
  );
3732
2543
  }
3733
2544
 
@@ -3738,13 +2549,16 @@ export const DeveloperMessage$inboundSchema: z.ZodType<
3738
2549
  unknown
3739
2550
  > = z.object({
3740
2551
  role: z.literal("developer"),
3741
- content: z.union([z.string(), z.array(z.lazy(() => Content2$inboundSchema))]),
2552
+ content: z.union([
2553
+ z.string(),
2554
+ z.array(components.TextContentPartSchema$inboundSchema),
2555
+ ]),
3742
2556
  name: z.string().optional(),
3743
2557
  });
3744
2558
  /** @internal */
3745
2559
  export type DeveloperMessage$Outbound = {
3746
2560
  role: "developer";
3747
- content: string | Array<Content2$Outbound>;
2561
+ content: string | Array<components.TextContentPartSchema$Outbound>;
3748
2562
  name?: string | undefined;
3749
2563
  };
3750
2564
 
@@ -3757,7 +2571,7 @@ export const DeveloperMessage$outboundSchema: z.ZodType<
3757
2571
  role: z.literal("developer"),
3758
2572
  content: z.union([
3759
2573
  z.string(),
3760
- z.array(z.lazy(() => Content2$outboundSchema)),
2574
+ z.array(components.TextContentPartSchema$outboundSchema),
3761
2575
  ]),
3762
2576
  name: z.string().optional(),
3763
2577
  });
@@ -3780,130 +2594,43 @@ export function developerMessageFromJSON(
3780
2594
  }
3781
2595
 
3782
2596
  /** @internal */
3783
- export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
3784
- Type,
3785
- );
3786
- /** @internal */
3787
- export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
3788
- Type$inboundSchema;
3789
-
3790
- /** @internal */
3791
- export const ContentType$inboundSchema: z.ZodNativeEnum<typeof ContentType> = z
3792
- .nativeEnum(ContentType);
3793
- /** @internal */
3794
- export const ContentType$outboundSchema: z.ZodNativeEnum<typeof ContentType> =
3795
- ContentType$inboundSchema;
3796
-
3797
- /** @internal */
3798
- export const Ttl$inboundSchema: z.ZodNativeEnum<typeof Ttl> = z.nativeEnum(Ttl);
3799
- /** @internal */
3800
- export const Ttl$outboundSchema: z.ZodNativeEnum<typeof Ttl> =
3801
- Ttl$inboundSchema;
3802
-
3803
- /** @internal */
3804
- export const CacheControl$inboundSchema: z.ZodType<
3805
- CacheControl,
2597
+ export const PrefixMessagesContent$inboundSchema: z.ZodType<
2598
+ PrefixMessagesContent,
3806
2599
  z.ZodTypeDef,
3807
2600
  unknown
3808
- > = z.object({
3809
- type: ContentType$inboundSchema,
3810
- ttl: Ttl$inboundSchema.default("5m"),
3811
- });
2601
+ > = z.union([
2602
+ z.string(),
2603
+ z.array(components.TextContentPartSchema$inboundSchema),
2604
+ ]);
3812
2605
  /** @internal */
3813
- export type CacheControl$Outbound = {
3814
- type: string;
3815
- ttl: string;
3816
- };
2606
+ export type PrefixMessagesContent$Outbound =
2607
+ | string
2608
+ | Array<components.TextContentPartSchema$Outbound>;
3817
2609
 
3818
2610
  /** @internal */
3819
- export const CacheControl$outboundSchema: z.ZodType<
3820
- CacheControl$Outbound,
2611
+ export const PrefixMessagesContent$outboundSchema: z.ZodType<
2612
+ PrefixMessagesContent$Outbound,
3821
2613
  z.ZodTypeDef,
3822
- CacheControl
3823
- > = z.object({
3824
- type: ContentType$outboundSchema,
3825
- ttl: Ttl$outboundSchema.default("5m"),
3826
- });
3827
-
3828
- export function cacheControlToJSON(cacheControl: CacheControl): string {
3829
- return JSON.stringify(CacheControl$outboundSchema.parse(cacheControl));
3830
- }
3831
- export function cacheControlFromJSON(
3832
- jsonString: string,
3833
- ): SafeParseResult<CacheControl, SDKValidationError> {
3834
- return safeParse(
3835
- jsonString,
3836
- (x) => CacheControl$inboundSchema.parse(JSON.parse(x)),
3837
- `Failed to parse 'CacheControl' from JSON`,
3838
- );
3839
- }
3840
-
3841
- /** @internal */
3842
- export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z
3843
- .object({
3844
- type: Type$inboundSchema,
3845
- text: z.string(),
3846
- cache_control: z.lazy(() => CacheControl$inboundSchema).optional(),
3847
- }).transform((v) => {
3848
- return remap$(v, {
3849
- "cache_control": "cacheControl",
3850
- });
3851
- });
3852
- /** @internal */
3853
- export type Two$Outbound = {
3854
- type: string;
3855
- text: string;
3856
- cache_control?: CacheControl$Outbound | undefined;
3857
- };
3858
-
3859
- /** @internal */
3860
- export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
3861
- .object({
3862
- type: Type$outboundSchema,
3863
- text: z.string(),
3864
- cacheControl: z.lazy(() => CacheControl$outboundSchema).optional(),
3865
- }).transform((v) => {
3866
- return remap$(v, {
3867
- cacheControl: "cache_control",
3868
- });
3869
- });
2614
+ PrefixMessagesContent
2615
+ > = z.union([
2616
+ z.string(),
2617
+ z.array(components.TextContentPartSchema$outboundSchema),
2618
+ ]);
3870
2619
 
3871
- export function twoToJSON(two: Two): string {
3872
- return JSON.stringify(Two$outboundSchema.parse(two));
3873
- }
3874
- export function twoFromJSON(
3875
- jsonString: string,
3876
- ): SafeParseResult<Two, SDKValidationError> {
3877
- return safeParse(
3878
- jsonString,
3879
- (x) => Two$inboundSchema.parse(JSON.parse(x)),
3880
- `Failed to parse 'Two' from JSON`,
2620
+ export function prefixMessagesContentToJSON(
2621
+ prefixMessagesContent: PrefixMessagesContent,
2622
+ ): string {
2623
+ return JSON.stringify(
2624
+ PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent),
3881
2625
  );
3882
2626
  }
3883
-
3884
- /** @internal */
3885
- export const Content$inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown> =
3886
- z.union([z.string(), z.array(z.lazy(() => Two$inboundSchema))]);
3887
- /** @internal */
3888
- export type Content$Outbound = string | Array<Two$Outbound>;
3889
-
3890
- /** @internal */
3891
- export const Content$outboundSchema: z.ZodType<
3892
- Content$Outbound,
3893
- z.ZodTypeDef,
3894
- Content
3895
- > = z.union([z.string(), z.array(z.lazy(() => Two$outboundSchema))]);
3896
-
3897
- export function contentToJSON(content: Content): string {
3898
- return JSON.stringify(Content$outboundSchema.parse(content));
3899
- }
3900
- export function contentFromJSON(
2627
+ export function prefixMessagesContentFromJSON(
3901
2628
  jsonString: string,
3902
- ): SafeParseResult<Content, SDKValidationError> {
2629
+ ): SafeParseResult<PrefixMessagesContent, SDKValidationError> {
3903
2630
  return safeParse(
3904
2631
  jsonString,
3905
- (x) => Content$inboundSchema.parse(JSON.parse(x)),
3906
- `Failed to parse 'Content' from JSON`,
2632
+ (x) => PrefixMessagesContent$inboundSchema.parse(JSON.parse(x)),
2633
+ `Failed to parse 'PrefixMessagesContent' from JSON`,
3907
2634
  );
3908
2635
  }
3909
2636
 
@@ -3914,13 +2641,16 @@ export const SystemMessage$inboundSchema: z.ZodType<
3914
2641
  unknown
3915
2642
  > = z.object({
3916
2643
  role: z.literal("system"),
3917
- content: z.union([z.string(), z.array(z.lazy(() => Two$inboundSchema))]),
2644
+ content: z.union([
2645
+ z.string(),
2646
+ z.array(components.TextContentPartSchema$inboundSchema),
2647
+ ]),
3918
2648
  name: z.string().optional(),
3919
2649
  });
3920
2650
  /** @internal */
3921
2651
  export type SystemMessage$Outbound = {
3922
2652
  role: "system";
3923
- content: string | Array<Two$Outbound>;
2653
+ content: string | Array<components.TextContentPartSchema$Outbound>;
3924
2654
  name?: string | undefined;
3925
2655
  };
3926
2656
 
@@ -3931,7 +2661,10 @@ export const SystemMessage$outboundSchema: z.ZodType<
3931
2661
  SystemMessage
3932
2662
  > = z.object({
3933
2663
  role: z.literal("system"),
3934
- content: z.union([z.string(), z.array(z.lazy(() => Two$outboundSchema))]),
2664
+ content: z.union([
2665
+ z.string(),
2666
+ z.array(components.TextContentPartSchema$outboundSchema),
2667
+ ]),
3935
2668
  name: z.string().optional(),
3936
2669
  });
3937
2670
 
@@ -3995,254 +2728,72 @@ export function prefixMessagesFromJSON(
3995
2728
  }
3996
2729
 
3997
2730
  /** @internal */
3998
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type$inboundSchema:
3999
- z.ZodNativeEnum<
4000
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type
4001
- > = z.nativeEnum(
4002
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type,
4003
- );
4004
- /** @internal */
4005
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type$outboundSchema:
4006
- z.ZodNativeEnum<
4007
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type
4008
- > =
4009
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type$inboundSchema;
4010
-
4011
- /** @internal */
4012
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType$inboundSchema:
4013
- z.ZodNativeEnum<
4014
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType
4015
- > = z.nativeEnum(
4016
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType,
4017
- );
4018
- /** @internal */
4019
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType$outboundSchema:
4020
- z.ZodNativeEnum<
4021
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType
4022
- > =
4023
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType$inboundSchema;
4024
-
4025
- /** @internal */
4026
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl$inboundSchema:
4027
- z.ZodNativeEnum<
4028
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl
4029
- > = z.nativeEnum(
4030
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl,
4031
- );
4032
- /** @internal */
4033
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl$outboundSchema:
4034
- z.ZodNativeEnum<
4035
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl
4036
- > =
4037
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl$inboundSchema;
4038
-
4039
- /** @internal */
4040
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$inboundSchema:
2731
+ export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$inboundSchema:
4041
2732
  z.ZodType<
4042
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl,
2733
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2,
4043
2734
  z.ZodTypeDef,
4044
2735
  unknown
4045
- > = z.object({
4046
- type:
4047
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType$inboundSchema,
4048
- ttl:
4049
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl$inboundSchema
4050
- .default("5m"),
4051
- });
2736
+ > = components.TextContentPartSchema$inboundSchema;
4052
2737
  /** @internal */
4053
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$Outbound =
4054
- {
4055
- type: string;
4056
- ttl: string;
4057
- };
2738
+ export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound =
2739
+ components.TextContentPartSchema$Outbound;
4058
2740
 
4059
2741
  /** @internal */
4060
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$outboundSchema:
2742
+ export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema:
4061
2743
  z.ZodType<
4062
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$Outbound,
2744
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound,
4063
2745
  z.ZodTypeDef,
4064
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl
4065
- > = z.object({
4066
- type:
4067
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType$outboundSchema,
4068
- ttl:
4069
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl$outboundSchema
4070
- .default("5m"),
4071
- });
2746
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2
2747
+ > = components.TextContentPartSchema$outboundSchema;
4072
2748
 
4073
- export function deploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControlToJSON(
4074
- deploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl:
4075
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl,
2749
+ export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2ToJSON(
2750
+ deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2:
2751
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2,
4076
2752
  ): string {
4077
2753
  return JSON.stringify(
4078
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$outboundSchema
4079
- .parse(
4080
- deploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl,
4081
- ),
2754
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema
2755
+ .parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2),
4082
2756
  );
4083
2757
  }
4084
- export function deploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControlFromJSON(
2758
+ export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2FromJSON(
4085
2759
  jsonString: string,
4086
2760
  ): SafeParseResult<
4087
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl,
2761
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2,
4088
2762
  SDKValidationError
4089
2763
  > {
4090
2764
  return safeParse(
4091
2765
  jsonString,
4092
2766
  (x) =>
4093
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$inboundSchema
2767
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$inboundSchema
4094
2768
  .parse(JSON.parse(x)),
4095
- `Failed to parse 'DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl' from JSON`,
2769
+ `Failed to parse 'DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2' from JSON`,
4096
2770
  );
4097
2771
  }
4098
2772
 
4099
2773
  /** @internal */
4100
- export const DeploymentGetConfig2DeploymentsRequestRequestBody1$inboundSchema:
2774
+ export const DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$inboundSchema:
4101
2775
  z.ZodType<
4102
- DeploymentGetConfig2DeploymentsRequestRequestBody1,
2776
+ DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent,
4103
2777
  z.ZodTypeDef,
4104
2778
  unknown
4105
- > = z.object({
4106
- type:
4107
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type$inboundSchema,
4108
- text: z.string(),
4109
- cache_control: z.lazy(() =>
4110
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$inboundSchema
4111
- ).optional(),
4112
- }).transform((v) => {
4113
- return remap$(v, {
4114
- "cache_control": "cacheControl",
4115
- });
4116
- });
2779
+ > = z.union([
2780
+ z.string(),
2781
+ z.array(components.TextContentPartSchema$inboundSchema),
2782
+ ]);
4117
2783
  /** @internal */
4118
- export type DeploymentGetConfig2DeploymentsRequestRequestBody1$Outbound = {
4119
- type: string;
4120
- text: string;
4121
- cache_control?:
4122
- | DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$Outbound
4123
- | undefined;
4124
- };
2784
+ export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound =
2785
+ | string
2786
+ | Array<components.TextContentPartSchema$Outbound>;
4125
2787
 
4126
2788
  /** @internal */
4127
- export const DeploymentGetConfig2DeploymentsRequestRequestBody1$outboundSchema:
2789
+ export const DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
4128
2790
  z.ZodType<
4129
- DeploymentGetConfig2DeploymentsRequestRequestBody1$Outbound,
4130
- z.ZodTypeDef,
4131
- DeploymentGetConfig2DeploymentsRequestRequestBody1
4132
- > = z.object({
4133
- type:
4134
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type$outboundSchema,
4135
- text: z.string(),
4136
- cacheControl: z.lazy(() =>
4137
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$outboundSchema
4138
- ).optional(),
4139
- }).transform((v) => {
4140
- return remap$(v, {
4141
- cacheControl: "cache_control",
4142
- });
4143
- });
4144
-
4145
- export function deploymentGetConfig2DeploymentsRequestRequestBody1ToJSON(
4146
- deploymentGetConfig2DeploymentsRequestRequestBody1:
4147
- DeploymentGetConfig2DeploymentsRequestRequestBody1,
4148
- ): string {
4149
- return JSON.stringify(
4150
- DeploymentGetConfig2DeploymentsRequestRequestBody1$outboundSchema.parse(
4151
- deploymentGetConfig2DeploymentsRequestRequestBody1,
4152
- ),
4153
- );
4154
- }
4155
- export function deploymentGetConfig2DeploymentsRequestRequestBody1FromJSON(
4156
- jsonString: string,
4157
- ): SafeParseResult<
4158
- DeploymentGetConfig2DeploymentsRequestRequestBody1,
4159
- SDKValidationError
4160
- > {
4161
- return safeParse(
4162
- jsonString,
4163
- (x) =>
4164
- DeploymentGetConfig2DeploymentsRequestRequestBody1$inboundSchema.parse(
4165
- JSON.parse(x),
4166
- ),
4167
- `Failed to parse 'DeploymentGetConfig2DeploymentsRequestRequestBody1' from JSON`,
4168
- );
4169
- }
4170
-
4171
- /** @internal */
4172
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52$inboundSchema:
4173
- z.ZodType<
4174
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52,
4175
- z.ZodTypeDef,
4176
- unknown
4177
- > = z.lazy(() =>
4178
- DeploymentGetConfig2DeploymentsRequestRequestBody1$inboundSchema
4179
- );
4180
- /** @internal */
4181
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52$Outbound =
4182
- DeploymentGetConfig2DeploymentsRequestRequestBody1$Outbound;
4183
-
4184
- /** @internal */
4185
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52$outboundSchema:
4186
- z.ZodType<
4187
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52$Outbound,
4188
- z.ZodTypeDef,
4189
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52
4190
- > = z.lazy(() =>
4191
- DeploymentGetConfig2DeploymentsRequestRequestBody1$outboundSchema
4192
- );
4193
-
4194
- export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages52ToJSON(
4195
- deploymentGetConfigContentDeploymentsRequestRequestBodyMessages52:
4196
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52,
4197
- ): string {
4198
- return JSON.stringify(
4199
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52$outboundSchema
4200
- .parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages52),
4201
- );
4202
- }
4203
- export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages52FromJSON(
4204
- jsonString: string,
4205
- ): SafeParseResult<
4206
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52,
4207
- SDKValidationError
4208
- > {
4209
- return safeParse(
4210
- jsonString,
4211
- (x) =>
4212
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52$inboundSchema
4213
- .parse(JSON.parse(x)),
4214
- `Failed to parse 'DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52' from JSON`,
4215
- );
4216
- }
4217
-
4218
- /** @internal */
4219
- export const DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$inboundSchema:
4220
- z.ZodType<
4221
- DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent,
4222
- z.ZodTypeDef,
4223
- unknown
4224
- > = z.union([
4225
- z.string(),
4226
- z.array(z.lazy(() =>
4227
- DeploymentGetConfig2DeploymentsRequestRequestBody1$inboundSchema
4228
- )),
4229
- ]);
4230
- /** @internal */
4231
- export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound =
4232
- | string
4233
- | Array<DeploymentGetConfig2DeploymentsRequestRequestBody1$Outbound>;
4234
-
4235
- /** @internal */
4236
- export const DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
4237
- z.ZodType<
4238
- DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound,
2791
+ DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound,
4239
2792
  z.ZodTypeDef,
4240
2793
  DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent
4241
2794
  > = z.union([
4242
2795
  z.string(),
4243
- z.array(z.lazy(() =>
4244
- DeploymentGetConfig2DeploymentsRequestRequestBody1$outboundSchema
4245
- )),
2796
+ z.array(components.TextContentPartSchema$outboundSchema),
4246
2797
  ]);
4247
2798
 
4248
2799
  export function deploymentGetConfigMessagesDeploymentsRequestRequestBodyContentToJSON(
@@ -4336,9 +2887,7 @@ export const MessagesToolMessage$inboundSchema: z.ZodType<
4336
2887
  role: z.literal("tool"),
4337
2888
  content: z.union([
4338
2889
  z.string(),
4339
- z.array(z.lazy(() =>
4340
- DeploymentGetConfig2DeploymentsRequestRequestBody1$inboundSchema
4341
- )),
2890
+ z.array(components.TextContentPartSchema$inboundSchema),
4342
2891
  ]),
4343
2892
  tool_call_id: z.string(),
4344
2893
  cache_control: z.lazy(() => MessagesCacheControl$inboundSchema).optional(),
@@ -4351,9 +2900,7 @@ export const MessagesToolMessage$inboundSchema: z.ZodType<
4351
2900
  /** @internal */
4352
2901
  export type MessagesToolMessage$Outbound = {
4353
2902
  role: "tool";
4354
- content:
4355
- | string
4356
- | Array<DeploymentGetConfig2DeploymentsRequestRequestBody1$Outbound>;
2903
+ content: string | Array<components.TextContentPartSchema$Outbound>;
4357
2904
  tool_call_id: string;
4358
2905
  cache_control?: MessagesCacheControl$Outbound | undefined;
4359
2906
  };
@@ -4367,9 +2914,7 @@ export const MessagesToolMessage$outboundSchema: z.ZodType<
4367
2914
  role: z.literal("tool"),
4368
2915
  content: z.union([
4369
2916
  z.string(),
4370
- z.array(z.lazy(() =>
4371
- DeploymentGetConfig2DeploymentsRequestRequestBody1$outboundSchema
4372
- )),
2917
+ z.array(components.TextContentPartSchema$outboundSchema),
4373
2918
  ]),
4374
2919
  toolCallId: z.string(),
4375
2920
  cacheControl: z.lazy(() => MessagesCacheControl$outboundSchema).optional(),
@@ -4398,214 +2943,62 @@ export function messagesToolMessageFromJSON(
4398
2943
  }
4399
2944
 
4400
2945
  /** @internal */
4401
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema:
4402
- z.ZodNativeEnum<
4403
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType
4404
- > = z.nativeEnum(
4405
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType,
4406
- );
4407
- /** @internal */
4408
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema:
4409
- z.ZodNativeEnum<
4410
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType
4411
- > =
4412
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema;
4413
-
4414
- /** @internal */
4415
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl$inboundSchema:
4416
- z.ZodNativeEnum<
4417
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl
4418
- > = z.nativeEnum(
4419
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl,
4420
- );
4421
- /** @internal */
4422
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl$outboundSchema:
4423
- z.ZodNativeEnum<
4424
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl
4425
- > =
4426
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl$inboundSchema;
4427
-
4428
- /** @internal */
4429
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$inboundSchema:
4430
- z.ZodType<
4431
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl,
4432
- z.ZodTypeDef,
4433
- unknown
4434
- > = z.object({
4435
- type:
4436
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema,
4437
- ttl:
4438
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl$inboundSchema
4439
- .default("5m"),
4440
- });
4441
- /** @internal */
4442
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$Outbound =
4443
- {
4444
- type: string;
4445
- ttl: string;
4446
- };
4447
-
4448
- /** @internal */
4449
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$outboundSchema:
4450
- z.ZodType<
4451
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$Outbound,
4452
- z.ZodTypeDef,
4453
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl
4454
- > = z.object({
4455
- type:
4456
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema,
4457
- ttl:
4458
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl$outboundSchema
4459
- .default("5m"),
4460
- });
4461
-
4462
- export function deploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControlToJSON(
4463
- deploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl:
4464
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl,
4465
- ): string {
4466
- return JSON.stringify(
4467
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$outboundSchema
4468
- .parse(
4469
- deploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl,
4470
- ),
4471
- );
4472
- }
4473
- export function deploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControlFromJSON(
4474
- jsonString: string,
4475
- ): SafeParseResult<
4476
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl,
4477
- SDKValidationError
4478
- > {
4479
- return safeParse(
4480
- jsonString,
4481
- (x) =>
4482
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$inboundSchema
4483
- .parse(JSON.parse(x)),
4484
- `Failed to parse 'DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl' from JSON`,
4485
- );
4486
- }
4487
-
4488
- /** @internal */
4489
- export const DeploymentGetConfig2DeploymentsRequest1$inboundSchema: z.ZodType<
4490
- DeploymentGetConfig2DeploymentsRequest1,
4491
- z.ZodTypeDef,
4492
- unknown
4493
- > = z.object({
4494
- type: z.literal("text"),
4495
- text: z.string(),
4496
- cache_control: z.lazy(() =>
4497
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$inboundSchema
4498
- ).optional(),
4499
- }).transform((v) => {
4500
- return remap$(v, {
4501
- "cache_control": "cacheControl",
4502
- });
4503
- });
4504
- /** @internal */
4505
- export type DeploymentGetConfig2DeploymentsRequest1$Outbound = {
4506
- type: "text";
4507
- text: string;
4508
- cache_control?:
4509
- | DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$Outbound
4510
- | undefined;
4511
- };
4512
-
4513
- /** @internal */
4514
- export const DeploymentGetConfig2DeploymentsRequest1$outboundSchema: z.ZodType<
4515
- DeploymentGetConfig2DeploymentsRequest1$Outbound,
4516
- z.ZodTypeDef,
4517
- DeploymentGetConfig2DeploymentsRequest1
4518
- > = z.object({
4519
- type: z.literal("text"),
4520
- text: z.string(),
4521
- cacheControl: z.lazy(() =>
4522
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$outboundSchema
4523
- ).optional(),
4524
- }).transform((v) => {
4525
- return remap$(v, {
4526
- cacheControl: "cache_control",
4527
- });
4528
- });
4529
-
4530
- export function deploymentGetConfig2DeploymentsRequest1ToJSON(
4531
- deploymentGetConfig2DeploymentsRequest1:
4532
- DeploymentGetConfig2DeploymentsRequest1,
4533
- ): string {
4534
- return JSON.stringify(
4535
- DeploymentGetConfig2DeploymentsRequest1$outboundSchema.parse(
4536
- deploymentGetConfig2DeploymentsRequest1,
4537
- ),
4538
- );
4539
- }
4540
- export function deploymentGetConfig2DeploymentsRequest1FromJSON(
4541
- jsonString: string,
4542
- ): SafeParseResult<
4543
- DeploymentGetConfig2DeploymentsRequest1,
4544
- SDKValidationError
4545
- > {
4546
- return safeParse(
4547
- jsonString,
4548
- (x) =>
4549
- DeploymentGetConfig2DeploymentsRequest1$inboundSchema.parse(
4550
- JSON.parse(x),
4551
- ),
4552
- `Failed to parse 'DeploymentGetConfig2DeploymentsRequest1' from JSON`,
4553
- );
4554
- }
4555
-
4556
- /** @internal */
4557
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42$inboundSchema:
2946
+ export const DeploymentGetConfigContentDeploymentsRequestRequestBody2$inboundSchema:
4558
2947
  z.ZodType<
4559
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42,
2948
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2,
4560
2949
  z.ZodTypeDef,
4561
2950
  unknown
4562
2951
  > = z.union([
4563
- z.lazy(() => DeploymentGetConfig2DeploymentsRequest1$inboundSchema),
2952
+ components.TextContentPartSchema$inboundSchema.and(
2953
+ z.object({ type: z.literal("text") }),
2954
+ ),
4564
2955
  components.RefusalPartSchema$inboundSchema,
4565
2956
  components.ReasoningPartSchema$inboundSchema,
4566
2957
  components.RedactedReasoningPartSchema$inboundSchema,
4567
2958
  ]);
4568
2959
  /** @internal */
4569
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42$Outbound =
4570
- | DeploymentGetConfig2DeploymentsRequest1$Outbound
2960
+ export type DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound =
2961
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
4571
2962
  | components.RefusalPartSchema$Outbound
4572
2963
  | components.ReasoningPartSchema$Outbound
4573
2964
  | components.RedactedReasoningPartSchema$Outbound;
4574
2965
 
4575
2966
  /** @internal */
4576
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42$outboundSchema:
2967
+ export const DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema:
4577
2968
  z.ZodType<
4578
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42$Outbound,
2969
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound,
4579
2970
  z.ZodTypeDef,
4580
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42
2971
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2
4581
2972
  > = z.union([
4582
- z.lazy(() => DeploymentGetConfig2DeploymentsRequest1$outboundSchema),
2973
+ components.TextContentPartSchema$outboundSchema.and(
2974
+ z.object({ type: z.literal("text") }),
2975
+ ),
4583
2976
  components.RefusalPartSchema$outboundSchema,
4584
2977
  components.ReasoningPartSchema$outboundSchema,
4585
2978
  components.RedactedReasoningPartSchema$outboundSchema,
4586
2979
  ]);
4587
2980
 
4588
- export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages42ToJSON(
4589
- deploymentGetConfigContentDeploymentsRequestRequestBodyMessages42:
4590
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42,
2981
+ export function deploymentGetConfigContentDeploymentsRequestRequestBody2ToJSON(
2982
+ deploymentGetConfigContentDeploymentsRequestRequestBody2:
2983
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2,
4591
2984
  ): string {
4592
2985
  return JSON.stringify(
4593
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42$outboundSchema
4594
- .parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages42),
2986
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema
2987
+ .parse(deploymentGetConfigContentDeploymentsRequestRequestBody2),
4595
2988
  );
4596
2989
  }
4597
- export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages42FromJSON(
2990
+ export function deploymentGetConfigContentDeploymentsRequestRequestBody2FromJSON(
4598
2991
  jsonString: string,
4599
2992
  ): SafeParseResult<
4600
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42,
2993
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2,
4601
2994
  SDKValidationError
4602
2995
  > {
4603
2996
  return safeParse(
4604
2997
  jsonString,
4605
2998
  (x) =>
4606
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42$inboundSchema
2999
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2$inboundSchema
4607
3000
  .parse(JSON.parse(x)),
4608
- `Failed to parse 'DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42' from JSON`,
3001
+ `Failed to parse 'DeploymentGetConfigContentDeploymentsRequestRequestBody2' from JSON`,
4609
3002
  );
4610
3003
  }
4611
3004
 
@@ -4617,18 +3010,22 @@ export const DeploymentGetConfigMessagesDeploymentsRequestContent$inboundSchema:
4617
3010
  unknown
4618
3011
  > = z.union([
4619
3012
  z.string(),
4620
- z.array(z.union([
4621
- z.lazy(() => DeploymentGetConfig2DeploymentsRequest1$inboundSchema),
4622
- components.RefusalPartSchema$inboundSchema,
4623
- components.ReasoningPartSchema$inboundSchema,
4624
- components.RedactedReasoningPartSchema$inboundSchema,
4625
- ])),
3013
+ z.array(
3014
+ z.union([
3015
+ components.TextContentPartSchema$inboundSchema.and(
3016
+ z.object({ type: z.literal("text") }),
3017
+ ),
3018
+ components.RefusalPartSchema$inboundSchema,
3019
+ components.ReasoningPartSchema$inboundSchema,
3020
+ components.RedactedReasoningPartSchema$inboundSchema,
3021
+ ]),
3022
+ ),
4626
3023
  ]);
4627
3024
  /** @internal */
4628
3025
  export type DeploymentGetConfigMessagesDeploymentsRequestContent$Outbound =
4629
3026
  | string
4630
3027
  | Array<
4631
- | DeploymentGetConfig2DeploymentsRequest1$Outbound
3028
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
4632
3029
  | components.RefusalPartSchema$Outbound
4633
3030
  | components.ReasoningPartSchema$Outbound
4634
3031
  | components.RedactedReasoningPartSchema$Outbound
@@ -4642,12 +3039,16 @@ export const DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema
4642
3039
  DeploymentGetConfigMessagesDeploymentsRequestContent
4643
3040
  > = z.union([
4644
3041
  z.string(),
4645
- z.array(z.union([
4646
- z.lazy(() => DeploymentGetConfig2DeploymentsRequest1$outboundSchema),
4647
- components.RefusalPartSchema$outboundSchema,
4648
- components.ReasoningPartSchema$outboundSchema,
4649
- components.RedactedReasoningPartSchema$outboundSchema,
4650
- ])),
3042
+ z.array(
3043
+ z.union([
3044
+ components.TextContentPartSchema$outboundSchema.and(
3045
+ z.object({ type: z.literal("text") }),
3046
+ ),
3047
+ components.RefusalPartSchema$outboundSchema,
3048
+ components.ReasoningPartSchema$outboundSchema,
3049
+ components.RedactedReasoningPartSchema$outboundSchema,
3050
+ ]),
3051
+ ),
4651
3052
  ]);
4652
3053
 
4653
3054
  export function deploymentGetConfigMessagesDeploymentsRequestContentToJSON(
@@ -4827,7 +3228,9 @@ export const MessagesAssistantMessage$inboundSchema: z.ZodType<
4827
3228
  z.string(),
4828
3229
  z.array(
4829
3230
  z.union([
4830
- z.lazy(() => DeploymentGetConfig2DeploymentsRequest1$inboundSchema),
3231
+ components.TextContentPartSchema$inboundSchema.and(
3232
+ z.object({ type: z.literal("text") }),
3233
+ ),
4831
3234
  components.RefusalPartSchema$inboundSchema,
4832
3235
  components.ReasoningPartSchema$inboundSchema,
4833
3236
  components.RedactedReasoningPartSchema$inboundSchema,
@@ -4850,7 +3253,7 @@ export type MessagesAssistantMessage$Outbound = {
4850
3253
  content?:
4851
3254
  | string
4852
3255
  | Array<
4853
- | DeploymentGetConfig2DeploymentsRequest1$Outbound
3256
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
4854
3257
  | components.RefusalPartSchema$Outbound
4855
3258
  | components.ReasoningPartSchema$Outbound
4856
3259
  | components.RedactedReasoningPartSchema$Outbound
@@ -4875,7 +3278,9 @@ export const MessagesAssistantMessage$outboundSchema: z.ZodType<
4875
3278
  z.string(),
4876
3279
  z.array(
4877
3280
  z.union([
4878
- z.lazy(() => DeploymentGetConfig2DeploymentsRequest1$outboundSchema),
3281
+ components.TextContentPartSchema$outboundSchema.and(
3282
+ z.object({ type: z.literal("text") }),
3283
+ ),
4879
3284
  components.RefusalPartSchema$outboundSchema,
4880
3285
  components.ReasoningPartSchema$outboundSchema,
4881
3286
  components.RedactedReasoningPartSchema$outboundSchema,
@@ -4912,90 +3317,60 @@ export function messagesAssistantMessageFromJSON(
4912
3317
  }
4913
3318
 
4914
3319
  /** @internal */
4915
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema:
3320
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema:
4916
3321
  z.ZodNativeEnum<
4917
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type
4918
- > = z.nativeEnum(
4919
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type,
4920
- );
3322
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
3323
+ > = z.nativeEnum(DeploymentGetConfig2DeploymentsRequestRequestBodyType);
4921
3324
  /** @internal */
4922
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$outboundSchema:
3325
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema:
4923
3326
  z.ZodNativeEnum<
4924
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type
4925
- > =
4926
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema;
3327
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
3328
+ > = DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema;
4927
3329
 
4928
3330
  /** @internal */
4929
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl$inboundSchema:
4930
- z.ZodNativeEnum<
4931
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl
4932
- > = z.nativeEnum(
4933
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl,
4934
- );
3331
+ export const TwoTtl$inboundSchema: z.ZodNativeEnum<typeof TwoTtl> = z
3332
+ .nativeEnum(TwoTtl);
4935
3333
  /** @internal */
4936
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl$outboundSchema:
4937
- z.ZodNativeEnum<
4938
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl
4939
- > =
4940
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl$inboundSchema;
3334
+ export const TwoTtl$outboundSchema: z.ZodNativeEnum<typeof TwoTtl> =
3335
+ TwoTtl$inboundSchema;
4941
3336
 
4942
3337
  /** @internal */
4943
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl$inboundSchema:
4944
- z.ZodType<
4945
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl,
4946
- z.ZodTypeDef,
4947
- unknown
4948
- > = z.object({
4949
- type:
4950
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema,
4951
- ttl:
4952
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl$inboundSchema
4953
- .default("5m"),
4954
- });
3338
+ export const TwoCacheControl$inboundSchema: z.ZodType<
3339
+ TwoCacheControl,
3340
+ z.ZodTypeDef,
3341
+ unknown
3342
+ > = z.object({
3343
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema,
3344
+ ttl: TwoTtl$inboundSchema.default("5m"),
3345
+ });
4955
3346
  /** @internal */
4956
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl$Outbound =
4957
- {
4958
- type: string;
4959
- ttl: string;
4960
- };
3347
+ export type TwoCacheControl$Outbound = {
3348
+ type: string;
3349
+ ttl: string;
3350
+ };
4961
3351
 
4962
3352
  /** @internal */
4963
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl$outboundSchema:
4964
- z.ZodType<
4965
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl$Outbound,
4966
- z.ZodTypeDef,
4967
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl
4968
- > = z.object({
4969
- type:
4970
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$outboundSchema,
4971
- ttl:
4972
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl$outboundSchema
4973
- .default("5m"),
4974
- });
3353
+ export const TwoCacheControl$outboundSchema: z.ZodType<
3354
+ TwoCacheControl$Outbound,
3355
+ z.ZodTypeDef,
3356
+ TwoCacheControl
3357
+ > = z.object({
3358
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema,
3359
+ ttl: TwoTtl$outboundSchema.default("5m"),
3360
+ });
4975
3361
 
4976
- export function deploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControlToJSON(
4977
- deploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl:
4978
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl,
3362
+ export function twoCacheControlToJSON(
3363
+ twoCacheControl: TwoCacheControl,
4979
3364
  ): string {
4980
- return JSON.stringify(
4981
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl$outboundSchema
4982
- .parse(
4983
- deploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl,
4984
- ),
4985
- );
3365
+ return JSON.stringify(TwoCacheControl$outboundSchema.parse(twoCacheControl));
4986
3366
  }
4987
- export function deploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControlFromJSON(
3367
+ export function twoCacheControlFromJSON(
4988
3368
  jsonString: string,
4989
- ): SafeParseResult<
4990
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl,
4991
- SDKValidationError
4992
- > {
3369
+ ): SafeParseResult<TwoCacheControl, SDKValidationError> {
4993
3370
  return safeParse(
4994
3371
  jsonString,
4995
- (x) =>
4996
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl$inboundSchema
4997
- .parse(JSON.parse(x)),
4998
- `Failed to parse 'DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl' from JSON`,
3372
+ (x) => TwoCacheControl$inboundSchema.parse(JSON.parse(x)),
3373
+ `Failed to parse 'TwoCacheControl' from JSON`,
4999
3374
  );
5000
3375
  }
5001
3376
 
@@ -5003,9 +3378,7 @@ export function deploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheCo
5003
3378
  export const Two4$inboundSchema: z.ZodType<Two4, z.ZodTypeDef, unknown> = z
5004
3379
  .object({
5005
3380
  type: z.literal("file"),
5006
- cache_control: z.lazy(() =>
5007
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl$inboundSchema
5008
- ).optional(),
3381
+ cache_control: z.lazy(() => TwoCacheControl$inboundSchema).optional(),
5009
3382
  file: components.FileContentPartSchema$inboundSchema,
5010
3383
  }).transform((v) => {
5011
3384
  return remap$(v, {
@@ -5015,9 +3388,7 @@ export const Two4$inboundSchema: z.ZodType<Two4, z.ZodTypeDef, unknown> = z
5015
3388
  /** @internal */
5016
3389
  export type Two4$Outbound = {
5017
3390
  type: "file";
5018
- cache_control?:
5019
- | DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl$Outbound
5020
- | undefined;
3391
+ cache_control?: TwoCacheControl$Outbound | undefined;
5021
3392
  file: components.FileContentPartSchema$Outbound;
5022
3393
  };
5023
3394
 
@@ -5025,9 +3396,7 @@ export type Two4$Outbound = {
5025
3396
  export const Two4$outboundSchema: z.ZodType<Two4$Outbound, z.ZodTypeDef, Two4> =
5026
3397
  z.object({
5027
3398
  type: z.literal("file"),
5028
- cacheControl: z.lazy(() =>
5029
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl$outboundSchema
5030
- ).optional(),
3399
+ cacheControl: z.lazy(() => TwoCacheControl$outboundSchema).optional(),
5031
3400
  file: components.FileContentPartSchema$outboundSchema,
5032
3401
  }).transform((v) => {
5033
3402
  return remap$(v, {
@@ -5049,198 +3418,64 @@ export function two4FromJSON(
5049
3418
  }
5050
3419
 
5051
3420
  /** @internal */
5052
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema:
5053
- z.ZodNativeEnum<
5054
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type
5055
- > = z.nativeEnum(
5056
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type,
5057
- );
5058
- /** @internal */
5059
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$outboundSchema:
5060
- z.ZodNativeEnum<
5061
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type
5062
- > =
5063
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema;
5064
-
5065
- /** @internal */
5066
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyTtl$inboundSchema:
5067
- z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestRequestBodyTtl> =
5068
- z.nativeEnum(DeploymentGetConfig2DeploymentsRequestRequestBodyTtl);
5069
- /** @internal */
5070
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyTtl$outboundSchema:
5071
- z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestRequestBodyTtl> =
5072
- DeploymentGetConfig2DeploymentsRequestRequestBodyTtl$inboundSchema;
5073
-
5074
- /** @internal */
5075
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$inboundSchema:
5076
- z.ZodType<
5077
- DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl,
5078
- z.ZodTypeDef,
5079
- unknown
5080
- > = z.object({
5081
- type:
5082
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema,
5083
- ttl: DeploymentGetConfig2DeploymentsRequestRequestBodyTtl$inboundSchema
5084
- .default("5m"),
5085
- });
5086
- /** @internal */
5087
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$Outbound =
5088
- {
5089
- type: string;
5090
- ttl: string;
5091
- };
5092
-
5093
- /** @internal */
5094
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$outboundSchema:
5095
- z.ZodType<
5096
- DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$Outbound,
5097
- z.ZodTypeDef,
5098
- DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl
5099
- > = z.object({
5100
- type:
5101
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$outboundSchema,
5102
- ttl: DeploymentGetConfig2DeploymentsRequestRequestBodyTtl$outboundSchema
5103
- .default("5m"),
5104
- });
5105
-
5106
- export function deploymentGetConfig2DeploymentsRequestRequestBodyCacheControlToJSON(
5107
- deploymentGetConfig2DeploymentsRequestRequestBodyCacheControl:
5108
- DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl,
5109
- ): string {
5110
- return JSON.stringify(
5111
- DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$outboundSchema
5112
- .parse(deploymentGetConfig2DeploymentsRequestRequestBodyCacheControl),
5113
- );
5114
- }
5115
- export function deploymentGetConfig2DeploymentsRequestRequestBodyCacheControlFromJSON(
5116
- jsonString: string,
5117
- ): SafeParseResult<
5118
- DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl,
5119
- SDKValidationError
5120
- > {
5121
- return safeParse(
5122
- jsonString,
5123
- (x) =>
5124
- DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$inboundSchema
5125
- .parse(JSON.parse(x)),
5126
- `Failed to parse 'DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl' from JSON`,
5127
- );
5128
- }
5129
-
5130
- /** @internal */
5131
- export const DeploymentGetConfig2Deployments1$inboundSchema: z.ZodType<
5132
- DeploymentGetConfig2Deployments1,
5133
- z.ZodTypeDef,
5134
- unknown
5135
- > = z.object({
5136
- type: z.literal("text"),
5137
- text: z.string(),
5138
- cache_control: z.lazy(() =>
5139
- DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$inboundSchema
5140
- ).optional(),
5141
- }).transform((v) => {
5142
- return remap$(v, {
5143
- "cache_control": "cacheControl",
5144
- });
5145
- });
5146
- /** @internal */
5147
- export type DeploymentGetConfig2Deployments1$Outbound = {
5148
- type: "text";
5149
- text: string;
5150
- cache_control?:
5151
- | DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$Outbound
5152
- | undefined;
5153
- };
5154
-
5155
- /** @internal */
5156
- export const DeploymentGetConfig2Deployments1$outboundSchema: z.ZodType<
5157
- DeploymentGetConfig2Deployments1$Outbound,
5158
- z.ZodTypeDef,
5159
- DeploymentGetConfig2Deployments1
5160
- > = z.object({
5161
- type: z.literal("text"),
5162
- text: z.string(),
5163
- cacheControl: z.lazy(() =>
5164
- DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$outboundSchema
5165
- ).optional(),
5166
- }).transform((v) => {
5167
- return remap$(v, {
5168
- cacheControl: "cache_control",
5169
- });
5170
- });
5171
-
5172
- export function deploymentGetConfig2Deployments1ToJSON(
5173
- deploymentGetConfig2Deployments1: DeploymentGetConfig2Deployments1,
5174
- ): string {
5175
- return JSON.stringify(
5176
- DeploymentGetConfig2Deployments1$outboundSchema.parse(
5177
- deploymentGetConfig2Deployments1,
5178
- ),
5179
- );
5180
- }
5181
- export function deploymentGetConfig2Deployments1FromJSON(
5182
- jsonString: string,
5183
- ): SafeParseResult<DeploymentGetConfig2Deployments1, SDKValidationError> {
5184
- return safeParse(
5185
- jsonString,
5186
- (x) => DeploymentGetConfig2Deployments1$inboundSchema.parse(JSON.parse(x)),
5187
- `Failed to parse 'DeploymentGetConfig2Deployments1' from JSON`,
5188
- );
5189
- }
5190
-
5191
- /** @internal */
5192
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32$inboundSchema:
3421
+ export const DeploymentGetConfigContentDeploymentsRequest2$inboundSchema:
5193
3422
  z.ZodType<
5194
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32,
3423
+ DeploymentGetConfigContentDeploymentsRequest2,
5195
3424
  z.ZodTypeDef,
5196
3425
  unknown
5197
3426
  > = z.union([
5198
- z.lazy(() => DeploymentGetConfig2Deployments1$inboundSchema),
3427
+ components.TextContentPartSchema$inboundSchema.and(
3428
+ z.object({ type: z.literal("text") }),
3429
+ ),
5199
3430
  components.ImageContentPartSchema$inboundSchema,
5200
3431
  components.AudioContentPartSchema$inboundSchema,
5201
3432
  z.lazy(() => Two4$inboundSchema),
5202
3433
  ]);
5203
3434
  /** @internal */
5204
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32$Outbound =
5205
- | DeploymentGetConfig2Deployments1$Outbound
3435
+ export type DeploymentGetConfigContentDeploymentsRequest2$Outbound =
3436
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
5206
3437
  | components.ImageContentPartSchema$Outbound
5207
3438
  | components.AudioContentPartSchema$Outbound
5208
3439
  | Two4$Outbound;
5209
3440
 
5210
3441
  /** @internal */
5211
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32$outboundSchema:
3442
+ export const DeploymentGetConfigContentDeploymentsRequest2$outboundSchema:
5212
3443
  z.ZodType<
5213
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32$Outbound,
3444
+ DeploymentGetConfigContentDeploymentsRequest2$Outbound,
5214
3445
  z.ZodTypeDef,
5215
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32
3446
+ DeploymentGetConfigContentDeploymentsRequest2
5216
3447
  > = z.union([
5217
- z.lazy(() => DeploymentGetConfig2Deployments1$outboundSchema),
3448
+ components.TextContentPartSchema$outboundSchema.and(
3449
+ z.object({ type: z.literal("text") }),
3450
+ ),
5218
3451
  components.ImageContentPartSchema$outboundSchema,
5219
3452
  components.AudioContentPartSchema$outboundSchema,
5220
3453
  z.lazy(() => Two4$outboundSchema),
5221
3454
  ]);
5222
3455
 
5223
- export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages32ToJSON(
5224
- deploymentGetConfigContentDeploymentsRequestRequestBodyMessages32:
5225
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32,
3456
+ export function deploymentGetConfigContentDeploymentsRequest2ToJSON(
3457
+ deploymentGetConfigContentDeploymentsRequest2:
3458
+ DeploymentGetConfigContentDeploymentsRequest2,
5226
3459
  ): string {
5227
3460
  return JSON.stringify(
5228
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32$outboundSchema
5229
- .parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages32),
3461
+ DeploymentGetConfigContentDeploymentsRequest2$outboundSchema.parse(
3462
+ deploymentGetConfigContentDeploymentsRequest2,
3463
+ ),
5230
3464
  );
5231
3465
  }
5232
- export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages32FromJSON(
3466
+ export function deploymentGetConfigContentDeploymentsRequest2FromJSON(
5233
3467
  jsonString: string,
5234
3468
  ): SafeParseResult<
5235
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32,
3469
+ DeploymentGetConfigContentDeploymentsRequest2,
5236
3470
  SDKValidationError
5237
3471
  > {
5238
3472
  return safeParse(
5239
3473
  jsonString,
5240
3474
  (x) =>
5241
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32$inboundSchema
5242
- .parse(JSON.parse(x)),
5243
- `Failed to parse 'DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32' from JSON`,
3475
+ DeploymentGetConfigContentDeploymentsRequest2$inboundSchema.parse(
3476
+ JSON.parse(x),
3477
+ ),
3478
+ `Failed to parse 'DeploymentGetConfigContentDeploymentsRequest2' from JSON`,
5244
3479
  );
5245
3480
  }
5246
3481
 
@@ -5252,18 +3487,22 @@ export const DeploymentGetConfigMessagesDeploymentsContent$inboundSchema:
5252
3487
  unknown
5253
3488
  > = z.union([
5254
3489
  z.string(),
5255
- z.array(z.union([
5256
- z.lazy(() => DeploymentGetConfig2Deployments1$inboundSchema),
5257
- components.ImageContentPartSchema$inboundSchema,
5258
- components.AudioContentPartSchema$inboundSchema,
5259
- z.lazy(() => Two4$inboundSchema),
5260
- ])),
3490
+ z.array(
3491
+ z.union([
3492
+ components.TextContentPartSchema$inboundSchema.and(
3493
+ z.object({ type: z.literal("text") }),
3494
+ ),
3495
+ components.ImageContentPartSchema$inboundSchema,
3496
+ components.AudioContentPartSchema$inboundSchema,
3497
+ z.lazy(() => Two4$inboundSchema),
3498
+ ]),
3499
+ ),
5261
3500
  ]);
5262
3501
  /** @internal */
5263
3502
  export type DeploymentGetConfigMessagesDeploymentsContent$Outbound =
5264
3503
  | string
5265
3504
  | Array<
5266
- | DeploymentGetConfig2Deployments1$Outbound
3505
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
5267
3506
  | components.ImageContentPartSchema$Outbound
5268
3507
  | components.AudioContentPartSchema$Outbound
5269
3508
  | Two4$Outbound
@@ -5272,273 +3511,122 @@ export type DeploymentGetConfigMessagesDeploymentsContent$Outbound =
5272
3511
  /** @internal */
5273
3512
  export const DeploymentGetConfigMessagesDeploymentsContent$outboundSchema:
5274
3513
  z.ZodType<
5275
- DeploymentGetConfigMessagesDeploymentsContent$Outbound,
5276
- z.ZodTypeDef,
5277
- DeploymentGetConfigMessagesDeploymentsContent
5278
- > = z.union([
5279
- z.string(),
5280
- z.array(z.union([
5281
- z.lazy(() => DeploymentGetConfig2Deployments1$outboundSchema),
5282
- components.ImageContentPartSchema$outboundSchema,
5283
- components.AudioContentPartSchema$outboundSchema,
5284
- z.lazy(() => Two4$outboundSchema),
5285
- ])),
5286
- ]);
5287
-
5288
- export function deploymentGetConfigMessagesDeploymentsContentToJSON(
5289
- deploymentGetConfigMessagesDeploymentsContent:
5290
- DeploymentGetConfigMessagesDeploymentsContent,
5291
- ): string {
5292
- return JSON.stringify(
5293
- DeploymentGetConfigMessagesDeploymentsContent$outboundSchema.parse(
5294
- deploymentGetConfigMessagesDeploymentsContent,
5295
- ),
5296
- );
5297
- }
5298
- export function deploymentGetConfigMessagesDeploymentsContentFromJSON(
5299
- jsonString: string,
5300
- ): SafeParseResult<
5301
- DeploymentGetConfigMessagesDeploymentsContent,
5302
- SDKValidationError
5303
- > {
5304
- return safeParse(
5305
- jsonString,
5306
- (x) =>
5307
- DeploymentGetConfigMessagesDeploymentsContent$inboundSchema.parse(
5308
- JSON.parse(x),
5309
- ),
5310
- `Failed to parse 'DeploymentGetConfigMessagesDeploymentsContent' from JSON`,
5311
- );
5312
- }
5313
-
5314
- /** @internal */
5315
- export const MessagesUserMessage$inboundSchema: z.ZodType<
5316
- MessagesUserMessage,
5317
- z.ZodTypeDef,
5318
- unknown
5319
- > = z.object({
5320
- role: z.literal("user"),
5321
- name: z.string().optional(),
5322
- content: z.union([
5323
- z.string(),
5324
- z.array(z.union([
5325
- z.lazy(() => DeploymentGetConfig2Deployments1$inboundSchema),
5326
- components.ImageContentPartSchema$inboundSchema,
5327
- components.AudioContentPartSchema$inboundSchema,
5328
- z.lazy(() => Two4$inboundSchema),
5329
- ])),
5330
- ]),
5331
- });
5332
- /** @internal */
5333
- export type MessagesUserMessage$Outbound = {
5334
- role: "user";
5335
- name?: string | undefined;
5336
- content:
5337
- | string
5338
- | Array<
5339
- | DeploymentGetConfig2Deployments1$Outbound
5340
- | components.ImageContentPartSchema$Outbound
5341
- | components.AudioContentPartSchema$Outbound
5342
- | Two4$Outbound
5343
- >;
5344
- };
5345
-
5346
- /** @internal */
5347
- export const MessagesUserMessage$outboundSchema: z.ZodType<
5348
- MessagesUserMessage$Outbound,
5349
- z.ZodTypeDef,
5350
- MessagesUserMessage
5351
- > = z.object({
5352
- role: z.literal("user"),
5353
- name: z.string().optional(),
5354
- content: z.union([
5355
- z.string(),
5356
- z.array(z.union([
5357
- z.lazy(() => DeploymentGetConfig2Deployments1$outboundSchema),
5358
- components.ImageContentPartSchema$outboundSchema,
5359
- components.AudioContentPartSchema$outboundSchema,
5360
- z.lazy(() => Two4$outboundSchema),
5361
- ])),
5362
- ]),
5363
- });
5364
-
5365
- export function messagesUserMessageToJSON(
5366
- messagesUserMessage: MessagesUserMessage,
5367
- ): string {
5368
- return JSON.stringify(
5369
- MessagesUserMessage$outboundSchema.parse(messagesUserMessage),
5370
- );
5371
- }
5372
- export function messagesUserMessageFromJSON(
5373
- jsonString: string,
5374
- ): SafeParseResult<MessagesUserMessage, SDKValidationError> {
5375
- return safeParse(
5376
- jsonString,
5377
- (x) => MessagesUserMessage$inboundSchema.parse(JSON.parse(x)),
5378
- `Failed to parse 'MessagesUserMessage' from JSON`,
5379
- );
5380
- }
5381
-
5382
- /** @internal */
5383
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType$inboundSchema:
5384
- z.ZodNativeEnum<
5385
- typeof DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType
5386
- > = z.nativeEnum(
5387
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType,
5388
- );
5389
- /** @internal */
5390
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType$outboundSchema:
5391
- z.ZodNativeEnum<
5392
- typeof DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType
5393
- > =
5394
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType$inboundSchema;
5395
-
5396
- /** @internal */
5397
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type$inboundSchema:
5398
- z.ZodNativeEnum<
5399
- typeof DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type
5400
- > = z.nativeEnum(
5401
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type,
5402
- );
5403
- /** @internal */
5404
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type$outboundSchema:
5405
- z.ZodNativeEnum<
5406
- typeof DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type
5407
- > =
5408
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type$inboundSchema;
5409
-
5410
- /** @internal */
5411
- export const DeploymentGetConfigContentDeploymentsTtl$inboundSchema:
5412
- z.ZodNativeEnum<typeof DeploymentGetConfigContentDeploymentsTtl> = z
5413
- .nativeEnum(DeploymentGetConfigContentDeploymentsTtl);
5414
- /** @internal */
5415
- export const DeploymentGetConfigContentDeploymentsTtl$outboundSchema:
5416
- z.ZodNativeEnum<typeof DeploymentGetConfigContentDeploymentsTtl> =
5417
- DeploymentGetConfigContentDeploymentsTtl$inboundSchema;
5418
-
5419
- /** @internal */
5420
- export const DeploymentGetConfigContentDeploymentsCacheControl$inboundSchema:
5421
- z.ZodType<
5422
- DeploymentGetConfigContentDeploymentsCacheControl,
5423
- z.ZodTypeDef,
5424
- unknown
5425
- > = z.object({
5426
- type:
5427
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type$inboundSchema,
5428
- ttl: DeploymentGetConfigContentDeploymentsTtl$inboundSchema.default("5m"),
5429
- });
5430
- /** @internal */
5431
- export type DeploymentGetConfigContentDeploymentsCacheControl$Outbound = {
5432
- type: string;
5433
- ttl: string;
5434
- };
5435
-
5436
- /** @internal */
5437
- export const DeploymentGetConfigContentDeploymentsCacheControl$outboundSchema:
5438
- z.ZodType<
5439
- DeploymentGetConfigContentDeploymentsCacheControl$Outbound,
3514
+ DeploymentGetConfigMessagesDeploymentsContent$Outbound,
5440
3515
  z.ZodTypeDef,
5441
- DeploymentGetConfigContentDeploymentsCacheControl
5442
- > = z.object({
5443
- type:
5444
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type$outboundSchema,
5445
- ttl: DeploymentGetConfigContentDeploymentsTtl$outboundSchema.default("5m"),
5446
- });
3516
+ DeploymentGetConfigMessagesDeploymentsContent
3517
+ > = z.union([
3518
+ z.string(),
3519
+ z.array(
3520
+ z.union([
3521
+ components.TextContentPartSchema$outboundSchema.and(
3522
+ z.object({ type: z.literal("text") }),
3523
+ ),
3524
+ components.ImageContentPartSchema$outboundSchema,
3525
+ components.AudioContentPartSchema$outboundSchema,
3526
+ z.lazy(() => Two4$outboundSchema),
3527
+ ]),
3528
+ ),
3529
+ ]);
5447
3530
 
5448
- export function deploymentGetConfigContentDeploymentsCacheControlToJSON(
5449
- deploymentGetConfigContentDeploymentsCacheControl:
5450
- DeploymentGetConfigContentDeploymentsCacheControl,
3531
+ export function deploymentGetConfigMessagesDeploymentsContentToJSON(
3532
+ deploymentGetConfigMessagesDeploymentsContent:
3533
+ DeploymentGetConfigMessagesDeploymentsContent,
5451
3534
  ): string {
5452
3535
  return JSON.stringify(
5453
- DeploymentGetConfigContentDeploymentsCacheControl$outboundSchema.parse(
5454
- deploymentGetConfigContentDeploymentsCacheControl,
3536
+ DeploymentGetConfigMessagesDeploymentsContent$outboundSchema.parse(
3537
+ deploymentGetConfigMessagesDeploymentsContent,
5455
3538
  ),
5456
3539
  );
5457
3540
  }
5458
- export function deploymentGetConfigContentDeploymentsCacheControlFromJSON(
3541
+ export function deploymentGetConfigMessagesDeploymentsContentFromJSON(
5459
3542
  jsonString: string,
5460
3543
  ): SafeParseResult<
5461
- DeploymentGetConfigContentDeploymentsCacheControl,
3544
+ DeploymentGetConfigMessagesDeploymentsContent,
5462
3545
  SDKValidationError
5463
3546
  > {
5464
3547
  return safeParse(
5465
3548
  jsonString,
5466
3549
  (x) =>
5467
- DeploymentGetConfigContentDeploymentsCacheControl$inboundSchema.parse(
3550
+ DeploymentGetConfigMessagesDeploymentsContent$inboundSchema.parse(
5468
3551
  JSON.parse(x),
5469
3552
  ),
5470
- `Failed to parse 'DeploymentGetConfigContentDeploymentsCacheControl' from JSON`,
3553
+ `Failed to parse 'DeploymentGetConfigMessagesDeploymentsContent' from JSON`,
5471
3554
  );
5472
3555
  }
5473
3556
 
5474
3557
  /** @internal */
5475
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$inboundSchema:
5476
- z.ZodType<
5477
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2,
5478
- z.ZodTypeDef,
5479
- unknown
5480
- > = z.object({
5481
- type:
5482
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType$inboundSchema,
5483
- text: z.string(),
5484
- cache_control: z.lazy(() =>
5485
- DeploymentGetConfigContentDeploymentsCacheControl$inboundSchema
5486
- ).optional(),
5487
- }).transform((v) => {
5488
- return remap$(v, {
5489
- "cache_control": "cacheControl",
5490
- });
5491
- });
3558
+ export const MessagesUserMessage$inboundSchema: z.ZodType<
3559
+ MessagesUserMessage,
3560
+ z.ZodTypeDef,
3561
+ unknown
3562
+ > = z.object({
3563
+ role: z.literal("user"),
3564
+ name: z.string().optional(),
3565
+ content: z.union([
3566
+ z.string(),
3567
+ z.array(
3568
+ z.union([
3569
+ components.TextContentPartSchema$inboundSchema.and(
3570
+ z.object({ type: z.literal("text") }),
3571
+ ),
3572
+ components.ImageContentPartSchema$inboundSchema,
3573
+ components.AudioContentPartSchema$inboundSchema,
3574
+ z.lazy(() => Two4$inboundSchema),
3575
+ ]),
3576
+ ),
3577
+ ]),
3578
+ });
5492
3579
  /** @internal */
5493
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound =
5494
- {
5495
- type: string;
5496
- text: string;
5497
- cache_control?:
5498
- | DeploymentGetConfigContentDeploymentsCacheControl$Outbound
5499
- | undefined;
5500
- };
3580
+ export type MessagesUserMessage$Outbound = {
3581
+ role: "user";
3582
+ name?: string | undefined;
3583
+ content:
3584
+ | string
3585
+ | Array<
3586
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
3587
+ | components.ImageContentPartSchema$Outbound
3588
+ | components.AudioContentPartSchema$Outbound
3589
+ | Two4$Outbound
3590
+ >;
3591
+ };
5501
3592
 
5502
3593
  /** @internal */
5503
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema:
5504
- z.ZodType<
5505
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound,
5506
- z.ZodTypeDef,
5507
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2
5508
- > = z.object({
5509
- type:
5510
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType$outboundSchema,
5511
- text: z.string(),
5512
- cacheControl: z.lazy(() =>
5513
- DeploymentGetConfigContentDeploymentsCacheControl$outboundSchema
5514
- ).optional(),
5515
- }).transform((v) => {
5516
- return remap$(v, {
5517
- cacheControl: "cache_control",
5518
- });
5519
- });
3594
+ export const MessagesUserMessage$outboundSchema: z.ZodType<
3595
+ MessagesUserMessage$Outbound,
3596
+ z.ZodTypeDef,
3597
+ MessagesUserMessage
3598
+ > = z.object({
3599
+ role: z.literal("user"),
3600
+ name: z.string().optional(),
3601
+ content: z.union([
3602
+ z.string(),
3603
+ z.array(
3604
+ z.union([
3605
+ components.TextContentPartSchema$outboundSchema.and(
3606
+ z.object({ type: z.literal("text") }),
3607
+ ),
3608
+ components.ImageContentPartSchema$outboundSchema,
3609
+ components.AudioContentPartSchema$outboundSchema,
3610
+ z.lazy(() => Two4$outboundSchema),
3611
+ ]),
3612
+ ),
3613
+ ]),
3614
+ });
5520
3615
 
5521
- export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2ToJSON(
5522
- deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2:
5523
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2,
3616
+ export function messagesUserMessageToJSON(
3617
+ messagesUserMessage: MessagesUserMessage,
5524
3618
  ): string {
5525
3619
  return JSON.stringify(
5526
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema
5527
- .parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2),
3620
+ MessagesUserMessage$outboundSchema.parse(messagesUserMessage),
5528
3621
  );
5529
3622
  }
5530
- export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2FromJSON(
3623
+ export function messagesUserMessageFromJSON(
5531
3624
  jsonString: string,
5532
- ): SafeParseResult<
5533
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2,
5534
- SDKValidationError
5535
- > {
3625
+ ): SafeParseResult<MessagesUserMessage, SDKValidationError> {
5536
3626
  return safeParse(
5537
3627
  jsonString,
5538
- (x) =>
5539
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$inboundSchema
5540
- .parse(JSON.parse(x)),
5541
- `Failed to parse 'DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2' from JSON`,
3628
+ (x) => MessagesUserMessage$inboundSchema.parse(JSON.parse(x)),
3629
+ `Failed to parse 'MessagesUserMessage' from JSON`,
5542
3630
  );
5543
3631
  }
5544
3632
 
@@ -5549,16 +3637,12 @@ export const DeploymentGetConfigMessagesContent$inboundSchema: z.ZodType<
5549
3637
  unknown
5550
3638
  > = z.union([
5551
3639
  z.string(),
5552
- z.array(z.lazy(() =>
5553
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$inboundSchema
5554
- )),
3640
+ z.array(components.TextContentPartSchema$inboundSchema),
5555
3641
  ]);
5556
3642
  /** @internal */
5557
3643
  export type DeploymentGetConfigMessagesContent$Outbound =
5558
3644
  | string
5559
- | Array<
5560
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound
5561
- >;
3645
+ | Array<components.TextContentPartSchema$Outbound>;
5562
3646
 
5563
3647
  /** @internal */
5564
3648
  export const DeploymentGetConfigMessagesContent$outboundSchema: z.ZodType<
@@ -5567,9 +3651,7 @@ export const DeploymentGetConfigMessagesContent$outboundSchema: z.ZodType<
5567
3651
  DeploymentGetConfigMessagesContent
5568
3652
  > = z.union([
5569
3653
  z.string(),
5570
- z.array(z.lazy(() =>
5571
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema
5572
- )),
3654
+ z.array(components.TextContentPartSchema$outboundSchema),
5573
3655
  ]);
5574
3656
 
5575
3657
  export function deploymentGetConfigMessagesContentToJSON(
@@ -5601,20 +3683,14 @@ export const MessagesDeveloperMessage$inboundSchema: z.ZodType<
5601
3683
  role: z.literal("developer"),
5602
3684
  content: z.union([
5603
3685
  z.string(),
5604
- z.array(z.lazy(() =>
5605
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$inboundSchema
5606
- )),
3686
+ z.array(components.TextContentPartSchema$inboundSchema),
5607
3687
  ]),
5608
3688
  name: z.string().optional(),
5609
3689
  });
5610
3690
  /** @internal */
5611
3691
  export type MessagesDeveloperMessage$Outbound = {
5612
3692
  role: "developer";
5613
- content:
5614
- | string
5615
- | Array<
5616
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound
5617
- >;
3693
+ content: string | Array<components.TextContentPartSchema$Outbound>;
5618
3694
  name?: string | undefined;
5619
3695
  };
5620
3696
 
@@ -5627,9 +3703,7 @@ export const MessagesDeveloperMessage$outboundSchema: z.ZodType<
5627
3703
  role: z.literal("developer"),
5628
3704
  content: z.union([
5629
3705
  z.string(),
5630
- z.array(z.lazy(() =>
5631
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema
5632
- )),
3706
+ z.array(components.TextContentPartSchema$outboundSchema),
5633
3707
  ]),
5634
3708
  name: z.string().optional(),
5635
3709
  });
@@ -5651,150 +3725,6 @@ export function messagesDeveloperMessageFromJSON(
5651
3725
  );
5652
3726
  }
5653
3727
 
5654
- /** @internal */
5655
- export const DeploymentGetConfigContentDeploymentsRequestType$inboundSchema:
5656
- z.ZodNativeEnum<typeof DeploymentGetConfigContentDeploymentsRequestType> = z
5657
- .nativeEnum(DeploymentGetConfigContentDeploymentsRequestType);
5658
- /** @internal */
5659
- export const DeploymentGetConfigContentDeploymentsRequestType$outboundSchema:
5660
- z.ZodNativeEnum<typeof DeploymentGetConfigContentDeploymentsRequestType> =
5661
- DeploymentGetConfigContentDeploymentsRequestType$inboundSchema;
5662
-
5663
- /** @internal */
5664
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyType$inboundSchema:
5665
- z.ZodNativeEnum<
5666
- typeof DeploymentGetConfigContentDeploymentsRequestRequestBodyType
5667
- > = z.nativeEnum(DeploymentGetConfigContentDeploymentsRequestRequestBodyType);
5668
- /** @internal */
5669
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyType$outboundSchema:
5670
- z.ZodNativeEnum<
5671
- typeof DeploymentGetConfigContentDeploymentsRequestRequestBodyType
5672
- > = DeploymentGetConfigContentDeploymentsRequestRequestBodyType$inboundSchema;
5673
-
5674
- /** @internal */
5675
- export const DeploymentGetConfigContentTtl$inboundSchema: z.ZodNativeEnum<
5676
- typeof DeploymentGetConfigContentTtl
5677
- > = z.nativeEnum(DeploymentGetConfigContentTtl);
5678
- /** @internal */
5679
- export const DeploymentGetConfigContentTtl$outboundSchema: z.ZodNativeEnum<
5680
- typeof DeploymentGetConfigContentTtl
5681
- > = DeploymentGetConfigContentTtl$inboundSchema;
5682
-
5683
- /** @internal */
5684
- export const DeploymentGetConfigContentCacheControl$inboundSchema: z.ZodType<
5685
- DeploymentGetConfigContentCacheControl,
5686
- z.ZodTypeDef,
5687
- unknown
5688
- > = z.object({
5689
- type:
5690
- DeploymentGetConfigContentDeploymentsRequestRequestBodyType$inboundSchema,
5691
- ttl: DeploymentGetConfigContentTtl$inboundSchema.default("5m"),
5692
- });
5693
- /** @internal */
5694
- export type DeploymentGetConfigContentCacheControl$Outbound = {
5695
- type: string;
5696
- ttl: string;
5697
- };
5698
-
5699
- /** @internal */
5700
- export const DeploymentGetConfigContentCacheControl$outboundSchema: z.ZodType<
5701
- DeploymentGetConfigContentCacheControl$Outbound,
5702
- z.ZodTypeDef,
5703
- DeploymentGetConfigContentCacheControl
5704
- > = z.object({
5705
- type:
5706
- DeploymentGetConfigContentDeploymentsRequestRequestBodyType$outboundSchema,
5707
- ttl: DeploymentGetConfigContentTtl$outboundSchema.default("5m"),
5708
- });
5709
-
5710
- export function deploymentGetConfigContentCacheControlToJSON(
5711
- deploymentGetConfigContentCacheControl:
5712
- DeploymentGetConfigContentCacheControl,
5713
- ): string {
5714
- return JSON.stringify(
5715
- DeploymentGetConfigContentCacheControl$outboundSchema.parse(
5716
- deploymentGetConfigContentCacheControl,
5717
- ),
5718
- );
5719
- }
5720
- export function deploymentGetConfigContentCacheControlFromJSON(
5721
- jsonString: string,
5722
- ): SafeParseResult<DeploymentGetConfigContentCacheControl, SDKValidationError> {
5723
- return safeParse(
5724
- jsonString,
5725
- (x) =>
5726
- DeploymentGetConfigContentCacheControl$inboundSchema.parse(JSON.parse(x)),
5727
- `Failed to parse 'DeploymentGetConfigContentCacheControl' from JSON`,
5728
- );
5729
- }
5730
-
5731
- /** @internal */
5732
- export const DeploymentGetConfigContentDeploymentsRequestRequestBody2$inboundSchema:
5733
- z.ZodType<
5734
- DeploymentGetConfigContentDeploymentsRequestRequestBody2,
5735
- z.ZodTypeDef,
5736
- unknown
5737
- > = z.object({
5738
- type: DeploymentGetConfigContentDeploymentsRequestType$inboundSchema,
5739
- text: z.string(),
5740
- cache_control: z.lazy(() =>
5741
- DeploymentGetConfigContentCacheControl$inboundSchema
5742
- ).optional(),
5743
- }).transform((v) => {
5744
- return remap$(v, {
5745
- "cache_control": "cacheControl",
5746
- });
5747
- });
5748
- /** @internal */
5749
- export type DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound =
5750
- {
5751
- type: string;
5752
- text: string;
5753
- cache_control?: DeploymentGetConfigContentCacheControl$Outbound | undefined;
5754
- };
5755
-
5756
- /** @internal */
5757
- export const DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema:
5758
- z.ZodType<
5759
- DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound,
5760
- z.ZodTypeDef,
5761
- DeploymentGetConfigContentDeploymentsRequestRequestBody2
5762
- > = z.object({
5763
- type: DeploymentGetConfigContentDeploymentsRequestType$outboundSchema,
5764
- text: z.string(),
5765
- cacheControl: z.lazy(() =>
5766
- DeploymentGetConfigContentCacheControl$outboundSchema
5767
- ).optional(),
5768
- }).transform((v) => {
5769
- return remap$(v, {
5770
- cacheControl: "cache_control",
5771
- });
5772
- });
5773
-
5774
- export function deploymentGetConfigContentDeploymentsRequestRequestBody2ToJSON(
5775
- deploymentGetConfigContentDeploymentsRequestRequestBody2:
5776
- DeploymentGetConfigContentDeploymentsRequestRequestBody2,
5777
- ): string {
5778
- return JSON.stringify(
5779
- DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema
5780
- .parse(deploymentGetConfigContentDeploymentsRequestRequestBody2),
5781
- );
5782
- }
5783
- export function deploymentGetConfigContentDeploymentsRequestRequestBody2FromJSON(
5784
- jsonString: string,
5785
- ): SafeParseResult<
5786
- DeploymentGetConfigContentDeploymentsRequestRequestBody2,
5787
- SDKValidationError
5788
- > {
5789
- return safeParse(
5790
- jsonString,
5791
- (x) =>
5792
- DeploymentGetConfigContentDeploymentsRequestRequestBody2$inboundSchema
5793
- .parse(JSON.parse(x)),
5794
- `Failed to parse 'DeploymentGetConfigContentDeploymentsRequestRequestBody2' from JSON`,
5795
- );
5796
- }
5797
-
5798
3728
  /** @internal */
5799
3729
  export const MessagesContent$inboundSchema: z.ZodType<
5800
3730
  MessagesContent,
@@ -5802,14 +3732,12 @@ export const MessagesContent$inboundSchema: z.ZodType<
5802
3732
  unknown
5803
3733
  > = z.union([
5804
3734
  z.string(),
5805
- z.array(z.lazy(() =>
5806
- DeploymentGetConfigContentDeploymentsRequestRequestBody2$inboundSchema
5807
- )),
3735
+ z.array(components.TextContentPartSchema$inboundSchema),
5808
3736
  ]);
5809
3737
  /** @internal */
5810
3738
  export type MessagesContent$Outbound =
5811
3739
  | string
5812
- | Array<DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound>;
3740
+ | Array<components.TextContentPartSchema$Outbound>;
5813
3741
 
5814
3742
  /** @internal */
5815
3743
  export const MessagesContent$outboundSchema: z.ZodType<
@@ -5818,9 +3746,7 @@ export const MessagesContent$outboundSchema: z.ZodType<
5818
3746
  MessagesContent
5819
3747
  > = z.union([
5820
3748
  z.string(),
5821
- z.array(z.lazy(() =>
5822
- DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema
5823
- )),
3749
+ z.array(components.TextContentPartSchema$outboundSchema),
5824
3750
  ]);
5825
3751
 
5826
3752
  export function messagesContentToJSON(
@@ -5847,18 +3773,14 @@ export const MessagesSystemMessage$inboundSchema: z.ZodType<
5847
3773
  role: z.literal("system"),
5848
3774
  content: z.union([
5849
3775
  z.string(),
5850
- z.array(z.lazy(() =>
5851
- DeploymentGetConfigContentDeploymentsRequestRequestBody2$inboundSchema
5852
- )),
3776
+ z.array(components.TextContentPartSchema$inboundSchema),
5853
3777
  ]),
5854
3778
  name: z.string().optional(),
5855
3779
  });
5856
3780
  /** @internal */
5857
3781
  export type MessagesSystemMessage$Outbound = {
5858
3782
  role: "system";
5859
- content:
5860
- | string
5861
- | Array<DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound>;
3783
+ content: string | Array<components.TextContentPartSchema$Outbound>;
5862
3784
  name?: string | undefined;
5863
3785
  };
5864
3786
 
@@ -5871,9 +3793,7 @@ export const MessagesSystemMessage$outboundSchema: z.ZodType<
5871
3793
  role: z.literal("system"),
5872
3794
  content: z.union([
5873
3795
  z.string(),
5874
- z.array(z.lazy(() =>
5875
- DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema
5876
- )),
3796
+ z.array(components.TextContentPartSchema$outboundSchema),
5877
3797
  ]),
5878
3798
  name: z.string().optional(),
5879
3799
  });
@@ -5896,8 +3816,8 @@ export function messagesSystemMessageFromJSON(
5896
3816
  }
5897
3817
 
5898
3818
  /** @internal */
5899
- export const Messages$inboundSchema: z.ZodType<
5900
- Messages,
3819
+ export const DeploymentGetConfigMessages$inboundSchema: z.ZodType<
3820
+ DeploymentGetConfigMessages,
5901
3821
  z.ZodTypeDef,
5902
3822
  unknown
5903
3823
  > = z.union([
@@ -5908,7 +3828,7 @@ export const Messages$inboundSchema: z.ZodType<
5908
3828
  z.lazy(() => MessagesToolMessage$inboundSchema),
5909
3829
  ]);
5910
3830
  /** @internal */
5911
- export type Messages$Outbound =
3831
+ export type DeploymentGetConfigMessages$Outbound =
5912
3832
  | MessagesSystemMessage$Outbound
5913
3833
  | MessagesDeveloperMessage$Outbound
5914
3834
  | MessagesUserMessage$Outbound
@@ -5916,10 +3836,10 @@ export type Messages$Outbound =
5916
3836
  | MessagesToolMessage$Outbound;
5917
3837
 
5918
3838
  /** @internal */
5919
- export const Messages$outboundSchema: z.ZodType<
5920
- Messages$Outbound,
3839
+ export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
3840
+ DeploymentGetConfigMessages$Outbound,
5921
3841
  z.ZodTypeDef,
5922
- Messages
3842
+ DeploymentGetConfigMessages
5923
3843
  > = z.union([
5924
3844
  z.lazy(() => MessagesSystemMessage$outboundSchema),
5925
3845
  z.lazy(() => MessagesDeveloperMessage$outboundSchema),
@@ -5928,16 +3848,22 @@ export const Messages$outboundSchema: z.ZodType<
5928
3848
  z.lazy(() => MessagesToolMessage$outboundSchema),
5929
3849
  ]);
5930
3850
 
5931
- export function messagesToJSON(messages: Messages): string {
5932
- return JSON.stringify(Messages$outboundSchema.parse(messages));
3851
+ export function deploymentGetConfigMessagesToJSON(
3852
+ deploymentGetConfigMessages: DeploymentGetConfigMessages,
3853
+ ): string {
3854
+ return JSON.stringify(
3855
+ DeploymentGetConfigMessages$outboundSchema.parse(
3856
+ deploymentGetConfigMessages,
3857
+ ),
3858
+ );
5933
3859
  }
5934
- export function messagesFromJSON(
3860
+ export function deploymentGetConfigMessagesFromJSON(
5935
3861
  jsonString: string,
5936
- ): SafeParseResult<Messages, SDKValidationError> {
3862
+ ): SafeParseResult<DeploymentGetConfigMessages, SDKValidationError> {
5937
3863
  return safeParse(
5938
3864
  jsonString,
5939
- (x) => Messages$inboundSchema.parse(JSON.parse(x)),
5940
- `Failed to parse 'Messages' from JSON`,
3865
+ (x) => DeploymentGetConfigMessages$inboundSchema.parse(JSON.parse(x)),
3866
+ `Failed to parse 'DeploymentGetConfigMessages' from JSON`,
5941
3867
  );
5942
3868
  }
5943
3869
 
@@ -8100,8 +6026,8 @@ export function deploymentGetConfig22FromJSON(
8100
6026
  }
8101
6027
 
8102
6028
  /** @internal */
8103
- export const DeploymentGetConfig2DeploymentsResponse1$inboundSchema: z.ZodType<
8104
- DeploymentGetConfig2DeploymentsResponse1,
6029
+ export const DeploymentGetConfig21$inboundSchema: z.ZodType<
6030
+ DeploymentGetConfig21,
8105
6031
  z.ZodTypeDef,
8106
6032
  unknown
8107
6033
  > = z.object({
@@ -8109,44 +6035,35 @@ export const DeploymentGetConfig2DeploymentsResponse1$inboundSchema: z.ZodType<
8109
6035
  text: z.string(),
8110
6036
  });
8111
6037
  /** @internal */
8112
- export type DeploymentGetConfig2DeploymentsResponse1$Outbound = {
6038
+ export type DeploymentGetConfig21$Outbound = {
8113
6039
  type: "text";
8114
6040
  text: string;
8115
6041
  };
8116
6042
 
8117
6043
  /** @internal */
8118
- export const DeploymentGetConfig2DeploymentsResponse1$outboundSchema: z.ZodType<
8119
- DeploymentGetConfig2DeploymentsResponse1$Outbound,
6044
+ export const DeploymentGetConfig21$outboundSchema: z.ZodType<
6045
+ DeploymentGetConfig21$Outbound,
8120
6046
  z.ZodTypeDef,
8121
- DeploymentGetConfig2DeploymentsResponse1
6047
+ DeploymentGetConfig21
8122
6048
  > = z.object({
8123
6049
  type: z.literal("text"),
8124
6050
  text: z.string(),
8125
6051
  });
8126
6052
 
8127
- export function deploymentGetConfig2DeploymentsResponse1ToJSON(
8128
- deploymentGetConfig2DeploymentsResponse1:
8129
- DeploymentGetConfig2DeploymentsResponse1,
6053
+ export function deploymentGetConfig21ToJSON(
6054
+ deploymentGetConfig21: DeploymentGetConfig21,
8130
6055
  ): string {
8131
6056
  return JSON.stringify(
8132
- DeploymentGetConfig2DeploymentsResponse1$outboundSchema.parse(
8133
- deploymentGetConfig2DeploymentsResponse1,
8134
- ),
6057
+ DeploymentGetConfig21$outboundSchema.parse(deploymentGetConfig21),
8135
6058
  );
8136
6059
  }
8137
- export function deploymentGetConfig2DeploymentsResponse1FromJSON(
6060
+ export function deploymentGetConfig21FromJSON(
8138
6061
  jsonString: string,
8139
- ): SafeParseResult<
8140
- DeploymentGetConfig2DeploymentsResponse1,
8141
- SDKValidationError
8142
- > {
6062
+ ): SafeParseResult<DeploymentGetConfig21, SDKValidationError> {
8143
6063
  return safeParse(
8144
6064
  jsonString,
8145
- (x) =>
8146
- DeploymentGetConfig2DeploymentsResponse1$inboundSchema.parse(
8147
- JSON.parse(x),
8148
- ),
8149
- `Failed to parse 'DeploymentGetConfig2DeploymentsResponse1' from JSON`,
6065
+ (x) => DeploymentGetConfig21$inboundSchema.parse(JSON.parse(x)),
6066
+ `Failed to parse 'DeploymentGetConfig21' from JSON`,
8150
6067
  );
8151
6068
  }
8152
6069
 
@@ -8157,13 +6074,13 @@ export const DeploymentGetConfigContentDeploymentsResponse2$inboundSchema:
8157
6074
  z.ZodTypeDef,
8158
6075
  unknown
8159
6076
  > = z.union([
8160
- z.lazy(() => DeploymentGetConfig2DeploymentsResponse1$inboundSchema),
6077
+ z.lazy(() => DeploymentGetConfig21$inboundSchema),
8161
6078
  z.lazy(() => DeploymentGetConfig22$inboundSchema),
8162
6079
  z.lazy(() => DeploymentGetConfig23$inboundSchema),
8163
6080
  ]);
8164
6081
  /** @internal */
8165
6082
  export type DeploymentGetConfigContentDeploymentsResponse2$Outbound =
8166
- | DeploymentGetConfig2DeploymentsResponse1$Outbound
6083
+ | DeploymentGetConfig21$Outbound
8167
6084
  | DeploymentGetConfig22$Outbound
8168
6085
  | DeploymentGetConfig23$Outbound;
8169
6086
 
@@ -8174,7 +6091,7 @@ export const DeploymentGetConfigContentDeploymentsResponse2$outboundSchema:
8174
6091
  z.ZodTypeDef,
8175
6092
  DeploymentGetConfigContentDeploymentsResponse2
8176
6093
  > = z.union([
8177
- z.lazy(() => DeploymentGetConfig2DeploymentsResponse1$outboundSchema),
6094
+ z.lazy(() => DeploymentGetConfig21$outboundSchema),
8178
6095
  z.lazy(() => DeploymentGetConfig22$outboundSchema),
8179
6096
  z.lazy(() => DeploymentGetConfig23$outboundSchema),
8180
6097
  ]);
@@ -8213,7 +6130,7 @@ export const DeploymentGetConfigContent$inboundSchema: z.ZodType<
8213
6130
  > = z.union([
8214
6131
  z.string(),
8215
6132
  z.array(z.union([
8216
- z.lazy(() => DeploymentGetConfig2DeploymentsResponse1$inboundSchema),
6133
+ z.lazy(() => DeploymentGetConfig21$inboundSchema),
8217
6134
  z.lazy(() => DeploymentGetConfig22$inboundSchema),
8218
6135
  z.lazy(() => DeploymentGetConfig23$inboundSchema),
8219
6136
  ])),
@@ -8222,7 +6139,7 @@ export const DeploymentGetConfigContent$inboundSchema: z.ZodType<
8222
6139
  export type DeploymentGetConfigContent$Outbound =
8223
6140
  | string
8224
6141
  | Array<
8225
- | DeploymentGetConfig2DeploymentsResponse1$Outbound
6142
+ | DeploymentGetConfig21$Outbound
8226
6143
  | DeploymentGetConfig22$Outbound
8227
6144
  | DeploymentGetConfig23$Outbound
8228
6145
  >;
@@ -8235,7 +6152,7 @@ export const DeploymentGetConfigContent$outboundSchema: z.ZodType<
8235
6152
  > = z.union([
8236
6153
  z.string(),
8237
6154
  z.array(z.union([
8238
- z.lazy(() => DeploymentGetConfig2DeploymentsResponse1$outboundSchema),
6155
+ z.lazy(() => DeploymentGetConfig21$outboundSchema),
8239
6156
  z.lazy(() => DeploymentGetConfig22$outboundSchema),
8240
6157
  z.lazy(() => DeploymentGetConfig23$outboundSchema),
8241
6158
  ])),
@@ -8364,8 +6281,8 @@ export function deploymentGetConfigToolCallsFromJSON(
8364
6281
  }
8365
6282
 
8366
6283
  /** @internal */
8367
- export const DeploymentGetConfigMessages$inboundSchema: z.ZodType<
8368
- DeploymentGetConfigMessages,
6284
+ export const DeploymentGetConfigDeploymentsMessages$inboundSchema: z.ZodType<
6285
+ DeploymentGetConfigDeploymentsMessages,
8369
6286
  z.ZodTypeDef,
8370
6287
  unknown
8371
6288
  > = z.object({
@@ -8375,7 +6292,7 @@ export const DeploymentGetConfigMessages$inboundSchema: z.ZodType<
8375
6292
  z.string(),
8376
6293
  z.array(
8377
6294
  z.union([
8378
- z.lazy(() => DeploymentGetConfig2DeploymentsResponse1$inboundSchema),
6295
+ z.lazy(() => DeploymentGetConfig21$inboundSchema),
8379
6296
  z.lazy(() => DeploymentGetConfig22$inboundSchema),
8380
6297
  z.lazy(() => DeploymentGetConfig23$inboundSchema),
8381
6298
  ]),
@@ -8384,7 +6301,7 @@ export const DeploymentGetConfigMessages$inboundSchema: z.ZodType<
8384
6301
  ),
8385
6302
  tool_calls: z.array(z.lazy(() => DeploymentGetConfigToolCalls$inboundSchema))
8386
6303
  .optional(),
8387
- tool_call_id: z.string().optional(),
6304
+ tool_call_id: z.nullable(z.string()).optional(),
8388
6305
  }).transform((v) => {
8389
6306
  return remap$(v, {
8390
6307
  "tool_calls": "toolCalls",
@@ -8392,25 +6309,25 @@ export const DeploymentGetConfigMessages$inboundSchema: z.ZodType<
8392
6309
  });
8393
6310
  });
8394
6311
  /** @internal */
8395
- export type DeploymentGetConfigMessages$Outbound = {
6312
+ export type DeploymentGetConfigDeploymentsMessages$Outbound = {
8396
6313
  role: string;
8397
6314
  content:
8398
6315
  | string
8399
6316
  | Array<
8400
- | DeploymentGetConfig2DeploymentsResponse1$Outbound
6317
+ | DeploymentGetConfig21$Outbound
8401
6318
  | DeploymentGetConfig22$Outbound
8402
6319
  | DeploymentGetConfig23$Outbound
8403
6320
  >
8404
6321
  | null;
8405
6322
  tool_calls?: Array<DeploymentGetConfigToolCalls$Outbound> | undefined;
8406
- tool_call_id?: string | undefined;
6323
+ tool_call_id?: string | null | undefined;
8407
6324
  };
8408
6325
 
8409
6326
  /** @internal */
8410
- export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
8411
- DeploymentGetConfigMessages$Outbound,
6327
+ export const DeploymentGetConfigDeploymentsMessages$outboundSchema: z.ZodType<
6328
+ DeploymentGetConfigDeploymentsMessages$Outbound,
8412
6329
  z.ZodTypeDef,
8413
- DeploymentGetConfigMessages
6330
+ DeploymentGetConfigDeploymentsMessages
8414
6331
  > = z.object({
8415
6332
  role: DeploymentGetConfigRole$outboundSchema,
8416
6333
  content: z.nullable(
@@ -8418,7 +6335,7 @@ export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
8418
6335
  z.string(),
8419
6336
  z.array(
8420
6337
  z.union([
8421
- z.lazy(() => DeploymentGetConfig2DeploymentsResponse1$outboundSchema),
6338
+ z.lazy(() => DeploymentGetConfig21$outboundSchema),
8422
6339
  z.lazy(() => DeploymentGetConfig22$outboundSchema),
8423
6340
  z.lazy(() => DeploymentGetConfig23$outboundSchema),
8424
6341
  ]),
@@ -8427,7 +6344,7 @@ export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
8427
6344
  ),
8428
6345
  toolCalls: z.array(z.lazy(() => DeploymentGetConfigToolCalls$outboundSchema))
8429
6346
  .optional(),
8430
- toolCallId: z.string().optional(),
6347
+ toolCallId: z.nullable(z.string()).optional(),
8431
6348
  }).transform((v) => {
8432
6349
  return remap$(v, {
8433
6350
  toolCalls: "tool_calls",
@@ -8435,22 +6352,24 @@ export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
8435
6352
  });
8436
6353
  });
8437
6354
 
8438
- export function deploymentGetConfigMessagesToJSON(
8439
- deploymentGetConfigMessages: DeploymentGetConfigMessages,
6355
+ export function deploymentGetConfigDeploymentsMessagesToJSON(
6356
+ deploymentGetConfigDeploymentsMessages:
6357
+ DeploymentGetConfigDeploymentsMessages,
8440
6358
  ): string {
8441
6359
  return JSON.stringify(
8442
- DeploymentGetConfigMessages$outboundSchema.parse(
8443
- deploymentGetConfigMessages,
6360
+ DeploymentGetConfigDeploymentsMessages$outboundSchema.parse(
6361
+ deploymentGetConfigDeploymentsMessages,
8444
6362
  ),
8445
6363
  );
8446
6364
  }
8447
- export function deploymentGetConfigMessagesFromJSON(
6365
+ export function deploymentGetConfigDeploymentsMessagesFromJSON(
8448
6366
  jsonString: string,
8449
- ): SafeParseResult<DeploymentGetConfigMessages, SDKValidationError> {
6367
+ ): SafeParseResult<DeploymentGetConfigDeploymentsMessages, SDKValidationError> {
8450
6368
  return safeParse(
8451
6369
  jsonString,
8452
- (x) => DeploymentGetConfigMessages$inboundSchema.parse(JSON.parse(x)),
8453
- `Failed to parse 'DeploymentGetConfigMessages' from JSON`,
6370
+ (x) =>
6371
+ DeploymentGetConfigDeploymentsMessages$inboundSchema.parse(JSON.parse(x)),
6372
+ `Failed to parse 'DeploymentGetConfigDeploymentsMessages' from JSON`,
8454
6373
  );
8455
6374
  }
8456
6375
 
@@ -9065,7 +6984,9 @@ export const DeploymentGetConfigResponseBody$inboundSchema: z.ZodType<
9065
6984
  model: z.string(),
9066
6985
  type: DeploymentGetConfigType$inboundSchema.optional(),
9067
6986
  version: z.string(),
9068
- messages: z.array(z.lazy(() => DeploymentGetConfigMessages$inboundSchema)),
6987
+ messages: z.array(
6988
+ z.lazy(() => DeploymentGetConfigDeploymentsMessages$inboundSchema),
6989
+ ),
9069
6990
  parameters: z.lazy(() => DeploymentGetConfigParameters$inboundSchema),
9070
6991
  tools: z.array(z.lazy(() => DeploymentGetConfigTools$inboundSchema))
9071
6992
  .optional(),
@@ -9077,7 +6998,7 @@ export type DeploymentGetConfigResponseBody$Outbound = {
9077
6998
  model: string;
9078
6999
  type?: string | undefined;
9079
7000
  version: string;
9080
- messages: Array<DeploymentGetConfigMessages$Outbound>;
7001
+ messages: Array<DeploymentGetConfigDeploymentsMessages$Outbound>;
9081
7002
  parameters: DeploymentGetConfigParameters$Outbound;
9082
7003
  tools?: Array<DeploymentGetConfigTools$Outbound> | undefined;
9083
7004
  };
@@ -9093,7 +7014,9 @@ export const DeploymentGetConfigResponseBody$outboundSchema: z.ZodType<
9093
7014
  model: z.string(),
9094
7015
  type: DeploymentGetConfigType$outboundSchema.optional(),
9095
7016
  version: z.string(),
9096
- messages: z.array(z.lazy(() => DeploymentGetConfigMessages$outboundSchema)),
7017
+ messages: z.array(
7018
+ z.lazy(() => DeploymentGetConfigDeploymentsMessages$outboundSchema),
7019
+ ),
9097
7020
  parameters: z.lazy(() => DeploymentGetConfigParameters$outboundSchema),
9098
7021
  tools: z.array(z.lazy(() => DeploymentGetConfigTools$outboundSchema))
9099
7022
  .optional(),