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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (407) hide show
  1. package/README.md +18 -38
  2. package/bin/mcp-server.js +9851 -9147
  3. package/bin/mcp-server.js.map +82 -118
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/agentsResponsesCreate.d.ts +1 -7
  6. package/funcs/agentsResponsesCreate.d.ts.map +1 -1
  7. package/funcs/agentsResponsesCreate.js +2 -9
  8. package/funcs/agentsResponsesCreate.js.map +1 -1
  9. package/funcs/budgetsCreate.d.ts +1 -1
  10. package/funcs/budgetsCreate.js +1 -1
  11. package/funcs/contactsList.js +0 -1
  12. package/funcs/contactsList.js.map +1 -1
  13. package/funcs/memoryStoresListDocuments.js +0 -2
  14. package/funcs/memoryStoresListDocuments.js.map +1 -1
  15. package/funcs/memoryStoresListMemories.js +0 -1
  16. package/funcs/memoryStoresListMemories.js.map +1 -1
  17. package/jsr.json +1 -1
  18. package/lib/config.d.ts +3 -3
  19. package/lib/config.js +3 -3
  20. package/mcp-server/mcp-server.js +1 -1
  21. package/mcp-server/server.d.ts.map +1 -1
  22. package/mcp-server/server.js +1 -13
  23. package/mcp-server/server.js.map +1 -1
  24. package/mcp-server/tools/budgetsCreate.js +1 -1
  25. package/mcp-server/tools/budgetsCreate.js.map +1 -1
  26. package/models/components/agentexecutionstartedstreamingevent.d.ts +8 -8
  27. package/models/components/agentexecutionstartedstreamingevent.d.ts.map +1 -1
  28. package/models/components/agentexecutionstartedstreamingevent.js +12 -11
  29. package/models/components/agentexecutionstartedstreamingevent.js.map +1 -1
  30. package/models/components/agentinactivestreamingevent.d.ts +21 -21
  31. package/models/components/agentinactivestreamingevent.d.ts.map +1 -1
  32. package/models/components/agentinactivestreamingevent.js +28 -27
  33. package/models/components/agentinactivestreamingevent.js.map +1 -1
  34. package/models/components/agentthoughtstreamingevent.d.ts +24 -26
  35. package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
  36. package/models/components/agentthoughtstreamingevent.js +32 -34
  37. package/models/components/agentthoughtstreamingevent.js.map +1 -1
  38. package/models/components/imagecontentpartschema.d.ts +18 -18
  39. package/models/components/imagecontentpartschema.d.ts.map +1 -1
  40. package/models/components/imagecontentpartschema.js +21 -23
  41. package/models/components/imagecontentpartschema.js.map +1 -1
  42. package/models/components/index.d.ts +2 -16
  43. package/models/components/index.d.ts.map +1 -1
  44. package/models/components/index.js +2 -16
  45. package/models/components/index.js.map +1 -1
  46. package/models/components/invokedeploymentrequest.d.ts +1028 -149
  47. package/models/components/invokedeploymentrequest.d.ts.map +1 -1
  48. package/models/components/invokedeploymentrequest.js +984 -128
  49. package/models/components/invokedeploymentrequest.js.map +1 -1
  50. package/models/components/thinkingconfigdisabledschema.d.ts +23 -0
  51. package/models/components/thinkingconfigdisabledschema.d.ts.map +1 -0
  52. package/{mcp-server/tools/conversationsDelete.js → models/components/thinkingconfigdisabledschema.js} +19 -24
  53. package/models/components/thinkingconfigdisabledschema.js.map +1 -0
  54. package/models/components/thinkingconfigenabledschema.d.ts +49 -0
  55. package/models/components/thinkingconfigenabledschema.d.ts.map +1 -0
  56. package/models/components/thinkingconfigenabledschema.js +84 -0
  57. package/models/components/thinkingconfigenabledschema.js.map +1 -0
  58. package/models/components/toolexecutionfailedstreamingevent.d.ts +0 -2
  59. package/models/components/toolexecutionfailedstreamingevent.d.ts.map +1 -1
  60. package/models/components/toolexecutionfailedstreamingevent.js +0 -2
  61. package/models/components/toolexecutionfailedstreamingevent.js.map +1 -1
  62. package/models/components/toolexecutionfinishedstreamingevent.d.ts +0 -2
  63. package/models/components/toolexecutionfinishedstreamingevent.d.ts.map +1 -1
  64. package/models/components/toolexecutionfinishedstreamingevent.js +0 -2
  65. package/models/components/toolexecutionfinishedstreamingevent.js.map +1 -1
  66. package/models/components/toolexecutionstartedstreamingevent.d.ts +0 -2
  67. package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -1
  68. package/models/components/toolexecutionstartedstreamingevent.js +0 -2
  69. package/models/components/toolexecutionstartedstreamingevent.js.map +1 -1
  70. package/models/errors/index.d.ts +0 -4
  71. package/models/errors/index.d.ts.map +1 -1
  72. package/models/errors/index.js +0 -4
  73. package/models/errors/index.js.map +1 -1
  74. package/models/operations/createagentrequest.d.ts +17 -207
  75. package/models/operations/createagentrequest.d.ts.map +1 -1
  76. package/models/operations/createagentrequest.js +71 -190
  77. package/models/operations/createagentrequest.js.map +1 -1
  78. package/models/operations/createagentresponserequest.d.ts +1 -35
  79. package/models/operations/createagentresponserequest.d.ts.map +1 -1
  80. package/models/operations/createagentresponserequest.js +1 -55
  81. package/models/operations/createagentresponserequest.js.map +1 -1
  82. package/models/operations/createbudget.d.ts +13 -69
  83. package/models/operations/createbudget.d.ts.map +1 -1
  84. package/models/operations/createbudget.js +12 -61
  85. package/models/operations/createbudget.js.map +1 -1
  86. package/models/operations/createcontact.js +2 -2
  87. package/models/operations/createdataset.js +2 -2
  88. package/models/operations/createdatasetitem.d.ts +1033 -153
  89. package/models/operations/createdatasetitem.d.ts.map +1 -1
  90. package/models/operations/createdatasetitem.js +957 -147
  91. package/models/operations/createdatasetitem.js.map +1 -1
  92. package/models/operations/createdatasource.js +2 -2
  93. package/models/operations/createeval.js +28 -28
  94. package/models/operations/creatememory.d.ts +5 -10
  95. package/models/operations/creatememory.d.ts.map +1 -1
  96. package/models/operations/creatememory.js +2 -6
  97. package/models/operations/creatememory.js.map +1 -1
  98. package/models/operations/creatememorydocument.d.ts +4 -4
  99. package/models/operations/creatememorydocument.d.ts.map +1 -1
  100. package/models/operations/creatememorydocument.js +2 -2
  101. package/models/operations/creatememorydocument.js.map +1 -1
  102. package/models/operations/createprompt.d.ts +489 -146
  103. package/models/operations/createprompt.d.ts.map +1 -1
  104. package/models/operations/createprompt.js +483 -168
  105. package/models/operations/createprompt.js.map +1 -1
  106. package/models/operations/createtool.js +12 -12
  107. package/models/operations/deploymentcreatemetric.d.ts +1034 -154
  108. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  109. package/models/operations/deploymentcreatemetric.js +972 -137
  110. package/models/operations/deploymentcreatemetric.js.map +1 -1
  111. package/models/operations/deploymentgetconfig.d.ts +1101 -221
  112. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  113. package/models/operations/deploymentgetconfig.js +1059 -263
  114. package/models/operations/deploymentgetconfig.js.map +1 -1
  115. package/models/operations/deploymentinvoke.d.ts +26 -27
  116. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  117. package/models/operations/deploymentinvoke.js +28 -29
  118. package/models/operations/deploymentinvoke.js.map +1 -1
  119. package/models/operations/deployments.d.ts +13 -14
  120. package/models/operations/deployments.d.ts.map +1 -1
  121. package/models/operations/deployments.js +13 -14
  122. package/models/operations/deployments.js.map +1 -1
  123. package/models/operations/deploymentstream.d.ts +1064 -185
  124. package/models/operations/deploymentstream.d.ts.map +1 -1
  125. package/models/operations/deploymentstream.js +990 -164
  126. package/models/operations/deploymentstream.js.map +1 -1
  127. package/models/operations/fileget.js +2 -2
  128. package/models/operations/filelist.js +2 -2
  129. package/models/operations/fileupload.d.ts +8 -8
  130. package/models/operations/fileupload.d.ts.map +1 -1
  131. package/models/operations/fileupload.js +14 -13
  132. package/models/operations/fileupload.js.map +1 -1
  133. package/models/operations/getallmemories.d.ts +0 -10
  134. package/models/operations/getallmemories.d.ts.map +1 -1
  135. package/models/operations/getallmemories.js +0 -6
  136. package/models/operations/getallmemories.js.map +1 -1
  137. package/models/operations/getallmemorydocuments.d.ts +0 -10
  138. package/models/operations/getallmemorydocuments.d.ts.map +1 -1
  139. package/models/operations/getallmemorydocuments.js +0 -8
  140. package/models/operations/getallmemorydocuments.js.map +1 -1
  141. package/models/operations/getallprompts.d.ts +13 -14
  142. package/models/operations/getallprompts.d.ts.map +1 -1
  143. package/models/operations/getallprompts.js +13 -14
  144. package/models/operations/getallprompts.js.map +1 -1
  145. package/models/operations/getalltools.js +12 -12
  146. package/models/operations/getbudget.d.ts +0 -5
  147. package/models/operations/getbudget.d.ts.map +1 -1
  148. package/models/operations/getbudget.js +2 -6
  149. package/models/operations/getbudget.js.map +1 -1
  150. package/models/operations/getevals.js +28 -28
  151. package/models/operations/getoneprompt.d.ts +13 -14
  152. package/models/operations/getoneprompt.d.ts.map +1 -1
  153. package/models/operations/getoneprompt.js +13 -14
  154. package/models/operations/getoneprompt.js.map +1 -1
  155. package/models/operations/getpromptversion.d.ts +13 -14
  156. package/models/operations/getpromptversion.d.ts.map +1 -1
  157. package/models/operations/getpromptversion.js +13 -14
  158. package/models/operations/getpromptversion.js.map +1 -1
  159. package/models/operations/index.d.ts +0 -6
  160. package/models/operations/index.d.ts.map +1 -1
  161. package/models/operations/index.js +0 -6
  162. package/models/operations/index.js.map +1 -1
  163. package/models/operations/listagents.d.ts +9 -105
  164. package/models/operations/listagents.d.ts.map +1 -1
  165. package/models/operations/listagents.js +36 -95
  166. package/models/operations/listagents.js.map +1 -1
  167. package/models/operations/listbudgets.d.ts +0 -5
  168. package/models/operations/listbudgets.d.ts.map +1 -1
  169. package/models/operations/listbudgets.js +2 -6
  170. package/models/operations/listbudgets.js.map +1 -1
  171. package/models/operations/listcontacts.d.ts +0 -5
  172. package/models/operations/listcontacts.d.ts.map +1 -1
  173. package/models/operations/listcontacts.js +2 -4
  174. package/models/operations/listcontacts.js.map +1 -1
  175. package/models/operations/listdatasetdatapoints.d.ts +516 -76
  176. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  177. package/models/operations/listdatasetdatapoints.js +475 -75
  178. package/models/operations/listdatasetdatapoints.js.map +1 -1
  179. package/models/operations/listdatasets.js +2 -2
  180. package/models/operations/listdatasources.js +2 -2
  181. package/models/operations/listpromptversions.d.ts +13 -14
  182. package/models/operations/listpromptversions.d.ts.map +1 -1
  183. package/models/operations/listpromptversions.js +13 -14
  184. package/models/operations/listpromptversions.js.map +1 -1
  185. package/models/operations/retrieveagentrequest.d.ts +9 -105
  186. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  187. package/models/operations/retrieveagentrequest.js +36 -95
  188. package/models/operations/retrieveagentrequest.js.map +1 -1
  189. package/models/operations/retrievecontact.js +2 -2
  190. package/models/operations/retrievedatapoint.d.ts +516 -76
  191. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  192. package/models/operations/retrievedatapoint.js +473 -75
  193. package/models/operations/retrievedatapoint.js.map +1 -1
  194. package/models/operations/retrievedataset.js +2 -2
  195. package/models/operations/retrievedatasource.js +2 -2
  196. package/models/operations/retrievememory.d.ts +0 -5
  197. package/models/operations/retrievememory.d.ts.map +1 -1
  198. package/models/operations/retrievememory.js +0 -4
  199. package/models/operations/retrievememory.js.map +1 -1
  200. package/models/operations/retrievetool.js +12 -12
  201. package/models/operations/runagent.d.ts +8 -102
  202. package/models/operations/runagent.d.ts.map +1 -1
  203. package/models/operations/runagent.js +39 -102
  204. package/models/operations/runagent.js.map +1 -1
  205. package/models/operations/streamrunagent.d.ts +8 -102
  206. package/models/operations/streamrunagent.d.ts.map +1 -1
  207. package/models/operations/streamrunagent.js +39 -101
  208. package/models/operations/streamrunagent.js.map +1 -1
  209. package/models/operations/updateagent.d.ts +17 -207
  210. package/models/operations/updateagent.d.ts.map +1 -1
  211. package/models/operations/updateagent.js +71 -189
  212. package/models/operations/updateagent.js.map +1 -1
  213. package/models/operations/updatebudget.d.ts +0 -5
  214. package/models/operations/updatebudget.d.ts.map +1 -1
  215. package/models/operations/updatebudget.js +2 -6
  216. package/models/operations/updatebudget.js.map +1 -1
  217. package/models/operations/updatecontact.js +2 -2
  218. package/models/operations/updatedatapoint.d.ts +1033 -153
  219. package/models/operations/updatedatapoint.d.ts.map +1 -1
  220. package/models/operations/updatedatapoint.js +955 -147
  221. package/models/operations/updatedatapoint.js.map +1 -1
  222. package/models/operations/updatedataset.js +2 -2
  223. package/models/operations/updatedatasource.js +2 -2
  224. package/models/operations/updateeval.js +28 -28
  225. package/models/operations/updatememory.d.ts +5 -10
  226. package/models/operations/updatememory.d.ts.map +1 -1
  227. package/models/operations/updatememory.js +2 -6
  228. package/models/operations/updatememory.js.map +1 -1
  229. package/models/operations/updatememorydocument.d.ts +4 -4
  230. package/models/operations/updatememorydocument.d.ts.map +1 -1
  231. package/models/operations/updatememorydocument.js +2 -2
  232. package/models/operations/updatememorydocument.js.map +1 -1
  233. package/models/operations/updatememorystore.d.ts +59 -24
  234. package/models/operations/updatememorystore.d.ts.map +1 -1
  235. package/models/operations/updatememorystore.js +55 -27
  236. package/models/operations/updatememorystore.js.map +1 -1
  237. package/models/operations/updateprompt.d.ts +486 -149
  238. package/models/operations/updateprompt.d.ts.map +1 -1
  239. package/models/operations/updateprompt.js +466 -156
  240. package/models/operations/updateprompt.js.map +1 -1
  241. package/models/operations/updatetool.js +14 -14
  242. package/package.json +1 -1
  243. package/sdk/budgets.d.ts +1 -1
  244. package/sdk/budgets.js +1 -1
  245. package/sdk/evals.d.ts +0 -4
  246. package/sdk/evals.d.ts.map +1 -1
  247. package/sdk/evals.js +0 -7
  248. package/sdk/evals.js.map +1 -1
  249. package/sdk/responses.d.ts +1 -5
  250. package/sdk/responses.d.ts.map +1 -1
  251. package/sdk/responses.js +1 -3
  252. package/sdk/responses.js.map +1 -1
  253. package/sdk/sdk.d.ts +0 -3
  254. package/sdk/sdk.d.ts.map +1 -1
  255. package/sdk/sdk.js +0 -4
  256. package/sdk/sdk.js.map +1 -1
  257. package/src/funcs/agentsResponsesCreate.ts +10 -14
  258. package/src/funcs/budgetsCreate.ts +1 -1
  259. package/src/funcs/contactsList.ts +0 -1
  260. package/src/funcs/memoryStoresListDocuments.ts +0 -2
  261. package/src/funcs/memoryStoresListMemories.ts +0 -1
  262. package/src/lib/config.ts +3 -3
  263. package/src/mcp-server/mcp-server.ts +1 -1
  264. package/src/mcp-server/server.ts +1 -13
  265. package/src/mcp-server/tools/budgetsCreate.ts +1 -1
  266. package/src/models/components/agentexecutionstartedstreamingevent.ts +34 -53
  267. package/src/models/components/agentinactivestreamingevent.ts +57 -85
  268. package/src/models/components/agentthoughtstreamingevent.ts +118 -167
  269. package/src/models/components/imagecontentpartschema.ts +37 -52
  270. package/src/models/components/index.ts +2 -16
  271. package/src/models/components/invokedeploymentrequest.ts +2543 -486
  272. package/src/models/components/thinkingconfigdisabledschema.ts +59 -0
  273. package/src/models/components/thinkingconfigenabledschema.ts +106 -0
  274. package/src/models/components/toolexecutionfailedstreamingevent.ts +0 -4
  275. package/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -4
  276. package/src/models/components/toolexecutionstartedstreamingevent.ts +0 -4
  277. package/src/models/errors/index.ts +0 -4
  278. package/src/models/operations/createagentrequest.ts +119 -368
  279. package/src/models/operations/createagentresponserequest.ts +1 -134
  280. package/src/models/operations/createbudget.ts +28 -143
  281. package/src/models/operations/createcontact.ts +2 -2
  282. package/src/models/operations/createdataset.ts +2 -2
  283. package/src/models/operations/createdatasetitem.ts +2747 -562
  284. package/src/models/operations/createdatasource.ts +2 -2
  285. package/src/models/operations/createeval.ts +28 -28
  286. package/src/models/operations/creatememory.ts +5 -14
  287. package/src/models/operations/creatememorydocument.ts +4 -4
  288. package/src/models/operations/createprompt.ts +1217 -415
  289. package/src/models/operations/createtool.ts +12 -12
  290. package/src/models/operations/deploymentcreatemetric.ts +3037 -598
  291. package/src/models/operations/deploymentgetconfig.ts +2905 -828
  292. package/src/models/operations/deploymentinvoke.ts +46 -47
  293. package/src/models/operations/deployments.ts +15 -16
  294. package/src/models/operations/deploymentstream.ts +2842 -592
  295. package/src/models/operations/fileget.ts +2 -2
  296. package/src/models/operations/filelist.ts +2 -2
  297. package/src/models/operations/fileupload.ts +27 -30
  298. package/src/models/operations/getallmemories.ts +0 -16
  299. package/src/models/operations/getallmemorydocuments.ts +0 -22
  300. package/src/models/operations/getallprompts.ts +15 -16
  301. package/src/models/operations/getalltools.ts +12 -12
  302. package/src/models/operations/getbudget.ts +2 -11
  303. package/src/models/operations/getevals.ts +28 -28
  304. package/src/models/operations/getoneprompt.ts +15 -16
  305. package/src/models/operations/getpromptversion.ts +15 -16
  306. package/src/models/operations/index.ts +0 -6
  307. package/src/models/operations/listagents.ts +61 -187
  308. package/src/models/operations/listbudgets.ts +2 -11
  309. package/src/models/operations/listcontacts.ts +2 -9
  310. package/src/models/operations/listdatasetdatapoints.ts +1381 -314
  311. package/src/models/operations/listdatasets.ts +2 -2
  312. package/src/models/operations/listdatasources.ts +2 -2
  313. package/src/models/operations/listpromptversions.ts +15 -16
  314. package/src/models/operations/retrieveagentrequest.ts +59 -195
  315. package/src/models/operations/retrievecontact.ts +2 -2
  316. package/src/models/operations/retrievedatapoint.ts +1301 -276
  317. package/src/models/operations/retrievedataset.ts +2 -2
  318. package/src/models/operations/retrievedatasource.ts +2 -2
  319. package/src/models/operations/retrievememory.ts +0 -9
  320. package/src/models/operations/retrievetool.ts +12 -12
  321. package/src/models/operations/runagent.ts +62 -192
  322. package/src/models/operations/streamrunagent.ts +60 -199
  323. package/src/models/operations/updateagent.ts +119 -378
  324. package/src/models/operations/updatebudget.ts +2 -11
  325. package/src/models/operations/updatecontact.ts +2 -2
  326. package/src/models/operations/updatedatapoint.ts +2772 -611
  327. package/src/models/operations/updatedataset.ts +2 -2
  328. package/src/models/operations/updatedatasource.ts +2 -2
  329. package/src/models/operations/updateeval.ts +28 -28
  330. package/src/models/operations/updatememory.ts +5 -14
  331. package/src/models/operations/updatememorydocument.ts +4 -4
  332. package/src/models/operations/updatememorystore.ts +154 -64
  333. package/src/models/operations/updateprompt.ts +1142 -383
  334. package/src/models/operations/updatetool.ts +14 -14
  335. package/src/sdk/budgets.ts +1 -1
  336. package/src/sdk/evals.ts +0 -15
  337. package/src/sdk/responses.ts +3 -8
  338. package/src/sdk/sdk.ts +0 -6
  339. package/funcs/conversationsCreate.d.ts +0 -17
  340. package/funcs/conversationsCreate.d.ts.map +0 -1
  341. package/funcs/conversationsCreate.js +0 -114
  342. package/funcs/conversationsCreate.js.map +0 -1
  343. package/funcs/conversationsDelete.d.ts +0 -17
  344. package/funcs/conversationsDelete.d.ts.map +0 -1
  345. package/funcs/conversationsDelete.js +0 -127
  346. package/funcs/conversationsDelete.js.map +0 -1
  347. package/funcs/conversationsList.d.ts +0 -17
  348. package/funcs/conversationsList.d.ts.map +0 -1
  349. package/funcs/conversationsList.js +0 -124
  350. package/funcs/conversationsList.js.map +0 -1
  351. package/funcs/conversationsRetrieve.d.ts +0 -18
  352. package/funcs/conversationsRetrieve.d.ts.map +0 -1
  353. package/funcs/conversationsRetrieve.js +0 -126
  354. package/funcs/conversationsRetrieve.js.map +0 -1
  355. package/funcs/conversationsUpdate.d.ts +0 -18
  356. package/funcs/conversationsUpdate.d.ts.map +0 -1
  357. package/funcs/conversationsUpdate.js +0 -128
  358. package/funcs/conversationsUpdate.js.map +0 -1
  359. package/funcs/evalsInvoke.d.ts +0 -15
  360. package/funcs/evalsInvoke.d.ts.map +0 -1
  361. package/funcs/evalsInvoke.js +0 -121
  362. package/funcs/evalsInvoke.js.map +0 -1
  363. package/mcp-server/tools/conversationsCreate.d.ts +0 -8
  364. package/mcp-server/tools/conversationsCreate.d.ts.map +0 -1
  365. package/mcp-server/tools/conversationsCreate.js +0 -64
  366. package/mcp-server/tools/conversationsCreate.js.map +0 -1
  367. package/mcp-server/tools/conversationsDelete.d.ts +0 -8
  368. package/mcp-server/tools/conversationsDelete.d.ts.map +0 -1
  369. package/mcp-server/tools/conversationsDelete.js.map +0 -1
  370. package/mcp-server/tools/conversationsList.d.ts +0 -10
  371. package/mcp-server/tools/conversationsList.d.ts.map +0 -1
  372. package/mcp-server/tools/conversationsList.js +0 -66
  373. package/mcp-server/tools/conversationsList.js.map +0 -1
  374. package/mcp-server/tools/conversationsRetrieve.d.ts +0 -8
  375. package/mcp-server/tools/conversationsRetrieve.d.ts.map +0 -1
  376. package/mcp-server/tools/conversationsRetrieve.js +0 -64
  377. package/mcp-server/tools/conversationsRetrieve.js.map +0 -1
  378. package/mcp-server/tools/conversationsUpdate.d.ts +0 -10
  379. package/mcp-server/tools/conversationsUpdate.d.ts.map +0 -1
  380. package/mcp-server/tools/conversationsUpdate.js +0 -66
  381. package/mcp-server/tools/conversationsUpdate.js.map +0 -1
  382. package/mcp-server/tools/evalsInvoke.d.ts +0 -8
  383. package/mcp-server/tools/evalsInvoke.d.ts.map +0 -1
  384. package/mcp-server/tools/evalsInvoke.js +0 -62
  385. package/mcp-server/tools/evalsInvoke.js.map +0 -1
  386. package/models/operations/listconversations.d.ts +0 -60
  387. package/models/operations/listconversations.d.ts.map +0 -1
  388. package/models/operations/listconversations.js +0 -109
  389. package/models/operations/listconversations.js.map +0 -1
  390. package/sdk/conversations.d.ts +0 -40
  391. package/sdk/conversations.d.ts.map +0 -1
  392. package/sdk/conversations.js +0 -62
  393. package/sdk/conversations.js.map +0 -1
  394. package/src/funcs/conversationsCreate.ts +0 -161
  395. package/src/funcs/conversationsDelete.ts +0 -180
  396. package/src/funcs/conversationsList.ts +0 -181
  397. package/src/funcs/conversationsRetrieve.ts +0 -180
  398. package/src/funcs/conversationsUpdate.ts +0 -184
  399. package/src/funcs/evalsInvoke.ts +0 -177
  400. package/src/mcp-server/tools/conversationsCreate.ts +0 -37
  401. package/src/mcp-server/tools/conversationsDelete.ts +0 -35
  402. package/src/mcp-server/tools/conversationsList.ts +0 -41
  403. package/src/mcp-server/tools/conversationsRetrieve.ts +0 -37
  404. package/src/mcp-server/tools/conversationsUpdate.ts +0 -40
  405. package/src/mcp-server/tools/evalsInvoke.ts +0 -35
  406. package/src/models/operations/listconversations.ts +0 -161
  407. package/src/sdk/conversations.ts +0 -105
