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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (461) hide show
  1. package/README.md +42 -18
  2. package/bin/mcp-server.js +4959 -5404
  3. package/bin/mcp-server.js.map +126 -82
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/agentsResponsesCreate.d.ts +7 -1
  6. package/funcs/agentsResponsesCreate.d.ts.map +1 -1
  7. package/funcs/agentsResponsesCreate.js +9 -2
  8. package/funcs/agentsResponsesCreate.js.map +1 -1
  9. package/funcs/budgetsCreate.d.ts +1 -1
  10. package/funcs/budgetsCreate.js +1 -1
  11. package/funcs/contactsList.js +1 -0
  12. package/funcs/contactsList.js.map +1 -1
  13. package/funcs/conversationsCreate.d.ts +17 -0
  14. package/funcs/conversationsCreate.d.ts.map +1 -0
  15. package/funcs/conversationsCreate.js +114 -0
  16. package/funcs/conversationsCreate.js.map +1 -0
  17. package/funcs/conversationsDelete.d.ts +17 -0
  18. package/funcs/conversationsDelete.d.ts.map +1 -0
  19. package/funcs/conversationsDelete.js +127 -0
  20. package/funcs/conversationsDelete.js.map +1 -0
  21. package/funcs/conversationsGenerateName.d.ts +18 -0
  22. package/funcs/conversationsGenerateName.d.ts.map +1 -0
  23. package/funcs/conversationsGenerateName.js +128 -0
  24. package/funcs/conversationsGenerateName.js.map +1 -0
  25. package/funcs/conversationsList.d.ts +17 -0
  26. package/funcs/conversationsList.d.ts.map +1 -0
  27. package/funcs/conversationsList.js +124 -0
  28. package/funcs/conversationsList.js.map +1 -0
  29. package/funcs/conversationsRetrieve.d.ts +18 -0
  30. package/funcs/conversationsRetrieve.d.ts.map +1 -0
  31. package/funcs/conversationsRetrieve.js +126 -0
  32. package/funcs/conversationsRetrieve.js.map +1 -0
  33. package/funcs/conversationsUpdate.d.ts +18 -0
  34. package/funcs/conversationsUpdate.d.ts.map +1 -0
  35. package/funcs/conversationsUpdate.js +128 -0
  36. package/funcs/conversationsUpdate.js.map +1 -0
  37. package/funcs/evalsInvoke.d.ts +15 -0
  38. package/funcs/evalsInvoke.d.ts.map +1 -0
  39. package/funcs/evalsInvoke.js +121 -0
  40. package/funcs/evalsInvoke.js.map +1 -0
  41. package/funcs/memoryStoresListDocuments.js +2 -0
  42. package/funcs/memoryStoresListDocuments.js.map +1 -1
  43. package/funcs/memoryStoresListMemories.js +1 -0
  44. package/funcs/memoryStoresListMemories.js.map +1 -1
  45. package/jsr.json +1 -1
  46. package/lib/config.d.ts +3 -3
  47. package/lib/config.js +3 -3
  48. package/mcp-server/mcp-server.js +1 -1
  49. package/mcp-server/server.d.ts.map +1 -1
  50. package/mcp-server/server.js +15 -1
  51. package/mcp-server/server.js.map +1 -1
  52. package/mcp-server/tools/budgetsCreate.js +1 -1
  53. package/mcp-server/tools/budgetsCreate.js.map +1 -1
  54. package/mcp-server/tools/conversationsCreate.d.ts +8 -0
  55. package/mcp-server/tools/conversationsCreate.d.ts.map +1 -0
  56. package/mcp-server/tools/conversationsCreate.js +64 -0
  57. package/mcp-server/tools/conversationsCreate.js.map +1 -0
  58. package/mcp-server/tools/conversationsDelete.d.ts +8 -0
  59. package/mcp-server/tools/conversationsDelete.d.ts.map +1 -0
  60. package/mcp-server/tools/conversationsDelete.js +63 -0
  61. package/mcp-server/tools/conversationsDelete.js.map +1 -0
  62. package/mcp-server/tools/conversationsGenerateName.d.ts +10 -0
  63. package/mcp-server/tools/conversationsGenerateName.d.ts.map +1 -0
  64. package/mcp-server/tools/conversationsGenerateName.js +66 -0
  65. package/mcp-server/tools/conversationsGenerateName.js.map +1 -0
  66. package/mcp-server/tools/conversationsList.d.ts +10 -0
  67. package/mcp-server/tools/conversationsList.d.ts.map +1 -0
  68. package/mcp-server/tools/conversationsList.js +66 -0
  69. package/mcp-server/tools/conversationsList.js.map +1 -0
  70. package/mcp-server/tools/conversationsRetrieve.d.ts +8 -0
  71. package/mcp-server/tools/conversationsRetrieve.d.ts.map +1 -0
  72. package/mcp-server/tools/conversationsRetrieve.js +64 -0
  73. package/mcp-server/tools/conversationsRetrieve.js.map +1 -0
  74. package/mcp-server/tools/conversationsUpdate.d.ts +10 -0
  75. package/mcp-server/tools/conversationsUpdate.d.ts.map +1 -0
  76. package/mcp-server/tools/conversationsUpdate.js +66 -0
  77. package/mcp-server/tools/conversationsUpdate.js.map +1 -0
  78. package/mcp-server/tools/evalsInvoke.d.ts +8 -0
  79. package/mcp-server/tools/evalsInvoke.d.ts.map +1 -0
  80. package/mcp-server/tools/evalsInvoke.js +62 -0
  81. package/mcp-server/tools/evalsInvoke.js.map +1 -0
  82. package/models/components/agentexecutionstartedstreamingevent.d.ts +8 -8
  83. package/models/components/agentexecutionstartedstreamingevent.d.ts.map +1 -1
  84. package/models/components/agentexecutionstartedstreamingevent.js +11 -12
  85. package/models/components/agentexecutionstartedstreamingevent.js.map +1 -1
  86. package/models/components/agentinactivestreamingevent.d.ts +21 -21
  87. package/models/components/agentinactivestreamingevent.d.ts.map +1 -1
  88. package/models/components/agentinactivestreamingevent.js +27 -28
  89. package/models/components/agentinactivestreamingevent.js.map +1 -1
  90. package/models/components/agentresponsemessage.d.ts +56 -0
  91. package/models/components/agentresponsemessage.d.ts.map +1 -0
  92. package/models/components/agentresponsemessage.js +116 -0
  93. package/models/components/agentresponsemessage.js.map +1 -0
  94. package/models/components/agentstartedstreamingevent.d.ts +6 -6
  95. package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
  96. package/models/components/agentstartedstreamingevent.js +11 -12
  97. package/models/components/agentstartedstreamingevent.js.map +1 -1
  98. package/models/components/agentthoughtstreamingevent.d.ts +26 -24
  99. package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
  100. package/models/components/agentthoughtstreamingevent.js +34 -32
  101. package/models/components/agentthoughtstreamingevent.js.map +1 -1
  102. package/models/components/conversationresponse.d.ts +39 -5
  103. package/models/components/conversationresponse.d.ts.map +1 -1
  104. package/models/components/conversationresponse.js +52 -8
  105. package/models/components/conversationresponse.js.map +1 -1
  106. package/models/components/createagentresponse.d.ts +124 -0
  107. package/models/components/createagentresponse.d.ts.map +1 -0
  108. package/models/components/createagentresponse.js +191 -0
  109. package/models/components/createagentresponse.js.map +1 -0
  110. package/models/components/imagecontentpartschema.d.ts +18 -18
  111. package/models/components/imagecontentpartschema.d.ts.map +1 -1
  112. package/models/components/imagecontentpartschema.js +23 -21
  113. package/models/components/imagecontentpartschema.js.map +1 -1
  114. package/models/components/index.d.ts +18 -0
  115. package/models/components/index.d.ts.map +1 -1
  116. package/models/components/index.js +18 -0
  117. package/models/components/index.js.map +1 -1
  118. package/models/components/invokedeploymentrequest.d.ts +161 -1040
  119. package/models/components/invokedeploymentrequest.d.ts.map +1 -1
  120. package/models/components/invokedeploymentrequest.js +161 -1015
  121. package/models/components/invokedeploymentrequest.js.map +1 -1
  122. package/models/components/partdoneevent.js +2 -2
  123. package/models/components/reasoningpart.js +2 -2
  124. package/models/components/responsedoneevent.d.ts +24 -24
  125. package/models/components/responsedoneevent.d.ts.map +1 -1
  126. package/models/components/responsedoneevent.js +31 -32
  127. package/models/components/responsedoneevent.js.map +1 -1
  128. package/models/components/toolexecutionfailedstreamingevent.d.ts +2 -0
  129. package/models/components/toolexecutionfailedstreamingevent.d.ts.map +1 -1
  130. package/models/components/toolexecutionfailedstreamingevent.js +2 -0
  131. package/models/components/toolexecutionfailedstreamingevent.js.map +1 -1
  132. package/models/components/toolexecutionfinishedstreamingevent.d.ts +2 -0
  133. package/models/components/toolexecutionfinishedstreamingevent.d.ts.map +1 -1
  134. package/models/components/toolexecutionfinishedstreamingevent.js +2 -0
  135. package/models/components/toolexecutionfinishedstreamingevent.js.map +1 -1
  136. package/models/components/toolexecutionstartedstreamingevent.d.ts +2 -0
  137. package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -1
  138. package/models/components/toolexecutionstartedstreamingevent.js +2 -0
  139. package/models/components/toolexecutionstartedstreamingevent.js.map +1 -1
  140. package/models/errors/generateconversationname.d.ts +55 -0
  141. package/models/errors/generateconversationname.d.ts.map +1 -0
  142. package/models/errors/generateconversationname.js +106 -0
  143. package/models/errors/generateconversationname.js.map +1 -0
  144. package/models/errors/index.d.ts +5 -0
  145. package/models/errors/index.d.ts.map +1 -1
  146. package/models/errors/index.js +5 -0
  147. package/models/errors/index.js.map +1 -1
  148. package/models/operations/createagentrequest.d.ts +3 -0
  149. package/models/operations/createagentrequest.d.ts.map +1 -1
  150. package/models/operations/createagentrequest.js +4 -4
  151. package/models/operations/createagentrequest.js.map +1 -1
  152. package/models/operations/createagentresponserequest.d.ts +37 -147
  153. package/models/operations/createagentresponserequest.d.ts.map +1 -1
  154. package/models/operations/createagentresponserequest.js +64 -205
  155. package/models/operations/createagentresponserequest.js.map +1 -1
  156. package/models/operations/createbudget.d.ts +69 -13
  157. package/models/operations/createbudget.d.ts.map +1 -1
  158. package/models/operations/createbudget.js +61 -12
  159. package/models/operations/createbudget.js.map +1 -1
  160. package/models/operations/createcontact.js +2 -2
  161. package/models/operations/createconversation.d.ts +62 -8
  162. package/models/operations/createconversation.d.ts.map +1 -1
  163. package/models/operations/createconversation.js +94 -10
  164. package/models/operations/createconversation.js.map +1 -1
  165. package/models/operations/createdataset.js +2 -2
  166. package/models/operations/createdatasetitem.d.ts +154 -1034
  167. package/models/operations/createdatasetitem.d.ts.map +1 -1
  168. package/models/operations/createdatasetitem.js +149 -959
  169. package/models/operations/createdatasetitem.js.map +1 -1
  170. package/models/operations/createdatasource.js +2 -2
  171. package/models/operations/createeval.js +28 -28
  172. package/models/operations/creatememory.d.ts +10 -5
  173. package/models/operations/creatememory.d.ts.map +1 -1
  174. package/models/operations/creatememory.js +6 -2
  175. package/models/operations/creatememory.js.map +1 -1
  176. package/models/operations/creatememorydocument.d.ts +4 -4
  177. package/models/operations/creatememorydocument.d.ts.map +1 -1
  178. package/models/operations/creatememorydocument.js +2 -2
  179. package/models/operations/creatememorydocument.js.map +1 -1
  180. package/models/operations/createprompt.d.ts +136 -479
  181. package/models/operations/createprompt.d.ts.map +1 -1
  182. package/models/operations/createprompt.js +158 -473
  183. package/models/operations/createprompt.js.map +1 -1
  184. package/models/operations/createtool.js +12 -12
  185. package/models/operations/deploymentcreatemetric.d.ts +154 -1034
  186. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  187. package/models/operations/deploymentcreatemetric.js +140 -975
  188. package/models/operations/deploymentcreatemetric.js.map +1 -1
  189. package/models/operations/deploymentgetconfig.d.ts +222 -1102
  190. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  191. package/models/operations/deploymentgetconfig.js +263 -1059
  192. package/models/operations/deploymentgetconfig.js.map +1 -1
  193. package/models/operations/deploymentinvoke.d.ts +27 -26
  194. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  195. package/models/operations/deploymentinvoke.js +29 -28
  196. package/models/operations/deploymentinvoke.js.map +1 -1
  197. package/models/operations/deployments.d.ts +14 -13
  198. package/models/operations/deployments.d.ts.map +1 -1
  199. package/models/operations/deployments.js +14 -13
  200. package/models/operations/deployments.js.map +1 -1
  201. package/models/operations/deploymentstream.d.ts +187 -1066
  202. package/models/operations/deploymentstream.d.ts.map +1 -1
  203. package/models/operations/deploymentstream.js +163 -989
  204. package/models/operations/deploymentstream.js.map +1 -1
  205. package/models/operations/fileget.js +2 -2
  206. package/models/operations/filelist.js +2 -2
  207. package/models/operations/fileupload.d.ts +8 -8
  208. package/models/operations/fileupload.d.ts.map +1 -1
  209. package/models/operations/fileupload.js +13 -14
  210. package/models/operations/fileupload.js.map +1 -1
  211. package/models/operations/generateconversationname.d.ts +136 -0
  212. package/models/operations/generateconversationname.d.ts.map +1 -0
  213. package/models/operations/generateconversationname.js +179 -0
  214. package/models/operations/generateconversationname.js.map +1 -0
  215. package/models/operations/getallmemories.d.ts +10 -0
  216. package/models/operations/getallmemories.d.ts.map +1 -1
  217. package/models/operations/getallmemories.js +6 -0
  218. package/models/operations/getallmemories.js.map +1 -1
  219. package/models/operations/getallmemorydocuments.d.ts +10 -0
  220. package/models/operations/getallmemorydocuments.d.ts.map +1 -1
  221. package/models/operations/getallmemorydocuments.js +8 -0
  222. package/models/operations/getallmemorydocuments.js.map +1 -1
  223. package/models/operations/getallprompts.d.ts +14 -13
  224. package/models/operations/getallprompts.d.ts.map +1 -1
  225. package/models/operations/getallprompts.js +14 -13
  226. package/models/operations/getallprompts.js.map +1 -1
  227. package/models/operations/getalltools.js +12 -12
  228. package/models/operations/getbudget.d.ts +5 -0
  229. package/models/operations/getbudget.d.ts.map +1 -1
  230. package/models/operations/getbudget.js +6 -2
  231. package/models/operations/getbudget.js.map +1 -1
  232. package/models/operations/getevals.js +28 -28
  233. package/models/operations/getoneprompt.d.ts +14 -13
  234. package/models/operations/getoneprompt.d.ts.map +1 -1
  235. package/models/operations/getoneprompt.js +14 -13
  236. package/models/operations/getoneprompt.js.map +1 -1
  237. package/models/operations/getpromptversion.d.ts +14 -13
  238. package/models/operations/getpromptversion.d.ts.map +1 -1
  239. package/models/operations/getpromptversion.js +14 -13
  240. package/models/operations/getpromptversion.js.map +1 -1
  241. package/models/operations/index.d.ts +7 -0
  242. package/models/operations/index.d.ts.map +1 -1
  243. package/models/operations/index.js +7 -0
  244. package/models/operations/index.js.map +1 -1
  245. package/models/operations/invokeagent.d.ts +6 -6
  246. package/models/operations/invokeagent.d.ts.map +1 -1
  247. package/models/operations/invokeagent.js +10 -9
  248. package/models/operations/invokeagent.js.map +1 -1
  249. package/models/operations/listagents.d.ts +3 -0
  250. package/models/operations/listagents.d.ts.map +1 -1
  251. package/models/operations/listagents.js +2 -2
  252. package/models/operations/listagents.js.map +1 -1
  253. package/models/operations/listbudgets.d.ts +5 -0
  254. package/models/operations/listbudgets.d.ts.map +1 -1
  255. package/models/operations/listbudgets.js +6 -2
  256. package/models/operations/listbudgets.js.map +1 -1
  257. package/models/operations/listcontacts.d.ts +5 -0
  258. package/models/operations/listcontacts.d.ts.map +1 -1
  259. package/models/operations/listcontacts.js +4 -2
  260. package/models/operations/listcontacts.js.map +1 -1
  261. package/models/operations/listconversations.d.ts +60 -0
  262. package/models/operations/listconversations.d.ts.map +1 -0
  263. package/models/operations/listconversations.js +109 -0
  264. package/models/operations/listconversations.js.map +1 -0
  265. package/models/operations/listdatasetdatapoints.d.ts +76 -516
  266. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  267. package/models/operations/listdatasetdatapoints.js +75 -475
  268. package/models/operations/listdatasetdatapoints.js.map +1 -1
  269. package/models/operations/listdatasets.js +2 -2
  270. package/models/operations/listdatasources.js +2 -2
  271. package/models/operations/listpromptversions.d.ts +14 -13
  272. package/models/operations/listpromptversions.d.ts.map +1 -1
  273. package/models/operations/listpromptversions.js +14 -13
  274. package/models/operations/listpromptversions.js.map +1 -1
  275. package/models/operations/retrieveagentrequest.d.ts +3 -0
  276. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  277. package/models/operations/retrieveagentrequest.js +2 -2
  278. package/models/operations/retrieveagentrequest.js.map +1 -1
  279. package/models/operations/retrievecontact.js +2 -2
  280. package/models/operations/retrieveconversation.d.ts +39 -5
  281. package/models/operations/retrieveconversation.d.ts.map +1 -1
  282. package/models/operations/retrieveconversation.js +53 -8
  283. package/models/operations/retrieveconversation.js.map +1 -1
  284. package/models/operations/retrievedatapoint.d.ts +76 -516
  285. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  286. package/models/operations/retrievedatapoint.js +75 -473
  287. package/models/operations/retrievedatapoint.js.map +1 -1
  288. package/models/operations/retrievedataset.js +2 -2
  289. package/models/operations/retrievedatasource.js +2 -2
  290. package/models/operations/retrievememory.d.ts +5 -0
  291. package/models/operations/retrievememory.d.ts.map +1 -1
  292. package/models/operations/retrievememory.js +4 -0
  293. package/models/operations/retrievememory.js.map +1 -1
  294. package/models/operations/retrievetool.js +12 -12
  295. package/models/operations/runagent.js +4 -4
  296. package/models/operations/streamrunagent.js +4 -4
  297. package/models/operations/updateagent.d.ts +3 -0
  298. package/models/operations/updateagent.d.ts.map +1 -1
  299. package/models/operations/updateagent.js +4 -4
  300. package/models/operations/updateagent.js.map +1 -1
  301. package/models/operations/updatebudget.d.ts +5 -0
  302. package/models/operations/updatebudget.d.ts.map +1 -1
  303. package/models/operations/updatebudget.js +6 -2
  304. package/models/operations/updatebudget.js.map +1 -1
  305. package/models/operations/updatecontact.js +2 -2
  306. package/models/operations/updateconversation.d.ts +63 -6
  307. package/models/operations/updateconversation.d.ts.map +1 -1
  308. package/models/operations/updateconversation.js +93 -9
  309. package/models/operations/updateconversation.js.map +1 -1
  310. package/models/operations/updatedatapoint.d.ts +154 -1034
  311. package/models/operations/updatedatapoint.d.ts.map +1 -1
  312. package/models/operations/updatedatapoint.js +147 -955
  313. package/models/operations/updatedatapoint.js.map +1 -1
  314. package/models/operations/updatedataset.js +2 -2
  315. package/models/operations/updatedatasource.js +2 -2
  316. package/models/operations/updateeval.js +28 -28
  317. package/models/operations/updatememory.d.ts +10 -5
  318. package/models/operations/updatememory.d.ts.map +1 -1
  319. package/models/operations/updatememory.js +6 -2
  320. package/models/operations/updatememory.js.map +1 -1
  321. package/models/operations/updatememorydocument.d.ts +4 -4
  322. package/models/operations/updatememorydocument.d.ts.map +1 -1
  323. package/models/operations/updatememorydocument.js +2 -2
  324. package/models/operations/updatememorydocument.js.map +1 -1
  325. package/models/operations/updatememorystore.d.ts +24 -59
  326. package/models/operations/updatememorystore.d.ts.map +1 -1
  327. package/models/operations/updatememorystore.js +27 -55
  328. package/models/operations/updatememorystore.js.map +1 -1
  329. package/models/operations/updateprompt.d.ts +149 -486
  330. package/models/operations/updateprompt.d.ts.map +1 -1
  331. package/models/operations/updateprompt.js +156 -466
  332. package/models/operations/updateprompt.js.map +1 -1
  333. package/models/operations/updatetool.js +14 -14
  334. package/package.json +1 -1
  335. package/sdk/budgets.d.ts +1 -1
  336. package/sdk/budgets.js +1 -1
  337. package/sdk/conversations.d.ts +47 -0
  338. package/sdk/conversations.d.ts.map +1 -0
  339. package/sdk/conversations.js +72 -0
  340. package/sdk/conversations.js.map +1 -0
  341. package/sdk/evals.d.ts +4 -0
  342. package/sdk/evals.d.ts.map +1 -1
  343. package/sdk/evals.js +7 -0
  344. package/sdk/evals.js.map +1 -1
  345. package/sdk/responses.d.ts +5 -1
  346. package/sdk/responses.d.ts.map +1 -1
  347. package/sdk/responses.js +3 -1
  348. package/sdk/responses.js.map +1 -1
  349. package/sdk/sdk.d.ts +3 -0
  350. package/sdk/sdk.d.ts.map +1 -1
  351. package/sdk/sdk.js +4 -0
  352. package/sdk/sdk.js.map +1 -1
  353. package/src/funcs/agentsResponsesCreate.ts +14 -10
  354. package/src/funcs/budgetsCreate.ts +1 -1
  355. package/src/funcs/contactsList.ts +1 -0
  356. package/src/funcs/conversationsCreate.ts +161 -0
  357. package/src/funcs/conversationsDelete.ts +180 -0
  358. package/src/funcs/conversationsGenerateName.ts +194 -0
  359. package/src/funcs/conversationsList.ts +181 -0
  360. package/src/funcs/conversationsRetrieve.ts +180 -0
  361. package/src/funcs/conversationsUpdate.ts +184 -0
  362. package/src/funcs/evalsInvoke.ts +177 -0
  363. package/src/funcs/memoryStoresListDocuments.ts +2 -0
  364. package/src/funcs/memoryStoresListMemories.ts +1 -0
  365. package/src/lib/config.ts +3 -3
  366. package/src/mcp-server/mcp-server.ts +1 -1
  367. package/src/mcp-server/server.ts +15 -1
  368. package/src/mcp-server/tools/budgetsCreate.ts +1 -1
  369. package/src/mcp-server/tools/conversationsCreate.ts +37 -0
  370. package/src/mcp-server/tools/conversationsDelete.ts +35 -0
  371. package/src/mcp-server/tools/conversationsGenerateName.ts +40 -0
  372. package/src/mcp-server/tools/conversationsList.ts +41 -0
  373. package/src/mcp-server/tools/conversationsRetrieve.ts +37 -0
  374. package/src/mcp-server/tools/conversationsUpdate.ts +40 -0
  375. package/src/mcp-server/tools/evalsInvoke.ts +35 -0
  376. package/src/models/components/agentexecutionstartedstreamingevent.ts +53 -34
  377. package/src/models/components/agentinactivestreamingevent.ts +85 -57
  378. package/src/models/components/agentresponsemessage.ts +185 -0
  379. package/src/models/components/agentstartedstreamingevent.ts +30 -21
  380. package/src/models/components/agentthoughtstreamingevent.ts +167 -118
  381. package/src/models/components/conversationresponse.ts +100 -12
  382. package/src/models/components/createagentresponse.ts +340 -0
  383. package/src/models/components/imagecontentpartschema.ts +52 -37
  384. package/src/models/components/index.ts +18 -0
  385. package/src/models/components/invokedeploymentrequest.ts +515 -2564
  386. package/src/models/components/partdoneevent.ts +2 -2
  387. package/src/models/components/reasoningpart.ts +2 -2
  388. package/src/models/components/responsedoneevent.ts +93 -68
  389. package/src/models/components/toolexecutionfailedstreamingevent.ts +4 -0
  390. package/src/models/components/toolexecutionfinishedstreamingevent.ts +4 -0
  391. package/src/models/components/toolexecutionstartedstreamingevent.ts +4 -0
  392. package/src/models/errors/generateconversationname.ts +132 -0
  393. package/src/models/errors/index.ts +5 -0
  394. package/src/models/operations/createagentrequest.ts +7 -4
  395. package/src/models/operations/createagentresponserequest.ts +126 -435
  396. package/src/models/operations/createbudget.ts +143 -28
  397. package/src/models/operations/createcontact.ts +2 -2
  398. package/src/models/operations/createconversation.ts +192 -17
  399. package/src/models/operations/createdataset.ts +2 -2
  400. package/src/models/operations/createdatasetitem.ts +601 -2786
  401. package/src/models/operations/createdatasource.ts +2 -2
  402. package/src/models/operations/createeval.ts +28 -28
  403. package/src/models/operations/creatememory.ts +14 -5
  404. package/src/models/operations/creatememorydocument.ts +4 -4
  405. package/src/models/operations/createprompt.ts +397 -1201
  406. package/src/models/operations/createtool.ts +12 -12
  407. package/src/models/operations/deploymentcreatemetric.ts +601 -3040
  408. package/src/models/operations/deploymentgetconfig.ts +824 -2901
  409. package/src/models/operations/deploymentinvoke.ts +47 -46
  410. package/src/models/operations/deployments.ts +16 -15
  411. package/src/models/operations/deploymentstream.ts +727 -2977
  412. package/src/models/operations/fileget.ts +2 -2
  413. package/src/models/operations/filelist.ts +2 -2
  414. package/src/models/operations/fileupload.ts +30 -27
  415. package/src/models/operations/generateconversationname.ts +341 -0
  416. package/src/models/operations/getallmemories.ts +16 -0
  417. package/src/models/operations/getallmemorydocuments.ts +22 -0
  418. package/src/models/operations/getallprompts.ts +16 -15
  419. package/src/models/operations/getalltools.ts +12 -12
  420. package/src/models/operations/getbudget.ts +11 -2
  421. package/src/models/operations/getevals.ts +28 -28
  422. package/src/models/operations/getoneprompt.ts +16 -15
  423. package/src/models/operations/getpromptversion.ts +16 -15
  424. package/src/models/operations/index.ts +7 -0
  425. package/src/models/operations/invokeagent.ts +19 -26
  426. package/src/models/operations/listagents.ts +5 -2
  427. package/src/models/operations/listbudgets.ts +11 -2
  428. package/src/models/operations/listcontacts.ts +9 -2
  429. package/src/models/operations/listconversations.ts +161 -0
  430. package/src/models/operations/listdatasetdatapoints.ts +288 -1355
  431. package/src/models/operations/listdatasets.ts +2 -2
  432. package/src/models/operations/listdatasources.ts +2 -2
  433. package/src/models/operations/listpromptversions.ts +16 -15
  434. package/src/models/operations/retrieveagentrequest.ts +5 -2
  435. package/src/models/operations/retrievecontact.ts +2 -2
  436. package/src/models/operations/retrieveconversation.ts +107 -12
  437. package/src/models/operations/retrievedatapoint.ts +263 -1288
  438. package/src/models/operations/retrievedataset.ts +2 -2
  439. package/src/models/operations/retrievedatasource.ts +2 -2
  440. package/src/models/operations/retrievememory.ts +9 -0
  441. package/src/models/operations/retrievetool.ts +12 -12
  442. package/src/models/operations/runagent.ts +4 -4
  443. package/src/models/operations/streamrunagent.ts +4 -4
  444. package/src/models/operations/updateagent.ts +7 -4
  445. package/src/models/operations/updatebudget.ts +11 -2
  446. package/src/models/operations/updatecontact.ts +2 -2
  447. package/src/models/operations/updateconversation.ts +192 -14
  448. package/src/models/operations/updatedatapoint.ts +556 -2717
  449. package/src/models/operations/updatedataset.ts +2 -2
  450. package/src/models/operations/updatedatasource.ts +2 -2
  451. package/src/models/operations/updateeval.ts +28 -28
  452. package/src/models/operations/updatememory.ts +14 -5
  453. package/src/models/operations/updatememorydocument.ts +4 -4
  454. package/src/models/operations/updatememorystore.ts +64 -154
  455. package/src/models/operations/updateprompt.ts +385 -1144
  456. package/src/models/operations/updatetool.ts +14 -14
  457. package/src/sdk/budgets.ts +1 -1
  458. package/src/sdk/conversations.ts +125 -0
  459. package/src/sdk/evals.ts +15 -0
  460. package/src/sdk/responses.ts +8 -3
  461. package/src/sdk/sdk.ts +6 -0
