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

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 (407) hide show
  1. package/README.md +18 -38
  2. package/bin/mcp-server.js +9851 -9147
  3. package/bin/mcp-server.js.map +82 -118
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/agentsResponsesCreate.d.ts +1 -7
  6. package/funcs/agentsResponsesCreate.d.ts.map +1 -1
  7. package/funcs/agentsResponsesCreate.js +2 -9
  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 +0 -1
  12. package/funcs/contactsList.js.map +1 -1
  13. package/funcs/memoryStoresListDocuments.js +0 -2
  14. package/funcs/memoryStoresListDocuments.js.map +1 -1
  15. package/funcs/memoryStoresListMemories.js +0 -1
  16. package/funcs/memoryStoresListMemories.js.map +1 -1
  17. package/jsr.json +1 -1
  18. package/lib/config.d.ts +3 -3
  19. package/lib/config.js +3 -3
  20. package/mcp-server/mcp-server.js +1 -1
  21. package/mcp-server/server.d.ts.map +1 -1
  22. package/mcp-server/server.js +1 -13
  23. package/mcp-server/server.js.map +1 -1
  24. package/mcp-server/tools/budgetsCreate.js +1 -1
  25. package/mcp-server/tools/budgetsCreate.js.map +1 -1
  26. package/models/components/agentexecutionstartedstreamingevent.d.ts +8 -8
  27. package/models/components/agentexecutionstartedstreamingevent.d.ts.map +1 -1
  28. package/models/components/agentexecutionstartedstreamingevent.js +12 -11
  29. package/models/components/agentexecutionstartedstreamingevent.js.map +1 -1
  30. package/models/components/agentinactivestreamingevent.d.ts +21 -21
  31. package/models/components/agentinactivestreamingevent.d.ts.map +1 -1
  32. package/models/components/agentinactivestreamingevent.js +28 -27
  33. package/models/components/agentinactivestreamingevent.js.map +1 -1
  34. package/models/components/agentthoughtstreamingevent.d.ts +24 -26
  35. package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
  36. package/models/components/agentthoughtstreamingevent.js +32 -34
  37. package/models/components/agentthoughtstreamingevent.js.map +1 -1
  38. package/models/components/imagecontentpartschema.d.ts +18 -18
  39. package/models/components/imagecontentpartschema.d.ts.map +1 -1
  40. package/models/components/imagecontentpartschema.js +21 -23
  41. package/models/components/imagecontentpartschema.js.map +1 -1
  42. package/models/components/index.d.ts +2 -16
  43. package/models/components/index.d.ts.map +1 -1
  44. package/models/components/index.js +2 -16
  45. package/models/components/index.js.map +1 -1
  46. package/models/components/invokedeploymentrequest.d.ts +1028 -149
  47. package/models/components/invokedeploymentrequest.d.ts.map +1 -1
  48. package/models/components/invokedeploymentrequest.js +984 -128
  49. package/models/components/invokedeploymentrequest.js.map +1 -1
  50. package/models/components/thinkingconfigdisabledschema.d.ts +23 -0
  51. package/models/components/thinkingconfigdisabledschema.d.ts.map +1 -0
  52. package/{mcp-server/tools/conversationsDelete.js → models/components/thinkingconfigdisabledschema.js} +19 -24
  53. package/models/components/thinkingconfigdisabledschema.js.map +1 -0
  54. package/models/components/thinkingconfigenabledschema.d.ts +49 -0
  55. package/models/components/thinkingconfigenabledschema.d.ts.map +1 -0
  56. package/models/components/thinkingconfigenabledschema.js +84 -0
  57. package/models/components/thinkingconfigenabledschema.js.map +1 -0
  58. package/models/components/toolexecutionfailedstreamingevent.d.ts +0 -2
  59. package/models/components/toolexecutionfailedstreamingevent.d.ts.map +1 -1
  60. package/models/components/toolexecutionfailedstreamingevent.js +0 -2
  61. package/models/components/toolexecutionfailedstreamingevent.js.map +1 -1
  62. package/models/components/toolexecutionfinishedstreamingevent.d.ts +0 -2
  63. package/models/components/toolexecutionfinishedstreamingevent.d.ts.map +1 -1
  64. package/models/components/toolexecutionfinishedstreamingevent.js +0 -2
  65. package/models/components/toolexecutionfinishedstreamingevent.js.map +1 -1
  66. package/models/components/toolexecutionstartedstreamingevent.d.ts +0 -2
  67. package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -1
  68. package/models/components/toolexecutionstartedstreamingevent.js +0 -2
  69. package/models/components/toolexecutionstartedstreamingevent.js.map +1 -1
  70. package/models/errors/index.d.ts +0 -4
  71. package/models/errors/index.d.ts.map +1 -1
  72. package/models/errors/index.js +0 -4
  73. package/models/errors/index.js.map +1 -1
  74. package/models/operations/createagentrequest.d.ts +17 -207
  75. package/models/operations/createagentrequest.d.ts.map +1 -1
  76. package/models/operations/createagentrequest.js +71 -190
  77. package/models/operations/createagentrequest.js.map +1 -1
  78. package/models/operations/createagentresponserequest.d.ts +1 -35
  79. package/models/operations/createagentresponserequest.d.ts.map +1 -1
  80. package/models/operations/createagentresponserequest.js +1 -55
  81. package/models/operations/createagentresponserequest.js.map +1 -1
  82. package/models/operations/createbudget.d.ts +13 -69
  83. package/models/operations/createbudget.d.ts.map +1 -1
  84. package/models/operations/createbudget.js +12 -61
  85. package/models/operations/createbudget.js.map +1 -1
  86. package/models/operations/createcontact.js +2 -2
  87. package/models/operations/createdataset.js +2 -2
  88. package/models/operations/createdatasetitem.d.ts +1033 -153
  89. package/models/operations/createdatasetitem.d.ts.map +1 -1
  90. package/models/operations/createdatasetitem.js +957 -147
  91. package/models/operations/createdatasetitem.js.map +1 -1
  92. package/models/operations/createdatasource.js +2 -2
  93. package/models/operations/createeval.js +28 -28
  94. package/models/operations/creatememory.d.ts +5 -10
  95. package/models/operations/creatememory.d.ts.map +1 -1
  96. package/models/operations/creatememory.js +2 -6
  97. package/models/operations/creatememory.js.map +1 -1
  98. package/models/operations/creatememorydocument.d.ts +4 -4
  99. package/models/operations/creatememorydocument.d.ts.map +1 -1
  100. package/models/operations/creatememorydocument.js +2 -2
  101. package/models/operations/creatememorydocument.js.map +1 -1
  102. package/models/operations/createprompt.d.ts +489 -146
  103. package/models/operations/createprompt.d.ts.map +1 -1
  104. package/models/operations/createprompt.js +483 -168
  105. package/models/operations/createprompt.js.map +1 -1
  106. package/models/operations/createtool.js +12 -12
  107. package/models/operations/deploymentcreatemetric.d.ts +1034 -154
  108. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  109. package/models/operations/deploymentcreatemetric.js +972 -137
  110. package/models/operations/deploymentcreatemetric.js.map +1 -1
  111. package/models/operations/deploymentgetconfig.d.ts +1101 -221
  112. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  113. package/models/operations/deploymentgetconfig.js +1059 -263
  114. package/models/operations/deploymentgetconfig.js.map +1 -1
  115. package/models/operations/deploymentinvoke.d.ts +26 -27
  116. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  117. package/models/operations/deploymentinvoke.js +28 -29
  118. package/models/operations/deploymentinvoke.js.map +1 -1
  119. package/models/operations/deployments.d.ts +13 -14
  120. package/models/operations/deployments.d.ts.map +1 -1
  121. package/models/operations/deployments.js +13 -14
  122. package/models/operations/deployments.js.map +1 -1
  123. package/models/operations/deploymentstream.d.ts +1064 -185
  124. package/models/operations/deploymentstream.d.ts.map +1 -1
  125. package/models/operations/deploymentstream.js +990 -164
  126. package/models/operations/deploymentstream.js.map +1 -1
  127. package/models/operations/fileget.js +2 -2
  128. package/models/operations/filelist.js +2 -2
  129. package/models/operations/fileupload.d.ts +8 -8
  130. package/models/operations/fileupload.d.ts.map +1 -1
  131. package/models/operations/fileupload.js +14 -13
  132. package/models/operations/fileupload.js.map +1 -1
  133. package/models/operations/getallmemories.d.ts +0 -10
  134. package/models/operations/getallmemories.d.ts.map +1 -1
  135. package/models/operations/getallmemories.js +0 -6
  136. package/models/operations/getallmemories.js.map +1 -1
  137. package/models/operations/getallmemorydocuments.d.ts +0 -10
  138. package/models/operations/getallmemorydocuments.d.ts.map +1 -1
  139. package/models/operations/getallmemorydocuments.js +0 -8
  140. package/models/operations/getallmemorydocuments.js.map +1 -1
  141. package/models/operations/getallprompts.d.ts +13 -14
  142. package/models/operations/getallprompts.d.ts.map +1 -1
  143. package/models/operations/getallprompts.js +13 -14
  144. package/models/operations/getallprompts.js.map +1 -1
  145. package/models/operations/getalltools.js +12 -12
  146. package/models/operations/getbudget.d.ts +0 -5
  147. package/models/operations/getbudget.d.ts.map +1 -1
  148. package/models/operations/getbudget.js +2 -6
  149. package/models/operations/getbudget.js.map +1 -1
  150. package/models/operations/getevals.js +28 -28
  151. package/models/operations/getoneprompt.d.ts +13 -14
  152. package/models/operations/getoneprompt.d.ts.map +1 -1
  153. package/models/operations/getoneprompt.js +13 -14
  154. package/models/operations/getoneprompt.js.map +1 -1
  155. package/models/operations/getpromptversion.d.ts +13 -14
  156. package/models/operations/getpromptversion.d.ts.map +1 -1
  157. package/models/operations/getpromptversion.js +13 -14
  158. package/models/operations/getpromptversion.js.map +1 -1
  159. package/models/operations/index.d.ts +0 -6
  160. package/models/operations/index.d.ts.map +1 -1
  161. package/models/operations/index.js +0 -6
  162. package/models/operations/index.js.map +1 -1
  163. package/models/operations/listagents.d.ts +9 -105
  164. package/models/operations/listagents.d.ts.map +1 -1
  165. package/models/operations/listagents.js +36 -95
  166. package/models/operations/listagents.js.map +1 -1
  167. package/models/operations/listbudgets.d.ts +0 -5
  168. package/models/operations/listbudgets.d.ts.map +1 -1
  169. package/models/operations/listbudgets.js +2 -6
  170. package/models/operations/listbudgets.js.map +1 -1
  171. package/models/operations/listcontacts.d.ts +0 -5
  172. package/models/operations/listcontacts.d.ts.map +1 -1
  173. package/models/operations/listcontacts.js +2 -4
  174. package/models/operations/listcontacts.js.map +1 -1
  175. package/models/operations/listdatasetdatapoints.d.ts +516 -76
  176. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  177. package/models/operations/listdatasetdatapoints.js +475 -75
  178. package/models/operations/listdatasetdatapoints.js.map +1 -1
  179. package/models/operations/listdatasets.js +2 -2
  180. package/models/operations/listdatasources.js +2 -2
  181. package/models/operations/listpromptversions.d.ts +13 -14
  182. package/models/operations/listpromptversions.d.ts.map +1 -1
  183. package/models/operations/listpromptversions.js +13 -14
  184. package/models/operations/listpromptversions.js.map +1 -1
  185. package/models/operations/retrieveagentrequest.d.ts +9 -105
  186. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  187. package/models/operations/retrieveagentrequest.js +36 -95
  188. package/models/operations/retrieveagentrequest.js.map +1 -1
  189. package/models/operations/retrievecontact.js +2 -2
  190. package/models/operations/retrievedatapoint.d.ts +516 -76
  191. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  192. package/models/operations/retrievedatapoint.js +473 -75
  193. package/models/operations/retrievedatapoint.js.map +1 -1
  194. package/models/operations/retrievedataset.js +2 -2
  195. package/models/operations/retrievedatasource.js +2 -2
  196. package/models/operations/retrievememory.d.ts +0 -5
  197. package/models/operations/retrievememory.d.ts.map +1 -1
  198. package/models/operations/retrievememory.js +0 -4
  199. package/models/operations/retrievememory.js.map +1 -1
  200. package/models/operations/retrievetool.js +12 -12
  201. package/models/operations/runagent.d.ts +8 -102
  202. package/models/operations/runagent.d.ts.map +1 -1
  203. package/models/operations/runagent.js +39 -102
  204. package/models/operations/runagent.js.map +1 -1
  205. package/models/operations/streamrunagent.d.ts +8 -102
  206. package/models/operations/streamrunagent.d.ts.map +1 -1
  207. package/models/operations/streamrunagent.js +39 -101
  208. package/models/operations/streamrunagent.js.map +1 -1
  209. package/models/operations/updateagent.d.ts +17 -207
  210. package/models/operations/updateagent.d.ts.map +1 -1
  211. package/models/operations/updateagent.js +71 -189
  212. package/models/operations/updateagent.js.map +1 -1
  213. package/models/operations/updatebudget.d.ts +0 -5
  214. package/models/operations/updatebudget.d.ts.map +1 -1
  215. package/models/operations/updatebudget.js +2 -6
  216. package/models/operations/updatebudget.js.map +1 -1
  217. package/models/operations/updatecontact.js +2 -2
  218. package/models/operations/updatedatapoint.d.ts +1033 -153
  219. package/models/operations/updatedatapoint.d.ts.map +1 -1
  220. package/models/operations/updatedatapoint.js +955 -147
  221. package/models/operations/updatedatapoint.js.map +1 -1
  222. package/models/operations/updatedataset.js +2 -2
  223. package/models/operations/updatedatasource.js +2 -2
  224. package/models/operations/updateeval.js +28 -28
  225. package/models/operations/updatememory.d.ts +5 -10
  226. package/models/operations/updatememory.d.ts.map +1 -1
  227. package/models/operations/updatememory.js +2 -6
  228. package/models/operations/updatememory.js.map +1 -1
  229. package/models/operations/updatememorydocument.d.ts +4 -4
  230. package/models/operations/updatememorydocument.d.ts.map +1 -1
  231. package/models/operations/updatememorydocument.js +2 -2
  232. package/models/operations/updatememorydocument.js.map +1 -1
  233. package/models/operations/updatememorystore.d.ts +59 -24
  234. package/models/operations/updatememorystore.d.ts.map +1 -1
  235. package/models/operations/updatememorystore.js +55 -27
  236. package/models/operations/updatememorystore.js.map +1 -1
  237. package/models/operations/updateprompt.d.ts +486 -149
  238. package/models/operations/updateprompt.d.ts.map +1 -1
  239. package/models/operations/updateprompt.js +466 -156
  240. package/models/operations/updateprompt.js.map +1 -1
  241. package/models/operations/updatetool.js +14 -14
  242. package/package.json +1 -1
  243. package/sdk/budgets.d.ts +1 -1
  244. package/sdk/budgets.js +1 -1
  245. package/sdk/evals.d.ts +0 -4
  246. package/sdk/evals.d.ts.map +1 -1
  247. package/sdk/evals.js +0 -7
  248. package/sdk/evals.js.map +1 -1
  249. package/sdk/responses.d.ts +1 -5
  250. package/sdk/responses.d.ts.map +1 -1
  251. package/sdk/responses.js +1 -3
  252. package/sdk/responses.js.map +1 -1
  253. package/sdk/sdk.d.ts +0 -3
  254. package/sdk/sdk.d.ts.map +1 -1
  255. package/sdk/sdk.js +0 -4
  256. package/sdk/sdk.js.map +1 -1
  257. package/src/funcs/agentsResponsesCreate.ts +10 -14
  258. package/src/funcs/budgetsCreate.ts +1 -1
  259. package/src/funcs/contactsList.ts +0 -1
  260. package/src/funcs/memoryStoresListDocuments.ts +0 -2
  261. package/src/funcs/memoryStoresListMemories.ts +0 -1
  262. package/src/lib/config.ts +3 -3
  263. package/src/mcp-server/mcp-server.ts +1 -1
  264. package/src/mcp-server/server.ts +1 -13
  265. package/src/mcp-server/tools/budgetsCreate.ts +1 -1
  266. package/src/models/components/agentexecutionstartedstreamingevent.ts +34 -53
  267. package/src/models/components/agentinactivestreamingevent.ts +57 -85
  268. package/src/models/components/agentthoughtstreamingevent.ts +118 -167
  269. package/src/models/components/imagecontentpartschema.ts +37 -52
  270. package/src/models/components/index.ts +2 -16
  271. package/src/models/components/invokedeploymentrequest.ts +2543 -486
  272. package/src/models/components/thinkingconfigdisabledschema.ts +59 -0
  273. package/src/models/components/thinkingconfigenabledschema.ts +106 -0
  274. package/src/models/components/toolexecutionfailedstreamingevent.ts +0 -4
  275. package/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -4
  276. package/src/models/components/toolexecutionstartedstreamingevent.ts +0 -4
  277. package/src/models/errors/index.ts +0 -4
  278. package/src/models/operations/createagentrequest.ts +119 -368
  279. package/src/models/operations/createagentresponserequest.ts +1 -134
  280. package/src/models/operations/createbudget.ts +28 -143
  281. package/src/models/operations/createcontact.ts +2 -2
  282. package/src/models/operations/createdataset.ts +2 -2
  283. package/src/models/operations/createdatasetitem.ts +2747 -562
  284. package/src/models/operations/createdatasource.ts +2 -2
  285. package/src/models/operations/createeval.ts +28 -28
  286. package/src/models/operations/creatememory.ts +5 -14
  287. package/src/models/operations/creatememorydocument.ts +4 -4
  288. package/src/models/operations/createprompt.ts +1217 -415
  289. package/src/models/operations/createtool.ts +12 -12
  290. package/src/models/operations/deploymentcreatemetric.ts +3037 -598
  291. package/src/models/operations/deploymentgetconfig.ts +2905 -828
  292. package/src/models/operations/deploymentinvoke.ts +46 -47
  293. package/src/models/operations/deployments.ts +15 -16
  294. package/src/models/operations/deploymentstream.ts +2842 -592
  295. package/src/models/operations/fileget.ts +2 -2
  296. package/src/models/operations/filelist.ts +2 -2
  297. package/src/models/operations/fileupload.ts +27 -30
  298. package/src/models/operations/getallmemories.ts +0 -16
  299. package/src/models/operations/getallmemorydocuments.ts +0 -22
  300. package/src/models/operations/getallprompts.ts +15 -16
  301. package/src/models/operations/getalltools.ts +12 -12
  302. package/src/models/operations/getbudget.ts +2 -11
  303. package/src/models/operations/getevals.ts +28 -28
  304. package/src/models/operations/getoneprompt.ts +15 -16
  305. package/src/models/operations/getpromptversion.ts +15 -16
  306. package/src/models/operations/index.ts +0 -6
  307. package/src/models/operations/listagents.ts +61 -187
  308. package/src/models/operations/listbudgets.ts +2 -11
  309. package/src/models/operations/listcontacts.ts +2 -9
  310. package/src/models/operations/listdatasetdatapoints.ts +1381 -314
  311. package/src/models/operations/listdatasets.ts +2 -2
  312. package/src/models/operations/listdatasources.ts +2 -2
  313. package/src/models/operations/listpromptversions.ts +15 -16
  314. package/src/models/operations/retrieveagentrequest.ts +59 -195
  315. package/src/models/operations/retrievecontact.ts +2 -2
  316. package/src/models/operations/retrievedatapoint.ts +1301 -276
  317. package/src/models/operations/retrievedataset.ts +2 -2
  318. package/src/models/operations/retrievedatasource.ts +2 -2
  319. package/src/models/operations/retrievememory.ts +0 -9
  320. package/src/models/operations/retrievetool.ts +12 -12
  321. package/src/models/operations/runagent.ts +62 -192
  322. package/src/models/operations/streamrunagent.ts +60 -199
  323. package/src/models/operations/updateagent.ts +119 -378
  324. package/src/models/operations/updatebudget.ts +2 -11
  325. package/src/models/operations/updatecontact.ts +2 -2
  326. package/src/models/operations/updatedatapoint.ts +2772 -611
  327. package/src/models/operations/updatedataset.ts +2 -2
  328. package/src/models/operations/updatedatasource.ts +2 -2
  329. package/src/models/operations/updateeval.ts +28 -28
  330. package/src/models/operations/updatememory.ts +5 -14
  331. package/src/models/operations/updatememorydocument.ts +4 -4
  332. package/src/models/operations/updatememorystore.ts +154 -64
  333. package/src/models/operations/updateprompt.ts +1142 -383
  334. package/src/models/operations/updatetool.ts +14 -14
  335. package/src/sdk/budgets.ts +1 -1
  336. package/src/sdk/evals.ts +0 -15
  337. package/src/sdk/responses.ts +3 -8
  338. package/src/sdk/sdk.ts +0 -6
  339. package/funcs/conversationsCreate.d.ts +0 -17
  340. package/funcs/conversationsCreate.d.ts.map +0 -1
  341. package/funcs/conversationsCreate.js +0 -114
  342. package/funcs/conversationsCreate.js.map +0 -1
  343. package/funcs/conversationsDelete.d.ts +0 -17
  344. package/funcs/conversationsDelete.d.ts.map +0 -1
  345. package/funcs/conversationsDelete.js +0 -127
  346. package/funcs/conversationsDelete.js.map +0 -1
  347. package/funcs/conversationsList.d.ts +0 -17
  348. package/funcs/conversationsList.d.ts.map +0 -1
  349. package/funcs/conversationsList.js +0 -124
  350. package/funcs/conversationsList.js.map +0 -1
  351. package/funcs/conversationsRetrieve.d.ts +0 -18
  352. package/funcs/conversationsRetrieve.d.ts.map +0 -1
  353. package/funcs/conversationsRetrieve.js +0 -126
  354. package/funcs/conversationsRetrieve.js.map +0 -1
  355. package/funcs/conversationsUpdate.d.ts +0 -18
  356. package/funcs/conversationsUpdate.d.ts.map +0 -1
  357. package/funcs/conversationsUpdate.js +0 -128
  358. package/funcs/conversationsUpdate.js.map +0 -1
  359. package/funcs/evalsInvoke.d.ts +0 -15
  360. package/funcs/evalsInvoke.d.ts.map +0 -1
  361. package/funcs/evalsInvoke.js +0 -121
  362. package/funcs/evalsInvoke.js.map +0 -1
  363. package/mcp-server/tools/conversationsCreate.d.ts +0 -8
  364. package/mcp-server/tools/conversationsCreate.d.ts.map +0 -1
  365. package/mcp-server/tools/conversationsCreate.js +0 -64
  366. package/mcp-server/tools/conversationsCreate.js.map +0 -1
  367. package/mcp-server/tools/conversationsDelete.d.ts +0 -8
  368. package/mcp-server/tools/conversationsDelete.d.ts.map +0 -1
  369. package/mcp-server/tools/conversationsDelete.js.map +0 -1
  370. package/mcp-server/tools/conversationsList.d.ts +0 -10
  371. package/mcp-server/tools/conversationsList.d.ts.map +0 -1
  372. package/mcp-server/tools/conversationsList.js +0 -66
  373. package/mcp-server/tools/conversationsList.js.map +0 -1
  374. package/mcp-server/tools/conversationsRetrieve.d.ts +0 -8
  375. package/mcp-server/tools/conversationsRetrieve.d.ts.map +0 -1
  376. package/mcp-server/tools/conversationsRetrieve.js +0 -64
  377. package/mcp-server/tools/conversationsRetrieve.js.map +0 -1
  378. package/mcp-server/tools/conversationsUpdate.d.ts +0 -10
  379. package/mcp-server/tools/conversationsUpdate.d.ts.map +0 -1
  380. package/mcp-server/tools/conversationsUpdate.js +0 -66
  381. package/mcp-server/tools/conversationsUpdate.js.map +0 -1
  382. package/mcp-server/tools/evalsInvoke.d.ts +0 -8
  383. package/mcp-server/tools/evalsInvoke.d.ts.map +0 -1
  384. package/mcp-server/tools/evalsInvoke.js +0 -62
  385. package/mcp-server/tools/evalsInvoke.js.map +0 -1
  386. package/models/operations/listconversations.d.ts +0 -60
  387. package/models/operations/listconversations.d.ts.map +0 -1
  388. package/models/operations/listconversations.js +0 -109
  389. package/models/operations/listconversations.js.map +0 -1
  390. package/sdk/conversations.d.ts +0 -40
  391. package/sdk/conversations.d.ts.map +0 -1
  392. package/sdk/conversations.js +0 -62
  393. package/sdk/conversations.js.map +0 -1
  394. package/src/funcs/conversationsCreate.ts +0 -161
  395. package/src/funcs/conversationsDelete.ts +0 -180
  396. package/src/funcs/conversationsList.ts +0 -181
  397. package/src/funcs/conversationsRetrieve.ts +0 -180
  398. package/src/funcs/conversationsUpdate.ts +0 -184
  399. package/src/funcs/evalsInvoke.ts +0 -177
  400. package/src/mcp-server/tools/conversationsCreate.ts +0 -37
  401. package/src/mcp-server/tools/conversationsDelete.ts +0 -35
  402. package/src/mcp-server/tools/conversationsList.ts +0 -41
  403. package/src/mcp-server/tools/conversationsRetrieve.ts +0 -37
  404. package/src/mcp-server/tools/conversationsUpdate.ts +0 -40
  405. package/src/mcp-server/tools/evalsInvoke.ts +0 -35
  406. package/src/models/operations/listconversations.ts +0 -161
  407. package/src/sdk/conversations.ts +0 -105