@@ -36,15 +36,92 @@ export type ListDatasetDatapointsObject = ClosedEnum<
36
36
  typeof ListDatasetDatapointsObject
37
37
  >;
38
38
 
39
- export type ListDatasetDatapointsContentDatasetsResponse2 =
40
- components.TextContentPartSchema;
39
+ export const ListDatasetDatapoints2DatasetsResponse200Type = {
40
+ Text: "text",
41
+ } as const;
42
+ export type ListDatasetDatapoints2DatasetsResponse200Type = ClosedEnum<
43
+ typeof ListDatasetDatapoints2DatasetsResponse200Type
44
+ >;
45
+
46
+ /**
47
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
48
+ */
49
+ export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType =
50
+ {
51
+ Ephemeral: "ephemeral",
52
+ } as const;
53
+ /**
54
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
55
+ */
56
+ export type ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType =
57
+ ClosedEnum<
58
+ typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType
59
+ >;
60
+
61
+ /**
62
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
63
+ *
64
+ * @remarks
65
+ *
66
+ * - `5m`: 5 minutes
67
+ * - `1h`: 1 hour
68
+ *
69
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
70
+ */
71
+ export const ListDatasetDatapoints2DatasetsResponse200Ttl = {
72
+ Fivem: "5m",
73
+ Oneh: "1h",
74
+ } as const;
75
+ /**
76
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
77
+ *
78
+ * @remarks
79
+ *
80
+ * - `5m`: 5 minutes
81
+ * - `1h`: 1 hour
82
+ *
83
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
84
+ */
85
+ export type ListDatasetDatapoints2DatasetsResponse200Ttl = ClosedEnum<
86
+ typeof ListDatasetDatapoints2DatasetsResponse200Ttl
87
+ >;
88
+
89
+ export type ListDatasetDatapoints2DatasetsResponse200CacheControl = {
90
+ /**
91
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
92
+ */
93
+ type:
94
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType;
95
+ /**
96
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
97
+ *
98
+ * @remarks
99
+ *
100
+ * - `5m`: 5 minutes
101
+ * - `1h`: 1 hour
102
+ *
103
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
104
+ */
105
+ ttl?: ListDatasetDatapoints2DatasetsResponse200Ttl | undefined;
106
+ };
107
+
108
+ export type ListDatasetDatapoints2DatasetsResponse1 = {
109
+ type: ListDatasetDatapoints2DatasetsResponse200Type;
110
+ text: string;
111
+ cacheControl?:
112
+ | ListDatasetDatapoints2DatasetsResponse200CacheControl
113
+ | undefined;
114
+ };
115
+
116
+ export type ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2 =
117
+ ListDatasetDatapoints2DatasetsResponse1;
41
118
 
42
119
  /**
43
120
  * The contents of the tool message.
44
121
  */
45
122
  export type ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent =
46
123
  | string
47
- | Array<components.TextContentPartSchema>;
124
+ | Array<ListDatasetDatapoints2DatasetsResponse1>;
48
125
 
49
126
  /**
50
127
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
@@ -113,7 +190,7 @@ export type ListDatasetDatapointsMessagesToolMessage = {
113
190
  /**
114
191
  * The contents of the tool message.
115
192
  */
116
- content: string | Array<components.TextContentPartSchema>;
193
+ content: string | Array<ListDatasetDatapoints2DatasetsResponse1>;
117
194
  /**
118
195
  * Tool call that this message is responding to.
119
196
  */
@@ -121,8 +198,76 @@ export type ListDatasetDatapointsMessagesToolMessage = {
121
198
  cacheControl?: ListDatasetDatapointsMessagesCacheControl | undefined;
122
199
  };
123
200
 
124
- export type ListDatasetDatapointsContentDatasets2 =
125
- | (components.TextContentPartSchema & { type: "text" })
201
+ /**
202
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
203
+ */
204
+ export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType =
205
+ {
206
+ Ephemeral: "ephemeral",
207
+ } as const;
208
+ /**
209
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
210
+ */
211
+ export type ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType =
212
+ ClosedEnum<
213
+ typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType
214
+ >;
215
+
216
+ /**
217
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
218
+ *
219
+ * @remarks
220
+ *
221
+ * - `5m`: 5 minutes
222
+ * - `1h`: 1 hour
223
+ *
224
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
225
+ */
226
+ export const ListDatasetDatapoints2DatasetsResponseTtl = {
227
+ Fivem: "5m",
228
+ Oneh: "1h",
229
+ } as const;
230
+ /**
231
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
232
+ *
233
+ * @remarks
234
+ *
235
+ * - `5m`: 5 minutes
236
+ * - `1h`: 1 hour
237
+ *
238
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
239
+ */
240
+ export type ListDatasetDatapoints2DatasetsResponseTtl = ClosedEnum<
241
+ typeof ListDatasetDatapoints2DatasetsResponseTtl
242
+ >;
243
+
244
+ export type ListDatasetDatapoints2DatasetsResponseCacheControl = {
245
+ /**
246
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
247
+ */
248
+ type:
249
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType;
250
+ /**
251
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
252
+ *
253
+ * @remarks
254
+ *
255
+ * - `5m`: 5 minutes
256
+ * - `1h`: 1 hour
257
+ *
258
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
259
+ */
260
+ ttl?: ListDatasetDatapoints2DatasetsResponseTtl | undefined;
261
+ };
262
+
263
+ export type ListDatasetDatapoints2Datasets1 = {
264
+ type: "text";
265
+ text: string;
266
+ cacheControl?: ListDatasetDatapoints2DatasetsResponseCacheControl | undefined;
267
+ };
268
+
269
+ export type ListDatasetDatapointsContentDatasetsResponse2002 =
270
+ | ListDatasetDatapoints2Datasets1
126
271
  | components.RefusalPartSchema
127
272
  | components.ReasoningPartSchema
128
273
  | components.RedactedReasoningPartSchema;
@@ -133,7 +278,7 @@ export type ListDatasetDatapointsContentDatasets2 =
133
278
  export type ListDatasetDatapointsMessagesDatasetsResponse200Content =
134
279
  | string
135
280
  | Array<