@@ -284,29 +284,30 @@ export type UpdatePromptModelParameters = {
284
284
  };
285
285
 
286
286
  export const Provider = {
287
- Cohere: "cohere",
288
287
  Openai: "openai",
289
- Anthropic: "anthropic",
290
- Huggingface: "huggingface",
291
- Replicate: "replicate",
292
- Google: "google",
293
- GoogleAi: "google-ai",
288
+ Groq: "groq",
289
+ Cohere: "cohere",
294
290
  Azure: "azure",
295
291
  Aws: "aws",
296
- Anyscale: "anyscale",
292
+ Google: "google",
293
+ GoogleAi: "google-ai",
294
+ Huggingface: "huggingface",
295
+ Togetherai: "togetherai",
297
296
  Perplexity: "perplexity",
298
- Groq: "groq",
299
- Fal: "fal",
297
+ Anthropic: "anthropic",
300
298
  Leonardoai: "leonardoai",
299
+ Fal: "fal",
301
300
  Nvidia: "nvidia",
302
301
  Jina: "jina",
303
- Togetherai: "togetherai",
304
302
  Elevenlabs: "elevenlabs",
305
303
  Litellm: "litellm",
306
- Openailike: "openailike",
307
304
  Cerebras: "cerebras",
305
+ Openailike: "openailike",
308
306
  Bytedance: "bytedance",
309
307
  Mistral: "mistral",
308
+ Deepseek: "deepseek",
309
+ Contextualai: "contextualai",
310
+ Moonshotai: "moonshotai",
310
311
  } as const;