@@ -284,30 +284,29 @@ export type UpdatePromptModelParameters = {
284
284
  };
285
285
 
286
286
  export const Provider = {
287
- Openai: "openai",
288
- Groq: "groq",
289
287
  Cohere: "cohere",
290
- Azure: "azure",
291
- Aws: "aws",
288
+ Openai: "openai",
289
+ Anthropic: "anthropic",
290
+ Huggingface: "huggingface",
291
+ Replicate: "replicate",
292
292
  Google: "google",
293
293
  GoogleAi: "google-ai",
294
- Huggingface: "huggingface",
295
- Togetherai: "togetherai",
294
+ Azure: "azure",
295
+ Aws: "aws",
296
+ Anyscale: "anyscale",
296
297
  Perplexity: "perplexity",
297
- Anthropic: "anthropic",
298
- Leonardoai: "leonardoai",
298
+ Groq: "groq",
299
299
  Fal: "fal",
300
+ Leonardoai: "leonardoai",
300
301
  Nvidia: "nvidia",
301
302
  Jina: "jina",
303
+ Togetherai: "togetherai",
302
304
  Elevenlabs: "elevenlabs",
303
305
  Litellm: "litellm",
304
- Cerebras: "cerebras",
305
306
  Openailike: "openailike",
307
+ Cerebras: "cerebras",
306
308
  Bytedance: "bytedance",
307
309
  Mistral: "mistral",
308
- Deepseek: "deepseek",
309
- Contextualai: "contextualai",
310
- Moonshotai: "moonshotai",
311
310
  } as const;
312
311
  export type Provider = ClosedEnum<typeof Provider>;
313
312
 
@@ -348,7 +347,7 @@ export type UpdatePrompt2File = {
348
347
  filename?: string | undefined;
349
348
  };
350
349
 
