@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
@@ -99,7 +99,7 @@ export type TwoFile = {
99
99
  filename?: string | undefined;
100
100
  };
101
101
 
102
- export type Three = {
102
+ export type Two3 = {
103
103
  /**
104
104
  * The type of the content part. Always `file`.
105
105
  */
@@ -107,7 +107,7 @@ export type Three = {
107
107
  file: TwoFile;
108
108
  };
109
109
 
110
- export type ImageUrl = {
110
+ export type TwoImageUrl = {
111
111
  /**
112
112
  * Either a URL of the image or the base64 encoded data URI.
113
113
  */
@@ -121,25 +121,25 @@ export type ImageUrl = {
121
121
  /**
122
122
  * The image part of the prompt message. Only supported with vision models.
123
123
  */
124
- export type Two2 = {
124
+ export type CreatePrompt22 = {
125
125
  type: "image_url";
126
- imageUrl: ImageUrl;
126
+ imageUrl: TwoImageUrl;
127
127
  };
128
128
 
129
129
  /**
130
130
  * Text content part of a prompt message
131
131
  */
132
- export type CreatePrompt21 = {
132
+ export type Two1 = {
133
133
  type: "text";
134
134
  text: string;
135
135
  };
136
136
 
137
- export type CreatePromptContent2 = CreatePrompt21 | Two2 | Three;
137
+ export type CreatePromptContent2 = Two1 | CreatePrompt22 | Two3;
138
138
 
139
139
  /**
140
140
  * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
141
141
  */
142
- export type CreatePromptContent = string | Array<CreatePrompt21 | Two2 | Three>;
142
+ export type CreatePromptContent = string | Array<Two1 | CreatePrompt22 | Two3>;
143
143
 
144
144
  export const CreatePromptType = {
145
145
  Function: "function",
@@ -169,9 +169,9 @@ export type CreatePromptMessages = {
169
169
  /**
170
170
  * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
171
171
  */
172
- content: string | Array<CreatePrompt21 | Two2 | Three> | null;
172
+ content: string | Array<Two1 | CreatePrompt22 | Two3> | null;
173
173
  toolCalls?: Array<CreatePromptToolCalls> | undefined;
174
- toolCallId?: string | undefined;
174
+ toolCallId?: string | null | undefined;
175
175
  };
176
176
 
177
177
  /**
@@ -457,88 +457,15 @@ export type PromptConfiguration = {
457
457
  modelParameters?: ModelParameters | undefined;
458
458
  };
459
459
 
460
- export const CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type = {
461
- Text: "text",
462
- } as const;
463
- export type CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type =
464
- ClosedEnum<typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type>;
465
-
466
- /**
467
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
468
- */
469
- export const CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType =
470
- {
471
- Ephemeral: "ephemeral",
472
- } as const;
473
- /**
474
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
475
- */
476
- export type CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType =
477
- ClosedEnum<
478
- typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType
479
- >;
480
-
481
- /**
482
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
483
- *
484
- * @remarks
485
- *
486
- * - `5m`: 5 minutes
487
- * - `1h`: 1 hour
488
- *
489
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
490
- */
491
- export const CreatePrompt2PromptsRequestRequestBodyTtl = {
492
- Fivem: "5m",
493
- Oneh: "1h",
494
- } as const;
495
- /**
496
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
497
- *
498
- * @remarks
499
- *
500
- * - `5m`: 5 minutes
501
- * - `1h`: 1 hour
502
- *
503
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
504
- */
505
- export type CreatePrompt2PromptsRequestRequestBodyTtl = ClosedEnum<
506
- typeof CreatePrompt2PromptsRequestRequestBodyTtl
507
- >;
508
-
509
- export type CreatePrompt2PromptsRequestRequestBodyCacheControl = {
510
- /**
511
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
512
- */
513
- type: CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType;
514
- /**
515
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
516
- *
517
- * @remarks
518
- *
519
- * - `5m`: 5 minutes
520
- * - `1h`: 1 hour
521
- *
522
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
523
- */
524
- ttl?: CreatePrompt2PromptsRequestRequestBodyTtl | undefined;
525
- };
526
-
527
- export type CreatePrompt2PromptsRequestRequestBody1 = {
528
- type: CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type;
529
- text: string;
530
- cacheControl?: CreatePrompt2PromptsRequestRequestBodyCacheControl | undefined;
531
- };
532
-
533
- export type CreatePromptContentPromptsRequestRequestBodyPrompt2 =
534
- CreatePrompt2PromptsRequestRequestBody1;
460
+ export type CreatePromptContentPromptsRequestRequestBody2 =
461
+ components.TextContentPartSchema;
535
462
 
536
463
  /**
537
464
  * The contents of the tool message.
538
465
  */
539
466
  export type CreatePromptMessagesPromptsRequestRequestBodyContent =
540
467
  | string
541
- | Array<CreatePrompt2PromptsRequestRequestBody1>;
468
+ | Array<components.TextContentPartSchema>;
542
469
 
543
470
  /**
544
471
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
@@ -607,7 +534,7 @@ export type CreatePromptMessagesToolMessage = {
607
534
  /**
608
535
  * The contents of the tool message.
609
536
  */
610
- content: string | Array<CreatePrompt2PromptsRequestRequestBody1>;
537
+ content: string | Array<components.TextContentPartSchema>;
611
538
  /**
612
539
  * Tool call that this message is responding to.
613
540
  */
@@ -615,75 +542,8 @@ export type CreatePromptMessagesToolMessage = {
615
542
  cacheControl?: CreatePromptMessagesCacheControl | undefined;
616
543
  };
617
544
 
618
- /**
619
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
620
- */
621
- export const CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType =
622
- {
623
- Ephemeral: "ephemeral",
624
- } as const;
625
- /**
626
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
627
- */
628
- export type CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType =
629
- ClosedEnum<
630
- typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType
631
- >;
632
-
633
- /**
634
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
635
- *
636
- * @remarks
637
- *
638
- * - `5m`: 5 minutes
639
- * - `1h`: 1 hour
640
- *
641
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
642
- */
643
- export const CreatePrompt2PromptsRequestTtl = {
644
- Fivem: "5m",
645
- Oneh: "1h",
646
- } as const;
647
- /**
648
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
649
- *
650
- * @remarks
651
- *
652
- * - `5m`: 5 minutes
653
- * - `1h`: 1 hour
654
- *
655
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
656
- */
657
- export type CreatePrompt2PromptsRequestTtl = ClosedEnum<
658
- typeof CreatePrompt2PromptsRequestTtl
659
- >;
660
-
661
- export type CreatePrompt2PromptsRequestCacheControl = {
662
- /**
663
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
664
- */
665
- type: CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType;
666
- /**
667
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
668
- *
669
- * @remarks
670
- *
671
- * - `5m`: 5 minutes
672
- * - `1h`: 1 hour
673
- *
674
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
675
- */
676
- ttl?: CreatePrompt2PromptsRequestTtl | undefined;
677
- };
678
-
679
- export type CreatePrompt2PromptsRequest1 = {
680
- type: "text";
681
- text: string;
682
- cacheControl?: CreatePrompt2PromptsRequestCacheControl | undefined;
683
- };
684
-
685
- export type CreatePromptContentPromptsRequestRequestBody2 =
686
- | CreatePrompt2PromptsRequest1
545
+ export type CreatePromptContentPromptsRequest2 =
546
+ | (components.TextContentPartSchema & { type: "text" })
687
547
  | components.RefusalPartSchema
688
548
  | components.ReasoningPartSchema
689
549
  | components.RedactedReasoningPartSchema;
@@ -694,7 +554,7 @@ export type CreatePromptContentPromptsRequestRequestBody2 =
694
554
  export type CreatePromptMessagesPromptsRequestContent =
695
555
  | string
696
556
  | Array<
697
- | CreatePrompt2PromptsRequest1
557
+ | (components.TextContentPartSchema & { type: "text" })
698
558
  | components.RefusalPartSchema
699
559
  | components.ReasoningPartSchema
700
560
  | components.RedactedReasoningPartSchema
@@ -757,7 +617,7 @@ export type CreatePromptMessagesAssistantMessage = {
757
617
  content?:
758
618
  | string
759
619
  | Array<
760
- | CreatePrompt2PromptsRequest1
620
+ | (components.TextContentPartSchema & { type: "text" })
761
621
  | components.RefusalPartSchema
762
622
  | components.ReasoningPartSchema
763
623
  | components.RedactedReasoningPartSchema
@@ -786,76 +646,6 @@ export type CreatePromptMessagesAssistantMessage = {
786
646
  toolCalls?: Array<CreatePromptMessagesToolCalls> | undefined;
787
647
  };
788
648
 
789
- /**
790
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
791
- */
792
- export const CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type = {
793
- Ephemeral: "ephemeral",
794
- } as const;
795
- /**
796
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
797
- */
798
- export type CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type =
799
- ClosedEnum<typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type>;
800
-
801
- /**
802
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
803
- *
804
- * @remarks
805
- *
806
- * - `5m`: 5 minutes
807
- * - `1h`: 1 hour
808
- *
809
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
810
- */
811
- export const CreatePrompt2PromptsTtl = {
812
- Fivem: "5m",
813
- Oneh: "1h",
814
- } as const;
815
- /**
816
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
817
- *
818
- * @remarks
819
- *
820
- * - `5m`: 5 minutes
821
- * - `1h`: 1 hour
822
- *
823
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
824
- */
825
- export type CreatePrompt2PromptsTtl = ClosedEnum<
826
- typeof CreatePrompt2PromptsTtl
827
- >;
828
-
829
- export type CreatePrompt2PromptsCacheControl = {
830
- /**
831
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
832
- */
833
- type: CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type;
834
- /**
835
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
836
- *
837
- * @remarks
838
- *
839
- * - `5m`: 5 minutes
840
- * - `1h`: 1 hour
841
- *
842
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
843
- */
844
- ttl?: CreatePrompt2PromptsTtl | undefined;
845
- };
846
-
847
- export type CreatePrompt24 = {
848
- /**
849
- * The type of the content part. Always `file`.
850
- */
851
- type: "file";
852
- cacheControl?: CreatePrompt2PromptsCacheControl | undefined;
853
- /**
854
- * File data for the content part. Must contain either file_data or uri, but not both.
855
- */
856
- file: components.FileContentPartSchema;
857
- };
858
-
859
649
  /**
860
650
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
861
651
  */
@@ -913,14 +703,20 @@ export type CreatePrompt2CacheControl = {
913
703
  ttl?: CreatePrompt2Ttl | undefined;
914
704
  };
915
705
 
916
- export type CreatePrompt2Prompts1 = {
917
- type: "text";
918
- text: string;
706
+ export type CreatePrompt24 = {
707
+ /**
708
+ * The type of the content part. Always `file`.
709
+ */
710
+ type: "file";
919
711
  cacheControl?: CreatePrompt2CacheControl | undefined;
712
+ /**
713
+ * File data for the content part. Must contain either file_data or uri, but not both.
714
+ */
715
+ file: components.FileContentPartSchema;
920
716
  };
921
717
 
922
- export type CreatePromptContentPromptsRequest2 =
923
- | CreatePrompt2Prompts1
718
+ export type CreatePromptContentPrompts2 =
719
+ | (components.TextContentPartSchema & { type: "text" })
924
720
  | components.ImageContentPartSchema
925
721
  | components.AudioContentPartSchema
926
722
  | CreatePrompt24;
@@ -931,7 +727,7 @@ export type CreatePromptContentPromptsRequest2 =
931
727
  export type CreatePromptMessagesPromptsContent =
932
728
  | string
933
729
  | Array<
934
- | CreatePrompt2Prompts1
730
+ | (components.TextContentPartSchema & { type: "text" })
935
731
  | components.ImageContentPartSchema
936
732
  | components.AudioContentPartSchema
937
733
  | CreatePrompt24
@@ -952,89 +748,19 @@ export type CreatePromptMessagesUserMessage = {
952
748
  content:
953
749
  | string
954
750
  | Array<
955
- | CreatePrompt2Prompts1
751
+ | (components.TextContentPartSchema & { type: "text" })
956
752
  | components.ImageContentPartSchema
957
753
  | components.AudioContentPartSchema
958
754
  | CreatePrompt24
959
755
  >;
960
756
  };
961
757
 
962
- export const CreatePromptContentType = {
963
- Text: "text",
964
- } as const;
965
- export type CreatePromptContentType = ClosedEnum<
966
- typeof CreatePromptContentType
967
- >;
968
-
969
- /**
970
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
971
- */
972
- export const CreatePromptContentPromptsType = {
973
- Ephemeral: "ephemeral",
974
- } as const;
975
- /**
976
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
977
- */
978
- export type CreatePromptContentPromptsType = ClosedEnum<
979
- typeof CreatePromptContentPromptsType
980
- >;
981
-
982
- /**
983
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
984
- *
985
- * @remarks
986
- *
987
- * - `5m`: 5 minutes
988
- * - `1h`: 1 hour
989
- *
990
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
991
- */
992
- export const CreatePromptContentTtl = {
993
- Fivem: "5m",
994
- Oneh: "1h",
995
- } as const;
996
- /**
997
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
998
- *
999
- * @remarks
1000
- *
1001
- * - `5m`: 5 minutes
1002
- * - `1h`: 1 hour
1003
- *
1004
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1005
- */
1006
- export type CreatePromptContentTtl = ClosedEnum<typeof CreatePromptContentTtl>;
1007
-
1008
- export type CreatePromptContentCacheControl = {
1009
- /**
1010
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1011
- */
1012
- type: CreatePromptContentPromptsType;
1013
- /**
1014
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
1015
- *
1016
- * @remarks
1017
- *
1018
- * - `5m`: 5 minutes
1019
- * - `1h`: 1 hour
1020
- *
1021
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1022
- */
1023
- ttl?: CreatePromptContentTtl | undefined;
1024
- };
1025
-
1026
- export type CreatePromptContentPrompts2 = {
1027
- type: CreatePromptContentType;
1028
- text: string;
1029
- cacheControl?: CreatePromptContentCacheControl | undefined;
1030
- };
1031
-
1032
758
  /**
1033
759
  * The contents of the system message.
1034
760
  */
1035
761
  export type CreatePromptMessagesContent =
1036
762
  | string
1037
- | Array<CreatePromptContentPrompts2>;
763
+ | Array<components.TextContentPartSchema>;
1038
764
 
1039
765
  /**
1040
766
  * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
@@ -1047,7 +773,7 @@ export type CreatePromptMessagesSystemMessage = {
1047
773
  /**
1048
774
  * The contents of the system message.
1049
775
  */
1050
- content: string | Array<CreatePromptContentPrompts2>;
776
+ content: string | Array<components.TextContentPartSchema>;
1051
777
  /**
1052
778
  * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
1053
779
  */
@@ -1493,29 +1219,30 @@ export type CreatePromptModelParameters = {
1493
1219
  };
1494
1220
 
1495
1221
  export const CreatePromptProvider = {
1496
- Cohere: "cohere",
1497
1222
  Openai: "openai",
1498
- Anthropic: "anthropic",
1499
- Huggingface: "huggingface",
1500
- Replicate: "replicate",
1501
- Google: "google",
1502
- GoogleAi: "google-ai",
1223
+ Groq: "groq",
1224
+ Cohere: "cohere",
1503
1225
  Azure: "azure",
1504
1226
  Aws: "aws",
1505
- Anyscale: "anyscale",
1227
+ Google: "google",
1228
+ GoogleAi: "google-ai",
1229
+ Huggingface: "huggingface",
1230
+ Togetherai: "togetherai",
1506
1231
  Perplexity: "perplexity",
1507
- Groq: "groq",
1508
- Fal: "fal",
1232
+ Anthropic: "anthropic",
1509
1233
  Leonardoai: "leonardoai",
1234
+ Fal: "fal",
1510
1235
  Nvidia: "nvidia",
1511
1236
  Jina: "jina",
1512
- Togetherai: "togetherai",
1513
1237
  Elevenlabs: "elevenlabs",
1514
1238
  Litellm: "litellm",
1515
- Openailike: "openailike",
1516
1239
  Cerebras: "cerebras",
1240
+ Openailike: "openailike",
1517
1241
  Bytedance: "bytedance",
1518
1242
  Mistral: "mistral",
1243
+ Deepseek: "deepseek",
1244
+ Contextualai: "contextualai",
1245
+ Moonshotai: "moonshotai",
1519
1246
  } as const;
1520
1247
  export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
1521
1248
 
@@ -1584,7 +1311,7 @@ export type CreatePrompt2ImageUrl = {
1584
1311
  /**
1585
1312
  * The image part of the prompt message. Only supported with vision models.
1586
1313
  */
1587
- export type CreatePrompt22 = {
1314
+ export type CreatePrompt2Prompts2 = {
1588
1315
  type: "image_url";
1589
1316
  imageUrl: CreatePrompt2ImageUrl;
1590
1317
  };
@@ -1592,14 +1319,14 @@ export type CreatePrompt22 = {
1592
1319
  /**
1593
1320
  * Text content part of a prompt message
1594
1321
  */
1595
- export type CreatePrompt2PromptsResponse1 = {
1322
+ export type CreatePrompt21 = {
1596
1323
  type: "text";
1597
1324
  text: string;
1598
1325
  };
1599
1326
 
1600
1327
  export type CreatePromptContentPromptsResponse2 =
1601
- | CreatePrompt2PromptsResponse1
1602
- | CreatePrompt22
1328
+ | CreatePrompt21
1329
+ | CreatePrompt2Prompts2
1603
1330
  | CreatePrompt23;
1604
1331
 
1605
1332
  /**
@@ -1607,7 +1334,7 @@ export type CreatePromptContentPromptsResponse2 =
1607
1334
  */
1608
1335
  export type CreatePromptPromptsContent =
1609
1336
  | string
1610
- | Array<CreatePrompt2PromptsResponse1 | CreatePrompt22 | CreatePrompt23>;
1337
+ | Array<CreatePrompt21 | CreatePrompt2Prompts2 | CreatePrompt23>;
1611
1338
 
1612
1339
  export const CreatePromptPromptsResponseType = {
1613
1340
  Function: "function",
@@ -1641,10 +1368,10 @@ export type CreatePromptPromptsResponseMessages = {
1641
1368
  */
1642
1369
  content:
1643
1370
  | string
1644
- | Array<CreatePrompt2PromptsResponse1 | CreatePrompt22 | CreatePrompt23>
1371
+ | Array<CreatePrompt21 | CreatePrompt2Prompts2 | CreatePrompt23>
1645
1372
  | null;
1646
1373
  toolCalls?: Array<CreatePromptPromptsToolCalls> | undefined;
1647
- toolCallId?: string | undefined;
1374
+ toolCallId?: string | null | undefined;
1648
1375
  };
1649
1376
 
1650
1377
  /**
@@ -1880,43 +1607,40 @@ export function twoFileFromJSON(
1880
1607
  }
1881
1608
 
1882
1609
  /** @internal */
1883
- export const Three$inboundSchema: z.ZodType<Three, z.ZodTypeDef, unknown> = z
1610
+ export const Two3$inboundSchema: z.ZodType<Two3, z.ZodTypeDef, unknown> = z
1884
1611
  .object({
1885
1612
  type: z.literal("file"),
1886
1613
  file: z.lazy(() => TwoFile$inboundSchema),
1887
1614
  });
1888
1615
  /** @internal */
1889
- export type Three$Outbound = {
1616
+ export type Two3$Outbound = {
1890
1617
  type: "file";
1891
1618
  file: TwoFile$Outbound;
1892
1619
  };
1893
1620
 
1894
1621
  /** @internal */
1895
- export const Three$outboundSchema: z.ZodType<
1896
- Three$Outbound,
1897
- z.ZodTypeDef,
1898
- Three
1899
- > = z.object({
1900
- type: z.literal("file"),
1901
- file: z.lazy(() => TwoFile$outboundSchema),
1902
- });
1622
+ export const Two3$outboundSchema: z.ZodType<Two3$Outbound, z.ZodTypeDef, Two3> =
1623
+ z.object({
1624
+ type: z.literal("file"),
1625
+ file: z.lazy(() => TwoFile$outboundSchema),
1626
+ });
1903
1627
 
1904
- export function threeToJSON(three: Three): string {
1905
- return JSON.stringify(Three$outboundSchema.parse(three));
1628
+ export function two3ToJSON(two3: Two3): string {
1629
+ return JSON.stringify(Two3$outboundSchema.parse(two3));
1906
1630
  }
1907
- export function threeFromJSON(
1631
+ export function two3FromJSON(
1908
1632
  jsonString: string,
1909
- ): SafeParseResult<Three, SDKValidationError> {
1633
+ ): SafeParseResult<Two3, SDKValidationError> {
1910
1634
  return safeParse(
1911
1635
  jsonString,
1912
- (x) => Three$inboundSchema.parse(JSON.parse(x)),
1913
- `Failed to parse 'Three' from JSON`,
1636
+ (x) => Two3$inboundSchema.parse(JSON.parse(x)),
1637
+ `Failed to parse 'Two3' from JSON`,
1914
1638
  );
1915
1639
  }
1916
1640
 
1917
1641
  /** @internal */
1918
- export const ImageUrl$inboundSchema: z.ZodType<
1919
- ImageUrl,
1642
+ export const TwoImageUrl$inboundSchema: z.ZodType<
1643
+ TwoImageUrl,
1920
1644
  z.ZodTypeDef,
1921
1645
  unknown
1922
1646
  > = z.object({
@@ -1924,109 +1648,109 @@ export const ImageUrl$inboundSchema: z.ZodType<
1924
1648
  detail: z.string().optional(),
1925
1649
  });
1926
1650
  /** @internal */
1927
- export type ImageUrl$Outbound = {
1651
+ export type TwoImageUrl$Outbound = {
1928
1652
  url: string;
1929
1653
  detail?: string | undefined;
1930
1654
  };
1931
1655
 
1932
1656
  /** @internal */
1933
- export const ImageUrl$outboundSchema: z.ZodType<
1934
- ImageUrl$Outbound,
1657
+ export const TwoImageUrl$outboundSchema: z.ZodType<
1658
+ TwoImageUrl$Outbound,
1935
1659
  z.ZodTypeDef,
1936
- ImageUrl
1660
+ TwoImageUrl
1937
1661
  > = z.object({
1938
1662
  url: z.string(),
1939
1663
  detail: z.string().optional(),
1940
1664
  });
1941
1665
 
1942
- export function imageUrlToJSON(imageUrl: ImageUrl): string {
1943
- return JSON.stringify(ImageUrl$outboundSchema.parse(imageUrl));
1666
+ export function twoImageUrlToJSON(twoImageUrl: TwoImageUrl): string {
1667
+ return JSON.stringify(TwoImageUrl$outboundSchema.parse(twoImageUrl));
1944
1668
  }
1945
- export function imageUrlFromJSON(
1669
+ export function twoImageUrlFromJSON(
1946
1670
  jsonString: string,
1947
- ): SafeParseResult<ImageUrl, SDKValidationError> {
1671
+ ): SafeParseResult<TwoImageUrl, SDKValidationError> {
1948
1672
  return safeParse(
1949
1673
  jsonString,
1950
- (x) => ImageUrl$inboundSchema.parse(JSON.parse(x)),
1951
- `Failed to parse 'ImageUrl' from JSON`,
1674
+ (x) => TwoImageUrl$inboundSchema.parse(JSON.parse(x)),
1675
+ `Failed to parse 'TwoImageUrl' from JSON`,
1952
1676
  );
1953
1677
  }
1954
1678
 
1955
1679
  /** @internal */
1956
- export const Two2$inboundSchema: z.ZodType<Two2, z.ZodTypeDef, unknown> = z
1957
- .object({
1958
- type: z.literal("image_url"),
1959
- image_url: z.lazy(() => ImageUrl$inboundSchema),
1960
- }).transform((v) => {
1961
- return remap$(v, {
1962
- "image_url": "imageUrl",
1963
- });
1680
+ export const CreatePrompt22$inboundSchema: z.ZodType<
1681
+ CreatePrompt22,
1682
+ z.ZodTypeDef,
1683
+ unknown
1684
+ > = z.object({
1685
+ type: z.literal("image_url"),
1686
+ image_url: z.lazy(() => TwoImageUrl$inboundSchema),
1687
+ }).transform((v) => {
1688
+ return remap$(v, {
1689
+ "image_url": "imageUrl",
1964
1690
  });
1691
+ });
1965
1692
  /** @internal */
1966
- export type Two2$Outbound = {
1693
+ export type CreatePrompt22$Outbound = {
1967
1694
  type: "image_url";
1968
- image_url: ImageUrl$Outbound;
1695
+ image_url: TwoImageUrl$Outbound;
1969
1696
  };
1970
1697
 
1971
1698
  /** @internal */
1972
- export const Two2$outboundSchema: z.ZodType<Two2$Outbound, z.ZodTypeDef, Two2> =
1973
- z.object({
1974
- type: z.literal("image_url"),
1975
- imageUrl: z.lazy(() => ImageUrl$outboundSchema),
1976
- }).transform((v) => {
1977
- return remap$(v, {
1978
- imageUrl: "image_url",
1979
- });
1699
+ export const CreatePrompt22$outboundSchema: z.ZodType<
1700
+ CreatePrompt22$Outbound,
1701
+ z.ZodTypeDef,
1702
+ CreatePrompt22
1703
+ > = z.object({
1704
+ type: z.literal("image_url"),
1705
+ imageUrl: z.lazy(() => TwoImageUrl$outboundSchema),
1706
+ }).transform((v) => {
1707
+ return remap$(v, {
1708
+ imageUrl: "image_url",
1980
1709
  });
1710
+ });
1981
1711
 
1982
- export function two2ToJSON(two2: Two2): string {
1983
- return JSON.stringify(Two2$outboundSchema.parse(two2));
1712
+ export function createPrompt22ToJSON(createPrompt22: CreatePrompt22): string {
1713
+ return JSON.stringify(CreatePrompt22$outboundSchema.parse(createPrompt22));
1984
1714
  }
1985
- export function two2FromJSON(
1715
+ export function createPrompt22FromJSON(
1986
1716
  jsonString: string,
1987
- ): SafeParseResult<Two2, SDKValidationError> {
1717
+ ): SafeParseResult<CreatePrompt22, SDKValidationError> {
1988
1718
  return safeParse(
1989
1719
  jsonString,
1990
- (x) => Two2$inboundSchema.parse(JSON.parse(x)),
1991
- `Failed to parse 'Two2' from JSON`,
1720
+ (x) => CreatePrompt22$inboundSchema.parse(JSON.parse(x)),
1721
+ `Failed to parse 'CreatePrompt22' from JSON`,
1992
1722
  );
1993
1723
  }
1994
1724
 
1995
1725
  /** @internal */
1996
- export const CreatePrompt21$inboundSchema: z.ZodType<
1997
- CreatePrompt21,
1998
- z.ZodTypeDef,
1999
- unknown
2000
- > = z.object({
2001
- type: z.literal("text"),
2002
- text: z.string(),
2003
- });
1726
+ export const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown> = z
1727
+ .object({
1728
+ type: z.literal("text"),
1729
+ text: z.string(),
1730
+ });
2004
1731
  /** @internal */
2005
- export type CreatePrompt21$Outbound = {
1732
+ export type Two1$Outbound = {
2006
1733
  type: "text";
2007
1734
  text: string;
2008
1735
  };
2009
1736
 
2010
1737
  /** @internal */
2011
- export const CreatePrompt21$outboundSchema: z.ZodType<
2012
- CreatePrompt21$Outbound,
2013
- z.ZodTypeDef,
2014
- CreatePrompt21
2015
- > = z.object({
2016
- type: z.literal("text"),
2017
- text: z.string(),
2018
- });
1738
+ export const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1> =
1739
+ z.object({
1740
+ type: z.literal("text"),
1741
+ text: z.string(),
1742
+ });
2019
1743
 
2020
- export function createPrompt21ToJSON(createPrompt21: CreatePrompt21): string {
2021
- return JSON.stringify(CreatePrompt21$outboundSchema.parse(createPrompt21));
1744
+ export function two1ToJSON(two1: Two1): string {
1745
+ return JSON.stringify(Two1$outboundSchema.parse(two1));
2022
1746
  }
2023
- export function createPrompt21FromJSON(
1747
+ export function two1FromJSON(
2024
1748
  jsonString: string,
2025
- ): SafeParseResult<CreatePrompt21, SDKValidationError> {
1749
+ ): SafeParseResult<Two1, SDKValidationError> {
2026
1750
  return safeParse(
2027
1751
  jsonString,
2028
- (x) => CreatePrompt21$inboundSchema.parse(JSON.parse(x)),
2029
- `Failed to parse 'CreatePrompt21' from JSON`,
1752
+ (x) => Two1$inboundSchema.parse(JSON.parse(x)),
1753
+ `Failed to parse 'Two1' from JSON`,
2030
1754
  );
2031
1755
  }
2032
1756
 
@@ -2036,15 +1760,15 @@ export const CreatePromptContent2$inboundSchema: z.ZodType<
2036
1760
  z.ZodTypeDef,
2037
1761
  unknown
2038
1762
  > = z.union([
2039
- z.lazy(() => CreatePrompt21$inboundSchema),
2040
- z.lazy(() => Two2$inboundSchema),
2041
- z.lazy(() => Three$inboundSchema),
1763
+ z.lazy(() => Two1$inboundSchema),
1764
+ z.lazy(() => CreatePrompt22$inboundSchema),
1765
+ z.lazy(() => Two3$inboundSchema),
2042
1766
  ]);
2043
1767
  /** @internal */
2044
1768
  export type CreatePromptContent2$Outbound =
2045
- | CreatePrompt21$Outbound
2046
- | Two2$Outbound
2047
- | Three$Outbound;
1769
+ | Two1$Outbound
1770
+ | CreatePrompt22$Outbound
1771
+ | Two3$Outbound;
2048
1772
 
2049
1773
  /** @internal */
2050
1774
  export const CreatePromptContent2$outboundSchema: z.ZodType<
@@ -2052,9 +1776,9 @@ export const CreatePromptContent2$outboundSchema: z.ZodType<
2052
1776
  z.ZodTypeDef,
2053
1777
  CreatePromptContent2
2054
1778
  > = z.union([
2055
- z.lazy(() => CreatePrompt21$outboundSchema),
2056
- z.lazy(() => Two2$outboundSchema),
2057
- z.lazy(() => Three$outboundSchema),
1779
+ z.lazy(() => Two1$outboundSchema),
1780
+ z.lazy(() => CreatePrompt22$outboundSchema),
1781
+ z.lazy(() => Two3$outboundSchema),
2058
1782
  ]);
2059
1783
 
2060
1784
  export function createPromptContent2ToJSON(
@@ -2082,15 +1806,15 @@ export const CreatePromptContent$inboundSchema: z.ZodType<
2082
1806
  > = z.union([
2083
1807
  z.string(),
2084
1808
  z.array(z.union([
2085
- z.lazy(() => CreatePrompt21$inboundSchema),
2086
- z.lazy(() => Two2$inboundSchema),
2087
- z.lazy(() => Three$inboundSchema),
1809
+ z.lazy(() => Two1$inboundSchema),
1810
+ z.lazy(() => CreatePrompt22$inboundSchema),
1811
+ z.lazy(() => Two3$inboundSchema),
2088
1812
  ])),
2089
1813
  ]);
2090
1814
  /** @internal */
2091
1815
  export type CreatePromptContent$Outbound =
2092
1816
  | string
2093
- | Array<CreatePrompt21$Outbound | Two2$Outbound | Three$Outbound>;
1817
+ | Array<Two1$Outbound | CreatePrompt22$Outbound | Two3$Outbound>;
2094
1818
 
2095
1819
  /** @internal */
2096
1820
  export const CreatePromptContent$outboundSchema: z.ZodType<
@@ -2100,9 +1824,9 @@ export const CreatePromptContent$outboundSchema: z.ZodType<
2100
1824
  > = z.union([
2101
1825
  z.string(),
2102
1826
  z.array(z.union([
2103
- z.lazy(() => CreatePrompt21$outboundSchema),
2104
- z.lazy(() => Two2$outboundSchema),
2105
- z.lazy(() => Three$outboundSchema),
1827
+ z.lazy(() => Two1$outboundSchema),
1828
+ z.lazy(() => CreatePrompt22$outboundSchema),
1829
+ z.lazy(() => Two3$outboundSchema),
2106
1830
  ])),
2107
1831
  ]);
2108
1832
 
@@ -2233,15 +1957,15 @@ export const CreatePromptMessages$inboundSchema: z.ZodType<
2233
1957
  z.union([
2234
1958
  z.string(),
2235
1959
  z.array(z.union([
2236
- z.lazy(() => CreatePrompt21$inboundSchema),
2237
- z.lazy(() => Two2$inboundSchema),
2238
- z.lazy(() => Three$inboundSchema),
1960
+ z.lazy(() => Two1$inboundSchema),
1961
+ z.lazy(() => CreatePrompt22$inboundSchema),
1962
+ z.lazy(() => Two3$inboundSchema),
2239
1963
  ])),
2240
1964
  ]),
2241
1965
  ),
2242
1966
  tool_calls: z.array(z.lazy(() => CreatePromptToolCalls$inboundSchema))
2243
1967
  .optional(),
2244
- tool_call_id: z.string().optional(),
1968
+ tool_call_id: z.nullable(z.string()).optional(),
2245
1969
  }).transform((v) => {
2246
1970
  return remap$(v, {
2247
1971
  "tool_calls": "toolCalls",
@@ -2253,10 +1977,10 @@ export type CreatePromptMessages$Outbound = {
2253
1977
  role: string;
2254
1978
  content:
2255
1979
  | string
2256
- | Array<CreatePrompt21$Outbound | Two2$Outbound | Three$Outbound>
1980
+ | Array<Two1$Outbound | CreatePrompt22$Outbound | Two3$Outbound>
2257
1981
  | null;
2258
1982
  tool_calls?: Array<CreatePromptToolCalls$Outbound> | undefined;
2259
- tool_call_id?: string | undefined;
1983
+ tool_call_id?: string | null | undefined;
2260
1984
  };
2261
1985
 
2262
1986
  /** @internal */
@@ -2270,15 +1994,15 @@ export const CreatePromptMessages$outboundSchema: z.ZodType<
2270
1994
  z.union([
2271
1995
  z.string(),
2272
1996
  z.array(z.union([
2273
- z.lazy(() => CreatePrompt21$outboundSchema),
2274
- z.lazy(() => Two2$outboundSchema),
2275
- z.lazy(() => Three$outboundSchema),
1997
+ z.lazy(() => Two1$outboundSchema),
1998
+ z.lazy(() => CreatePrompt22$outboundSchema),
1999
+ z.lazy(() => Two3$outboundSchema),
2276
2000
  ])),
2277
2001
  ]),
2278
2002
  ),
2279
2003
  toolCalls: z.array(z.lazy(() => CreatePromptToolCalls$outboundSchema))
2280
2004
  .optional(),
2281
- toolCallId: z.string().optional(),
2005
+ toolCallId: z.nullable(z.string()).optional(),
2282
2006
  }).transform((v) => {
2283
2007
  return remap$(v, {
2284
2008
  toolCalls: "tool_calls",
@@ -2816,205 +2540,47 @@ export function promptConfigurationFromJSON(
2816
2540
  }
2817
2541
 
2818
2542
  /** @internal */
2819
- export const CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type$inboundSchema:
2820
- z.ZodNativeEnum<
2821
- typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type
2822
- > = z.nativeEnum(CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type);
2823
- /** @internal */
2824
- export const CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type$outboundSchema:
2825
- z.ZodNativeEnum<
2826
- typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type
2827
- > = CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type$inboundSchema;
2828
-
2829
- /** @internal */
2830
- export const CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType$inboundSchema:
2831
- z.ZodNativeEnum<
2832
- typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType
2833
- > = z.nativeEnum(
2834
- CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType,
2835
- );
2836
- /** @internal */
2837
- export const CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType$outboundSchema:
2838
- z.ZodNativeEnum<
2839
- typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType
2840
- > =
2841
- CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType$inboundSchema;
2842
-
2843
- /** @internal */
2844
- export const CreatePrompt2PromptsRequestRequestBodyTtl$inboundSchema:
2845
- z.ZodNativeEnum<typeof CreatePrompt2PromptsRequestRequestBodyTtl> = z
2846
- .nativeEnum(CreatePrompt2PromptsRequestRequestBodyTtl);
2847
- /** @internal */
2848
- export const CreatePrompt2PromptsRequestRequestBodyTtl$outboundSchema:
2849
- z.ZodNativeEnum<typeof CreatePrompt2PromptsRequestRequestBodyTtl> =
2850
- CreatePrompt2PromptsRequestRequestBodyTtl$inboundSchema;
2851
-
2852
- /** @internal */
2853
- export const CreatePrompt2PromptsRequestRequestBodyCacheControl$inboundSchema:
2854
- z.ZodType<
2855
- CreatePrompt2PromptsRequestRequestBodyCacheControl,
2856
- z.ZodTypeDef,
2857
- unknown
2858
- > = z.object({
2859
- type:
2860
- CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType$inboundSchema,
2861
- ttl: CreatePrompt2PromptsRequestRequestBodyTtl$inboundSchema.default("5m"),
2862
- });
2863
- /** @internal */
2864
- export type CreatePrompt2PromptsRequestRequestBodyCacheControl$Outbound = {
2865
- type: string;
2866
- ttl: string;
2867
- };
2868
-
2869
- /** @internal */
2870
- export const CreatePrompt2PromptsRequestRequestBodyCacheControl$outboundSchema:
2871
- z.ZodType<
2872
- CreatePrompt2PromptsRequestRequestBodyCacheControl$Outbound,
2873
- z.ZodTypeDef,
2874
- CreatePrompt2PromptsRequestRequestBodyCacheControl
2875
- > = z.object({
2876
- type:
2877
- CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType$outboundSchema,
2878
- ttl: CreatePrompt2PromptsRequestRequestBodyTtl$outboundSchema.default("5m"),
2879
- });
2880
-
2881
- export function createPrompt2PromptsRequestRequestBodyCacheControlToJSON(
2882
- createPrompt2PromptsRequestRequestBodyCacheControl:
2883
- CreatePrompt2PromptsRequestRequestBodyCacheControl,
2884
- ): string {
2885
- return JSON.stringify(
2886
- CreatePrompt2PromptsRequestRequestBodyCacheControl$outboundSchema.parse(
2887
- createPrompt2PromptsRequestRequestBodyCacheControl,
2888
- ),
2889
- );
2890
- }
2891
- export function createPrompt2PromptsRequestRequestBodyCacheControlFromJSON(
2892
- jsonString: string,
2893
- ): SafeParseResult<
2894
- CreatePrompt2PromptsRequestRequestBodyCacheControl,
2895
- SDKValidationError
2896
- > {
2897
- return safeParse(
2898
- jsonString,
2899
- (x) =>
2900
- CreatePrompt2PromptsRequestRequestBodyCacheControl$inboundSchema.parse(
2901
- JSON.parse(x),
2902
- ),
2903
- `Failed to parse 'CreatePrompt2PromptsRequestRequestBodyCacheControl' from JSON`,
2904
- );
2905
- }
2906
-
2907
- /** @internal */
2908
- export const CreatePrompt2PromptsRequestRequestBody1$inboundSchema: z.ZodType<
2909
- CreatePrompt2PromptsRequestRequestBody1,
2910
- z.ZodTypeDef,
2911
- unknown
2912
- > = z.object({
2913
- type: CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type$inboundSchema,
2914
- text: z.string(),
2915
- cache_control: z.lazy(() =>
2916
- CreatePrompt2PromptsRequestRequestBodyCacheControl$inboundSchema
2917
- ).optional(),
2918
- }).transform((v) => {
2919
- return remap$(v, {
2920
- "cache_control": "cacheControl",
2921
- });
2922
- });
2923
- /** @internal */
2924
- export type CreatePrompt2PromptsRequestRequestBody1$Outbound = {
2925
- type: string;
2926
- text: string;
2927
- cache_control?:
2928
- | CreatePrompt2PromptsRequestRequestBodyCacheControl$Outbound
2929
- | undefined;
2930
- };
2931
-
2932
- /** @internal */
2933
- export const CreatePrompt2PromptsRequestRequestBody1$outboundSchema: z.ZodType<
2934
- CreatePrompt2PromptsRequestRequestBody1$Outbound,
2935
- z.ZodTypeDef,
2936
- CreatePrompt2PromptsRequestRequestBody1
2937
- > = z.object({
2938
- type:
2939
- CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type$outboundSchema,
2940
- text: z.string(),
2941
- cacheControl: z.lazy(() =>
2942
- CreatePrompt2PromptsRequestRequestBodyCacheControl$outboundSchema
2943
- ).optional(),
2944
- }).transform((v) => {
2945
- return remap$(v, {
2946
- cacheControl: "cache_control",
2947
- });
2948
- });
2949
-
2950
- export function createPrompt2PromptsRequestRequestBody1ToJSON(
2951
- createPrompt2PromptsRequestRequestBody1:
2952
- CreatePrompt2PromptsRequestRequestBody1,
2953
- ): string {
2954
- return JSON.stringify(
2955
- CreatePrompt2PromptsRequestRequestBody1$outboundSchema.parse(
2956
- createPrompt2PromptsRequestRequestBody1,
2957
- ),
2958
- );
2959
- }
2960
- export function createPrompt2PromptsRequestRequestBody1FromJSON(
2961
- jsonString: string,
2962
- ): SafeParseResult<
2963
- CreatePrompt2PromptsRequestRequestBody1,
2964
- SDKValidationError
2965
- > {
2966
- return safeParse(
2967
- jsonString,
2968
- (x) =>
2969
- CreatePrompt2PromptsRequestRequestBody1$inboundSchema.parse(
2970
- JSON.parse(x),
2971
- ),
2972
- `Failed to parse 'CreatePrompt2PromptsRequestRequestBody1' from JSON`,
2973
- );
2974
- }
2975
-
2976
- /** @internal */
2977
- export const CreatePromptContentPromptsRequestRequestBodyPrompt2$inboundSchema:
2543
+ export const CreatePromptContentPromptsRequestRequestBody2$inboundSchema:
2978
2544
  z.ZodType<
2979
- CreatePromptContentPromptsRequestRequestBodyPrompt2,
2545
+ CreatePromptContentPromptsRequestRequestBody2,
2980
2546
  z.ZodTypeDef,
2981
2547
  unknown
2982
- > = z.lazy(() => CreatePrompt2PromptsRequestRequestBody1$inboundSchema);
2548
+ > = components.TextContentPartSchema$inboundSchema;
2983
2549
  /** @internal */
2984
- export type CreatePromptContentPromptsRequestRequestBodyPrompt2$Outbound =
2985
- CreatePrompt2PromptsRequestRequestBody1$Outbound;
2550
+ export type CreatePromptContentPromptsRequestRequestBody2$Outbound =
2551
+ components.TextContentPartSchema$Outbound;
2986
2552
 
2987
2553
  /** @internal */
2988
- export const CreatePromptContentPromptsRequestRequestBodyPrompt2$outboundSchema:
2554
+ export const CreatePromptContentPromptsRequestRequestBody2$outboundSchema:
2989
2555
  z.ZodType<
2990
- CreatePromptContentPromptsRequestRequestBodyPrompt2$Outbound,
2556
+ CreatePromptContentPromptsRequestRequestBody2$Outbound,
2991
2557
  z.ZodTypeDef,
2992
- CreatePromptContentPromptsRequestRequestBodyPrompt2
2993
- > = z.lazy(() => CreatePrompt2PromptsRequestRequestBody1$outboundSchema);
2558
+ CreatePromptContentPromptsRequestRequestBody2
2559
+ > = components.TextContentPartSchema$outboundSchema;
2994
2560
 
2995
- export function createPromptContentPromptsRequestRequestBodyPrompt2ToJSON(
2996
- createPromptContentPromptsRequestRequestBodyPrompt2:
2997
- CreatePromptContentPromptsRequestRequestBodyPrompt2,
2561
+ export function createPromptContentPromptsRequestRequestBody2ToJSON(
2562
+ createPromptContentPromptsRequestRequestBody2:
2563
+ CreatePromptContentPromptsRequestRequestBody2,
2998
2564
  ): string {
2999
2565
  return JSON.stringify(
3000
- CreatePromptContentPromptsRequestRequestBodyPrompt2$outboundSchema.parse(
3001
- createPromptContentPromptsRequestRequestBodyPrompt2,
2566
+ CreatePromptContentPromptsRequestRequestBody2$outboundSchema.parse(
2567
+ createPromptContentPromptsRequestRequestBody2,
3002
2568
  ),
3003
2569
  );
3004
2570
  }
3005
- export function createPromptContentPromptsRequestRequestBodyPrompt2FromJSON(
2571
+ export function createPromptContentPromptsRequestRequestBody2FromJSON(
3006
2572
  jsonString: string,
3007
2573
  ): SafeParseResult<
3008
- CreatePromptContentPromptsRequestRequestBodyPrompt2,
2574
+ CreatePromptContentPromptsRequestRequestBody2,
3009
2575
  SDKValidationError
3010
2576
  > {
3011
2577
  return safeParse(
3012
2578
  jsonString,
3013
2579
  (x) =>
3014
- CreatePromptContentPromptsRequestRequestBodyPrompt2$inboundSchema.parse(
2580
+ CreatePromptContentPromptsRequestRequestBody2$inboundSchema.parse(
3015
2581
  JSON.parse(x),
3016
2582
  ),
3017
- `Failed to parse 'CreatePromptContentPromptsRequestRequestBodyPrompt2' from JSON`,
2583
+ `Failed to parse 'CreatePromptContentPromptsRequestRequestBody2' from JSON`,
3018
2584
  );
3019
2585
  }
3020
2586
 
@@ -3026,14 +2592,12 @@ export const CreatePromptMessagesPromptsRequestRequestBodyContent$inboundSchema:
3026
2592
  unknown
3027
2593
  > = z.union([
3028
2594
  z.string(),
3029
- z.array(
3030
- z.lazy(() => CreatePrompt2PromptsRequestRequestBody1$inboundSchema),
3031
- ),
2595
+ z.array(components.TextContentPartSchema$inboundSchema),
3032
2596
  ]);
3033
2597
  /** @internal */
3034
2598
  export type CreatePromptMessagesPromptsRequestRequestBodyContent$Outbound =
3035
2599
  | string
3036
- | Array<CreatePrompt2PromptsRequestRequestBody1$Outbound>;
2600
+ | Array<components.TextContentPartSchema$Outbound>;
3037
2601
 
3038
2602
  /** @internal */
3039
2603
  export const CreatePromptMessagesPromptsRequestRequestBodyContent$outboundSchema:
@@ -3043,9 +2607,7 @@ export const CreatePromptMessagesPromptsRequestRequestBodyContent$outboundSchema
3043
2607
  CreatePromptMessagesPromptsRequestRequestBodyContent
3044
2608
  > = z.union([
3045
2609
  z.string(),
3046
- z.array(
3047
- z.lazy(() => CreatePrompt2PromptsRequestRequestBody1$outboundSchema),
3048
- ),
2610
+ z.array(components.TextContentPartSchema$outboundSchema),
3049
2611
  ]);
3050
2612
 
3051
2613
  export function createPromptMessagesPromptsRequestRequestBodyContentToJSON(
@@ -3145,9 +2707,7 @@ export const CreatePromptMessagesToolMessage$inboundSchema: z.ZodType<
3145
2707
  role: z.literal("tool"),
3146
2708
  content: z.union([
3147
2709
  z.string(),
3148
- z.array(
3149
- z.lazy(() => CreatePrompt2PromptsRequestRequestBody1$inboundSchema),
3150
- ),
2710
+ z.array(components.TextContentPartSchema$inboundSchema),
3151
2711
  ]),
3152
2712
  tool_call_id: z.string(),
3153
2713
  cache_control: z.lazy(() => CreatePromptMessagesCacheControl$inboundSchema)
@@ -3161,7 +2721,7 @@ export const CreatePromptMessagesToolMessage$inboundSchema: z.ZodType<
3161
2721
  /** @internal */
3162
2722
  export type CreatePromptMessagesToolMessage$Outbound = {
3163
2723
  role: "tool";
3164
- content: string | Array<CreatePrompt2PromptsRequestRequestBody1$Outbound>;
2724
+ content: string | Array<components.TextContentPartSchema$Outbound>;
3165
2725
  tool_call_id: string;
3166
2726
  cache_control?: CreatePromptMessagesCacheControl$Outbound | undefined;
3167
2727
  };
@@ -3175,9 +2735,7 @@ export const CreatePromptMessagesToolMessage$outboundSchema: z.ZodType<
3175
2735
  role: z.literal("tool"),
3176
2736
  content: z.union([
3177
2737
  z.string(),
3178
- z.array(
3179
- z.lazy(() => CreatePrompt2PromptsRequestRequestBody1$outboundSchema),
3180
- ),
2738
+ z.array(components.TextContentPartSchema$outboundSchema),
3181
2739
  ]),
3182
2740
  toolCallId: z.string(),
3183
2741
  cacheControl: z.lazy(() => CreatePromptMessagesCacheControl$outboundSchema)
@@ -3209,195 +2767,56 @@ export function createPromptMessagesToolMessageFromJSON(
3209
2767
  }
3210
2768
 
3211
2769
  /** @internal */
3212
- export const CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType$inboundSchema:
3213
- z.ZodNativeEnum<
3214
- typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType
3215
- > = z.nativeEnum(
3216
- CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType,
3217
- );
3218
- /** @internal */
3219
- export const CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType$outboundSchema:
3220
- z.ZodNativeEnum<
3221
- typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType
3222
- > =
3223
- CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType$inboundSchema;
3224
-
3225
- /** @internal */
3226
- export const CreatePrompt2PromptsRequestTtl$inboundSchema: z.ZodNativeEnum<
3227
- typeof CreatePrompt2PromptsRequestTtl
3228
- > = z.nativeEnum(CreatePrompt2PromptsRequestTtl);
3229
- /** @internal */
3230
- export const CreatePrompt2PromptsRequestTtl$outboundSchema: z.ZodNativeEnum<
3231
- typeof CreatePrompt2PromptsRequestTtl
3232
- > = CreatePrompt2PromptsRequestTtl$inboundSchema;
3233
-
3234
- /** @internal */
3235
- export const CreatePrompt2PromptsRequestCacheControl$inboundSchema: z.ZodType<
3236
- CreatePrompt2PromptsRequestCacheControl,
3237
- z.ZodTypeDef,
3238
- unknown
3239
- > = z.object({
3240
- type:
3241
- CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType$inboundSchema,
3242
- ttl: CreatePrompt2PromptsRequestTtl$inboundSchema.default("5m"),
3243
- });
3244
- /** @internal */
3245
- export type CreatePrompt2PromptsRequestCacheControl$Outbound = {
3246
- type: string;
3247
- ttl: string;
3248
- };
3249
-
3250
- /** @internal */
3251
- export const CreatePrompt2PromptsRequestCacheControl$outboundSchema: z.ZodType<
3252
- CreatePrompt2PromptsRequestCacheControl$Outbound,
3253
- z.ZodTypeDef,
3254
- CreatePrompt2PromptsRequestCacheControl
3255
- > = z.object({
3256
- type:
3257
- CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType$outboundSchema,
3258
- ttl: CreatePrompt2PromptsRequestTtl$outboundSchema.default("5m"),
3259
- });
3260
-
3261
- export function createPrompt2PromptsRequestCacheControlToJSON(
3262
- createPrompt2PromptsRequestCacheControl:
3263
- CreatePrompt2PromptsRequestCacheControl,
3264
- ): string {
3265
- return JSON.stringify(
3266
- CreatePrompt2PromptsRequestCacheControl$outboundSchema.parse(
3267
- createPrompt2PromptsRequestCacheControl,
3268
- ),
3269
- );
3270
- }
3271
- export function createPrompt2PromptsRequestCacheControlFromJSON(
3272
- jsonString: string,
3273
- ): SafeParseResult<
3274
- CreatePrompt2PromptsRequestCacheControl,
3275
- SDKValidationError
3276
- > {
3277
- return safeParse(
3278
- jsonString,
3279
- (x) =>
3280
- CreatePrompt2PromptsRequestCacheControl$inboundSchema.parse(
3281
- JSON.parse(x),
3282
- ),
3283
- `Failed to parse 'CreatePrompt2PromptsRequestCacheControl' from JSON`,
3284
- );
3285
- }
3286
-
3287
- /** @internal */
3288
- export const CreatePrompt2PromptsRequest1$inboundSchema: z.ZodType<
3289
- CreatePrompt2PromptsRequest1,
2770
+ export const CreatePromptContentPromptsRequest2$inboundSchema: z.ZodType<
2771
+ CreatePromptContentPromptsRequest2,
3290
2772
  z.ZodTypeDef,
3291
2773
  unknown
3292
- > = z.object({
3293
- type: z.literal("text"),
3294
- text: z.string(),
3295
- cache_control: z.lazy(() =>
3296
- CreatePrompt2PromptsRequestCacheControl$inboundSchema
3297
- ).optional(),
3298
- }).transform((v) => {
3299
- return remap$(v, {
3300
- "cache_control": "cacheControl",
3301
- });
3302
- });
3303
- /** @internal */
3304
- export type CreatePrompt2PromptsRequest1$Outbound = {
3305
- type: "text";
3306
- text: string;
3307
- cache_control?: CreatePrompt2PromptsRequestCacheControl$Outbound | undefined;
3308
- };
3309
-
3310
- /** @internal */
3311
- export const CreatePrompt2PromptsRequest1$outboundSchema: z.ZodType<
3312
- CreatePrompt2PromptsRequest1$Outbound,
3313
- z.ZodTypeDef,
3314
- CreatePrompt2PromptsRequest1
3315
- > = z.object({
3316
- type: z.literal("text"),
3317
- text: z.string(),
3318
- cacheControl: z.lazy(() =>
3319
- CreatePrompt2PromptsRequestCacheControl$outboundSchema
3320
- ).optional(),
3321
- }).transform((v) => {
3322
- return remap$(v, {
3323
- cacheControl: "cache_control",
3324
- });
3325
- });
3326
-
3327
- export function createPrompt2PromptsRequest1ToJSON(
3328
- createPrompt2PromptsRequest1: CreatePrompt2PromptsRequest1,
3329
- ): string {
3330
- return JSON.stringify(
3331
- CreatePrompt2PromptsRequest1$outboundSchema.parse(
3332
- createPrompt2PromptsRequest1,
3333
- ),
3334
- );
3335
- }
3336
- export function createPrompt2PromptsRequest1FromJSON(
3337
- jsonString: string,
3338
- ): SafeParseResult<CreatePrompt2PromptsRequest1, SDKValidationError> {
3339
- return safeParse(
3340
- jsonString,
3341
- (x) => CreatePrompt2PromptsRequest1$inboundSchema.parse(JSON.parse(x)),
3342
- `Failed to parse 'CreatePrompt2PromptsRequest1' from JSON`,
3343
- );
3344
- }
3345
-
3346
- /** @internal */
3347
- export const CreatePromptContentPromptsRequestRequestBody2$inboundSchema:
3348
- z.ZodType<
3349
- CreatePromptContentPromptsRequestRequestBody2,
3350
- z.ZodTypeDef,
3351
- unknown
3352
- > = z.union([
3353
- z.lazy(() => CreatePrompt2PromptsRequest1$inboundSchema),
3354
- components.RefusalPartSchema$inboundSchema,
3355
- components.ReasoningPartSchema$inboundSchema,
3356
- components.RedactedReasoningPartSchema$inboundSchema,
3357
- ]);
2774
+ > = z.union([
2775
+ components.TextContentPartSchema$inboundSchema.and(
2776
+ z.object({ type: z.literal("text") }),
2777
+ ),
2778
+ components.RefusalPartSchema$inboundSchema,
2779
+ components.ReasoningPartSchema$inboundSchema,
2780
+ components.RedactedReasoningPartSchema$inboundSchema,
2781
+ ]);
3358
2782
  /** @internal */
3359
- export type CreatePromptContentPromptsRequestRequestBody2$Outbound =
3360
- | CreatePrompt2PromptsRequest1$Outbound
2783
+ export type CreatePromptContentPromptsRequest2$Outbound =
2784
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
3361
2785
  | components.RefusalPartSchema$Outbound
3362
2786
  | components.ReasoningPartSchema$Outbound
3363
2787
  | components.RedactedReasoningPartSchema$Outbound;
3364
2788
 
3365
2789
  /** @internal */
3366
- export const CreatePromptContentPromptsRequestRequestBody2$outboundSchema:
3367
- z.ZodType<
3368
- CreatePromptContentPromptsRequestRequestBody2$Outbound,
3369
- z.ZodTypeDef,
3370
- CreatePromptContentPromptsRequestRequestBody2
3371
- > = z.union([
3372
- z.lazy(() => CreatePrompt2PromptsRequest1$outboundSchema),
3373
- components.RefusalPartSchema$outboundSchema,
3374
- components.ReasoningPartSchema$outboundSchema,
3375
- components.RedactedReasoningPartSchema$outboundSchema,
3376
- ]);
2790
+ export const CreatePromptContentPromptsRequest2$outboundSchema: z.ZodType<
2791
+ CreatePromptContentPromptsRequest2$Outbound,
2792
+ z.ZodTypeDef,
2793
+ CreatePromptContentPromptsRequest2
2794
+ > = z.union([
2795
+ components.TextContentPartSchema$outboundSchema.and(
2796
+ z.object({ type: z.literal("text") }),
2797
+ ),
2798
+ components.RefusalPartSchema$outboundSchema,
2799
+ components.ReasoningPartSchema$outboundSchema,
2800
+ components.RedactedReasoningPartSchema$outboundSchema,
2801
+ ]);
3377
2802
 
3378
- export function createPromptContentPromptsRequestRequestBody2ToJSON(
3379
- createPromptContentPromptsRequestRequestBody2:
3380
- CreatePromptContentPromptsRequestRequestBody2,
2803
+ export function createPromptContentPromptsRequest2ToJSON(
2804
+ createPromptContentPromptsRequest2: CreatePromptContentPromptsRequest2,
3381
2805
  ): string {
3382
2806
  return JSON.stringify(
3383
- CreatePromptContentPromptsRequestRequestBody2$outboundSchema.parse(
3384
- createPromptContentPromptsRequestRequestBody2,
2807
+ CreatePromptContentPromptsRequest2$outboundSchema.parse(
2808
+ createPromptContentPromptsRequest2,
3385
2809
  ),
3386
2810
  );
3387
2811
  }
3388
- export function createPromptContentPromptsRequestRequestBody2FromJSON(
2812
+ export function createPromptContentPromptsRequest2FromJSON(
3389
2813
  jsonString: string,
3390
- ): SafeParseResult<
3391
- CreatePromptContentPromptsRequestRequestBody2,
3392
- SDKValidationError
3393
- > {
2814
+ ): SafeParseResult<CreatePromptContentPromptsRequest2, SDKValidationError> {
3394
2815
  return safeParse(
3395
2816
  jsonString,
3396
2817
  (x) =>
3397
- CreatePromptContentPromptsRequestRequestBody2$inboundSchema.parse(
3398
- JSON.parse(x),
3399
- ),
3400
- `Failed to parse 'CreatePromptContentPromptsRequestRequestBody2' from JSON`,
2818
+ CreatePromptContentPromptsRequest2$inboundSchema.parse(JSON.parse(x)),
2819
+ `Failed to parse 'CreatePromptContentPromptsRequest2' from JSON`,
3401
2820
  );
3402
2821
  }
3403
2822
 
@@ -3408,18 +2827,22 @@ export const CreatePromptMessagesPromptsRequestContent$inboundSchema: z.ZodType<
3408
2827
  unknown
3409
2828
  > = z.union([
3410
2829
  z.string(),
3411
- z.array(z.union([
3412
- z.lazy(() => CreatePrompt2PromptsRequest1$inboundSchema),
3413
- components.RefusalPartSchema$inboundSchema,
3414
- components.ReasoningPartSchema$inboundSchema,
3415
- components.RedactedReasoningPartSchema$inboundSchema,
3416
- ])),
2830
+ z.array(
2831
+ z.union([
2832
+ components.TextContentPartSchema$inboundSchema.and(
2833
+ z.object({ type: z.literal("text") }),
2834
+ ),
2835
+ components.RefusalPartSchema$inboundSchema,
2836
+ components.ReasoningPartSchema$inboundSchema,
2837
+ components.RedactedReasoningPartSchema$inboundSchema,
2838
+ ]),
2839
+ ),
3417
2840
  ]);
3418
2841
  /** @internal */
3419
2842
  export type CreatePromptMessagesPromptsRequestContent$Outbound =
3420
2843
  | string
3421
2844
  | Array<
3422
- | CreatePrompt2PromptsRequest1$Outbound
2845
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
3423
2846
  | components.RefusalPartSchema$Outbound
3424
2847
  | components.ReasoningPartSchema$Outbound
3425
2848
  | components.RedactedReasoningPartSchema$Outbound
@@ -3433,12 +2856,16 @@ export const CreatePromptMessagesPromptsRequestContent$outboundSchema:
3433
2856
  CreatePromptMessagesPromptsRequestContent
3434
2857
  > = z.union([
3435
2858
  z.string(),
3436
- z.array(z.union([
3437
- z.lazy(() => CreatePrompt2PromptsRequest1$outboundSchema),
3438
- components.RefusalPartSchema$outboundSchema,
3439
- components.ReasoningPartSchema$outboundSchema,
3440
- components.RedactedReasoningPartSchema$outboundSchema,
3441
- ])),
2859
+ z.array(
2860
+ z.union([
2861
+ components.TextContentPartSchema$outboundSchema.and(
2862
+ z.object({ type: z.literal("text") }),
2863
+ ),
2864
+ components.RefusalPartSchema$outboundSchema,
2865
+ components.ReasoningPartSchema$outboundSchema,
2866
+ components.RedactedReasoningPartSchema$outboundSchema,
2867
+ ]),
2868
+ ),
3442
2869
  ]);
3443
2870
 
3444
2871
  export function createPromptMessagesPromptsRequestContentToJSON(
@@ -3628,7 +3055,9 @@ export const CreatePromptMessagesAssistantMessage$inboundSchema: z.ZodType<
3628
3055
  z.string(),
3629
3056
  z.array(
3630
3057
  z.union([
3631
- z.lazy(() => CreatePrompt2PromptsRequest1$inboundSchema),
3058
+ components.TextContentPartSchema$inboundSchema.and(
3059
+ z.object({ type: z.literal("text") }),
3060
+ ),
3632
3061
  components.RefusalPartSchema$inboundSchema,
3633
3062
  components.ReasoningPartSchema$inboundSchema,
3634
3063
  components.RedactedReasoningPartSchema$inboundSchema,
@@ -3653,7 +3082,7 @@ export type CreatePromptMessagesAssistantMessage$Outbound = {
3653
3082
  content?:
3654
3083
  | string
3655
3084
  | Array<
3656
- | CreatePrompt2PromptsRequest1$Outbound
3085
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
3657
3086
  | components.RefusalPartSchema$Outbound
3658
3087
  | components.ReasoningPartSchema$Outbound
3659
3088
  | components.RedactedReasoningPartSchema$Outbound
@@ -3678,160 +3107,46 @@ export const CreatePromptMessagesAssistantMessage$outboundSchema: z.ZodType<
3678
3107
  z.string(),
3679
3108
  z.array(
3680
3109
  z.union([
3681
- z.lazy(() => CreatePrompt2PromptsRequest1$outboundSchema),
3110
+ components.TextContentPartSchema$outboundSchema.and(
3111
+ z.object({ type: z.literal("text") }),
3112
+ ),
3682
3113
  components.RefusalPartSchema$outboundSchema,
3683
3114
  components.ReasoningPartSchema$outboundSchema,
3684
3115
  components.RedactedReasoningPartSchema$outboundSchema,
3685
3116
  ]),
3686
3117
  ),
3687
- ]),
3688
- ).optional(),
3689
- refusal: z.nullable(z.string()).optional(),
3690
- role: z.literal("assistant"),
3691
- name: z.string().optional(),
3692
- audio: z.nullable(z.lazy(() => CreatePromptMessagesAudio$outboundSchema))
3693
- .optional(),
3694
- toolCalls: z.array(z.lazy(() => CreatePromptMessagesToolCalls$outboundSchema))
3695
- .optional(),
3696
- }).transform((v) => {
3697
- return remap$(v, {
3698
- toolCalls: "tool_calls",
3699
- });
3700
- });
3701
-
3702
- export function createPromptMessagesAssistantMessageToJSON(
3703
- createPromptMessagesAssistantMessage: CreatePromptMessagesAssistantMessage,
3704
- ): string {
3705
- return JSON.stringify(
3706
- CreatePromptMessagesAssistantMessage$outboundSchema.parse(
3707
- createPromptMessagesAssistantMessage,
3708
- ),
3709
- );
3710
- }
3711
- export function createPromptMessagesAssistantMessageFromJSON(
3712
- jsonString: string,
3713
- ): SafeParseResult<CreatePromptMessagesAssistantMessage, SDKValidationError> {
3714
- return safeParse(
3715
- jsonString,
3716
- (x) =>
3717
- CreatePromptMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)),
3718
- `Failed to parse 'CreatePromptMessagesAssistantMessage' from JSON`,
3719
- );
3720
- }
3721
-
3722
- /** @internal */
3723
- export const CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type$inboundSchema:
3724
- z.ZodNativeEnum<
3725
- typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type
3726
- > = z.nativeEnum(CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type);
3727
- /** @internal */
3728
- export const CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type$outboundSchema:
3729
- z.ZodNativeEnum<
3730
- typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type
3731
- > = CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type$inboundSchema;
3732
-
3733
- /** @internal */
3734
- export const CreatePrompt2PromptsTtl$inboundSchema: z.ZodNativeEnum<
3735
- typeof CreatePrompt2PromptsTtl
3736
- > = z.nativeEnum(CreatePrompt2PromptsTtl);
3737
- /** @internal */
3738
- export const CreatePrompt2PromptsTtl$outboundSchema: z.ZodNativeEnum<
3739
- typeof CreatePrompt2PromptsTtl
3740
- > = CreatePrompt2PromptsTtl$inboundSchema;
3741
-
3742
- /** @internal */
3743
- export const CreatePrompt2PromptsCacheControl$inboundSchema: z.ZodType<
3744
- CreatePrompt2PromptsCacheControl,
3745
- z.ZodTypeDef,
3746
- unknown
3747
- > = z.object({
3748
- type: CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type$inboundSchema,
3749
- ttl: CreatePrompt2PromptsTtl$inboundSchema.default("5m"),
3750
- });
3751
- /** @internal */
3752
- export type CreatePrompt2PromptsCacheControl$Outbound = {
3753
- type: string;
3754
- ttl: string;
3755
- };
3756
-
3757
- /** @internal */
3758
- export const CreatePrompt2PromptsCacheControl$outboundSchema: z.ZodType<
3759
- CreatePrompt2PromptsCacheControl$Outbound,
3760
- z.ZodTypeDef,
3761
- CreatePrompt2PromptsCacheControl
3762
- > = z.object({
3763
- type:
3764
- CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type$outboundSchema,
3765
- ttl: CreatePrompt2PromptsTtl$outboundSchema.default("5m"),
3766
- });
3767
-
3768
- export function createPrompt2PromptsCacheControlToJSON(
3769
- createPrompt2PromptsCacheControl: CreatePrompt2PromptsCacheControl,
3770
- ): string {
3771
- return JSON.stringify(
3772
- CreatePrompt2PromptsCacheControl$outboundSchema.parse(
3773
- createPrompt2PromptsCacheControl,
3774
- ),
3775
- );
3776
- }
3777
- export function createPrompt2PromptsCacheControlFromJSON(
3778
- jsonString: string,
3779
- ): SafeParseResult<CreatePrompt2PromptsCacheControl, SDKValidationError> {
3780
- return safeParse(
3781
- jsonString,
3782
- (x) => CreatePrompt2PromptsCacheControl$inboundSchema.parse(JSON.parse(x)),
3783
- `Failed to parse 'CreatePrompt2PromptsCacheControl' from JSON`,
3784
- );
3785
- }
3786
-
3787
- /** @internal */
3788
- export const CreatePrompt24$inboundSchema: z.ZodType<
3789
- CreatePrompt24,
3790
- z.ZodTypeDef,
3791
- unknown
3792
- > = z.object({
3793
- type: z.literal("file"),
3794
- cache_control: z.lazy(() => CreatePrompt2PromptsCacheControl$inboundSchema)
3795
- .optional(),
3796
- file: components.FileContentPartSchema$inboundSchema,
3797
- }).transform((v) => {
3798
- return remap$(v, {
3799
- "cache_control": "cacheControl",
3800
- });
3801
- });
3802
- /** @internal */
3803
- export type CreatePrompt24$Outbound = {
3804
- type: "file";
3805
- cache_control?: CreatePrompt2PromptsCacheControl$Outbound | undefined;
3806
- file: components.FileContentPartSchema$Outbound;
3807
- };
3808
-
3809
- /** @internal */
3810
- export const CreatePrompt24$outboundSchema: z.ZodType<
3811
- CreatePrompt24$Outbound,
3812
- z.ZodTypeDef,
3813
- CreatePrompt24
3814
- > = z.object({
3815
- type: z.literal("file"),
3816
- cacheControl: z.lazy(() => CreatePrompt2PromptsCacheControl$outboundSchema)
3118
+ ]),
3119
+ ).optional(),
3120
+ refusal: z.nullable(z.string()).optional(),
3121
+ role: z.literal("assistant"),
3122
+ name: z.string().optional(),
3123
+ audio: z.nullable(z.lazy(() => CreatePromptMessagesAudio$outboundSchema))
3124
+ .optional(),
3125
+ toolCalls: z.array(z.lazy(() => CreatePromptMessagesToolCalls$outboundSchema))
3817
3126
  .optional(),
3818
- file: components.FileContentPartSchema$outboundSchema,
3819
3127
  }).transform((v) => {
3820
3128
  return remap$(v, {
3821
- cacheControl: "cache_control",
3129
+ toolCalls: "tool_calls",
3822
3130
  });
3823
3131
  });
3824
3132
 
3825
- export function createPrompt24ToJSON(createPrompt24: CreatePrompt24): string {
3826
- return JSON.stringify(CreatePrompt24$outboundSchema.parse(createPrompt24));
3133
+ export function createPromptMessagesAssistantMessageToJSON(
3134
+ createPromptMessagesAssistantMessage: CreatePromptMessagesAssistantMessage,
3135
+ ): string {
3136
+ return JSON.stringify(
3137
+ CreatePromptMessagesAssistantMessage$outboundSchema.parse(
3138
+ createPromptMessagesAssistantMessage,
3139
+ ),
3140
+ );
3827
3141
  }
3828
- export function createPrompt24FromJSON(
3142
+ export function createPromptMessagesAssistantMessageFromJSON(
3829
3143
  jsonString: string,
3830
- ): SafeParseResult<CreatePrompt24, SDKValidationError> {
3144
+ ): SafeParseResult<CreatePromptMessagesAssistantMessage, SDKValidationError> {
3831
3145
  return safeParse(
3832
3146
  jsonString,
3833
- (x) => CreatePrompt24$inboundSchema.parse(JSON.parse(x)),
3834
- `Failed to parse 'CreatePrompt24' from JSON`,
3147
+ (x) =>
3148
+ CreatePromptMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)),
3149
+ `Failed to parse 'CreatePromptMessagesAssistantMessage' from JSON`,
3835
3150
  );
3836
3151
  }
3837
3152
 
@@ -3896,107 +3211,106 @@ export function createPrompt2CacheControlFromJSON(
3896
3211
  }
3897
3212
 
3898
3213
  /** @internal */
3899
- export const CreatePrompt2Prompts1$inboundSchema: z.ZodType<
3900
- CreatePrompt2Prompts1,
3214
+ export const CreatePrompt24$inboundSchema: z.ZodType<
3215
+ CreatePrompt24,
3901
3216
  z.ZodTypeDef,
3902
3217
  unknown
3903
3218
  > = z.object({
3904
- type: z.literal("text"),
3905
- text: z.string(),
3219
+ type: z.literal("file"),
3906
3220
  cache_control: z.lazy(() => CreatePrompt2CacheControl$inboundSchema)
3907
3221
  .optional(),
3222
+ file: components.FileContentPartSchema$inboundSchema,
3908
3223
  }).transform((v) => {
3909
3224
  return remap$(v, {
3910
3225
  "cache_control": "cacheControl",
3911
3226
  });
3912
3227
  });
3913
3228
  /** @internal */
3914
- export type CreatePrompt2Prompts1$Outbound = {
3915
- type: "text";
3916
- text: string;
3229
+ export type CreatePrompt24$Outbound = {
3230
+ type: "file";
3917
3231
  cache_control?: CreatePrompt2CacheControl$Outbound | undefined;
3232
+ file: components.FileContentPartSchema$Outbound;
3918
3233
  };
3919
3234
 
3920
3235
  /** @internal */
3921
- export const CreatePrompt2Prompts1$outboundSchema: z.ZodType<
3922
- CreatePrompt2Prompts1$Outbound,
3236
+ export const CreatePrompt24$outboundSchema: z.ZodType<
3237
+ CreatePrompt24$Outbound,
3923
3238
  z.ZodTypeDef,
3924
- CreatePrompt2Prompts1
3239
+ CreatePrompt24
3925
3240
  > = z.object({
3926
- type: z.literal("text"),
3927
- text: z.string(),
3241
+ type: z.literal("file"),
3928
3242
  cacheControl: z.lazy(() => CreatePrompt2CacheControl$outboundSchema)
3929
3243
  .optional(),
3244
+ file: components.FileContentPartSchema$outboundSchema,
3930
3245
  }).transform((v) => {
3931
3246
  return remap$(v, {
3932
3247
  cacheControl: "cache_control",
3933
3248
  });
3934
3249
  });
3935
3250
 
3936
- export function createPrompt2Prompts1ToJSON(
3937
- createPrompt2Prompts1: CreatePrompt2Prompts1,
3938
- ): string {
3939
- return JSON.stringify(
3940
- CreatePrompt2Prompts1$outboundSchema.parse(createPrompt2Prompts1),
3941
- );
3251
+ export function createPrompt24ToJSON(createPrompt24: CreatePrompt24): string {
3252
+ return JSON.stringify(CreatePrompt24$outboundSchema.parse(createPrompt24));
3942
3253
  }
3943
- export function createPrompt2Prompts1FromJSON(
3254
+ export function createPrompt24FromJSON(
3944
3255
  jsonString: string,
3945
- ): SafeParseResult<CreatePrompt2Prompts1, SDKValidationError> {
3256
+ ): SafeParseResult<CreatePrompt24, SDKValidationError> {
3946
3257
  return safeParse(
3947
3258
  jsonString,
3948
- (x) => CreatePrompt2Prompts1$inboundSchema.parse(JSON.parse(x)),
3949
- `Failed to parse 'CreatePrompt2Prompts1' from JSON`,
3259
+ (x) => CreatePrompt24$inboundSchema.parse(JSON.parse(x)),
3260
+ `Failed to parse 'CreatePrompt24' from JSON`,
3950
3261
  );
3951
3262
  }
3952
3263
 
3953
3264
  /** @internal */
3954
- export const CreatePromptContentPromptsRequest2$inboundSchema: z.ZodType<
3955
- CreatePromptContentPromptsRequest2,
3265
+ export const CreatePromptContentPrompts2$inboundSchema: z.ZodType<
3266
+ CreatePromptContentPrompts2,
3956
3267
  z.ZodTypeDef,
3957
3268
  unknown
3958
3269
  > = z.union([
3959
- z.lazy(() => CreatePrompt2Prompts1$inboundSchema),
3270
+ components.TextContentPartSchema$inboundSchema.and(
3271
+ z.object({ type: z.literal("text") }),
3272
+ ),
3960
3273
  components.ImageContentPartSchema$inboundSchema,
3961
3274
  components.AudioContentPartSchema$inboundSchema,
3962
3275
  z.lazy(() => CreatePrompt24$inboundSchema),
3963
3276
  ]);
3964
3277
  /** @internal */
3965
- export type CreatePromptContentPromptsRequest2$Outbound =
3966
- | CreatePrompt2Prompts1$Outbound
3278
+ export type CreatePromptContentPrompts2$Outbound =
3279
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
3967
3280
  | components.ImageContentPartSchema$Outbound
3968
3281
  | components.AudioContentPartSchema$Outbound
3969
3282
  | CreatePrompt24$Outbound;
3970
3283
 
3971
3284
  /** @internal */
3972
- export const CreatePromptContentPromptsRequest2$outboundSchema: z.ZodType<
3973
- CreatePromptContentPromptsRequest2$Outbound,
3285
+ export const CreatePromptContentPrompts2$outboundSchema: z.ZodType<
3286
+ CreatePromptContentPrompts2$Outbound,
3974
3287
  z.ZodTypeDef,
3975
- CreatePromptContentPromptsRequest2
3288
+ CreatePromptContentPrompts2
3976
3289
  > = z.union([
3977
- z.lazy(() => CreatePrompt2Prompts1$outboundSchema),
3290
+ components.TextContentPartSchema$outboundSchema.and(
3291
+ z.object({ type: z.literal("text") }),
3292
+ ),
3978
3293
  components.ImageContentPartSchema$outboundSchema,
3979
3294
  components.AudioContentPartSchema$outboundSchema,
3980
3295
  z.lazy(() => CreatePrompt24$outboundSchema),
3981
3296
  ]);
3982
3297
 
3983
- export function createPromptContentPromptsRequest2ToJSON(
3984
- createPromptContentPromptsRequest2: CreatePromptContentPromptsRequest2,
3298
+ export function createPromptContentPrompts2ToJSON(
3299
+ createPromptContentPrompts2: CreatePromptContentPrompts2,
3985
3300
  ): string {
3986
3301
  return JSON.stringify(
3987
- CreatePromptContentPromptsRequest2$outboundSchema.parse(
3988
- createPromptContentPromptsRequest2,
3302
+ CreatePromptContentPrompts2$outboundSchema.parse(
3303
+ createPromptContentPrompts2,
3989
3304
  ),
3990
3305
  );
3991
3306
  }
3992
- export function createPromptContentPromptsRequest2FromJSON(
3307
+ export function createPromptContentPrompts2FromJSON(
3993
3308
  jsonString: string,
3994
- ): SafeParseResult<CreatePromptContentPromptsRequest2, SDKValidationError> {
3309
+ ): SafeParseResult<CreatePromptContentPrompts2, SDKValidationError> {
3995
3310
  return safeParse(
3996
3311
  jsonString,
3997
- (x) =>
3998
- CreatePromptContentPromptsRequest2$inboundSchema.parse(JSON.parse(x)),
3999
- `Failed to parse 'CreatePromptContentPromptsRequest2' from JSON`,
3312
+ (x) => CreatePromptContentPrompts2$inboundSchema.parse(JSON.parse(x)),
3313
+ `Failed to parse 'CreatePromptContentPrompts2' from JSON`,
4000
3314
  );
4001
3315
  }
4002
3316
 
@@ -4007,18 +3321,22 @@ export const CreatePromptMessagesPromptsContent$inboundSchema: z.ZodType<
4007
3321
  unknown
4008
3322
  > = z.union([
4009
3323
  z.string(),
4010
- z.array(z.union([
4011
- z.lazy(() => CreatePrompt2Prompts1$inboundSchema),
4012
- components.ImageContentPartSchema$inboundSchema,
4013
- components.AudioContentPartSchema$inboundSchema,
4014
- z.lazy(() => CreatePrompt24$inboundSchema),
4015
- ])),
3324
+ z.array(
3325
+ z.union([
3326
+ components.TextContentPartSchema$inboundSchema.and(
3327
+ z.object({ type: z.literal("text") }),
3328
+ ),
3329
+ components.ImageContentPartSchema$inboundSchema,
3330
+ components.AudioContentPartSchema$inboundSchema,
3331
+ z.lazy(() => CreatePrompt24$inboundSchema),
3332
+ ]),
3333
+ ),
4016
3334
  ]);
4017
3335
  /** @internal */
4018
3336
  export type CreatePromptMessagesPromptsContent$Outbound =
4019
3337
  | string
4020
3338
  | Array<
4021
- | CreatePrompt2Prompts1$Outbound
3339
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
4022
3340
  | components.ImageContentPartSchema$Outbound
4023
3341
  | components.AudioContentPartSchema$Outbound
4024
3342
  | CreatePrompt24$Outbound
@@ -4031,12 +3349,16 @@ export const CreatePromptMessagesPromptsContent$outboundSchema: z.ZodType<
4031
3349
  CreatePromptMessagesPromptsContent
4032
3350
  > = z.union([
4033
3351
  z.string(),
4034
- z.array(z.union([
4035
- z.lazy(() => CreatePrompt2Prompts1$outboundSchema),
4036
- components.ImageContentPartSchema$outboundSchema,
4037
- components.AudioContentPartSchema$outboundSchema,
4038
- z.lazy(() => CreatePrompt24$outboundSchema),
4039
- ])),
3352
+ z.array(
3353
+ z.union([
3354
+ components.TextContentPartSchema$outboundSchema.and(
3355
+ z.object({ type: z.literal("text") }),
3356
+ ),
3357
+ components.ImageContentPartSchema$outboundSchema,
3358
+ components.AudioContentPartSchema$outboundSchema,
3359
+ z.lazy(() => CreatePrompt24$outboundSchema),
3360
+ ]),
3361
+ ),
4040
3362
  ]);
4041
3363
 
4042
3364
  export function createPromptMessagesPromptsContentToJSON(
@@ -4069,12 +3391,16 @@ export const CreatePromptMessagesUserMessage$inboundSchema: z.ZodType<
4069
3391
  name: z.string().optional(),
4070
3392
  content: z.union([
4071
3393
  z.string(),
4072
- z.array(z.union([
4073
- z.lazy(() => CreatePrompt2Prompts1$inboundSchema),
4074
- components.ImageContentPartSchema$inboundSchema,
4075
- components.AudioContentPartSchema$inboundSchema,
4076
- z.lazy(() => CreatePrompt24$inboundSchema),
4077
- ])),
3394
+ z.array(
3395
+ z.union([
3396
+ components.TextContentPartSchema$inboundSchema.and(
3397
+ z.object({ type: z.literal("text") }),
3398
+ ),
3399
+ components.ImageContentPartSchema$inboundSchema,
3400
+ components.AudioContentPartSchema$inboundSchema,
3401
+ z.lazy(() => CreatePrompt24$inboundSchema),
3402
+ ]),
3403
+ ),
4078
3404
  ]),
4079
3405
  });
4080
3406
  /** @internal */
@@ -4084,7 +3410,7 @@ export type CreatePromptMessagesUserMessage$Outbound = {
4084
3410
  content:
4085
3411
  | string
4086
3412
  | Array<
4087
- | CreatePrompt2Prompts1$Outbound
3413
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
4088
3414
  | components.ImageContentPartSchema$Outbound
4089
3415
  | components.AudioContentPartSchema$Outbound
4090
3416
  | CreatePrompt24$Outbound
@@ -4101,12 +3427,16 @@ export const CreatePromptMessagesUserMessage$outboundSchema: z.ZodType<
4101
3427
  name: z.string().optional(),
4102
3428
  content: z.union([
4103
3429
  z.string(),
4104
- z.array(z.union([
4105
- z.lazy(() => CreatePrompt2Prompts1$outboundSchema),
4106
- components.ImageContentPartSchema$outboundSchema,
4107
- components.AudioContentPartSchema$outboundSchema,
4108
- z.lazy(() => CreatePrompt24$outboundSchema),
4109
- ])),
3430
+ z.array(
3431
+ z.union([
3432
+ components.TextContentPartSchema$outboundSchema.and(
3433
+ z.object({ type: z.literal("text") }),
3434
+ ),
3435
+ components.ImageContentPartSchema$outboundSchema,
3436
+ components.AudioContentPartSchema$outboundSchema,
3437
+ z.lazy(() => CreatePrompt24$outboundSchema),
3438
+ ]),
3439
+ ),
4110
3440
  ]),
4111
3441
  });
4112
3442
 
@@ -4129,134 +3459,6 @@ export function createPromptMessagesUserMessageFromJSON(
4129
3459
  );
4130
3460
  }
4131
3461
 
4132
- /** @internal */
4133
- export const CreatePromptContentType$inboundSchema: z.ZodNativeEnum<
4134
- typeof CreatePromptContentType
4135
- > = z.nativeEnum(CreatePromptContentType);
4136
- /** @internal */
4137
- export const CreatePromptContentType$outboundSchema: z.ZodNativeEnum<
4138
- typeof CreatePromptContentType
4139
- > = CreatePromptContentType$inboundSchema;
4140
-
4141
- /** @internal */
4142
- export const CreatePromptContentPromptsType$inboundSchema: z.ZodNativeEnum<
4143
- typeof CreatePromptContentPromptsType
4144
- > = z.nativeEnum(CreatePromptContentPromptsType);
4145
- /** @internal */
4146
- export const CreatePromptContentPromptsType$outboundSchema: z.ZodNativeEnum<
4147
- typeof CreatePromptContentPromptsType
4148
- > = CreatePromptContentPromptsType$inboundSchema;
4149
-
4150
- /** @internal */
4151
- export const CreatePromptContentTtl$inboundSchema: z.ZodNativeEnum<
4152
- typeof CreatePromptContentTtl
4153
- > = z.nativeEnum(CreatePromptContentTtl);
4154
- /** @internal */
4155
- export const CreatePromptContentTtl$outboundSchema: z.ZodNativeEnum<
4156
- typeof CreatePromptContentTtl
4157
- > = CreatePromptContentTtl$inboundSchema;
4158
-
4159
- /** @internal */
4160
- export const CreatePromptContentCacheControl$inboundSchema: z.ZodType<
4161
- CreatePromptContentCacheControl,
4162
- z.ZodTypeDef,
4163
- unknown
4164
- > = z.object({
4165
- type: CreatePromptContentPromptsType$inboundSchema,
4166
- ttl: CreatePromptContentTtl$inboundSchema.default("5m"),
4167
- });
4168
- /** @internal */
4169
- export type CreatePromptContentCacheControl$Outbound = {
4170
- type: string;
4171
- ttl: string;
4172
- };
4173
-
4174
- /** @internal */
4175
- export const CreatePromptContentCacheControl$outboundSchema: z.ZodType<
4176
- CreatePromptContentCacheControl$Outbound,
4177
- z.ZodTypeDef,
4178
- CreatePromptContentCacheControl
4179
- > = z.object({
4180
- type: CreatePromptContentPromptsType$outboundSchema,
4181
- ttl: CreatePromptContentTtl$outboundSchema.default("5m"),
4182
- });
4183
-
4184
- export function createPromptContentCacheControlToJSON(
4185
- createPromptContentCacheControl: CreatePromptContentCacheControl,
4186
- ): string {
4187
- return JSON.stringify(
4188
- CreatePromptContentCacheControl$outboundSchema.parse(
4189
- createPromptContentCacheControl,
4190
- ),
4191
- );
4192
- }
4193
- export function createPromptContentCacheControlFromJSON(
4194
- jsonString: string,
4195
- ): SafeParseResult<CreatePromptContentCacheControl, SDKValidationError> {
4196
- return safeParse(
4197
- jsonString,
4198
- (x) => CreatePromptContentCacheControl$inboundSchema.parse(JSON.parse(x)),
4199
- `Failed to parse 'CreatePromptContentCacheControl' from JSON`,
4200
- );
4201
- }
4202
-
4203
- /** @internal */
4204
- export const CreatePromptContentPrompts2$inboundSchema: z.ZodType<
4205
- CreatePromptContentPrompts2,
4206
- z.ZodTypeDef,
4207
- unknown
4208
- > = z.object({
4209
- type: CreatePromptContentType$inboundSchema,
4210
- text: z.string(),
4211
- cache_control: z.lazy(() => CreatePromptContentCacheControl$inboundSchema)
4212
- .optional(),
4213
- }).transform((v) => {
4214
- return remap$(v, {
4215
- "cache_control": "cacheControl",
4216
- });
4217
- });
4218
- /** @internal */
4219
- export type CreatePromptContentPrompts2$Outbound = {
4220
- type: string;
4221
- text: string;
4222
- cache_control?: CreatePromptContentCacheControl$Outbound | undefined;
4223
- };
4224
-
4225
- /** @internal */
4226
- export const CreatePromptContentPrompts2$outboundSchema: z.ZodType<
4227
- CreatePromptContentPrompts2$Outbound,
4228
- z.ZodTypeDef,
4229
- CreatePromptContentPrompts2
4230
- > = z.object({
4231
- type: CreatePromptContentType$outboundSchema,
4232
- text: z.string(),
4233
- cacheControl: z.lazy(() => CreatePromptContentCacheControl$outboundSchema)
4234
- .optional(),
4235
- }).transform((v) => {
4236
- return remap$(v, {
4237
- cacheControl: "cache_control",
4238
- });
4239
- });
4240
-
4241
- export function createPromptContentPrompts2ToJSON(
4242
- createPromptContentPrompts2: CreatePromptContentPrompts2,
4243
- ): string {
4244
- return JSON.stringify(
4245
- CreatePromptContentPrompts2$outboundSchema.parse(
4246
- createPromptContentPrompts2,
4247
- ),
4248
- );
4249
- }
4250
- export function createPromptContentPrompts2FromJSON(
4251
- jsonString: string,
4252
- ): SafeParseResult<CreatePromptContentPrompts2, SDKValidationError> {
4253
- return safeParse(
4254
- jsonString,
4255
- (x) => CreatePromptContentPrompts2$inboundSchema.parse(JSON.parse(x)),
4256
- `Failed to parse 'CreatePromptContentPrompts2' from JSON`,
4257
- );
4258
- }
4259
-
4260
3462
  /** @internal */
4261
3463
  export const CreatePromptMessagesContent$inboundSchema: z.ZodType<
4262
3464
  CreatePromptMessagesContent,
@@ -4264,12 +3466,12 @@ export const CreatePromptMessagesContent$inboundSchema: z.ZodType<
4264
3466
  unknown
4265
3467
  > = z.union([
4266
3468
  z.string(),
4267
- z.array(z.lazy(() => CreatePromptContentPrompts2$inboundSchema)),
3469
+ z.array(components.TextContentPartSchema$inboundSchema),
4268
3470
  ]);
4269
3471
  /** @internal */
4270
3472
  export type CreatePromptMessagesContent$Outbound =
4271
3473
  | string
4272
- | Array<CreatePromptContentPrompts2$Outbound>;
3474
+ | Array<components.TextContentPartSchema$Outbound>;
4273
3475
 
4274
3476
  /** @internal */
4275
3477
  export const CreatePromptMessagesContent$outboundSchema: z.ZodType<
@@ -4278,7 +3480,7 @@ export const CreatePromptMessagesContent$outboundSchema: z.ZodType<
4278
3480
  CreatePromptMessagesContent
4279
3481
  > = z.union([
4280
3482
  z.string(),
4281
- z.array(z.lazy(() => CreatePromptContentPrompts2$outboundSchema)),
3483
+ z.array(components.TextContentPartSchema$outboundSchema),
4282
3484
  ]);
4283
3485
 
4284
3486
  export function createPromptMessagesContentToJSON(
@@ -4309,14 +3511,14 @@ export const CreatePromptMessagesSystemMessage$inboundSchema: z.ZodType<
4309
3511
  role: z.literal("system"),
4310
3512
  content: z.union([
4311
3513
  z.string(),
4312
- z.array(z.lazy(() => CreatePromptContentPrompts2$inboundSchema)),
3514
+ z.array(components.TextContentPartSchema$inboundSchema),
4313
3515
  ]),
4314
3516
  name: z.string().optional(),
4315
3517
  });
4316
3518
  /** @internal */
4317
3519
  export type CreatePromptMessagesSystemMessage$Outbound = {
4318
3520
  role: "system";
4319
- content: string | Array<CreatePromptContentPrompts2$Outbound>;
3521
+ content: string | Array<components.TextContentPartSchema$Outbound>;
4320
3522
  name?: string | undefined;
4321
3523
  };
4322
3524
 
@@ -4329,7 +3531,7 @@ export const CreatePromptMessagesSystemMessage$outboundSchema: z.ZodType<
4329
3531
  role: z.literal("system"),
4330
3532
  content: z.union([
4331
3533
  z.string(),
4332
- z.array(z.lazy(() => CreatePromptContentPrompts2$outboundSchema)),
3534
+ z.array(components.TextContentPartSchema$outboundSchema),
4333
3535
  ]),
4334
3536
  name: z.string().optional(),
4335
3537
  });
@@ -5492,8 +4694,8 @@ export function createPrompt2ImageUrlFromJSON(
5492
4694
  }
5493
4695
 
5494
4696
  /** @internal */
5495
- export const CreatePrompt22$inboundSchema: z.ZodType<
5496
- CreatePrompt22,
4697
+ export const CreatePrompt2Prompts2$inboundSchema: z.ZodType<
4698
+ CreatePrompt2Prompts2,
5497
4699
  z.ZodTypeDef,
5498
4700
  unknown
5499
4701
  > = z.object({
@@ -5505,16 +4707,16 @@ export const CreatePrompt22$inboundSchema: z.ZodType<
5505
4707
  });
5506
4708
  });
5507
4709
  /** @internal */
5508
- export type CreatePrompt22$Outbound = {
4710
+ export type CreatePrompt2Prompts2$Outbound = {
5509
4711
  type: "image_url";
5510
4712
  image_url: CreatePrompt2ImageUrl$Outbound;
5511
4713
  };
5512
4714
 
5513
4715
  /** @internal */
5514
- export const CreatePrompt22$outboundSchema: z.ZodType<
5515
- CreatePrompt22$Outbound,
4716
+ export const CreatePrompt2Prompts2$outboundSchema: z.ZodType<
4717
+ CreatePrompt2Prompts2$Outbound,
5516
4718
  z.ZodTypeDef,
5517
- CreatePrompt22
4719
+ CreatePrompt2Prompts2
5518
4720
  > = z.object({
5519
4721
  type: z.literal("image_url"),
5520
4722
  imageUrl: z.lazy(() => CreatePrompt2ImageUrl$outboundSchema),
@@ -5524,22 +4726,26 @@ export const CreatePrompt22$outboundSchema: z.ZodType<
5524
4726
  });
5525
4727
  });
5526
4728
 
5527
- export function createPrompt22ToJSON(createPrompt22: CreatePrompt22): string {
5528
- return JSON.stringify(CreatePrompt22$outboundSchema.parse(createPrompt22));
4729
+ export function createPrompt2Prompts2ToJSON(
4730
+ createPrompt2Prompts2: CreatePrompt2Prompts2,
4731
+ ): string {
4732
+ return JSON.stringify(
4733
+ CreatePrompt2Prompts2$outboundSchema.parse(createPrompt2Prompts2),
4734
+ );
5529
4735
  }
5530
- export function createPrompt22FromJSON(
4736
+ export function createPrompt2Prompts2FromJSON(
5531
4737
  jsonString: string,
5532
- ): SafeParseResult<CreatePrompt22, SDKValidationError> {
4738
+ ): SafeParseResult<CreatePrompt2Prompts2, SDKValidationError> {
5533
4739
  return safeParse(
5534
4740
  jsonString,
5535
- (x) => CreatePrompt22$inboundSchema.parse(JSON.parse(x)),
5536
- `Failed to parse 'CreatePrompt22' from JSON`,
4741
+ (x) => CreatePrompt2Prompts2$inboundSchema.parse(JSON.parse(x)),
4742
+ `Failed to parse 'CreatePrompt2Prompts2' from JSON`,
5537
4743
  );
5538
4744
  }
5539
4745
 
5540
4746
  /** @internal */
5541
- export const CreatePrompt2PromptsResponse1$inboundSchema: z.ZodType<
5542
- CreatePrompt2PromptsResponse1,
4747
+ export const CreatePrompt21$inboundSchema: z.ZodType<
4748
+ CreatePrompt21,
5543
4749
  z.ZodTypeDef,
5544
4750
  unknown
5545
4751
  > = z.object({
@@ -5547,37 +4753,31 @@ export const CreatePrompt2PromptsResponse1$inboundSchema: z.ZodType<
5547
4753
  text: z.string(),
5548
4754
  });
5549
4755
  /** @internal */
5550
- export type CreatePrompt2PromptsResponse1$Outbound = {
4756
+ export type CreatePrompt21$Outbound = {
5551
4757
  type: "text";
5552
4758
  text: string;
5553
4759
  };
5554
4760
 
5555
4761
  /** @internal */
5556
- export const CreatePrompt2PromptsResponse1$outboundSchema: z.ZodType<
5557
- CreatePrompt2PromptsResponse1$Outbound,
4762
+ export const CreatePrompt21$outboundSchema: z.ZodType<
4763
+ CreatePrompt21$Outbound,
5558
4764
  z.ZodTypeDef,
5559
- CreatePrompt2PromptsResponse1
4765
+ CreatePrompt21
5560
4766
  > = z.object({
5561
4767
  type: z.literal("text"),
5562
4768
  text: z.string(),
5563
4769
  });
5564
4770
 
5565
- export function createPrompt2PromptsResponse1ToJSON(
5566
- createPrompt2PromptsResponse1: CreatePrompt2PromptsResponse1,
5567
- ): string {
5568
- return JSON.stringify(
5569
- CreatePrompt2PromptsResponse1$outboundSchema.parse(
5570
- createPrompt2PromptsResponse1,
5571
- ),
5572
- );
4771
+ export function createPrompt21ToJSON(createPrompt21: CreatePrompt21): string {
4772
+ return JSON.stringify(CreatePrompt21$outboundSchema.parse(createPrompt21));
5573
4773
  }
5574
- export function createPrompt2PromptsResponse1FromJSON(
4774
+ export function createPrompt21FromJSON(
5575
4775
  jsonString: string,
5576
- ): SafeParseResult<CreatePrompt2PromptsResponse1, SDKValidationError> {
4776
+ ): SafeParseResult<CreatePrompt21, SDKValidationError> {
5577
4777
  return safeParse(
5578
4778
  jsonString,
5579
- (x) => CreatePrompt2PromptsResponse1$inboundSchema.parse(JSON.parse(x)),
5580
- `Failed to parse 'CreatePrompt2PromptsResponse1' from JSON`,
4779
+ (x) => CreatePrompt21$inboundSchema.parse(JSON.parse(x)),
4780
+ `Failed to parse 'CreatePrompt21' from JSON`,
5581
4781
  );
5582
4782
  }
5583
4783
 
@@ -5587,14 +4787,14 @@ export const CreatePromptContentPromptsResponse2$inboundSchema: z.ZodType<
5587
4787
  z.ZodTypeDef,
5588
4788
  unknown
5589
4789
  > = z.union([
5590
- z.lazy(() => CreatePrompt2PromptsResponse1$inboundSchema),
5591
- z.lazy(() => CreatePrompt22$inboundSchema),
4790
+ z.lazy(() => CreatePrompt21$inboundSchema),
4791
+ z.lazy(() => CreatePrompt2Prompts2$inboundSchema),
5592
4792
  z.lazy(() => CreatePrompt23$inboundSchema),
5593
4793
  ]);
5594
4794
  /** @internal */
5595
4795
  export type CreatePromptContentPromptsResponse2$Outbound =
5596
- | CreatePrompt2PromptsResponse1$Outbound
5597
- | CreatePrompt22$Outbound
4796
+ | CreatePrompt21$Outbound
4797
+ | CreatePrompt2Prompts2$Outbound
5598
4798
  | CreatePrompt23$Outbound;
5599
4799
 
5600
4800
  /** @internal */
@@ -5603,8 +4803,8 @@ export const CreatePromptContentPromptsResponse2$outboundSchema: z.ZodType<
5603
4803
  z.ZodTypeDef,
5604
4804
  CreatePromptContentPromptsResponse2
5605
4805
  > = z.union([
5606
- z.lazy(() => CreatePrompt2PromptsResponse1$outboundSchema),
5607
- z.lazy(() => CreatePrompt22$outboundSchema),
4806
+ z.lazy(() => CreatePrompt21$outboundSchema),
4807
+ z.lazy(() => CreatePrompt2Prompts2$outboundSchema),
5608
4808
  z.lazy(() => CreatePrompt23$outboundSchema),
5609
4809
  ]);
5610
4810
 
@@ -5636,8 +4836,8 @@ export const CreatePromptPromptsContent$inboundSchema: z.ZodType<
5636
4836
  > = z.union([
5637
4837
  z.string(),
5638
4838
  z.array(z.union([
5639
- z.lazy(() => CreatePrompt2PromptsResponse1$inboundSchema),
5640
- z.lazy(() => CreatePrompt22$inboundSchema),
4839
+ z.lazy(() => CreatePrompt21$inboundSchema),
4840
+ z.lazy(() => CreatePrompt2Prompts2$inboundSchema),
5641
4841
  z.lazy(() => CreatePrompt23$inboundSchema),
5642
4842
  ])),
5643
4843
  ]);
@@ -5645,8 +4845,8 @@ export const CreatePromptPromptsContent$inboundSchema: z.ZodType<
5645
4845
  export type CreatePromptPromptsContent$Outbound =
5646
4846
  | string
5647
4847
  | Array<
5648
- | CreatePrompt2PromptsResponse1$Outbound
5649
- | CreatePrompt22$Outbound
4848
+ | CreatePrompt21$Outbound
4849
+ | CreatePrompt2Prompts2$Outbound
5650
4850
  | CreatePrompt23$Outbound
5651
4851
  >;
5652
4852
 
@@ -5658,8 +4858,8 @@ export const CreatePromptPromptsContent$outboundSchema: z.ZodType<
5658
4858
  > = z.union([
5659
4859
  z.string(),
5660
4860
  z.array(z.union([
5661
- z.lazy(() => CreatePrompt2PromptsResponse1$outboundSchema),
5662
- z.lazy(() => CreatePrompt22$outboundSchema),
4861
+ z.lazy(() => CreatePrompt21$outboundSchema),
4862
+ z.lazy(() => CreatePrompt2Prompts2$outboundSchema),
5663
4863
  z.lazy(() => CreatePrompt23$outboundSchema),
5664
4864
  ])),
5665
4865
  ]);
@@ -5794,18 +4994,16 @@ export const CreatePromptPromptsResponseMessages$inboundSchema: z.ZodType<
5794
4994
  content: z.nullable(
5795
4995
  z.union([
5796
4996
  z.string(),
5797
- z.array(
5798
- z.union([
5799
- z.lazy(() => CreatePrompt2PromptsResponse1$inboundSchema),
5800
- z.lazy(() => CreatePrompt22$inboundSchema),
5801
- z.lazy(() => CreatePrompt23$inboundSchema),
5802
- ]),
5803
- ),
4997
+ z.array(z.union([
4998
+ z.lazy(() => CreatePrompt21$inboundSchema),
4999
+ z.lazy(() => CreatePrompt2Prompts2$inboundSchema),
5000
+ z.lazy(() => CreatePrompt23$inboundSchema),
5001
+ ])),
5804
5002
  ]),
5805
5003
  ),
5806
5004
  tool_calls: z.array(z.lazy(() => CreatePromptPromptsToolCalls$inboundSchema))
5807
5005
  .optional(),
5808
- tool_call_id: z.string().optional(),
5006
+ tool_call_id: z.nullable(z.string()).optional(),
5809
5007
  }).transform((v) => {
5810
5008
  return remap$(v, {
5811
5009
  "tool_calls": "toolCalls",
@@ -5818,13 +5016,13 @@ export type CreatePromptPromptsResponseMessages$Outbound = {
5818
5016
  content:
5819
5017
  | string
5820
5018
  | Array<
5821
- | CreatePrompt2PromptsResponse1$Outbound
5822
- | CreatePrompt22$Outbound
5019
+ | CreatePrompt21$Outbound
5020
+ | CreatePrompt2Prompts2$Outbound
5823
5021
  | CreatePrompt23$Outbound
5824
5022
  >
5825
5023
  | null;
5826
5024
  tool_calls?: Array<CreatePromptPromptsToolCalls$Outbound> | undefined;
5827
- tool_call_id?: string | undefined;
5025
+ tool_call_id?: string | null | undefined;
5828
5026
  };
5829
5027
 
5830
5028
  /** @internal */
@@ -5837,18 +5035,16 @@ export const CreatePromptPromptsResponseMessages$outboundSchema: z.ZodType<
5837
5035
  content: z.nullable(
5838
5036
  z.union([
5839
5037
  z.string(),
5840
- z.array(
5841
- z.union([
5842
- z.lazy(() => CreatePrompt2PromptsResponse1$outboundSchema),
5843
- z.lazy(() => CreatePrompt22$outboundSchema),
5844
- z.lazy(() => CreatePrompt23$outboundSchema),
5845
- ]),
5846
- ),
5038
+ z.array(z.union([
5039
+ z.lazy(() => CreatePrompt21$outboundSchema),
5040
+ z.lazy(() => CreatePrompt2Prompts2$outboundSchema),
5041
+ z.lazy(() => CreatePrompt23$outboundSchema),
5042
+ ])),
5847
5043
  ]),
5848
5044
  ),
5849
5045
  toolCalls: z.array(z.lazy(() => CreatePromptPromptsToolCalls$outboundSchema))
5850
5046
  .optional(),
5851
- toolCallId: z.string().optional(),
5047
+ toolCallId: z.nullable(z.string()).optional(),
5852
5048
  }).transform((v) => {
5853
5049
  return remap$(v, {
5854
5050
  toolCalls: "tool_calls",