311
312
  export type Provider = ClosedEnum<typeof Provider>;
312
313
 
@@ -347,7 +348,7 @@ export type UpdatePrompt2File = {
347
348
  filename?: string | undefined;
348
349
  };
349
350
 
350
- export type Two3 = {
351
+ export type UpdatePrompt23 = {
351
352
  /**
352
353
  * The type of the content part. Always `file`.
353
354
  */
@@ -355,7 +356,7 @@ export type Two3 = {
355
356
  file: UpdatePrompt2File;
356
357
  };
357
358
 
358
- export type TwoImageUrl = {
359
+ export type UpdatePrompt2ImageUrl = {
359
360
  /**
360
361
  * Either a URL of the image or the base64 encoded data URI.
361
362
  */
@@ -371,7 +372,7 @@ export type TwoImageUrl = {
371
372
  */
372
373
  export type UpdatePrompt22 = {
373
374
  type: "image_url";
374
- imageUrl: TwoImageUrl;
375
+ imageUrl: UpdatePrompt2ImageUrl;
375
376
  };
376
377
 
377
378
  /**
@@ -382,14 +383,17 @@ export type UpdatePrompt21 = {
382
383
  text: string;
383
384
  };
384
385
 
385
- export type UpdatePromptContent2 = UpdatePrompt21 | UpdatePrompt22 | Two3;
386
+ export type UpdatePromptContent2 =
387
+ | UpdatePrompt21
388
+ | UpdatePrompt22
389
+ | UpdatePrompt23;
386
390
 
387
391
  /**
388
392
  * 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.
389
393
  */
390
394
  export type UpdatePromptContent =
391
395
  | string
392
- | Array<UpdatePrompt21 | UpdatePrompt22 | Two3>;
396
+ | Array<UpdatePrompt21 | UpdatePrompt22 | UpdatePrompt23>;
393
397
 
394
398
  export const UpdatePromptType = {
395
399
  Function: "function",
@@ -419,9 +423,12 @@ export type UpdatePromptMessages = {
419
423
  /**
420
424
  * 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.
421
425
  */
422
- content: string | Array<UpdatePrompt21 | UpdatePrompt22 | Two3> | null;
426
+ content:
427
+ | string
428
+ | Array<UpdatePrompt21 | UpdatePrompt22 | UpdatePrompt23>
429
+ | null;
423
430
  toolCalls?: Array<UpdatePromptToolCalls> | undefined;
424
- toolCallId?: string | undefined;
431
+ toolCallId?: string | null | undefined;
425
432
  };
426
433
 
427
434
  /**
@@ -456,6 +463,10 @@ export type PromptConfig = {
456
463
  */
457
464
  modelParameters?: UpdatePromptModelParameters | undefined;
458
465
  provider?: Provider | undefined;
466
+ /**
467
+ * The ID of the integration to use
468
+ */
469
+ integrationId?: string | null | undefined;
459
470
  version?: string | undefined;
460
471
  messages: Array<UpdatePromptMessages>;
461
472
  modelDbId?: string | null | undefined;
@@ -518,88 +529,15 @@ export type UpdatePromptMetadata = {
518
529
  language?: UpdatePromptLanguage | null | undefined;
519
530
  };
520
531
 
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;
532
+ export type UpdatePromptContentPromptsRequestRequestBody2 =
533
+ components.TextContentPartSchema;
596
534
 
597
535
  /**
598
536
  * The contents of the tool message.
599
537
  */
600
538
  export type UpdatePromptMessagesPromptsRequestRequestBodyContent =
601
539
  | string
602
- | Array<UpdatePrompt2PromptsRequestRequestBody1>;
540
+ | Array<components.TextContentPartSchema>;
603
541
 
604
542
  /**
605
543
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
@@ -668,7 +606,7 @@ export type UpdatePromptMessagesToolMessage = {
668
606
  /**
669
607
  * The contents of the tool message.
670
608
  */
671
- content: string | Array<UpdatePrompt2PromptsRequestRequestBody1>;
609
+ content: string | Array<components.TextContentPartSchema>;
672
610
  /**
673
611
  * Tool call that this message is responding to.
674
612
  */
@@ -676,75 +614,8 @@ export type UpdatePromptMessagesToolMessage = {
676
614
  cacheControl?: UpdatePromptMessagesCacheControl | undefined;
677
615
  };
678
616
 
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
617
+ export type UpdatePromptContentPromptsRequest2 =
618
+ | (components.TextContentPartSchema & { type: "text" })
748
619
  | components.RefusalPartSchema
749
620
  | components.ReasoningPartSchema
750
621
  | components.RedactedReasoningPartSchema;
@@ -755,7 +626,7 @@ export type UpdatePromptContentPromptsRequestRequestBody2 =
755
626
  export type UpdatePromptMessagesPromptsRequestContent =
756
627
  | string
757
628
  | Array<
758
- | UpdatePrompt2PromptsRequest1
629
+ | (components.TextContentPartSchema & { type: "text" })
759
630
  | components.RefusalPartSchema
760
631
  | components.ReasoningPartSchema
761
632
  | components.RedactedReasoningPartSchema
@@ -818,7 +689,7 @@ export type UpdatePromptMessagesAssistantMessage = {
818
689
  content?:
819
690
  | string
820
691
  | Array<
821
- | UpdatePrompt2PromptsRequest1
692
+ | (components.TextContentPartSchema & { type: "text" })
822
693
  | components.RefusalPartSchema
823
694
  | components.ReasoningPartSchema
824
695
  | components.RedactedReasoningPartSchema
@@ -847,76 +718,6 @@ export type UpdatePromptMessagesAssistantMessage = {
847
718
  toolCalls?: Array<UpdatePromptMessagesToolCalls> | undefined;
848
719
  };
849
720
 
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
-
920
721
  /**
921
722
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
922
723
  */
@@ -974,14 +775,20 @@ export type UpdatePrompt2CacheControl = {
974
775
  ttl?: UpdatePrompt2Ttl | undefined;
975
776
  };
976
777
 
977
- export type UpdatePrompt2Prompts1 = {
978
- type: "text";
979
- text: string;
778
+ export type UpdatePrompt24 = {
779
+ /**
780
+ * The type of the content part. Always `file`.
781
+ */
782
+ type: "file";
980
783
  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;
981
788
  };
982
789
 
983
- export type UpdatePromptContentPromptsRequest2 =
984
- | UpdatePrompt2Prompts1
790
+ export type UpdatePromptContentPrompts2 =
791
+ | (components.TextContentPartSchema & { type: "text" })
985
792
  | components.ImageContentPartSchema
986
793
  | components.AudioContentPartSchema
987
794
  | UpdatePrompt24;
@@ -992,7 +799,7 @@ export type UpdatePromptContentPromptsRequest2 =
992
799
  export type UpdatePromptMessagesPromptsContent =
993
800
  | string
994
801
  | Array<
995
- | UpdatePrompt2Prompts1
802
+ | (components.TextContentPartSchema & { type: "text" })
996
803
  | components.ImageContentPartSchema
997
804
  | components.AudioContentPartSchema
998
805
  | UpdatePrompt24
@@ -1013,89 +820,19 @@ export type UpdatePromptMessagesUserMessage = {
1013
820
  content:
1014
821
  | string
1015
822
  | Array<
1016
- | UpdatePrompt2Prompts1
823
+ | (components.TextContentPartSchema & { type: "text" })
1017
824
  | components.ImageContentPartSchema
1018
825
  | components.AudioContentPartSchema
1019
826
  | UpdatePrompt24
1020
827
  >;
1021
828
  };
1022
829
 
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
-
1093
830
  /**
1094
831
  * The contents of the system message.
1095
832
  */
1096
833
  export type UpdatePromptMessagesContent =
1097
834
  | string
1098
- | Array<UpdatePromptContentPrompts2>;
835
+ | Array<components.TextContentPartSchema>;
1099
836
 
1100
837
  /**
1101
838
  * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
@@ -1108,7 +845,7 @@ export type UpdatePromptMessagesSystemMessage = {
1108
845
  /**
1109
846
  * The contents of the system message.
1110
847
  */
1111
- content: string | Array<UpdatePromptContentPrompts2>;
848
+ content: string | Array<components.TextContentPartSchema>;
1112
849
  /**
1113
850
  * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
1114
851
  */
@@ -1573,29 +1310,30 @@ export type UpdatePromptPromptsModelParameters = {
1573
1310
  };
1574
1311
 
1575
1312
  export const UpdatePromptProvider = {
1576
- Cohere: "cohere",
1577
1313
  Openai: "openai",
1578
- Anthropic: "anthropic",
1579
- Huggingface: "huggingface",
1580
- Replicate: "replicate",
1581
- Google: "google",
1582
- GoogleAi: "google-ai",
1314
+ Groq: "groq",
1315
+ Cohere: "cohere",
1583
1316
  Azure: "azure",
1584
1317
  Aws: "aws",
1585
- Anyscale: "anyscale",
1318
+ Google: "google",
1319
+ GoogleAi: "google-ai",
1320
+ Huggingface: "huggingface",
1321
+ Togetherai: "togetherai",
1586
1322
  Perplexity: "perplexity",
1587
- Groq: "groq",
1588
- Fal: "fal",
1323
+ Anthropic: "anthropic",
1589
1324
  Leonardoai: "leonardoai",
1325
+ Fal: "fal",
1590
1326
  Nvidia: "nvidia",
1591
1327
  Jina: "jina",
1592
- Togetherai: "togetherai",
1593
1328
  Elevenlabs: "elevenlabs",
1594
1329
  Litellm: "litellm",
1595
- Openailike: "openailike",
1596
1330
  Cerebras: "cerebras",
1331
+ Openailike: "openailike",
1597
1332
  Bytedance: "bytedance",
1598
1333
  Mistral: "mistral",
1334
+ Deepseek: "deepseek",
1335
+ Contextualai: "contextualai",
1336
+ Moonshotai: "moonshotai",
1599
1337
  } as const;
1600
1338
  export type UpdatePromptProvider = ClosedEnum<typeof UpdatePromptProvider>;
1601
1339
 
@@ -1638,7 +1376,7 @@ export type UpdatePrompt2PromptsFile = {
1638
1376
  filename?: string | undefined;
1639
1377
  };
1640
1378
 
1641
- export type UpdatePrompt23 = {
1379
+ export type UpdatePrompt2Prompts3 = {
1642
1380
  /**
1643
1381
  * The type of the content part. Always `file`.
1644
1382
  */
@@ -1646,7 +1384,7 @@ export type UpdatePrompt23 = {
1646
1384
  file: UpdatePrompt2PromptsFile;
1647
1385
  };
1648
1386
 
1649
- export type UpdatePrompt2ImageUrl = {
1387
+ export type UpdatePrompt2PromptsImageUrl = {
1650
1388
  /**
1651
1389
  * The orq.ai id of the image
1652
1390
  */
@@ -1666,21 +1404,21 @@ export type UpdatePrompt2ImageUrl = {
1666
1404
  */
1667
1405
  export type UpdatePrompt2Prompts2 = {
1668
1406
  type: "image_url";
1669
- imageUrl: UpdatePrompt2ImageUrl;
1407
+ imageUrl: UpdatePrompt2PromptsImageUrl;
1670
1408
  };
1671
1409
 
1672
1410
  /**
1673
1411
  * Text content part of a prompt message
1674
1412
  */
1675
- export type UpdatePrompt2PromptsResponse1 = {
1413
+ export type UpdatePrompt2Prompts1 = {
1676
1414
  type: "text";
1677
1415
  text: string;
1678
1416
  };
1679
1417
 
1680
1418
  export type UpdatePromptContentPromptsResponse2 =
1681
- | UpdatePrompt2PromptsResponse1
1419
+ | UpdatePrompt2Prompts1
1682
1420
  | UpdatePrompt2Prompts2
1683
- | UpdatePrompt23;
1421
+ | UpdatePrompt2Prompts3;
1684
1422
 
1685
1423
  /**
1686
1424
  * 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.
@@ -1688,7 +1426,7 @@ export type UpdatePromptContentPromptsResponse2 =
1688
1426
  export type UpdatePromptPromptsContent =
1689
1427
  | string
1690
1428
  | Array<
1691
- UpdatePrompt2PromptsResponse1 | UpdatePrompt2Prompts2 | UpdatePrompt23
1429
+ UpdatePrompt2Prompts1 | UpdatePrompt2Prompts2 | UpdatePrompt2Prompts3
1692
1430
  >;
1693
1431
 
1694
1432
  export const UpdatePromptPromptsResponseType = {
@@ -1724,11 +1462,11 @@ export type UpdatePromptPromptsResponseMessages = {
1724
1462
  content:
1725
1463
  | string
1726
1464
  | Array<
1727
- UpdatePrompt2PromptsResponse1 | UpdatePrompt2Prompts2 | UpdatePrompt23
1465
+ UpdatePrompt2Prompts1 | UpdatePrompt2Prompts2 | UpdatePrompt2Prompts3
1728
1466
  >
1729
1467
  | null;
1730
1468
  toolCalls?: Array<UpdatePromptPromptsToolCalls> | undefined;
1731
- toolCallId?: string | undefined;
1469
+ toolCallId?: string | null | undefined;
1732
1470
  };
1733
1471
 
1734
1472
  /**
@@ -2395,40 +2133,46 @@ export function updatePrompt2FileFromJSON(
2395
2133
  }
2396
2134
 
2397
2135
  /** @internal */
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
- });
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
+ });
2403
2144
  /** @internal */
2404
- export type Two3$Outbound = {
2145
+ export type UpdatePrompt23$Outbound = {
2405
2146
  type: "file";
2406
2147
  file: UpdatePrompt2File$Outbound;
2407
2148
  };
2408
2149
 
2409
2150
  /** @internal */
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
- });
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
+ });
2415
2159
 
2416
- export function two3ToJSON(two3: Two3): string {
2417
- return JSON.stringify(Two3$outboundSchema.parse(two3));
2160
+ export function updatePrompt23ToJSON(updatePrompt23: UpdatePrompt23): string {
2161
+ return JSON.stringify(UpdatePrompt23$outboundSchema.parse(updatePrompt23));
2418
2162
  }
2419
- export function two3FromJSON(
2163
+ export function updatePrompt23FromJSON(
2420
2164
  jsonString: string,
2421
- ): SafeParseResult<Two3, SDKValidationError> {
2165
+ ): SafeParseResult<UpdatePrompt23, SDKValidationError> {
2422
2166
  return safeParse(
2423
2167
  jsonString,
2424
- (x) => Two3$inboundSchema.parse(JSON.parse(x)),
2425
- `Failed to parse 'Two3' from JSON`,
2168
+ (x) => UpdatePrompt23$inboundSchema.parse(JSON.parse(x)),
2169
+ `Failed to parse 'UpdatePrompt23' from JSON`,
2426
2170
  );
2427
2171
  }
2428
2172
 
2429
2173
  /** @internal */
2430
- export const TwoImageUrl$inboundSchema: z.ZodType<
2431
- TwoImageUrl,
2174
+ export const UpdatePrompt2ImageUrl$inboundSchema: z.ZodType<
2175
+ UpdatePrompt2ImageUrl,
2432
2176
  z.ZodTypeDef,
2433
2177
  unknown
2434
2178
  > = z.object({
@@ -2436,31 +2180,35 @@ export const TwoImageUrl$inboundSchema: z.ZodType<
2436
2180
  detail: z.string().optional(),
2437
2181
  });
2438
2182
  /** @internal */
2439
- export type TwoImageUrl$Outbound = {
2183
+ export type UpdatePrompt2ImageUrl$Outbound = {
2440
2184
  url: string;
2441
2185
  detail?: string | undefined;
2442
2186
  };
2443
2187
 
2444
2188
  /** @internal */
2445
- export const TwoImageUrl$outboundSchema: z.ZodType<
2446
- TwoImageUrl$Outbound,
2189
+ export const UpdatePrompt2ImageUrl$outboundSchema: z.ZodType<
2190
+ UpdatePrompt2ImageUrl$Outbound,
2447
2191
  z.ZodTypeDef,
2448
- TwoImageUrl
2192
+ UpdatePrompt2ImageUrl
2449
2193
  > = z.object({
2450
2194
  url: z.string(),
2451
2195
  detail: z.string().optional(),
2452
2196
  });
2453
2197
 
2454
- export function twoImageUrlToJSON(twoImageUrl: TwoImageUrl): string {
2455
- return JSON.stringify(TwoImageUrl$outboundSchema.parse(twoImageUrl));
2198
+ export function updatePrompt2ImageUrlToJSON(
2199
+ updatePrompt2ImageUrl: UpdatePrompt2ImageUrl,
2200
+ ): string {
2201
+ return JSON.stringify(
2202
+ UpdatePrompt2ImageUrl$outboundSchema.parse(updatePrompt2ImageUrl),
2203
+ );
2456
2204
  }
2457
- export function twoImageUrlFromJSON(
2205
+ export function updatePrompt2ImageUrlFromJSON(
2458
2206
  jsonString: string,
2459
- ): SafeParseResult<TwoImageUrl, SDKValidationError> {
2207
+ ): SafeParseResult<UpdatePrompt2ImageUrl, SDKValidationError> {
2460
2208
  return safeParse(
2461
2209
  jsonString,
2462
- (x) => TwoImageUrl$inboundSchema.parse(JSON.parse(x)),
2463
- `Failed to parse 'TwoImageUrl' from JSON`,
2210
+ (x) => UpdatePrompt2ImageUrl$inboundSchema.parse(JSON.parse(x)),
2211
+ `Failed to parse 'UpdatePrompt2ImageUrl' from JSON`,
2464
2212
  );
2465
2213
  }
2466
2214
 
@@ -2471,7 +2219,7 @@ export const UpdatePrompt22$inboundSchema: z.ZodType<
2471
2219
  unknown
2472
2220
  > = z.object({
2473
2221
  type: z.literal("image_url"),
2474
- image_url: z.lazy(() => TwoImageUrl$inboundSchema),
2222
+ image_url: z.lazy(() => UpdatePrompt2ImageUrl$inboundSchema),
2475
2223
  }).transform((v) => {
2476
2224
  return remap$(v, {
2477
2225
  "image_url": "imageUrl",
@@ -2480,7 +2228,7 @@ export const UpdatePrompt22$inboundSchema: z.ZodType<
2480
2228
  /** @internal */
2481
2229
  export type UpdatePrompt22$Outbound = {
2482
2230
  type: "image_url";
2483
- image_url: TwoImageUrl$Outbound;
2231
+ image_url: UpdatePrompt2ImageUrl$Outbound;
2484
2232
  };
2485
2233
 
2486
2234
  /** @internal */
@@ -2490,7 +2238,7 @@ export const UpdatePrompt22$outboundSchema: z.ZodType<
2490
2238
  UpdatePrompt22
2491
2239
  > = z.object({
2492
2240
  type: z.literal("image_url"),
2493
- imageUrl: z.lazy(() => TwoImageUrl$outboundSchema),
2241
+ imageUrl: z.lazy(() => UpdatePrompt2ImageUrl$outboundSchema),
2494
2242
  }).transform((v) => {
2495
2243
  return remap$(v, {
2496
2244
  imageUrl: "image_url",
@@ -2556,13 +2304,13 @@ export const UpdatePromptContent2$inboundSchema: z.ZodType<
2556
2304
  > = z.union([
2557
2305
  z.lazy(() => UpdatePrompt21$inboundSchema),
2558
2306
  z.lazy(() => UpdatePrompt22$inboundSchema),
2559
- z.lazy(() => Two3$inboundSchema),
2307
+ z.lazy(() => UpdatePrompt23$inboundSchema),
2560
2308
  ]);
2561
2309
  /** @internal */
2562
2310
  export type UpdatePromptContent2$Outbound =
2563
2311
  | UpdatePrompt21$Outbound
2564
2312
  | UpdatePrompt22$Outbound
2565
- | Two3$Outbound;
2313
+ | UpdatePrompt23$Outbound;
2566
2314
 
2567
2315
  /** @internal */
2568
2316
  export const UpdatePromptContent2$outboundSchema: z.ZodType<
@@ -2572,7 +2320,7 @@ export const UpdatePromptContent2$outboundSchema: z.ZodType<
2572
2320
  > = z.union([
2573
2321
  z.lazy(() => UpdatePrompt21$outboundSchema),
2574
2322
  z.lazy(() => UpdatePrompt22$outboundSchema),
2575
- z.lazy(() => Two3$outboundSchema),
2323
+ z.lazy(() => UpdatePrompt23$outboundSchema),
2576
2324
  ]);
2577
2325
 
2578
2326
  export function updatePromptContent2ToJSON(
@@ -2602,13 +2350,15 @@ export const UpdatePromptContent$inboundSchema: z.ZodType<
2602
2350
  z.array(z.union([
2603
2351
  z.lazy(() => UpdatePrompt21$inboundSchema),
2604
2352
  z.lazy(() => UpdatePrompt22$inboundSchema),
2605
- z.lazy(() => Two3$inboundSchema),
2353
+ z.lazy(() => UpdatePrompt23$inboundSchema),
2606
2354
  ])),
2607
2355
  ]);
2608
2356
  /** @internal */
2609
2357
  export type UpdatePromptContent$Outbound =
2610
2358
  | string
2611
- | Array<UpdatePrompt21$Outbound | UpdatePrompt22$Outbound | Two3$Outbound>;
2359
+ | Array<
2360
+ UpdatePrompt21$Outbound | UpdatePrompt22$Outbound | UpdatePrompt23$Outbound
2361
+ >;
2612
2362
 
2613
2363
  /** @internal */
2614
2364
  export const UpdatePromptContent$outboundSchema: z.ZodType<
@@ -2620,7 +2370,7 @@ export const UpdatePromptContent$outboundSchema: z.ZodType<
2620
2370
  z.array(z.union([
2621
2371
  z.lazy(() => UpdatePrompt21$outboundSchema),
2622
2372
  z.lazy(() => UpdatePrompt22$outboundSchema),
2623
- z.lazy(() => Two3$outboundSchema),
2373
+ z.lazy(() => UpdatePrompt23$outboundSchema),
2624
2374
  ])),
2625
2375
  ]);
2626
2376
 
@@ -2753,13 +2503,13 @@ export const UpdatePromptMessages$inboundSchema: z.ZodType<
2753
2503
  z.array(z.union([
2754
2504
  z.lazy(() => UpdatePrompt21$inboundSchema),
2755
2505
  z.lazy(() => UpdatePrompt22$inboundSchema),
2756
- z.lazy(() => Two3$inboundSchema),
2506
+ z.lazy(() => UpdatePrompt23$inboundSchema),
2757
2507
  ])),
2758
2508
  ]),
2759
2509
  ),
2760
2510
  tool_calls: z.array(z.lazy(() => UpdatePromptToolCalls$inboundSchema))
2761
2511
  .optional(),
2762
- tool_call_id: z.string().optional(),
2512
+ tool_call_id: z.nullable(z.string()).optional(),
2763
2513
  }).transform((v) => {
2764
2514
  return remap$(v, {
2765
2515
  "tool_calls": "toolCalls",
@@ -2771,10 +2521,14 @@ export type UpdatePromptMessages$Outbound = {
2771
2521
  role: string;
2772
2522
  content:
2773
2523
  | string
2774
- | Array<UpdatePrompt21$Outbound | UpdatePrompt22$Outbound | Two3$Outbound>
2524
+ | Array<
2525
+ | UpdatePrompt21$Outbound
2526
+ | UpdatePrompt22$Outbound
2527
+ | UpdatePrompt23$Outbound
2528
+ >
2775
2529
  | null;
2776
2530
  tool_calls?: Array<UpdatePromptToolCalls$Outbound> | undefined;
2777
- tool_call_id?: string | undefined;
2531
+ tool_call_id?: string | null | undefined;
2778
2532
  };
2779
2533
 
2780
2534
  /** @internal */
@@ -2790,13 +2544,13 @@ export const UpdatePromptMessages$outboundSchema: z.ZodType<
2790
2544
  z.array(z.union([
2791
2545
  z.lazy(() => UpdatePrompt21$outboundSchema),
2792
2546
  z.lazy(() => UpdatePrompt22$outboundSchema),
2793
- z.lazy(() => Two3$outboundSchema),
2547
+ z.lazy(() => UpdatePrompt23$outboundSchema),
2794
2548
  ])),
2795
2549
  ]),
2796
2550
  ),
2797
2551
  toolCalls: z.array(z.lazy(() => UpdatePromptToolCalls$outboundSchema))
2798
2552
  .optional(),
2799
- toolCallId: z.string().optional(),
2553
+ toolCallId: z.nullable(z.string()).optional(),
2800
2554
  }).transform((v) => {
2801
2555
  return remap$(v, {
2802
2556
  toolCalls: "tool_calls",
@@ -2839,6 +2593,7 @@ export const PromptConfig$inboundSchema: z.ZodType<
2839
2593
  model_parameters: z.lazy(() => UpdatePromptModelParameters$inboundSchema)
2840
2594
  .optional(),
2841
2595
  provider: Provider$inboundSchema.optional(),
2596
+ integration_id: z.nullable(z.string()).optional(),
2842
2597
  version: z.string().optional(),
2843
2598
  messages: z.array(z.lazy(() => UpdatePromptMessages$inboundSchema)),
2844
2599
  model_db_id: z.nullable(z.string()).optional(),
@@ -2847,6 +2602,7 @@ export const PromptConfig$inboundSchema: z.ZodType<
2847
2602
  }).transform((v) => {
2848
2603
  return remap$(v, {
2849
2604
  "model_parameters": "modelParameters",
2605
+ "integration_id": "integrationId",
2850
2606
  "model_db_id": "modelDbId",
2851
2607
  "model_type": "modelType",
2852
2608
  "is_private": "isPrivate",
@@ -2858,6 +2614,7 @@ export type PromptConfig$Outbound = {
2858
2614
  model?: string | undefined;
2859
2615
  model_parameters?: UpdatePromptModelParameters$Outbound | undefined;
2860
2616
  provider?: string | undefined;
2617
+ integration_id?: string | null | undefined;
2861
2618
  version?: string | undefined;
2862
2619
  messages: Array<UpdatePromptMessages$Outbound>;
2863
2620
  model_db_id?: string | null | undefined;
@@ -2876,6 +2633,7 @@ export const PromptConfig$outboundSchema: z.ZodType<
2876
2633
  modelParameters: z.lazy(() => UpdatePromptModelParameters$outboundSchema)
2877
2634
  .optional(),
2878
2635
  provider: Provider$outboundSchema.optional(),
2636
+ integrationId: z.nullable(z.string()).optional(),
2879
2637
  version: z.string().optional(),
2880
2638
  messages: z.array(z.lazy(() => UpdatePromptMessages$outboundSchema)),
2881
2639
  modelDbId: z.nullable(z.string()).optional(),
@@ -2884,6 +2642,7 @@ export const PromptConfig$outboundSchema: z.ZodType<
2884
2642
  }).transform((v) => {
2885
2643
  return remap$(v, {
2886
2644
  modelParameters: "model_parameters",
2645
+ integrationId: "integration_id",
2887
2646
  modelDbId: "model_db_id",
2888
2647
  modelType: "model_type",
2889
2648
  isPrivate: "is_private",
@@ -2962,215 +2721,57 @@ export function updatePromptMetadataToJSON(
2962
2721
  );
2963
2722
  }
2964
2723
  export function updatePromptMetadataFromJSON(
2965
- jsonString: string,
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
- > {
2724
+ jsonString: string,
2725
+ ): SafeParseResult<UpdatePromptMetadata, SDKValidationError> {
3122
2726
  return safeParse(
3123
2727
  jsonString,
3124
- (x) =>
3125
- UpdatePrompt2PromptsRequestRequestBody1$inboundSchema.parse(
3126
- JSON.parse(x),
3127
- ),
3128
- `Failed to parse 'UpdatePrompt2PromptsRequestRequestBody1' from JSON`,
2728
+ (x) => UpdatePromptMetadata$inboundSchema.parse(JSON.parse(x)),
2729
+ `Failed to parse 'UpdatePromptMetadata' from JSON`,
3129
2730
  );
3130
2731
  }
3131
2732
 
3132
2733
  /** @internal */
3133
- export const UpdatePromptContentPromptsRequestRequestBodyPrompt2$inboundSchema:
2734
+ export const UpdatePromptContentPromptsRequestRequestBody2$inboundSchema:
3134
2735
  z.ZodType<
3135
- UpdatePromptContentPromptsRequestRequestBodyPrompt2,
2736
+ UpdatePromptContentPromptsRequestRequestBody2,
3136
2737
  z.ZodTypeDef,
3137
2738
  unknown
3138
- > = z.lazy(() => UpdatePrompt2PromptsRequestRequestBody1$inboundSchema);
2739
+ > = components.TextContentPartSchema$inboundSchema;
3139
2740
  /** @internal */
3140
- export type UpdatePromptContentPromptsRequestRequestBodyPrompt2$Outbound =
3141
- UpdatePrompt2PromptsRequestRequestBody1$Outbound;
2741
+ export type UpdatePromptContentPromptsRequestRequestBody2$Outbound =
2742
+ components.TextContentPartSchema$Outbound;
3142
2743
 
3143
2744
  /** @internal */
3144
- export const UpdatePromptContentPromptsRequestRequestBodyPrompt2$outboundSchema:
2745
+ export const UpdatePromptContentPromptsRequestRequestBody2$outboundSchema:
3145
2746
  z.ZodType<
3146
- UpdatePromptContentPromptsRequestRequestBodyPrompt2$Outbound,
2747
+ UpdatePromptContentPromptsRequestRequestBody2$Outbound,
3147
2748
  z.ZodTypeDef,
3148
- UpdatePromptContentPromptsRequestRequestBodyPrompt2
3149
- > = z.lazy(() => UpdatePrompt2PromptsRequestRequestBody1$outboundSchema);
2749
+ UpdatePromptContentPromptsRequestRequestBody2
2750
+ > = components.TextContentPartSchema$outboundSchema;
3150
2751
 
3151
- export function updatePromptContentPromptsRequestRequestBodyPrompt2ToJSON(
3152
- updatePromptContentPromptsRequestRequestBodyPrompt2:
3153
- UpdatePromptContentPromptsRequestRequestBodyPrompt2,
2752
+ export function updatePromptContentPromptsRequestRequestBody2ToJSON(
2753
+ updatePromptContentPromptsRequestRequestBody2:
2754
+ UpdatePromptContentPromptsRequestRequestBody2,
3154
2755
  ): string {
3155
2756
  return JSON.stringify(
3156
- UpdatePromptContentPromptsRequestRequestBodyPrompt2$outboundSchema.parse(
3157
- updatePromptContentPromptsRequestRequestBodyPrompt2,
2757
+ UpdatePromptContentPromptsRequestRequestBody2$outboundSchema.parse(
2758
+ updatePromptContentPromptsRequestRequestBody2,
3158
2759
  ),
3159
2760
  );
3160
2761
  }
3161
- export function updatePromptContentPromptsRequestRequestBodyPrompt2FromJSON(
2762
+ export function updatePromptContentPromptsRequestRequestBody2FromJSON(
3162
2763
  jsonString: string,
3163
2764
  ): SafeParseResult<
3164
- UpdatePromptContentPromptsRequestRequestBodyPrompt2,
2765
+ UpdatePromptContentPromptsRequestRequestBody2,
3165
2766
  SDKValidationError
3166
2767
  > {
3167
2768
  return safeParse(
3168
2769
  jsonString,
3169
2770
  (x) =>
3170
- UpdatePromptContentPromptsRequestRequestBodyPrompt2$inboundSchema.parse(
2771
+ UpdatePromptContentPromptsRequestRequestBody2$inboundSchema.parse(
3171
2772
  JSON.parse(x),
3172
2773
  ),
3173
- `Failed to parse 'UpdatePromptContentPromptsRequestRequestBodyPrompt2' from JSON`,
2774
+ `Failed to parse 'UpdatePromptContentPromptsRequestRequestBody2' from JSON`,
3174
2775
  );
3175
2776
  }
3176
2777
 
@@ -3182,14 +2783,12 @@ export const UpdatePromptMessagesPromptsRequestRequestBodyContent$inboundSchema:
3182
2783
  unknown
3183
2784
  > = z.union([
3184
2785
  z.string(),
3185
- z.array(
3186
- z.lazy(() => UpdatePrompt2PromptsRequestRequestBody1$inboundSchema),
3187
- ),
2786
+ z.array(components.TextContentPartSchema$inboundSchema),
3188
2787
  ]);
3189
2788
  /** @internal */
3190
2789
  export type UpdatePromptMessagesPromptsRequestRequestBodyContent$Outbound =
3191
2790
  | string
3192
- | Array<UpdatePrompt2PromptsRequestRequestBody1$Outbound>;
2791
+ | Array<components.TextContentPartSchema$Outbound>;
3193
2792
 
3194
2793
  /** @internal */
3195
2794
  export const UpdatePromptMessagesPromptsRequestRequestBodyContent$outboundSchema:
@@ -3199,9 +2798,7 @@ export const UpdatePromptMessagesPromptsRequestRequestBodyContent$outboundSchema
3199
2798
  UpdatePromptMessagesPromptsRequestRequestBodyContent
3200
2799
  > = z.union([
3201
2800
  z.string(),
3202
- z.array(
3203
- z.lazy(() => UpdatePrompt2PromptsRequestRequestBody1$outboundSchema),
3204
- ),
2801
+ z.array(components.TextContentPartSchema$outboundSchema),
3205
2802
  ]);
3206
2803
 
3207
2804
  export function updatePromptMessagesPromptsRequestRequestBodyContentToJSON(
@@ -3301,9 +2898,7 @@ export const UpdatePromptMessagesToolMessage$inboundSchema: z.ZodType<
3301
2898
  role: z.literal("tool"),
3302
2899
  content: z.union([
3303
2900
  z.string(),
3304
- z.array(
3305
- z.lazy(() => UpdatePrompt2PromptsRequestRequestBody1$inboundSchema),
3306
- ),
2901
+ z.array(components.TextContentPartSchema$inboundSchema),
3307
2902
  ]),
3308
2903
  tool_call_id: z.string(),
3309
2904
  cache_control: z.lazy(() => UpdatePromptMessagesCacheControl$inboundSchema)
@@ -3317,7 +2912,7 @@ export const UpdatePromptMessagesToolMessage$inboundSchema: z.ZodType<
3317
2912
  /** @internal */
3318
2913
  export type UpdatePromptMessagesToolMessage$Outbound = {
3319
2914
  role: "tool";
3320
- content: string | Array<UpdatePrompt2PromptsRequestRequestBody1$Outbound>;
2915
+ content: string | Array<components.TextContentPartSchema$Outbound>;
3321
2916
  tool_call_id: string;
3322
2917
  cache_control?: UpdatePromptMessagesCacheControl$Outbound | undefined;
3323
2918
  };
@@ -3331,9 +2926,7 @@ export const UpdatePromptMessagesToolMessage$outboundSchema: z.ZodType<
3331
2926
  role: z.literal("tool"),
3332
2927
  content: z.union([
3333
2928
  z.string(),
3334
- z.array(
3335
- z.lazy(() => UpdatePrompt2PromptsRequestRequestBody1$outboundSchema),
3336
- ),
2929
+ z.array(components.TextContentPartSchema$outboundSchema),
3337
2930
  ]),
3338
2931
  toolCallId: z.string(),
3339
2932
  cacheControl: z.lazy(() => UpdatePromptMessagesCacheControl$outboundSchema)
@@ -3365,195 +2958,56 @@ export function updatePromptMessagesToolMessageFromJSON(
3365
2958
  }
3366
2959
 
3367
2960
  /** @internal */
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,
3393
- z.ZodTypeDef,
3394
- unknown
3395
- > = z.object({
3396
- type:
3397
- UpdatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType$inboundSchema,
3398
- ttl: UpdatePrompt2PromptsRequestTtl$inboundSchema.default("5m"),
3399
- });
3400
- /** @internal */
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,
2961
+ export const UpdatePromptContentPromptsRequest2$inboundSchema: z.ZodType<
2962
+ UpdatePromptContentPromptsRequest2,
3446
2963
  z.ZodTypeDef,
3447
2964
  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
- ]);
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
+ ]);
3514
2973
  /** @internal */
3515
- export type UpdatePromptContentPromptsRequestRequestBody2$Outbound =
3516
- | UpdatePrompt2PromptsRequest1$Outbound
2974
+ export type UpdatePromptContentPromptsRequest2$Outbound =
2975
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
3517
2976
  | components.RefusalPartSchema$Outbound
3518
2977
  | components.ReasoningPartSchema$Outbound
3519
2978
  | components.RedactedReasoningPartSchema$Outbound;
3520
2979
 
3521
2980
  /** @internal */
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
- ]);
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
+ ]);
3533
2993
 
3534
- export function updatePromptContentPromptsRequestRequestBody2ToJSON(
3535
- updatePromptContentPromptsRequestRequestBody2:
3536
- UpdatePromptContentPromptsRequestRequestBody2,
2994
+ export function updatePromptContentPromptsRequest2ToJSON(
2995
+ updatePromptContentPromptsRequest2: UpdatePromptContentPromptsRequest2,
3537
2996
  ): string {
3538
2997
  return JSON.stringify(
3539
- UpdatePromptContentPromptsRequestRequestBody2$outboundSchema.parse(
3540
- updatePromptContentPromptsRequestRequestBody2,
2998
+ UpdatePromptContentPromptsRequest2$outboundSchema.parse(
2999
+ updatePromptContentPromptsRequest2,
3541
3000
  ),
3542
3001
  );
3543
3002
  }
3544
- export function updatePromptContentPromptsRequestRequestBody2FromJSON(
3003
+ export function updatePromptContentPromptsRequest2FromJSON(
3545
3004
  jsonString: string,
3546
- ): SafeParseResult<
3547
- UpdatePromptContentPromptsRequestRequestBody2,
3548
- SDKValidationError
3549
- > {
3005
+ ): SafeParseResult<UpdatePromptContentPromptsRequest2, SDKValidationError> {
3550
3006
  return safeParse(
3551
3007
  jsonString,
3552
3008
  (x) =>
3553
- UpdatePromptContentPromptsRequestRequestBody2$inboundSchema.parse(
3554
- JSON.parse(x),
3555
- ),
3556
- `Failed to parse 'UpdatePromptContentPromptsRequestRequestBody2' from JSON`,
3009
+ UpdatePromptContentPromptsRequest2$inboundSchema.parse(JSON.parse(x)),
3010
+ `Failed to parse 'UpdatePromptContentPromptsRequest2' from JSON`,
3557
3011
  );
3558
3012
  }
3559
3013
 
@@ -3564,18 +3018,22 @@ export const UpdatePromptMessagesPromptsRequestContent$inboundSchema: z.ZodType<
3564
3018
  unknown
3565
3019
  > = z.union([
3566
3020
  z.string(),
3567
- z.array(z.union([
3568
- z.lazy(() => UpdatePrompt2PromptsRequest1$inboundSchema),
3569
- components.RefusalPartSchema$inboundSchema,
3570
- components.ReasoningPartSchema$inboundSchema,
3571
- components.RedactedReasoningPartSchema$inboundSchema,
3572
- ])),
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
+ ),
3573
3031
  ]);
3574
3032
  /** @internal */
3575
3033
  export type UpdatePromptMessagesPromptsRequestContent$Outbound =
3576
3034
  | string
3577
3035
  | Array<
3578
- | UpdatePrompt2PromptsRequest1$Outbound
3036
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
3579
3037
  | components.RefusalPartSchema$Outbound
3580
3038
  | components.ReasoningPartSchema$Outbound
3581
3039
  | components.RedactedReasoningPartSchema$Outbound
@@ -3589,12 +3047,16 @@ export const UpdatePromptMessagesPromptsRequestContent$outboundSchema:
3589
3047
  UpdatePromptMessagesPromptsRequestContent
3590
3048
  > = z.union([
3591
3049
  z.string(),
3592
- z.array(z.union([
3593
- z.lazy(() => UpdatePrompt2PromptsRequest1$outboundSchema),
3594
- components.RefusalPartSchema$outboundSchema,
3595
- components.ReasoningPartSchema$outboundSchema,
3596
- components.RedactedReasoningPartSchema$outboundSchema,
3597
- ])),
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
+ ),
3598
3060
  ]);
3599
3061
 
3600
3062
  export function updatePromptMessagesPromptsRequestContentToJSON(
@@ -3784,7 +3246,9 @@ export const UpdatePromptMessagesAssistantMessage$inboundSchema: z.ZodType<
3784
3246
  z.string(),
3785
3247
  z.array(
3786
3248
  z.union([
3787
- z.lazy(() => UpdatePrompt2PromptsRequest1$inboundSchema),
3249
+ components.TextContentPartSchema$inboundSchema.and(
3250
+ z.object({ type: z.literal("text") }),
3251
+ ),
3788
3252
  components.RefusalPartSchema$inboundSchema,
3789
3253
  components.ReasoningPartSchema$inboundSchema,
3790
3254
  components.RedactedReasoningPartSchema$inboundSchema,
@@ -3809,7 +3273,7 @@ export type UpdatePromptMessagesAssistantMessage$Outbound = {
3809
3273
  content?:
3810
3274
  | string
3811
3275
  | Array<
3812
- | UpdatePrompt2PromptsRequest1$Outbound
3276
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
3813
3277
  | components.RefusalPartSchema$Outbound
3814
3278
  | components.ReasoningPartSchema$Outbound
3815
3279
  | components.RedactedReasoningPartSchema$Outbound
@@ -3834,7 +3298,9 @@ export const UpdatePromptMessagesAssistantMessage$outboundSchema: z.ZodType<
3834
3298
  z.string(),
3835
3299
  z.array(
3836
3300
  z.union([
3837
- z.lazy(() => UpdatePrompt2PromptsRequest1$outboundSchema),
3301
+ components.TextContentPartSchema$outboundSchema.and(
3302
+ z.object({ type: z.literal("text") }),
3303
+ ),
3838
3304
  components.RefusalPartSchema$outboundSchema,
3839
3305
  components.ReasoningPartSchema$outboundSchema,
3840
3306
  components.RedactedReasoningPartSchema$outboundSchema,
@@ -3866,128 +3332,12 @@ export function updatePromptMessagesAssistantMessageToJSON(
3866
3332
  }
3867
3333
  export function updatePromptMessagesAssistantMessageFromJSON(
3868
3334
  jsonString: string,
3869
- ): SafeParseResult<UpdatePromptMessagesAssistantMessage, SDKValidationError> {
3870
- return safeParse(
3871
- jsonString,
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> {
3335
+ ): SafeParseResult<UpdatePromptMessagesAssistantMessage, SDKValidationError> {
3987
3336
  return safeParse(
3988
3337
  jsonString,
3989
- (x) => UpdatePrompt24$inboundSchema.parse(JSON.parse(x)),
3990
- `Failed to parse 'UpdatePrompt24' from JSON`,
3338
+ (x) =>
3339
+ UpdatePromptMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)),
3340
+ `Failed to parse 'UpdatePromptMessagesAssistantMessage' from JSON`,
3991
3341
  );
3992
3342
  }
3993
3343
 
@@ -4052,107 +3402,106 @@ export function updatePrompt2CacheControlFromJSON(
4052
3402
  }
4053
3403
 
4054
3404
  /** @internal */
4055
- export const UpdatePrompt2Prompts1$inboundSchema: z.ZodType<
4056
- UpdatePrompt2Prompts1,
3405
+ export const UpdatePrompt24$inboundSchema: z.ZodType<
3406
+ UpdatePrompt24,
4057
3407
  z.ZodTypeDef,
4058
3408
  unknown
4059
3409
  > = z.object({
4060
- type: z.literal("text"),
4061
- text: z.string(),
3410
+ type: z.literal("file"),
4062
3411
  cache_control: z.lazy(() => UpdatePrompt2CacheControl$inboundSchema)
4063
3412
  .optional(),
3413
+ file: components.FileContentPartSchema$inboundSchema,
4064
3414
  }).transform((v) => {
4065
3415
  return remap$(v, {
4066
3416
  "cache_control": "cacheControl",
4067
3417
  });
4068
3418
  });
4069
3419
  /** @internal */
4070
- export type UpdatePrompt2Prompts1$Outbound = {
4071
- type: "text";
4072
- text: string;
3420
+ export type UpdatePrompt24$Outbound = {
3421
+ type: "file";
4073
3422
  cache_control?: UpdatePrompt2CacheControl$Outbound | undefined;
3423
+ file: components.FileContentPartSchema$Outbound;
4074
3424
  };
4075
3425
 
4076
3426
  /** @internal */
4077
- export const UpdatePrompt2Prompts1$outboundSchema: z.ZodType<
4078
- UpdatePrompt2Prompts1$Outbound,
3427
+ export const UpdatePrompt24$outboundSchema: z.ZodType<
3428
+ UpdatePrompt24$Outbound,
4079
3429
  z.ZodTypeDef,
4080
- UpdatePrompt2Prompts1
3430
+ UpdatePrompt24
4081
3431
  > = z.object({
4082
- type: z.literal("text"),
4083
- text: z.string(),
3432
+ type: z.literal("file"),
4084
3433
  cacheControl: z.lazy(() => UpdatePrompt2CacheControl$outboundSchema)
4085
3434
  .optional(),
3435
+ file: components.FileContentPartSchema$outboundSchema,
4086
3436
  }).transform((v) => {
4087
3437
  return remap$(v, {
4088
3438
  cacheControl: "cache_control",
4089
3439
  });
4090
3440
  });
4091
3441
 
4092
- export function updatePrompt2Prompts1ToJSON(
4093
- updatePrompt2Prompts1: UpdatePrompt2Prompts1,
4094
- ): string {
4095
- return JSON.stringify(
4096
- UpdatePrompt2Prompts1$outboundSchema.parse(updatePrompt2Prompts1),
4097
- );
3442
+ export function updatePrompt24ToJSON(updatePrompt24: UpdatePrompt24): string {
3443
+ return JSON.stringify(UpdatePrompt24$outboundSchema.parse(updatePrompt24));
4098
3444
  }
4099
- export function updatePrompt2Prompts1FromJSON(
3445
+ export function updatePrompt24FromJSON(
4100
3446
  jsonString: string,
4101
- ): SafeParseResult<UpdatePrompt2Prompts1, SDKValidationError> {
3447
+ ): SafeParseResult<UpdatePrompt24, SDKValidationError> {
4102
3448
  return safeParse(
4103
3449
  jsonString,
4104
- (x) => UpdatePrompt2Prompts1$inboundSchema.parse(JSON.parse(x)),
4105
- `Failed to parse 'UpdatePrompt2Prompts1' from JSON`,
3450
+ (x) => UpdatePrompt24$inboundSchema.parse(JSON.parse(x)),
3451
+ `Failed to parse 'UpdatePrompt24' from JSON`,
4106
3452
  );
4107
3453
  }
4108
3454
 
4109
3455
  /** @internal */
4110
- export const UpdatePromptContentPromptsRequest2$inboundSchema: z.ZodType<
4111
- UpdatePromptContentPromptsRequest2,
3456
+ export const UpdatePromptContentPrompts2$inboundSchema: z.ZodType<
3457
+ UpdatePromptContentPrompts2,
4112
3458
  z.ZodTypeDef,
4113
3459
  unknown
4114
3460
  > = z.union([
4115
- z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
3461
+ components.TextContentPartSchema$inboundSchema.and(
3462
+ z.object({ type: z.literal("text") }),
3463
+ ),
4116
3464
  components.ImageContentPartSchema$inboundSchema,
4117
3465
  components.AudioContentPartSchema$inboundSchema,
4118
3466
  z.lazy(() => UpdatePrompt24$inboundSchema),
4119
3467
  ]);
4120
3468
  /** @internal */
4121
- export type UpdatePromptContentPromptsRequest2$Outbound =
4122
- | UpdatePrompt2Prompts1$Outbound
3469
+ export type UpdatePromptContentPrompts2$Outbound =
3470
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
4123
3471
  | components.ImageContentPartSchema$Outbound
4124
3472
  | components.AudioContentPartSchema$Outbound
4125
3473
  | UpdatePrompt24$Outbound;
4126
3474
 
4127
3475
  /** @internal */
4128
- export const UpdatePromptContentPromptsRequest2$outboundSchema: z.ZodType<
4129
- UpdatePromptContentPromptsRequest2$Outbound,
3476
+ export const UpdatePromptContentPrompts2$outboundSchema: z.ZodType<
3477
+ UpdatePromptContentPrompts2$Outbound,
4130
3478
  z.ZodTypeDef,
4131
- UpdatePromptContentPromptsRequest2
3479
+ UpdatePromptContentPrompts2
4132
3480
  > = z.union([
4133
- z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
3481
+ components.TextContentPartSchema$outboundSchema.and(
3482
+ z.object({ type: z.literal("text") }),
3483
+ ),
4134
3484
  components.ImageContentPartSchema$outboundSchema,
4135
3485
  components.AudioContentPartSchema$outboundSchema,
4136
3486
  z.lazy(() => UpdatePrompt24$outboundSchema),
4137
3487
  ]);
4138
3488
 
4139
- export function updatePromptContentPromptsRequest2ToJSON(
4140
- updatePromptContentPromptsRequest2: UpdatePromptContentPromptsRequest2,
3489
+ export function updatePromptContentPrompts2ToJSON(
3490
+ updatePromptContentPrompts2: UpdatePromptContentPrompts2,
4141
3491
  ): string {
4142
3492
  return JSON.stringify(
4143
- UpdatePromptContentPromptsRequest2$outboundSchema.parse(
4144
- updatePromptContentPromptsRequest2,
3493
+ UpdatePromptContentPrompts2$outboundSchema.parse(
3494
+ updatePromptContentPrompts2,
4145
3495
  ),
4146
3496
  );
4147
3497
  }
4148
- export function updatePromptContentPromptsRequest2FromJSON(
3498
+ export function updatePromptContentPrompts2FromJSON(
4149
3499
  jsonString: string,
4150
- ): SafeParseResult<UpdatePromptContentPromptsRequest2, SDKValidationError> {
3500
+ ): SafeParseResult<UpdatePromptContentPrompts2, SDKValidationError> {
4151
3501
  return safeParse(
4152
3502
  jsonString,
4153
- (x) =>
4154
- UpdatePromptContentPromptsRequest2$inboundSchema.parse(JSON.parse(x)),
4155
- `Failed to parse 'UpdatePromptContentPromptsRequest2' from JSON`,
3503
+ (x) => UpdatePromptContentPrompts2$inboundSchema.parse(JSON.parse(x)),
3504
+ `Failed to parse 'UpdatePromptContentPrompts2' from JSON`,
4156
3505
  );
4157
3506
  }
4158
3507
 
@@ -4163,18 +3512,22 @@ export const UpdatePromptMessagesPromptsContent$inboundSchema: z.ZodType<
4163
3512
  unknown
4164
3513
  > = z.union([
4165
3514
  z.string(),
4166
- z.array(z.union([
4167
- z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
4168
- components.ImageContentPartSchema$inboundSchema,
4169
- components.AudioContentPartSchema$inboundSchema,
4170
- z.lazy(() => UpdatePrompt24$inboundSchema),
4171
- ])),
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
+ ),
4172
3525
  ]);
4173
3526
  /** @internal */
4174
3527
  export type UpdatePromptMessagesPromptsContent$Outbound =
4175
3528
  | string
4176
3529
  | Array<
4177
- | UpdatePrompt2Prompts1$Outbound
3530
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
4178
3531
  | components.ImageContentPartSchema$Outbound
4179
3532
  | components.AudioContentPartSchema$Outbound
4180
3533
  | UpdatePrompt24$Outbound
@@ -4187,12 +3540,16 @@ export const UpdatePromptMessagesPromptsContent$outboundSchema: z.ZodType<
4187
3540
  UpdatePromptMessagesPromptsContent
4188
3541
  > = z.union([
4189
3542
  z.string(),
4190
- z.array(z.union([
4191
- z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
4192
- components.ImageContentPartSchema$outboundSchema,
4193
- components.AudioContentPartSchema$outboundSchema,
4194
- z.lazy(() => UpdatePrompt24$outboundSchema),
4195
- ])),
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
+ ),
4196
3553
  ]);
4197
3554
 
4198
3555
  export function updatePromptMessagesPromptsContentToJSON(
@@ -4225,12 +3582,16 @@ export const UpdatePromptMessagesUserMessage$inboundSchema: z.ZodType<
4225
3582
  name: z.string().optional(),
4226
3583
  content: z.union([
4227
3584
  z.string(),
4228
- z.array(z.union([
4229
- z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
4230
- components.ImageContentPartSchema$inboundSchema,
4231
- components.AudioContentPartSchema$inboundSchema,
4232
- z.lazy(() => UpdatePrompt24$inboundSchema),
4233
- ])),
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
+ ),
4234
3595
  ]),
4235
3596
  });
4236
3597
  /** @internal */
@@ -4240,7 +3601,7 @@ export type UpdatePromptMessagesUserMessage$Outbound = {
4240
3601
  content:
4241
3602
  | string
4242
3603
  | Array<
4243
- | UpdatePrompt2Prompts1$Outbound
3604
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
4244
3605
  | components.ImageContentPartSchema$Outbound
4245
3606
  | components.AudioContentPartSchema$Outbound
4246
3607
  | UpdatePrompt24$Outbound
@@ -4257,12 +3618,16 @@ export const UpdatePromptMessagesUserMessage$outboundSchema: z.ZodType<
4257
3618
  name: z.string().optional(),
4258
3619
  content: z.union([
4259
3620
  z.string(),
4260
- z.array(z.union([
4261
- z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
4262
- components.ImageContentPartSchema$outboundSchema,
4263
- components.AudioContentPartSchema$outboundSchema,
4264
- z.lazy(() => UpdatePrompt24$outboundSchema),
4265
- ])),
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
+ ),
4266
3631
  ]),
4267
3632
  });
4268
3633
 
@@ -4285,134 +3650,6 @@ export function updatePromptMessagesUserMessageFromJSON(
4285
3650
  );
4286
3651
  }
4287
3652
 
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
-
4416
3653
  /** @internal */
4417
3654
  export const UpdatePromptMessagesContent$inboundSchema: z.ZodType<
4418
3655
  UpdatePromptMessagesContent,
@@ -4420,12 +3657,12 @@ export const UpdatePromptMessagesContent$inboundSchema: z.ZodType<
4420
3657
  unknown
4421
3658
  > = z.union([
4422
3659
  z.string(),
4423
- z.array(z.lazy(() => UpdatePromptContentPrompts2$inboundSchema)),
3660
+ z.array(components.TextContentPartSchema$inboundSchema),
4424
3661
  ]);
4425
3662
  /** @internal */
4426
3663
  export type UpdatePromptMessagesContent$Outbound =
4427
3664
  | string
4428
- | Array<UpdatePromptContentPrompts2$Outbound>;
3665
+ | Array<components.TextContentPartSchema$Outbound>;
4429
3666
 
4430
3667
  /** @internal */
4431
3668
  export const UpdatePromptMessagesContent$outboundSchema: z.ZodType<
@@ -4434,7 +3671,7 @@ export const UpdatePromptMessagesContent$outboundSchema: z.ZodType<
4434
3671
  UpdatePromptMessagesContent
4435
3672
  > = z.union([
4436
3673
  z.string(),
4437
- z.array(z.lazy(() => UpdatePromptContentPrompts2$outboundSchema)),
3674
+ z.array(components.TextContentPartSchema$outboundSchema),
4438
3675
  ]);
4439
3676
 
4440
3677
  export function updatePromptMessagesContentToJSON(
@@ -4465,14 +3702,14 @@ export const UpdatePromptMessagesSystemMessage$inboundSchema: z.ZodType<
4465
3702
  role: z.literal("system"),
4466
3703
  content: z.union([
4467
3704
  z.string(),
4468
- z.array(z.lazy(() => UpdatePromptContentPrompts2$inboundSchema)),
3705
+ z.array(components.TextContentPartSchema$inboundSchema),
4469
3706
  ]),
4470
3707
  name: z.string().optional(),
4471
3708
  });
4472
3709
  /** @internal */
4473
3710
  export type UpdatePromptMessagesSystemMessage$Outbound = {
4474
3711
  role: "system";
4475
- content: string | Array<UpdatePromptContentPrompts2$Outbound>;
3712
+ content: string | Array<components.TextContentPartSchema$Outbound>;
4476
3713
  name?: string | undefined;
4477
3714
  };
4478
3715
 
@@ -4485,7 +3722,7 @@ export const UpdatePromptMessagesSystemMessage$outboundSchema: z.ZodType<
4485
3722
  role: z.literal("system"),
4486
3723
  content: z.union([
4487
3724
  z.string(),
4488
- z.array(z.lazy(() => UpdatePromptContentPrompts2$outboundSchema)),
3725
+ z.array(components.TextContentPartSchema$outboundSchema),
4489
3726
  ]),
4490
3727
  name: z.string().optional(),
4491
3728
  });
@@ -5656,8 +4893,8 @@ export function updatePrompt2PromptsFileFromJSON(
5656
4893
  }
5657
4894
 
5658
4895
  /** @internal */
5659
- export const UpdatePrompt23$inboundSchema: z.ZodType<
5660
- UpdatePrompt23,
4896
+ export const UpdatePrompt2Prompts3$inboundSchema: z.ZodType<
4897
+ UpdatePrompt2Prompts3,
5661
4898
  z.ZodTypeDef,
5662
4899
  unknown
5663
4900
  > = z.object({
@@ -5665,37 +4902,41 @@ export const UpdatePrompt23$inboundSchema: z.ZodType<
5665
4902
  file: z.lazy(() => UpdatePrompt2PromptsFile$inboundSchema),
5666
4903
  });
5667
4904
  /** @internal */
5668
- export type UpdatePrompt23$Outbound = {
4905
+ export type UpdatePrompt2Prompts3$Outbound = {
5669
4906
  type: "file";
5670
4907
  file: UpdatePrompt2PromptsFile$Outbound;
5671
4908
  };
5672
4909
 
5673
4910
  /** @internal */
5674
- export const UpdatePrompt23$outboundSchema: z.ZodType<
5675
- UpdatePrompt23$Outbound,
4911
+ export const UpdatePrompt2Prompts3$outboundSchema: z.ZodType<
4912
+ UpdatePrompt2Prompts3$Outbound,
5676
4913
  z.ZodTypeDef,
5677
- UpdatePrompt23
4914
+ UpdatePrompt2Prompts3
5678
4915
  > = z.object({
5679
4916
  type: z.literal("file"),
5680
4917
  file: z.lazy(() => UpdatePrompt2PromptsFile$outboundSchema),
5681
4918
  });
5682
4919
 
5683
- export function updatePrompt23ToJSON(updatePrompt23: UpdatePrompt23): string {
5684
- return JSON.stringify(UpdatePrompt23$outboundSchema.parse(updatePrompt23));
4920
+ export function updatePrompt2Prompts3ToJSON(
4921
+ updatePrompt2Prompts3: UpdatePrompt2Prompts3,
4922
+ ): string {
4923
+ return JSON.stringify(
4924
+ UpdatePrompt2Prompts3$outboundSchema.parse(updatePrompt2Prompts3),
4925
+ );
5685
4926
  }
5686
- export function updatePrompt23FromJSON(
4927
+ export function updatePrompt2Prompts3FromJSON(
5687
4928
  jsonString: string,
5688
- ): SafeParseResult<UpdatePrompt23, SDKValidationError> {
4929
+ ): SafeParseResult<UpdatePrompt2Prompts3, SDKValidationError> {
5689
4930
  return safeParse(
5690
4931
  jsonString,
5691
- (x) => UpdatePrompt23$inboundSchema.parse(JSON.parse(x)),
5692
- `Failed to parse 'UpdatePrompt23' from JSON`,
4932
+ (x) => UpdatePrompt2Prompts3$inboundSchema.parse(JSON.parse(x)),
4933
+ `Failed to parse 'UpdatePrompt2Prompts3' from JSON`,
5693
4934
  );
5694
4935
  }
5695
4936
 
5696
4937
  /** @internal */
5697
- export const UpdatePrompt2ImageUrl$inboundSchema: z.ZodType<
5698
- UpdatePrompt2ImageUrl,
4938
+ export const UpdatePrompt2PromptsImageUrl$inboundSchema: z.ZodType<
4939
+ UpdatePrompt2PromptsImageUrl,
5699
4940
  z.ZodTypeDef,
5700
4941
  unknown
5701
4942
  > = z.object({
@@ -5704,37 +4945,39 @@ export const UpdatePrompt2ImageUrl$inboundSchema: z.ZodType<
5704
4945
  detail: z.string().optional(),
5705
4946
  });
5706
4947
  /** @internal */
5707
- export type UpdatePrompt2ImageUrl$Outbound = {
4948
+ export type UpdatePrompt2PromptsImageUrl$Outbound = {
5708
4949
  id?: string | undefined;
5709
4950
  url: string;
5710
4951
  detail?: string | undefined;
5711
4952
  };
5712
4953
 
5713
4954
  /** @internal */
5714
- export const UpdatePrompt2ImageUrl$outboundSchema: z.ZodType<
5715
- UpdatePrompt2ImageUrl$Outbound,
4955
+ export const UpdatePrompt2PromptsImageUrl$outboundSchema: z.ZodType<
4956
+ UpdatePrompt2PromptsImageUrl$Outbound,
5716
4957
  z.ZodTypeDef,
5717
- UpdatePrompt2ImageUrl
4958
+ UpdatePrompt2PromptsImageUrl
5718
4959
  > = z.object({
5719
4960
  id: z.string().optional(),
5720
4961
  url: z.string(),
5721
4962
  detail: z.string().optional(),
5722
4963
  });
5723
4964
 
5724
- export function updatePrompt2ImageUrlToJSON(
5725
- updatePrompt2ImageUrl: UpdatePrompt2ImageUrl,
4965
+ export function updatePrompt2PromptsImageUrlToJSON(
4966
+ updatePrompt2PromptsImageUrl: UpdatePrompt2PromptsImageUrl,
5726
4967
  ): string {
5727
4968
  return JSON.stringify(
5728
- UpdatePrompt2ImageUrl$outboundSchema.parse(updatePrompt2ImageUrl),
4969
+ UpdatePrompt2PromptsImageUrl$outboundSchema.parse(
4970
+ updatePrompt2PromptsImageUrl,
4971
+ ),
5729
4972
  );
5730
4973
  }
5731
- export function updatePrompt2ImageUrlFromJSON(
4974
+ export function updatePrompt2PromptsImageUrlFromJSON(
5732
4975
  jsonString: string,
5733
- ): SafeParseResult<UpdatePrompt2ImageUrl, SDKValidationError> {
4976
+ ): SafeParseResult<UpdatePrompt2PromptsImageUrl, SDKValidationError> {
5734
4977
  return safeParse(
5735
4978
  jsonString,
5736
- (x) => UpdatePrompt2ImageUrl$inboundSchema.parse(JSON.parse(x)),
5737
- `Failed to parse 'UpdatePrompt2ImageUrl' from JSON`,
4979
+ (x) => UpdatePrompt2PromptsImageUrl$inboundSchema.parse(JSON.parse(x)),
4980
+ `Failed to parse 'UpdatePrompt2PromptsImageUrl' from JSON`,
5738
4981
  );
5739
4982
  }
5740
4983
 
@@ -5745,7 +4988,7 @@ export const UpdatePrompt2Prompts2$inboundSchema: z.ZodType<
5745
4988
  unknown
5746
4989
  > = z.object({
5747
4990
  type: z.literal("image_url"),
5748
- image_url: z.lazy(() => UpdatePrompt2ImageUrl$inboundSchema),
4991
+ image_url: z.lazy(() => UpdatePrompt2PromptsImageUrl$inboundSchema),
5749
4992
  }).transform((v) => {
5750
4993
  return remap$(v, {
5751
4994
  "image_url": "imageUrl",
@@ -5754,7 +4997,7 @@ export const UpdatePrompt2Prompts2$inboundSchema: z.ZodType<
5754
4997
  /** @internal */
5755
4998
  export type UpdatePrompt2Prompts2$Outbound = {
5756
4999
  type: "image_url";
5757
- image_url: UpdatePrompt2ImageUrl$Outbound;
5000
+ image_url: UpdatePrompt2PromptsImageUrl$Outbound;
5758
5001
  };
5759
5002
 
5760
5003
  /** @internal */
@@ -5764,7 +5007,7 @@ export const UpdatePrompt2Prompts2$outboundSchema: z.ZodType<
5764
5007
  UpdatePrompt2Prompts2
5765
5008
  > = z.object({
5766
5009
  type: z.literal("image_url"),
5767
- imageUrl: z.lazy(() => UpdatePrompt2ImageUrl$outboundSchema),
5010
+ imageUrl: z.lazy(() => UpdatePrompt2PromptsImageUrl$outboundSchema),
5768
5011
  }).transform((v) => {
5769
5012
  return remap$(v, {
5770
5013
  imageUrl: "image_url",
@@ -5789,8 +5032,8 @@ export function updatePrompt2Prompts2FromJSON(
5789
5032
  }
5790
5033
 
5791
5034
  /** @internal */
5792
- export const UpdatePrompt2PromptsResponse1$inboundSchema: z.ZodType<
5793
- UpdatePrompt2PromptsResponse1,
5035
+ export const UpdatePrompt2Prompts1$inboundSchema: z.ZodType<
5036
+ UpdatePrompt2Prompts1,
5794
5037
  z.ZodTypeDef,
5795
5038
  unknown
5796
5039
  > = z.object({
@@ -5798,37 +5041,35 @@ export const UpdatePrompt2PromptsResponse1$inboundSchema: z.ZodType<
5798
5041
  text: z.string(),
5799
5042
  });
5800
5043
  /** @internal */
5801
- export type UpdatePrompt2PromptsResponse1$Outbound = {
5044
+ export type UpdatePrompt2Prompts1$Outbound = {
5802
5045
  type: "text";
5803
5046
  text: string;
5804
5047
  };
5805
5048
 
5806
5049
  /** @internal */
5807
- export const UpdatePrompt2PromptsResponse1$outboundSchema: z.ZodType<
5808
- UpdatePrompt2PromptsResponse1$Outbound,
5050
+ export const UpdatePrompt2Prompts1$outboundSchema: z.ZodType<
5051
+ UpdatePrompt2Prompts1$Outbound,
5809
5052
  z.ZodTypeDef,
5810
- UpdatePrompt2PromptsResponse1
5053
+ UpdatePrompt2Prompts1
5811
5054
  > = z.object({
5812
5055
  type: z.literal("text"),
5813
5056
  text: z.string(),
5814
5057
  });
5815
5058
 
5816
- export function updatePrompt2PromptsResponse1ToJSON(
5817
- updatePrompt2PromptsResponse1: UpdatePrompt2PromptsResponse1,
5059
+ export function updatePrompt2Prompts1ToJSON(
5060
+ updatePrompt2Prompts1: UpdatePrompt2Prompts1,
5818
5061
  ): string {
5819
5062
  return JSON.stringify(
5820
- UpdatePrompt2PromptsResponse1$outboundSchema.parse(
5821
- updatePrompt2PromptsResponse1,
5822
- ),
5063
+ UpdatePrompt2Prompts1$outboundSchema.parse(updatePrompt2Prompts1),
5823
5064
  );
5824
5065
  }
5825
- export function updatePrompt2PromptsResponse1FromJSON(
5066
+ export function updatePrompt2Prompts1FromJSON(
5826
5067
  jsonString: string,
5827
- ): SafeParseResult<UpdatePrompt2PromptsResponse1, SDKValidationError> {
5068
+ ): SafeParseResult<UpdatePrompt2Prompts1, SDKValidationError> {
5828
5069
  return safeParse(
5829
5070
  jsonString,
5830
- (x) => UpdatePrompt2PromptsResponse1$inboundSchema.parse(JSON.parse(x)),
5831
- `Failed to parse 'UpdatePrompt2PromptsResponse1' from JSON`,
5071
+ (x) => UpdatePrompt2Prompts1$inboundSchema.parse(JSON.parse(x)),
5072
+ `Failed to parse 'UpdatePrompt2Prompts1' from JSON`,
5832
5073
  );
5833
5074
  }
5834
5075
 
@@ -5838,15 +5079,15 @@ export const UpdatePromptContentPromptsResponse2$inboundSchema: z.ZodType<
5838
5079
  z.ZodTypeDef,
5839
5080
  unknown
5840
5081
  > = z.union([
5841
- z.lazy(() => UpdatePrompt2PromptsResponse1$inboundSchema),
5082
+ z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
5842
5083
  z.lazy(() => UpdatePrompt2Prompts2$inboundSchema),
5843
- z.lazy(() => UpdatePrompt23$inboundSchema),
5084
+ z.lazy(() => UpdatePrompt2Prompts3$inboundSchema),
5844
5085
  ]);
5845
5086
  /** @internal */
5846
5087
  export type UpdatePromptContentPromptsResponse2$Outbound =
5847
- | UpdatePrompt2PromptsResponse1$Outbound
5088
+ | UpdatePrompt2Prompts1$Outbound
5848
5089
  | UpdatePrompt2Prompts2$Outbound
5849
- | UpdatePrompt23$Outbound;
5090
+ | UpdatePrompt2Prompts3$Outbound;
5850
5091
 
5851
5092
  /** @internal */
5852
5093
  export const UpdatePromptContentPromptsResponse2$outboundSchema: z.ZodType<
@@ -5854,9 +5095,9 @@ export const UpdatePromptContentPromptsResponse2$outboundSchema: z.ZodType<
5854
5095
  z.ZodTypeDef,
5855
5096
  UpdatePromptContentPromptsResponse2
5856
5097
  > = z.union([
5857
- z.lazy(() => UpdatePrompt2PromptsResponse1$outboundSchema),
5098
+ z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
5858
5099
  z.lazy(() => UpdatePrompt2Prompts2$outboundSchema),
5859
- z.lazy(() => UpdatePrompt23$outboundSchema),
5100
+ z.lazy(() => UpdatePrompt2Prompts3$outboundSchema),
5860
5101
  ]);
5861
5102
 
5862
5103
  export function updatePromptContentPromptsResponse2ToJSON(
@@ -5887,18 +5128,18 @@ export const UpdatePromptPromptsContent$inboundSchema: z.ZodType<
5887
5128
  > = z.union([
5888
5129
  z.string(),
5889
5130
  z.array(z.union([
5890
- z.lazy(() => UpdatePrompt2PromptsResponse1$inboundSchema),
5131
+ z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
5891
5132
  z.lazy(() => UpdatePrompt2Prompts2$inboundSchema),
5892
- z.lazy(() => UpdatePrompt23$inboundSchema),
5133
+ z.lazy(() => UpdatePrompt2Prompts3$inboundSchema),
5893
5134
  ])),
5894
5135
  ]);
5895
5136
  /** @internal */
5896
5137
  export type UpdatePromptPromptsContent$Outbound =
5897
5138
  | string
5898
5139
  | Array<
5899
- | UpdatePrompt2PromptsResponse1$Outbound
5140
+ | UpdatePrompt2Prompts1$Outbound
5900
5141
  | UpdatePrompt2Prompts2$Outbound
5901
- | UpdatePrompt23$Outbound
5142
+ | UpdatePrompt2Prompts3$Outbound
5902
5143
  >;
5903
5144
 
5904
5145
  /** @internal */
@@ -5909,9 +5150,9 @@ export const UpdatePromptPromptsContent$outboundSchema: z.ZodType<
5909
5150
  > = z.union([
5910
5151
  z.string(),
5911
5152
  z.array(z.union([
5912
- z.lazy(() => UpdatePrompt2PromptsResponse1$outboundSchema),
5153
+ z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
5913
5154
  z.lazy(() => UpdatePrompt2Prompts2$outboundSchema),
5914
- z.lazy(() => UpdatePrompt23$outboundSchema),
5155
+ z.lazy(() => UpdatePrompt2Prompts3$outboundSchema),
5915
5156
  ])),
5916
5157
  ]);
5917
5158
 
@@ -6047,16 +5288,16 @@ export const UpdatePromptPromptsResponseMessages$inboundSchema: z.ZodType<
6047
5288
  z.string(),
6048
5289
  z.array(
6049
5290
  z.union([
6050
- z.lazy(() => UpdatePrompt2PromptsResponse1$inboundSchema),
5291
+ z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
6051
5292
  z.lazy(() => UpdatePrompt2Prompts2$inboundSchema),
6052
- z.lazy(() => UpdatePrompt23$inboundSchema),
5293
+ z.lazy(() => UpdatePrompt2Prompts3$inboundSchema),
6053
5294
  ]),
6054
5295
  ),
6055
5296
  ]),
6056
5297
  ),
6057
5298
  tool_calls: z.array(z.lazy(() => UpdatePromptPromptsToolCalls$inboundSchema))
6058
5299
  .optional(),
6059
- tool_call_id: z.string().optional(),
5300
+ tool_call_id: z.nullable(z.string()).optional(),
6060
5301
  }).transform((v) => {
6061
5302
  return remap$(v, {
6062
5303
  "tool_calls": "toolCalls",
@@ -6069,13 +5310,13 @@ export type UpdatePromptPromptsResponseMessages$Outbound = {
6069
5310
  content:
6070
5311
  | string
6071
5312
  | Array<
6072
- | UpdatePrompt2PromptsResponse1$Outbound
5313
+ | UpdatePrompt2Prompts1$Outbound
6073
5314
  | UpdatePrompt2Prompts2$Outbound
6074
- | UpdatePrompt23$Outbound
5315
+ | UpdatePrompt2Prompts3$Outbound
6075
5316
  >
6076
5317
  | null;
6077
5318
  tool_calls?: Array<UpdatePromptPromptsToolCalls$Outbound> | undefined;
6078
- tool_call_id?: string | undefined;
5319
+ tool_call_id?: string | null | undefined;
6079
5320
  };
6080
5321
 
6081
5322
  /** @internal */
@@ -6090,16 +5331,16 @@ export const UpdatePromptPromptsResponseMessages$outboundSchema: z.ZodType<
6090
5331
  z.string(),
6091
5332
  z.array(
6092
5333
  z.union([
6093
- z.lazy(() => UpdatePrompt2PromptsResponse1$outboundSchema),
5334
+ z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
6094
5335
  z.lazy(() => UpdatePrompt2Prompts2$outboundSchema),
6095
- z.lazy(() => UpdatePrompt23$outboundSchema),
5336
+ z.lazy(() => UpdatePrompt2Prompts3$outboundSchema),
6096
5337
  ]),
6097
5338
  ),
6098
5339
  ]),
6099
5340
  ),
6100
5341
  toolCalls: z.array(z.lazy(() => UpdatePromptPromptsToolCalls$outboundSchema))
6101
5342
  .optional(),
6102
- toolCallId: z.string().optional(),
5343
+ toolCallId: z.nullable(z.string()).optional(),
6103
5344
  }).transform((v) => {
6104
5345
  return remap$(v, {
6105
5346
  toolCalls: "tool_calls",