351
- export type UpdatePrompt23 = {
350
+ export type Two3 = {
352
351
  /**
353
352
  * The type of the content part. Always `file`.
354
353
  */
@@ -356,7 +355,7 @@ export type UpdatePrompt23 = {
356
355
  file: UpdatePrompt2File;
357
356
  };
358
357
 
359
- export type UpdatePrompt2ImageUrl = {
358
+ export type TwoImageUrl = {
360
359
  /**
361
360
  * Either a URL of the image or the base64 encoded data URI.
362
361
  */
@@ -372,7 +371,7 @@ export type UpdatePrompt2ImageUrl = {
372
371
  */
373
372
  export type UpdatePrompt22 = {
374
373
  type: "image_url";
375
- imageUrl: UpdatePrompt2ImageUrl;
374
+ imageUrl: TwoImageUrl;
376
375
  };
377
376
 
378
377
  /**
@@ -383,17 +382,14 @@ export type UpdatePrompt21 = {
383
382
  text: string;
384
383
  };
385
384
 
386
- export type UpdatePromptContent2 =
387
- | UpdatePrompt21
388
- | UpdatePrompt22
389
- | UpdatePrompt23;
385
+ export type UpdatePromptContent2 = UpdatePrompt21 | UpdatePrompt22 | Two3;
390
386
 
391
387
  /**
392
388
  * 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.
393
389
  */
394
390
  export type UpdatePromptContent =
395
391
  | string
396
- | Array<UpdatePrompt21 | UpdatePrompt22 | UpdatePrompt23>;
392
+ | Array<UpdatePrompt21 | UpdatePrompt22 | Two3>;
397
393
 
398
394
  export const UpdatePromptType = {
399
395
  Function: "function",
@@ -423,12 +419,9 @@ export type UpdatePromptMessages = {
423
419
  /**
424
420
  * 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.
425
421
  */
426
- content:
427
- | string
428
- | Array<UpdatePrompt21 | UpdatePrompt22 | UpdatePrompt23>
429
- | null;
422
+ content: string | Array<UpdatePrompt21 | UpdatePrompt22 | Two3> | null;
430
423
  toolCalls?: Array<UpdatePromptToolCalls> | undefined;
431
- toolCallId?: string | null | undefined;
424
+ toolCallId?: string | undefined;
432
425
  };
433
426
 
434
427
  /**
@@ -463,10 +456,6 @@ export type PromptConfig = {
463
456
  */
464
457
  modelParameters?: UpdatePromptModelParameters | undefined;
465
458
  provider?: Provider | undefined;
466
- /**
467
- * The ID of the integration to use
468
- */
469
- integrationId?: string | null | undefined;
470
459
  version?: string | undefined;
471
460
  messages: Array<UpdatePromptMessages>;
472
461
  modelDbId?: string | null | undefined;
@@ -529,15 +518,88 @@ export type UpdatePromptMetadata = {
529
518
  language?: UpdatePromptLanguage | null | undefined;
530
519
  };
531
520
 
532
- export type UpdatePromptContentPromptsRequestRequestBody2 =
533
- components.TextContentPartSchema;
521
+ export const UpdatePrompt2PromptsRequestRequestBodyPromptMessages4Type = {
522
+ Text: "text",
523
+ } as const;
524
+ export type UpdatePrompt2PromptsRequestRequestBodyPromptMessages4Type =
525
+ ClosedEnum<typeof UpdatePrompt2PromptsRequestRequestBodyPromptMessages4Type>;
526
+
527
+ /**
528
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
529
+ */
530
+ export const UpdatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType =
531
+ {
532
+ Ephemeral: "ephemeral",
533
+ } as const;
534
+ /**
535
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
536
+ */
537
+ export type UpdatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType =
538
+ ClosedEnum<
539
+ typeof UpdatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType
540
+ >;
541
+
542
+ /**
543
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
544
+ *
545
+ * @remarks
546
+ *
547
+ * - `5m`: 5 minutes
548
+ * - `1h`: 1 hour
549
+ *
550
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
551
+ */
552
+ export const UpdatePrompt2PromptsRequestRequestBodyTtl = {
553
+ Fivem: "5m",
554
+ Oneh: "1h",
555
+ } as const;
556
+ /**
557
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
558
+ *
559
+ * @remarks
560
+ *
561
+ * - `5m`: 5 minutes
562
+ * - `1h`: 1 hour
563
+ *
564
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
565
+ */
566
+ export type UpdatePrompt2PromptsRequestRequestBodyTtl = ClosedEnum<
567
+ typeof UpdatePrompt2PromptsRequestRequestBodyTtl
568
+ >;
569
+
570
+ export type UpdatePrompt2PromptsRequestRequestBodyCacheControl = {
571
+ /**
572
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
573
+ */
574
+ type: UpdatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType;
575
+ /**
576
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
577
+ *
578
+ * @remarks
579
+ *
580
+ * - `5m`: 5 minutes
581
+ * - `1h`: 1 hour
582
+ *
583
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
584
+ */
585
+ ttl?: UpdatePrompt2PromptsRequestRequestBodyTtl | undefined;
586
+ };
587
+
588
+ export type UpdatePrompt2PromptsRequestRequestBody1 = {
589
+ type: UpdatePrompt2PromptsRequestRequestBodyPromptMessages4Type;
590
+ text: string;
591
+ cacheControl?: UpdatePrompt2PromptsRequestRequestBodyCacheControl | undefined;
592
+ };
593
+
594
+ export type UpdatePromptContentPromptsRequestRequestBodyPrompt2 =
595
+ UpdatePrompt2PromptsRequestRequestBody1;
534
596
 
535
597
  /**
536
598
  * The contents of the tool message.
537
599
  */
538
600
  export type UpdatePromptMessagesPromptsRequestRequestBodyContent =
539
601
  | string
540
- | Array<components.TextContentPartSchema>;
602
+ | Array<UpdatePrompt2PromptsRequestRequestBody1>;
541
603
 
542
604
  /**
543
605
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
@@ -606,7 +668,7 @@ export type UpdatePromptMessagesToolMessage = {
606
668
  /**
607
669
  * The contents of the tool message.
608
670
  */
609
- content: string | Array<components.TextContentPartSchema>;
671
+ content: string | Array<UpdatePrompt2PromptsRequestRequestBody1>;
610
672
  /**
611
673
  * Tool call that this message is responding to.
612
674
  */
@@ -614,8 +676,75 @@ export type UpdatePromptMessagesToolMessage = {
614
676
  cacheControl?: UpdatePromptMessagesCacheControl | undefined;
615
677
  };
616
678
 
617
- export type UpdatePromptContentPromptsRequest2 =
618
- | (components.TextContentPartSchema & { type: "text" })
679
+ /**
680
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
681
+ */
682
+ export const UpdatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType =
683
+ {
684
+ Ephemeral: "ephemeral",
685
+ } as const;
686
+ /**
687
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
688
+ */
689
+ export type UpdatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType =
690
+ ClosedEnum<
691
+ typeof UpdatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType
692
+ >;
693
+
694
+ /**
695
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
696
+ *
697
+ * @remarks
698
+ *
699
+ * - `5m`: 5 minutes
700
+ * - `1h`: 1 hour
701
+ *
702
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
703
+ */
704
+ export const UpdatePrompt2PromptsRequestTtl = {
705
+ Fivem: "5m",
706
+ Oneh: "1h",
707
+ } as const;
708
+ /**
709
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
710
+ *
711
+ * @remarks
712
+ *
713
+ * - `5m`: 5 minutes
714
+ * - `1h`: 1 hour
715
+ *
716
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
717
+ */
718
+ export type UpdatePrompt2PromptsRequestTtl = ClosedEnum<
719
+ typeof UpdatePrompt2PromptsRequestTtl
720
+ >;
721
+
722
+ export type UpdatePrompt2PromptsRequestCacheControl = {
723
+ /**
724
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
725
+ */
726
+ type: UpdatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType;
727
+ /**
728
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
729
+ *
730
+ * @remarks
731
+ *
732
+ * - `5m`: 5 minutes
733
+ * - `1h`: 1 hour
734
+ *
735
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
736
+ */
737
+ ttl?: UpdatePrompt2PromptsRequestTtl | undefined;
738
+ };
739
+
740
+ export type UpdatePrompt2PromptsRequest1 = {
741
+ type: "text";
742
+ text: string;
743
+ cacheControl?: UpdatePrompt2PromptsRequestCacheControl | undefined;
744
+ };
745
+
746
+ export type UpdatePromptContentPromptsRequestRequestBody2 =
747
+ | UpdatePrompt2PromptsRequest1
619
748
  | components.RefusalPartSchema
620
749
  | components.ReasoningPartSchema
621
750
  | components.RedactedReasoningPartSchema;
@@ -626,7 +755,7 @@ export type UpdatePromptContentPromptsRequest2 =
626
755
  export type UpdatePromptMessagesPromptsRequestContent =
627
756
  | string
628
757
  | Array<
629
- | (components.TextContentPartSchema & { type: "text" })
758
+ | UpdatePrompt2PromptsRequest1
630
759
  | components.RefusalPartSchema
631
760
  | components.ReasoningPartSchema
632
761
  | components.RedactedReasoningPartSchema
@@ -689,7 +818,7 @@ export type UpdatePromptMessagesAssistantMessage = {
689
818
  content?:
690
819
  | string
691
820
  | Array<
692
- | (components.TextContentPartSchema & { type: "text" })
821
+ | UpdatePrompt2PromptsRequest1
693
822
  | components.RefusalPartSchema
694
823
  | components.ReasoningPartSchema
695
824
  | components.RedactedReasoningPartSchema
@@ -718,6 +847,76 @@ export type UpdatePromptMessagesAssistantMessage = {
718
847
  toolCalls?: Array<UpdatePromptMessagesToolCalls> | undefined;
719
848
  };
720
849
 
850
+ /**
851
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
852
+ */
853
+ export const UpdatePrompt2PromptsRequestRequestBodyPromptMessages2Type = {
854
+ Ephemeral: "ephemeral",
855
+ } as const;
856
+ /**
857
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
858
+ */
859
+ export type UpdatePrompt2PromptsRequestRequestBodyPromptMessages2Type =
860
+ ClosedEnum<typeof UpdatePrompt2PromptsRequestRequestBodyPromptMessages2Type>;
861
+
862
+ /**
863
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
864
+ *
865
+ * @remarks
866
+ *
867
+ * - `5m`: 5 minutes
868
+ * - `1h`: 1 hour
869
+ *
870
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
871
+ */
872
+ export const UpdatePrompt2PromptsTtl = {
873
+ Fivem: "5m",
874
+ Oneh: "1h",
875
+ } as const;
876
+ /**
877
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
878
+ *
879
+ * @remarks
880
+ *
881
+ * - `5m`: 5 minutes
882
+ * - `1h`: 1 hour
883
+ *
884
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
885
+ */
886
+ export type UpdatePrompt2PromptsTtl = ClosedEnum<
887
+ typeof UpdatePrompt2PromptsTtl
888
+ >;
889
+
890
+ export type UpdatePrompt2PromptsCacheControl = {
891
+ /**
892
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
893
+ */
894
+ type: UpdatePrompt2PromptsRequestRequestBodyPromptMessages2Type;
895
+ /**
896
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
897
+ *
898
+ * @remarks
899
+ *
900
+ * - `5m`: 5 minutes
901
+ * - `1h`: 1 hour
902
+ *
903
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
904
+ */
905
+ ttl?: UpdatePrompt2PromptsTtl | undefined;
906
+ };
907
+
908
+ export type UpdatePrompt24 = {
909
+ /**
910
+ * The type of the content part. Always `file`.
911
+ */
912
+ type: "file";
913
+ cacheControl?: UpdatePrompt2PromptsCacheControl | undefined;
914
+ /**
915
+ * File data for the content part. Must contain either file_data or uri, but not both.
916
+ */
917
+ file: components.FileContentPartSchema;
918
+ };
919
+
721
920
  /**
722
921
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
723
922
  */
@@ -775,20 +974,14 @@ export type UpdatePrompt2CacheControl = {
775
974
  ttl?: UpdatePrompt2Ttl | undefined;
776
975
  };
777
976
 
778
- export type UpdatePrompt24 = {
779
- /**
780
- * The type of the content part. Always `file`.
781
- */
782
- type: "file";
977
+ export type UpdatePrompt2Prompts1 = {
978
+ type: "text";
979
+ text: string;
783
980
  cacheControl?: UpdatePrompt2CacheControl | undefined;
784
- /**
785
- * File data for the content part. Must contain either file_data or uri, but not both.
786
- */
787
- file: components.FileContentPartSchema;
788
981
  };
789
982
 
790
- export type UpdatePromptContentPrompts2 =
791
- | (components.TextContentPartSchema & { type: "text" })
983
+ export type UpdatePromptContentPromptsRequest2 =
984
+ | UpdatePrompt2Prompts1
792
985
  | components.ImageContentPartSchema
793
986
  | components.AudioContentPartSchema
794
987
  | UpdatePrompt24;
@@ -799,7 +992,7 @@ export type UpdatePromptContentPrompts2 =
799
992
  export type UpdatePromptMessagesPromptsContent =
800
993
  | string
801
994
  | Array<
802
- | (components.TextContentPartSchema & { type: "text" })
995
+ | UpdatePrompt2Prompts1
803
996
  | components.ImageContentPartSchema
804
997
  | components.AudioContentPartSchema
805
998
  | UpdatePrompt24
@@ -820,19 +1013,89 @@ export type UpdatePromptMessagesUserMessage = {
820
1013
  content:
821
1014
  | string
822
1015
  | Array<
823
- | (components.TextContentPartSchema & { type: "text" })
1016
+ | UpdatePrompt2Prompts1
824
1017
  | components.ImageContentPartSchema
825
1018
  | components.AudioContentPartSchema
826
1019
  | UpdatePrompt24
827
1020
  >;
828
1021
  };
829
1022
 
1023
+ export const UpdatePromptContentType = {
1024
+ Text: "text",
1025
+ } as const;
1026
+ export type UpdatePromptContentType = ClosedEnum<
1027
+ typeof UpdatePromptContentType
1028
+ >;
1029
+
1030
+ /**
1031
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1032
+ */
1033
+ export const UpdatePromptContentPromptsType = {
1034
+ Ephemeral: "ephemeral",
1035
+ } as const;
1036
+ /**
1037
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1038
+ */
1039
+ export type UpdatePromptContentPromptsType = ClosedEnum<
1040
+ typeof UpdatePromptContentPromptsType
1041
+ >;
1042
+
1043
+ /**
1044
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1045
+ *
1046
+ * @remarks
1047
+ *
1048
+ * - `5m`: 5 minutes
1049
+ * - `1h`: 1 hour
1050
+ *
1051
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1052
+ */
1053
+ export const UpdatePromptContentTtl = {
1054
+ Fivem: "5m",
1055
+ Oneh: "1h",
1056
+ } as const;
1057
+ /**
1058
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1059
+ *
1060
+ * @remarks
1061
+ *
1062
+ * - `5m`: 5 minutes
1063
+ * - `1h`: 1 hour
1064
+ *
1065
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1066
+ */
1067
+ export type UpdatePromptContentTtl = ClosedEnum<typeof UpdatePromptContentTtl>;
1068
+
1069
+ export type UpdatePromptContentCacheControl = {
1070
+ /**
1071
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1072
+ */
1073
+ type: UpdatePromptContentPromptsType;
1074
+ /**
1075
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1076
+ *
1077
+ * @remarks
1078
+ *
1079
+ * - `5m`: 5 minutes
1080
+ * - `1h`: 1 hour
1081
+ *
1082
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1083
+ */
1084
+ ttl?: UpdatePromptContentTtl | undefined;
1085
+ };
1086
+
1087
+ export type UpdatePromptContentPrompts2 = {
1088
+ type: UpdatePromptContentType;
1089
+ text: string;
1090
+ cacheControl?: UpdatePromptContentCacheControl | undefined;
1091
+ };
1092
+
830
1093
  /**
831
1094
  * The contents of the system message.
832
1095
  */
833
1096
  export type UpdatePromptMessagesContent =
834
1097
  | string
835
- | Array<components.TextContentPartSchema>;
1098
+ | Array<UpdatePromptContentPrompts2>;
836
1099
 
837
1100
  /**
838
1101
  * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
@@ -845,7 +1108,7 @@ export type UpdatePromptMessagesSystemMessage = {
845
1108
  /**
846
1109
  * The contents of the system message.
847
1110
  */
848
- content: string | Array<components.TextContentPartSchema>;
1111
+ content: string | Array<UpdatePromptContentPrompts2>;
849
1112
  /**
850
1113
  * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
851
1114
  */
@@ -1310,30 +1573,29 @@ export type UpdatePromptPromptsModelParameters = {
1310
1573
  };
1311
1574
 
1312
1575
  export const UpdatePromptProvider = {
1313
- Openai: "openai",
1314
- Groq: "groq",
1315
1576
  Cohere: "cohere",
1316
- Azure: "azure",
1317
- Aws: "aws",
1577
+ Openai: "openai",
1578
+ Anthropic: "anthropic",
1579
+ Huggingface: "huggingface",
1580
+ Replicate: "replicate",
1318
1581
  Google: "google",
1319
1582
  GoogleAi: "google-ai",
1320
- Huggingface: "huggingface",
1321
- Togetherai: "togetherai",
1583
+ Azure: "azure",
1584
+ Aws: "aws",
1585
+ Anyscale: "anyscale",
1322
1586
  Perplexity: "perplexity",
1323
- Anthropic: "anthropic",
1324
- Leonardoai: "leonardoai",
1587
+ Groq: "groq",
1325
1588
  Fal: "fal",
1589
+ Leonardoai: "leonardoai",
1326
1590
  Nvidia: "nvidia",
1327
1591
  Jina: "jina",
1592
+ Togetherai: "togetherai",
1328
1593
  Elevenlabs: "elevenlabs",
1329
1594
  Litellm: "litellm",
1330
- Cerebras: "cerebras",
1331
1595
  Openailike: "openailike",
1596
+ Cerebras: "cerebras",
1332
1597
  Bytedance: "bytedance",
1333
1598
  Mistral: "mistral",
1334
- Deepseek: "deepseek",
1335
- Contextualai: "contextualai",
1336
- Moonshotai: "moonshotai",
1337
1599
  } as const;
1338
1600
  export type UpdatePromptProvider = ClosedEnum<typeof UpdatePromptProvider>;
1339
1601
 
@@ -1376,7 +1638,7 @@ export type UpdatePrompt2PromptsFile = {
1376
1638
  filename?: string | undefined;
1377
1639
  };
1378
1640
 
1379
- export type UpdatePrompt2Prompts3 = {
1641
+ export type UpdatePrompt23 = {
1380
1642
  /**
1381
1643
  * The type of the content part. Always `file`.
1382
1644
  */
@@ -1384,7 +1646,7 @@ export type UpdatePrompt2Prompts3 = {
1384
1646
  file: UpdatePrompt2PromptsFile;
1385
1647
  };
1386
1648
 
1387
- export type UpdatePrompt2PromptsImageUrl = {
1649
+ export type UpdatePrompt2ImageUrl = {
1388
1650
  /**
1389
1651
  * The orq.ai id of the image
1390
1652
  */
@@ -1404,21 +1666,21 @@ export type UpdatePrompt2PromptsImageUrl = {
1404
1666
  */
1405
1667
  export type UpdatePrompt2Prompts2 = {
1406
1668
  type: "image_url";
1407
- imageUrl: UpdatePrompt2PromptsImageUrl;
1669
+ imageUrl: UpdatePrompt2ImageUrl;
1408
1670
  };
1409
1671
 
1410
1672
  /**
1411
1673
  * Text content part of a prompt message
1412
1674
  */
1413
- export type UpdatePrompt2Prompts1 = {
1675
+ export type UpdatePrompt2PromptsResponse1 = {
1414
1676
  type: "text";
1415
1677
  text: string;
1416
1678
  };
1417
1679
 
1418
1680
  export type UpdatePromptContentPromptsResponse2 =
1419
- | UpdatePrompt2Prompts1
1681
+ | UpdatePrompt2PromptsResponse1
1420
1682
  | UpdatePrompt2Prompts2
1421
- | UpdatePrompt2Prompts3;
1683
+ | UpdatePrompt23;
1422
1684
 
1423
1685
  /**
1424
1686
  * 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.
@@ -1426,7 +1688,7 @@ export type UpdatePromptContentPromptsResponse2 =
1426
1688
  export type UpdatePromptPromptsContent =
1427
1689
  | string
1428
1690
  | Array<
1429
- UpdatePrompt2Prompts1 | UpdatePrompt2Prompts2 | UpdatePrompt2Prompts3
1691
+ UpdatePrompt2PromptsResponse1 | UpdatePrompt2Prompts2 | UpdatePrompt23
1430
1692
  >;
1431
1693
 
1432
1694
  export const UpdatePromptPromptsResponseType = {
@@ -1462,11 +1724,11 @@ export type UpdatePromptPromptsResponseMessages = {
1462
1724
  content:
1463
1725
  | string
1464
1726
  | Array<
1465
- UpdatePrompt2Prompts1 | UpdatePrompt2Prompts2 | UpdatePrompt2Prompts3
1727
+ UpdatePrompt2PromptsResponse1 | UpdatePrompt2Prompts2 | UpdatePrompt23
1466
1728
  >
1467
1729
  | null;
1468
1730
  toolCalls?: Array<UpdatePromptPromptsToolCalls> | undefined;
1469
- toolCallId?: string | null | undefined;
1731
+ toolCallId?: string | undefined;
1470
1732
  };
1471
1733
 
1472
1734
  /**
@@ -2133,46 +2395,40 @@ export function updatePrompt2FileFromJSON(
2133
2395
  }
2134
2396
 
2135
2397
  /** @internal */
2136
- export const UpdatePrompt23$inboundSchema: z.ZodType<
2137
- UpdatePrompt23,
2138
- z.ZodTypeDef,
2139
- unknown
2140
- > = z.object({
2141
- type: z.literal("file"),
2142
- file: z.lazy(() => UpdatePrompt2File$inboundSchema),
2143
- });
2398
+ export const Two3$inboundSchema: z.ZodType<Two3, z.ZodTypeDef, unknown> = z
2399
+ .object({
2400
+ type: z.literal("file"),
2401
+ file: z.lazy(() => UpdatePrompt2File$inboundSchema),
2402
+ });
2144
2403
  /** @internal */
2145
- export type UpdatePrompt23$Outbound = {
2404
+ export type Two3$Outbound = {
2146
2405
  type: "file";
2147
2406
  file: UpdatePrompt2File$Outbound;
2148
2407
  };
2149
2408
 
2150
2409
  /** @internal */
2151
- export const UpdatePrompt23$outboundSchema: z.ZodType<
2152
- UpdatePrompt23$Outbound,
2153
- z.ZodTypeDef,
2154
- UpdatePrompt23
2155
- > = z.object({
2156
- type: z.literal("file"),
2157
- file: z.lazy(() => UpdatePrompt2File$outboundSchema),
2158
- });
2410
+ export const Two3$outboundSchema: z.ZodType<Two3$Outbound, z.ZodTypeDef, Two3> =
2411
+ z.object({
2412
+ type: z.literal("file"),
2413
+ file: z.lazy(() => UpdatePrompt2File$outboundSchema),
2414
+ });
2159
2415
 
2160
- export function updatePrompt23ToJSON(updatePrompt23: UpdatePrompt23): string {
2161
- return JSON.stringify(UpdatePrompt23$outboundSchema.parse(updatePrompt23));
2416
+ export function two3ToJSON(two3: Two3): string {
2417
+ return JSON.stringify(Two3$outboundSchema.parse(two3));
2162
2418
  }
2163
- export function updatePrompt23FromJSON(
2419
+ export function two3FromJSON(
2164
2420
  jsonString: string,
2165
- ): SafeParseResult<UpdatePrompt23, SDKValidationError> {
2421
+ ): SafeParseResult<Two3, SDKValidationError> {
2166
2422
  return safeParse(
2167
2423
  jsonString,
2168
- (x) => UpdatePrompt23$inboundSchema.parse(JSON.parse(x)),
2169
- `Failed to parse 'UpdatePrompt23' from JSON`,
2424
+ (x) => Two3$inboundSchema.parse(JSON.parse(x)),
2425
+ `Failed to parse 'Two3' from JSON`,
2170
2426
  );
2171
2427
  }
2172
2428
 
2173
2429
  /** @internal */
2174
- export const UpdatePrompt2ImageUrl$inboundSchema: z.ZodType<
2175
- UpdatePrompt2ImageUrl,
2430
+ export const TwoImageUrl$inboundSchema: z.ZodType<
2431
+ TwoImageUrl,
2176
2432
  z.ZodTypeDef,
2177
2433
  unknown
2178
2434
  > = z.object({
@@ -2180,35 +2436,31 @@ export const UpdatePrompt2ImageUrl$inboundSchema: z.ZodType<
2180
2436
  detail: z.string().optional(),
2181
2437
  });
2182
2438
  /** @internal */
2183
- export type UpdatePrompt2ImageUrl$Outbound = {
2439
+ export type TwoImageUrl$Outbound = {
2184
2440
  url: string;
2185
2441
  detail?: string | undefined;
2186
2442
  };
2187
2443
 
2188
2444
  /** @internal */
2189
- export const UpdatePrompt2ImageUrl$outboundSchema: z.ZodType<
2190
- UpdatePrompt2ImageUrl$Outbound,
2445
+ export const TwoImageUrl$outboundSchema: z.ZodType<
2446
+ TwoImageUrl$Outbound,
2191
2447
  z.ZodTypeDef,
2192
- UpdatePrompt2ImageUrl
2448
+ TwoImageUrl
2193
2449
  > = z.object({
2194
2450
  url: z.string(),
2195
2451
  detail: z.string().optional(),
2196
2452
  });
2197
2453
 
2198
- export function updatePrompt2ImageUrlToJSON(
2199
- updatePrompt2ImageUrl: UpdatePrompt2ImageUrl,
2200
- ): string {
2201
- return JSON.stringify(
2202
- UpdatePrompt2ImageUrl$outboundSchema.parse(updatePrompt2ImageUrl),
2203
- );
2454
+ export function twoImageUrlToJSON(twoImageUrl: TwoImageUrl): string {
2455
+ return JSON.stringify(TwoImageUrl$outboundSchema.parse(twoImageUrl));
2204
2456
  }
2205
- export function updatePrompt2ImageUrlFromJSON(
2457
+ export function twoImageUrlFromJSON(
2206
2458
  jsonString: string,
2207
- ): SafeParseResult<UpdatePrompt2ImageUrl, SDKValidationError> {
2459
+ ): SafeParseResult<TwoImageUrl, SDKValidationError> {
2208
2460
  return safeParse(
2209
2461
  jsonString,
2210
- (x) => UpdatePrompt2ImageUrl$inboundSchema.parse(JSON.parse(x)),
2211
- `Failed to parse 'UpdatePrompt2ImageUrl' from JSON`,
2462
+ (x) => TwoImageUrl$inboundSchema.parse(JSON.parse(x)),
2463
+ `Failed to parse 'TwoImageUrl' from JSON`,
2212
2464
  );
2213
2465
  }
2214
2466
 
@@ -2219,7 +2471,7 @@ export const UpdatePrompt22$inboundSchema: z.ZodType<
2219
2471
  unknown
2220
2472
  > = z.object({
2221
2473
  type: z.literal("image_url"),
2222
- image_url: z.lazy(() => UpdatePrompt2ImageUrl$inboundSchema),
2474
+ image_url: z.lazy(() => TwoImageUrl$inboundSchema),
2223
2475
  }).transform((v) => {
2224
2476
  return remap$(v, {
2225
2477
  "image_url": "imageUrl",
@@ -2228,7 +2480,7 @@ export const UpdatePrompt22$inboundSchema: z.ZodType<
2228
2480
  /** @internal */
2229
2481
  export type UpdatePrompt22$Outbound = {
2230
2482
  type: "image_url";
2231
- image_url: UpdatePrompt2ImageUrl$Outbound;
2483
+ image_url: TwoImageUrl$Outbound;
2232
2484
  };
2233
2485
 
2234
2486
  /** @internal */
@@ -2238,7 +2490,7 @@ export const UpdatePrompt22$outboundSchema: z.ZodType<
2238
2490
  UpdatePrompt22
2239
2491
  > = z.object({
2240
2492
  type: z.literal("image_url"),
2241
- imageUrl: z.lazy(() => UpdatePrompt2ImageUrl$outboundSchema),
2493
+ imageUrl: z.lazy(() => TwoImageUrl$outboundSchema),
2242
2494
  }).transform((v) => {
2243
2495
  return remap$(v, {
2244
2496
  imageUrl: "image_url",
@@ -2304,13 +2556,13 @@ export const UpdatePromptContent2$inboundSchema: z.ZodType<
2304
2556
  > = z.union([
2305
2557
  z.lazy(() => UpdatePrompt21$inboundSchema),
2306
2558
  z.lazy(() => UpdatePrompt22$inboundSchema),
2307
- z.lazy(() => UpdatePrompt23$inboundSchema),
2559
+ z.lazy(() => Two3$inboundSchema),
2308
2560
  ]);
2309
2561
  /** @internal */
2310
2562
  export type UpdatePromptContent2$Outbound =
2311
2563
  | UpdatePrompt21$Outbound
2312
2564
  | UpdatePrompt22$Outbound
2313
- | UpdatePrompt23$Outbound;
2565
+ | Two3$Outbound;
2314
2566
 
2315
2567
  /** @internal */
2316
2568
  export const UpdatePromptContent2$outboundSchema: z.ZodType<
@@ -2320,7 +2572,7 @@ export const UpdatePromptContent2$outboundSchema: z.ZodType<
2320
2572
  > = z.union([
2321
2573
  z.lazy(() => UpdatePrompt21$outboundSchema),
2322
2574
  z.lazy(() => UpdatePrompt22$outboundSchema),
2323
- z.lazy(() => UpdatePrompt23$outboundSchema),
2575
+ z.lazy(() => Two3$outboundSchema),
2324
2576
  ]);
2325
2577
 
2326
2578
  export function updatePromptContent2ToJSON(
@@ -2350,15 +2602,13 @@ export const UpdatePromptContent$inboundSchema: z.ZodType<
2350
2602
  z.array(z.union([
2351
2603
  z.lazy(() => UpdatePrompt21$inboundSchema),
2352
2604
  z.lazy(() => UpdatePrompt22$inboundSchema),
2353
- z.lazy(() => UpdatePrompt23$inboundSchema),
2605
+ z.lazy(() => Two3$inboundSchema),
2354
2606
  ])),
2355
2607
  ]);
2356
2608
  /** @internal */
2357
2609
  export type UpdatePromptContent$Outbound =
2358
2610
  | string
2359
- | Array<
2360
- UpdatePrompt21$Outbound | UpdatePrompt22$Outbound | UpdatePrompt23$Outbound
2361
- >;
2611
+ | Array<UpdatePrompt21$Outbound | UpdatePrompt22$Outbound | Two3$Outbound>;
2362
2612
 
2363
2613
  /** @internal */
2364
2614
  export const UpdatePromptContent$outboundSchema: z.ZodType<
@@ -2370,7 +2620,7 @@ export const UpdatePromptContent$outboundSchema: z.ZodType<
2370
2620
  z.array(z.union([
2371
2621
  z.lazy(() => UpdatePrompt21$outboundSchema),
2372
2622
  z.lazy(() => UpdatePrompt22$outboundSchema),
2373
- z.lazy(() => UpdatePrompt23$outboundSchema),
2623
+ z.lazy(() => Two3$outboundSchema),
2374
2624
  ])),
2375
2625
  ]);
2376
2626
 
@@ -2503,13 +2753,13 @@ export const UpdatePromptMessages$inboundSchema: z.ZodType<
2503
2753
  z.array(z.union([
2504
2754
  z.lazy(() => UpdatePrompt21$inboundSchema),
2505
2755
  z.lazy(() => UpdatePrompt22$inboundSchema),
2506
- z.lazy(() => UpdatePrompt23$inboundSchema),
2756
+ z.lazy(() => Two3$inboundSchema),
2507
2757
  ])),
2508
2758
  ]),
2509
2759
  ),
2510
2760
  tool_calls: z.array(z.lazy(() => UpdatePromptToolCalls$inboundSchema))
2511
2761
  .optional(),
2512
- tool_call_id: z.nullable(z.string()).optional(),
2762
+ tool_call_id: z.string().optional(),
2513
2763
  }).transform((v) => {
2514
2764
  return remap$(v, {
2515
2765
  "tool_calls": "toolCalls",
@@ -2521,14 +2771,10 @@ export type UpdatePromptMessages$Outbound = {
2521
2771
  role: string;
2522
2772
  content:
2523
2773
  | string
2524
- | Array<
2525
- | UpdatePrompt21$Outbound
2526
- | UpdatePrompt22$Outbound
2527
- | UpdatePrompt23$Outbound
2528
- >
2774
+ | Array<UpdatePrompt21$Outbound | UpdatePrompt22$Outbound | Two3$Outbound>
2529
2775
  | null;
2530
2776
  tool_calls?: Array<UpdatePromptToolCalls$Outbound> | undefined;
2531
- tool_call_id?: string | null | undefined;
2777
+ tool_call_id?: string | undefined;
2532
2778
  };
2533
2779
 
2534
2780
  /** @internal */
@@ -2544,13 +2790,13 @@ export const UpdatePromptMessages$outboundSchema: z.ZodType<
2544
2790
  z.array(z.union([
2545
2791
  z.lazy(() => UpdatePrompt21$outboundSchema),
2546
2792
  z.lazy(() => UpdatePrompt22$outboundSchema),
2547
- z.lazy(() => UpdatePrompt23$outboundSchema),
2793
+ z.lazy(() => Two3$outboundSchema),
2548
2794
  ])),
2549
2795
  ]),
2550
2796
  ),
2551
2797
  toolCalls: z.array(z.lazy(() => UpdatePromptToolCalls$outboundSchema))
2552
2798
  .optional(),
2553
- toolCallId: z.nullable(z.string()).optional(),
2799
+ toolCallId: z.string().optional(),
2554
2800
  }).transform((v) => {
2555
2801
  return remap$(v, {
2556
2802
  toolCalls: "tool_calls",
@@ -2593,7 +2839,6 @@ export const PromptConfig$inboundSchema: z.ZodType<
2593
2839
  model_parameters: z.lazy(() => UpdatePromptModelParameters$inboundSchema)
2594
2840
  .optional(),
2595
2841
  provider: Provider$inboundSchema.optional(),
2596
- integration_id: z.nullable(z.string()).optional(),
2597
2842
  version: z.string().optional(),
2598
2843
  messages: z.array(z.lazy(() => UpdatePromptMessages$inboundSchema)),
2599
2844
  model_db_id: z.nullable(z.string()).optional(),
@@ -2602,7 +2847,6 @@ export const PromptConfig$inboundSchema: z.ZodType<
2602
2847
  }).transform((v) => {
2603
2848
  return remap$(v, {
2604
2849
  "model_parameters": "modelParameters",
2605
- "integration_id": "integrationId",
2606
2850
  "model_db_id": "modelDbId",
2607
2851
  "model_type": "modelType",
2608
2852
  "is_private": "isPrivate",
@@ -2614,7 +2858,6 @@ export type PromptConfig$Outbound = {
2614
2858
  model?: string | undefined;
2615
2859
  model_parameters?: UpdatePromptModelParameters$Outbound | undefined;
2616
2860
  provider?: string | undefined;
2617
- integration_id?: string | null | undefined;
2618
2861
  version?: string | undefined;
2619
2862
  messages: Array<UpdatePromptMessages$Outbound>;
2620
2863
  model_db_id?: string | null | undefined;
@@ -2633,7 +2876,6 @@ export const PromptConfig$outboundSchema: z.ZodType<
2633
2876
  modelParameters: z.lazy(() => UpdatePromptModelParameters$outboundSchema)
2634
2877
  .optional(),
2635
2878
  provider: Provider$outboundSchema.optional(),
2636
- integrationId: z.nullable(z.string()).optional(),
2637
2879
  version: z.string().optional(),
2638
2880
  messages: z.array(z.lazy(() => UpdatePromptMessages$outboundSchema)),
2639
2881
  modelDbId: z.nullable(z.string()).optional(),
@@ -2642,7 +2884,6 @@ export const PromptConfig$outboundSchema: z.ZodType<
2642
2884
  }).transform((v) => {
2643
2885
  return remap$(v, {
2644
2886
  modelParameters: "model_parameters",
2645
- integrationId: "integration_id",
2646
2887
  modelDbId: "model_db_id",
2647
2888
  modelType: "model_type",
2648
2889
  isPrivate: "is_private",
@@ -2722,56 +2963,214 @@ export function updatePromptMetadataToJSON(
2722
2963
  }
2723
2964
  export function updatePromptMetadataFromJSON(
2724
2965
  jsonString: string,
2725
- ): SafeParseResult<UpdatePromptMetadata, SDKValidationError> {
2966
+ ): SafeParseResult<UpdatePromptMetadata, SDKValidationError> {
2967
+ return safeParse(
2968
+ jsonString,
2969
+ (x) => UpdatePromptMetadata$inboundSchema.parse(JSON.parse(x)),
2970
+ `Failed to parse 'UpdatePromptMetadata' from JSON`,
2971
+ );
2972
+ }
2973
+
2974
+ /** @internal */
2975
+ export const UpdatePrompt2PromptsRequestRequestBodyPromptMessages4Type$inboundSchema:
2976
+ z.ZodNativeEnum<
2977
+ typeof UpdatePrompt2PromptsRequestRequestBodyPromptMessages4Type
2978
+ > = z.nativeEnum(UpdatePrompt2PromptsRequestRequestBodyPromptMessages4Type);
2979
+ /** @internal */
2980
+ export const UpdatePrompt2PromptsRequestRequestBodyPromptMessages4Type$outboundSchema:
2981
+ z.ZodNativeEnum<
2982
+ typeof UpdatePrompt2PromptsRequestRequestBodyPromptMessages4Type
2983
+ > = UpdatePrompt2PromptsRequestRequestBodyPromptMessages4Type$inboundSchema;
2984
+
2985
+ /** @internal */
2986
+ export const UpdatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType$inboundSchema:
2987
+ z.ZodNativeEnum<
2988
+ typeof UpdatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType
2989
+ > = z.nativeEnum(
2990
+ UpdatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType,
2991
+ );
2992
+ /** @internal */
2993
+ export const UpdatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType$outboundSchema:
2994
+ z.ZodNativeEnum<
2995
+ typeof UpdatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType
2996
+ > =
2997
+ UpdatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType$inboundSchema;
2998
+
2999
+ /** @internal */
3000
+ export const UpdatePrompt2PromptsRequestRequestBodyTtl$inboundSchema:
3001
+ z.ZodNativeEnum<typeof UpdatePrompt2PromptsRequestRequestBodyTtl> = z
3002
+ .nativeEnum(UpdatePrompt2PromptsRequestRequestBodyTtl);
3003
+ /** @internal */
3004
+ export const UpdatePrompt2PromptsRequestRequestBodyTtl$outboundSchema:
3005
+ z.ZodNativeEnum<typeof UpdatePrompt2PromptsRequestRequestBodyTtl> =
3006
+ UpdatePrompt2PromptsRequestRequestBodyTtl$inboundSchema;
3007
+
3008
+ /** @internal */
3009
+ export const UpdatePrompt2PromptsRequestRequestBodyCacheControl$inboundSchema:
3010
+ z.ZodType<
3011
+ UpdatePrompt2PromptsRequestRequestBodyCacheControl,
3012
+ z.ZodTypeDef,
3013
+ unknown
3014
+ > = z.object({
3015
+ type:
3016
+ UpdatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType$inboundSchema,
3017
+ ttl: UpdatePrompt2PromptsRequestRequestBodyTtl$inboundSchema.default("5m"),
3018
+ });
3019
+ /** @internal */
3020
+ export type UpdatePrompt2PromptsRequestRequestBodyCacheControl$Outbound = {
3021
+ type: string;
3022
+ ttl: string;
3023
+ };
3024
+
3025
+ /** @internal */
3026
+ export const UpdatePrompt2PromptsRequestRequestBodyCacheControl$outboundSchema:
3027
+ z.ZodType<
3028
+ UpdatePrompt2PromptsRequestRequestBodyCacheControl$Outbound,
3029
+ z.ZodTypeDef,
3030
+ UpdatePrompt2PromptsRequestRequestBodyCacheControl
3031
+ > = z.object({
3032
+ type:
3033
+ UpdatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType$outboundSchema,
3034
+ ttl: UpdatePrompt2PromptsRequestRequestBodyTtl$outboundSchema.default("5m"),
3035
+ });
3036
+
3037
+ export function updatePrompt2PromptsRequestRequestBodyCacheControlToJSON(
3038
+ updatePrompt2PromptsRequestRequestBodyCacheControl:
3039
+ UpdatePrompt2PromptsRequestRequestBodyCacheControl,
3040
+ ): string {
3041
+ return JSON.stringify(
3042
+ UpdatePrompt2PromptsRequestRequestBodyCacheControl$outboundSchema.parse(
3043
+ updatePrompt2PromptsRequestRequestBodyCacheControl,
3044
+ ),
3045
+ );
3046
+ }
3047
+ export function updatePrompt2PromptsRequestRequestBodyCacheControlFromJSON(
3048
+ jsonString: string,
3049
+ ): SafeParseResult<
3050
+ UpdatePrompt2PromptsRequestRequestBodyCacheControl,
3051
+ SDKValidationError
3052
+ > {
3053
+ return safeParse(
3054
+ jsonString,
3055
+ (x) =>
3056
+ UpdatePrompt2PromptsRequestRequestBodyCacheControl$inboundSchema.parse(
3057
+ JSON.parse(x),
3058
+ ),
3059
+ `Failed to parse 'UpdatePrompt2PromptsRequestRequestBodyCacheControl' from JSON`,
3060
+ );
3061
+ }
3062
+
3063
+ /** @internal */
3064
+ export const UpdatePrompt2PromptsRequestRequestBody1$inboundSchema: z.ZodType<
3065
+ UpdatePrompt2PromptsRequestRequestBody1,
3066
+ z.ZodTypeDef,
3067
+ unknown
3068
+ > = z.object({
3069
+ type: UpdatePrompt2PromptsRequestRequestBodyPromptMessages4Type$inboundSchema,
3070
+ text: z.string(),
3071
+ cache_control: z.lazy(() =>
3072
+ UpdatePrompt2PromptsRequestRequestBodyCacheControl$inboundSchema
3073
+ ).optional(),
3074
+ }).transform((v) => {
3075
+ return remap$(v, {
3076
+ "cache_control": "cacheControl",
3077
+ });
3078
+ });
3079
+ /** @internal */
3080
+ export type UpdatePrompt2PromptsRequestRequestBody1$Outbound = {
3081
+ type: string;
3082
+ text: string;
3083
+ cache_control?:
3084
+ | UpdatePrompt2PromptsRequestRequestBodyCacheControl$Outbound
3085
+ | undefined;
3086
+ };
3087
+
3088
+ /** @internal */
3089
+ export const UpdatePrompt2PromptsRequestRequestBody1$outboundSchema: z.ZodType<
3090
+ UpdatePrompt2PromptsRequestRequestBody1$Outbound,
3091
+ z.ZodTypeDef,
3092
+ UpdatePrompt2PromptsRequestRequestBody1
3093
+ > = z.object({
3094
+ type:
3095
+ UpdatePrompt2PromptsRequestRequestBodyPromptMessages4Type$outboundSchema,
3096
+ text: z.string(),
3097
+ cacheControl: z.lazy(() =>
3098
+ UpdatePrompt2PromptsRequestRequestBodyCacheControl$outboundSchema
3099
+ ).optional(),
3100
+ }).transform((v) => {
3101
+ return remap$(v, {
3102
+ cacheControl: "cache_control",
3103
+ });
3104
+ });
3105
+
3106
+ export function updatePrompt2PromptsRequestRequestBody1ToJSON(
3107
+ updatePrompt2PromptsRequestRequestBody1:
3108
+ UpdatePrompt2PromptsRequestRequestBody1,
3109
+ ): string {
3110
+ return JSON.stringify(
3111
+ UpdatePrompt2PromptsRequestRequestBody1$outboundSchema.parse(
3112
+ updatePrompt2PromptsRequestRequestBody1,
3113
+ ),
3114
+ );
3115
+ }
3116
+ export function updatePrompt2PromptsRequestRequestBody1FromJSON(
3117
+ jsonString: string,
3118
+ ): SafeParseResult<
3119
+ UpdatePrompt2PromptsRequestRequestBody1,
3120
+ SDKValidationError
3121
+ > {
2726
3122
  return safeParse(
2727
3123
  jsonString,
2728
- (x) => UpdatePromptMetadata$inboundSchema.parse(JSON.parse(x)),
2729
- `Failed to parse 'UpdatePromptMetadata' from JSON`,
3124
+ (x) =>
3125
+ UpdatePrompt2PromptsRequestRequestBody1$inboundSchema.parse(
3126
+ JSON.parse(x),
3127
+ ),
3128
+ `Failed to parse 'UpdatePrompt2PromptsRequestRequestBody1' from JSON`,
2730
3129
  );
2731
3130
  }
2732
3131
 
2733
3132
  /** @internal */
2734
- export const UpdatePromptContentPromptsRequestRequestBody2$inboundSchema:
3133
+ export const UpdatePromptContentPromptsRequestRequestBodyPrompt2$inboundSchema:
2735
3134
  z.ZodType<
2736
- UpdatePromptContentPromptsRequestRequestBody2,
3135
+ UpdatePromptContentPromptsRequestRequestBodyPrompt2,
2737
3136
  z.ZodTypeDef,
2738
3137
  unknown
2739
- > = components.TextContentPartSchema$inboundSchema;
3138
+ > = z.lazy(() => UpdatePrompt2PromptsRequestRequestBody1$inboundSchema);
2740
3139
  /** @internal */
2741
- export type UpdatePromptContentPromptsRequestRequestBody2$Outbound =
2742
- components.TextContentPartSchema$Outbound;
3140
+ export type UpdatePromptContentPromptsRequestRequestBodyPrompt2$Outbound =
3141
+ UpdatePrompt2PromptsRequestRequestBody1$Outbound;
2743
3142
 
2744
3143
  /** @internal */
2745
- export const UpdatePromptContentPromptsRequestRequestBody2$outboundSchema:
3144
+ export const UpdatePromptContentPromptsRequestRequestBodyPrompt2$outboundSchema:
2746
3145
  z.ZodType<
2747
- UpdatePromptContentPromptsRequestRequestBody2$Outbound,
3146
+ UpdatePromptContentPromptsRequestRequestBodyPrompt2$Outbound,
2748
3147
  z.ZodTypeDef,
2749
- UpdatePromptContentPromptsRequestRequestBody2
2750
- > = components.TextContentPartSchema$outboundSchema;
3148
+ UpdatePromptContentPromptsRequestRequestBodyPrompt2
3149
+ > = z.lazy(() => UpdatePrompt2PromptsRequestRequestBody1$outboundSchema);
2751
3150
 
2752
- export function updatePromptContentPromptsRequestRequestBody2ToJSON(
2753
- updatePromptContentPromptsRequestRequestBody2:
2754
- UpdatePromptContentPromptsRequestRequestBody2,
3151
+ export function updatePromptContentPromptsRequestRequestBodyPrompt2ToJSON(
3152
+ updatePromptContentPromptsRequestRequestBodyPrompt2:
3153
+ UpdatePromptContentPromptsRequestRequestBodyPrompt2,
2755
3154
  ): string {
2756
3155
  return JSON.stringify(
2757
- UpdatePromptContentPromptsRequestRequestBody2$outboundSchema.parse(
2758
- updatePromptContentPromptsRequestRequestBody2,
3156
+ UpdatePromptContentPromptsRequestRequestBodyPrompt2$outboundSchema.parse(
3157
+ updatePromptContentPromptsRequestRequestBodyPrompt2,
2759
3158
  ),
2760
3159
  );
2761
3160
  }
2762
- export function updatePromptContentPromptsRequestRequestBody2FromJSON(
3161
+ export function updatePromptContentPromptsRequestRequestBodyPrompt2FromJSON(
2763
3162
  jsonString: string,
2764
3163
  ): SafeParseResult<
2765
- UpdatePromptContentPromptsRequestRequestBody2,
3164
+ UpdatePromptContentPromptsRequestRequestBodyPrompt2,
2766
3165
  SDKValidationError
2767
3166
  > {
2768
3167
  return safeParse(
2769
3168
  jsonString,
2770
3169
  (x) =>
2771
- UpdatePromptContentPromptsRequestRequestBody2$inboundSchema.parse(
3170
+ UpdatePromptContentPromptsRequestRequestBodyPrompt2$inboundSchema.parse(
2772
3171
  JSON.parse(x),
2773
3172
  ),
2774
- `Failed to parse 'UpdatePromptContentPromptsRequestRequestBody2' from JSON`,
3173
+ `Failed to parse 'UpdatePromptContentPromptsRequestRequestBodyPrompt2' from JSON`,
2775
3174
  );
2776
3175
  }
2777
3176
 
@@ -2783,12 +3182,14 @@ export const UpdatePromptMessagesPromptsRequestRequestBodyContent$inboundSchema:
2783
3182
  unknown
2784
3183
  > = z.union([
2785
3184
  z.string(),
2786
- z.array(components.TextContentPartSchema$inboundSchema),
3185
+ z.array(
3186
+ z.lazy(() => UpdatePrompt2PromptsRequestRequestBody1$inboundSchema),
3187
+ ),
2787
3188
  ]);
2788
3189
  /** @internal */
2789
3190
  export type UpdatePromptMessagesPromptsRequestRequestBodyContent$Outbound =
2790
3191
  | string
2791
- | Array<components.TextContentPartSchema$Outbound>;
3192
+ | Array<UpdatePrompt2PromptsRequestRequestBody1$Outbound>;
2792
3193
 
2793
3194
  /** @internal */
2794
3195
  export const UpdatePromptMessagesPromptsRequestRequestBodyContent$outboundSchema:
@@ -2798,7 +3199,9 @@ export const UpdatePromptMessagesPromptsRequestRequestBodyContent$outboundSchema
2798
3199
  UpdatePromptMessagesPromptsRequestRequestBodyContent
2799
3200
  > = z.union([
2800
3201
  z.string(),
2801
- z.array(components.TextContentPartSchema$outboundSchema),
3202
+ z.array(
3203
+ z.lazy(() => UpdatePrompt2PromptsRequestRequestBody1$outboundSchema),
3204
+ ),
2802
3205
  ]);
2803
3206
 
2804
3207
  export function updatePromptMessagesPromptsRequestRequestBodyContentToJSON(
@@ -2898,7 +3301,9 @@ export const UpdatePromptMessagesToolMessage$inboundSchema: z.ZodType<
2898
3301
  role: z.literal("tool"),
2899
3302
  content: z.union([
2900
3303
  z.string(),
2901
- z.array(components.TextContentPartSchema$inboundSchema),
3304
+ z.array(
3305
+ z.lazy(() => UpdatePrompt2PromptsRequestRequestBody1$inboundSchema),
3306
+ ),
2902
3307
  ]),
2903
3308
  tool_call_id: z.string(),
2904
3309
  cache_control: z.lazy(() => UpdatePromptMessagesCacheControl$inboundSchema)
@@ -2912,7 +3317,7 @@ export const UpdatePromptMessagesToolMessage$inboundSchema: z.ZodType<
2912
3317
  /** @internal */
2913
3318
  export type UpdatePromptMessagesToolMessage$Outbound = {
2914
3319
  role: "tool";
2915
- content: string | Array<components.TextContentPartSchema$Outbound>;
3320
+ content: string | Array<UpdatePrompt2PromptsRequestRequestBody1$Outbound>;
2916
3321
  tool_call_id: string;
2917
3322
  cache_control?: UpdatePromptMessagesCacheControl$Outbound | undefined;
2918
3323
  };
@@ -2926,7 +3331,9 @@ export const UpdatePromptMessagesToolMessage$outboundSchema: z.ZodType<
2926
3331
  role: z.literal("tool"),
2927
3332
  content: z.union([
2928
3333
  z.string(),
2929
- z.array(components.TextContentPartSchema$outboundSchema),
3334
+ z.array(
3335
+ z.lazy(() => UpdatePrompt2PromptsRequestRequestBody1$outboundSchema),
3336
+ ),
2930
3337
  ]),
2931
3338
  toolCallId: z.string(),
2932
3339
  cacheControl: z.lazy(() => UpdatePromptMessagesCacheControl$outboundSchema)
@@ -2958,56 +3365,195 @@ export function updatePromptMessagesToolMessageFromJSON(
2958
3365
  }
2959
3366
 
2960
3367
  /** @internal */
2961
- export const UpdatePromptContentPromptsRequest2$inboundSchema: z.ZodType<
2962
- UpdatePromptContentPromptsRequest2,
3368
+ export const UpdatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType$inboundSchema:
3369
+ z.ZodNativeEnum<
3370
+ typeof UpdatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType
3371
+ > = z.nativeEnum(
3372
+ UpdatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType,
3373
+ );
3374
+ /** @internal */
3375
+ export const UpdatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType$outboundSchema:
3376
+ z.ZodNativeEnum<
3377
+ typeof UpdatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType
3378
+ > =
3379
+ UpdatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType$inboundSchema;
3380
+
3381
+ /** @internal */
3382
+ export const UpdatePrompt2PromptsRequestTtl$inboundSchema: z.ZodNativeEnum<
3383
+ typeof UpdatePrompt2PromptsRequestTtl
3384
+ > = z.nativeEnum(UpdatePrompt2PromptsRequestTtl);
3385
+ /** @internal */
3386
+ export const UpdatePrompt2PromptsRequestTtl$outboundSchema: z.ZodNativeEnum<
3387
+ typeof UpdatePrompt2PromptsRequestTtl
3388
+ > = UpdatePrompt2PromptsRequestTtl$inboundSchema;
3389
+
3390
+ /** @internal */
3391
+ export const UpdatePrompt2PromptsRequestCacheControl$inboundSchema: z.ZodType<
3392
+ UpdatePrompt2PromptsRequestCacheControl,
2963
3393
  z.ZodTypeDef,
2964
3394
  unknown
2965
- > = z.union([
2966
- components.TextContentPartSchema$inboundSchema.and(
2967
- z.object({ type: z.literal("text") }),
2968
- ),
2969
- components.RefusalPartSchema$inboundSchema,
2970
- components.ReasoningPartSchema$inboundSchema,
2971
- components.RedactedReasoningPartSchema$inboundSchema,
2972
- ]);
3395
+ > = z.object({
3396
+ type:
3397
+ UpdatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType$inboundSchema,
3398
+ ttl: UpdatePrompt2PromptsRequestTtl$inboundSchema.default("5m"),
3399
+ });
2973
3400
  /** @internal */
2974
- export type UpdatePromptContentPromptsRequest2$Outbound =
2975
- | (components.TextContentPartSchema$Outbound & { type: "text" })
3401
+ export type UpdatePrompt2PromptsRequestCacheControl$Outbound = {
3402
+ type: string;
3403
+ ttl: string;
3404
+ };
3405
+
3406
+ /** @internal */
3407
+ export const UpdatePrompt2PromptsRequestCacheControl$outboundSchema: z.ZodType<
3408
+ UpdatePrompt2PromptsRequestCacheControl$Outbound,
3409
+ z.ZodTypeDef,
3410
+ UpdatePrompt2PromptsRequestCacheControl
3411
+ > = z.object({
3412
+ type:
3413
+ UpdatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType$outboundSchema,
3414
+ ttl: UpdatePrompt2PromptsRequestTtl$outboundSchema.default("5m"),
3415
+ });
3416
+
3417
+ export function updatePrompt2PromptsRequestCacheControlToJSON(
3418
+ updatePrompt2PromptsRequestCacheControl:
3419
+ UpdatePrompt2PromptsRequestCacheControl,
3420
+ ): string {
3421
+ return JSON.stringify(
3422
+ UpdatePrompt2PromptsRequestCacheControl$outboundSchema.parse(
3423
+ updatePrompt2PromptsRequestCacheControl,
3424
+ ),
3425
+ );
3426
+ }
3427
+ export function updatePrompt2PromptsRequestCacheControlFromJSON(
3428
+ jsonString: string,
3429
+ ): SafeParseResult<
3430
+ UpdatePrompt2PromptsRequestCacheControl,
3431
+ SDKValidationError
3432
+ > {
3433
+ return safeParse(
3434
+ jsonString,
3435
+ (x) =>
3436
+ UpdatePrompt2PromptsRequestCacheControl$inboundSchema.parse(
3437
+ JSON.parse(x),
3438
+ ),
3439
+ `Failed to parse 'UpdatePrompt2PromptsRequestCacheControl' from JSON`,
3440
+ );
3441
+ }
3442
+
3443
+ /** @internal */
3444
+ export const UpdatePrompt2PromptsRequest1$inboundSchema: z.ZodType<
3445
+ UpdatePrompt2PromptsRequest1,
3446
+ z.ZodTypeDef,
3447
+ unknown
3448
+ > = z.object({
3449
+ type: z.literal("text"),
3450
+ text: z.string(),
3451
+ cache_control: z.lazy(() =>
3452
+ UpdatePrompt2PromptsRequestCacheControl$inboundSchema
3453
+ ).optional(),
3454
+ }).transform((v) => {
3455
+ return remap$(v, {
3456
+ "cache_control": "cacheControl",
3457
+ });
3458
+ });
3459
+ /** @internal */
3460
+ export type UpdatePrompt2PromptsRequest1$Outbound = {
3461
+ type: "text";
3462
+ text: string;
3463
+ cache_control?: UpdatePrompt2PromptsRequestCacheControl$Outbound | undefined;
3464
+ };
3465
+
3466
+ /** @internal */
3467
+ export const UpdatePrompt2PromptsRequest1$outboundSchema: z.ZodType<
3468
+ UpdatePrompt2PromptsRequest1$Outbound,
3469
+ z.ZodTypeDef,
3470
+ UpdatePrompt2PromptsRequest1
3471
+ > = z.object({
3472
+ type: z.literal("text"),
3473
+ text: z.string(),
3474
+ cacheControl: z.lazy(() =>
3475
+ UpdatePrompt2PromptsRequestCacheControl$outboundSchema
3476
+ ).optional(),
3477
+ }).transform((v) => {
3478
+ return remap$(v, {
3479
+ cacheControl: "cache_control",
3480
+ });
3481
+ });
3482
+
3483
+ export function updatePrompt2PromptsRequest1ToJSON(
3484
+ updatePrompt2PromptsRequest1: UpdatePrompt2PromptsRequest1,
3485
+ ): string {
3486
+ return JSON.stringify(
3487
+ UpdatePrompt2PromptsRequest1$outboundSchema.parse(
3488
+ updatePrompt2PromptsRequest1,
3489
+ ),
3490
+ );
3491
+ }
3492
+ export function updatePrompt2PromptsRequest1FromJSON(
3493
+ jsonString: string,
3494
+ ): SafeParseResult<UpdatePrompt2PromptsRequest1, SDKValidationError> {
3495
+ return safeParse(
3496
+ jsonString,
3497
+ (x) => UpdatePrompt2PromptsRequest1$inboundSchema.parse(JSON.parse(x)),
3498
+ `Failed to parse 'UpdatePrompt2PromptsRequest1' from JSON`,
3499
+ );
3500
+ }
3501
+
3502
+ /** @internal */
3503
+ export const UpdatePromptContentPromptsRequestRequestBody2$inboundSchema:
3504
+ z.ZodType<
3505
+ UpdatePromptContentPromptsRequestRequestBody2,
3506
+ z.ZodTypeDef,
3507
+ unknown
3508
+ > = z.union([
3509
+ z.lazy(() => UpdatePrompt2PromptsRequest1$inboundSchema),
3510
+ components.RefusalPartSchema$inboundSchema,
3511
+ components.ReasoningPartSchema$inboundSchema,
3512
+ components.RedactedReasoningPartSchema$inboundSchema,
3513
+ ]);
3514
+ /** @internal */
3515
+ export type UpdatePromptContentPromptsRequestRequestBody2$Outbound =
3516
+ | UpdatePrompt2PromptsRequest1$Outbound
2976
3517
  | components.RefusalPartSchema$Outbound
2977
3518
  | components.ReasoningPartSchema$Outbound
2978
3519
  | components.RedactedReasoningPartSchema$Outbound;
2979
3520
 
2980
3521
  /** @internal */
2981
- export const UpdatePromptContentPromptsRequest2$outboundSchema: z.ZodType<
2982
- UpdatePromptContentPromptsRequest2$Outbound,
2983
- z.ZodTypeDef,
2984
- UpdatePromptContentPromptsRequest2
2985
- > = z.union([
2986
- components.TextContentPartSchema$outboundSchema.and(
2987
- z.object({ type: z.literal("text") }),
2988
- ),
2989
- components.RefusalPartSchema$outboundSchema,
2990
- components.ReasoningPartSchema$outboundSchema,
2991
- components.RedactedReasoningPartSchema$outboundSchema,
2992
- ]);
3522
+ export const UpdatePromptContentPromptsRequestRequestBody2$outboundSchema:
3523
+ z.ZodType<
3524
+ UpdatePromptContentPromptsRequestRequestBody2$Outbound,
3525
+ z.ZodTypeDef,
3526
+ UpdatePromptContentPromptsRequestRequestBody2
3527
+ > = z.union([
3528
+ z.lazy(() => UpdatePrompt2PromptsRequest1$outboundSchema),
3529
+ components.RefusalPartSchema$outboundSchema,
3530
+ components.ReasoningPartSchema$outboundSchema,
3531
+ components.RedactedReasoningPartSchema$outboundSchema,
3532
+ ]);
2993
3533
 
2994
- export function updatePromptContentPromptsRequest2ToJSON(
2995
- updatePromptContentPromptsRequest2: UpdatePromptContentPromptsRequest2,
3534
+ export function updatePromptContentPromptsRequestRequestBody2ToJSON(
3535
+ updatePromptContentPromptsRequestRequestBody2:
3536
+ UpdatePromptContentPromptsRequestRequestBody2,
2996
3537
  ): string {
2997
3538
  return JSON.stringify(
2998
- UpdatePromptContentPromptsRequest2$outboundSchema.parse(
2999
- updatePromptContentPromptsRequest2,
3539
+ UpdatePromptContentPromptsRequestRequestBody2$outboundSchema.parse(
3540
+ updatePromptContentPromptsRequestRequestBody2,
3000
3541
  ),
3001
3542
  );
3002
3543
  }
3003
- export function updatePromptContentPromptsRequest2FromJSON(
3544
+ export function updatePromptContentPromptsRequestRequestBody2FromJSON(
3004
3545
  jsonString: string,
3005
- ): SafeParseResult<UpdatePromptContentPromptsRequest2, SDKValidationError> {
3546
+ ): SafeParseResult<
3547
+ UpdatePromptContentPromptsRequestRequestBody2,
3548
+ SDKValidationError
3549
+ > {
3006
3550
  return safeParse(
3007
3551
  jsonString,
3008
3552
  (x) =>
3009
- UpdatePromptContentPromptsRequest2$inboundSchema.parse(JSON.parse(x)),
3010
- `Failed to parse 'UpdatePromptContentPromptsRequest2' from JSON`,
3553
+ UpdatePromptContentPromptsRequestRequestBody2$inboundSchema.parse(
3554
+ JSON.parse(x),
3555
+ ),
3556
+ `Failed to parse 'UpdatePromptContentPromptsRequestRequestBody2' from JSON`,
3011
3557
  );
3012
3558
  }
3013
3559
 
@@ -3018,22 +3564,18 @@ export const UpdatePromptMessagesPromptsRequestContent$inboundSchema: z.ZodType<
3018
3564
  unknown
3019
3565
  > = z.union([
3020
3566
  z.string(),
3021
- z.array(
3022
- z.union([
3023
- components.TextContentPartSchema$inboundSchema.and(
3024
- z.object({ type: z.literal("text") }),
3025
- ),
3026
- components.RefusalPartSchema$inboundSchema,
3027
- components.ReasoningPartSchema$inboundSchema,
3028
- components.RedactedReasoningPartSchema$inboundSchema,
3029
- ]),
3030
- ),
3567
+ z.array(z.union([
3568
+ z.lazy(() => UpdatePrompt2PromptsRequest1$inboundSchema),
3569
+ components.RefusalPartSchema$inboundSchema,
3570
+ components.ReasoningPartSchema$inboundSchema,
3571
+ components.RedactedReasoningPartSchema$inboundSchema,
3572
+ ])),
3031
3573
  ]);
3032
3574
  /** @internal */
3033
3575
  export type UpdatePromptMessagesPromptsRequestContent$Outbound =
3034
3576
  | string
3035
3577
  | Array<
3036
- | (components.TextContentPartSchema$Outbound & { type: "text" })
3578
+ | UpdatePrompt2PromptsRequest1$Outbound
3037
3579
  | components.RefusalPartSchema$Outbound
3038
3580
  | components.ReasoningPartSchema$Outbound
3039
3581
  | components.RedactedReasoningPartSchema$Outbound
@@ -3047,16 +3589,12 @@ export const UpdatePromptMessagesPromptsRequestContent$outboundSchema:
3047
3589
  UpdatePromptMessagesPromptsRequestContent
3048
3590
  > = z.union([
3049
3591
  z.string(),
3050
- z.array(
3051
- z.union([
3052
- components.TextContentPartSchema$outboundSchema.and(
3053
- z.object({ type: z.literal("text") }),
3054
- ),
3055
- components.RefusalPartSchema$outboundSchema,
3056
- components.ReasoningPartSchema$outboundSchema,
3057
- components.RedactedReasoningPartSchema$outboundSchema,
3058
- ]),
3059
- ),
3592
+ z.array(z.union([
3593
+ z.lazy(() => UpdatePrompt2PromptsRequest1$outboundSchema),
3594
+ components.RefusalPartSchema$outboundSchema,
3595
+ components.ReasoningPartSchema$outboundSchema,
3596
+ components.RedactedReasoningPartSchema$outboundSchema,
3597
+ ])),
3060
3598
  ]);
3061
3599
 
3062
3600
  export function updatePromptMessagesPromptsRequestContentToJSON(
@@ -3246,9 +3784,7 @@ export const UpdatePromptMessagesAssistantMessage$inboundSchema: z.ZodType<
3246
3784
  z.string(),
3247
3785
  z.array(
3248
3786
  z.union([
3249
- components.TextContentPartSchema$inboundSchema.and(
3250
- z.object({ type: z.literal("text") }),
3251
- ),
3787
+ z.lazy(() => UpdatePrompt2PromptsRequest1$inboundSchema),
3252
3788
  components.RefusalPartSchema$inboundSchema,
3253
3789
  components.ReasoningPartSchema$inboundSchema,
3254
3790
  components.RedactedReasoningPartSchema$inboundSchema,
@@ -3273,7 +3809,7 @@ export type UpdatePromptMessagesAssistantMessage$Outbound = {
3273
3809
  content?:
3274
3810
  | string
3275
3811
  | Array<
3276
- | (components.TextContentPartSchema$Outbound & { type: "text" })
3812
+ | UpdatePrompt2PromptsRequest1$Outbound
3277
3813
  | components.RefusalPartSchema$Outbound
3278
3814
  | components.ReasoningPartSchema$Outbound
3279
3815
  | components.RedactedReasoningPartSchema$Outbound
@@ -3298,9 +3834,7 @@ export const UpdatePromptMessagesAssistantMessage$outboundSchema: z.ZodType<
3298
3834
  z.string(),
3299
3835
  z.array(
3300
3836
  z.union([
3301
- components.TextContentPartSchema$outboundSchema.and(
3302
- z.object({ type: z.literal("text") }),
3303
- ),
3837
+ z.lazy(() => UpdatePrompt2PromptsRequest1$outboundSchema),
3304
3838
  components.RefusalPartSchema$outboundSchema,
3305
3839
  components.ReasoningPartSchema$outboundSchema,
3306
3840
  components.RedactedReasoningPartSchema$outboundSchema,
@@ -3335,9 +3869,125 @@ export function updatePromptMessagesAssistantMessageFromJSON(
3335
3869
  ): SafeParseResult<UpdatePromptMessagesAssistantMessage, SDKValidationError> {
3336
3870
  return safeParse(
3337
3871
  jsonString,
3338
- (x) =>
3339
- UpdatePromptMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)),
3340
- `Failed to parse 'UpdatePromptMessagesAssistantMessage' from JSON`,
3872
+ (x) =>
3873
+ UpdatePromptMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)),
3874
+ `Failed to parse 'UpdatePromptMessagesAssistantMessage' from JSON`,
3875
+ );
3876
+ }
3877
+
3878
+ /** @internal */
3879
+ export const UpdatePrompt2PromptsRequestRequestBodyPromptMessages2Type$inboundSchema:
3880
+ z.ZodNativeEnum<
3881
+ typeof UpdatePrompt2PromptsRequestRequestBodyPromptMessages2Type
3882
+ > = z.nativeEnum(UpdatePrompt2PromptsRequestRequestBodyPromptMessages2Type);
3883
+ /** @internal */
3884
+ export const UpdatePrompt2PromptsRequestRequestBodyPromptMessages2Type$outboundSchema:
3885
+ z.ZodNativeEnum<
3886
+ typeof UpdatePrompt2PromptsRequestRequestBodyPromptMessages2Type
3887
+ > = UpdatePrompt2PromptsRequestRequestBodyPromptMessages2Type$inboundSchema;
3888
+
3889
+ /** @internal */
3890
+ export const UpdatePrompt2PromptsTtl$inboundSchema: z.ZodNativeEnum<
3891
+ typeof UpdatePrompt2PromptsTtl
3892
+ > = z.nativeEnum(UpdatePrompt2PromptsTtl);
3893
+ /** @internal */
3894
+ export const UpdatePrompt2PromptsTtl$outboundSchema: z.ZodNativeEnum<
3895
+ typeof UpdatePrompt2PromptsTtl
3896
+ > = UpdatePrompt2PromptsTtl$inboundSchema;
3897
+
3898
+ /** @internal */
3899
+ export const UpdatePrompt2PromptsCacheControl$inboundSchema: z.ZodType<
3900
+ UpdatePrompt2PromptsCacheControl,
3901
+ z.ZodTypeDef,
3902
+ unknown
3903
+ > = z.object({
3904
+ type: UpdatePrompt2PromptsRequestRequestBodyPromptMessages2Type$inboundSchema,
3905
+ ttl: UpdatePrompt2PromptsTtl$inboundSchema.default("5m"),
3906
+ });
3907
+ /** @internal */
3908
+ export type UpdatePrompt2PromptsCacheControl$Outbound = {
3909
+ type: string;
3910
+ ttl: string;
3911
+ };
3912
+
3913
+ /** @internal */
3914
+ export const UpdatePrompt2PromptsCacheControl$outboundSchema: z.ZodType<
3915
+ UpdatePrompt2PromptsCacheControl$Outbound,
3916
+ z.ZodTypeDef,
3917
+ UpdatePrompt2PromptsCacheControl
3918
+ > = z.object({
3919
+ type:
3920
+ UpdatePrompt2PromptsRequestRequestBodyPromptMessages2Type$outboundSchema,
3921
+ ttl: UpdatePrompt2PromptsTtl$outboundSchema.default("5m"),
3922
+ });
3923
+
3924
+ export function updatePrompt2PromptsCacheControlToJSON(
3925
+ updatePrompt2PromptsCacheControl: UpdatePrompt2PromptsCacheControl,
3926
+ ): string {
3927
+ return JSON.stringify(
3928
+ UpdatePrompt2PromptsCacheControl$outboundSchema.parse(
3929
+ updatePrompt2PromptsCacheControl,
3930
+ ),
3931
+ );
3932
+ }
3933
+ export function updatePrompt2PromptsCacheControlFromJSON(
3934
+ jsonString: string,
3935
+ ): SafeParseResult<UpdatePrompt2PromptsCacheControl, SDKValidationError> {
3936
+ return safeParse(
3937
+ jsonString,
3938
+ (x) => UpdatePrompt2PromptsCacheControl$inboundSchema.parse(JSON.parse(x)),
3939
+ `Failed to parse 'UpdatePrompt2PromptsCacheControl' from JSON`,
3940
+ );
3941
+ }
3942
+
3943
+ /** @internal */
3944
+ export const UpdatePrompt24$inboundSchema: z.ZodType<
3945
+ UpdatePrompt24,
3946
+ z.ZodTypeDef,
3947
+ unknown
3948
+ > = z.object({
3949
+ type: z.literal("file"),
3950
+ cache_control: z.lazy(() => UpdatePrompt2PromptsCacheControl$inboundSchema)
3951
+ .optional(),
3952
+ file: components.FileContentPartSchema$inboundSchema,
3953
+ }).transform((v) => {
3954
+ return remap$(v, {
3955
+ "cache_control": "cacheControl",
3956
+ });
3957
+ });
3958
+ /** @internal */
3959
+ export type UpdatePrompt24$Outbound = {
3960
+ type: "file";
3961
+ cache_control?: UpdatePrompt2PromptsCacheControl$Outbound | undefined;
3962
+ file: components.FileContentPartSchema$Outbound;
3963
+ };
3964
+
3965
+ /** @internal */
3966
+ export const UpdatePrompt24$outboundSchema: z.ZodType<
3967
+ UpdatePrompt24$Outbound,
3968
+ z.ZodTypeDef,
3969
+ UpdatePrompt24
3970
+ > = z.object({
3971
+ type: z.literal("file"),
3972
+ cacheControl: z.lazy(() => UpdatePrompt2PromptsCacheControl$outboundSchema)
3973
+ .optional(),
3974
+ file: components.FileContentPartSchema$outboundSchema,
3975
+ }).transform((v) => {
3976
+ return remap$(v, {
3977
+ cacheControl: "cache_control",
3978
+ });
3979
+ });
3980
+
3981
+ export function updatePrompt24ToJSON(updatePrompt24: UpdatePrompt24): string {
3982
+ return JSON.stringify(UpdatePrompt24$outboundSchema.parse(updatePrompt24));
3983
+ }
3984
+ export function updatePrompt24FromJSON(
3985
+ jsonString: string,
3986
+ ): SafeParseResult<UpdatePrompt24, SDKValidationError> {
3987
+ return safeParse(
3988
+ jsonString,
3989
+ (x) => UpdatePrompt24$inboundSchema.parse(JSON.parse(x)),
3990
+ `Failed to parse 'UpdatePrompt24' from JSON`,
3341
3991
  );
3342
3992
  }
3343
3993
 
@@ -3402,106 +4052,107 @@ export function updatePrompt2CacheControlFromJSON(
3402
4052
  }
3403
4053
 
3404
4054
  /** @internal */
3405
- export const UpdatePrompt24$inboundSchema: z.ZodType<
3406
- UpdatePrompt24,
4055
+ export const UpdatePrompt2Prompts1$inboundSchema: z.ZodType<
4056
+ UpdatePrompt2Prompts1,
3407
4057
  z.ZodTypeDef,
3408
4058
  unknown
3409
4059
  > = z.object({
3410
- type: z.literal("file"),
4060
+ type: z.literal("text"),
4061
+ text: z.string(),
3411
4062
  cache_control: z.lazy(() => UpdatePrompt2CacheControl$inboundSchema)
3412
4063
  .optional(),
3413
- file: components.FileContentPartSchema$inboundSchema,
3414
4064
  }).transform((v) => {
3415
4065
  return remap$(v, {
3416
4066
  "cache_control": "cacheControl",
3417
4067
  });
3418
4068
  });
3419
4069
  /** @internal */
3420
- export type UpdatePrompt24$Outbound = {
3421
- type: "file";
4070
+ export type UpdatePrompt2Prompts1$Outbound = {
4071
+ type: "text";
4072
+ text: string;
3422
4073
  cache_control?: UpdatePrompt2CacheControl$Outbound | undefined;
3423
- file: components.FileContentPartSchema$Outbound;
3424
4074
  };
3425
4075
 
3426
4076
  /** @internal */
3427
- export const UpdatePrompt24$outboundSchema: z.ZodType<
3428
- UpdatePrompt24$Outbound,
4077
+ export const UpdatePrompt2Prompts1$outboundSchema: z.ZodType<
4078
+ UpdatePrompt2Prompts1$Outbound,
3429
4079
  z.ZodTypeDef,
3430
- UpdatePrompt24
4080
+ UpdatePrompt2Prompts1
3431
4081
  > = z.object({
3432
- type: z.literal("file"),
4082
+ type: z.literal("text"),
4083
+ text: z.string(),
3433
4084
  cacheControl: z.lazy(() => UpdatePrompt2CacheControl$outboundSchema)
3434
4085
  .optional(),
3435
- file: components.FileContentPartSchema$outboundSchema,
3436
4086
  }).transform((v) => {
3437
4087
  return remap$(v, {
3438
4088
  cacheControl: "cache_control",
3439
4089
  });
3440
4090
  });
3441
4091
 
3442
- export function updatePrompt24ToJSON(updatePrompt24: UpdatePrompt24): string {
3443
- return JSON.stringify(UpdatePrompt24$outboundSchema.parse(updatePrompt24));
4092
+ export function updatePrompt2Prompts1ToJSON(
4093
+ updatePrompt2Prompts1: UpdatePrompt2Prompts1,
4094
+ ): string {
4095
+ return JSON.stringify(
4096
+ UpdatePrompt2Prompts1$outboundSchema.parse(updatePrompt2Prompts1),
4097
+ );
3444
4098
  }
3445
- export function updatePrompt24FromJSON(
4099
+ export function updatePrompt2Prompts1FromJSON(
3446
4100
  jsonString: string,
3447
- ): SafeParseResult<UpdatePrompt24, SDKValidationError> {
4101
+ ): SafeParseResult<UpdatePrompt2Prompts1, SDKValidationError> {
3448
4102
  return safeParse(
3449
4103
  jsonString,
3450
- (x) => UpdatePrompt24$inboundSchema.parse(JSON.parse(x)),
3451
- `Failed to parse 'UpdatePrompt24' from JSON`,
4104
+ (x) => UpdatePrompt2Prompts1$inboundSchema.parse(JSON.parse(x)),
4105
+ `Failed to parse 'UpdatePrompt2Prompts1' from JSON`,
3452
4106
  );
3453
4107
  }
3454
4108
 
3455
4109
  /** @internal */
3456
- export const UpdatePromptContentPrompts2$inboundSchema: z.ZodType<
3457
- UpdatePromptContentPrompts2,
4110
+ export const UpdatePromptContentPromptsRequest2$inboundSchema: z.ZodType<
4111
+ UpdatePromptContentPromptsRequest2,
3458
4112
  z.ZodTypeDef,
3459
4113
  unknown
3460
4114
  > = z.union([
3461
- components.TextContentPartSchema$inboundSchema.and(
3462
- z.object({ type: z.literal("text") }),
3463
- ),
4115
+ z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
3464
4116
  components.ImageContentPartSchema$inboundSchema,
3465
4117
  components.AudioContentPartSchema$inboundSchema,
3466
4118
  z.lazy(() => UpdatePrompt24$inboundSchema),
3467
4119
  ]);
3468
4120
  /** @internal */
3469
- export type UpdatePromptContentPrompts2$Outbound =
3470
- | (components.TextContentPartSchema$Outbound & { type: "text" })
4121
+ export type UpdatePromptContentPromptsRequest2$Outbound =
4122
+ | UpdatePrompt2Prompts1$Outbound
3471
4123
  | components.ImageContentPartSchema$Outbound
3472
4124
  | components.AudioContentPartSchema$Outbound
3473
4125
  | UpdatePrompt24$Outbound;
3474
4126
 
3475
4127
  /** @internal */
3476
- export const UpdatePromptContentPrompts2$outboundSchema: z.ZodType<
3477
- UpdatePromptContentPrompts2$Outbound,
4128
+ export const UpdatePromptContentPromptsRequest2$outboundSchema: z.ZodType<
4129
+ UpdatePromptContentPromptsRequest2$Outbound,
3478
4130
  z.ZodTypeDef,
3479
- UpdatePromptContentPrompts2
4131
+ UpdatePromptContentPromptsRequest2
3480
4132
  > = z.union([
3481
- components.TextContentPartSchema$outboundSchema.and(
3482
- z.object({ type: z.literal("text") }),
3483
- ),
4133
+ z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
3484
4134
  components.ImageContentPartSchema$outboundSchema,
3485
4135
  components.AudioContentPartSchema$outboundSchema,
3486
4136
  z.lazy(() => UpdatePrompt24$outboundSchema),
3487
4137
  ]);
3488
4138
 
3489
- export function updatePromptContentPrompts2ToJSON(
3490
- updatePromptContentPrompts2: UpdatePromptContentPrompts2,
4139
+ export function updatePromptContentPromptsRequest2ToJSON(
4140
+ updatePromptContentPromptsRequest2: UpdatePromptContentPromptsRequest2,
3491
4141
  ): string {
3492
4142
  return JSON.stringify(
3493
- UpdatePromptContentPrompts2$outboundSchema.parse(
3494
- updatePromptContentPrompts2,
4143
+ UpdatePromptContentPromptsRequest2$outboundSchema.parse(
4144
+ updatePromptContentPromptsRequest2,
3495
4145
  ),
3496
4146
  );
3497
4147
  }
3498
- export function updatePromptContentPrompts2FromJSON(
4148
+ export function updatePromptContentPromptsRequest2FromJSON(
3499
4149
  jsonString: string,
3500
- ): SafeParseResult<UpdatePromptContentPrompts2, SDKValidationError> {
4150
+ ): SafeParseResult<UpdatePromptContentPromptsRequest2, SDKValidationError> {
3501
4151
  return safeParse(
3502
4152
  jsonString,
3503
- (x) => UpdatePromptContentPrompts2$inboundSchema.parse(JSON.parse(x)),
3504
- `Failed to parse 'UpdatePromptContentPrompts2' from JSON`,
4153
+ (x) =>
4154
+ UpdatePromptContentPromptsRequest2$inboundSchema.parse(JSON.parse(x)),
4155
+ `Failed to parse 'UpdatePromptContentPromptsRequest2' from JSON`,
3505
4156
  );
3506
4157
  }
3507
4158
 
@@ -3512,22 +4163,18 @@ export const UpdatePromptMessagesPromptsContent$inboundSchema: z.ZodType<
3512
4163
  unknown
3513
4164
  > = z.union([
3514
4165
  z.string(),
3515
- z.array(
3516
- z.union([
3517
- components.TextContentPartSchema$inboundSchema.and(
3518
- z.object({ type: z.literal("text") }),
3519
- ),
3520
- components.ImageContentPartSchema$inboundSchema,
3521
- components.AudioContentPartSchema$inboundSchema,
3522
- z.lazy(() => UpdatePrompt24$inboundSchema),
3523
- ]),
3524
- ),
4166
+ z.array(z.union([
4167
+ z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
4168
+ components.ImageContentPartSchema$inboundSchema,
4169
+ components.AudioContentPartSchema$inboundSchema,
4170
+ z.lazy(() => UpdatePrompt24$inboundSchema),
4171
+ ])),
3525
4172
  ]);
3526
4173
  /** @internal */
3527
4174
  export type UpdatePromptMessagesPromptsContent$Outbound =
3528
4175
  | string
3529
4176
  | Array<
3530
- | (components.TextContentPartSchema$Outbound & { type: "text" })
4177
+ | UpdatePrompt2Prompts1$Outbound
3531
4178
  | components.ImageContentPartSchema$Outbound
3532
4179
  | components.AudioContentPartSchema$Outbound
3533
4180
  | UpdatePrompt24$Outbound
@@ -3540,16 +4187,12 @@ export const UpdatePromptMessagesPromptsContent$outboundSchema: z.ZodType<
3540
4187
  UpdatePromptMessagesPromptsContent
3541
4188
  > = z.union([
3542
4189
  z.string(),
3543
- z.array(
3544
- z.union([
3545
- components.TextContentPartSchema$outboundSchema.and(
3546
- z.object({ type: z.literal("text") }),
3547
- ),
3548
- components.ImageContentPartSchema$outboundSchema,
3549
- components.AudioContentPartSchema$outboundSchema,
3550
- z.lazy(() => UpdatePrompt24$outboundSchema),
3551
- ]),
3552
- ),
4190
+ z.array(z.union([
4191
+ z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
4192
+ components.ImageContentPartSchema$outboundSchema,
4193
+ components.AudioContentPartSchema$outboundSchema,
4194
+ z.lazy(() => UpdatePrompt24$outboundSchema),
4195
+ ])),
3553
4196
  ]);
3554
4197
 
3555
4198
  export function updatePromptMessagesPromptsContentToJSON(
@@ -3582,16 +4225,12 @@ export const UpdatePromptMessagesUserMessage$inboundSchema: z.ZodType<
3582
4225
  name: z.string().optional(),
3583
4226
  content: z.union([
3584
4227
  z.string(),
3585
- z.array(
3586
- z.union([
3587
- components.TextContentPartSchema$inboundSchema.and(
3588
- z.object({ type: z.literal("text") }),
3589
- ),
3590
- components.ImageContentPartSchema$inboundSchema,
3591
- components.AudioContentPartSchema$inboundSchema,
3592
- z.lazy(() => UpdatePrompt24$inboundSchema),
3593
- ]),
3594
- ),
4228
+ z.array(z.union([
4229
+ z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
4230
+ components.ImageContentPartSchema$inboundSchema,
4231
+ components.AudioContentPartSchema$inboundSchema,
4232
+ z.lazy(() => UpdatePrompt24$inboundSchema),
4233
+ ])),
3595
4234
  ]),
3596
4235
  });
3597
4236
  /** @internal */
@@ -3601,7 +4240,7 @@ export type UpdatePromptMessagesUserMessage$Outbound = {
3601
4240
  content:
3602
4241
  | string
3603
4242
  | Array<
3604
- | (components.TextContentPartSchema$Outbound & { type: "text" })
4243
+ | UpdatePrompt2Prompts1$Outbound
3605
4244
  | components.ImageContentPartSchema$Outbound
3606
4245
  | components.AudioContentPartSchema$Outbound
3607
4246
  | UpdatePrompt24$Outbound
@@ -3618,16 +4257,12 @@ export const UpdatePromptMessagesUserMessage$outboundSchema: z.ZodType<
3618
4257
  name: z.string().optional(),
3619
4258
  content: z.union([
3620
4259
  z.string(),
3621
- z.array(
3622
- z.union([
3623
- components.TextContentPartSchema$outboundSchema.and(
3624
- z.object({ type: z.literal("text") }),
3625
- ),
3626
- components.ImageContentPartSchema$outboundSchema,
3627
- components.AudioContentPartSchema$outboundSchema,
3628
- z.lazy(() => UpdatePrompt24$outboundSchema),
3629
- ]),
3630
- ),
4260
+ z.array(z.union([
4261
+ z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
4262
+ components.ImageContentPartSchema$outboundSchema,
4263
+ components.AudioContentPartSchema$outboundSchema,
4264
+ z.lazy(() => UpdatePrompt24$outboundSchema),
4265
+ ])),
3631
4266
  ]),
3632
4267
  });
3633
4268
 
@@ -3650,6 +4285,134 @@ export function updatePromptMessagesUserMessageFromJSON(
3650
4285
  );
3651
4286
  }
3652
4287
 
4288
+ /** @internal */
4289
+ export const UpdatePromptContentType$inboundSchema: z.ZodNativeEnum<
4290
+ typeof UpdatePromptContentType
4291
+ > = z.nativeEnum(UpdatePromptContentType);
4292
+ /** @internal */
4293
+ export const UpdatePromptContentType$outboundSchema: z.ZodNativeEnum<
4294
+ typeof UpdatePromptContentType
4295
+ > = UpdatePromptContentType$inboundSchema;
4296
+
4297
+ /** @internal */
4298
+ export const UpdatePromptContentPromptsType$inboundSchema: z.ZodNativeEnum<
4299
+ typeof UpdatePromptContentPromptsType
4300
+ > = z.nativeEnum(UpdatePromptContentPromptsType);
4301
+ /** @internal */
4302
+ export const UpdatePromptContentPromptsType$outboundSchema: z.ZodNativeEnum<
4303
+ typeof UpdatePromptContentPromptsType
4304
+ > = UpdatePromptContentPromptsType$inboundSchema;
4305
+
4306
+ /** @internal */
4307
+ export const UpdatePromptContentTtl$inboundSchema: z.ZodNativeEnum<
4308
+ typeof UpdatePromptContentTtl
4309
+ > = z.nativeEnum(UpdatePromptContentTtl);
4310
+ /** @internal */
4311
+ export const UpdatePromptContentTtl$outboundSchema: z.ZodNativeEnum<
4312
+ typeof UpdatePromptContentTtl
4313
+ > = UpdatePromptContentTtl$inboundSchema;
4314
+
4315
+ /** @internal */
4316
+ export const UpdatePromptContentCacheControl$inboundSchema: z.ZodType<
4317
+ UpdatePromptContentCacheControl,
4318
+ z.ZodTypeDef,
4319
+ unknown
4320
+ > = z.object({
4321
+ type: UpdatePromptContentPromptsType$inboundSchema,
4322
+ ttl: UpdatePromptContentTtl$inboundSchema.default("5m"),
4323
+ });
4324
+ /** @internal */
4325
+ export type UpdatePromptContentCacheControl$Outbound = {
4326
+ type: string;
4327
+ ttl: string;
4328
+ };
4329
+
4330
+ /** @internal */
4331
+ export const UpdatePromptContentCacheControl$outboundSchema: z.ZodType<
4332
+ UpdatePromptContentCacheControl$Outbound,
4333
+ z.ZodTypeDef,
4334
+ UpdatePromptContentCacheControl
4335
+ > = z.object({
4336
+ type: UpdatePromptContentPromptsType$outboundSchema,
4337
+ ttl: UpdatePromptContentTtl$outboundSchema.default("5m"),
4338
+ });
4339
+
4340
+ export function updatePromptContentCacheControlToJSON(
4341
+ updatePromptContentCacheControl: UpdatePromptContentCacheControl,
4342
+ ): string {
4343
+ return JSON.stringify(
4344
+ UpdatePromptContentCacheControl$outboundSchema.parse(
4345
+ updatePromptContentCacheControl,
4346
+ ),
4347
+ );
4348
+ }
4349
+ export function updatePromptContentCacheControlFromJSON(
4350
+ jsonString: string,
4351
+ ): SafeParseResult<UpdatePromptContentCacheControl, SDKValidationError> {
4352
+ return safeParse(
4353
+ jsonString,
4354
+ (x) => UpdatePromptContentCacheControl$inboundSchema.parse(JSON.parse(x)),
4355
+ `Failed to parse 'UpdatePromptContentCacheControl' from JSON`,
4356
+ );
4357
+ }
4358
+
4359
+ /** @internal */
4360
+ export const UpdatePromptContentPrompts2$inboundSchema: z.ZodType<
4361
+ UpdatePromptContentPrompts2,
4362
+ z.ZodTypeDef,
4363
+ unknown
4364
+ > = z.object({
4365
+ type: UpdatePromptContentType$inboundSchema,
4366
+ text: z.string(),
4367
+ cache_control: z.lazy(() => UpdatePromptContentCacheControl$inboundSchema)
4368
+ .optional(),
4369
+ }).transform((v) => {
4370
+ return remap$(v, {
4371
+ "cache_control": "cacheControl",
4372
+ });
4373
+ });
4374
+ /** @internal */
4375
+ export type UpdatePromptContentPrompts2$Outbound = {
4376
+ type: string;
4377
+ text: string;
4378
+ cache_control?: UpdatePromptContentCacheControl$Outbound | undefined;
4379
+ };
4380
+
4381
+ /** @internal */
4382
+ export const UpdatePromptContentPrompts2$outboundSchema: z.ZodType<
4383
+ UpdatePromptContentPrompts2$Outbound,
4384
+ z.ZodTypeDef,
4385
+ UpdatePromptContentPrompts2
4386
+ > = z.object({
4387
+ type: UpdatePromptContentType$outboundSchema,
4388
+ text: z.string(),
4389
+ cacheControl: z.lazy(() => UpdatePromptContentCacheControl$outboundSchema)
4390
+ .optional(),
4391
+ }).transform((v) => {
4392
+ return remap$(v, {
4393
+ cacheControl: "cache_control",
4394
+ });
4395
+ });
4396
+
4397
+ export function updatePromptContentPrompts2ToJSON(
4398
+ updatePromptContentPrompts2: UpdatePromptContentPrompts2,
4399
+ ): string {
4400
+ return JSON.stringify(
4401
+ UpdatePromptContentPrompts2$outboundSchema.parse(
4402
+ updatePromptContentPrompts2,
4403
+ ),
4404
+ );
4405
+ }
4406
+ export function updatePromptContentPrompts2FromJSON(
4407
+ jsonString: string,
4408
+ ): SafeParseResult<UpdatePromptContentPrompts2, SDKValidationError> {
4409
+ return safeParse(
4410
+ jsonString,
4411
+ (x) => UpdatePromptContentPrompts2$inboundSchema.parse(JSON.parse(x)),
4412
+ `Failed to parse 'UpdatePromptContentPrompts2' from JSON`,
4413
+ );
4414
+ }
4415
+
3653
4416
  /** @internal */
3654
4417
  export const UpdatePromptMessagesContent$inboundSchema: z.ZodType<
3655
4418
  UpdatePromptMessagesContent,
@@ -3657,12 +4420,12 @@ export const UpdatePromptMessagesContent$inboundSchema: z.ZodType<
3657
4420
  unknown
3658
4421
  > = z.union([
3659
4422
  z.string(),
3660
- z.array(components.TextContentPartSchema$inboundSchema),
4423
+ z.array(z.lazy(() => UpdatePromptContentPrompts2$inboundSchema)),
3661
4424
  ]);
3662
4425
  /** @internal */
3663
4426
  export type UpdatePromptMessagesContent$Outbound =
3664
4427
  | string
3665
- | Array<components.TextContentPartSchema$Outbound>;
4428
+ | Array<UpdatePromptContentPrompts2$Outbound>;
3666
4429
 
3667
4430
  /** @internal */
3668
4431
  export const UpdatePromptMessagesContent$outboundSchema: z.ZodType<
@@ -3671,7 +4434,7 @@ export const UpdatePromptMessagesContent$outboundSchema: z.ZodType<
3671
4434
  UpdatePromptMessagesContent
3672
4435
  > = z.union([
3673
4436
  z.string(),
3674
- z.array(components.TextContentPartSchema$outboundSchema),
4437
+ z.array(z.lazy(() => UpdatePromptContentPrompts2$outboundSchema)),
3675
4438
  ]);
3676
4439
 
3677
4440
  export function updatePromptMessagesContentToJSON(
@@ -3702,14 +4465,14 @@ export const UpdatePromptMessagesSystemMessage$inboundSchema: z.ZodType<
3702
4465
  role: z.literal("system"),
3703
4466
  content: z.union([
3704
4467
  z.string(),
3705
- z.array(components.TextContentPartSchema$inboundSchema),
4468
+ z.array(z.lazy(() => UpdatePromptContentPrompts2$inboundSchema)),
3706
4469
  ]),
3707
4470
  name: z.string().optional(),
3708
4471
  });
3709
4472
  /** @internal */
3710
4473
  export type UpdatePromptMessagesSystemMessage$Outbound = {
3711
4474
  role: "system";
3712
- content: string | Array<components.TextContentPartSchema$Outbound>;
4475
+ content: string | Array<UpdatePromptContentPrompts2$Outbound>;
3713
4476
  name?: string | undefined;
3714
4477
  };
3715
4478
 
@@ -3722,7 +4485,7 @@ export const UpdatePromptMessagesSystemMessage$outboundSchema: z.ZodType<
3722
4485
  role: z.literal("system"),
3723
4486
  content: z.union([
3724
4487
  z.string(),
3725
- z.array(components.TextContentPartSchema$outboundSchema),
4488
+ z.array(z.lazy(() => UpdatePromptContentPrompts2$outboundSchema)),
3726
4489
  ]),
3727
4490
  name: z.string().optional(),
3728
4491
  });
@@ -4893,8 +5656,8 @@ export function updatePrompt2PromptsFileFromJSON(
4893
5656
  }
4894
5657
 
4895
5658
  /** @internal */
4896
- export const UpdatePrompt2Prompts3$inboundSchema: z.ZodType<
4897
- UpdatePrompt2Prompts3,
5659
+ export const UpdatePrompt23$inboundSchema: z.ZodType<
5660
+ UpdatePrompt23,
4898
5661
  z.ZodTypeDef,
4899
5662
  unknown
4900
5663
  > = z.object({
@@ -4902,41 +5665,37 @@ export const UpdatePrompt2Prompts3$inboundSchema: z.ZodType<
4902
5665
  file: z.lazy(() => UpdatePrompt2PromptsFile$inboundSchema),
4903
5666
  });
4904
5667
  /** @internal */
4905
- export type UpdatePrompt2Prompts3$Outbound = {
5668
+ export type UpdatePrompt23$Outbound = {
4906
5669
  type: "file";
4907
5670
  file: UpdatePrompt2PromptsFile$Outbound;
4908
5671
  };
4909
5672
 
4910
5673
  /** @internal */
4911
- export const UpdatePrompt2Prompts3$outboundSchema: z.ZodType<
4912
- UpdatePrompt2Prompts3$Outbound,
5674
+ export const UpdatePrompt23$outboundSchema: z.ZodType<
5675
+ UpdatePrompt23$Outbound,
4913
5676
  z.ZodTypeDef,
4914
- UpdatePrompt2Prompts3
5677
+ UpdatePrompt23
4915
5678
  > = z.object({
4916
5679
  type: z.literal("file"),
4917
5680
  file: z.lazy(() => UpdatePrompt2PromptsFile$outboundSchema),
4918
5681
  });
4919
5682
 
4920
- export function updatePrompt2Prompts3ToJSON(
4921
- updatePrompt2Prompts3: UpdatePrompt2Prompts3,
4922
- ): string {
4923
- return JSON.stringify(
4924
- UpdatePrompt2Prompts3$outboundSchema.parse(updatePrompt2Prompts3),
4925
- );
5683
+ export function updatePrompt23ToJSON(updatePrompt23: UpdatePrompt23): string {
5684
+ return JSON.stringify(UpdatePrompt23$outboundSchema.parse(updatePrompt23));
4926
5685
  }
4927
- export function updatePrompt2Prompts3FromJSON(
5686
+ export function updatePrompt23FromJSON(
4928
5687
  jsonString: string,
4929
- ): SafeParseResult<UpdatePrompt2Prompts3, SDKValidationError> {
5688
+ ): SafeParseResult<UpdatePrompt23, SDKValidationError> {
4930
5689
  return safeParse(
4931
5690
  jsonString,
4932
- (x) => UpdatePrompt2Prompts3$inboundSchema.parse(JSON.parse(x)),
4933
- `Failed to parse 'UpdatePrompt2Prompts3' from JSON`,
5691
+ (x) => UpdatePrompt23$inboundSchema.parse(JSON.parse(x)),
5692
+ `Failed to parse 'UpdatePrompt23' from JSON`,
4934
5693
  );
4935
5694
  }
4936
5695
 
4937
5696
  /** @internal */
4938
- export const UpdatePrompt2PromptsImageUrl$inboundSchema: z.ZodType<
4939
- UpdatePrompt2PromptsImageUrl,
5697
+ export const UpdatePrompt2ImageUrl$inboundSchema: z.ZodType<
5698
+ UpdatePrompt2ImageUrl,
4940
5699
  z.ZodTypeDef,
4941
5700
  unknown
4942
5701
  > = z.object({
@@ -4945,39 +5704,37 @@ export const UpdatePrompt2PromptsImageUrl$inboundSchema: z.ZodType<
4945
5704
  detail: z.string().optional(),
4946
5705
  });
4947
5706
  /** @internal */
4948
- export type UpdatePrompt2PromptsImageUrl$Outbound = {
5707
+ export type UpdatePrompt2ImageUrl$Outbound = {
4949
5708
  id?: string | undefined;
4950
5709
  url: string;
4951
5710
  detail?: string | undefined;
4952
5711
  };
4953
5712
 
4954
5713
  /** @internal */
4955
- export const UpdatePrompt2PromptsImageUrl$outboundSchema: z.ZodType<
4956
- UpdatePrompt2PromptsImageUrl$Outbound,
5714
+ export const UpdatePrompt2ImageUrl$outboundSchema: z.ZodType<
5715
+ UpdatePrompt2ImageUrl$Outbound,
4957
5716
  z.ZodTypeDef,
4958
- UpdatePrompt2PromptsImageUrl
5717
+ UpdatePrompt2ImageUrl
4959
5718
  > = z.object({
4960
5719
  id: z.string().optional(),
4961
5720
  url: z.string(),
4962
5721
  detail: z.string().optional(),
4963
5722
  });
4964
5723
 
4965
- export function updatePrompt2PromptsImageUrlToJSON(
4966
- updatePrompt2PromptsImageUrl: UpdatePrompt2PromptsImageUrl,
5724
+ export function updatePrompt2ImageUrlToJSON(
5725
+ updatePrompt2ImageUrl: UpdatePrompt2ImageUrl,
4967
5726
  ): string {
4968
5727
  return JSON.stringify(
4969
- UpdatePrompt2PromptsImageUrl$outboundSchema.parse(
4970
- updatePrompt2PromptsImageUrl,
4971
- ),
5728
+ UpdatePrompt2ImageUrl$outboundSchema.parse(updatePrompt2ImageUrl),
4972
5729
  );
4973
5730
  }
4974
- export function updatePrompt2PromptsImageUrlFromJSON(
5731
+ export function updatePrompt2ImageUrlFromJSON(
4975
5732
  jsonString: string,
4976
- ): SafeParseResult<UpdatePrompt2PromptsImageUrl, SDKValidationError> {
5733
+ ): SafeParseResult<UpdatePrompt2ImageUrl, SDKValidationError> {
4977
5734
  return safeParse(
4978
5735
  jsonString,
4979
- (x) => UpdatePrompt2PromptsImageUrl$inboundSchema.parse(JSON.parse(x)),
4980
- `Failed to parse 'UpdatePrompt2PromptsImageUrl' from JSON`,
5736
+ (x) => UpdatePrompt2ImageUrl$inboundSchema.parse(JSON.parse(x)),
5737
+ `Failed to parse 'UpdatePrompt2ImageUrl' from JSON`,
4981
5738
  );
4982
5739
  }
4983
5740
 
@@ -4988,7 +5745,7 @@ export const UpdatePrompt2Prompts2$inboundSchema: z.ZodType<
4988
5745
  unknown
4989
5746
  > = z.object({
4990
5747
  type: z.literal("image_url"),
4991
- image_url: z.lazy(() => UpdatePrompt2PromptsImageUrl$inboundSchema),
5748
+ image_url: z.lazy(() => UpdatePrompt2ImageUrl$inboundSchema),
4992
5749
  }).transform((v) => {
4993
5750
  return remap$(v, {
4994
5751
  "image_url": "imageUrl",
@@ -4997,7 +5754,7 @@ export const UpdatePrompt2Prompts2$inboundSchema: z.ZodType<
4997
5754
  /** @internal */
4998
5755
  export type UpdatePrompt2Prompts2$Outbound = {
4999
5756
  type: "image_url";
5000
- image_url: UpdatePrompt2PromptsImageUrl$Outbound;
5757
+ image_url: UpdatePrompt2ImageUrl$Outbound;
5001
5758
  };
5002
5759
 
5003
5760
  /** @internal */
@@ -5007,7 +5764,7 @@ export const UpdatePrompt2Prompts2$outboundSchema: z.ZodType<
5007
5764
  UpdatePrompt2Prompts2
5008
5765
  > = z.object({
5009
5766
  type: z.literal("image_url"),
5010
- imageUrl: z.lazy(() => UpdatePrompt2PromptsImageUrl$outboundSchema),
5767
+ imageUrl: z.lazy(() => UpdatePrompt2ImageUrl$outboundSchema),
5011
5768
  }).transform((v) => {
5012
5769
  return remap$(v, {
5013
5770
  imageUrl: "image_url",
@@ -5032,8 +5789,8 @@ export function updatePrompt2Prompts2FromJSON(
5032
5789
  }
5033
5790
 
5034
5791
  /** @internal */
5035
- export const UpdatePrompt2Prompts1$inboundSchema: z.ZodType<
5036
- UpdatePrompt2Prompts1,
5792
+ export const UpdatePrompt2PromptsResponse1$inboundSchema: z.ZodType<
5793
+ UpdatePrompt2PromptsResponse1,
5037
5794
  z.ZodTypeDef,
5038
5795
  unknown
5039
5796
  > = z.object({
@@ -5041,35 +5798,37 @@ export const UpdatePrompt2Prompts1$inboundSchema: z.ZodType<
5041
5798
  text: z.string(),
5042
5799
  });
5043
5800
  /** @internal */
5044
- export type UpdatePrompt2Prompts1$Outbound = {
5801
+ export type UpdatePrompt2PromptsResponse1$Outbound = {
5045
5802
  type: "text";
5046
5803
  text: string;
5047
5804
  };
5048
5805
 
5049
5806
  /** @internal */
5050
- export const UpdatePrompt2Prompts1$outboundSchema: z.ZodType<
5051
- UpdatePrompt2Prompts1$Outbound,
5807
+ export const UpdatePrompt2PromptsResponse1$outboundSchema: z.ZodType<
5808
+ UpdatePrompt2PromptsResponse1$Outbound,
5052
5809
  z.ZodTypeDef,
5053
- UpdatePrompt2Prompts1
5810
+ UpdatePrompt2PromptsResponse1
5054
5811
  > = z.object({
5055
5812
  type: z.literal("text"),
5056
5813
  text: z.string(),
5057
5814
  });
5058
5815
 
5059
- export function updatePrompt2Prompts1ToJSON(
5060
- updatePrompt2Prompts1: UpdatePrompt2Prompts1,
5816
+ export function updatePrompt2PromptsResponse1ToJSON(
5817
+ updatePrompt2PromptsResponse1: UpdatePrompt2PromptsResponse1,
5061
5818
  ): string {
5062
5819
  return JSON.stringify(
5063
- UpdatePrompt2Prompts1$outboundSchema.parse(updatePrompt2Prompts1),
5820
+ UpdatePrompt2PromptsResponse1$outboundSchema.parse(
5821
+ updatePrompt2PromptsResponse1,
5822
+ ),
5064
5823
  );
5065
5824
  }
5066
- export function updatePrompt2Prompts1FromJSON(
5825
+ export function updatePrompt2PromptsResponse1FromJSON(
5067
5826
  jsonString: string,
5068
- ): SafeParseResult<UpdatePrompt2Prompts1, SDKValidationError> {
5827
+ ): SafeParseResult<UpdatePrompt2PromptsResponse1, SDKValidationError> {
5069
5828
  return safeParse(
5070
5829
  jsonString,
5071
- (x) => UpdatePrompt2Prompts1$inboundSchema.parse(JSON.parse(x)),
5072
- `Failed to parse 'UpdatePrompt2Prompts1' from JSON`,
5830
+ (x) => UpdatePrompt2PromptsResponse1$inboundSchema.parse(JSON.parse(x)),
5831
+ `Failed to parse 'UpdatePrompt2PromptsResponse1' from JSON`,
5073
5832
  );
5074
5833
  }
5075
5834
 
@@ -5079,15 +5838,15 @@ export const UpdatePromptContentPromptsResponse2$inboundSchema: z.ZodType<
5079
5838
  z.ZodTypeDef,
5080
5839
  unknown
5081
5840
  > = z.union([
5082
- z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
5841
+ z.lazy(() => UpdatePrompt2PromptsResponse1$inboundSchema),
5083
5842
  z.lazy(() => UpdatePrompt2Prompts2$inboundSchema),
5084
- z.lazy(() => UpdatePrompt2Prompts3$inboundSchema),
5843
+ z.lazy(() => UpdatePrompt23$inboundSchema),
5085
5844
  ]);
5086
5845
  /** @internal */
5087
5846
  export type UpdatePromptContentPromptsResponse2$Outbound =
5088
- | UpdatePrompt2Prompts1$Outbound
5847
+ | UpdatePrompt2PromptsResponse1$Outbound
5089
5848
  | UpdatePrompt2Prompts2$Outbound
5090
- | UpdatePrompt2Prompts3$Outbound;
5849
+ | UpdatePrompt23$Outbound;
5091
5850
 
5092
5851
  /** @internal */
5093
5852
  export const UpdatePromptContentPromptsResponse2$outboundSchema: z.ZodType<
@@ -5095,9 +5854,9 @@ export const UpdatePromptContentPromptsResponse2$outboundSchema: z.ZodType<
5095
5854
  z.ZodTypeDef,
5096
5855
  UpdatePromptContentPromptsResponse2
5097
5856
  > = z.union([
5098
- z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
5857
+ z.lazy(() => UpdatePrompt2PromptsResponse1$outboundSchema),
5099
5858
  z.lazy(() => UpdatePrompt2Prompts2$outboundSchema),
5100
- z.lazy(() => UpdatePrompt2Prompts3$outboundSchema),
5859
+ z.lazy(() => UpdatePrompt23$outboundSchema),
5101
5860
  ]);
5102
5861
 
5103
5862
  export function updatePromptContentPromptsResponse2ToJSON(
@@ -5128,18 +5887,18 @@ export const UpdatePromptPromptsContent$inboundSchema: z.ZodType<
5128
5887
  > = z.union([
5129
5888
  z.string(),
5130
5889
  z.array(z.union([
5131
- z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
5890
+ z.lazy(() => UpdatePrompt2PromptsResponse1$inboundSchema),
5132
5891
  z.lazy(() => UpdatePrompt2Prompts2$inboundSchema),
5133
- z.lazy(() => UpdatePrompt2Prompts3$inboundSchema),
5892
+ z.lazy(() => UpdatePrompt23$inboundSchema),
5134
5893
  ])),
5135
5894
  ]);
5136
5895
  /** @internal */
5137
5896
  export type UpdatePromptPromptsContent$Outbound =
5138
5897
  | string
5139
5898
  | Array<
5140
- | UpdatePrompt2Prompts1$Outbound
5899
+ | UpdatePrompt2PromptsResponse1$Outbound
5141
5900
  | UpdatePrompt2Prompts2$Outbound
5142
- | UpdatePrompt2Prompts3$Outbound
5901
+ | UpdatePrompt23$Outbound
5143
5902
  >;
5144
5903
 
5145
5904
  /** @internal */
@@ -5150,9 +5909,9 @@ export const UpdatePromptPromptsContent$outboundSchema: z.ZodType<
5150
5909
  > = z.union([
5151
5910
  z.string(),
5152
5911
  z.array(z.union([
5153
- z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
5912
+ z.lazy(() => UpdatePrompt2PromptsResponse1$outboundSchema),
5154
5913
  z.lazy(() => UpdatePrompt2Prompts2$outboundSchema),
5155
- z.lazy(() => UpdatePrompt2Prompts3$outboundSchema),
5914
+ z.lazy(() => UpdatePrompt23$outboundSchema),
5156
5915
  ])),
5157
5916
  ]);
5158
5917
 
@@ -5288,16 +6047,16 @@ export const UpdatePromptPromptsResponseMessages$inboundSchema: z.ZodType<
5288
6047
  z.string(),
5289
6048
  z.array(
5290
6049
  z.union([
5291
- z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
6050
+ z.lazy(() => UpdatePrompt2PromptsResponse1$inboundSchema),
5292
6051
  z.lazy(() => UpdatePrompt2Prompts2$inboundSchema),
5293
- z.lazy(() => UpdatePrompt2Prompts3$inboundSchema),
6052
+ z.lazy(() => UpdatePrompt23$inboundSchema),
5294
6053
  ]),
5295
6054
  ),
5296
6055
  ]),
5297
6056
  ),
5298
6057
  tool_calls: z.array(z.lazy(() => UpdatePromptPromptsToolCalls$inboundSchema))
5299
6058
  .optional(),
5300
- tool_call_id: z.nullable(z.string()).optional(),
6059
+ tool_call_id: z.string().optional(),
5301
6060
  }).transform((v) => {
5302
6061
  return remap$(v, {
5303
6062
  "tool_calls": "toolCalls",
@@ -5310,13 +6069,13 @@ export type UpdatePromptPromptsResponseMessages$Outbound = {
5310
6069
  content:
5311
6070
  | string
5312
6071
  | Array<
5313
- | UpdatePrompt2Prompts1$Outbound
6072
+ | UpdatePrompt2PromptsResponse1$Outbound
5314
6073
  | UpdatePrompt2Prompts2$Outbound
5315
- | UpdatePrompt2Prompts3$Outbound
6074
+ | UpdatePrompt23$Outbound
5316
6075
  >
5317
6076
  | null;
5318
6077
  tool_calls?: Array<UpdatePromptPromptsToolCalls$Outbound> | undefined;
5319
- tool_call_id?: string | null | undefined;
6078
+ tool_call_id?: string | undefined;
5320
6079
  };
5321
6080
 
5322
6081
  /** @internal */
@@ -5331,16 +6090,16 @@ export const UpdatePromptPromptsResponseMessages$outboundSchema: z.ZodType<
5331
6090
  z.string(),
5332
6091
  z.array(
5333
6092
  z.union([
5334
- z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
6093
+ z.lazy(() => UpdatePrompt2PromptsResponse1$outboundSchema),
5335
6094
  z.lazy(() => UpdatePrompt2Prompts2$outboundSchema),
5336
- z.lazy(() => UpdatePrompt2Prompts3$outboundSchema),
6095
+ z.lazy(() => UpdatePrompt23$outboundSchema),
5337
6096
  ]),
5338
6097
  ),
5339
6098
  ]),
5340
6099
  ),
5341
6100
  toolCalls: z.array(z.lazy(() => UpdatePromptPromptsToolCalls$outboundSchema))
5342
6101
  .optional(),
5343
- toolCallId: z.nullable(z.string()).optional(),
6102
+ toolCallId: z.string().optional(),
5344
6103
  }).transform((v) => {
5345
6104
  return remap$(v, {
5346
6105
  toolCalls: "tool_calls",