136
- | (components.TextContentPartSchema & { type: "text" })
281
+ | ListDatasetDatapoints2Datasets1
137
282
  | components.RefusalPartSchema
138
283
  | components.ReasoningPartSchema
139
284
  | components.RedactedReasoningPartSchema
@@ -196,7 +341,7 @@ export type ListDatasetDatapointsMessagesAssistantMessage = {
196
341
  content?:
197
342
  | string
198
343
  | Array<
199
- | (components.TextContentPartSchema & { type: "text" })
344
+ | ListDatasetDatapoints2Datasets1
200
345
  | components.RefusalPartSchema
201
346
  | components.ReasoningPartSchema
202
347
  | components.RedactedReasoningPartSchema
@@ -228,15 +373,17 @@ export type ListDatasetDatapointsMessagesAssistantMessage = {
228
373
  /**
229
374
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
230
375
  */
231
- export const ListDatasetDatapoints2DatasetsType = {
232
- Ephemeral: "ephemeral",
233
- } as const;
376
+ export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType =
377
+ {
378
+ Ephemeral: "ephemeral",
379
+ } as const;
234
380
  /**
235
381
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
236
382
  */
237
- export type ListDatasetDatapoints2DatasetsType = ClosedEnum<
238
- typeof ListDatasetDatapoints2DatasetsType
239
- >;
383
+ export type ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType =
384
+ ClosedEnum<
385
+ typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType
386
+ >;
240
387
 
241
388
  /**
242
389
  * The time-to-live for the cache control breakpoint. This may be one of the following values:
@@ -248,7 +395,7 @@ export type ListDatasetDatapoints2DatasetsType = ClosedEnum<
248
395
  *
249
396
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
250
397
  */
251
- export const ListDatasetDatapoints2Ttl = {
398
+ export const ListDatasetDatapoints2DatasetsTtl = {
252
399
  Fivem: "5m",
253
400
  Oneh: "1h",
254
401
  } as const;
@@ -262,15 +409,16 @@ export const ListDatasetDatapoints2Ttl = {
262
409
  *
263
410
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
264
411
  */
265
- export type ListDatasetDatapoints2Ttl = ClosedEnum<
266
- typeof ListDatasetDatapoints2Ttl
412
+ export type ListDatasetDatapoints2DatasetsTtl = ClosedEnum<
413
+ typeof ListDatasetDatapoints2DatasetsTtl
267
414
  >;
268
415
 
269
- export type ListDatasetDatapoints2CacheControl = {
416
+ export type ListDatasetDatapoints2DatasetsCacheControl = {
270
417
  /**
271
418
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
272
419
  */
273
- type: ListDatasetDatapoints2DatasetsType;
420
+ type:
421
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType;
274
422
  /**
275
423
  * The time-to-live for the cache control breakpoint. This may be one of the following values:
276
424
  *
@@ -281,7 +429,7 @@ export type ListDatasetDatapoints2CacheControl = {
281
429
  *
282
430
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
283
431
  */
284
- ttl?: ListDatasetDatapoints2Ttl | undefined;
432
+ ttl?: ListDatasetDatapoints2DatasetsTtl | undefined;
285
433
  };
286
434
 
287
435
  export type ListDatasetDatapoints24 = {
@@ -289,15 +437,81 @@ export type ListDatasetDatapoints24 = {
289
437
  * The type of the content part. Always `file`.
290
438
  */
291
439
  type: "file";
292
- cacheControl?: ListDatasetDatapoints2CacheControl | undefined;
440
+ cacheControl?: ListDatasetDatapoints2DatasetsCacheControl | undefined;
293
441
  /**
294
442
  * File data for the content part. Must contain either file_data or uri, but not both.
295
443
  */
296
444
  file: components.FileContentPartSchema;
297
445
  };
298
446
 
299
- export type ListDatasetDatapointsContent2 =
300
- | (components.TextContentPartSchema & { type: "text" })
447
+ /**
448
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
449
+ */
450
+ export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType = {
451
+ Ephemeral: "ephemeral",
452
+ } as const;
453
+ /**
454
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
455
+ */
456
+ export type ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType =
457
+ ClosedEnum<
458
+ typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType
459
+ >;
460
+
461
+ /**
462
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
463
+ *
464
+ * @remarks
465
+ *
466
+ * - `5m`: 5 minutes
467
+ * - `1h`: 1 hour
468
+ *
469
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
470
+ */
471
+ export const ListDatasetDatapoints2Ttl = {
472
+ Fivem: "5m",
473
+ Oneh: "1h",
474
+ } as const;
475
+ /**
476
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
477
+ *
478
+ * @remarks
479
+ *
480
+ * - `5m`: 5 minutes
481
+ * - `1h`: 1 hour
482
+ *
483
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
484
+ */
485
+ export type ListDatasetDatapoints2Ttl = ClosedEnum<
486
+ typeof ListDatasetDatapoints2Ttl
487
+ >;
488
+
489
+ export type ListDatasetDatapoints2CacheControl = {
490
+ /**
491
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
492
+ */
493
+ type: ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType;
494
+ /**
495
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
496
+ *
497
+ * @remarks
498
+ *
499
+ * - `5m`: 5 minutes
500
+ * - `1h`: 1 hour
501
+ *
502
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
503
+ */
504
+ ttl?: ListDatasetDatapoints2Ttl | undefined;
505
+ };
506
+
507
+ export type ListDatasetDatapoints21 = {
508
+ type: "text";
509
+ text: string;
510
+ cacheControl?: ListDatasetDatapoints2CacheControl | undefined;
511
+ };
512
+
513
+ export type ListDatasetDatapointsContentDatasetsResponse2 =
514
+ | ListDatasetDatapoints21
301
515
  | components.ImageContentPartSchema
302
516
  | components.AudioContentPartSchema
303
517
  | ListDatasetDatapoints24;
@@ -308,7 +522,7 @@ export type ListDatasetDatapointsContent2 =
308
522
  export type ListDatasetDatapointsMessagesDatasetsResponseContent =
309
523
  | string
310
524
  | Array<
311
- | (components.TextContentPartSchema & { type: "text" })
525
+ | ListDatasetDatapoints21
312
526
  | components.ImageContentPartSchema
313
527
  | components.AudioContentPartSchema
314
528
  | ListDatasetDatapoints24
@@ -329,19 +543,91 @@ export type ListDatasetDatapointsMessagesUserMessage = {
329
543
  content:
330
544
  | string
331
545
  | Array<
332
- | (components.TextContentPartSchema & { type: "text" })
546
+ | ListDatasetDatapoints21
333
547
  | components.ImageContentPartSchema
334
548
  | components.AudioContentPartSchema
335
549
  | ListDatasetDatapoints24
336
550
  >;
337
551
  };
338
552
 
553
+ export const ListDatasetDatapointsContentDatasetsType = {
554
+ Text: "text",
555
+ } as const;
556
+ export type ListDatasetDatapointsContentDatasetsType = ClosedEnum<
557
+ typeof ListDatasetDatapointsContentDatasetsType
558
+ >;
559
+
560
+ /**
561
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
562
+ */
563
+ export const ListDatasetDatapointsContentDatasetsResponse200Type = {
564
+ Ephemeral: "ephemeral",
565
+ } as const;
566
+ /**
567
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
568
+ */
569
+ export type ListDatasetDatapointsContentDatasetsResponse200Type = ClosedEnum<
570
+ typeof ListDatasetDatapointsContentDatasetsResponse200Type
571
+ >;
572
+
573
+ /**
574
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
575
+ *
576
+ * @remarks
577
+ *
578
+ * - `5m`: 5 minutes
579
+ * - `1h`: 1 hour
580
+ *
581
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
582
+ */
583
+ export const ListDatasetDatapointsContentDatasetsTtl = {
584
+ Fivem: "5m",
585
+ Oneh: "1h",
586
+ } as const;
587
+ /**
588
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
589
+ *
590
+ * @remarks
591
+ *
592
+ * - `5m`: 5 minutes
593
+ * - `1h`: 1 hour
594
+ *
595
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
596
+ */
597
+ export type ListDatasetDatapointsContentDatasetsTtl = ClosedEnum<
598
+ typeof ListDatasetDatapointsContentDatasetsTtl
599
+ >;
600
+
601
+ export type ListDatasetDatapointsContentDatasetsCacheControl = {
602
+ /**
603
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
604
+ */
605
+ type: ListDatasetDatapointsContentDatasetsResponse200Type;
606
+ /**
607
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
608
+ *
609
+ * @remarks
610
+ *
611
+ * - `5m`: 5 minutes
612
+ * - `1h`: 1 hour
613
+ *
614
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
615
+ */
616
+ ttl?: ListDatasetDatapointsContentDatasetsTtl | undefined;
617
+ };
618
+
619
+ export type ListDatasetDatapointsContentDatasets2 = {
620
+ type: ListDatasetDatapointsContentDatasetsType;
621
+ text: string;
622
+ cacheControl?: ListDatasetDatapointsContentDatasetsCacheControl | undefined;
623
+ };
624
+
339
625
  /**
340
626
  * The contents of the developer message.
341
627
  */
342
628
  export type ListDatasetDatapointsMessagesDatasetsContent =
343
629
  | string
344
- | Array<components.TextContentPartSchema>;
630
+ | Array<ListDatasetDatapointsContentDatasets2>;
345
631
 
346
632
  export type ListDatasetDatapointsMessagesDeveloperMessage = {
347
633
  /**
@@ -351,24 +637,96 @@ export type ListDatasetDatapointsMessagesDeveloperMessage = {
351
637
  /**
352
638
  * The contents of the developer message.
353
639
  */
354
- content: string | Array<components.TextContentPartSchema>;
640
+ content: string | Array<ListDatasetDatapointsContentDatasets2>;
355
641
  /**
356
642
  * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
357
643
  */
358
644
  name?: string | undefined;
359
645
  };
360
646
 
647
+ export const ListDatasetDatapointsContentType = {
648
+ Text: "text",
649
+ } as const;
650
+ export type ListDatasetDatapointsContentType = ClosedEnum<
651
+ typeof ListDatasetDatapointsContentType
652
+ >;
653
+
361
654
  /**
362
- * The contents of the system message.
655
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
363
656
  */
364
- export type ListDatasetDatapointsMessagesContent =
365
- | string
366
- | Array<components.TextContentPartSchema>;
657
+ export const ListDatasetDatapointsContentDatasetsResponseType = {
658
+ Ephemeral: "ephemeral",
659
+ } as const;
660
+ /**
661
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
662
+ */
663
+ export type ListDatasetDatapointsContentDatasetsResponseType = ClosedEnum<
664
+ typeof ListDatasetDatapointsContentDatasetsResponseType
665
+ >;
367
666
 
368
667
  /**
369
- * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
668
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
669
+ *
670
+ * @remarks
671
+ *
672
+ * - `5m`: 5 minutes
673
+ * - `1h`: 1 hour
674
+ *
675
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
370
676
  */
371
- export type ListDatasetDatapointsMessagesSystemMessage = {
677
+ export const ListDatasetDatapointsContentTtl = {
678
+ Fivem: "5m",
679
+ Oneh: "1h",
680
+ } as const;
681
+ /**
682
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
683
+ *
684
+ * @remarks
685
+ *
686
+ * - `5m`: 5 minutes
687
+ * - `1h`: 1 hour
688
+ *
689
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
690
+ */
691
+ export type ListDatasetDatapointsContentTtl = ClosedEnum<
692
+ typeof ListDatasetDatapointsContentTtl
693
+ >;
694
+
695
+ export type ListDatasetDatapointsContentCacheControl = {
696
+ /**
697
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
698
+ */
699
+ type: ListDatasetDatapointsContentDatasetsResponseType;
700
+ /**
701
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
702
+ *
703
+ * @remarks
704
+ *
705
+ * - `5m`: 5 minutes
706
+ * - `1h`: 1 hour
707
+ *
708
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
709
+ */
710
+ ttl?: ListDatasetDatapointsContentTtl | undefined;
711
+ };
712
+
713
+ export type ListDatasetDatapointsContent2 = {
714
+ type: ListDatasetDatapointsContentType;
715
+ text: string;
716
+ cacheControl?: ListDatasetDatapointsContentCacheControl | undefined;
717
+ };
718
+
719
+ /**
720
+ * The contents of the system message.
721
+ */
722
+ export type ListDatasetDatapointsMessagesContent =
723
+ | string
724
+ | Array<ListDatasetDatapointsContent2>;
725
+
726
+ /**
727
+ * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
728
+ */
729
+ export type ListDatasetDatapointsMessagesSystemMessage = {
372
730
  /**
373
731
  * The role of the messages author, in this case `system`.
374
732
  */
@@ -376,7 +734,7 @@ export type ListDatasetDatapointsMessagesSystemMessage = {
376
734
  /**
377
735
  * The contents of the system message.
378
736
  */
379
- content: string | Array<components.TextContentPartSchema>;
737
+ content: string | Array<ListDatasetDatapointsContent2>;
380
738
  /**
381
739
  * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
382
740
  */
@@ -681,47 +1039,204 @@ export const ListDatasetDatapointsObject$outboundSchema: z.ZodNativeEnum<
681
1039
  > = ListDatasetDatapointsObject$inboundSchema;
682
1040
 
683
1041
  /** @internal */
684
- export const ListDatasetDatapointsContentDatasetsResponse2$inboundSchema:
1042
+ export const ListDatasetDatapoints2DatasetsResponse200Type$inboundSchema:
1043
+ z.ZodNativeEnum<typeof ListDatasetDatapoints2DatasetsResponse200Type> = z
1044
+ .nativeEnum(ListDatasetDatapoints2DatasetsResponse200Type);
1045
+ /** @internal */
1046
+ export const ListDatasetDatapoints2DatasetsResponse200Type$outboundSchema:
1047
+ z.ZodNativeEnum<typeof ListDatasetDatapoints2DatasetsResponse200Type> =
1048
+ ListDatasetDatapoints2DatasetsResponse200Type$inboundSchema;
1049
+
1050
+ /** @internal */
1051
+ export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType$inboundSchema:
1052
+ z.ZodNativeEnum<
1053
+ typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType
1054
+ > = z.nativeEnum(
1055
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType,
1056
+ );
1057
+ /** @internal */
1058
+ export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType$outboundSchema:
1059
+ z.ZodNativeEnum<
1060
+ typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType
1061
+ > =
1062
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType$inboundSchema;
1063
+
1064
+ /** @internal */
1065
+ export const ListDatasetDatapoints2DatasetsResponse200Ttl$inboundSchema:
1066
+ z.ZodNativeEnum<typeof ListDatasetDatapoints2DatasetsResponse200Ttl> = z
1067
+ .nativeEnum(ListDatasetDatapoints2DatasetsResponse200Ttl);
1068
+ /** @internal */
1069
+ export const ListDatasetDatapoints2DatasetsResponse200Ttl$outboundSchema:
1070
+ z.ZodNativeEnum<typeof ListDatasetDatapoints2DatasetsResponse200Ttl> =
1071
+ ListDatasetDatapoints2DatasetsResponse200Ttl$inboundSchema;
1072
+
1073
+ /** @internal */
1074
+ export const ListDatasetDatapoints2DatasetsResponse200CacheControl$inboundSchema:
685
1075
  z.ZodType<
686
- ListDatasetDatapointsContentDatasetsResponse2,
1076
+ ListDatasetDatapoints2DatasetsResponse200CacheControl,
687
1077
  z.ZodTypeDef,
688
1078
  unknown
689
- > = components.TextContentPartSchema$inboundSchema;
1079
+ > = z.object({
1080
+ type:
1081
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType$inboundSchema,
1082
+ ttl: ListDatasetDatapoints2DatasetsResponse200Ttl$inboundSchema.default(
1083
+ "5m",
1084
+ ),
1085
+ });
690
1086
  /** @internal */
691
- export type ListDatasetDatapointsContentDatasetsResponse2$Outbound =
692
- components.TextContentPartSchema$Outbound;
1087
+ export type ListDatasetDatapoints2DatasetsResponse200CacheControl$Outbound = {
1088
+ type: string;
1089
+ ttl: string;
1090
+ };
693
1091
 
694
1092
  /** @internal */
695
- export const ListDatasetDatapointsContentDatasetsResponse2$outboundSchema:
1093
+ export const ListDatasetDatapoints2DatasetsResponse200CacheControl$outboundSchema:
696
1094
  z.ZodType<
697
- ListDatasetDatapointsContentDatasetsResponse2$Outbound,
1095
+ ListDatasetDatapoints2DatasetsResponse200CacheControl$Outbound,
698
1096
  z.ZodTypeDef,
699
- ListDatasetDatapointsContentDatasetsResponse2
700
- > = components.TextContentPartSchema$outboundSchema;
1097
+ ListDatasetDatapoints2DatasetsResponse200CacheControl
1098
+ > = z.object({
1099
+ type:
1100
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType$outboundSchema,
1101
+ ttl: ListDatasetDatapoints2DatasetsResponse200Ttl$outboundSchema.default(
1102
+ "5m",
1103
+ ),
1104
+ });
701
1105
 
702
- export function listDatasetDatapointsContentDatasetsResponse2ToJSON(
703
- listDatasetDatapointsContentDatasetsResponse2:
704
- ListDatasetDatapointsContentDatasetsResponse2,
1106
+ export function listDatasetDatapoints2DatasetsResponse200CacheControlToJSON(
1107
+ listDatasetDatapoints2DatasetsResponse200CacheControl:
1108
+ ListDatasetDatapoints2DatasetsResponse200CacheControl,
705
1109
  ): string {
706
1110
  return JSON.stringify(
707
- ListDatasetDatapointsContentDatasetsResponse2$outboundSchema.parse(
708
- listDatasetDatapointsContentDatasetsResponse2,
1111
+ ListDatasetDatapoints2DatasetsResponse200CacheControl$outboundSchema.parse(
1112
+ listDatasetDatapoints2DatasetsResponse200CacheControl,
709
1113
  ),
710
1114
  );
711
1115
  }
712
- export function listDatasetDatapointsContentDatasetsResponse2FromJSON(
1116
+ export function listDatasetDatapoints2DatasetsResponse200CacheControlFromJSON(
713
1117
  jsonString: string,
714
1118
  ): SafeParseResult<
715
- ListDatasetDatapointsContentDatasetsResponse2,
1119
+ ListDatasetDatapoints2DatasetsResponse200CacheControl,
716
1120
  SDKValidationError
717
1121
  > {
718
1122
  return safeParse(
719
1123
  jsonString,
720
1124
  (x) =>
721
- ListDatasetDatapointsContentDatasetsResponse2$inboundSchema.parse(
1125
+ ListDatasetDatapoints2DatasetsResponse200CacheControl$inboundSchema.parse(
722
1126
  JSON.parse(x),
723
1127
  ),
724
- `Failed to parse 'ListDatasetDatapointsContentDatasetsResponse2' from JSON`,
1128
+ `Failed to parse 'ListDatasetDatapoints2DatasetsResponse200CacheControl' from JSON`,
1129
+ );
1130
+ }
1131
+
1132
+ /** @internal */
1133
+ export const ListDatasetDatapoints2DatasetsResponse1$inboundSchema: z.ZodType<
1134
+ ListDatasetDatapoints2DatasetsResponse1,
1135
+ z.ZodTypeDef,
1136
+ unknown
1137
+ > = z.object({
1138
+ type: ListDatasetDatapoints2DatasetsResponse200Type$inboundSchema,
1139
+ text: z.string(),
1140
+ cache_control: z.lazy(() =>
1141
+ ListDatasetDatapoints2DatasetsResponse200CacheControl$inboundSchema
1142
+ ).optional(),
1143
+ }).transform((v) => {
1144
+ return remap$(v, {
1145
+ "cache_control": "cacheControl",
1146
+ });
1147
+ });
1148
+ /** @internal */
1149
+ export type ListDatasetDatapoints2DatasetsResponse1$Outbound = {
1150
+ type: string;
1151
+ text: string;
1152
+ cache_control?:
1153
+ | ListDatasetDatapoints2DatasetsResponse200CacheControl$Outbound
1154
+ | undefined;
1155
+ };
1156
+
1157
+ /** @internal */
1158
+ export const ListDatasetDatapoints2DatasetsResponse1$outboundSchema: z.ZodType<
1159
+ ListDatasetDatapoints2DatasetsResponse1$Outbound,
1160
+ z.ZodTypeDef,
1161
+ ListDatasetDatapoints2DatasetsResponse1
1162
+ > = z.object({
1163
+ type: ListDatasetDatapoints2DatasetsResponse200Type$outboundSchema,
1164
+ text: z.string(),
1165
+ cacheControl: z.lazy(() =>
1166
+ ListDatasetDatapoints2DatasetsResponse200CacheControl$outboundSchema
1167
+ ).optional(),
1168
+ }).transform((v) => {
1169
+ return remap$(v, {
1170
+ cacheControl: "cache_control",
1171
+ });
1172
+ });
1173
+
1174
+ export function listDatasetDatapoints2DatasetsResponse1ToJSON(
1175
+ listDatasetDatapoints2DatasetsResponse1:
1176
+ ListDatasetDatapoints2DatasetsResponse1,
1177
+ ): string {
1178
+ return JSON.stringify(
1179
+ ListDatasetDatapoints2DatasetsResponse1$outboundSchema.parse(
1180
+ listDatasetDatapoints2DatasetsResponse1,
1181
+ ),
1182
+ );
1183
+ }
1184
+ export function listDatasetDatapoints2DatasetsResponse1FromJSON(
1185
+ jsonString: string,
1186
+ ): SafeParseResult<
1187
+ ListDatasetDatapoints2DatasetsResponse1,
1188
+ SDKValidationError
1189
+ > {
1190
+ return safeParse(
1191
+ jsonString,
1192
+ (x) =>
1193
+ ListDatasetDatapoints2DatasetsResponse1$inboundSchema.parse(
1194
+ JSON.parse(x),
1195
+ ),
1196
+ `Failed to parse 'ListDatasetDatapoints2DatasetsResponse1' from JSON`,
1197
+ );
1198
+ }
1199
+
1200
+ /** @internal */
1201
+ export const ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2$inboundSchema:
1202
+ z.ZodType<
1203
+ ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2,
1204
+ z.ZodTypeDef,
1205
+ unknown
1206
+ > = z.lazy(() => ListDatasetDatapoints2DatasetsResponse1$inboundSchema);
1207
+ /** @internal */
1208
+ export type ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2$Outbound =
1209
+ ListDatasetDatapoints2DatasetsResponse1$Outbound;
1210
+
1211
+ /** @internal */
1212
+ export const ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2$outboundSchema:
1213
+ z.ZodType<
1214
+ ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2$Outbound,
1215
+ z.ZodTypeDef,
1216
+ ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2
1217
+ > = z.lazy(() => ListDatasetDatapoints2DatasetsResponse1$outboundSchema);
1218
+
1219
+ export function listDatasetDatapointsContentDatasetsResponse200ApplicationJSON2ToJSON(
1220
+ listDatasetDatapointsContentDatasetsResponse200ApplicationJson2:
1221
+ ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2,
1222
+ ): string {
1223
+ return JSON.stringify(
1224
+ ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2$outboundSchema
1225
+ .parse(listDatasetDatapointsContentDatasetsResponse200ApplicationJson2),
1226
+ );
1227
+ }
1228
+ export function listDatasetDatapointsContentDatasetsResponse200ApplicationJSON2FromJSON(
1229
+ jsonString: string,
1230
+ ): SafeParseResult<
1231
+ ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2,
1232
+ SDKValidationError
1233
+ > {
1234
+ return safeParse(
1235
+ jsonString,
1236
+ (x) =>
1237
+ ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2$inboundSchema
1238
+ .parse(JSON.parse(x)),
1239
+ `Failed to parse 'ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2' from JSON`,
725
1240
  );
726
1241
  }
727
1242
 
@@ -733,12 +1248,14 @@ export const ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONCont
733
1248
  unknown
734
1249
  > = z.union([
735
1250
  z.string(),
736
- z.array(components.TextContentPartSchema$inboundSchema),
1251
+ z.array(
1252
+ z.lazy(() => ListDatasetDatapoints2DatasetsResponse1$inboundSchema),
1253
+ ),
737
1254
  ]);
738
1255
  /** @internal */
739
1256
  export type ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent$Outbound =
740
1257
  | string
741
- | Array<components.TextContentPartSchema$Outbound>;
1258
+ | Array<ListDatasetDatapoints2DatasetsResponse1$Outbound>;
742
1259
 
743
1260
  /** @internal */
744
1261
  export const ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent$outboundSchema:
@@ -748,7 +1265,9 @@ export const ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONCont
748
1265
  ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent
749
1266
  > = z.union([
750
1267
  z.string(),
751
- z.array(components.TextContentPartSchema$outboundSchema),
1268
+ z.array(
1269
+ z.lazy(() => ListDatasetDatapoints2DatasetsResponse1$outboundSchema),
1270
+ ),
752
1271
  ]);
753
1272
 
754
1273
  export function listDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContentToJSON(
@@ -856,7 +1375,9 @@ export const ListDatasetDatapointsMessagesToolMessage$inboundSchema: z.ZodType<
856
1375
  role: z.literal("tool"),
857
1376
  content: z.union([
858
1377
  z.string(),
859
- z.array(components.TextContentPartSchema$inboundSchema),
1378
+ z.array(
1379
+ z.lazy(() => ListDatasetDatapoints2DatasetsResponse1$inboundSchema),
1380
+ ),
860
1381
  ]),
861
1382
  tool_call_id: z.string(),
862
1383
  cache_control: z.lazy(() =>
@@ -871,7 +1392,7 @@ export const ListDatasetDatapointsMessagesToolMessage$inboundSchema: z.ZodType<
871
1392
  /** @internal */
872
1393
  export type ListDatasetDatapointsMessagesToolMessage$Outbound = {
873
1394
  role: "tool";
874
- content: string | Array<components.TextContentPartSchema$Outbound>;
1395
+ content: string | Array<ListDatasetDatapoints2DatasetsResponse1$Outbound>;
875
1396
  tool_call_id: string;
876
1397
  cache_control?:
877
1398
  | ListDatasetDatapointsMessagesCacheControl$Outbound
@@ -887,7 +1408,9 @@ export const ListDatasetDatapointsMessagesToolMessage$outboundSchema: z.ZodType<
887
1408
  role: z.literal("tool"),
888
1409
  content: z.union([
889
1410
  z.string(),
890
- z.array(components.TextContentPartSchema$outboundSchema),
1411
+ z.array(
1412
+ z.lazy(() => ListDatasetDatapoints2DatasetsResponse1$outboundSchema),
1413
+ ),
891
1414
  ]),
892
1415
  toolCallId: z.string(),
893
1416
  cacheControl: z.lazy(() =>
@@ -927,143 +1450,278 @@ export function listDatasetDatapointsMessagesToolMessageFromJSON(
927
1450
  }
928
1451
 
929
1452
  /** @internal */
930
- export const ListDatasetDatapointsContentDatasets2$inboundSchema: z.ZodType<
931
- ListDatasetDatapointsContentDatasets2,
932
- z.ZodTypeDef,
933
- unknown
934
- > = z.union([
935
- components.TextContentPartSchema$inboundSchema.and(
936
- z.object({ type: z.literal("text") }),
937
- ),
938
- components.RefusalPartSchema$inboundSchema,
939
- components.ReasoningPartSchema$inboundSchema,
940
- components.RedactedReasoningPartSchema$inboundSchema,
941
- ]);
1453
+ export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema:
1454
+ z.ZodNativeEnum<
1455
+ typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType
1456
+ > = z.nativeEnum(
1457
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType,
1458
+ );
942
1459
  /** @internal */
943
- export type ListDatasetDatapointsContentDatasets2$Outbound =
944
- | (components.TextContentPartSchema$Outbound & { type: "text" })
945
- | components.RefusalPartSchema$Outbound
946
- | components.ReasoningPartSchema$Outbound
947
- | components.RedactedReasoningPartSchema$Outbound;
1460
+ export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema:
1461
+ z.ZodNativeEnum<
1462
+ typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType
1463
+ > =
1464
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema;
948
1465
 
949
1466
  /** @internal */
950
- export const ListDatasetDatapointsContentDatasets2$outboundSchema: z.ZodType<
951
- ListDatasetDatapointsContentDatasets2$Outbound,
952
- z.ZodTypeDef,
953
- ListDatasetDatapointsContentDatasets2
954
- > = z.union([
955
- components.TextContentPartSchema$outboundSchema.and(
956
- z.object({ type: z.literal("text") }),
957
- ),
958
- components.RefusalPartSchema$outboundSchema,
959
- components.ReasoningPartSchema$outboundSchema,
960
- components.RedactedReasoningPartSchema$outboundSchema,
961
- ]);
962
-
963
- export function listDatasetDatapointsContentDatasets2ToJSON(
964
- listDatasetDatapointsContentDatasets2: ListDatasetDatapointsContentDatasets2,
965
- ): string {
966
- return JSON.stringify(
967
- ListDatasetDatapointsContentDatasets2$outboundSchema.parse(
968
- listDatasetDatapointsContentDatasets2,
969
- ),
970
- );
971
- }
972
- export function listDatasetDatapointsContentDatasets2FromJSON(
973
- jsonString: string,
974
- ): SafeParseResult<ListDatasetDatapointsContentDatasets2, SDKValidationError> {
975
- return safeParse(
976
- jsonString,
977
- (x) =>
978
- ListDatasetDatapointsContentDatasets2$inboundSchema.parse(JSON.parse(x)),
979
- `Failed to parse 'ListDatasetDatapointsContentDatasets2' from JSON`,
980
- );
981
- }
1467
+ export const ListDatasetDatapoints2DatasetsResponseTtl$inboundSchema:
1468
+ z.ZodNativeEnum<typeof ListDatasetDatapoints2DatasetsResponseTtl> = z
1469
+ .nativeEnum(ListDatasetDatapoints2DatasetsResponseTtl);
1470
+ /** @internal */
1471
+ export const ListDatasetDatapoints2DatasetsResponseTtl$outboundSchema:
1472
+ z.ZodNativeEnum<typeof ListDatasetDatapoints2DatasetsResponseTtl> =
1473
+ ListDatasetDatapoints2DatasetsResponseTtl$inboundSchema;
982
1474
 
983
1475
  /** @internal */
984
- export const ListDatasetDatapointsMessagesDatasetsResponse200Content$inboundSchema:
1476
+ export const ListDatasetDatapoints2DatasetsResponseCacheControl$inboundSchema:
985
1477
  z.ZodType<
986
- ListDatasetDatapointsMessagesDatasetsResponse200Content,
1478
+ ListDatasetDatapoints2DatasetsResponseCacheControl,
987
1479
  z.ZodTypeDef,
988
1480
  unknown
989
- > = z.union([
990
- z.string(),
991
- z.array(
992
- z.union([
993
- components.TextContentPartSchema$inboundSchema.and(
994
- z.object({ type: z.literal("text") }),
995
- ),
996
- components.RefusalPartSchema$inboundSchema,
997
- components.ReasoningPartSchema$inboundSchema,
998
- components.RedactedReasoningPartSchema$inboundSchema,
999
- ]),
1000
- ),
1001
- ]);
1481
+ > = z.object({
1482
+ type:
1483
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema,
1484
+ ttl: ListDatasetDatapoints2DatasetsResponseTtl$inboundSchema.default("5m"),
1485
+ });
1002
1486
  /** @internal */
1003
- export type ListDatasetDatapointsMessagesDatasetsResponse200Content$Outbound =
1004
- | string
1005
- | Array<
1006
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1007
- | components.RefusalPartSchema$Outbound
1008
- | components.ReasoningPartSchema$Outbound
1009
- | components.RedactedReasoningPartSchema$Outbound
1010
- >;
1487
+ export type ListDatasetDatapoints2DatasetsResponseCacheControl$Outbound = {
1488
+ type: string;
1489
+ ttl: string;
1490
+ };
1011
1491
 
1012
1492
  /** @internal */
1013
- export const ListDatasetDatapointsMessagesDatasetsResponse200Content$outboundSchema:
1493
+ export const ListDatasetDatapoints2DatasetsResponseCacheControl$outboundSchema:
1014
1494
  z.ZodType<
1015
- ListDatasetDatapointsMessagesDatasetsResponse200Content$Outbound,
1495
+ ListDatasetDatapoints2DatasetsResponseCacheControl$Outbound,
1016
1496
  z.ZodTypeDef,
1017
- ListDatasetDatapointsMessagesDatasetsResponse200Content
1018
- > = z.union([
1019
- z.string(),
1020
- z.array(
1021
- z.union([
1022
- components.TextContentPartSchema$outboundSchema.and(
1023
- z.object({ type: z.literal("text") }),
1024
- ),
1025
- components.RefusalPartSchema$outboundSchema,
1026
- components.ReasoningPartSchema$outboundSchema,
1027
- components.RedactedReasoningPartSchema$outboundSchema,
1028
- ]),
1029
- ),
1030
- ]);
1497
+ ListDatasetDatapoints2DatasetsResponseCacheControl
1498
+ > = z.object({
1499
+ type:
1500
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema,
1501
+ ttl: ListDatasetDatapoints2DatasetsResponseTtl$outboundSchema.default("5m"),
1502
+ });
1031
1503
 
1032
- export function listDatasetDatapointsMessagesDatasetsResponse200ContentToJSON(
1033
- listDatasetDatapointsMessagesDatasetsResponse200Content:
1034
- ListDatasetDatapointsMessagesDatasetsResponse200Content,
1504
+ export function listDatasetDatapoints2DatasetsResponseCacheControlToJSON(
1505
+ listDatasetDatapoints2DatasetsResponseCacheControl:
1506
+ ListDatasetDatapoints2DatasetsResponseCacheControl,
1035
1507
  ): string {
1036
1508
  return JSON.stringify(
1037
- ListDatasetDatapointsMessagesDatasetsResponse200Content$outboundSchema
1038
- .parse(listDatasetDatapointsMessagesDatasetsResponse200Content),
1509
+ ListDatasetDatapoints2DatasetsResponseCacheControl$outboundSchema.parse(
1510
+ listDatasetDatapoints2DatasetsResponseCacheControl,
1511
+ ),
1039
1512
  );
1040
1513
  }
1041
- export function listDatasetDatapointsMessagesDatasetsResponse200ContentFromJSON(
1514
+ export function listDatasetDatapoints2DatasetsResponseCacheControlFromJSON(
1042
1515
  jsonString: string,
1043
1516
  ): SafeParseResult<
1044
- ListDatasetDatapointsMessagesDatasetsResponse200Content,
1517
+ ListDatasetDatapoints2DatasetsResponseCacheControl,
1045
1518
  SDKValidationError
1046
1519
  > {
1047
1520
  return safeParse(
1048
1521
  jsonString,
1049
1522
  (x) =>
1050
- ListDatasetDatapointsMessagesDatasetsResponse200Content$inboundSchema
1051
- .parse(JSON.parse(x)),
1052
- `Failed to parse 'ListDatasetDatapointsMessagesDatasetsResponse200Content' from JSON`,
1523
+ ListDatasetDatapoints2DatasetsResponseCacheControl$inboundSchema.parse(
1524
+ JSON.parse(x),
1525
+ ),
1526
+ `Failed to parse 'ListDatasetDatapoints2DatasetsResponseCacheControl' from JSON`,
1053
1527
  );
1054
1528
  }
1055
1529
 
1056
1530
  /** @internal */
1057
- export const ListDatasetDatapointsMessagesAudio$inboundSchema: z.ZodType<
1058
- ListDatasetDatapointsMessagesAudio,
1531
+ export const ListDatasetDatapoints2Datasets1$inboundSchema: z.ZodType<
1532
+ ListDatasetDatapoints2Datasets1,
1059
1533
  z.ZodTypeDef,
1060
1534
  unknown
1061
1535
  > = z.object({
1062
- id: z.string(),
1063
- });
1064
- /** @internal */
1065
- export type ListDatasetDatapointsMessagesAudio$Outbound = {
1066
- id: string;
1536
+ type: z.literal("text"),
1537
+ text: z.string(),
1538
+ cache_control: z.lazy(() =>
1539
+ ListDatasetDatapoints2DatasetsResponseCacheControl$inboundSchema
1540
+ ).optional(),
1541
+ }).transform((v) => {
1542
+ return remap$(v, {
1543
+ "cache_control": "cacheControl",
1544
+ });
1545
+ });
1546
+ /** @internal */
1547
+ export type ListDatasetDatapoints2Datasets1$Outbound = {
1548
+ type: "text";
1549
+ text: string;
1550
+ cache_control?:
1551
+ | ListDatasetDatapoints2DatasetsResponseCacheControl$Outbound
1552
+ | undefined;
1553
+ };
1554
+
1555
+ /** @internal */
1556
+ export const ListDatasetDatapoints2Datasets1$outboundSchema: z.ZodType<
1557
+ ListDatasetDatapoints2Datasets1$Outbound,
1558
+ z.ZodTypeDef,
1559
+ ListDatasetDatapoints2Datasets1
1560
+ > = z.object({
1561
+ type: z.literal("text"),
1562
+ text: z.string(),
1563
+ cacheControl: z.lazy(() =>
1564
+ ListDatasetDatapoints2DatasetsResponseCacheControl$outboundSchema
1565
+ ).optional(),
1566
+ }).transform((v) => {
1567
+ return remap$(v, {
1568
+ cacheControl: "cache_control",
1569
+ });
1570
+ });
1571
+
1572
+ export function listDatasetDatapoints2Datasets1ToJSON(
1573
+ listDatasetDatapoints2Datasets1: ListDatasetDatapoints2Datasets1,
1574
+ ): string {
1575
+ return JSON.stringify(
1576
+ ListDatasetDatapoints2Datasets1$outboundSchema.parse(
1577
+ listDatasetDatapoints2Datasets1,
1578
+ ),
1579
+ );
1580
+ }
1581
+ export function listDatasetDatapoints2Datasets1FromJSON(
1582
+ jsonString: string,
1583
+ ): SafeParseResult<ListDatasetDatapoints2Datasets1, SDKValidationError> {
1584
+ return safeParse(
1585
+ jsonString,
1586
+ (x) => ListDatasetDatapoints2Datasets1$inboundSchema.parse(JSON.parse(x)),
1587
+ `Failed to parse 'ListDatasetDatapoints2Datasets1' from JSON`,
1588
+ );
1589
+ }
1590
+
1591
+ /** @internal */
1592
+ export const ListDatasetDatapointsContentDatasetsResponse2002$inboundSchema:
1593
+ z.ZodType<
1594
+ ListDatasetDatapointsContentDatasetsResponse2002,
1595
+ z.ZodTypeDef,
1596
+ unknown
1597
+ > = z.union([
1598
+ z.lazy(() => ListDatasetDatapoints2Datasets1$inboundSchema),
1599
+ components.RefusalPartSchema$inboundSchema,
1600
+ components.ReasoningPartSchema$inboundSchema,
1601
+ components.RedactedReasoningPartSchema$inboundSchema,
1602
+ ]);
1603
+ /** @internal */
1604
+ export type ListDatasetDatapointsContentDatasetsResponse2002$Outbound =
1605
+ | ListDatasetDatapoints2Datasets1$Outbound
1606
+ | components.RefusalPartSchema$Outbound
1607
+ | components.ReasoningPartSchema$Outbound
1608
+ | components.RedactedReasoningPartSchema$Outbound;
1609
+
1610
+ /** @internal */
1611
+ export const ListDatasetDatapointsContentDatasetsResponse2002$outboundSchema:
1612
+ z.ZodType<
1613
+ ListDatasetDatapointsContentDatasetsResponse2002$Outbound,
1614
+ z.ZodTypeDef,
1615
+ ListDatasetDatapointsContentDatasetsResponse2002
1616
+ > = z.union([
1617
+ z.lazy(() => ListDatasetDatapoints2Datasets1$outboundSchema),
1618
+ components.RefusalPartSchema$outboundSchema,
1619
+ components.ReasoningPartSchema$outboundSchema,
1620
+ components.RedactedReasoningPartSchema$outboundSchema,
1621
+ ]);
1622
+
1623
+ export function listDatasetDatapointsContentDatasetsResponse2002ToJSON(
1624
+ listDatasetDatapointsContentDatasetsResponse2002:
1625
+ ListDatasetDatapointsContentDatasetsResponse2002,
1626
+ ): string {
1627
+ return JSON.stringify(
1628
+ ListDatasetDatapointsContentDatasetsResponse2002$outboundSchema.parse(
1629
+ listDatasetDatapointsContentDatasetsResponse2002,
1630
+ ),
1631
+ );
1632
+ }
1633
+ export function listDatasetDatapointsContentDatasetsResponse2002FromJSON(
1634
+ jsonString: string,
1635
+ ): SafeParseResult<
1636
+ ListDatasetDatapointsContentDatasetsResponse2002,
1637
+ SDKValidationError
1638
+ > {
1639
+ return safeParse(
1640
+ jsonString,
1641
+ (x) =>
1642
+ ListDatasetDatapointsContentDatasetsResponse2002$inboundSchema.parse(
1643
+ JSON.parse(x),
1644
+ ),
1645
+ `Failed to parse 'ListDatasetDatapointsContentDatasetsResponse2002' from JSON`,
1646
+ );
1647
+ }
1648
+
1649
+ /** @internal */
1650
+ export const ListDatasetDatapointsMessagesDatasetsResponse200Content$inboundSchema:
1651
+ z.ZodType<
1652
+ ListDatasetDatapointsMessagesDatasetsResponse200Content,
1653
+ z.ZodTypeDef,
1654
+ unknown
1655
+ > = z.union([
1656
+ z.string(),
1657
+ z.array(z.union([
1658
+ z.lazy(() => ListDatasetDatapoints2Datasets1$inboundSchema),
1659
+ components.RefusalPartSchema$inboundSchema,
1660
+ components.ReasoningPartSchema$inboundSchema,
1661
+ components.RedactedReasoningPartSchema$inboundSchema,
1662
+ ])),
1663
+ ]);
1664
+ /** @internal */
1665
+ export type ListDatasetDatapointsMessagesDatasetsResponse200Content$Outbound =
1666
+ | string
1667
+ | Array<
1668
+ | ListDatasetDatapoints2Datasets1$Outbound
1669
+ | components.RefusalPartSchema$Outbound
1670
+ | components.ReasoningPartSchema$Outbound
1671
+ | components.RedactedReasoningPartSchema$Outbound
1672
+ >;
1673
+
1674
+ /** @internal */
1675
+ export const ListDatasetDatapointsMessagesDatasetsResponse200Content$outboundSchema:
1676
+ z.ZodType<
1677
+ ListDatasetDatapointsMessagesDatasetsResponse200Content$Outbound,
1678
+ z.ZodTypeDef,
1679
+ ListDatasetDatapointsMessagesDatasetsResponse200Content
1680
+ > = z.union([
1681
+ z.string(),
1682
+ z.array(z.union([
1683
+ z.lazy(() => ListDatasetDatapoints2Datasets1$outboundSchema),
1684
+ components.RefusalPartSchema$outboundSchema,
1685
+ components.ReasoningPartSchema$outboundSchema,
1686
+ components.RedactedReasoningPartSchema$outboundSchema,
1687
+ ])),
1688
+ ]);
1689
+
1690
+ export function listDatasetDatapointsMessagesDatasetsResponse200ContentToJSON(
1691
+ listDatasetDatapointsMessagesDatasetsResponse200Content:
1692
+ ListDatasetDatapointsMessagesDatasetsResponse200Content,
1693
+ ): string {
1694
+ return JSON.stringify(
1695
+ ListDatasetDatapointsMessagesDatasetsResponse200Content$outboundSchema
1696
+ .parse(listDatasetDatapointsMessagesDatasetsResponse200Content),
1697
+ );
1698
+ }
1699
+ export function listDatasetDatapointsMessagesDatasetsResponse200ContentFromJSON(
1700
+ jsonString: string,
1701
+ ): SafeParseResult<
1702
+ ListDatasetDatapointsMessagesDatasetsResponse200Content,
1703
+ SDKValidationError
1704
+ > {
1705
+ return safeParse(
1706
+ jsonString,
1707
+ (x) =>
1708
+ ListDatasetDatapointsMessagesDatasetsResponse200Content$inboundSchema
1709
+ .parse(JSON.parse(x)),
1710
+ `Failed to parse 'ListDatasetDatapointsMessagesDatasetsResponse200Content' from JSON`,
1711
+ );
1712
+ }
1713
+
1714
+ /** @internal */
1715
+ export const ListDatasetDatapointsMessagesAudio$inboundSchema: z.ZodType<
1716
+ ListDatasetDatapointsMessagesAudio,
1717
+ z.ZodTypeDef,
1718
+ unknown
1719
+ > = z.object({
1720
+ id: z.string(),
1721
+ });
1722
+ /** @internal */
1723
+ export type ListDatasetDatapointsMessagesAudio$Outbound = {
1724
+ id: string;
1067
1725
  };
1068
1726
 
1069
1727
  /** @internal */
@@ -1221,9 +1879,7 @@ export const ListDatasetDatapointsMessagesAssistantMessage$inboundSchema:
1221
1879
  z.string(),
1222
1880
  z.array(
1223
1881
  z.union([
1224
- components.TextContentPartSchema$inboundSchema.and(
1225
- z.object({ type: z.literal("text") }),
1226
- ),
1882
+ z.lazy(() => ListDatasetDatapoints2Datasets1$inboundSchema),
1227
1883
  components.RefusalPartSchema$inboundSchema,
1228
1884
  components.ReasoningPartSchema$inboundSchema,
1229
1885
  components.RedactedReasoningPartSchema$inboundSchema,
@@ -1250,7 +1906,7 @@ export type ListDatasetDatapointsMessagesAssistantMessage$Outbound = {
1250
1906
  content?:
1251
1907
  | string
1252
1908
  | Array<
1253
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1909
+ | ListDatasetDatapoints2Datasets1$Outbound
1254
1910
  | components.RefusalPartSchema$Outbound
1255
1911
  | components.ReasoningPartSchema$Outbound
1256
1912
  | components.RedactedReasoningPartSchema$Outbound
@@ -1278,9 +1934,7 @@ export const ListDatasetDatapointsMessagesAssistantMessage$outboundSchema:
1278
1934
  z.string(),
1279
1935
  z.array(
1280
1936
  z.union([
1281
- components.TextContentPartSchema$outboundSchema.and(
1282
- z.object({ type: z.literal("text") }),
1283
- ),
1937
+ z.lazy(() => ListDatasetDatapoints2Datasets1$outboundSchema),
1284
1938
  components.RefusalPartSchema$outboundSchema,
1285
1939
  components.ReasoningPartSchema$outboundSchema,
1286
1940
  components.RedactedReasoningPartSchema$outboundSchema,
@@ -1330,65 +1984,77 @@ export function listDatasetDatapointsMessagesAssistantMessageFromJSON(
1330
1984
  }
1331
1985
 
1332
1986
  /** @internal */
1333
- export const ListDatasetDatapoints2DatasetsType$inboundSchema: z.ZodNativeEnum<
1334
- typeof ListDatasetDatapoints2DatasetsType
1335
- > = z.nativeEnum(ListDatasetDatapoints2DatasetsType);
1987
+ export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType$inboundSchema:
1988
+ z.ZodNativeEnum<
1989
+ typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType
1990
+ > = z.nativeEnum(
1991
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType,
1992
+ );
1336
1993
  /** @internal */
1337
- export const ListDatasetDatapoints2DatasetsType$outboundSchema: z.ZodNativeEnum<
1338
- typeof ListDatasetDatapoints2DatasetsType
1339
- > = ListDatasetDatapoints2DatasetsType$inboundSchema;
1994
+ export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType$outboundSchema:
1995
+ z.ZodNativeEnum<
1996
+ typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType
1997
+ > =
1998
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType$inboundSchema;
1340
1999
 
1341
2000
  /** @internal */
1342
- export const ListDatasetDatapoints2Ttl$inboundSchema: z.ZodNativeEnum<
1343
- typeof ListDatasetDatapoints2Ttl
1344
- > = z.nativeEnum(ListDatasetDatapoints2Ttl);
2001
+ export const ListDatasetDatapoints2DatasetsTtl$inboundSchema: z.ZodNativeEnum<
2002
+ typeof ListDatasetDatapoints2DatasetsTtl
2003
+ > = z.nativeEnum(ListDatasetDatapoints2DatasetsTtl);
1345
2004
  /** @internal */
1346
- export const ListDatasetDatapoints2Ttl$outboundSchema: z.ZodNativeEnum<
1347
- typeof ListDatasetDatapoints2Ttl
1348
- > = ListDatasetDatapoints2Ttl$inboundSchema;
2005
+ export const ListDatasetDatapoints2DatasetsTtl$outboundSchema: z.ZodNativeEnum<
2006
+ typeof ListDatasetDatapoints2DatasetsTtl
2007
+ > = ListDatasetDatapoints2DatasetsTtl$inboundSchema;
1349
2008
 
1350
2009
  /** @internal */
1351
- export const ListDatasetDatapoints2CacheControl$inboundSchema: z.ZodType<
1352
- ListDatasetDatapoints2CacheControl,
1353
- z.ZodTypeDef,
1354
- unknown
1355
- > = z.object({
1356
- type: ListDatasetDatapoints2DatasetsType$inboundSchema,
1357
- ttl: ListDatasetDatapoints2Ttl$inboundSchema.default("5m"),
1358
- });
2010
+ export const ListDatasetDatapoints2DatasetsCacheControl$inboundSchema:
2011
+ z.ZodType<ListDatasetDatapoints2DatasetsCacheControl, z.ZodTypeDef, unknown> =
2012
+ z.object({
2013
+ type:
2014
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType$inboundSchema,
2015
+ ttl: ListDatasetDatapoints2DatasetsTtl$inboundSchema.default("5m"),
2016
+ });
1359
2017
  /** @internal */
1360
- export type ListDatasetDatapoints2CacheControl$Outbound = {
2018
+ export type ListDatasetDatapoints2DatasetsCacheControl$Outbound = {
1361
2019
  type: string;
1362
2020
  ttl: string;
1363
2021
  };
1364
2022
 
1365
2023
  /** @internal */
1366
- export const ListDatasetDatapoints2CacheControl$outboundSchema: z.ZodType<
1367
- ListDatasetDatapoints2CacheControl$Outbound,
1368
- z.ZodTypeDef,
1369
- ListDatasetDatapoints2CacheControl
1370
- > = z.object({
1371
- type: ListDatasetDatapoints2DatasetsType$outboundSchema,
1372
- ttl: ListDatasetDatapoints2Ttl$outboundSchema.default("5m"),
1373
- });
2024
+ export const ListDatasetDatapoints2DatasetsCacheControl$outboundSchema:
2025
+ z.ZodType<
2026
+ ListDatasetDatapoints2DatasetsCacheControl$Outbound,
2027
+ z.ZodTypeDef,
2028
+ ListDatasetDatapoints2DatasetsCacheControl
2029
+ > = z.object({
2030
+ type:
2031
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType$outboundSchema,
2032
+ ttl: ListDatasetDatapoints2DatasetsTtl$outboundSchema.default("5m"),
2033
+ });
1374
2034
 
1375
- export function listDatasetDatapoints2CacheControlToJSON(
1376
- listDatasetDatapoints2CacheControl: ListDatasetDatapoints2CacheControl,
2035
+ export function listDatasetDatapoints2DatasetsCacheControlToJSON(
2036
+ listDatasetDatapoints2DatasetsCacheControl:
2037
+ ListDatasetDatapoints2DatasetsCacheControl,
1377
2038
  ): string {
1378
2039
  return JSON.stringify(
1379
- ListDatasetDatapoints2CacheControl$outboundSchema.parse(
1380
- listDatasetDatapoints2CacheControl,
2040
+ ListDatasetDatapoints2DatasetsCacheControl$outboundSchema.parse(
2041
+ listDatasetDatapoints2DatasetsCacheControl,
1381
2042
  ),
1382
2043
  );
1383
2044
  }
1384
- export function listDatasetDatapoints2CacheControlFromJSON(
2045
+ export function listDatasetDatapoints2DatasetsCacheControlFromJSON(
1385
2046
  jsonString: string,
1386
- ): SafeParseResult<ListDatasetDatapoints2CacheControl, SDKValidationError> {
2047
+ ): SafeParseResult<
2048
+ ListDatasetDatapoints2DatasetsCacheControl,
2049
+ SDKValidationError
2050
+ > {
1387
2051
  return safeParse(
1388
2052
  jsonString,
1389
2053
  (x) =>
1390
- ListDatasetDatapoints2CacheControl$inboundSchema.parse(JSON.parse(x)),
1391
- `Failed to parse 'ListDatasetDatapoints2CacheControl' from JSON`,
2054
+ ListDatasetDatapoints2DatasetsCacheControl$inboundSchema.parse(
2055
+ JSON.parse(x),
2056
+ ),
2057
+ `Failed to parse 'ListDatasetDatapoints2DatasetsCacheControl' from JSON`,
1392
2058
  );
1393
2059
  }
1394
2060
 
@@ -1399,8 +2065,9 @@ export const ListDatasetDatapoints24$inboundSchema: z.ZodType<
1399
2065
  unknown
1400
2066
  > = z.object({
1401
2067
  type: z.literal("file"),
1402
- cache_control: z.lazy(() => ListDatasetDatapoints2CacheControl$inboundSchema)
1403
- .optional(),
2068
+ cache_control: z.lazy(() =>
2069
+ ListDatasetDatapoints2DatasetsCacheControl$inboundSchema
2070
+ ).optional(),
1404
2071
  file: components.FileContentPartSchema$inboundSchema,
1405
2072
  }).transform((v) => {
1406
2073
  return remap$(v, {
@@ -1410,7 +2077,9 @@ export const ListDatasetDatapoints24$inboundSchema: z.ZodType<
1410
2077
  /** @internal */
1411
2078
  export type ListDatasetDatapoints24$Outbound = {
1412
2079
  type: "file";
1413
- cache_control?: ListDatasetDatapoints2CacheControl$Outbound | undefined;
2080
+ cache_control?:
2081
+ | ListDatasetDatapoints2DatasetsCacheControl$Outbound
2082
+ | undefined;
1414
2083
  file: components.FileContentPartSchema$Outbound;
1415
2084
  };
1416
2085
 
@@ -1421,8 +2090,9 @@ export const ListDatasetDatapoints24$outboundSchema: z.ZodType<
1421
2090
  ListDatasetDatapoints24
1422
2091
  > = z.object({
1423
2092
  type: z.literal("file"),
1424
- cacheControl: z.lazy(() => ListDatasetDatapoints2CacheControl$outboundSchema)
1425
- .optional(),
2093
+ cacheControl: z.lazy(() =>
2094
+ ListDatasetDatapoints2DatasetsCacheControl$outboundSchema
2095
+ ).optional(),
1426
2096
  file: components.FileContentPartSchema$outboundSchema,
1427
2097
  }).transform((v) => {
1428
2098
  return remap$(v, {
@@ -1448,82 +2118,208 @@ export function listDatasetDatapoints24FromJSON(
1448
2118
  }
1449
2119
 
1450
2120
  /** @internal */
1451
- export const ListDatasetDatapointsContent2$inboundSchema: z.ZodType<
1452
- ListDatasetDatapointsContent2,
2121
+ export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$inboundSchema:
2122
+ z.ZodNativeEnum<
2123
+ typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType
2124
+ > = z.nativeEnum(
2125
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType,
2126
+ );
2127
+ /** @internal */
2128
+ export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$outboundSchema:
2129
+ z.ZodNativeEnum<
2130
+ typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType
2131
+ > =
2132
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$inboundSchema;
2133
+
2134
+ /** @internal */
2135
+ export const ListDatasetDatapoints2Ttl$inboundSchema: z.ZodNativeEnum<
2136
+ typeof ListDatasetDatapoints2Ttl
2137
+ > = z.nativeEnum(ListDatasetDatapoints2Ttl);
2138
+ /** @internal */
2139
+ export const ListDatasetDatapoints2Ttl$outboundSchema: z.ZodNativeEnum<
2140
+ typeof ListDatasetDatapoints2Ttl
2141
+ > = ListDatasetDatapoints2Ttl$inboundSchema;
2142
+
2143
+ /** @internal */
2144
+ export const ListDatasetDatapoints2CacheControl$inboundSchema: z.ZodType<
2145
+ ListDatasetDatapoints2CacheControl,
1453
2146
  z.ZodTypeDef,
1454
2147
  unknown
1455
- > = z.union([
1456
- components.TextContentPartSchema$inboundSchema.and(
1457
- z.object({ type: z.literal("text") }),
1458
- ),
1459
- components.ImageContentPartSchema$inboundSchema,
1460
- components.AudioContentPartSchema$inboundSchema,
1461
- z.lazy(() => ListDatasetDatapoints24$inboundSchema),
1462
- ]);
2148
+ > = z.object({
2149
+ type:
2150
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$inboundSchema,
2151
+ ttl: ListDatasetDatapoints2Ttl$inboundSchema.default("5m"),
2152
+ });
1463
2153
  /** @internal */
1464
- export type ListDatasetDatapointsContent2$Outbound =
1465
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1466
- | components.ImageContentPartSchema$Outbound
1467
- | components.AudioContentPartSchema$Outbound
1468
- | ListDatasetDatapoints24$Outbound;
2154
+ export type ListDatasetDatapoints2CacheControl$Outbound = {
2155
+ type: string;
2156
+ ttl: string;
2157
+ };
1469
2158
 
1470
2159
  /** @internal */
1471
- export const ListDatasetDatapointsContent2$outboundSchema: z.ZodType<
1472
- ListDatasetDatapointsContent2$Outbound,
2160
+ export const ListDatasetDatapoints2CacheControl$outboundSchema: z.ZodType<
2161
+ ListDatasetDatapoints2CacheControl$Outbound,
1473
2162
  z.ZodTypeDef,
1474
- ListDatasetDatapointsContent2
1475
- > = z.union([
1476
- components.TextContentPartSchema$outboundSchema.and(
1477
- z.object({ type: z.literal("text") }),
1478
- ),
1479
- components.ImageContentPartSchema$outboundSchema,
1480
- components.AudioContentPartSchema$outboundSchema,
1481
- z.lazy(() => ListDatasetDatapoints24$outboundSchema),
1482
- ]);
2163
+ ListDatasetDatapoints2CacheControl
2164
+ > = z.object({
2165
+ type:
2166
+ ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$outboundSchema,
2167
+ ttl: ListDatasetDatapoints2Ttl$outboundSchema.default("5m"),
2168
+ });
1483
2169
 
1484
- export function listDatasetDatapointsContent2ToJSON(
1485
- listDatasetDatapointsContent2: ListDatasetDatapointsContent2,
2170
+ export function listDatasetDatapoints2CacheControlToJSON(
2171
+ listDatasetDatapoints2CacheControl: ListDatasetDatapoints2CacheControl,
1486
2172
  ): string {
1487
2173
  return JSON.stringify(
1488
- ListDatasetDatapointsContent2$outboundSchema.parse(
1489
- listDatasetDatapointsContent2,
2174
+ ListDatasetDatapoints2CacheControl$outboundSchema.parse(
2175
+ listDatasetDatapoints2CacheControl,
1490
2176
  ),
1491
2177
  );
1492
2178
  }
1493
- export function listDatasetDatapointsContent2FromJSON(
2179
+ export function listDatasetDatapoints2CacheControlFromJSON(
1494
2180
  jsonString: string,
1495
- ): SafeParseResult<ListDatasetDatapointsContent2, SDKValidationError> {
2181
+ ): SafeParseResult<ListDatasetDatapoints2CacheControl, SDKValidationError> {
1496
2182
  return safeParse(
1497
2183
  jsonString,
1498
- (x) => ListDatasetDatapointsContent2$inboundSchema.parse(JSON.parse(x)),
1499
- `Failed to parse 'ListDatasetDatapointsContent2' from JSON`,
2184
+ (x) =>
2185
+ ListDatasetDatapoints2CacheControl$inboundSchema.parse(JSON.parse(x)),
2186
+ `Failed to parse 'ListDatasetDatapoints2CacheControl' from JSON`,
1500
2187
  );
1501
2188
  }
1502
2189
 
1503
2190
  /** @internal */
1504
- export const ListDatasetDatapointsMessagesDatasetsResponseContent$inboundSchema:
1505
- z.ZodType<
1506
- ListDatasetDatapointsMessagesDatasetsResponseContent,
1507
- z.ZodTypeDef,
1508
- unknown
1509
- > = z.union([
1510
- z.string(),
1511
- z.array(
1512
- z.union([
1513
- components.TextContentPartSchema$inboundSchema.and(
1514
- z.object({ type: z.literal("text") }),
1515
- ),
1516
- components.ImageContentPartSchema$inboundSchema,
1517
- components.AudioContentPartSchema$inboundSchema,
1518
- z.lazy(() => ListDatasetDatapoints24$inboundSchema),
1519
- ]),
2191
+ export const ListDatasetDatapoints21$inboundSchema: z.ZodType<
2192
+ ListDatasetDatapoints21,
2193
+ z.ZodTypeDef,
2194
+ unknown
2195
+ > = z.object({
2196
+ type: z.literal("text"),
2197
+ text: z.string(),
2198
+ cache_control: z.lazy(() => ListDatasetDatapoints2CacheControl$inboundSchema)
2199
+ .optional(),
2200
+ }).transform((v) => {
2201
+ return remap$(v, {
2202
+ "cache_control": "cacheControl",
2203
+ });
2204
+ });
2205
+ /** @internal */
2206
+ export type ListDatasetDatapoints21$Outbound = {
2207
+ type: "text";
2208
+ text: string;
2209
+ cache_control?: ListDatasetDatapoints2CacheControl$Outbound | undefined;
2210
+ };
2211
+
2212
+ /** @internal */
2213
+ export const ListDatasetDatapoints21$outboundSchema: z.ZodType<
2214
+ ListDatasetDatapoints21$Outbound,
2215
+ z.ZodTypeDef,
2216
+ ListDatasetDatapoints21
2217
+ > = z.object({
2218
+ type: z.literal("text"),
2219
+ text: z.string(),
2220
+ cacheControl: z.lazy(() => ListDatasetDatapoints2CacheControl$outboundSchema)
2221
+ .optional(),
2222
+ }).transform((v) => {
2223
+ return remap$(v, {
2224
+ cacheControl: "cache_control",
2225
+ });
2226
+ });
2227
+
2228
+ export function listDatasetDatapoints21ToJSON(
2229
+ listDatasetDatapoints21: ListDatasetDatapoints21,
2230
+ ): string {
2231
+ return JSON.stringify(
2232
+ ListDatasetDatapoints21$outboundSchema.parse(listDatasetDatapoints21),
2233
+ );
2234
+ }
2235
+ export function listDatasetDatapoints21FromJSON(
2236
+ jsonString: string,
2237
+ ): SafeParseResult<ListDatasetDatapoints21, SDKValidationError> {
2238
+ return safeParse(
2239
+ jsonString,
2240
+ (x) => ListDatasetDatapoints21$inboundSchema.parse(JSON.parse(x)),
2241
+ `Failed to parse 'ListDatasetDatapoints21' from JSON`,
2242
+ );
2243
+ }
2244
+
2245
+ /** @internal */
2246
+ export const ListDatasetDatapointsContentDatasetsResponse2$inboundSchema:
2247
+ z.ZodType<
2248
+ ListDatasetDatapointsContentDatasetsResponse2,
2249
+ z.ZodTypeDef,
2250
+ unknown
2251
+ > = z.union([
2252
+ z.lazy(() => ListDatasetDatapoints21$inboundSchema),
2253
+ components.ImageContentPartSchema$inboundSchema,
2254
+ components.AudioContentPartSchema$inboundSchema,
2255
+ z.lazy(() => ListDatasetDatapoints24$inboundSchema),
2256
+ ]);
2257
+ /** @internal */
2258
+ export type ListDatasetDatapointsContentDatasetsResponse2$Outbound =
2259
+ | ListDatasetDatapoints21$Outbound
2260
+ | components.ImageContentPartSchema$Outbound
2261
+ | components.AudioContentPartSchema$Outbound
2262
+ | ListDatasetDatapoints24$Outbound;
2263
+
2264
+ /** @internal */
2265
+ export const ListDatasetDatapointsContentDatasetsResponse2$outboundSchema:
2266
+ z.ZodType<
2267
+ ListDatasetDatapointsContentDatasetsResponse2$Outbound,
2268
+ z.ZodTypeDef,
2269
+ ListDatasetDatapointsContentDatasetsResponse2
2270
+ > = z.union([
2271
+ z.lazy(() => ListDatasetDatapoints21$outboundSchema),
2272
+ components.ImageContentPartSchema$outboundSchema,
2273
+ components.AudioContentPartSchema$outboundSchema,
2274
+ z.lazy(() => ListDatasetDatapoints24$outboundSchema),
2275
+ ]);
2276
+
2277
+ export function listDatasetDatapointsContentDatasetsResponse2ToJSON(
2278
+ listDatasetDatapointsContentDatasetsResponse2:
2279
+ ListDatasetDatapointsContentDatasetsResponse2,
2280
+ ): string {
2281
+ return JSON.stringify(
2282
+ ListDatasetDatapointsContentDatasetsResponse2$outboundSchema.parse(
2283
+ listDatasetDatapointsContentDatasetsResponse2,
1520
2284
  ),
2285
+ );
2286
+ }
2287
+ export function listDatasetDatapointsContentDatasetsResponse2FromJSON(
2288
+ jsonString: string,
2289
+ ): SafeParseResult<
2290
+ ListDatasetDatapointsContentDatasetsResponse2,
2291
+ SDKValidationError
2292
+ > {
2293
+ return safeParse(
2294
+ jsonString,
2295
+ (x) =>
2296
+ ListDatasetDatapointsContentDatasetsResponse2$inboundSchema.parse(
2297
+ JSON.parse(x),
2298
+ ),
2299
+ `Failed to parse 'ListDatasetDatapointsContentDatasetsResponse2' from JSON`,
2300
+ );
2301
+ }
2302
+
2303
+ /** @internal */
2304
+ export const ListDatasetDatapointsMessagesDatasetsResponseContent$inboundSchema:
2305
+ z.ZodType<
2306
+ ListDatasetDatapointsMessagesDatasetsResponseContent,
2307
+ z.ZodTypeDef,
2308
+ unknown
2309
+ > = z.union([
2310
+ z.string(),
2311
+ z.array(z.union([
2312
+ z.lazy(() => ListDatasetDatapoints21$inboundSchema),
2313
+ components.ImageContentPartSchema$inboundSchema,
2314
+ components.AudioContentPartSchema$inboundSchema,
2315
+ z.lazy(() => ListDatasetDatapoints24$inboundSchema),
2316
+ ])),
1521
2317
  ]);
1522
2318
  /** @internal */
1523
2319
  export type ListDatasetDatapointsMessagesDatasetsResponseContent$Outbound =
1524
2320
  | string
1525
2321
  | Array<
1526
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2322
+ | ListDatasetDatapoints21$Outbound
1527
2323
  | components.ImageContentPartSchema$Outbound
1528
2324
  | components.AudioContentPartSchema$Outbound
1529
2325
  | ListDatasetDatapoints24$Outbound
@@ -1537,16 +2333,12 @@ export const ListDatasetDatapointsMessagesDatasetsResponseContent$outboundSchema
1537
2333
  ListDatasetDatapointsMessagesDatasetsResponseContent
1538
2334
  > = z.union([
1539
2335
  z.string(),
1540
- z.array(
1541
- z.union([
1542
- components.TextContentPartSchema$outboundSchema.and(
1543
- z.object({ type: z.literal("text") }),
1544
- ),
1545
- components.ImageContentPartSchema$outboundSchema,
1546
- components.AudioContentPartSchema$outboundSchema,
1547
- z.lazy(() => ListDatasetDatapoints24$outboundSchema),
1548
- ]),
1549
- ),
2336
+ z.array(z.union([
2337
+ z.lazy(() => ListDatasetDatapoints21$outboundSchema),
2338
+ components.ImageContentPartSchema$outboundSchema,
2339
+ components.AudioContentPartSchema$outboundSchema,
2340
+ z.lazy(() => ListDatasetDatapoints24$outboundSchema),
2341
+ ])),
1550
2342
  ]);
1551
2343
 
1552
2344
  export function listDatasetDatapointsMessagesDatasetsResponseContentToJSON(
@@ -1585,16 +2377,12 @@ export const ListDatasetDatapointsMessagesUserMessage$inboundSchema: z.ZodType<
1585
2377
  name: z.string().optional(),
1586
2378
  content: z.union([
1587
2379
  z.string(),
1588
- z.array(
1589
- z.union([
1590
- components.TextContentPartSchema$inboundSchema.and(
1591
- z.object({ type: z.literal("text") }),
1592
- ),
1593
- components.ImageContentPartSchema$inboundSchema,
1594
- components.AudioContentPartSchema$inboundSchema,
1595
- z.lazy(() => ListDatasetDatapoints24$inboundSchema),
1596
- ]),
1597
- ),
2380
+ z.array(z.union([
2381
+ z.lazy(() => ListDatasetDatapoints21$inboundSchema),
2382
+ components.ImageContentPartSchema$inboundSchema,
2383
+ components.AudioContentPartSchema$inboundSchema,
2384
+ z.lazy(() => ListDatasetDatapoints24$inboundSchema),
2385
+ ])),
1598
2386
  ]),
1599
2387
  });
1600
2388
  /** @internal */
@@ -1604,7 +2392,7 @@ export type ListDatasetDatapointsMessagesUserMessage$Outbound = {
1604
2392
  content:
1605
2393
  | string
1606
2394
  | Array<
1607
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2395
+ | ListDatasetDatapoints21$Outbound
1608
2396
  | components.ImageContentPartSchema$Outbound
1609
2397
  | components.AudioContentPartSchema$Outbound
1610
2398
  | ListDatasetDatapoints24$Outbound
@@ -1621,16 +2409,12 @@ export const ListDatasetDatapointsMessagesUserMessage$outboundSchema: z.ZodType<
1621
2409
  name: z.string().optional(),
1622
2410
  content: z.union([
1623
2411
  z.string(),
1624
- z.array(
1625
- z.union([
1626
- components.TextContentPartSchema$outboundSchema.and(
1627
- z.object({ type: z.literal("text") }),
1628
- ),
1629
- components.ImageContentPartSchema$outboundSchema,
1630
- components.AudioContentPartSchema$outboundSchema,
1631
- z.lazy(() => ListDatasetDatapoints24$outboundSchema),
1632
- ]),
1633
- ),
2412
+ z.array(z.union([
2413
+ z.lazy(() => ListDatasetDatapoints21$outboundSchema),
2414
+ components.ImageContentPartSchema$outboundSchema,
2415
+ components.AudioContentPartSchema$outboundSchema,
2416
+ z.lazy(() => ListDatasetDatapoints24$outboundSchema),
2417
+ ])),
1634
2418
  ]),
1635
2419
  });
1636
2420
 
@@ -1660,6 +2444,148 @@ export function listDatasetDatapointsMessagesUserMessageFromJSON(
1660
2444
  );
1661
2445
  }
1662
2446
 
2447
+ /** @internal */
2448
+ export const ListDatasetDatapointsContentDatasetsType$inboundSchema:
2449
+ z.ZodNativeEnum<typeof ListDatasetDatapointsContentDatasetsType> = z
2450
+ .nativeEnum(ListDatasetDatapointsContentDatasetsType);
2451
+ /** @internal */
2452
+ export const ListDatasetDatapointsContentDatasetsType$outboundSchema:
2453
+ z.ZodNativeEnum<typeof ListDatasetDatapointsContentDatasetsType> =
2454
+ ListDatasetDatapointsContentDatasetsType$inboundSchema;
2455
+
2456
+ /** @internal */
2457
+ export const ListDatasetDatapointsContentDatasetsResponse200Type$inboundSchema:
2458
+ z.ZodNativeEnum<typeof ListDatasetDatapointsContentDatasetsResponse200Type> =
2459
+ z.nativeEnum(ListDatasetDatapointsContentDatasetsResponse200Type);
2460
+ /** @internal */
2461
+ export const ListDatasetDatapointsContentDatasetsResponse200Type$outboundSchema:
2462
+ z.ZodNativeEnum<typeof ListDatasetDatapointsContentDatasetsResponse200Type> =
2463
+ ListDatasetDatapointsContentDatasetsResponse200Type$inboundSchema;
2464
+
2465
+ /** @internal */
2466
+ export const ListDatasetDatapointsContentDatasetsTtl$inboundSchema:
2467
+ z.ZodNativeEnum<typeof ListDatasetDatapointsContentDatasetsTtl> = z
2468
+ .nativeEnum(ListDatasetDatapointsContentDatasetsTtl);
2469
+ /** @internal */
2470
+ export const ListDatasetDatapointsContentDatasetsTtl$outboundSchema:
2471
+ z.ZodNativeEnum<typeof ListDatasetDatapointsContentDatasetsTtl> =
2472
+ ListDatasetDatapointsContentDatasetsTtl$inboundSchema;
2473
+
2474
+ /** @internal */
2475
+ export const ListDatasetDatapointsContentDatasetsCacheControl$inboundSchema:
2476
+ z.ZodType<
2477
+ ListDatasetDatapointsContentDatasetsCacheControl,
2478
+ z.ZodTypeDef,
2479
+ unknown
2480
+ > = z.object({
2481
+ type: ListDatasetDatapointsContentDatasetsResponse200Type$inboundSchema,
2482
+ ttl: ListDatasetDatapointsContentDatasetsTtl$inboundSchema.default("5m"),
2483
+ });
2484
+ /** @internal */
2485
+ export type ListDatasetDatapointsContentDatasetsCacheControl$Outbound = {
2486
+ type: string;
2487
+ ttl: string;
2488
+ };
2489
+
2490
+ /** @internal */
2491
+ export const ListDatasetDatapointsContentDatasetsCacheControl$outboundSchema:
2492
+ z.ZodType<
2493
+ ListDatasetDatapointsContentDatasetsCacheControl$Outbound,
2494
+ z.ZodTypeDef,
2495
+ ListDatasetDatapointsContentDatasetsCacheControl
2496
+ > = z.object({
2497
+ type: ListDatasetDatapointsContentDatasetsResponse200Type$outboundSchema,
2498
+ ttl: ListDatasetDatapointsContentDatasetsTtl$outboundSchema.default("5m"),
2499
+ });
2500
+
2501
+ export function listDatasetDatapointsContentDatasetsCacheControlToJSON(
2502
+ listDatasetDatapointsContentDatasetsCacheControl:
2503
+ ListDatasetDatapointsContentDatasetsCacheControl,
2504
+ ): string {
2505
+ return JSON.stringify(
2506
+ ListDatasetDatapointsContentDatasetsCacheControl$outboundSchema.parse(
2507
+ listDatasetDatapointsContentDatasetsCacheControl,
2508
+ ),
2509
+ );
2510
+ }
2511
+ export function listDatasetDatapointsContentDatasetsCacheControlFromJSON(
2512
+ jsonString: string,
2513
+ ): SafeParseResult<
2514
+ ListDatasetDatapointsContentDatasetsCacheControl,
2515
+ SDKValidationError
2516
+ > {
2517
+ return safeParse(
2518
+ jsonString,
2519
+ (x) =>
2520
+ ListDatasetDatapointsContentDatasetsCacheControl$inboundSchema.parse(
2521
+ JSON.parse(x),
2522
+ ),
2523
+ `Failed to parse 'ListDatasetDatapointsContentDatasetsCacheControl' from JSON`,
2524
+ );
2525
+ }
2526
+
2527
+ /** @internal */
2528
+ export const ListDatasetDatapointsContentDatasets2$inboundSchema: z.ZodType<
2529
+ ListDatasetDatapointsContentDatasets2,
2530
+ z.ZodTypeDef,
2531
+ unknown
2532
+ > = z.object({
2533
+ type: ListDatasetDatapointsContentDatasetsType$inboundSchema,
2534
+ text: z.string(),
2535
+ cache_control: z.lazy(() =>
2536
+ ListDatasetDatapointsContentDatasetsCacheControl$inboundSchema
2537
+ ).optional(),
2538
+ }).transform((v) => {
2539
+ return remap$(v, {
2540
+ "cache_control": "cacheControl",
2541
+ });
2542
+ });
2543
+ /** @internal */
2544
+ export type ListDatasetDatapointsContentDatasets2$Outbound = {
2545
+ type: string;
2546
+ text: string;
2547
+ cache_control?:
2548
+ | ListDatasetDatapointsContentDatasetsCacheControl$Outbound
2549
+ | undefined;
2550
+ };
2551
+
2552
+ /** @internal */
2553
+ export const ListDatasetDatapointsContentDatasets2$outboundSchema: z.ZodType<
2554
+ ListDatasetDatapointsContentDatasets2$Outbound,
2555
+ z.ZodTypeDef,
2556
+ ListDatasetDatapointsContentDatasets2
2557
+ > = z.object({
2558
+ type: ListDatasetDatapointsContentDatasetsType$outboundSchema,
2559
+ text: z.string(),
2560
+ cacheControl: z.lazy(() =>
2561
+ ListDatasetDatapointsContentDatasetsCacheControl$outboundSchema
2562
+ ).optional(),
2563
+ }).transform((v) => {
2564
+ return remap$(v, {
2565
+ cacheControl: "cache_control",
2566
+ });
2567
+ });
2568
+
2569
+ export function listDatasetDatapointsContentDatasets2ToJSON(
2570
+ listDatasetDatapointsContentDatasets2: ListDatasetDatapointsContentDatasets2,
2571
+ ): string {
2572
+ return JSON.stringify(
2573
+ ListDatasetDatapointsContentDatasets2$outboundSchema.parse(
2574
+ listDatasetDatapointsContentDatasets2,
2575
+ ),
2576
+ );
2577
+ }
2578
+ export function listDatasetDatapointsContentDatasets2FromJSON(
2579
+ jsonString: string,
2580
+ ): SafeParseResult<ListDatasetDatapointsContentDatasets2, SDKValidationError> {
2581
+ return safeParse(
2582
+ jsonString,
2583
+ (x) =>
2584
+ ListDatasetDatapointsContentDatasets2$inboundSchema.parse(JSON.parse(x)),
2585
+ `Failed to parse 'ListDatasetDatapointsContentDatasets2' from JSON`,
2586
+ );
2587
+ }
2588
+
1663
2589
  /** @internal */
1664
2590
  export const ListDatasetDatapointsMessagesDatasetsContent$inboundSchema:
1665
2591
  z.ZodType<
@@ -1668,12 +2594,12 @@ export const ListDatasetDatapointsMessagesDatasetsContent$inboundSchema:
1668
2594
  unknown
1669
2595
  > = z.union([
1670
2596
  z.string(),
1671
- z.array(components.TextContentPartSchema$inboundSchema),
2597
+ z.array(z.lazy(() => ListDatasetDatapointsContentDatasets2$inboundSchema)),
1672
2598
  ]);
1673
2599
  /** @internal */
1674
2600
  export type ListDatasetDatapointsMessagesDatasetsContent$Outbound =
1675
2601
  | string
1676
- | Array<components.TextContentPartSchema$Outbound>;
2602
+ | Array<ListDatasetDatapointsContentDatasets2$Outbound>;
1677
2603
 
1678
2604
  /** @internal */
1679
2605
  export const ListDatasetDatapointsMessagesDatasetsContent$outboundSchema:
@@ -1683,7 +2609,7 @@ export const ListDatasetDatapointsMessagesDatasetsContent$outboundSchema:
1683
2609
  ListDatasetDatapointsMessagesDatasetsContent
1684
2610
  > = z.union([
1685
2611
  z.string(),
1686
- z.array(components.TextContentPartSchema$outboundSchema),
2612
+ z.array(z.lazy(() => ListDatasetDatapointsContentDatasets2$outboundSchema)),
1687
2613
  ]);
1688
2614
 
1689
2615
  export function listDatasetDatapointsMessagesDatasetsContentToJSON(
@@ -1722,14 +2648,16 @@ export const ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema:
1722
2648
  role: z.literal("developer"),
1723
2649
  content: z.union([
1724
2650
  z.string(),
1725
- z.array(components.TextContentPartSchema$inboundSchema),
2651
+ z.array(
2652
+ z.lazy(() => ListDatasetDatapointsContentDatasets2$inboundSchema),
2653
+ ),
1726
2654
  ]),
1727
2655
  name: z.string().optional(),
1728
2656
  });
1729
2657
  /** @internal */
1730
2658
  export type ListDatasetDatapointsMessagesDeveloperMessage$Outbound = {
1731
2659
  role: "developer";
1732
- content: string | Array<components.TextContentPartSchema$Outbound>;
2660
+ content: string | Array<ListDatasetDatapointsContentDatasets2$Outbound>;
1733
2661
  name?: string | undefined;
1734
2662
  };
1735
2663
 
@@ -1743,7 +2671,9 @@ export const ListDatasetDatapointsMessagesDeveloperMessage$outboundSchema:
1743
2671
  role: z.literal("developer"),
1744
2672
  content: z.union([
1745
2673
  z.string(),
1746
- z.array(components.TextContentPartSchema$outboundSchema),
2674
+ z.array(
2675
+ z.lazy(() => ListDatasetDatapointsContentDatasets2$outboundSchema),
2676
+ ),
1747
2677
  ]),
1748
2678
  name: z.string().optional(),
1749
2679
  });
@@ -1774,6 +2704,143 @@ export function listDatasetDatapointsMessagesDeveloperMessageFromJSON(
1774
2704
  );
1775
2705
  }
1776
2706
 
2707
+ /** @internal */
2708
+ export const ListDatasetDatapointsContentType$inboundSchema: z.ZodNativeEnum<
2709
+ typeof ListDatasetDatapointsContentType
2710
+ > = z.nativeEnum(ListDatasetDatapointsContentType);
2711
+ /** @internal */
2712
+ export const ListDatasetDatapointsContentType$outboundSchema: z.ZodNativeEnum<
2713
+ typeof ListDatasetDatapointsContentType
2714
+ > = ListDatasetDatapointsContentType$inboundSchema;
2715
+
2716
+ /** @internal */
2717
+ export const ListDatasetDatapointsContentDatasetsResponseType$inboundSchema:
2718
+ z.ZodNativeEnum<typeof ListDatasetDatapointsContentDatasetsResponseType> = z
2719
+ .nativeEnum(ListDatasetDatapointsContentDatasetsResponseType);
2720
+ /** @internal */
2721
+ export const ListDatasetDatapointsContentDatasetsResponseType$outboundSchema:
2722
+ z.ZodNativeEnum<typeof ListDatasetDatapointsContentDatasetsResponseType> =
2723
+ ListDatasetDatapointsContentDatasetsResponseType$inboundSchema;
2724
+
2725
+ /** @internal */
2726
+ export const ListDatasetDatapointsContentTtl$inboundSchema: z.ZodNativeEnum<
2727
+ typeof ListDatasetDatapointsContentTtl
2728
+ > = z.nativeEnum(ListDatasetDatapointsContentTtl);
2729
+ /** @internal */
2730
+ export const ListDatasetDatapointsContentTtl$outboundSchema: z.ZodNativeEnum<
2731
+ typeof ListDatasetDatapointsContentTtl
2732
+ > = ListDatasetDatapointsContentTtl$inboundSchema;
2733
+
2734
+ /** @internal */
2735
+ export const ListDatasetDatapointsContentCacheControl$inboundSchema: z.ZodType<
2736
+ ListDatasetDatapointsContentCacheControl,
2737
+ z.ZodTypeDef,
2738
+ unknown
2739
+ > = z.object({
2740
+ type: ListDatasetDatapointsContentDatasetsResponseType$inboundSchema,
2741
+ ttl: ListDatasetDatapointsContentTtl$inboundSchema.default("5m"),
2742
+ });
2743
+ /** @internal */
2744
+ export type ListDatasetDatapointsContentCacheControl$Outbound = {
2745
+ type: string;
2746
+ ttl: string;
2747
+ };
2748
+
2749
+ /** @internal */
2750
+ export const ListDatasetDatapointsContentCacheControl$outboundSchema: z.ZodType<
2751
+ ListDatasetDatapointsContentCacheControl$Outbound,
2752
+ z.ZodTypeDef,
2753
+ ListDatasetDatapointsContentCacheControl
2754
+ > = z.object({
2755
+ type: ListDatasetDatapointsContentDatasetsResponseType$outboundSchema,
2756
+ ttl: ListDatasetDatapointsContentTtl$outboundSchema.default("5m"),
2757
+ });
2758
+
2759
+ export function listDatasetDatapointsContentCacheControlToJSON(
2760
+ listDatasetDatapointsContentCacheControl:
2761
+ ListDatasetDatapointsContentCacheControl,
2762
+ ): string {
2763
+ return JSON.stringify(
2764
+ ListDatasetDatapointsContentCacheControl$outboundSchema.parse(
2765
+ listDatasetDatapointsContentCacheControl,
2766
+ ),
2767
+ );
2768
+ }
2769
+ export function listDatasetDatapointsContentCacheControlFromJSON(
2770
+ jsonString: string,
2771
+ ): SafeParseResult<
2772
+ ListDatasetDatapointsContentCacheControl,
2773
+ SDKValidationError
2774
+ > {
2775
+ return safeParse(
2776
+ jsonString,
2777
+ (x) =>
2778
+ ListDatasetDatapointsContentCacheControl$inboundSchema.parse(
2779
+ JSON.parse(x),
2780
+ ),
2781
+ `Failed to parse 'ListDatasetDatapointsContentCacheControl' from JSON`,
2782
+ );
2783
+ }
2784
+
2785
+ /** @internal */
2786
+ export const ListDatasetDatapointsContent2$inboundSchema: z.ZodType<
2787
+ ListDatasetDatapointsContent2,
2788
+ z.ZodTypeDef,
2789
+ unknown
2790
+ > = z.object({
2791
+ type: ListDatasetDatapointsContentType$inboundSchema,
2792
+ text: z.string(),
2793
+ cache_control: z.lazy(() =>
2794
+ ListDatasetDatapointsContentCacheControl$inboundSchema
2795
+ ).optional(),
2796
+ }).transform((v) => {
2797
+ return remap$(v, {
2798
+ "cache_control": "cacheControl",
2799
+ });
2800
+ });
2801
+ /** @internal */
2802
+ export type ListDatasetDatapointsContent2$Outbound = {
2803
+ type: string;
2804
+ text: string;
2805
+ cache_control?: ListDatasetDatapointsContentCacheControl$Outbound | undefined;
2806
+ };
2807
+
2808
+ /** @internal */
2809
+ export const ListDatasetDatapointsContent2$outboundSchema: z.ZodType<
2810
+ ListDatasetDatapointsContent2$Outbound,
2811
+ z.ZodTypeDef,
2812
+ ListDatasetDatapointsContent2
2813
+ > = z.object({
2814
+ type: ListDatasetDatapointsContentType$outboundSchema,
2815
+ text: z.string(),
2816
+ cacheControl: z.lazy(() =>
2817
+ ListDatasetDatapointsContentCacheControl$outboundSchema
2818
+ ).optional(),
2819
+ }).transform((v) => {
2820
+ return remap$(v, {
2821
+ cacheControl: "cache_control",
2822
+ });
2823
+ });
2824
+
2825
+ export function listDatasetDatapointsContent2ToJSON(
2826
+ listDatasetDatapointsContent2: ListDatasetDatapointsContent2,
2827
+ ): string {
2828
+ return JSON.stringify(
2829
+ ListDatasetDatapointsContent2$outboundSchema.parse(
2830
+ listDatasetDatapointsContent2,
2831
+ ),
2832
+ );
2833
+ }
2834
+ export function listDatasetDatapointsContent2FromJSON(
2835
+ jsonString: string,
2836
+ ): SafeParseResult<ListDatasetDatapointsContent2, SDKValidationError> {
2837
+ return safeParse(
2838
+ jsonString,
2839
+ (x) => ListDatasetDatapointsContent2$inboundSchema.parse(JSON.parse(x)),
2840
+ `Failed to parse 'ListDatasetDatapointsContent2' from JSON`,
2841
+ );
2842
+ }
2843
+
1777
2844
  /** @internal */
1778
2845
  export const ListDatasetDatapointsMessagesContent$inboundSchema: z.ZodType<
1779
2846
  ListDatasetDatapointsMessagesContent,
@@ -1781,12 +2848,12 @@ export const ListDatasetDatapointsMessagesContent$inboundSchema: z.ZodType<
1781
2848
  unknown
1782
2849
  > = z.union([
1783
2850
  z.string(),
1784
- z.array(components.TextContentPartSchema$inboundSchema),
2851
+ z.array(z.lazy(() => ListDatasetDatapointsContent2$inboundSchema)),
1785
2852
  ]);
1786
2853
  /** @internal */
1787
2854
  export type ListDatasetDatapointsMessagesContent$Outbound =
1788
2855
  | string
1789
- | Array<components.TextContentPartSchema$Outbound>;
2856
+ | Array<ListDatasetDatapointsContent2$Outbound>;
1790
2857
 
1791
2858
  /** @internal */
1792
2859
  export const ListDatasetDatapointsMessagesContent$outboundSchema: z.ZodType<
@@ -1795,7 +2862,7 @@ export const ListDatasetDatapointsMessagesContent$outboundSchema: z.ZodType<
1795
2862
  ListDatasetDatapointsMessagesContent
1796
2863
  > = z.union([
1797
2864
  z.string(),
1798
- z.array(components.TextContentPartSchema$outboundSchema),
2865
+ z.array(z.lazy(() => ListDatasetDatapointsContent2$outboundSchema)),
1799
2866
  ]);
1800
2867
 
1801
2868
  export function listDatasetDatapointsMessagesContentToJSON(
@@ -1825,14 +2892,14 @@ export const ListDatasetDatapointsMessagesSystemMessage$inboundSchema:
1825
2892
  role: z.literal("system"),
1826
2893
  content: z.union([
1827
2894
  z.string(),
1828
- z.array(components.TextContentPartSchema$inboundSchema),
2895
+ z.array(z.lazy(() => ListDatasetDatapointsContent2$inboundSchema)),
1829
2896
  ]),
1830
2897
  name: z.string().optional(),
1831
2898
  });
1832
2899
  /** @internal */
1833
2900
  export type ListDatasetDatapointsMessagesSystemMessage$Outbound = {
1834
2901
  role: "system";
1835
- content: string | Array<components.TextContentPartSchema$Outbound>;
2902
+ content: string | Array<ListDatasetDatapointsContent2$Outbound>;
1836
2903
  name?: string | undefined;
1837
2904
  };
1838
2905
 
@@ -1846,7 +2913,7 @@ export const ListDatasetDatapointsMessagesSystemMessage$outboundSchema:
1846
2913
  role: z.literal("system"),
1847
2914
  content: z.union([
1848
2915
  z.string(),
1849
- z.array(components.TextContentPartSchema$outboundSchema),
2916
+ z.array(z.lazy(() => ListDatasetDatapointsContent2$outboundSchema)),
1850
2917
  ]),
1851
2918
  name: z.string().optional(),
1852
2919
  });
@@ -1960,7 +3027,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
1960
3027
  source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
1961
3028
  reviewed_by_id: z.string(),
1962
3029
  reviewed_at: z.string().datetime({ offset: true }).default(
1963
- "2025-12-08T12:58:42.241Z",
3030
+ "2025-12-08T22:59:30.798Z",
1964
3031
  ).transform(v => new Date(v)),
1965
3032
  type: z.literal("string_array"),
1966
3033
  values: z.array(z.string()),
@@ -1995,7 +3062,7 @@ export const ListDatasetDatapointsEvaluations3$outboundSchema: z.ZodType<
1995
3062
  humanReviewId: z.string(),
1996
3063
  source: ListDatasetDatapointsEvaluationsSource$outboundSchema.default("orq"),
1997
3064
  reviewedById: z.string(),
1998
- reviewedAt: z.date().default(() => new Date("2025-12-08T12:58:42.241Z"))
3065
+ reviewedAt: z.date().default(() => new Date("2025-12-08T22:59:30.798Z"))
1999
3066
  .transform(v => v.toISOString()),
2000
3067
  type: z.literal("string_array"),
2001
3068
  values: z.array(z.string()),
@@ -2066,7 +3133,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
2066
3133
  .default("orq"),
2067
3134
  reviewed_by_id: z.string(),
2068
3135
  reviewed_at: z.string().datetime({ offset: true }).default(
2069
- "2025-12-08T12:58:42.240Z",
3136
+ "2025-12-08T22:59:30.798Z",
2070
3137
  ).transform(v => new Date(v)),
2071
3138
  type: z.literal("number"),
2072
3139
  value: z.number(),
@@ -2103,7 +3170,7 @@ export const ListDatasetDatapointsEvaluations2$outboundSchema: z.ZodType<
2103
3170
  source: ListDatasetDatapointsEvaluationsDatasetsResponseSource$outboundSchema
2104
3171
  .default("orq"),
2105
3172
  reviewedById: z.string(),
2106
- reviewedAt: z.date().default(() => new Date("2025-12-08T12:58:42.240Z"))
3173
+ reviewedAt: z.date().default(() => new Date("2025-12-08T22:59:30.798Z"))
2107
3174
  .transform(v => v.toISOString()),
2108
3175
  type: z.literal("number"),
2109
3176
  value: z.number(),
@@ -2170,7 +3237,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
2170
3237
  ),
2171
3238
  reviewed_by_id: z.string(),
2172
3239
  reviewed_at: z.string().datetime({ offset: true }).default(
2173
- "2025-12-08T12:58:42.240Z",
3240
+ "2025-12-08T22:59:30.797Z",
2174
3241
  ).transform(v => new Date(v)),
2175
3242
  type: z.literal("string"),
2176
3243
  value: z.string(),
@@ -2208,7 +3275,7 @@ export const ListDatasetDatapointsEvaluations1$outboundSchema: z.ZodType<
2208
3275
  "orq",
2209
3276
  ),
2210
3277
  reviewedById: z.string(),
2211
- reviewedAt: z.date().default(() => new Date("2025-12-08T12:58:42.240Z"))
3278
+ reviewedAt: z.date().default(() => new Date("2025-12-08T22:59:30.797Z"))
2212
3279
  .transform(v => v.toISOString()),
2213
3280
  type: z.literal("string"),
2214
3281
  value: z.string(),
@@ -2321,7 +3388,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
2321
3388
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2322
3389
  .optional(),
2323
3390
  updated: z.string().datetime({ offset: true }).default(
2324
- "2025-12-08T12:58:30.471Z",
3391
+ "2025-12-08T22:59:16.300Z",
2325
3392
  ).transform(v => new Date(v)),
2326
3393
  }).transform((v) => {
2327
3394
  return remap$(v, {
@@ -2399,7 +3466,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
2399
3466
  createdById: z.string().optional(),
2400
3467
  updatedById: z.string().optional(),
2401
3468
  created: z.date().transform(v => v.toISOString()).optional(),
2402
- updated: z.date().default(() => new Date("2025-12-08T12:58:30.471Z"))
3469
+ updated: z.date().default(() => new Date("2025-12-08T22:59:16.300Z"))
2403
3470
  .transform(v => v.toISOString()),
2404
3471
  }).transform((v) => {
2405
3472
  return remap$(v, {