@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
@@ -10,15 +10,89 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import * as components from "../components/index.js";
11
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
 
13
- export type UpdateDatapointContentDatasetsRequest2 =
14
- components.TextContentPartSchema;
13
+ export const UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type = {
14
+ Text: "text",
15
+ } as const;
16
+ export type UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type =
17
+ ClosedEnum<typeof UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type>;
18
+
19
+ /**
20
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
21
+ */
22
+ export const UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType = {
23
+ Ephemeral: "ephemeral",
24
+ } as const;
25
+ /**
26
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
27
+ */
28
+ export type UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType =
29
+ ClosedEnum<
30
+ typeof UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType
31
+ >;
32
+
33
+ /**
34
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
35
+ *
36
+ * @remarks
37
+ *
38
+ * - `5m`: 5 minutes
39
+ * - `1h`: 1 hour
40
+ *
41
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
42
+ */
43
+ export const UpdateDatapoint2DatasetsRequestRequestBodyTtl = {
44
+ Fivem: "5m",
45
+ Oneh: "1h",
46
+ } as const;
47
+ /**
48
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
49
+ *
50
+ * @remarks
51
+ *
52
+ * - `5m`: 5 minutes
53
+ * - `1h`: 1 hour
54
+ *
55
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
56
+ */
57
+ export type UpdateDatapoint2DatasetsRequestRequestBodyTtl = ClosedEnum<
58
+ typeof UpdateDatapoint2DatasetsRequestRequestBodyTtl
59
+ >;
60
+
61
+ export type UpdateDatapoint2DatasetsRequestRequestBodyCacheControl = {
62
+ /**
63
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
64
+ */
65
+ type: UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType;
66
+ /**
67
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
68
+ *
69
+ * @remarks
70
+ *
71
+ * - `5m`: 5 minutes
72
+ * - `1h`: 1 hour
73
+ *
74
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
75
+ */
76
+ ttl?: UpdateDatapoint2DatasetsRequestRequestBodyTtl | undefined;
77
+ };
78
+
79
+ export type UpdateDatapoint2DatasetsRequest1 = {
80
+ type: UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type;
81
+ text: string;
82
+ cacheControl?:
83
+ | UpdateDatapoint2DatasetsRequestRequestBodyCacheControl
84
+ | undefined;
85
+ };
86
+
87
+ export type UpdateDatapointContentDatasetsRequestRequestBodyMessages2 =
88
+ UpdateDatapoint2DatasetsRequest1;
15
89
 
16
90
  /**
17
91
  * The contents of the tool message.
18
92
  */
19
93
  export type UpdateDatapointMessagesDatasetsRequestRequestBody5Content =
20
94
  | string
21
- | Array<components.TextContentPartSchema>;
95
+ | Array<UpdateDatapoint2DatasetsRequest1>;
22
96
 
23
97
  /**
24
98
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
@@ -87,7 +161,7 @@ export type UpdateDatapointMessagesToolMessage = {
87
161
  /**
88
162
  * The contents of the tool message.
89
163
  */
90
- content: string | Array<components.TextContentPartSchema>;
164
+ content: string | Array<UpdateDatapoint2DatasetsRequest1>;
91
165
  /**
92
166
  * Tool call that this message is responding to.
93
167
  */
@@ -95,8 +169,72 @@ export type UpdateDatapointMessagesToolMessage = {
95
169
  cacheControl?: UpdateDatapointMessagesCacheControl | undefined;
96
170
  };
97
171
 
98
- export type UpdateDatapointContentDatasets2 =
99
- | (components.TextContentPartSchema & { type: "text" })
172
+ /**
173
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
174
+ */
175
+ export const UpdateDatapoint2DatasetsRequestRequestBodyMessages4Type = {
176
+ Ephemeral: "ephemeral",
177
+ } as const;
178
+ /**
179
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
180
+ */
181
+ export type UpdateDatapoint2DatasetsRequestRequestBodyMessages4Type =
182
+ ClosedEnum<typeof UpdateDatapoint2DatasetsRequestRequestBodyMessages4Type>;
183
+
184
+ /**
185
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
186
+ *
187
+ * @remarks
188
+ *
189
+ * - `5m`: 5 minutes
190
+ * - `1h`: 1 hour
191
+ *
192
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
193
+ */
194
+ export const UpdateDatapoint2DatasetsRequestTtl = {
195
+ Fivem: "5m",
196
+ Oneh: "1h",
197
+ } as const;
198
+ /**
199
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
200
+ *
201
+ * @remarks
202
+ *
203
+ * - `5m`: 5 minutes
204
+ * - `1h`: 1 hour
205
+ *
206
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
207
+ */
208
+ export type UpdateDatapoint2DatasetsRequestTtl = ClosedEnum<
209
+ typeof UpdateDatapoint2DatasetsRequestTtl
210
+ >;
211
+
212
+ export type UpdateDatapoint2DatasetsRequestCacheControl = {
213
+ /**
214
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
215
+ */
216
+ type: UpdateDatapoint2DatasetsRequestRequestBodyMessages4Type;
217
+ /**
218
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
219
+ *
220
+ * @remarks
221
+ *
222
+ * - `5m`: 5 minutes
223
+ * - `1h`: 1 hour
224
+ *
225
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
226
+ */
227
+ ttl?: UpdateDatapoint2DatasetsRequestTtl | undefined;
228
+ };
229
+
230
+ export type UpdateDatapoint2Datasets1 = {
231
+ type: "text";
232
+ text: string;
233
+ cacheControl?: UpdateDatapoint2DatasetsRequestCacheControl | undefined;
234
+ };
235
+
236
+ export type UpdateDatapointContentDatasetsRequestRequestBody2 =
237
+ | UpdateDatapoint2Datasets1
100
238
  | components.RefusalPartSchema
101
239
  | components.ReasoningPartSchema
102
240
  | components.RedactedReasoningPartSchema;
@@ -107,7 +245,7 @@ export type UpdateDatapointContentDatasets2 =
107
245
  export type UpdateDatapointMessagesDatasetsRequestRequestBodyContent =
108
246
  | string
109
247
  | Array<
110
- | (components.TextContentPartSchema & { type: "text" })
248
+ | UpdateDatapoint2Datasets1
111
249
  | components.RefusalPartSchema
112
250
  | components.ReasoningPartSchema
113
251
  | components.RedactedReasoningPartSchema
@@ -170,7 +308,7 @@ export type UpdateDatapointMessagesAssistantMessage = {
170
308
  content?:
171
309
  | string
172
310
  | Array<
173
- | (components.TextContentPartSchema & { type: "text" })
311
+ | UpdateDatapoint2Datasets1
174
312
  | components.RefusalPartSchema
175
313
  | components.ReasoningPartSchema
176
314
  | components.RedactedReasoningPartSchema
@@ -202,14 +340,14 @@ export type UpdateDatapointMessagesAssistantMessage = {
202
340
  /**
203
341
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
204
342
  */
205
- export const UpdateDatapoint2DatasetsType = {
343
+ export const UpdateDatapoint2DatasetsRequestRequestBodyType = {
206
344
  Ephemeral: "ephemeral",
207
345
  } as const;
208
346
  /**
209
347
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
210
348
  */
211
- export type UpdateDatapoint2DatasetsType = ClosedEnum<
212
- typeof UpdateDatapoint2DatasetsType
349
+ export type UpdateDatapoint2DatasetsRequestRequestBodyType = ClosedEnum<
350
+ typeof UpdateDatapoint2DatasetsRequestRequestBodyType
213
351
  >;
214
352
 
215
353
  /**
@@ -222,7 +360,7 @@ export type UpdateDatapoint2DatasetsType = ClosedEnum<
222
360
  *
223
361
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
224
362
  */
225
- export const UpdateDatapoint2Ttl = {
363
+ export const UpdateDatapoint2DatasetsTtl = {
226
364
  Fivem: "5m",
227
365
  Oneh: "1h",
228
366
  } as const;
@@ -236,13 +374,15 @@ export const UpdateDatapoint2Ttl = {
236
374
  *
237
375
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
238
376
  */
239
- export type UpdateDatapoint2Ttl = ClosedEnum<typeof UpdateDatapoint2Ttl>;
377
+ export type UpdateDatapoint2DatasetsTtl = ClosedEnum<
378
+ typeof UpdateDatapoint2DatasetsTtl
379
+ >;
240
380
 
241
- export type UpdateDatapoint2CacheControl = {
381
+ export type UpdateDatapoint2DatasetsCacheControl = {
242
382
  /**
243
383
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
244
384
  */
245
- type: UpdateDatapoint2DatasetsType;
385
+ type: UpdateDatapoint2DatasetsRequestRequestBodyType;
246
386
  /**
247
387
  * The time-to-live for the cache control breakpoint. This may be one of the following values:
248
388
  *
@@ -253,7 +393,7 @@ export type UpdateDatapoint2CacheControl = {
253
393
  *
254
394
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
255
395
  */
256
- ttl?: UpdateDatapoint2Ttl | undefined;
396
+ ttl?: UpdateDatapoint2DatasetsTtl | undefined;
257
397
  };
258
398
 
259
399
  export type UpdateDatapoint24 = {
@@ -261,15 +401,78 @@ export type UpdateDatapoint24 = {
261
401
  * The type of the content part. Always `file`.
262
402
  */
263
403
  type: "file";
264
- cacheControl?: UpdateDatapoint2CacheControl | undefined;
404
+ cacheControl?: UpdateDatapoint2DatasetsCacheControl | undefined;
265
405
  /**
266
406
  * File data for the content part. Must contain either file_data or uri, but not both.
267
407
  */
268
408
  file: components.FileContentPartSchema;
269
409
  };
270
410
 
271
- export type UpdateDatapointContent2 =
272
- | (components.TextContentPartSchema & { type: "text" })
411
+ /**
412
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
413
+ */
414
+ export const UpdateDatapoint2DatasetsType = {
415
+ Ephemeral: "ephemeral",
416
+ } as const;
417
+ /**
418
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
419
+ */
420
+ export type UpdateDatapoint2DatasetsType = ClosedEnum<
421
+ typeof UpdateDatapoint2DatasetsType
422
+ >;
423
+
424
+ /**
425
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
426
+ *
427
+ * @remarks
428
+ *
429
+ * - `5m`: 5 minutes
430
+ * - `1h`: 1 hour
431
+ *
432
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
433
+ */
434
+ export const UpdateDatapoint2Ttl = {
435
+ Fivem: "5m",
436
+ Oneh: "1h",
437
+ } as const;
438
+ /**
439
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
440
+ *
441
+ * @remarks
442
+ *
443
+ * - `5m`: 5 minutes
444
+ * - `1h`: 1 hour
445
+ *
446
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
447
+ */
448
+ export type UpdateDatapoint2Ttl = ClosedEnum<typeof UpdateDatapoint2Ttl>;
449
+
450
+ export type UpdateDatapoint2CacheControl = {
451
+ /**
452
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
453
+ */
454
+ type: UpdateDatapoint2DatasetsType;
455
+ /**
456
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
457
+ *
458
+ * @remarks
459
+ *
460
+ * - `5m`: 5 minutes
461
+ * - `1h`: 1 hour
462
+ *
463
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
464
+ */
465
+ ttl?: UpdateDatapoint2Ttl | undefined;
466
+ };
467
+
468
+ export type UpdateDatapoint21 = {
469
+ type: "text";
470
+ text: string;
471
+ cacheControl?: UpdateDatapoint2CacheControl | undefined;
472
+ };
473
+
474
+ export type UpdateDatapointContentDatasetsRequest2 =
475
+ | UpdateDatapoint21
273
476
  | components.ImageContentPartSchema
274
477
  | components.AudioContentPartSchema
275
478
  | UpdateDatapoint24;
@@ -280,7 +483,7 @@ export type UpdateDatapointContent2 =
280
483
  export type UpdateDatapointMessagesDatasetsRequestContent =
281
484
  | string
282
485
  | Array<
283
- | (components.TextContentPartSchema & { type: "text" })
486
+ | UpdateDatapoint21
284
487
  | components.ImageContentPartSchema
285
488
  | components.AudioContentPartSchema
286
489
  | UpdateDatapoint24
@@ -301,19 +504,91 @@ export type UpdateDatapointMessagesUserMessage = {
301
504
  content:
302
505
  | string
303
506
  | Array<
304
- | (components.TextContentPartSchema & { type: "text" })
507
+ | UpdateDatapoint21
305
508
  | components.ImageContentPartSchema
306
509
  | components.AudioContentPartSchema
307
510
  | UpdateDatapoint24
308
511
  >;
309
512
  };
310
513
 
514
+ export const UpdateDatapointContentDatasetsRequestType = {
515
+ Text: "text",
516
+ } as const;
517
+ export type UpdateDatapointContentDatasetsRequestType = ClosedEnum<
518
+ typeof UpdateDatapointContentDatasetsRequestType
519
+ >;
520
+
521
+ /**
522
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
523
+ */
524
+ export const UpdateDatapointContentDatasetsRequestRequestBodyType = {
525
+ Ephemeral: "ephemeral",
526
+ } as const;
527
+ /**
528
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
529
+ */
530
+ export type UpdateDatapointContentDatasetsRequestRequestBodyType = ClosedEnum<
531
+ typeof UpdateDatapointContentDatasetsRequestRequestBodyType
532
+ >;
533
+
534
+ /**
535
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
536
+ *
537
+ * @remarks
538
+ *
539
+ * - `5m`: 5 minutes
540
+ * - `1h`: 1 hour
541
+ *
542
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
543
+ */
544
+ export const UpdateDatapointContentDatasetsTtl = {
545
+ Fivem: "5m",
546
+ Oneh: "1h",
547
+ } as const;
548
+ /**
549
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
550
+ *
551
+ * @remarks
552
+ *
553
+ * - `5m`: 5 minutes
554
+ * - `1h`: 1 hour
555
+ *
556
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
557
+ */
558
+ export type UpdateDatapointContentDatasetsTtl = ClosedEnum<
559
+ typeof UpdateDatapointContentDatasetsTtl
560
+ >;
561
+
562
+ export type UpdateDatapointContentDatasetsCacheControl = {
563
+ /**
564
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
565
+ */
566
+ type: UpdateDatapointContentDatasetsRequestRequestBodyType;
567
+ /**
568
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
569
+ *
570
+ * @remarks
571
+ *
572
+ * - `5m`: 5 minutes
573
+ * - `1h`: 1 hour
574
+ *
575
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
576
+ */
577
+ ttl?: UpdateDatapointContentDatasetsTtl | undefined;
578
+ };
579
+
580
+ export type UpdateDatapointContentDatasets2 = {
581
+ type: UpdateDatapointContentDatasetsRequestType;
582
+ text: string;
583
+ cacheControl?: UpdateDatapointContentDatasetsCacheControl | undefined;
584
+ };
585
+
311
586
  /**
312
587
  * The contents of the developer message.
313
588
  */
314
589
  export type UpdateDatapointMessagesDatasetsContent =
315
590
  | string
316
- | Array<components.TextContentPartSchema>;
591
+ | Array<UpdateDatapointContentDatasets2>;
317
592
 
318
593
  export type UpdateDatapointMessagesDeveloperMessage = {
319
594
  /**
@@ -323,32 +598,104 @@ export type UpdateDatapointMessagesDeveloperMessage = {
323
598
  /**
324
599
  * The contents of the developer message.
325
600
  */
326
- content: string | Array<components.TextContentPartSchema>;
601
+ content: string | Array<UpdateDatapointContentDatasets2>;
327
602
  /**
328
603
  * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
329
604
  */
330
605
  name?: string | undefined;
331
606
  };
332
607
 
608
+ export const UpdateDatapointContentType = {
609
+ Text: "text",
610
+ } as const;
611
+ export type UpdateDatapointContentType = ClosedEnum<
612
+ typeof UpdateDatapointContentType
613
+ >;
614
+
333
615
  /**
334
- * The contents of the system message.
616
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
335
617
  */
336
- export type UpdateDatapointMessagesContent =
337
- | string
338
- | Array<components.TextContentPartSchema>;
339
-
618
+ export const UpdateDatapointContentDatasetsType = {
619
+ Ephemeral: "ephemeral",
620
+ } as const;
340
621
  /**
341
- * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
622
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
342
623
  */
343
- export type UpdateDatapointMessagesSystemMessage = {
344
- /**
345
- * The role of the messages author, in this case `system`.
346
- */
347
- role: "system";
624
+ export type UpdateDatapointContentDatasetsType = ClosedEnum<
625
+ typeof UpdateDatapointContentDatasetsType
626
+ >;
627
+
628
+ /**
629
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
630
+ *
631
+ * @remarks
632
+ *
633
+ * - `5m`: 5 minutes
634
+ * - `1h`: 1 hour
635
+ *
636
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
637
+ */
638
+ export const UpdateDatapointContentTtl = {
639
+ Fivem: "5m",
640
+ Oneh: "1h",
641
+ } as const;
642
+ /**
643
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
644
+ *
645
+ * @remarks
646
+ *
647
+ * - `5m`: 5 minutes
648
+ * - `1h`: 1 hour
649
+ *
650
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
651
+ */
652
+ export type UpdateDatapointContentTtl = ClosedEnum<
653
+ typeof UpdateDatapointContentTtl
654
+ >;
655
+
656
+ export type UpdateDatapointContentCacheControl = {
657
+ /**
658
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
659
+ */
660
+ type: UpdateDatapointContentDatasetsType;
661
+ /**
662
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
663
+ *
664
+ * @remarks
665
+ *
666
+ * - `5m`: 5 minutes
667
+ * - `1h`: 1 hour
668
+ *
669
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
670
+ */
671
+ ttl?: UpdateDatapointContentTtl | undefined;
672
+ };
673
+
674
+ export type UpdateDatapointContent2 = {
675
+ type: UpdateDatapointContentType;
676
+ text: string;
677
+ cacheControl?: UpdateDatapointContentCacheControl | undefined;
678
+ };
679
+
680
+ /**
681
+ * The contents of the system message.
682
+ */
683
+ export type UpdateDatapointMessagesContent =
684
+ | string
685
+ | Array<UpdateDatapointContent2>;
686
+
687
+ /**
688
+ * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
689
+ */
690
+ export type UpdateDatapointMessagesSystemMessage = {
691
+ /**
692
+ * The role of the messages author, in this case `system`.
693
+ */
694
+ role: "system";
348
695
  /**
349
696
  * The contents of the system message.
350
697
  */
351
- content: string | Array<components.TextContentPartSchema>;
698
+ content: string | Array<UpdateDatapointContent2>;
352
699
  /**
353
700
  * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
354
701
  */
@@ -394,15 +741,99 @@ export type UpdateDatapointRequest = {
394
741
  requestBody?: UpdateDatapointRequestBody | undefined;
395
742
  };
396
743
 
397
- export type UpdateDatapointContentDatasetsResponse200ApplicationJson2 =
398
- components.TextContentPartSchema;
744
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType =
745
+ {
746
+ Text: "text",
747
+ } as const;
748
+ export type UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType =
749
+ ClosedEnum<
750
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType
751
+ >;
752
+
753
+ /**
754
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
755
+ */
756
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type =
757
+ {
758
+ Ephemeral: "ephemeral",
759
+ } as const;
760
+ /**
761
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
762
+ */
763
+ export type UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type =
764
+ ClosedEnum<
765
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type
766
+ >;
767
+
768
+ /**
769
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
770
+ *
771
+ * @remarks
772
+ *
773
+ * - `5m`: 5 minutes
774
+ * - `1h`: 1 hour
775
+ *
776
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
777
+ */
778
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl =
779
+ {
780
+ Fivem: "5m",
781
+ Oneh: "1h",
782
+ } as const;
783
+ /**
784
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
785
+ *
786
+ * @remarks
787
+ *
788
+ * - `5m`: 5 minutes
789
+ * - `1h`: 1 hour
790
+ *
791
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
792
+ */
793
+ export type UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl =
794
+ ClosedEnum<
795
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl
796
+ >;
797
+
798
+ export type UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl =
799
+ {
800
+ /**
801
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
802
+ */
803
+ type:
804
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type;
805
+ /**
806
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
807
+ *
808
+ * @remarks
809
+ *
810
+ * - `5m`: 5 minutes
811
+ * - `1h`: 1 hour
812
+ *
813
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
814
+ */
815
+ ttl?:
816
+ | UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl
817
+ | undefined;
818
+ };
819
+
820
+ export type UpdateDatapoint2DatasetsResponse200ApplicationJson1 = {
821
+ type: UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType;
822
+ text: string;
823
+ cacheControl?:
824
+ | UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl
825
+ | undefined;
826
+ };
827
+
828
+ export type UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2 =
829
+ UpdateDatapoint2DatasetsResponse200ApplicationJson1;
399
830
 
400
831
  /**
401
832
  * The contents of the tool message.
402
833
  */
403
834
  export type UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5Content =
404
835
  | string
405
- | Array<components.TextContentPartSchema>;
836
+ | Array<UpdateDatapoint2DatasetsResponse200ApplicationJson1>;
406
837
 
407
838
  /**
408
839
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
@@ -471,7 +902,7 @@ export type UpdateDatapointMessagesDatasetsToolMessage = {
471
902
  /**
472
903
  * The contents of the tool message.
473
904
  */
474
- content: string | Array<components.TextContentPartSchema>;
905
+ content: string | Array<UpdateDatapoint2DatasetsResponse200ApplicationJson1>;
475
906
  /**
476
907
  * Tool call that this message is responding to.
477
908
  */
@@ -479,8 +910,78 @@ export type UpdateDatapointMessagesDatasetsToolMessage = {
479
910
  cacheControl?: UpdateDatapointMessagesDatasetsCacheControl | undefined;
480
911
  };
481
912
 
482
- export type UpdateDatapointContentDatasetsResponse2002 =
483
- | (components.TextContentPartSchema & { type: "text" })
913
+ /**
914
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
915
+ */
916
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type =
917
+ {
918
+ Ephemeral: "ephemeral",
919
+ } as const;
920
+ /**
921
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
922
+ */
923
+ export type UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type =
924
+ ClosedEnum<
925
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type
926
+ >;
927
+
928
+ /**
929
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
930
+ *
931
+ * @remarks
932
+ *
933
+ * - `5m`: 5 minutes
934
+ * - `1h`: 1 hour
935
+ *
936
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
937
+ */
938
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl = {
939
+ Fivem: "5m",
940
+ Oneh: "1h",
941
+ } as const;
942
+ /**
943
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
944
+ *
945
+ * @remarks
946
+ *
947
+ * - `5m`: 5 minutes
948
+ * - `1h`: 1 hour
949
+ *
950
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
951
+ */
952
+ export type UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl = ClosedEnum<
953
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl
954
+ >;
955
+
956
+ export type UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl = {
957
+ /**
958
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
959
+ */
960
+ type:
961
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type;
962
+ /**
963
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
964
+ *
965
+ * @remarks
966
+ *
967
+ * - `5m`: 5 minutes
968
+ * - `1h`: 1 hour
969
+ *
970
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
971
+ */
972
+ ttl?: UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl | undefined;
973
+ };
974
+
975
+ export type UpdateDatapoint2DatasetsResponse2001 = {
976
+ type: "text";
977
+ text: string;
978
+ cacheControl?:
979
+ | UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl
980
+ | undefined;
981
+ };
982
+
983
+ export type UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBody2 =
984
+ | UpdateDatapoint2DatasetsResponse2001
484
985
  | components.RefusalPartSchema
485
986
  | components.ReasoningPartSchema
486
987
  | components.RedactedReasoningPartSchema;
@@ -491,7 +992,7 @@ export type UpdateDatapointContentDatasetsResponse2002 =
491
992
  export type UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContent =
492
993
  | string
493
994
  | Array<
494
- | (components.TextContentPartSchema & { type: "text" })
995
+ | UpdateDatapoint2DatasetsResponse2001
495
996
  | components.RefusalPartSchema
496
997
  | components.ReasoningPartSchema
497
998
  | components.RedactedReasoningPartSchema
@@ -554,7 +1055,7 @@ export type UpdateDatapointMessagesDatasetsAssistantMessage = {
554
1055
  content?:
555
1056
  | string
556
1057
  | Array<
557
- | (components.TextContentPartSchema & { type: "text" })
1058
+ | UpdateDatapoint2DatasetsResponse2001
558
1059
  | components.RefusalPartSchema
559
1060
  | components.ReasoningPartSchema
560
1061
  | components.RedactedReasoningPartSchema
@@ -586,15 +1087,17 @@ export type UpdateDatapointMessagesDatasetsAssistantMessage = {
586
1087
  /**
587
1088
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
588
1089
  */
589
- export const UpdateDatapoint2DatasetsResponse200Type = {
590
- Ephemeral: "ephemeral",
591
- } as const;
1090
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages3Type =
1091
+ {
1092
+ Ephemeral: "ephemeral",
1093
+ } as const;
592
1094
  /**
593
1095
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
594
1096
  */
595
- export type UpdateDatapoint2DatasetsResponse200Type = ClosedEnum<
596
- typeof UpdateDatapoint2DatasetsResponse200Type
597
- >;
1097
+ export type UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages3Type =
1098
+ ClosedEnum<
1099
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages3Type
1100
+ >;
598
1101
 
599
1102
  /**
600
1103
  * The time-to-live for the cache control breakpoint. This may be one of the following values:
@@ -606,7 +1109,7 @@ export type UpdateDatapoint2DatasetsResponse200Type = ClosedEnum<
606
1109
  *
607
1110
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
608
1111
  */
609
- export const UpdateDatapoint2DatasetsTtl = {
1112
+ export const UpdateDatapoint2DatasetsResponse200Ttl = {
610
1113
  Fivem: "5m",
611
1114
  Oneh: "1h",
612
1115
  } as const;
@@ -620,15 +1123,16 @@ export const UpdateDatapoint2DatasetsTtl = {
620
1123
  *
621
1124
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
622
1125
  */
623
- export type UpdateDatapoint2DatasetsTtl = ClosedEnum<
624
- typeof UpdateDatapoint2DatasetsTtl
1126
+ export type UpdateDatapoint2DatasetsResponse200Ttl = ClosedEnum<
1127
+ typeof UpdateDatapoint2DatasetsResponse200Ttl
625
1128
  >;
626
1129
 
627
- export type UpdateDatapoint2DatasetsCacheControl = {
1130
+ export type UpdateDatapoint2DatasetsResponse200CacheControl = {
628
1131
  /**
629
1132
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
630
1133
  */
631
- type: UpdateDatapoint2DatasetsResponse200Type;
1134
+ type:
1135
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages3Type;
632
1136
  /**
633
1137
  * The time-to-live for the cache control breakpoint. This may be one of the following values:
634
1138
  *
@@ -639,7 +1143,7 @@ export type UpdateDatapoint2DatasetsCacheControl = {
639
1143
  *
640
1144
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
641
1145
  */
642
- ttl?: UpdateDatapoint2DatasetsTtl | undefined;
1146
+ ttl?: UpdateDatapoint2DatasetsResponse200Ttl | undefined;
643
1147
  };
644
1148
 
645
1149
  export type UpdateDatapoint2Datasets4 = {
@@ -647,15 +1151,83 @@ export type UpdateDatapoint2Datasets4 = {
647
1151
  * The type of the content part. Always `file`.
648
1152
  */
649
1153
  type: "file";
650
- cacheControl?: UpdateDatapoint2DatasetsCacheControl | undefined;
1154
+ cacheControl?: UpdateDatapoint2DatasetsResponse200CacheControl | undefined;
651
1155
  /**
652
1156
  * File data for the content part. Must contain either file_data or uri, but not both.
653
1157
  */
654
1158
  file: components.FileContentPartSchema;
655
1159
  };
656
1160
 
657
- export type UpdateDatapointContentDatasetsResponse2 =
658
- | (components.TextContentPartSchema & { type: "text" })
1161
+ /**
1162
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1163
+ */
1164
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType =
1165
+ {
1166
+ Ephemeral: "ephemeral",
1167
+ } as const;
1168
+ /**
1169
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1170
+ */
1171
+ export type UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType =
1172
+ ClosedEnum<
1173
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType
1174
+ >;
1175
+
1176
+ /**
1177
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1178
+ *
1179
+ * @remarks
1180
+ *
1181
+ * - `5m`: 5 minutes
1182
+ * - `1h`: 1 hour
1183
+ *
1184
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1185
+ */
1186
+ export const UpdateDatapoint2DatasetsResponseTtl = {
1187
+ Fivem: "5m",
1188
+ Oneh: "1h",
1189
+ } as const;
1190
+ /**
1191
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1192
+ *
1193
+ * @remarks
1194
+ *
1195
+ * - `5m`: 5 minutes
1196
+ * - `1h`: 1 hour
1197
+ *
1198
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1199
+ */
1200
+ export type UpdateDatapoint2DatasetsResponseTtl = ClosedEnum<
1201
+ typeof UpdateDatapoint2DatasetsResponseTtl
1202
+ >;
1203
+
1204
+ export type UpdateDatapoint2DatasetsResponseCacheControl = {
1205
+ /**
1206
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1207
+ */
1208
+ type:
1209
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType;
1210
+ /**
1211
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1212
+ *
1213
+ * @remarks
1214
+ *
1215
+ * - `5m`: 5 minutes
1216
+ * - `1h`: 1 hour
1217
+ *
1218
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1219
+ */
1220
+ ttl?: UpdateDatapoint2DatasetsResponseTtl | undefined;
1221
+ };
1222
+
1223
+ export type UpdateDatapoint2DatasetsResponse1 = {
1224
+ type: "text";
1225
+ text: string;
1226
+ cacheControl?: UpdateDatapoint2DatasetsResponseCacheControl | undefined;
1227
+ };
1228
+
1229
+ export type UpdateDatapointContentDatasetsResponse200ApplicationJson2 =
1230
+ | UpdateDatapoint2DatasetsResponse1
659
1231
  | components.ImageContentPartSchema
660
1232
  | components.AudioContentPartSchema
661
1233
  | UpdateDatapoint2Datasets4;
@@ -666,7 +1238,7 @@ export type UpdateDatapointContentDatasetsResponse2 =
666
1238
  export type UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent =
667
1239
  | string
668
1240
  | Array<
669
- | (components.TextContentPartSchema & { type: "text" })
1241
+ | UpdateDatapoint2DatasetsResponse1
670
1242
  | components.ImageContentPartSchema
671
1243
  | components.AudioContentPartSchema
672
1244
  | UpdateDatapoint2Datasets4
@@ -687,69 +1259,219 @@ export type UpdateDatapointMessagesDatasetsUserMessage = {
687
1259
  content:
688
1260
  | string
689
1261
  | Array<
690
- | (components.TextContentPartSchema & { type: "text" })
1262
+ | UpdateDatapoint2DatasetsResponse1
691
1263
  | components.ImageContentPartSchema
692
1264
  | components.AudioContentPartSchema
693
1265
  | UpdateDatapoint2Datasets4
694
1266
  >;
695
1267
  };
696
1268
 
697
- /**
698
- * The contents of the developer message.
699
- */
700
- export type UpdateDatapointMessagesDatasetsResponse200Content =
701
- | string
702
- | Array<components.TextContentPartSchema>;
703
-
704
- export type UpdateDatapointMessagesDatasetsDeveloperMessage = {
705
- /**
706
- * The role of the messages author, in this case `developer`.
707
- */
708
- role: "developer";
709
- /**
710
- * The contents of the developer message.
711
- */
712
- content: string | Array<components.TextContentPartSchema>;
713
- /**
714
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
715
- */
716
- name?: string | undefined;
717
- };
1269
+ export const UpdateDatapointContentDatasetsResponse200Type = {
1270
+ Text: "text",
1271
+ } as const;
1272
+ export type UpdateDatapointContentDatasetsResponse200Type = ClosedEnum<
1273
+ typeof UpdateDatapointContentDatasetsResponse200Type
1274
+ >;
718
1275
 
719
1276
  /**
720
- * The contents of the system message.
1277
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
721
1278
  */
722
- export type UpdateDatapointMessagesDatasetsResponseContent =
723
- | string
724
- | Array<components.TextContentPartSchema>;
725
-
1279
+ export const UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType =
1280
+ {
1281
+ Ephemeral: "ephemeral",
1282
+ } as const;
726
1283
  /**
727
- * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
1284
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
728
1285
  */
729
- export type UpdateDatapointMessagesDatasetsSystemMessage = {
730
- /**
731
- * The role of the messages author, in this case `system`.
732
- */
733
- role: "system";
734
- /**
735
- * The contents of the system message.
736
- */
737
- content: string | Array<components.TextContentPartSchema>;
738
- /**
739
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
740
- */
741
- name?: string | undefined;
742
- };
743
-
744
- export type UpdateDatapointDatasetsMessages =
745
- | UpdateDatapointMessagesDatasetsSystemMessage
746
- | UpdateDatapointMessagesDatasetsDeveloperMessage
747
- | UpdateDatapointMessagesDatasetsUserMessage
748
- | UpdateDatapointMessagesDatasetsAssistantMessage
749
- | UpdateDatapointMessagesDatasetsToolMessage;
1286
+ export type UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType =
1287
+ ClosedEnum<
1288
+ typeof UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType
1289
+ >;
750
1290
 
751
1291
  /**
752
- * The type of evaluation
1292
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1293
+ *
1294
+ * @remarks
1295
+ *
1296
+ * - `5m`: 5 minutes
1297
+ * - `1h`: 1 hour
1298
+ *
1299
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1300
+ */
1301
+ export const UpdateDatapointContentDatasetsResponse200Ttl = {
1302
+ Fivem: "5m",
1303
+ Oneh: "1h",
1304
+ } as const;
1305
+ /**
1306
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1307
+ *
1308
+ * @remarks
1309
+ *
1310
+ * - `5m`: 5 minutes
1311
+ * - `1h`: 1 hour
1312
+ *
1313
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1314
+ */
1315
+ export type UpdateDatapointContentDatasetsResponse200Ttl = ClosedEnum<
1316
+ typeof UpdateDatapointContentDatasetsResponse200Ttl
1317
+ >;
1318
+
1319
+ export type UpdateDatapointContentDatasetsResponse200CacheControl = {
1320
+ /**
1321
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1322
+ */
1323
+ type:
1324
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType;
1325
+ /**
1326
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1327
+ *
1328
+ * @remarks
1329
+ *
1330
+ * - `5m`: 5 minutes
1331
+ * - `1h`: 1 hour
1332
+ *
1333
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1334
+ */
1335
+ ttl?: UpdateDatapointContentDatasetsResponse200Ttl | undefined;
1336
+ };
1337
+
1338
+ export type UpdateDatapointContentDatasetsResponse2002 = {
1339
+ type: UpdateDatapointContentDatasetsResponse200Type;
1340
+ text: string;
1341
+ cacheControl?:
1342
+ | UpdateDatapointContentDatasetsResponse200CacheControl
1343
+ | undefined;
1344
+ };
1345
+
1346
+ /**
1347
+ * The contents of the developer message.
1348
+ */
1349
+ export type UpdateDatapointMessagesDatasetsResponse200Content =
1350
+ | string
1351
+ | Array<UpdateDatapointContentDatasetsResponse2002>;
1352
+
1353
+ export type UpdateDatapointMessagesDatasetsDeveloperMessage = {
1354
+ /**
1355
+ * The role of the messages author, in this case `developer`.
1356
+ */
1357
+ role: "developer";
1358
+ /**
1359
+ * The contents of the developer message.
1360
+ */
1361
+ content: string | Array<UpdateDatapointContentDatasetsResponse2002>;
1362
+ /**
1363
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
1364
+ */
1365
+ name?: string | undefined;
1366
+ };
1367
+
1368
+ export const UpdateDatapointContentDatasetsResponseType = {
1369
+ Text: "text",
1370
+ } as const;
1371
+ export type UpdateDatapointContentDatasetsResponseType = ClosedEnum<
1372
+ typeof UpdateDatapointContentDatasetsResponseType
1373
+ >;
1374
+
1375
+ /**
1376
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1377
+ */
1378
+ export const UpdateDatapointContentDatasetsResponse200ApplicationJSONType = {
1379
+ Ephemeral: "ephemeral",
1380
+ } as const;
1381
+ /**
1382
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1383
+ */
1384
+ export type UpdateDatapointContentDatasetsResponse200ApplicationJSONType =
1385
+ ClosedEnum<
1386
+ typeof UpdateDatapointContentDatasetsResponse200ApplicationJSONType
1387
+ >;
1388
+
1389
+ /**
1390
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1391
+ *
1392
+ * @remarks
1393
+ *
1394
+ * - `5m`: 5 minutes
1395
+ * - `1h`: 1 hour
1396
+ *
1397
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1398
+ */
1399
+ export const UpdateDatapointContentDatasetsResponseTtl = {
1400
+ Fivem: "5m",
1401
+ Oneh: "1h",
1402
+ } as const;
1403
+ /**
1404
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1405
+ *
1406
+ * @remarks
1407
+ *
1408
+ * - `5m`: 5 minutes
1409
+ * - `1h`: 1 hour
1410
+ *
1411
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1412
+ */
1413
+ export type UpdateDatapointContentDatasetsResponseTtl = ClosedEnum<
1414
+ typeof UpdateDatapointContentDatasetsResponseTtl
1415
+ >;
1416
+
1417
+ export type UpdateDatapointContentDatasetsResponseCacheControl = {
1418
+ /**
1419
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1420
+ */
1421
+ type: UpdateDatapointContentDatasetsResponse200ApplicationJSONType;
1422
+ /**
1423
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1424
+ *
1425
+ * @remarks
1426
+ *
1427
+ * - `5m`: 5 minutes
1428
+ * - `1h`: 1 hour
1429
+ *
1430
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1431
+ */
1432
+ ttl?: UpdateDatapointContentDatasetsResponseTtl | undefined;
1433
+ };
1434
+
1435
+ export type UpdateDatapointContentDatasetsResponse2 = {
1436
+ type: UpdateDatapointContentDatasetsResponseType;
1437
+ text: string;
1438
+ cacheControl?: UpdateDatapointContentDatasetsResponseCacheControl | undefined;
1439
+ };
1440
+
1441
+ /**
1442
+ * The contents of the system message.
1443
+ */
1444
+ export type UpdateDatapointMessagesDatasetsResponseContent =
1445
+ | string
1446
+ | Array<UpdateDatapointContentDatasetsResponse2>;
1447
+
1448
+ /**
1449
+ * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
1450
+ */
1451
+ export type UpdateDatapointMessagesDatasetsSystemMessage = {
1452
+ /**
1453
+ * The role of the messages author, in this case `system`.
1454
+ */
1455
+ role: "system";
1456
+ /**
1457
+ * The contents of the system message.
1458
+ */
1459
+ content: string | Array<UpdateDatapointContentDatasetsResponse2>;
1460
+ /**
1461
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
1462
+ */
1463
+ name?: string | undefined;
1464
+ };
1465
+
1466
+ export type UpdateDatapointDatasetsMessages =
1467
+ | UpdateDatapointMessagesDatasetsSystemMessage
1468
+ | UpdateDatapointMessagesDatasetsDeveloperMessage
1469
+ | UpdateDatapointMessagesDatasetsUserMessage
1470
+ | UpdateDatapointMessagesDatasetsAssistantMessage
1471
+ | UpdateDatapointMessagesDatasetsToolMessage;
1472
+
1473
+ /**
1474
+ * The type of evaluation
753
1475
  */
754
1476
  export const UpdateDatapointEvaluationsDatasetsResponseEvaluationType = {
755
1477
  HumanReview: "human_review",
@@ -959,90 +1681,248 @@ export type UpdateDatapointResponseBody = {
959
1681
  };
960
1682
 
961
1683
  /** @internal */
962
- export const UpdateDatapointContentDatasetsRequest2$inboundSchema: z.ZodType<
963
- UpdateDatapointContentDatasetsRequest2,
1684
+ export const UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type$inboundSchema:
1685
+ z.ZodNativeEnum<
1686
+ typeof UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type
1687
+ > = z.nativeEnum(UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type);
1688
+ /** @internal */
1689
+ export const UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type$outboundSchema:
1690
+ z.ZodNativeEnum<
1691
+ typeof UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type
1692
+ > = UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type$inboundSchema;
1693
+
1694
+ /** @internal */
1695
+ export const UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType$inboundSchema:
1696
+ z.ZodNativeEnum<
1697
+ typeof UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType
1698
+ > = z.nativeEnum(
1699
+ UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType,
1700
+ );
1701
+ /** @internal */
1702
+ export const UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType$outboundSchema:
1703
+ z.ZodNativeEnum<
1704
+ typeof UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType
1705
+ > =
1706
+ UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType$inboundSchema;
1707
+
1708
+ /** @internal */
1709
+ export const UpdateDatapoint2DatasetsRequestRequestBodyTtl$inboundSchema:
1710
+ z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsRequestRequestBodyTtl> = z
1711
+ .nativeEnum(UpdateDatapoint2DatasetsRequestRequestBodyTtl);
1712
+ /** @internal */
1713
+ export const UpdateDatapoint2DatasetsRequestRequestBodyTtl$outboundSchema:
1714
+ z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsRequestRequestBodyTtl> =
1715
+ UpdateDatapoint2DatasetsRequestRequestBodyTtl$inboundSchema;
1716
+
1717
+ /** @internal */
1718
+ export const UpdateDatapoint2DatasetsRequestRequestBodyCacheControl$inboundSchema:
1719
+ z.ZodType<
1720
+ UpdateDatapoint2DatasetsRequestRequestBodyCacheControl,
1721
+ z.ZodTypeDef,
1722
+ unknown
1723
+ > = z.object({
1724
+ type:
1725
+ UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType$inboundSchema,
1726
+ ttl: UpdateDatapoint2DatasetsRequestRequestBodyTtl$inboundSchema.default(
1727
+ "5m",
1728
+ ),
1729
+ });
1730
+ /** @internal */
1731
+ export type UpdateDatapoint2DatasetsRequestRequestBodyCacheControl$Outbound = {
1732
+ type: string;
1733
+ ttl: string;
1734
+ };
1735
+
1736
+ /** @internal */
1737
+ export const UpdateDatapoint2DatasetsRequestRequestBodyCacheControl$outboundSchema:
1738
+ z.ZodType<
1739
+ UpdateDatapoint2DatasetsRequestRequestBodyCacheControl$Outbound,
1740
+ z.ZodTypeDef,
1741
+ UpdateDatapoint2DatasetsRequestRequestBodyCacheControl
1742
+ > = z.object({
1743
+ type:
1744
+ UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType$outboundSchema,
1745
+ ttl: UpdateDatapoint2DatasetsRequestRequestBodyTtl$outboundSchema.default(
1746
+ "5m",
1747
+ ),
1748
+ });
1749
+
1750
+ export function updateDatapoint2DatasetsRequestRequestBodyCacheControlToJSON(
1751
+ updateDatapoint2DatasetsRequestRequestBodyCacheControl:
1752
+ UpdateDatapoint2DatasetsRequestRequestBodyCacheControl,
1753
+ ): string {
1754
+ return JSON.stringify(
1755
+ UpdateDatapoint2DatasetsRequestRequestBodyCacheControl$outboundSchema.parse(
1756
+ updateDatapoint2DatasetsRequestRequestBodyCacheControl,
1757
+ ),
1758
+ );
1759
+ }
1760
+ export function updateDatapoint2DatasetsRequestRequestBodyCacheControlFromJSON(
1761
+ jsonString: string,
1762
+ ): SafeParseResult<
1763
+ UpdateDatapoint2DatasetsRequestRequestBodyCacheControl,
1764
+ SDKValidationError
1765
+ > {
1766
+ return safeParse(
1767
+ jsonString,
1768
+ (x) =>
1769
+ UpdateDatapoint2DatasetsRequestRequestBodyCacheControl$inboundSchema
1770
+ .parse(JSON.parse(x)),
1771
+ `Failed to parse 'UpdateDatapoint2DatasetsRequestRequestBodyCacheControl' from JSON`,
1772
+ );
1773
+ }
1774
+
1775
+ /** @internal */
1776
+ export const UpdateDatapoint2DatasetsRequest1$inboundSchema: z.ZodType<
1777
+ UpdateDatapoint2DatasetsRequest1,
964
1778
  z.ZodTypeDef,
965
1779
  unknown
966
- > = components.TextContentPartSchema$inboundSchema;
1780
+ > = z.object({
1781
+ type: UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type$inboundSchema,
1782
+ text: z.string(),
1783
+ cache_control: z.lazy(() =>
1784
+ UpdateDatapoint2DatasetsRequestRequestBodyCacheControl$inboundSchema
1785
+ ).optional(),
1786
+ }).transform((v) => {
1787
+ return remap$(v, {
1788
+ "cache_control": "cacheControl",
1789
+ });
1790
+ });
967
1791
  /** @internal */
968
- export type UpdateDatapointContentDatasetsRequest2$Outbound =
969
- components.TextContentPartSchema$Outbound;
1792
+ export type UpdateDatapoint2DatasetsRequest1$Outbound = {
1793
+ type: string;
1794
+ text: string;
1795
+ cache_control?:
1796
+ | UpdateDatapoint2DatasetsRequestRequestBodyCacheControl$Outbound
1797
+ | undefined;
1798
+ };
970
1799
 
971
1800
  /** @internal */
972
- export const UpdateDatapointContentDatasetsRequest2$outboundSchema: z.ZodType<
973
- UpdateDatapointContentDatasetsRequest2$Outbound,
1801
+ export const UpdateDatapoint2DatasetsRequest1$outboundSchema: z.ZodType<
1802
+ UpdateDatapoint2DatasetsRequest1$Outbound,
974
1803
  z.ZodTypeDef,
975
- UpdateDatapointContentDatasetsRequest2
976
- > = components.TextContentPartSchema$outboundSchema;
1804
+ UpdateDatapoint2DatasetsRequest1
1805
+ > = z.object({
1806
+ type: UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type$outboundSchema,
1807
+ text: z.string(),
1808
+ cacheControl: z.lazy(() =>
1809
+ UpdateDatapoint2DatasetsRequestRequestBodyCacheControl$outboundSchema
1810
+ ).optional(),
1811
+ }).transform((v) => {
1812
+ return remap$(v, {
1813
+ cacheControl: "cache_control",
1814
+ });
1815
+ });
977
1816
 
978
- export function updateDatapointContentDatasetsRequest2ToJSON(
979
- updateDatapointContentDatasetsRequest2:
980
- UpdateDatapointContentDatasetsRequest2,
1817
+ export function updateDatapoint2DatasetsRequest1ToJSON(
1818
+ updateDatapoint2DatasetsRequest1: UpdateDatapoint2DatasetsRequest1,
981
1819
  ): string {
982
1820
  return JSON.stringify(
983
- UpdateDatapointContentDatasetsRequest2$outboundSchema.parse(
984
- updateDatapointContentDatasetsRequest2,
1821
+ UpdateDatapoint2DatasetsRequest1$outboundSchema.parse(
1822
+ updateDatapoint2DatasetsRequest1,
985
1823
  ),
986
1824
  );
987
1825
  }
988
- export function updateDatapointContentDatasetsRequest2FromJSON(
1826
+ export function updateDatapoint2DatasetsRequest1FromJSON(
989
1827
  jsonString: string,
990
- ): SafeParseResult<UpdateDatapointContentDatasetsRequest2, SDKValidationError> {
1828
+ ): SafeParseResult<UpdateDatapoint2DatasetsRequest1, SDKValidationError> {
991
1829
  return safeParse(
992
1830
  jsonString,
993
- (x) =>
994
- UpdateDatapointContentDatasetsRequest2$inboundSchema.parse(JSON.parse(x)),
995
- `Failed to parse 'UpdateDatapointContentDatasetsRequest2' from JSON`,
1831
+ (x) => UpdateDatapoint2DatasetsRequest1$inboundSchema.parse(JSON.parse(x)),
1832
+ `Failed to parse 'UpdateDatapoint2DatasetsRequest1' from JSON`,
996
1833
  );
997
1834
  }
998
1835
 
999
1836
  /** @internal */
1000
- export const UpdateDatapointMessagesDatasetsRequestRequestBody5Content$inboundSchema:
1837
+ export const UpdateDatapointContentDatasetsRequestRequestBodyMessages2$inboundSchema:
1001
1838
  z.ZodType<
1002
- UpdateDatapointMessagesDatasetsRequestRequestBody5Content,
1839
+ UpdateDatapointContentDatasetsRequestRequestBodyMessages2,
1003
1840
  z.ZodTypeDef,
1004
1841
  unknown
1005
- > = z.union([
1006
- z.string(),
1007
- z.array(components.TextContentPartSchema$inboundSchema),
1008
- ]);
1842
+ > = z.lazy(() => UpdateDatapoint2DatasetsRequest1$inboundSchema);
1009
1843
  /** @internal */
1010
- export type UpdateDatapointMessagesDatasetsRequestRequestBody5Content$Outbound =
1011
- | string
1012
- | Array<components.TextContentPartSchema$Outbound>;
1844
+ export type UpdateDatapointContentDatasetsRequestRequestBodyMessages2$Outbound =
1845
+ UpdateDatapoint2DatasetsRequest1$Outbound;
1013
1846
 
1014
1847
  /** @internal */
1015
- export const UpdateDatapointMessagesDatasetsRequestRequestBody5Content$outboundSchema:
1848
+ export const UpdateDatapointContentDatasetsRequestRequestBodyMessages2$outboundSchema:
1016
1849
  z.ZodType<
1017
- UpdateDatapointMessagesDatasetsRequestRequestBody5Content$Outbound,
1850
+ UpdateDatapointContentDatasetsRequestRequestBodyMessages2$Outbound,
1018
1851
  z.ZodTypeDef,
1019
- UpdateDatapointMessagesDatasetsRequestRequestBody5Content
1020
- > = z.union([
1021
- z.string(),
1022
- z.array(components.TextContentPartSchema$outboundSchema),
1023
- ]);
1852
+ UpdateDatapointContentDatasetsRequestRequestBodyMessages2
1853
+ > = z.lazy(() => UpdateDatapoint2DatasetsRequest1$outboundSchema);
1024
1854
 
1025
- export function updateDatapointMessagesDatasetsRequestRequestBody5ContentToJSON(
1026
- updateDatapointMessagesDatasetsRequestRequestBody5Content:
1027
- UpdateDatapointMessagesDatasetsRequestRequestBody5Content,
1855
+ export function updateDatapointContentDatasetsRequestRequestBodyMessages2ToJSON(
1856
+ updateDatapointContentDatasetsRequestRequestBodyMessages2:
1857
+ UpdateDatapointContentDatasetsRequestRequestBodyMessages2,
1028
1858
  ): string {
1029
1859
  return JSON.stringify(
1030
- UpdateDatapointMessagesDatasetsRequestRequestBody5Content$outboundSchema
1031
- .parse(updateDatapointMessagesDatasetsRequestRequestBody5Content),
1860
+ UpdateDatapointContentDatasetsRequestRequestBodyMessages2$outboundSchema
1861
+ .parse(updateDatapointContentDatasetsRequestRequestBodyMessages2),
1032
1862
  );
1033
1863
  }
1034
- export function updateDatapointMessagesDatasetsRequestRequestBody5ContentFromJSON(
1864
+ export function updateDatapointContentDatasetsRequestRequestBodyMessages2FromJSON(
1035
1865
  jsonString: string,
1036
1866
  ): SafeParseResult<
1037
- UpdateDatapointMessagesDatasetsRequestRequestBody5Content,
1867
+ UpdateDatapointContentDatasetsRequestRequestBodyMessages2,
1038
1868
  SDKValidationError
1039
1869
  > {
1040
1870
  return safeParse(
1041
1871
  jsonString,
1042
1872
  (x) =>
1043
- UpdateDatapointMessagesDatasetsRequestRequestBody5Content$inboundSchema
1873
+ UpdateDatapointContentDatasetsRequestRequestBodyMessages2$inboundSchema
1044
1874
  .parse(JSON.parse(x)),
1045
- `Failed to parse 'UpdateDatapointMessagesDatasetsRequestRequestBody5Content' from JSON`,
1875
+ `Failed to parse 'UpdateDatapointContentDatasetsRequestRequestBodyMessages2' from JSON`,
1876
+ );
1877
+ }
1878
+
1879
+ /** @internal */
1880
+ export const UpdateDatapointMessagesDatasetsRequestRequestBody5Content$inboundSchema:
1881
+ z.ZodType<
1882
+ UpdateDatapointMessagesDatasetsRequestRequestBody5Content,
1883
+ z.ZodTypeDef,
1884
+ unknown
1885
+ > = z.union([
1886
+ z.string(),
1887
+ z.array(z.lazy(() => UpdateDatapoint2DatasetsRequest1$inboundSchema)),
1888
+ ]);
1889
+ /** @internal */
1890
+ export type UpdateDatapointMessagesDatasetsRequestRequestBody5Content$Outbound =
1891
+ | string
1892
+ | Array<UpdateDatapoint2DatasetsRequest1$Outbound>;
1893
+
1894
+ /** @internal */
1895
+ export const UpdateDatapointMessagesDatasetsRequestRequestBody5Content$outboundSchema:
1896
+ z.ZodType<
1897
+ UpdateDatapointMessagesDatasetsRequestRequestBody5Content$Outbound,
1898
+ z.ZodTypeDef,
1899
+ UpdateDatapointMessagesDatasetsRequestRequestBody5Content
1900
+ > = z.union([
1901
+ z.string(),
1902
+ z.array(z.lazy(() => UpdateDatapoint2DatasetsRequest1$outboundSchema)),
1903
+ ]);
1904
+
1905
+ export function updateDatapointMessagesDatasetsRequestRequestBody5ContentToJSON(
1906
+ updateDatapointMessagesDatasetsRequestRequestBody5Content:
1907
+ UpdateDatapointMessagesDatasetsRequestRequestBody5Content,
1908
+ ): string {
1909
+ return JSON.stringify(
1910
+ UpdateDatapointMessagesDatasetsRequestRequestBody5Content$outboundSchema
1911
+ .parse(updateDatapointMessagesDatasetsRequestRequestBody5Content),
1912
+ );
1913
+ }
1914
+ export function updateDatapointMessagesDatasetsRequestRequestBody5ContentFromJSON(
1915
+ jsonString: string,
1916
+ ): SafeParseResult<
1917
+ UpdateDatapointMessagesDatasetsRequestRequestBody5Content,
1918
+ SDKValidationError
1919
+ > {
1920
+ return safeParse(
1921
+ jsonString,
1922
+ (x) =>
1923
+ UpdateDatapointMessagesDatasetsRequestRequestBody5Content$inboundSchema
1924
+ .parse(JSON.parse(x)),
1925
+ `Failed to parse 'UpdateDatapointMessagesDatasetsRequestRequestBody5Content' from JSON`,
1046
1926
  );
1047
1927
  }
1048
1928
 
@@ -1118,7 +1998,7 @@ export const UpdateDatapointMessagesToolMessage$inboundSchema: z.ZodType<
1118
1998
  role: z.literal("tool"),
1119
1999
  content: z.union([
1120
2000
  z.string(),
1121
- z.array(components.TextContentPartSchema$inboundSchema),
2001
+ z.array(z.lazy(() => UpdateDatapoint2DatasetsRequest1$inboundSchema)),
1122
2002
  ]),
1123
2003
  tool_call_id: z.string(),
1124
2004
  cache_control: z.lazy(() => UpdateDatapointMessagesCacheControl$inboundSchema)
@@ -1132,7 +2012,7 @@ export const UpdateDatapointMessagesToolMessage$inboundSchema: z.ZodType<
1132
2012
  /** @internal */
1133
2013
  export type UpdateDatapointMessagesToolMessage$Outbound = {
1134
2014
  role: "tool";
1135
- content: string | Array<components.TextContentPartSchema$Outbound>;
2015
+ content: string | Array<UpdateDatapoint2DatasetsRequest1$Outbound>;
1136
2016
  tool_call_id: string;
1137
2017
  cache_control?: UpdateDatapointMessagesCacheControl$Outbound | undefined;
1138
2018
  };
@@ -1146,7 +2026,7 @@ export const UpdateDatapointMessagesToolMessage$outboundSchema: z.ZodType<
1146
2026
  role: z.literal("tool"),
1147
2027
  content: z.union([
1148
2028
  z.string(),
1149
- z.array(components.TextContentPartSchema$outboundSchema),
2029
+ z.array(z.lazy(() => UpdateDatapoint2DatasetsRequest1$outboundSchema)),
1150
2030
  ]),
1151
2031
  toolCallId: z.string(),
1152
2032
  cacheControl: z.lazy(() => UpdateDatapointMessagesCacheControl$outboundSchema)
@@ -1179,55 +2059,193 @@ export function updateDatapointMessagesToolMessageFromJSON(
1179
2059
  }
1180
2060
 
1181
2061
  /** @internal */
1182
- export const UpdateDatapointContentDatasets2$inboundSchema: z.ZodType<
1183
- UpdateDatapointContentDatasets2,
2062
+ export const UpdateDatapoint2DatasetsRequestRequestBodyMessages4Type$inboundSchema:
2063
+ z.ZodNativeEnum<
2064
+ typeof UpdateDatapoint2DatasetsRequestRequestBodyMessages4Type
2065
+ > = z.nativeEnum(UpdateDatapoint2DatasetsRequestRequestBodyMessages4Type);
2066
+ /** @internal */
2067
+ export const UpdateDatapoint2DatasetsRequestRequestBodyMessages4Type$outboundSchema:
2068
+ z.ZodNativeEnum<
2069
+ typeof UpdateDatapoint2DatasetsRequestRequestBodyMessages4Type
2070
+ > = UpdateDatapoint2DatasetsRequestRequestBodyMessages4Type$inboundSchema;
2071
+
2072
+ /** @internal */
2073
+ export const UpdateDatapoint2DatasetsRequestTtl$inboundSchema: z.ZodNativeEnum<
2074
+ typeof UpdateDatapoint2DatasetsRequestTtl
2075
+ > = z.nativeEnum(UpdateDatapoint2DatasetsRequestTtl);
2076
+ /** @internal */
2077
+ export const UpdateDatapoint2DatasetsRequestTtl$outboundSchema: z.ZodNativeEnum<
2078
+ typeof UpdateDatapoint2DatasetsRequestTtl
2079
+ > = UpdateDatapoint2DatasetsRequestTtl$inboundSchema;
2080
+
2081
+ /** @internal */
2082
+ export const UpdateDatapoint2DatasetsRequestCacheControl$inboundSchema:
2083
+ z.ZodType<
2084
+ UpdateDatapoint2DatasetsRequestCacheControl,
2085
+ z.ZodTypeDef,
2086
+ unknown
2087
+ > = z.object({
2088
+ type: UpdateDatapoint2DatasetsRequestRequestBodyMessages4Type$inboundSchema,
2089
+ ttl: UpdateDatapoint2DatasetsRequestTtl$inboundSchema.default("5m"),
2090
+ });
2091
+ /** @internal */
2092
+ export type UpdateDatapoint2DatasetsRequestCacheControl$Outbound = {
2093
+ type: string;
2094
+ ttl: string;
2095
+ };
2096
+
2097
+ /** @internal */
2098
+ export const UpdateDatapoint2DatasetsRequestCacheControl$outboundSchema:
2099
+ z.ZodType<
2100
+ UpdateDatapoint2DatasetsRequestCacheControl$Outbound,
2101
+ z.ZodTypeDef,
2102
+ UpdateDatapoint2DatasetsRequestCacheControl
2103
+ > = z.object({
2104
+ type:
2105
+ UpdateDatapoint2DatasetsRequestRequestBodyMessages4Type$outboundSchema,
2106
+ ttl: UpdateDatapoint2DatasetsRequestTtl$outboundSchema.default("5m"),
2107
+ });
2108
+
2109
+ export function updateDatapoint2DatasetsRequestCacheControlToJSON(
2110
+ updateDatapoint2DatasetsRequestCacheControl:
2111
+ UpdateDatapoint2DatasetsRequestCacheControl,
2112
+ ): string {
2113
+ return JSON.stringify(
2114
+ UpdateDatapoint2DatasetsRequestCacheControl$outboundSchema.parse(
2115
+ updateDatapoint2DatasetsRequestCacheControl,
2116
+ ),
2117
+ );
2118
+ }
2119
+ export function updateDatapoint2DatasetsRequestCacheControlFromJSON(
2120
+ jsonString: string,
2121
+ ): SafeParseResult<
2122
+ UpdateDatapoint2DatasetsRequestCacheControl,
2123
+ SDKValidationError
2124
+ > {
2125
+ return safeParse(
2126
+ jsonString,
2127
+ (x) =>
2128
+ UpdateDatapoint2DatasetsRequestCacheControl$inboundSchema.parse(
2129
+ JSON.parse(x),
2130
+ ),
2131
+ `Failed to parse 'UpdateDatapoint2DatasetsRequestCacheControl' from JSON`,
2132
+ );
2133
+ }
2134
+
2135
+ /** @internal */
2136
+ export const UpdateDatapoint2Datasets1$inboundSchema: z.ZodType<
2137
+ UpdateDatapoint2Datasets1,
1184
2138
  z.ZodTypeDef,
1185
2139
  unknown
1186
- > = z.union([
1187
- components.TextContentPartSchema$inboundSchema.and(
1188
- z.object({ type: z.literal("text") }),
1189
- ),
1190
- components.RefusalPartSchema$inboundSchema,
1191
- components.ReasoningPartSchema$inboundSchema,
1192
- components.RedactedReasoningPartSchema$inboundSchema,
1193
- ]);
2140
+ > = z.object({
2141
+ type: z.literal("text"),
2142
+ text: z.string(),
2143
+ cache_control: z.lazy(() =>
2144
+ UpdateDatapoint2DatasetsRequestCacheControl$inboundSchema
2145
+ ).optional(),
2146
+ }).transform((v) => {
2147
+ return remap$(v, {
2148
+ "cache_control": "cacheControl",
2149
+ });
2150
+ });
2151
+ /** @internal */
2152
+ export type UpdateDatapoint2Datasets1$Outbound = {
2153
+ type: "text";
2154
+ text: string;
2155
+ cache_control?:
2156
+ | UpdateDatapoint2DatasetsRequestCacheControl$Outbound
2157
+ | undefined;
2158
+ };
2159
+
2160
+ /** @internal */
2161
+ export const UpdateDatapoint2Datasets1$outboundSchema: z.ZodType<
2162
+ UpdateDatapoint2Datasets1$Outbound,
2163
+ z.ZodTypeDef,
2164
+ UpdateDatapoint2Datasets1
2165
+ > = z.object({
2166
+ type: z.literal("text"),
2167
+ text: z.string(),
2168
+ cacheControl: z.lazy(() =>
2169
+ UpdateDatapoint2DatasetsRequestCacheControl$outboundSchema
2170
+ ).optional(),
2171
+ }).transform((v) => {
2172
+ return remap$(v, {
2173
+ cacheControl: "cache_control",
2174
+ });
2175
+ });
2176
+
2177
+ export function updateDatapoint2Datasets1ToJSON(
2178
+ updateDatapoint2Datasets1: UpdateDatapoint2Datasets1,
2179
+ ): string {
2180
+ return JSON.stringify(
2181
+ UpdateDatapoint2Datasets1$outboundSchema.parse(updateDatapoint2Datasets1),
2182
+ );
2183
+ }
2184
+ export function updateDatapoint2Datasets1FromJSON(
2185
+ jsonString: string,
2186
+ ): SafeParseResult<UpdateDatapoint2Datasets1, SDKValidationError> {
2187
+ return safeParse(
2188
+ jsonString,
2189
+ (x) => UpdateDatapoint2Datasets1$inboundSchema.parse(JSON.parse(x)),
2190
+ `Failed to parse 'UpdateDatapoint2Datasets1' from JSON`,
2191
+ );
2192
+ }
2193
+
1194
2194
  /** @internal */
1195
- export type UpdateDatapointContentDatasets2$Outbound =
1196
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2195
+ export const UpdateDatapointContentDatasetsRequestRequestBody2$inboundSchema:
2196
+ z.ZodType<
2197
+ UpdateDatapointContentDatasetsRequestRequestBody2,
2198
+ z.ZodTypeDef,
2199
+ unknown
2200
+ > = z.union([
2201
+ z.lazy(() => UpdateDatapoint2Datasets1$inboundSchema),
2202
+ components.RefusalPartSchema$inboundSchema,
2203
+ components.ReasoningPartSchema$inboundSchema,
2204
+ components.RedactedReasoningPartSchema$inboundSchema,
2205
+ ]);
2206
+ /** @internal */
2207
+ export type UpdateDatapointContentDatasetsRequestRequestBody2$Outbound =
2208
+ | UpdateDatapoint2Datasets1$Outbound
1197
2209
  | components.RefusalPartSchema$Outbound
1198
2210
  | components.ReasoningPartSchema$Outbound
1199
2211
  | components.RedactedReasoningPartSchema$Outbound;
1200
2212
 
1201
2213
  /** @internal */
1202
- export const UpdateDatapointContentDatasets2$outboundSchema: z.ZodType<
1203
- UpdateDatapointContentDatasets2$Outbound,
1204
- z.ZodTypeDef,
1205
- UpdateDatapointContentDatasets2
1206
- > = z.union([
1207
- components.TextContentPartSchema$outboundSchema.and(
1208
- z.object({ type: z.literal("text") }),
1209
- ),
1210
- components.RefusalPartSchema$outboundSchema,
1211
- components.ReasoningPartSchema$outboundSchema,
1212
- components.RedactedReasoningPartSchema$outboundSchema,
1213
- ]);
2214
+ export const UpdateDatapointContentDatasetsRequestRequestBody2$outboundSchema:
2215
+ z.ZodType<
2216
+ UpdateDatapointContentDatasetsRequestRequestBody2$Outbound,
2217
+ z.ZodTypeDef,
2218
+ UpdateDatapointContentDatasetsRequestRequestBody2
2219
+ > = z.union([
2220
+ z.lazy(() => UpdateDatapoint2Datasets1$outboundSchema),
2221
+ components.RefusalPartSchema$outboundSchema,
2222
+ components.ReasoningPartSchema$outboundSchema,
2223
+ components.RedactedReasoningPartSchema$outboundSchema,
2224
+ ]);
1214
2225
 
1215
- export function updateDatapointContentDatasets2ToJSON(
1216
- updateDatapointContentDatasets2: UpdateDatapointContentDatasets2,
2226
+ export function updateDatapointContentDatasetsRequestRequestBody2ToJSON(
2227
+ updateDatapointContentDatasetsRequestRequestBody2:
2228
+ UpdateDatapointContentDatasetsRequestRequestBody2,
1217
2229
  ): string {
1218
2230
  return JSON.stringify(
1219
- UpdateDatapointContentDatasets2$outboundSchema.parse(
1220
- updateDatapointContentDatasets2,
2231
+ UpdateDatapointContentDatasetsRequestRequestBody2$outboundSchema.parse(
2232
+ updateDatapointContentDatasetsRequestRequestBody2,
1221
2233
  ),
1222
2234
  );
1223
2235
  }
1224
- export function updateDatapointContentDatasets2FromJSON(
2236
+ export function updateDatapointContentDatasetsRequestRequestBody2FromJSON(
1225
2237
  jsonString: string,
1226
- ): SafeParseResult<UpdateDatapointContentDatasets2, SDKValidationError> {
2238
+ ): SafeParseResult<
2239
+ UpdateDatapointContentDatasetsRequestRequestBody2,
2240
+ SDKValidationError
2241
+ > {
1227
2242
  return safeParse(
1228
2243
  jsonString,
1229
- (x) => UpdateDatapointContentDatasets2$inboundSchema.parse(JSON.parse(x)),
1230
- `Failed to parse 'UpdateDatapointContentDatasets2' from JSON`,
2244
+ (x) =>
2245
+ UpdateDatapointContentDatasetsRequestRequestBody2$inboundSchema.parse(
2246
+ JSON.parse(x),
2247
+ ),
2248
+ `Failed to parse 'UpdateDatapointContentDatasetsRequestRequestBody2' from JSON`,
1231
2249
  );
1232
2250
  }
1233
2251
 
@@ -1239,22 +2257,18 @@ export const UpdateDatapointMessagesDatasetsRequestRequestBodyContent$inboundSch
1239
2257
  unknown
1240
2258
  > = z.union([
1241
2259
  z.string(),
1242
- z.array(
1243
- z.union([
1244
- components.TextContentPartSchema$inboundSchema.and(
1245
- z.object({ type: z.literal("text") }),
1246
- ),
1247
- components.RefusalPartSchema$inboundSchema,
1248
- components.ReasoningPartSchema$inboundSchema,
1249
- components.RedactedReasoningPartSchema$inboundSchema,
1250
- ]),
1251
- ),
2260
+ z.array(z.union([
2261
+ z.lazy(() => UpdateDatapoint2Datasets1$inboundSchema),
2262
+ components.RefusalPartSchema$inboundSchema,
2263
+ components.ReasoningPartSchema$inboundSchema,
2264
+ components.RedactedReasoningPartSchema$inboundSchema,
2265
+ ])),
1252
2266
  ]);
1253
2267
  /** @internal */
1254
2268
  export type UpdateDatapointMessagesDatasetsRequestRequestBodyContent$Outbound =
1255
2269
  | string
1256
2270
  | Array<
1257
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2271
+ | UpdateDatapoint2Datasets1$Outbound
1258
2272
  | components.RefusalPartSchema$Outbound
1259
2273
  | components.ReasoningPartSchema$Outbound
1260
2274
  | components.RedactedReasoningPartSchema$Outbound
@@ -1268,16 +2282,12 @@ export const UpdateDatapointMessagesDatasetsRequestRequestBodyContent$outboundSc
1268
2282
  UpdateDatapointMessagesDatasetsRequestRequestBodyContent
1269
2283
  > = z.union([
1270
2284
  z.string(),
1271
- z.array(
1272
- z.union([
1273
- components.TextContentPartSchema$outboundSchema.and(
1274
- z.object({ type: z.literal("text") }),
1275
- ),
1276
- components.RefusalPartSchema$outboundSchema,
1277
- components.ReasoningPartSchema$outboundSchema,
1278
- components.RedactedReasoningPartSchema$outboundSchema,
1279
- ]),
1280
- ),
2285
+ z.array(z.union([
2286
+ z.lazy(() => UpdateDatapoint2Datasets1$outboundSchema),
2287
+ components.RefusalPartSchema$outboundSchema,
2288
+ components.ReasoningPartSchema$outboundSchema,
2289
+ components.RedactedReasoningPartSchema$outboundSchema,
2290
+ ])),
1281
2291
  ]);
1282
2292
 
1283
2293
  export function updateDatapointMessagesDatasetsRequestRequestBodyContentToJSON(
@@ -1467,9 +2477,7 @@ export const UpdateDatapointMessagesAssistantMessage$inboundSchema: z.ZodType<
1467
2477
  z.string(),
1468
2478
  z.array(
1469
2479
  z.union([
1470
- components.TextContentPartSchema$inboundSchema.and(
1471
- z.object({ type: z.literal("text") }),
1472
- ),
2480
+ z.lazy(() => UpdateDatapoint2Datasets1$inboundSchema),
1473
2481
  components.RefusalPartSchema$inboundSchema,
1474
2482
  components.ReasoningPartSchema$inboundSchema,
1475
2483
  components.RedactedReasoningPartSchema$inboundSchema,
@@ -1495,7 +2503,7 @@ export type UpdateDatapointMessagesAssistantMessage$Outbound = {
1495
2503
  content?:
1496
2504
  | string
1497
2505
  | Array<
1498
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2506
+ | UpdateDatapoint2Datasets1$Outbound
1499
2507
  | components.RefusalPartSchema$Outbound
1500
2508
  | components.ReasoningPartSchema$Outbound
1501
2509
  | components.RedactedReasoningPartSchema$Outbound
@@ -1520,9 +2528,7 @@ export const UpdateDatapointMessagesAssistantMessage$outboundSchema: z.ZodType<
1520
2528
  z.string(),
1521
2529
  z.array(
1522
2530
  z.union([
1523
- components.TextContentPartSchema$outboundSchema.and(
1524
- z.object({ type: z.literal("text") }),
1525
- ),
2531
+ z.lazy(() => UpdateDatapoint2Datasets1$outboundSchema),
1526
2532
  components.RefusalPartSchema$outboundSchema,
1527
2533
  components.ReasoningPartSchema$outboundSchema,
1528
2534
  components.RedactedReasoningPartSchema$outboundSchema,
@@ -1571,64 +2577,65 @@ export function updateDatapointMessagesAssistantMessageFromJSON(
1571
2577
  }
1572
2578
 
1573
2579
  /** @internal */
1574
- export const UpdateDatapoint2DatasetsType$inboundSchema: z.ZodNativeEnum<
1575
- typeof UpdateDatapoint2DatasetsType
1576
- > = z.nativeEnum(UpdateDatapoint2DatasetsType);
2580
+ export const UpdateDatapoint2DatasetsRequestRequestBodyType$inboundSchema:
2581
+ z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsRequestRequestBodyType> = z
2582
+ .nativeEnum(UpdateDatapoint2DatasetsRequestRequestBodyType);
1577
2583
  /** @internal */
1578
- export const UpdateDatapoint2DatasetsType$outboundSchema: z.ZodNativeEnum<
1579
- typeof UpdateDatapoint2DatasetsType
1580
- > = UpdateDatapoint2DatasetsType$inboundSchema;
2584
+ export const UpdateDatapoint2DatasetsRequestRequestBodyType$outboundSchema:
2585
+ z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsRequestRequestBodyType> =
2586
+ UpdateDatapoint2DatasetsRequestRequestBodyType$inboundSchema;
1581
2587
 
1582
2588
  /** @internal */
1583
- export const UpdateDatapoint2Ttl$inboundSchema: z.ZodNativeEnum<
1584
- typeof UpdateDatapoint2Ttl
1585
- > = z.nativeEnum(UpdateDatapoint2Ttl);
2589
+ export const UpdateDatapoint2DatasetsTtl$inboundSchema: z.ZodNativeEnum<
2590
+ typeof UpdateDatapoint2DatasetsTtl
2591
+ > = z.nativeEnum(UpdateDatapoint2DatasetsTtl);
1586
2592
  /** @internal */
1587
- export const UpdateDatapoint2Ttl$outboundSchema: z.ZodNativeEnum<
1588
- typeof UpdateDatapoint2Ttl
1589
- > = UpdateDatapoint2Ttl$inboundSchema;
2593
+ export const UpdateDatapoint2DatasetsTtl$outboundSchema: z.ZodNativeEnum<
2594
+ typeof UpdateDatapoint2DatasetsTtl
2595
+ > = UpdateDatapoint2DatasetsTtl$inboundSchema;
1590
2596
 
1591
2597
  /** @internal */
1592
- export const UpdateDatapoint2CacheControl$inboundSchema: z.ZodType<
1593
- UpdateDatapoint2CacheControl,
2598
+ export const UpdateDatapoint2DatasetsCacheControl$inboundSchema: z.ZodType<
2599
+ UpdateDatapoint2DatasetsCacheControl,
1594
2600
  z.ZodTypeDef,
1595
2601
  unknown
1596
2602
  > = z.object({
1597
- type: UpdateDatapoint2DatasetsType$inboundSchema,
1598
- ttl: UpdateDatapoint2Ttl$inboundSchema.default("5m"),
2603
+ type: UpdateDatapoint2DatasetsRequestRequestBodyType$inboundSchema,
2604
+ ttl: UpdateDatapoint2DatasetsTtl$inboundSchema.default("5m"),
1599
2605
  });
1600
2606
  /** @internal */
1601
- export type UpdateDatapoint2CacheControl$Outbound = {
2607
+ export type UpdateDatapoint2DatasetsCacheControl$Outbound = {
1602
2608
  type: string;
1603
2609
  ttl: string;
1604
2610
  };
1605
2611
 
1606
2612
  /** @internal */
1607
- export const UpdateDatapoint2CacheControl$outboundSchema: z.ZodType<
1608
- UpdateDatapoint2CacheControl$Outbound,
2613
+ export const UpdateDatapoint2DatasetsCacheControl$outboundSchema: z.ZodType<
2614
+ UpdateDatapoint2DatasetsCacheControl$Outbound,
1609
2615
  z.ZodTypeDef,
1610
- UpdateDatapoint2CacheControl
2616
+ UpdateDatapoint2DatasetsCacheControl
1611
2617
  > = z.object({
1612
- type: UpdateDatapoint2DatasetsType$outboundSchema,
1613
- ttl: UpdateDatapoint2Ttl$outboundSchema.default("5m"),
2618
+ type: UpdateDatapoint2DatasetsRequestRequestBodyType$outboundSchema,
2619
+ ttl: UpdateDatapoint2DatasetsTtl$outboundSchema.default("5m"),
1614
2620
  });
1615
2621
 
1616
- export function updateDatapoint2CacheControlToJSON(
1617
- updateDatapoint2CacheControl: UpdateDatapoint2CacheControl,
2622
+ export function updateDatapoint2DatasetsCacheControlToJSON(
2623
+ updateDatapoint2DatasetsCacheControl: UpdateDatapoint2DatasetsCacheControl,
1618
2624
  ): string {
1619
2625
  return JSON.stringify(
1620
- UpdateDatapoint2CacheControl$outboundSchema.parse(
1621
- updateDatapoint2CacheControl,
2626
+ UpdateDatapoint2DatasetsCacheControl$outboundSchema.parse(
2627
+ updateDatapoint2DatasetsCacheControl,
1622
2628
  ),
1623
2629
  );
1624
2630
  }
1625
- export function updateDatapoint2CacheControlFromJSON(
2631
+ export function updateDatapoint2DatasetsCacheControlFromJSON(
1626
2632
  jsonString: string,
1627
- ): SafeParseResult<UpdateDatapoint2CacheControl, SDKValidationError> {
2633
+ ): SafeParseResult<UpdateDatapoint2DatasetsCacheControl, SDKValidationError> {
1628
2634
  return safeParse(
1629
2635
  jsonString,
1630
- (x) => UpdateDatapoint2CacheControl$inboundSchema.parse(JSON.parse(x)),
1631
- `Failed to parse 'UpdateDatapoint2CacheControl' from JSON`,
2636
+ (x) =>
2637
+ UpdateDatapoint2DatasetsCacheControl$inboundSchema.parse(JSON.parse(x)),
2638
+ `Failed to parse 'UpdateDatapoint2DatasetsCacheControl' from JSON`,
1632
2639
  );
1633
2640
  }
1634
2641
 
@@ -1639,8 +2646,9 @@ export const UpdateDatapoint24$inboundSchema: z.ZodType<
1639
2646
  unknown
1640
2647
  > = z.object({
1641
2648
  type: z.literal("file"),
1642
- cache_control: z.lazy(() => UpdateDatapoint2CacheControl$inboundSchema)
1643
- .optional(),
2649
+ cache_control: z.lazy(() =>
2650
+ UpdateDatapoint2DatasetsCacheControl$inboundSchema
2651
+ ).optional(),
1644
2652
  file: components.FileContentPartSchema$inboundSchema,
1645
2653
  }).transform((v) => {
1646
2654
  return remap$(v, {
@@ -1650,7 +2658,7 @@ export const UpdateDatapoint24$inboundSchema: z.ZodType<
1650
2658
  /** @internal */
1651
2659
  export type UpdateDatapoint24$Outbound = {
1652
2660
  type: "file";
1653
- cache_control?: UpdateDatapoint2CacheControl$Outbound | undefined;
2661
+ cache_control?: UpdateDatapoint2DatasetsCacheControl$Outbound | undefined;
1654
2662
  file: components.FileContentPartSchema$Outbound;
1655
2663
  };
1656
2664
 
@@ -1661,8 +2669,9 @@ export const UpdateDatapoint24$outboundSchema: z.ZodType<
1661
2669
  UpdateDatapoint24
1662
2670
  > = z.object({
1663
2671
  type: z.literal("file"),
1664
- cacheControl: z.lazy(() => UpdateDatapoint2CacheControl$outboundSchema)
1665
- .optional(),
2672
+ cacheControl: z.lazy(() =>
2673
+ UpdateDatapoint2DatasetsCacheControl$outboundSchema
2674
+ ).optional(),
1666
2675
  file: components.FileContentPartSchema$outboundSchema,
1667
2676
  }).transform((v) => {
1668
2677
  return remap$(v, {
@@ -1688,53 +2697,170 @@ export function updateDatapoint24FromJSON(
1688
2697
  }
1689
2698
 
1690
2699
  /** @internal */
1691
- export const UpdateDatapointContent2$inboundSchema: z.ZodType<
1692
- UpdateDatapointContent2,
1693
- z.ZodTypeDef,
1694
- unknown
1695
- > = z.union([
1696
- components.TextContentPartSchema$inboundSchema.and(
1697
- z.object({ type: z.literal("text") }),
1698
- ),
1699
- components.ImageContentPartSchema$inboundSchema,
1700
- components.AudioContentPartSchema$inboundSchema,
1701
- z.lazy(() => UpdateDatapoint24$inboundSchema),
1702
- ]);
2700
+ export const UpdateDatapoint2DatasetsType$inboundSchema: z.ZodNativeEnum<
2701
+ typeof UpdateDatapoint2DatasetsType
2702
+ > = z.nativeEnum(UpdateDatapoint2DatasetsType);
1703
2703
  /** @internal */
1704
- export type UpdateDatapointContent2$Outbound =
1705
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1706
- | components.ImageContentPartSchema$Outbound
1707
- | components.AudioContentPartSchema$Outbound
1708
- | UpdateDatapoint24$Outbound;
2704
+ export const UpdateDatapoint2DatasetsType$outboundSchema: z.ZodNativeEnum<
2705
+ typeof UpdateDatapoint2DatasetsType
2706
+ > = UpdateDatapoint2DatasetsType$inboundSchema;
1709
2707
 
1710
2708
  /** @internal */
1711
- export const UpdateDatapointContent2$outboundSchema: z.ZodType<
1712
- UpdateDatapointContent2$Outbound,
2709
+ export const UpdateDatapoint2Ttl$inboundSchema: z.ZodNativeEnum<
2710
+ typeof UpdateDatapoint2Ttl
2711
+ > = z.nativeEnum(UpdateDatapoint2Ttl);
2712
+ /** @internal */
2713
+ export const UpdateDatapoint2Ttl$outboundSchema: z.ZodNativeEnum<
2714
+ typeof UpdateDatapoint2Ttl
2715
+ > = UpdateDatapoint2Ttl$inboundSchema;
2716
+
2717
+ /** @internal */
2718
+ export const UpdateDatapoint2CacheControl$inboundSchema: z.ZodType<
2719
+ UpdateDatapoint2CacheControl,
1713
2720
  z.ZodTypeDef,
1714
- UpdateDatapointContent2
2721
+ unknown
2722
+ > = z.object({
2723
+ type: UpdateDatapoint2DatasetsType$inboundSchema,
2724
+ ttl: UpdateDatapoint2Ttl$inboundSchema.default("5m"),
2725
+ });
2726
+ /** @internal */
2727
+ export type UpdateDatapoint2CacheControl$Outbound = {
2728
+ type: string;
2729
+ ttl: string;
2730
+ };
2731
+
2732
+ /** @internal */
2733
+ export const UpdateDatapoint2CacheControl$outboundSchema: z.ZodType<
2734
+ UpdateDatapoint2CacheControl$Outbound,
2735
+ z.ZodTypeDef,
2736
+ UpdateDatapoint2CacheControl
2737
+ > = z.object({
2738
+ type: UpdateDatapoint2DatasetsType$outboundSchema,
2739
+ ttl: UpdateDatapoint2Ttl$outboundSchema.default("5m"),
2740
+ });
2741
+
2742
+ export function updateDatapoint2CacheControlToJSON(
2743
+ updateDatapoint2CacheControl: UpdateDatapoint2CacheControl,
2744
+ ): string {
2745
+ return JSON.stringify(
2746
+ UpdateDatapoint2CacheControl$outboundSchema.parse(
2747
+ updateDatapoint2CacheControl,
2748
+ ),
2749
+ );
2750
+ }
2751
+ export function updateDatapoint2CacheControlFromJSON(
2752
+ jsonString: string,
2753
+ ): SafeParseResult<UpdateDatapoint2CacheControl, SDKValidationError> {
2754
+ return safeParse(
2755
+ jsonString,
2756
+ (x) => UpdateDatapoint2CacheControl$inboundSchema.parse(JSON.parse(x)),
2757
+ `Failed to parse 'UpdateDatapoint2CacheControl' from JSON`,
2758
+ );
2759
+ }
2760
+
2761
+ /** @internal */
2762
+ export const UpdateDatapoint21$inboundSchema: z.ZodType<
2763
+ UpdateDatapoint21,
2764
+ z.ZodTypeDef,
2765
+ unknown
2766
+ > = z.object({
2767
+ type: z.literal("text"),
2768
+ text: z.string(),
2769
+ cache_control: z.lazy(() => UpdateDatapoint2CacheControl$inboundSchema)
2770
+ .optional(),
2771
+ }).transform((v) => {
2772
+ return remap$(v, {
2773
+ "cache_control": "cacheControl",
2774
+ });
2775
+ });
2776
+ /** @internal */
2777
+ export type UpdateDatapoint21$Outbound = {
2778
+ type: "text";
2779
+ text: string;
2780
+ cache_control?: UpdateDatapoint2CacheControl$Outbound | undefined;
2781
+ };
2782
+
2783
+ /** @internal */
2784
+ export const UpdateDatapoint21$outboundSchema: z.ZodType<
2785
+ UpdateDatapoint21$Outbound,
2786
+ z.ZodTypeDef,
2787
+ UpdateDatapoint21
2788
+ > = z.object({
2789
+ type: z.literal("text"),
2790
+ text: z.string(),
2791
+ cacheControl: z.lazy(() => UpdateDatapoint2CacheControl$outboundSchema)
2792
+ .optional(),
2793
+ }).transform((v) => {
2794
+ return remap$(v, {
2795
+ cacheControl: "cache_control",
2796
+ });
2797
+ });
2798
+
2799
+ export function updateDatapoint21ToJSON(
2800
+ updateDatapoint21: UpdateDatapoint21,
2801
+ ): string {
2802
+ return JSON.stringify(
2803
+ UpdateDatapoint21$outboundSchema.parse(updateDatapoint21),
2804
+ );
2805
+ }
2806
+ export function updateDatapoint21FromJSON(
2807
+ jsonString: string,
2808
+ ): SafeParseResult<UpdateDatapoint21, SDKValidationError> {
2809
+ return safeParse(
2810
+ jsonString,
2811
+ (x) => UpdateDatapoint21$inboundSchema.parse(JSON.parse(x)),
2812
+ `Failed to parse 'UpdateDatapoint21' from JSON`,
2813
+ );
2814
+ }
2815
+
2816
+ /** @internal */
2817
+ export const UpdateDatapointContentDatasetsRequest2$inboundSchema: z.ZodType<
2818
+ UpdateDatapointContentDatasetsRequest2,
2819
+ z.ZodTypeDef,
2820
+ unknown
1715
2821
  > = z.union([
1716
- components.TextContentPartSchema$outboundSchema.and(
1717
- z.object({ type: z.literal("text") }),
1718
- ),
2822
+ z.lazy(() => UpdateDatapoint21$inboundSchema),
2823
+ components.ImageContentPartSchema$inboundSchema,
2824
+ components.AudioContentPartSchema$inboundSchema,
2825
+ z.lazy(() => UpdateDatapoint24$inboundSchema),
2826
+ ]);
2827
+ /** @internal */
2828
+ export type UpdateDatapointContentDatasetsRequest2$Outbound =
2829
+ | UpdateDatapoint21$Outbound
2830
+ | components.ImageContentPartSchema$Outbound
2831
+ | components.AudioContentPartSchema$Outbound
2832
+ | UpdateDatapoint24$Outbound;
2833
+
2834
+ /** @internal */
2835
+ export const UpdateDatapointContentDatasetsRequest2$outboundSchema: z.ZodType<
2836
+ UpdateDatapointContentDatasetsRequest2$Outbound,
2837
+ z.ZodTypeDef,
2838
+ UpdateDatapointContentDatasetsRequest2
2839
+ > = z.union([
2840
+ z.lazy(() => UpdateDatapoint21$outboundSchema),
1719
2841
  components.ImageContentPartSchema$outboundSchema,
1720
2842
  components.AudioContentPartSchema$outboundSchema,
1721
2843
  z.lazy(() => UpdateDatapoint24$outboundSchema),
1722
2844
  ]);
1723
2845
 
1724
- export function updateDatapointContent2ToJSON(
1725
- updateDatapointContent2: UpdateDatapointContent2,
2846
+ export function updateDatapointContentDatasetsRequest2ToJSON(
2847
+ updateDatapointContentDatasetsRequest2:
2848
+ UpdateDatapointContentDatasetsRequest2,
1726
2849
  ): string {
1727
2850
  return JSON.stringify(
1728
- UpdateDatapointContent2$outboundSchema.parse(updateDatapointContent2),
2851
+ UpdateDatapointContentDatasetsRequest2$outboundSchema.parse(
2852
+ updateDatapointContentDatasetsRequest2,
2853
+ ),
1729
2854
  );
1730
2855
  }
1731
- export function updateDatapointContent2FromJSON(
2856
+ export function updateDatapointContentDatasetsRequest2FromJSON(
1732
2857
  jsonString: string,
1733
- ): SafeParseResult<UpdateDatapointContent2, SDKValidationError> {
2858
+ ): SafeParseResult<UpdateDatapointContentDatasetsRequest2, SDKValidationError> {
1734
2859
  return safeParse(
1735
2860
  jsonString,
1736
- (x) => UpdateDatapointContent2$inboundSchema.parse(JSON.parse(x)),
1737
- `Failed to parse 'UpdateDatapointContent2' from JSON`,
2861
+ (x) =>
2862
+ UpdateDatapointContentDatasetsRequest2$inboundSchema.parse(JSON.parse(x)),
2863
+ `Failed to parse 'UpdateDatapointContentDatasetsRequest2' from JSON`,
1738
2864
  );
1739
2865
  }
1740
2866
 
@@ -1746,22 +2872,18 @@ export const UpdateDatapointMessagesDatasetsRequestContent$inboundSchema:
1746
2872
  unknown
1747
2873
  > = z.union([
1748
2874
  z.string(),
1749
- z.array(
1750
- z.union([
1751
- components.TextContentPartSchema$inboundSchema.and(
1752
- z.object({ type: z.literal("text") }),
1753
- ),
1754
- components.ImageContentPartSchema$inboundSchema,
1755
- components.AudioContentPartSchema$inboundSchema,
1756
- z.lazy(() => UpdateDatapoint24$inboundSchema),
1757
- ]),
1758
- ),
2875
+ z.array(z.union([
2876
+ z.lazy(() => UpdateDatapoint21$inboundSchema),
2877
+ components.ImageContentPartSchema$inboundSchema,
2878
+ components.AudioContentPartSchema$inboundSchema,
2879
+ z.lazy(() => UpdateDatapoint24$inboundSchema),
2880
+ ])),
1759
2881
  ]);
1760
2882
  /** @internal */
1761
2883
  export type UpdateDatapointMessagesDatasetsRequestContent$Outbound =
1762
2884
  | string
1763
2885
  | Array<
1764
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2886
+ | UpdateDatapoint21$Outbound
1765
2887
  | components.ImageContentPartSchema$Outbound
1766
2888
  | components.AudioContentPartSchema$Outbound
1767
2889
  | UpdateDatapoint24$Outbound
@@ -1775,16 +2897,12 @@ export const UpdateDatapointMessagesDatasetsRequestContent$outboundSchema:
1775
2897
  UpdateDatapointMessagesDatasetsRequestContent
1776
2898
  > = z.union([
1777
2899
  z.string(),
1778
- z.array(
1779
- z.union([
1780
- components.TextContentPartSchema$outboundSchema.and(
1781
- z.object({ type: z.literal("text") }),
1782
- ),
1783
- components.ImageContentPartSchema$outboundSchema,
1784
- components.AudioContentPartSchema$outboundSchema,
1785
- z.lazy(() => UpdateDatapoint24$outboundSchema),
1786
- ]),
1787
- ),
2900
+ z.array(z.union([
2901
+ z.lazy(() => UpdateDatapoint21$outboundSchema),
2902
+ components.ImageContentPartSchema$outboundSchema,
2903
+ components.AudioContentPartSchema$outboundSchema,
2904
+ z.lazy(() => UpdateDatapoint24$outboundSchema),
2905
+ ])),
1788
2906
  ]);
1789
2907
 
1790
2908
  export function updateDatapointMessagesDatasetsRequestContentToJSON(
@@ -1823,16 +2941,12 @@ export const UpdateDatapointMessagesUserMessage$inboundSchema: z.ZodType<
1823
2941
  name: z.string().optional(),
1824
2942
  content: z.union([
1825
2943
  z.string(),
1826
- z.array(
1827
- z.union([
1828
- components.TextContentPartSchema$inboundSchema.and(
1829
- z.object({ type: z.literal("text") }),
1830
- ),
1831
- components.ImageContentPartSchema$inboundSchema,
1832
- components.AudioContentPartSchema$inboundSchema,
1833
- z.lazy(() => UpdateDatapoint24$inboundSchema),
1834
- ]),
1835
- ),
2944
+ z.array(z.union([
2945
+ z.lazy(() => UpdateDatapoint21$inboundSchema),
2946
+ components.ImageContentPartSchema$inboundSchema,
2947
+ components.AudioContentPartSchema$inboundSchema,
2948
+ z.lazy(() => UpdateDatapoint24$inboundSchema),
2949
+ ])),
1836
2950
  ]),
1837
2951
  });
1838
2952
  /** @internal */
@@ -1842,7 +2956,7 @@ export type UpdateDatapointMessagesUserMessage$Outbound = {
1842
2956
  content:
1843
2957
  | string
1844
2958
  | Array<
1845
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2959
+ | UpdateDatapoint21$Outbound
1846
2960
  | components.ImageContentPartSchema$Outbound
1847
2961
  | components.AudioContentPartSchema$Outbound
1848
2962
  | UpdateDatapoint24$Outbound
@@ -1859,16 +2973,12 @@ export const UpdateDatapointMessagesUserMessage$outboundSchema: z.ZodType<
1859
2973
  name: z.string().optional(),
1860
2974
  content: z.union([
1861
2975
  z.string(),
1862
- z.array(
1863
- z.union([
1864
- components.TextContentPartSchema$outboundSchema.and(
1865
- z.object({ type: z.literal("text") }),
1866
- ),
1867
- components.ImageContentPartSchema$outboundSchema,
1868
- components.AudioContentPartSchema$outboundSchema,
1869
- z.lazy(() => UpdateDatapoint24$outboundSchema),
1870
- ]),
1871
- ),
2976
+ z.array(z.union([
2977
+ z.lazy(() => UpdateDatapoint21$outboundSchema),
2978
+ components.ImageContentPartSchema$outboundSchema,
2979
+ components.AudioContentPartSchema$outboundSchema,
2980
+ z.lazy(() => UpdateDatapoint24$outboundSchema),
2981
+ ])),
1872
2982
  ]),
1873
2983
  });
1874
2984
 
@@ -1892,6 +3002,144 @@ export function updateDatapointMessagesUserMessageFromJSON(
1892
3002
  );
1893
3003
  }
1894
3004
 
3005
+ /** @internal */
3006
+ export const UpdateDatapointContentDatasetsRequestType$inboundSchema:
3007
+ z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsRequestType> = z
3008
+ .nativeEnum(UpdateDatapointContentDatasetsRequestType);
3009
+ /** @internal */
3010
+ export const UpdateDatapointContentDatasetsRequestType$outboundSchema:
3011
+ z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsRequestType> =
3012
+ UpdateDatapointContentDatasetsRequestType$inboundSchema;
3013
+
3014
+ /** @internal */
3015
+ export const UpdateDatapointContentDatasetsRequestRequestBodyType$inboundSchema:
3016
+ z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsRequestRequestBodyType> =
3017
+ z.nativeEnum(UpdateDatapointContentDatasetsRequestRequestBodyType);
3018
+ /** @internal */
3019
+ export const UpdateDatapointContentDatasetsRequestRequestBodyType$outboundSchema:
3020
+ z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsRequestRequestBodyType> =
3021
+ UpdateDatapointContentDatasetsRequestRequestBodyType$inboundSchema;
3022
+
3023
+ /** @internal */
3024
+ export const UpdateDatapointContentDatasetsTtl$inboundSchema: z.ZodNativeEnum<
3025
+ typeof UpdateDatapointContentDatasetsTtl
3026
+ > = z.nativeEnum(UpdateDatapointContentDatasetsTtl);
3027
+ /** @internal */
3028
+ export const UpdateDatapointContentDatasetsTtl$outboundSchema: z.ZodNativeEnum<
3029
+ typeof UpdateDatapointContentDatasetsTtl
3030
+ > = UpdateDatapointContentDatasetsTtl$inboundSchema;
3031
+
3032
+ /** @internal */
3033
+ export const UpdateDatapointContentDatasetsCacheControl$inboundSchema:
3034
+ z.ZodType<UpdateDatapointContentDatasetsCacheControl, z.ZodTypeDef, unknown> =
3035
+ z.object({
3036
+ type: UpdateDatapointContentDatasetsRequestRequestBodyType$inboundSchema,
3037
+ ttl: UpdateDatapointContentDatasetsTtl$inboundSchema.default("5m"),
3038
+ });
3039
+ /** @internal */
3040
+ export type UpdateDatapointContentDatasetsCacheControl$Outbound = {
3041
+ type: string;
3042
+ ttl: string;
3043
+ };
3044
+
3045
+ /** @internal */
3046
+ export const UpdateDatapointContentDatasetsCacheControl$outboundSchema:
3047
+ z.ZodType<
3048
+ UpdateDatapointContentDatasetsCacheControl$Outbound,
3049
+ z.ZodTypeDef,
3050
+ UpdateDatapointContentDatasetsCacheControl
3051
+ > = z.object({
3052
+ type: UpdateDatapointContentDatasetsRequestRequestBodyType$outboundSchema,
3053
+ ttl: UpdateDatapointContentDatasetsTtl$outboundSchema.default("5m"),
3054
+ });
3055
+
3056
+ export function updateDatapointContentDatasetsCacheControlToJSON(
3057
+ updateDatapointContentDatasetsCacheControl:
3058
+ UpdateDatapointContentDatasetsCacheControl,
3059
+ ): string {
3060
+ return JSON.stringify(
3061
+ UpdateDatapointContentDatasetsCacheControl$outboundSchema.parse(
3062
+ updateDatapointContentDatasetsCacheControl,
3063
+ ),
3064
+ );
3065
+ }
3066
+ export function updateDatapointContentDatasetsCacheControlFromJSON(
3067
+ jsonString: string,
3068
+ ): SafeParseResult<
3069
+ UpdateDatapointContentDatasetsCacheControl,
3070
+ SDKValidationError
3071
+ > {
3072
+ return safeParse(
3073
+ jsonString,
3074
+ (x) =>
3075
+ UpdateDatapointContentDatasetsCacheControl$inboundSchema.parse(
3076
+ JSON.parse(x),
3077
+ ),
3078
+ `Failed to parse 'UpdateDatapointContentDatasetsCacheControl' from JSON`,
3079
+ );
3080
+ }
3081
+
3082
+ /** @internal */
3083
+ export const UpdateDatapointContentDatasets2$inboundSchema: z.ZodType<
3084
+ UpdateDatapointContentDatasets2,
3085
+ z.ZodTypeDef,
3086
+ unknown
3087
+ > = z.object({
3088
+ type: UpdateDatapointContentDatasetsRequestType$inboundSchema,
3089
+ text: z.string(),
3090
+ cache_control: z.lazy(() =>
3091
+ UpdateDatapointContentDatasetsCacheControl$inboundSchema
3092
+ ).optional(),
3093
+ }).transform((v) => {
3094
+ return remap$(v, {
3095
+ "cache_control": "cacheControl",
3096
+ });
3097
+ });
3098
+ /** @internal */
3099
+ export type UpdateDatapointContentDatasets2$Outbound = {
3100
+ type: string;
3101
+ text: string;
3102
+ cache_control?:
3103
+ | UpdateDatapointContentDatasetsCacheControl$Outbound
3104
+ | undefined;
3105
+ };
3106
+
3107
+ /** @internal */
3108
+ export const UpdateDatapointContentDatasets2$outboundSchema: z.ZodType<
3109
+ UpdateDatapointContentDatasets2$Outbound,
3110
+ z.ZodTypeDef,
3111
+ UpdateDatapointContentDatasets2
3112
+ > = z.object({
3113
+ type: UpdateDatapointContentDatasetsRequestType$outboundSchema,
3114
+ text: z.string(),
3115
+ cacheControl: z.lazy(() =>
3116
+ UpdateDatapointContentDatasetsCacheControl$outboundSchema
3117
+ ).optional(),
3118
+ }).transform((v) => {
3119
+ return remap$(v, {
3120
+ cacheControl: "cache_control",
3121
+ });
3122
+ });
3123
+
3124
+ export function updateDatapointContentDatasets2ToJSON(
3125
+ updateDatapointContentDatasets2: UpdateDatapointContentDatasets2,
3126
+ ): string {
3127
+ return JSON.stringify(
3128
+ UpdateDatapointContentDatasets2$outboundSchema.parse(
3129
+ updateDatapointContentDatasets2,
3130
+ ),
3131
+ );
3132
+ }
3133
+ export function updateDatapointContentDatasets2FromJSON(
3134
+ jsonString: string,
3135
+ ): SafeParseResult<UpdateDatapointContentDatasets2, SDKValidationError> {
3136
+ return safeParse(
3137
+ jsonString,
3138
+ (x) => UpdateDatapointContentDatasets2$inboundSchema.parse(JSON.parse(x)),
3139
+ `Failed to parse 'UpdateDatapointContentDatasets2' from JSON`,
3140
+ );
3141
+ }
3142
+
1895
3143
  /** @internal */
1896
3144
  export const UpdateDatapointMessagesDatasetsContent$inboundSchema: z.ZodType<
1897
3145
  UpdateDatapointMessagesDatasetsContent,
@@ -1899,12 +3147,12 @@ export const UpdateDatapointMessagesDatasetsContent$inboundSchema: z.ZodType<
1899
3147
  unknown
1900
3148
  > = z.union([
1901
3149
  z.string(),
1902
- z.array(components.TextContentPartSchema$inboundSchema),
3150
+ z.array(z.lazy(() => UpdateDatapointContentDatasets2$inboundSchema)),
1903
3151
  ]);
1904
3152
  /** @internal */
1905
3153
  export type UpdateDatapointMessagesDatasetsContent$Outbound =
1906
3154
  | string
1907
- | Array<components.TextContentPartSchema$Outbound>;
3155
+ | Array<UpdateDatapointContentDatasets2$Outbound>;
1908
3156
 
1909
3157
  /** @internal */
1910
3158
  export const UpdateDatapointMessagesDatasetsContent$outboundSchema: z.ZodType<
@@ -1913,7 +3161,7 @@ export const UpdateDatapointMessagesDatasetsContent$outboundSchema: z.ZodType<
1913
3161
  UpdateDatapointMessagesDatasetsContent
1914
3162
  > = z.union([
1915
3163
  z.string(),
1916
- z.array(components.TextContentPartSchema$outboundSchema),
3164
+ z.array(z.lazy(() => UpdateDatapointContentDatasets2$outboundSchema)),
1917
3165
  ]);
1918
3166
 
1919
3167
  export function updateDatapointMessagesDatasetsContentToJSON(
@@ -1921,79 +3169,206 @@ export function updateDatapointMessagesDatasetsContentToJSON(
1921
3169
  UpdateDatapointMessagesDatasetsContent,
1922
3170
  ): string {
1923
3171
  return JSON.stringify(
1924
- UpdateDatapointMessagesDatasetsContent$outboundSchema.parse(
1925
- updateDatapointMessagesDatasetsContent,
3172
+ UpdateDatapointMessagesDatasetsContent$outboundSchema.parse(
3173
+ updateDatapointMessagesDatasetsContent,
3174
+ ),
3175
+ );
3176
+ }
3177
+ export function updateDatapointMessagesDatasetsContentFromJSON(
3178
+ jsonString: string,
3179
+ ): SafeParseResult<UpdateDatapointMessagesDatasetsContent, SDKValidationError> {
3180
+ return safeParse(
3181
+ jsonString,
3182
+ (x) =>
3183
+ UpdateDatapointMessagesDatasetsContent$inboundSchema.parse(JSON.parse(x)),
3184
+ `Failed to parse 'UpdateDatapointMessagesDatasetsContent' from JSON`,
3185
+ );
3186
+ }
3187
+
3188
+ /** @internal */
3189
+ export const UpdateDatapointMessagesDeveloperMessage$inboundSchema: z.ZodType<
3190
+ UpdateDatapointMessagesDeveloperMessage,
3191
+ z.ZodTypeDef,
3192
+ unknown
3193
+ > = z.object({
3194
+ role: z.literal("developer"),
3195
+ content: z.union([
3196
+ z.string(),
3197
+ z.array(z.lazy(() => UpdateDatapointContentDatasets2$inboundSchema)),
3198
+ ]),
3199
+ name: z.string().optional(),
3200
+ });
3201
+ /** @internal */
3202
+ export type UpdateDatapointMessagesDeveloperMessage$Outbound = {
3203
+ role: "developer";
3204
+ content: string | Array<UpdateDatapointContentDatasets2$Outbound>;
3205
+ name?: string | undefined;
3206
+ };
3207
+
3208
+ /** @internal */
3209
+ export const UpdateDatapointMessagesDeveloperMessage$outboundSchema: z.ZodType<
3210
+ UpdateDatapointMessagesDeveloperMessage$Outbound,
3211
+ z.ZodTypeDef,
3212
+ UpdateDatapointMessagesDeveloperMessage
3213
+ > = z.object({
3214
+ role: z.literal("developer"),
3215
+ content: z.union([
3216
+ z.string(),
3217
+ z.array(z.lazy(() => UpdateDatapointContentDatasets2$outboundSchema)),
3218
+ ]),
3219
+ name: z.string().optional(),
3220
+ });
3221
+
3222
+ export function updateDatapointMessagesDeveloperMessageToJSON(
3223
+ updateDatapointMessagesDeveloperMessage:
3224
+ UpdateDatapointMessagesDeveloperMessage,
3225
+ ): string {
3226
+ return JSON.stringify(
3227
+ UpdateDatapointMessagesDeveloperMessage$outboundSchema.parse(
3228
+ updateDatapointMessagesDeveloperMessage,
3229
+ ),
3230
+ );
3231
+ }
3232
+ export function updateDatapointMessagesDeveloperMessageFromJSON(
3233
+ jsonString: string,
3234
+ ): SafeParseResult<
3235
+ UpdateDatapointMessagesDeveloperMessage,
3236
+ SDKValidationError
3237
+ > {
3238
+ return safeParse(
3239
+ jsonString,
3240
+ (x) =>
3241
+ UpdateDatapointMessagesDeveloperMessage$inboundSchema.parse(
3242
+ JSON.parse(x),
3243
+ ),
3244
+ `Failed to parse 'UpdateDatapointMessagesDeveloperMessage' from JSON`,
3245
+ );
3246
+ }
3247
+
3248
+ /** @internal */
3249
+ export const UpdateDatapointContentType$inboundSchema: z.ZodNativeEnum<
3250
+ typeof UpdateDatapointContentType
3251
+ > = z.nativeEnum(UpdateDatapointContentType);
3252
+ /** @internal */
3253
+ export const UpdateDatapointContentType$outboundSchema: z.ZodNativeEnum<
3254
+ typeof UpdateDatapointContentType
3255
+ > = UpdateDatapointContentType$inboundSchema;
3256
+
3257
+ /** @internal */
3258
+ export const UpdateDatapointContentDatasetsType$inboundSchema: z.ZodNativeEnum<
3259
+ typeof UpdateDatapointContentDatasetsType
3260
+ > = z.nativeEnum(UpdateDatapointContentDatasetsType);
3261
+ /** @internal */
3262
+ export const UpdateDatapointContentDatasetsType$outboundSchema: z.ZodNativeEnum<
3263
+ typeof UpdateDatapointContentDatasetsType
3264
+ > = UpdateDatapointContentDatasetsType$inboundSchema;
3265
+
3266
+ /** @internal */
3267
+ export const UpdateDatapointContentTtl$inboundSchema: z.ZodNativeEnum<
3268
+ typeof UpdateDatapointContentTtl
3269
+ > = z.nativeEnum(UpdateDatapointContentTtl);
3270
+ /** @internal */
3271
+ export const UpdateDatapointContentTtl$outboundSchema: z.ZodNativeEnum<
3272
+ typeof UpdateDatapointContentTtl
3273
+ > = UpdateDatapointContentTtl$inboundSchema;
3274
+
3275
+ /** @internal */
3276
+ export const UpdateDatapointContentCacheControl$inboundSchema: z.ZodType<
3277
+ UpdateDatapointContentCacheControl,
3278
+ z.ZodTypeDef,
3279
+ unknown
3280
+ > = z.object({
3281
+ type: UpdateDatapointContentDatasetsType$inboundSchema,
3282
+ ttl: UpdateDatapointContentTtl$inboundSchema.default("5m"),
3283
+ });
3284
+ /** @internal */
3285
+ export type UpdateDatapointContentCacheControl$Outbound = {
3286
+ type: string;
3287
+ ttl: string;
3288
+ };
3289
+
3290
+ /** @internal */
3291
+ export const UpdateDatapointContentCacheControl$outboundSchema: z.ZodType<
3292
+ UpdateDatapointContentCacheControl$Outbound,
3293
+ z.ZodTypeDef,
3294
+ UpdateDatapointContentCacheControl
3295
+ > = z.object({
3296
+ type: UpdateDatapointContentDatasetsType$outboundSchema,
3297
+ ttl: UpdateDatapointContentTtl$outboundSchema.default("5m"),
3298
+ });
3299
+
3300
+ export function updateDatapointContentCacheControlToJSON(
3301
+ updateDatapointContentCacheControl: UpdateDatapointContentCacheControl,
3302
+ ): string {
3303
+ return JSON.stringify(
3304
+ UpdateDatapointContentCacheControl$outboundSchema.parse(
3305
+ updateDatapointContentCacheControl,
1926
3306
  ),
1927
3307
  );
1928
3308
  }
1929
- export function updateDatapointMessagesDatasetsContentFromJSON(
3309
+ export function updateDatapointContentCacheControlFromJSON(
1930
3310
  jsonString: string,
1931
- ): SafeParseResult<UpdateDatapointMessagesDatasetsContent, SDKValidationError> {
3311
+ ): SafeParseResult<UpdateDatapointContentCacheControl, SDKValidationError> {
1932
3312
  return safeParse(
1933
3313
  jsonString,
1934
3314
  (x) =>
1935
- UpdateDatapointMessagesDatasetsContent$inboundSchema.parse(JSON.parse(x)),
1936
- `Failed to parse 'UpdateDatapointMessagesDatasetsContent' from JSON`,
3315
+ UpdateDatapointContentCacheControl$inboundSchema.parse(JSON.parse(x)),
3316
+ `Failed to parse 'UpdateDatapointContentCacheControl' from JSON`,
1937
3317
  );
1938
3318
  }
1939
3319
 
1940
3320
  /** @internal */
1941
- export const UpdateDatapointMessagesDeveloperMessage$inboundSchema: z.ZodType<
1942
- UpdateDatapointMessagesDeveloperMessage,
3321
+ export const UpdateDatapointContent2$inboundSchema: z.ZodType<
3322
+ UpdateDatapointContent2,
1943
3323
  z.ZodTypeDef,
1944
3324
  unknown
1945
3325
  > = z.object({
1946
- role: z.literal("developer"),
1947
- content: z.union([
1948
- z.string(),
1949
- z.array(components.TextContentPartSchema$inboundSchema),
1950
- ]),
1951
- name: z.string().optional(),
3326
+ type: UpdateDatapointContentType$inboundSchema,
3327
+ text: z.string(),
3328
+ cache_control: z.lazy(() => UpdateDatapointContentCacheControl$inboundSchema)
3329
+ .optional(),
3330
+ }).transform((v) => {
3331
+ return remap$(v, {
3332
+ "cache_control": "cacheControl",
3333
+ });
1952
3334
  });
1953
3335
  /** @internal */
1954
- export type UpdateDatapointMessagesDeveloperMessage$Outbound = {
1955
- role: "developer";
1956
- content: string | Array<components.TextContentPartSchema$Outbound>;
1957
- name?: string | undefined;
3336
+ export type UpdateDatapointContent2$Outbound = {
3337
+ type: string;
3338
+ text: string;
3339
+ cache_control?: UpdateDatapointContentCacheControl$Outbound | undefined;
1958
3340
  };
1959
3341
 
1960
3342
  /** @internal */
1961
- export const UpdateDatapointMessagesDeveloperMessage$outboundSchema: z.ZodType<
1962
- UpdateDatapointMessagesDeveloperMessage$Outbound,
3343
+ export const UpdateDatapointContent2$outboundSchema: z.ZodType<
3344
+ UpdateDatapointContent2$Outbound,
1963
3345
  z.ZodTypeDef,
1964
- UpdateDatapointMessagesDeveloperMessage
3346
+ UpdateDatapointContent2
1965
3347
  > = z.object({
1966
- role: z.literal("developer"),
1967
- content: z.union([
1968
- z.string(),
1969
- z.array(components.TextContentPartSchema$outboundSchema),
1970
- ]),
1971
- name: z.string().optional(),
3348
+ type: UpdateDatapointContentType$outboundSchema,
3349
+ text: z.string(),
3350
+ cacheControl: z.lazy(() => UpdateDatapointContentCacheControl$outboundSchema)
3351
+ .optional(),
3352
+ }).transform((v) => {
3353
+ return remap$(v, {
3354
+ cacheControl: "cache_control",
3355
+ });
1972
3356
  });
1973
3357
 
1974
- export function updateDatapointMessagesDeveloperMessageToJSON(
1975
- updateDatapointMessagesDeveloperMessage:
1976
- UpdateDatapointMessagesDeveloperMessage,
3358
+ export function updateDatapointContent2ToJSON(
3359
+ updateDatapointContent2: UpdateDatapointContent2,
1977
3360
  ): string {
1978
3361
  return JSON.stringify(
1979
- UpdateDatapointMessagesDeveloperMessage$outboundSchema.parse(
1980
- updateDatapointMessagesDeveloperMessage,
1981
- ),
3362
+ UpdateDatapointContent2$outboundSchema.parse(updateDatapointContent2),
1982
3363
  );
1983
3364
  }
1984
- export function updateDatapointMessagesDeveloperMessageFromJSON(
3365
+ export function updateDatapointContent2FromJSON(
1985
3366
  jsonString: string,
1986
- ): SafeParseResult<
1987
- UpdateDatapointMessagesDeveloperMessage,
1988
- SDKValidationError
1989
- > {
3367
+ ): SafeParseResult<UpdateDatapointContent2, SDKValidationError> {
1990
3368
  return safeParse(
1991
3369
  jsonString,
1992
- (x) =>
1993
- UpdateDatapointMessagesDeveloperMessage$inboundSchema.parse(
1994
- JSON.parse(x),
1995
- ),
1996
- `Failed to parse 'UpdateDatapointMessagesDeveloperMessage' from JSON`,
3370
+ (x) => UpdateDatapointContent2$inboundSchema.parse(JSON.parse(x)),
3371
+ `Failed to parse 'UpdateDatapointContent2' from JSON`,
1997
3372
  );
1998
3373
  }
1999
3374
 
@@ -2004,12 +3379,12 @@ export const UpdateDatapointMessagesContent$inboundSchema: z.ZodType<
2004
3379
  unknown
2005
3380
  > = z.union([
2006
3381
  z.string(),
2007
- z.array(components.TextContentPartSchema$inboundSchema),
3382
+ z.array(z.lazy(() => UpdateDatapointContent2$inboundSchema)),
2008
3383
  ]);
2009
3384
  /** @internal */
2010
3385
  export type UpdateDatapointMessagesContent$Outbound =
2011
3386
  | string
2012
- | Array<components.TextContentPartSchema$Outbound>;
3387
+ | Array<UpdateDatapointContent2$Outbound>;
2013
3388
 
2014
3389
  /** @internal */
2015
3390
  export const UpdateDatapointMessagesContent$outboundSchema: z.ZodType<
@@ -2018,7 +3393,7 @@ export const UpdateDatapointMessagesContent$outboundSchema: z.ZodType<
2018
3393
  UpdateDatapointMessagesContent
2019
3394
  > = z.union([
2020
3395
  z.string(),
2021
- z.array(components.TextContentPartSchema$outboundSchema),
3396
+ z.array(z.lazy(() => UpdateDatapointContent2$outboundSchema)),
2022
3397
  ]);
2023
3398
 
2024
3399
  export function updateDatapointMessagesContentToJSON(
@@ -2049,14 +3424,14 @@ export const UpdateDatapointMessagesSystemMessage$inboundSchema: z.ZodType<
2049
3424
  role: z.literal("system"),
2050
3425
  content: z.union([
2051
3426
  z.string(),
2052
- z.array(components.TextContentPartSchema$inboundSchema),
3427
+ z.array(z.lazy(() => UpdateDatapointContent2$inboundSchema)),
2053
3428
  ]),
2054
3429
  name: z.string().optional(),
2055
3430
  });
2056
3431
  /** @internal */
2057
3432
  export type UpdateDatapointMessagesSystemMessage$Outbound = {
2058
3433
  role: "system";
2059
- content: string | Array<components.TextContentPartSchema$Outbound>;
3434
+ content: string | Array<UpdateDatapointContent2$Outbound>;
2060
3435
  name?: string | undefined;
2061
3436
  };
2062
3437
 
@@ -2069,7 +3444,7 @@ export const UpdateDatapointMessagesSystemMessage$outboundSchema: z.ZodType<
2069
3444
  role: z.literal("system"),
2070
3445
  content: z.union([
2071
3446
  z.string(),
2072
- z.array(components.TextContentPartSchema$outboundSchema),
3447
+ z.array(z.lazy(() => UpdateDatapointContent2$outboundSchema)),
2073
3448
  ]),
2074
3449
  name: z.string().optional(),
2075
3450
  });
@@ -2281,45 +3656,225 @@ export function updateDatapointRequestFromJSON(
2281
3656
  }
2282
3657
 
2283
3658
  /** @internal */
2284
- export const UpdateDatapointContentDatasetsResponse200ApplicationJson2$inboundSchema:
3659
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema:
3660
+ z.ZodNativeEnum<
3661
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType
3662
+ > = z.nativeEnum(
3663
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType,
3664
+ );
3665
+ /** @internal */
3666
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema:
3667
+ z.ZodNativeEnum<
3668
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType
3669
+ > =
3670
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema;
3671
+
3672
+ /** @internal */
3673
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type$inboundSchema:
3674
+ z.ZodNativeEnum<
3675
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type
3676
+ > = z.nativeEnum(
3677
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type,
3678
+ );
3679
+ /** @internal */
3680
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type$outboundSchema:
3681
+ z.ZodNativeEnum<
3682
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type
3683
+ > =
3684
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type$inboundSchema;
3685
+
3686
+ /** @internal */
3687
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl$inboundSchema:
3688
+ z.ZodNativeEnum<
3689
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl
3690
+ > = z.nativeEnum(
3691
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl,
3692
+ );
3693
+ /** @internal */
3694
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl$outboundSchema:
3695
+ z.ZodNativeEnum<
3696
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl
3697
+ > =
3698
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl$inboundSchema;
3699
+
3700
+ /** @internal */
3701
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl$inboundSchema:
2285
3702
  z.ZodType<
2286
- UpdateDatapointContentDatasetsResponse200ApplicationJson2,
3703
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl,
2287
3704
  z.ZodTypeDef,
2288
3705
  unknown
2289
- > = components.TextContentPartSchema$inboundSchema;
3706
+ > = z.object({
3707
+ type:
3708
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type$inboundSchema,
3709
+ ttl:
3710
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl$inboundSchema
3711
+ .default("5m"),
3712
+ });
2290
3713
  /** @internal */
2291
- export type UpdateDatapointContentDatasetsResponse200ApplicationJson2$Outbound =
2292
- components.TextContentPartSchema$Outbound;
3714
+ export type UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl$Outbound =
3715
+ {
3716
+ type: string;
3717
+ ttl: string;
3718
+ };
2293
3719
 
2294
3720
  /** @internal */
2295
- export const UpdateDatapointContentDatasetsResponse200ApplicationJson2$outboundSchema:
3721
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl$outboundSchema:
2296
3722
  z.ZodType<
2297
- UpdateDatapointContentDatasetsResponse200ApplicationJson2$Outbound,
3723
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl$Outbound,
2298
3724
  z.ZodTypeDef,
2299
- UpdateDatapointContentDatasetsResponse200ApplicationJson2
2300
- > = components.TextContentPartSchema$outboundSchema;
3725
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl
3726
+ > = z.object({
3727
+ type:
3728
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type$outboundSchema,
3729
+ ttl:
3730
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl$outboundSchema
3731
+ .default("5m"),
3732
+ });
2301
3733
 
2302
- export function updateDatapointContentDatasetsResponse200ApplicationJSON2ToJSON(
2303
- updateDatapointContentDatasetsResponse200ApplicationJson2:
2304
- UpdateDatapointContentDatasetsResponse200ApplicationJson2,
3734
+ export function updateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControlToJSON(
3735
+ updateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl:
3736
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl,
2305
3737
  ): string {
2306
3738
  return JSON.stringify(
2307
- UpdateDatapointContentDatasetsResponse200ApplicationJson2$outboundSchema
2308
- .parse(updateDatapointContentDatasetsResponse200ApplicationJson2),
3739
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl$outboundSchema
3740
+ .parse(
3741
+ updateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl,
3742
+ ),
2309
3743
  );
2310
3744
  }
2311
- export function updateDatapointContentDatasetsResponse200ApplicationJSON2FromJSON(
3745
+ export function updateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControlFromJSON(
2312
3746
  jsonString: string,
2313
3747
  ): SafeParseResult<
2314
- UpdateDatapointContentDatasetsResponse200ApplicationJson2,
3748
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl,
2315
3749
  SDKValidationError
2316
3750
  > {
2317
3751
  return safeParse(
2318
3752
  jsonString,
2319
3753
  (x) =>
2320
- UpdateDatapointContentDatasetsResponse200ApplicationJson2$inboundSchema
3754
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl$inboundSchema
2321
3755
  .parse(JSON.parse(x)),
2322
- `Failed to parse 'UpdateDatapointContentDatasetsResponse200ApplicationJson2' from JSON`,
3756
+ `Failed to parse 'UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl' from JSON`,
3757
+ );
3758
+ }
3759
+
3760
+ /** @internal */
3761
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJson1$inboundSchema:
3762
+ z.ZodType<
3763
+ UpdateDatapoint2DatasetsResponse200ApplicationJson1,
3764
+ z.ZodTypeDef,
3765
+ unknown
3766
+ > = z.object({
3767
+ type:
3768
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema,
3769
+ text: z.string(),
3770
+ cache_control: z.lazy(() =>
3771
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl$inboundSchema
3772
+ ).optional(),
3773
+ }).transform((v) => {
3774
+ return remap$(v, {
3775
+ "cache_control": "cacheControl",
3776
+ });
3777
+ });
3778
+ /** @internal */
3779
+ export type UpdateDatapoint2DatasetsResponse200ApplicationJson1$Outbound = {
3780
+ type: string;
3781
+ text: string;
3782
+ cache_control?:
3783
+ | UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl$Outbound
3784
+ | undefined;
3785
+ };
3786
+
3787
+ /** @internal */
3788
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJson1$outboundSchema:
3789
+ z.ZodType<
3790
+ UpdateDatapoint2DatasetsResponse200ApplicationJson1$Outbound,
3791
+ z.ZodTypeDef,
3792
+ UpdateDatapoint2DatasetsResponse200ApplicationJson1
3793
+ > = z.object({
3794
+ type:
3795
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema,
3796
+ text: z.string(),
3797
+ cacheControl: z.lazy(() =>
3798
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl$outboundSchema
3799
+ ).optional(),
3800
+ }).transform((v) => {
3801
+ return remap$(v, {
3802
+ cacheControl: "cache_control",
3803
+ });
3804
+ });
3805
+
3806
+ export function updateDatapoint2DatasetsResponse200ApplicationJSON1ToJSON(
3807
+ updateDatapoint2DatasetsResponse200ApplicationJson1:
3808
+ UpdateDatapoint2DatasetsResponse200ApplicationJson1,
3809
+ ): string {
3810
+ return JSON.stringify(
3811
+ UpdateDatapoint2DatasetsResponse200ApplicationJson1$outboundSchema.parse(
3812
+ updateDatapoint2DatasetsResponse200ApplicationJson1,
3813
+ ),
3814
+ );
3815
+ }
3816
+ export function updateDatapoint2DatasetsResponse200ApplicationJSON1FromJSON(
3817
+ jsonString: string,
3818
+ ): SafeParseResult<
3819
+ UpdateDatapoint2DatasetsResponse200ApplicationJson1,
3820
+ SDKValidationError
3821
+ > {
3822
+ return safeParse(
3823
+ jsonString,
3824
+ (x) =>
3825
+ UpdateDatapoint2DatasetsResponse200ApplicationJson1$inboundSchema.parse(
3826
+ JSON.parse(x),
3827
+ ),
3828
+ `Failed to parse 'UpdateDatapoint2DatasetsResponse200ApplicationJson1' from JSON`,
3829
+ );
3830
+ }
3831
+
3832
+ /** @internal */
3833
+ export const UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2$inboundSchema:
3834
+ z.ZodType<
3835
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2,
3836
+ z.ZodTypeDef,
3837
+ unknown
3838
+ > = z.lazy(() =>
3839
+ UpdateDatapoint2DatasetsResponse200ApplicationJson1$inboundSchema
3840
+ );
3841
+ /** @internal */
3842
+ export type UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2$Outbound =
3843
+ UpdateDatapoint2DatasetsResponse200ApplicationJson1$Outbound;
3844
+
3845
+ /** @internal */
3846
+ export const UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2$outboundSchema:
3847
+ z.ZodType<
3848
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2$Outbound,
3849
+ z.ZodTypeDef,
3850
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2
3851
+ > = z.lazy(() =>
3852
+ UpdateDatapoint2DatasetsResponse200ApplicationJson1$outboundSchema
3853
+ );
3854
+
3855
+ export function updateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2ToJSON(
3856
+ updateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2:
3857
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2,
3858
+ ): string {
3859
+ return JSON.stringify(
3860
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2$outboundSchema
3861
+ .parse(
3862
+ updateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2,
3863
+ ),
3864
+ );
3865
+ }
3866
+ export function updateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2FromJSON(
3867
+ jsonString: string,
3868
+ ): SafeParseResult<
3869
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2,
3870
+ SDKValidationError
3871
+ > {
3872
+ return safeParse(
3873
+ jsonString,
3874
+ (x) =>
3875
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2$inboundSchema
3876
+ .parse(JSON.parse(x)),
3877
+ `Failed to parse 'UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2' from JSON`,
2323
3878
  );
2324
3879
  }
2325
3880
 
@@ -2331,12 +3886,14 @@ export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBo
2331
3886
  unknown
2332
3887
  > = z.union([
2333
3888
  z.string(),
2334
- z.array(components.TextContentPartSchema$inboundSchema),
3889
+ z.array(z.lazy(() =>
3890
+ UpdateDatapoint2DatasetsResponse200ApplicationJson1$inboundSchema
3891
+ )),
2335
3892
  ]);
2336
3893
  /** @internal */
2337
3894
  export type UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5Content$Outbound =
2338
3895
  | string
2339
- | Array<components.TextContentPartSchema$Outbound>;
3896
+ | Array<UpdateDatapoint2DatasetsResponse200ApplicationJson1$Outbound>;
2340
3897
 
2341
3898
  /** @internal */
2342
3899
  export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5Content$outboundSchema:
@@ -2346,7 +3903,9 @@ export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBo
2346
3903
  UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5Content
2347
3904
  > = z.union([
2348
3905
  z.string(),
2349
- z.array(components.TextContentPartSchema$outboundSchema),
3906
+ z.array(z.lazy(() =>
3907
+ UpdateDatapoint2DatasetsResponse200ApplicationJson1$outboundSchema
3908
+ )),
2350
3909
  ]);
2351
3910
 
2352
3911
  export function updateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5ContentToJSON(
@@ -2453,7 +4012,9 @@ export const UpdateDatapointMessagesDatasetsToolMessage$inboundSchema:
2453
4012
  role: z.literal("tool"),
2454
4013
  content: z.union([
2455
4014
  z.string(),
2456
- z.array(components.TextContentPartSchema$inboundSchema),
4015
+ z.array(z.lazy(() =>
4016
+ UpdateDatapoint2DatasetsResponse200ApplicationJson1$inboundSchema
4017
+ )),
2457
4018
  ]),
2458
4019
  tool_call_id: z.string(),
2459
4020
  cache_control: z.lazy(() =>
@@ -2468,7 +4029,9 @@ export const UpdateDatapointMessagesDatasetsToolMessage$inboundSchema:
2468
4029
  /** @internal */
2469
4030
  export type UpdateDatapointMessagesDatasetsToolMessage$Outbound = {
2470
4031
  role: "tool";
2471
- content: string | Array<components.TextContentPartSchema$Outbound>;
4032
+ content:
4033
+ | string
4034
+ | Array<UpdateDatapoint2DatasetsResponse200ApplicationJson1$Outbound>;
2472
4035
  tool_call_id: string;
2473
4036
  cache_control?:
2474
4037
  | UpdateDatapointMessagesDatasetsCacheControl$Outbound
@@ -2485,7 +4048,9 @@ export const UpdateDatapointMessagesDatasetsToolMessage$outboundSchema:
2485
4048
  role: z.literal("tool"),
2486
4049
  content: z.union([
2487
4050
  z.string(),
2488
- z.array(components.TextContentPartSchema$outboundSchema),
4051
+ z.array(z.lazy(() =>
4052
+ UpdateDatapoint2DatasetsResponse200ApplicationJson1$outboundSchema
4053
+ )),
2489
4054
  ]),
2490
4055
  toolCallId: z.string(),
2491
4056
  cacheControl: z.lazy(() =>
@@ -2498,88 +4063,230 @@ export const UpdateDatapointMessagesDatasetsToolMessage$outboundSchema:
2498
4063
  });
2499
4064
  });
2500
4065
 
2501
- export function updateDatapointMessagesDatasetsToolMessageToJSON(
2502
- updateDatapointMessagesDatasetsToolMessage:
2503
- UpdateDatapointMessagesDatasetsToolMessage,
4066
+ export function updateDatapointMessagesDatasetsToolMessageToJSON(
4067
+ updateDatapointMessagesDatasetsToolMessage:
4068
+ UpdateDatapointMessagesDatasetsToolMessage,
4069
+ ): string {
4070
+ return JSON.stringify(
4071
+ UpdateDatapointMessagesDatasetsToolMessage$outboundSchema.parse(
4072
+ updateDatapointMessagesDatasetsToolMessage,
4073
+ ),
4074
+ );
4075
+ }
4076
+ export function updateDatapointMessagesDatasetsToolMessageFromJSON(
4077
+ jsonString: string,
4078
+ ): SafeParseResult<
4079
+ UpdateDatapointMessagesDatasetsToolMessage,
4080
+ SDKValidationError
4081
+ > {
4082
+ return safeParse(
4083
+ jsonString,
4084
+ (x) =>
4085
+ UpdateDatapointMessagesDatasetsToolMessage$inboundSchema.parse(
4086
+ JSON.parse(x),
4087
+ ),
4088
+ `Failed to parse 'UpdateDatapointMessagesDatasetsToolMessage' from JSON`,
4089
+ );
4090
+ }
4091
+
4092
+ /** @internal */
4093
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type$inboundSchema:
4094
+ z.ZodNativeEnum<
4095
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type
4096
+ > = z.nativeEnum(
4097
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type,
4098
+ );
4099
+ /** @internal */
4100
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type$outboundSchema:
4101
+ z.ZodNativeEnum<
4102
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type
4103
+ > =
4104
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type$inboundSchema;
4105
+
4106
+ /** @internal */
4107
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl$inboundSchema:
4108
+ z.ZodNativeEnum<
4109
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl
4110
+ > = z.nativeEnum(UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl);
4111
+ /** @internal */
4112
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl$outboundSchema:
4113
+ z.ZodNativeEnum<
4114
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl
4115
+ > = UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl$inboundSchema;
4116
+
4117
+ /** @internal */
4118
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl$inboundSchema:
4119
+ z.ZodType<
4120
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl,
4121
+ z.ZodTypeDef,
4122
+ unknown
4123
+ > = z.object({
4124
+ type:
4125
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type$inboundSchema,
4126
+ ttl: UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl$inboundSchema
4127
+ .default("5m"),
4128
+ });
4129
+ /** @internal */
4130
+ export type UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl$Outbound =
4131
+ {
4132
+ type: string;
4133
+ ttl: string;
4134
+ };
4135
+
4136
+ /** @internal */
4137
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl$outboundSchema:
4138
+ z.ZodType<
4139
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl$Outbound,
4140
+ z.ZodTypeDef,
4141
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl
4142
+ > = z.object({
4143
+ type:
4144
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type$outboundSchema,
4145
+ ttl: UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl$outboundSchema
4146
+ .default("5m"),
4147
+ });
4148
+
4149
+ export function updateDatapoint2DatasetsResponse200ApplicationJSONCacheControlToJSON(
4150
+ updateDatapoint2DatasetsResponse200ApplicationJSONCacheControl:
4151
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl,
4152
+ ): string {
4153
+ return JSON.stringify(
4154
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl$outboundSchema
4155
+ .parse(updateDatapoint2DatasetsResponse200ApplicationJSONCacheControl),
4156
+ );
4157
+ }
4158
+ export function updateDatapoint2DatasetsResponse200ApplicationJSONCacheControlFromJSON(
4159
+ jsonString: string,
4160
+ ): SafeParseResult<
4161
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl,
4162
+ SDKValidationError
4163
+ > {
4164
+ return safeParse(
4165
+ jsonString,
4166
+ (x) =>
4167
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl$inboundSchema
4168
+ .parse(JSON.parse(x)),
4169
+ `Failed to parse 'UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl' from JSON`,
4170
+ );
4171
+ }
4172
+
4173
+ /** @internal */
4174
+ export const UpdateDatapoint2DatasetsResponse2001$inboundSchema: z.ZodType<
4175
+ UpdateDatapoint2DatasetsResponse2001,
4176
+ z.ZodTypeDef,
4177
+ unknown
4178
+ > = z.object({
4179
+ type: z.literal("text"),
4180
+ text: z.string(),
4181
+ cache_control: z.lazy(() =>
4182
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl$inboundSchema
4183
+ ).optional(),
4184
+ }).transform((v) => {
4185
+ return remap$(v, {
4186
+ "cache_control": "cacheControl",
4187
+ });
4188
+ });
4189
+ /** @internal */
4190
+ export type UpdateDatapoint2DatasetsResponse2001$Outbound = {
4191
+ type: "text";
4192
+ text: string;
4193
+ cache_control?:
4194
+ | UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl$Outbound
4195
+ | undefined;
4196
+ };
4197
+
4198
+ /** @internal */
4199
+ export const UpdateDatapoint2DatasetsResponse2001$outboundSchema: z.ZodType<
4200
+ UpdateDatapoint2DatasetsResponse2001$Outbound,
4201
+ z.ZodTypeDef,
4202
+ UpdateDatapoint2DatasetsResponse2001
4203
+ > = z.object({
4204
+ type: z.literal("text"),
4205
+ text: z.string(),
4206
+ cacheControl: z.lazy(() =>
4207
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl$outboundSchema
4208
+ ).optional(),
4209
+ }).transform((v) => {
4210
+ return remap$(v, {
4211
+ cacheControl: "cache_control",
4212
+ });
4213
+ });
4214
+
4215
+ export function updateDatapoint2DatasetsResponse2001ToJSON(
4216
+ updateDatapoint2DatasetsResponse2001: UpdateDatapoint2DatasetsResponse2001,
2504
4217
  ): string {
2505
4218
  return JSON.stringify(
2506
- UpdateDatapointMessagesDatasetsToolMessage$outboundSchema.parse(
2507
- updateDatapointMessagesDatasetsToolMessage,
4219
+ UpdateDatapoint2DatasetsResponse2001$outboundSchema.parse(
4220
+ updateDatapoint2DatasetsResponse2001,
2508
4221
  ),
2509
4222
  );
2510
4223
  }
2511
- export function updateDatapointMessagesDatasetsToolMessageFromJSON(
4224
+ export function updateDatapoint2DatasetsResponse2001FromJSON(
2512
4225
  jsonString: string,
2513
- ): SafeParseResult<
2514
- UpdateDatapointMessagesDatasetsToolMessage,
2515
- SDKValidationError
2516
- > {
4226
+ ): SafeParseResult<UpdateDatapoint2DatasetsResponse2001, SDKValidationError> {
2517
4227
  return safeParse(
2518
4228
  jsonString,
2519
4229
  (x) =>
2520
- UpdateDatapointMessagesDatasetsToolMessage$inboundSchema.parse(
2521
- JSON.parse(x),
2522
- ),
2523
- `Failed to parse 'UpdateDatapointMessagesDatasetsToolMessage' from JSON`,
4230
+ UpdateDatapoint2DatasetsResponse2001$inboundSchema.parse(JSON.parse(x)),
4231
+ `Failed to parse 'UpdateDatapoint2DatasetsResponse2001' from JSON`,
2524
4232
  );
2525
4233
  }
2526
4234
 
2527
4235
  /** @internal */
2528
- export const UpdateDatapointContentDatasetsResponse2002$inboundSchema:
2529
- z.ZodType<UpdateDatapointContentDatasetsResponse2002, z.ZodTypeDef, unknown> =
2530
- z.union([
2531
- components.TextContentPartSchema$inboundSchema.and(
2532
- z.object({ type: z.literal("text") }),
2533
- ),
2534
- components.RefusalPartSchema$inboundSchema,
2535
- components.ReasoningPartSchema$inboundSchema,
2536
- components.RedactedReasoningPartSchema$inboundSchema,
2537
- ]);
4236
+ export const UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBody2$inboundSchema:
4237
+ z.ZodType<
4238
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBody2,
4239
+ z.ZodTypeDef,
4240
+ unknown
4241
+ > = z.union([
4242
+ z.lazy(() => UpdateDatapoint2DatasetsResponse2001$inboundSchema),
4243
+ components.RefusalPartSchema$inboundSchema,
4244
+ components.ReasoningPartSchema$inboundSchema,
4245
+ components.RedactedReasoningPartSchema$inboundSchema,
4246
+ ]);
2538
4247
  /** @internal */
2539
- export type UpdateDatapointContentDatasetsResponse2002$Outbound =
2540
- | (components.TextContentPartSchema$Outbound & { type: "text" })
4248
+ export type UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBody2$Outbound =
4249
+ | UpdateDatapoint2DatasetsResponse2001$Outbound
2541
4250
  | components.RefusalPartSchema$Outbound
2542
4251
  | components.ReasoningPartSchema$Outbound
2543
4252
  | components.RedactedReasoningPartSchema$Outbound;
2544
4253
 
2545
4254
  /** @internal */
2546
- export const UpdateDatapointContentDatasetsResponse2002$outboundSchema:
4255
+ export const UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBody2$outboundSchema:
2547
4256
  z.ZodType<
2548
- UpdateDatapointContentDatasetsResponse2002$Outbound,
4257
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBody2$Outbound,
2549
4258
  z.ZodTypeDef,
2550
- UpdateDatapointContentDatasetsResponse2002
4259
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBody2
2551
4260
  > = z.union([
2552
- components.TextContentPartSchema$outboundSchema.and(
2553
- z.object({ type: z.literal("text") }),
2554
- ),
4261
+ z.lazy(() => UpdateDatapoint2DatasetsResponse2001$outboundSchema),
2555
4262
  components.RefusalPartSchema$outboundSchema,
2556
4263
  components.ReasoningPartSchema$outboundSchema,
2557
4264
  components.RedactedReasoningPartSchema$outboundSchema,
2558
4265
  ]);
2559
4266
 
2560
- export function updateDatapointContentDatasetsResponse2002ToJSON(
2561
- updateDatapointContentDatasetsResponse2002:
2562
- UpdateDatapointContentDatasetsResponse2002,
4267
+ export function updateDatapointContentDatasetsResponse200ApplicationJSONResponseBody2ToJSON(
4268
+ updateDatapointContentDatasetsResponse200ApplicationJSONResponseBody2:
4269
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBody2,
2563
4270
  ): string {
2564
4271
  return JSON.stringify(
2565
- UpdateDatapointContentDatasetsResponse2002$outboundSchema.parse(
2566
- updateDatapointContentDatasetsResponse2002,
2567
- ),
4272
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBody2$outboundSchema
4273
+ .parse(
4274
+ updateDatapointContentDatasetsResponse200ApplicationJSONResponseBody2,
4275
+ ),
2568
4276
  );
2569
4277
  }
2570
- export function updateDatapointContentDatasetsResponse2002FromJSON(
4278
+ export function updateDatapointContentDatasetsResponse200ApplicationJSONResponseBody2FromJSON(
2571
4279
  jsonString: string,
2572
4280
  ): SafeParseResult<
2573
- UpdateDatapointContentDatasetsResponse2002,
4281
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBody2,
2574
4282
  SDKValidationError
2575
4283
  > {
2576
4284
  return safeParse(
2577
4285
  jsonString,
2578
4286
  (x) =>
2579
- UpdateDatapointContentDatasetsResponse2002$inboundSchema.parse(
2580
- JSON.parse(x),
2581
- ),
2582
- `Failed to parse 'UpdateDatapointContentDatasetsResponse2002' from JSON`,
4287
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBody2$inboundSchema
4288
+ .parse(JSON.parse(x)),
4289
+ `Failed to parse 'UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBody2' from JSON`,
2583
4290
  );
2584
4291
  }
2585
4292
 
@@ -2591,22 +4298,18 @@ export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBo
2591
4298
  unknown
2592
4299
  > = z.union([
2593
4300
  z.string(),
2594
- z.array(
2595
- z.union([
2596
- components.TextContentPartSchema$inboundSchema.and(
2597
- z.object({ type: z.literal("text") }),
2598
- ),
2599
- components.RefusalPartSchema$inboundSchema,
2600
- components.ReasoningPartSchema$inboundSchema,
2601
- components.RedactedReasoningPartSchema$inboundSchema,
2602
- ]),
2603
- ),
4301
+ z.array(z.union([
4302
+ z.lazy(() => UpdateDatapoint2DatasetsResponse2001$inboundSchema),
4303
+ components.RefusalPartSchema$inboundSchema,
4304
+ components.ReasoningPartSchema$inboundSchema,
4305
+ components.RedactedReasoningPartSchema$inboundSchema,
4306
+ ])),
2604
4307
  ]);
2605
4308
  /** @internal */
2606
4309
  export type UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContent$Outbound =
2607
4310
  | string
2608
4311
  | Array<
2609
- | (components.TextContentPartSchema$Outbound & { type: "text" })
4312
+ | UpdateDatapoint2DatasetsResponse2001$Outbound
2610
4313
  | components.RefusalPartSchema$Outbound
2611
4314
  | components.ReasoningPartSchema$Outbound
2612
4315
  | components.RedactedReasoningPartSchema$Outbound
@@ -2620,16 +4323,12 @@ export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBo
2620
4323
  UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContent
2621
4324
  > = z.union([
2622
4325
  z.string(),
2623
- z.array(
2624
- z.union([
2625
- components.TextContentPartSchema$outboundSchema.and(
2626
- z.object({ type: z.literal("text") }),
2627
- ),
2628
- components.RefusalPartSchema$outboundSchema,
2629
- components.ReasoningPartSchema$outboundSchema,
2630
- components.RedactedReasoningPartSchema$outboundSchema,
2631
- ]),
2632
- ),
4326
+ z.array(z.union([
4327
+ z.lazy(() => UpdateDatapoint2DatasetsResponse2001$outboundSchema),
4328
+ components.RefusalPartSchema$outboundSchema,
4329
+ components.ReasoningPartSchema$outboundSchema,
4330
+ components.RedactedReasoningPartSchema$outboundSchema,
4331
+ ])),
2633
4332
  ]);
2634
4333
 
2635
4334
  export function updateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContentToJSON(
@@ -2839,9 +4538,7 @@ export const UpdateDatapointMessagesDatasetsAssistantMessage$inboundSchema:
2839
4538
  z.string(),
2840
4539
  z.array(
2841
4540
  z.union([
2842
- components.TextContentPartSchema$inboundSchema.and(
2843
- z.object({ type: z.literal("text") }),
2844
- ),
4541
+ z.lazy(() => UpdateDatapoint2DatasetsResponse2001$inboundSchema),
2845
4542
  components.RefusalPartSchema$inboundSchema,
2846
4543
  components.ReasoningPartSchema$inboundSchema,
2847
4544
  components.RedactedReasoningPartSchema$inboundSchema,
@@ -2868,7 +4565,7 @@ export type UpdateDatapointMessagesDatasetsAssistantMessage$Outbound = {
2868
4565
  content?:
2869
4566
  | string
2870
4567
  | Array<
2871
- | (components.TextContentPartSchema$Outbound & { type: "text" })
4568
+ | UpdateDatapoint2DatasetsResponse2001$Outbound
2872
4569
  | components.RefusalPartSchema$Outbound
2873
4570
  | components.ReasoningPartSchema$Outbound
2874
4571
  | components.RedactedReasoningPartSchema$Outbound
@@ -2896,9 +4593,7 @@ export const UpdateDatapointMessagesDatasetsAssistantMessage$outboundSchema:
2896
4593
  z.string(),
2897
4594
  z.array(
2898
4595
  z.union([
2899
- components.TextContentPartSchema$outboundSchema.and(
2900
- z.object({ type: z.literal("text") }),
2901
- ),
4596
+ z.lazy(() => UpdateDatapoint2DatasetsResponse2001$outboundSchema),
2902
4597
  components.RefusalPartSchema$outboundSchema,
2903
4598
  components.ReasoningPartSchema$outboundSchema,
2904
4599
  components.RedactedReasoningPartSchema$outboundSchema,
@@ -2948,65 +4643,81 @@ export function updateDatapointMessagesDatasetsAssistantMessageFromJSON(
2948
4643
  }
2949
4644
 
2950
4645
  /** @internal */
2951
- export const UpdateDatapoint2DatasetsResponse200Type$inboundSchema:
2952
- z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsResponse200Type> = z
2953
- .nativeEnum(UpdateDatapoint2DatasetsResponse200Type);
4646
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages3Type$inboundSchema:
4647
+ z.ZodNativeEnum<
4648
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages3Type
4649
+ > = z.nativeEnum(
4650
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages3Type,
4651
+ );
2954
4652
  /** @internal */
2955
- export const UpdateDatapoint2DatasetsResponse200Type$outboundSchema:
2956
- z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsResponse200Type> =
2957
- UpdateDatapoint2DatasetsResponse200Type$inboundSchema;
4653
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages3Type$outboundSchema:
4654
+ z.ZodNativeEnum<
4655
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages3Type
4656
+ > =
4657
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages3Type$inboundSchema;
2958
4658
 
2959
4659
  /** @internal */
2960
- export const UpdateDatapoint2DatasetsTtl$inboundSchema: z.ZodNativeEnum<
2961
- typeof UpdateDatapoint2DatasetsTtl
2962
- > = z.nativeEnum(UpdateDatapoint2DatasetsTtl);
4660
+ export const UpdateDatapoint2DatasetsResponse200Ttl$inboundSchema:
4661
+ z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsResponse200Ttl> = z.nativeEnum(
4662
+ UpdateDatapoint2DatasetsResponse200Ttl,
4663
+ );
2963
4664
  /** @internal */
2964
- export const UpdateDatapoint2DatasetsTtl$outboundSchema: z.ZodNativeEnum<
2965
- typeof UpdateDatapoint2DatasetsTtl
2966
- > = UpdateDatapoint2DatasetsTtl$inboundSchema;
4665
+ export const UpdateDatapoint2DatasetsResponse200Ttl$outboundSchema:
4666
+ z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsResponse200Ttl> =
4667
+ UpdateDatapoint2DatasetsResponse200Ttl$inboundSchema;
2967
4668
 
2968
4669
  /** @internal */
2969
- export const UpdateDatapoint2DatasetsCacheControl$inboundSchema: z.ZodType<
2970
- UpdateDatapoint2DatasetsCacheControl,
2971
- z.ZodTypeDef,
2972
- unknown
2973
- > = z.object({
2974
- type: UpdateDatapoint2DatasetsResponse200Type$inboundSchema,
2975
- ttl: UpdateDatapoint2DatasetsTtl$inboundSchema.default("5m"),
2976
- });
4670
+ export const UpdateDatapoint2DatasetsResponse200CacheControl$inboundSchema:
4671
+ z.ZodType<
4672
+ UpdateDatapoint2DatasetsResponse200CacheControl,
4673
+ z.ZodTypeDef,
4674
+ unknown
4675
+ > = z.object({
4676
+ type:
4677
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages3Type$inboundSchema,
4678
+ ttl: UpdateDatapoint2DatasetsResponse200Ttl$inboundSchema.default("5m"),
4679
+ });
2977
4680
  /** @internal */
2978
- export type UpdateDatapoint2DatasetsCacheControl$Outbound = {
4681
+ export type UpdateDatapoint2DatasetsResponse200CacheControl$Outbound = {
2979
4682
  type: string;
2980
4683
  ttl: string;
2981
4684
  };
2982
4685
 
2983
4686
  /** @internal */
2984
- export const UpdateDatapoint2DatasetsCacheControl$outboundSchema: z.ZodType<
2985
- UpdateDatapoint2DatasetsCacheControl$Outbound,
2986
- z.ZodTypeDef,
2987
- UpdateDatapoint2DatasetsCacheControl
2988
- > = z.object({
2989
- type: UpdateDatapoint2DatasetsResponse200Type$outboundSchema,
2990
- ttl: UpdateDatapoint2DatasetsTtl$outboundSchema.default("5m"),
2991
- });
4687
+ export const UpdateDatapoint2DatasetsResponse200CacheControl$outboundSchema:
4688
+ z.ZodType<
4689
+ UpdateDatapoint2DatasetsResponse200CacheControl$Outbound,
4690
+ z.ZodTypeDef,
4691
+ UpdateDatapoint2DatasetsResponse200CacheControl
4692
+ > = z.object({
4693
+ type:
4694
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages3Type$outboundSchema,
4695
+ ttl: UpdateDatapoint2DatasetsResponse200Ttl$outboundSchema.default("5m"),
4696
+ });
2992
4697
 
2993
- export function updateDatapoint2DatasetsCacheControlToJSON(
2994
- updateDatapoint2DatasetsCacheControl: UpdateDatapoint2DatasetsCacheControl,
4698
+ export function updateDatapoint2DatasetsResponse200CacheControlToJSON(
4699
+ updateDatapoint2DatasetsResponse200CacheControl:
4700
+ UpdateDatapoint2DatasetsResponse200CacheControl,
2995
4701
  ): string {
2996
4702
  return JSON.stringify(
2997
- UpdateDatapoint2DatasetsCacheControl$outboundSchema.parse(
2998
- updateDatapoint2DatasetsCacheControl,
4703
+ UpdateDatapoint2DatasetsResponse200CacheControl$outboundSchema.parse(
4704
+ updateDatapoint2DatasetsResponse200CacheControl,
2999
4705
  ),
3000
4706
  );
3001
4707
  }
3002
- export function updateDatapoint2DatasetsCacheControlFromJSON(
4708
+ export function updateDatapoint2DatasetsResponse200CacheControlFromJSON(
3003
4709
  jsonString: string,
3004
- ): SafeParseResult<UpdateDatapoint2DatasetsCacheControl, SDKValidationError> {
4710
+ ): SafeParseResult<
4711
+ UpdateDatapoint2DatasetsResponse200CacheControl,
4712
+ SDKValidationError
4713
+ > {
3005
4714
  return safeParse(
3006
4715
  jsonString,
3007
4716
  (x) =>
3008
- UpdateDatapoint2DatasetsCacheControl$inboundSchema.parse(JSON.parse(x)),
3009
- `Failed to parse 'UpdateDatapoint2DatasetsCacheControl' from JSON`,
4717
+ UpdateDatapoint2DatasetsResponse200CacheControl$inboundSchema.parse(
4718
+ JSON.parse(x),
4719
+ ),
4720
+ `Failed to parse 'UpdateDatapoint2DatasetsResponse200CacheControl' from JSON`,
3010
4721
  );
3011
4722
  }
3012
4723
 
@@ -3018,7 +4729,7 @@ export const UpdateDatapoint2Datasets4$inboundSchema: z.ZodType<
3018
4729
  > = z.object({
3019
4730
  type: z.literal("file"),
3020
4731
  cache_control: z.lazy(() =>
3021
- UpdateDatapoint2DatasetsCacheControl$inboundSchema
4732
+ UpdateDatapoint2DatasetsResponse200CacheControl$inboundSchema
3022
4733
  ).optional(),
3023
4734
  file: components.FileContentPartSchema$inboundSchema,
3024
4735
  }).transform((v) => {
@@ -3029,7 +4740,9 @@ export const UpdateDatapoint2Datasets4$inboundSchema: z.ZodType<
3029
4740
  /** @internal */
3030
4741
  export type UpdateDatapoint2Datasets4$Outbound = {
3031
4742
  type: "file";
3032
- cache_control?: UpdateDatapoint2DatasetsCacheControl$Outbound | undefined;
4743
+ cache_control?:
4744
+ | UpdateDatapoint2DatasetsResponse200CacheControl$Outbound
4745
+ | undefined;
3033
4746
  file: components.FileContentPartSchema$Outbound;
3034
4747
  };
3035
4748
 
@@ -3041,7 +4754,7 @@ export const UpdateDatapoint2Datasets4$outboundSchema: z.ZodType<
3041
4754
  > = z.object({
3042
4755
  type: z.literal("file"),
3043
4756
  cacheControl: z.lazy(() =>
3044
- UpdateDatapoint2DatasetsCacheControl$outboundSchema
4757
+ UpdateDatapoint2DatasetsResponse200CacheControl$outboundSchema
3045
4758
  ).optional(),
3046
4759
  file: components.FileContentPartSchema$outboundSchema,
3047
4760
  }).transform((v) => {
@@ -3068,62 +4781,197 @@ export function updateDatapoint2Datasets4FromJSON(
3068
4781
  }
3069
4782
 
3070
4783
  /** @internal */
3071
- export const UpdateDatapointContentDatasetsResponse2$inboundSchema: z.ZodType<
3072
- UpdateDatapointContentDatasetsResponse2,
3073
- z.ZodTypeDef,
3074
- unknown
3075
- > = z.union([
3076
- components.TextContentPartSchema$inboundSchema.and(
3077
- z.object({ type: z.literal("text") }),
3078
- ),
3079
- components.ImageContentPartSchema$inboundSchema,
3080
- components.AudioContentPartSchema$inboundSchema,
3081
- z.lazy(() => UpdateDatapoint2Datasets4$inboundSchema),
3082
- ]);
4784
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType$inboundSchema:
4785
+ z.ZodNativeEnum<
4786
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType
4787
+ > = z.nativeEnum(
4788
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType,
4789
+ );
3083
4790
  /** @internal */
3084
- export type UpdateDatapointContentDatasetsResponse2$Outbound =
3085
- | (components.TextContentPartSchema$Outbound & { type: "text" })
3086
- | components.ImageContentPartSchema$Outbound
3087
- | components.AudioContentPartSchema$Outbound
3088
- | UpdateDatapoint2Datasets4$Outbound;
4791
+ export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType$outboundSchema:
4792
+ z.ZodNativeEnum<
4793
+ typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType
4794
+ > =
4795
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType$inboundSchema;
3089
4796
 
3090
4797
  /** @internal */
3091
- export const UpdateDatapointContentDatasetsResponse2$outboundSchema: z.ZodType<
3092
- UpdateDatapointContentDatasetsResponse2$Outbound,
3093
- z.ZodTypeDef,
3094
- UpdateDatapointContentDatasetsResponse2
3095
- > = z.union([
3096
- components.TextContentPartSchema$outboundSchema.and(
3097
- z.object({ type: z.literal("text") }),
3098
- ),
3099
- components.ImageContentPartSchema$outboundSchema,
3100
- components.AudioContentPartSchema$outboundSchema,
3101
- z.lazy(() => UpdateDatapoint2Datasets4$outboundSchema),
3102
- ]);
4798
+ export const UpdateDatapoint2DatasetsResponseTtl$inboundSchema: z.ZodNativeEnum<
4799
+ typeof UpdateDatapoint2DatasetsResponseTtl
4800
+ > = z.nativeEnum(UpdateDatapoint2DatasetsResponseTtl);
4801
+ /** @internal */
4802
+ export const UpdateDatapoint2DatasetsResponseTtl$outboundSchema:
4803
+ z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsResponseTtl> =
4804
+ UpdateDatapoint2DatasetsResponseTtl$inboundSchema;
3103
4805
 
3104
- export function updateDatapointContentDatasetsResponse2ToJSON(
3105
- updateDatapointContentDatasetsResponse2:
3106
- UpdateDatapointContentDatasetsResponse2,
4806
+ /** @internal */
4807
+ export const UpdateDatapoint2DatasetsResponseCacheControl$inboundSchema:
4808
+ z.ZodType<
4809
+ UpdateDatapoint2DatasetsResponseCacheControl,
4810
+ z.ZodTypeDef,
4811
+ unknown
4812
+ > = z.object({
4813
+ type:
4814
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType$inboundSchema,
4815
+ ttl: UpdateDatapoint2DatasetsResponseTtl$inboundSchema.default("5m"),
4816
+ });
4817
+ /** @internal */
4818
+ export type UpdateDatapoint2DatasetsResponseCacheControl$Outbound = {
4819
+ type: string;
4820
+ ttl: string;
4821
+ };
4822
+
4823
+ /** @internal */
4824
+ export const UpdateDatapoint2DatasetsResponseCacheControl$outboundSchema:
4825
+ z.ZodType<
4826
+ UpdateDatapoint2DatasetsResponseCacheControl$Outbound,
4827
+ z.ZodTypeDef,
4828
+ UpdateDatapoint2DatasetsResponseCacheControl
4829
+ > = z.object({
4830
+ type:
4831
+ UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType$outboundSchema,
4832
+ ttl: UpdateDatapoint2DatasetsResponseTtl$outboundSchema.default("5m"),
4833
+ });
4834
+
4835
+ export function updateDatapoint2DatasetsResponseCacheControlToJSON(
4836
+ updateDatapoint2DatasetsResponseCacheControl:
4837
+ UpdateDatapoint2DatasetsResponseCacheControl,
3107
4838
  ): string {
3108
4839
  return JSON.stringify(
3109
- UpdateDatapointContentDatasetsResponse2$outboundSchema.parse(
3110
- updateDatapointContentDatasetsResponse2,
4840
+ UpdateDatapoint2DatasetsResponseCacheControl$outboundSchema.parse(
4841
+ updateDatapoint2DatasetsResponseCacheControl,
3111
4842
  ),
3112
4843
  );
3113
4844
  }
3114
- export function updateDatapointContentDatasetsResponse2FromJSON(
4845
+ export function updateDatapoint2DatasetsResponseCacheControlFromJSON(
3115
4846
  jsonString: string,
3116
4847
  ): SafeParseResult<
3117
- UpdateDatapointContentDatasetsResponse2,
4848
+ UpdateDatapoint2DatasetsResponseCacheControl,
3118
4849
  SDKValidationError
3119
4850
  > {
3120
4851
  return safeParse(
3121
4852
  jsonString,
3122
4853
  (x) =>
3123
- UpdateDatapointContentDatasetsResponse2$inboundSchema.parse(
4854
+ UpdateDatapoint2DatasetsResponseCacheControl$inboundSchema.parse(
3124
4855
  JSON.parse(x),
3125
4856
  ),
3126
- `Failed to parse 'UpdateDatapointContentDatasetsResponse2' from JSON`,
4857
+ `Failed to parse 'UpdateDatapoint2DatasetsResponseCacheControl' from JSON`,
4858
+ );
4859
+ }
4860
+
4861
+ /** @internal */
4862
+ export const UpdateDatapoint2DatasetsResponse1$inboundSchema: z.ZodType<
4863
+ UpdateDatapoint2DatasetsResponse1,
4864
+ z.ZodTypeDef,
4865
+ unknown
4866
+ > = z.object({
4867
+ type: z.literal("text"),
4868
+ text: z.string(),
4869
+ cache_control: z.lazy(() =>
4870
+ UpdateDatapoint2DatasetsResponseCacheControl$inboundSchema
4871
+ ).optional(),
4872
+ }).transform((v) => {
4873
+ return remap$(v, {
4874
+ "cache_control": "cacheControl",
4875
+ });
4876
+ });
4877
+ /** @internal */
4878
+ export type UpdateDatapoint2DatasetsResponse1$Outbound = {
4879
+ type: "text";
4880
+ text: string;
4881
+ cache_control?:
4882
+ | UpdateDatapoint2DatasetsResponseCacheControl$Outbound
4883
+ | undefined;
4884
+ };
4885
+
4886
+ /** @internal */
4887
+ export const UpdateDatapoint2DatasetsResponse1$outboundSchema: z.ZodType<
4888
+ UpdateDatapoint2DatasetsResponse1$Outbound,
4889
+ z.ZodTypeDef,
4890
+ UpdateDatapoint2DatasetsResponse1
4891
+ > = z.object({
4892
+ type: z.literal("text"),
4893
+ text: z.string(),
4894
+ cacheControl: z.lazy(() =>
4895
+ UpdateDatapoint2DatasetsResponseCacheControl$outboundSchema
4896
+ ).optional(),
4897
+ }).transform((v) => {
4898
+ return remap$(v, {
4899
+ cacheControl: "cache_control",
4900
+ });
4901
+ });
4902
+
4903
+ export function updateDatapoint2DatasetsResponse1ToJSON(
4904
+ updateDatapoint2DatasetsResponse1: UpdateDatapoint2DatasetsResponse1,
4905
+ ): string {
4906
+ return JSON.stringify(
4907
+ UpdateDatapoint2DatasetsResponse1$outboundSchema.parse(
4908
+ updateDatapoint2DatasetsResponse1,
4909
+ ),
4910
+ );
4911
+ }
4912
+ export function updateDatapoint2DatasetsResponse1FromJSON(
4913
+ jsonString: string,
4914
+ ): SafeParseResult<UpdateDatapoint2DatasetsResponse1, SDKValidationError> {
4915
+ return safeParse(
4916
+ jsonString,
4917
+ (x) => UpdateDatapoint2DatasetsResponse1$inboundSchema.parse(JSON.parse(x)),
4918
+ `Failed to parse 'UpdateDatapoint2DatasetsResponse1' from JSON`,
4919
+ );
4920
+ }
4921
+
4922
+ /** @internal */
4923
+ export const UpdateDatapointContentDatasetsResponse200ApplicationJson2$inboundSchema:
4924
+ z.ZodType<
4925
+ UpdateDatapointContentDatasetsResponse200ApplicationJson2,
4926
+ z.ZodTypeDef,
4927
+ unknown
4928
+ > = z.union([
4929
+ z.lazy(() => UpdateDatapoint2DatasetsResponse1$inboundSchema),
4930
+ components.ImageContentPartSchema$inboundSchema,
4931
+ components.AudioContentPartSchema$inboundSchema,
4932
+ z.lazy(() => UpdateDatapoint2Datasets4$inboundSchema),
4933
+ ]);
4934
+ /** @internal */
4935
+ export type UpdateDatapointContentDatasetsResponse200ApplicationJson2$Outbound =
4936
+ | UpdateDatapoint2DatasetsResponse1$Outbound
4937
+ | components.ImageContentPartSchema$Outbound
4938
+ | components.AudioContentPartSchema$Outbound
4939
+ | UpdateDatapoint2Datasets4$Outbound;
4940
+
4941
+ /** @internal */
4942
+ export const UpdateDatapointContentDatasetsResponse200ApplicationJson2$outboundSchema:
4943
+ z.ZodType<
4944
+ UpdateDatapointContentDatasetsResponse200ApplicationJson2$Outbound,
4945
+ z.ZodTypeDef,
4946
+ UpdateDatapointContentDatasetsResponse200ApplicationJson2
4947
+ > = z.union([
4948
+ z.lazy(() => UpdateDatapoint2DatasetsResponse1$outboundSchema),
4949
+ components.ImageContentPartSchema$outboundSchema,
4950
+ components.AudioContentPartSchema$outboundSchema,
4951
+ z.lazy(() => UpdateDatapoint2Datasets4$outboundSchema),
4952
+ ]);
4953
+
4954
+ export function updateDatapointContentDatasetsResponse200ApplicationJSON2ToJSON(
4955
+ updateDatapointContentDatasetsResponse200ApplicationJson2:
4956
+ UpdateDatapointContentDatasetsResponse200ApplicationJson2,
4957
+ ): string {
4958
+ return JSON.stringify(
4959
+ UpdateDatapointContentDatasetsResponse200ApplicationJson2$outboundSchema
4960
+ .parse(updateDatapointContentDatasetsResponse200ApplicationJson2),
4961
+ );
4962
+ }
4963
+ export function updateDatapointContentDatasetsResponse200ApplicationJSON2FromJSON(
4964
+ jsonString: string,
4965
+ ): SafeParseResult<
4966
+ UpdateDatapointContentDatasetsResponse200ApplicationJson2,
4967
+ SDKValidationError
4968
+ > {
4969
+ return safeParse(
4970
+ jsonString,
4971
+ (x) =>
4972
+ UpdateDatapointContentDatasetsResponse200ApplicationJson2$inboundSchema
4973
+ .parse(JSON.parse(x)),
4974
+ `Failed to parse 'UpdateDatapointContentDatasetsResponse200ApplicationJson2' from JSON`,
3127
4975
  );
3128
4976
  }
3129
4977
 
@@ -3135,22 +4983,18 @@ export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent$in
3135
4983
  unknown
3136
4984
  > = z.union([
3137
4985
  z.string(),
3138
- z.array(
3139
- z.union([
3140
- components.TextContentPartSchema$inboundSchema.and(
3141
- z.object({ type: z.literal("text") }),
3142
- ),
3143
- components.ImageContentPartSchema$inboundSchema,
3144
- components.AudioContentPartSchema$inboundSchema,
3145
- z.lazy(() => UpdateDatapoint2Datasets4$inboundSchema),
3146
- ]),
3147
- ),
4986
+ z.array(z.union([
4987
+ z.lazy(() => UpdateDatapoint2DatasetsResponse1$inboundSchema),
4988
+ components.ImageContentPartSchema$inboundSchema,
4989
+ components.AudioContentPartSchema$inboundSchema,
4990
+ z.lazy(() => UpdateDatapoint2Datasets4$inboundSchema),
4991
+ ])),
3148
4992
  ]);
3149
4993
  /** @internal */
3150
4994
  export type UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent$Outbound =
3151
4995
  | string
3152
4996
  | Array<
3153
- | (components.TextContentPartSchema$Outbound & { type: "text" })
4997
+ | UpdateDatapoint2DatasetsResponse1$Outbound
3154
4998
  | components.ImageContentPartSchema$Outbound
3155
4999
  | components.AudioContentPartSchema$Outbound
3156
5000
  | UpdateDatapoint2Datasets4$Outbound
@@ -3164,16 +5008,12 @@ export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent$ou
3164
5008
  UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent
3165
5009
  > = z.union([
3166
5010
  z.string(),
3167
- z.array(
3168
- z.union([
3169
- components.TextContentPartSchema$outboundSchema.and(
3170
- z.object({ type: z.literal("text") }),
3171
- ),
3172
- components.ImageContentPartSchema$outboundSchema,
3173
- components.AudioContentPartSchema$outboundSchema,
3174
- z.lazy(() => UpdateDatapoint2Datasets4$outboundSchema),
3175
- ]),
3176
- ),
5011
+ z.array(z.union([
5012
+ z.lazy(() => UpdateDatapoint2DatasetsResponse1$outboundSchema),
5013
+ components.ImageContentPartSchema$outboundSchema,
5014
+ components.AudioContentPartSchema$outboundSchema,
5015
+ z.lazy(() => UpdateDatapoint2Datasets4$outboundSchema),
5016
+ ])),
3177
5017
  ]);
3178
5018
 
3179
5019
  export function updateDatapointMessagesDatasetsResponse200ApplicationJSONContentToJSON(
@@ -3208,16 +5048,12 @@ export const UpdateDatapointMessagesDatasetsUserMessage$inboundSchema:
3208
5048
  name: z.string().optional(),
3209
5049
  content: z.union([
3210
5050
  z.string(),
3211
- z.array(
3212
- z.union([
3213
- components.TextContentPartSchema$inboundSchema.and(
3214
- z.object({ type: z.literal("text") }),
3215
- ),
3216
- components.ImageContentPartSchema$inboundSchema,
3217
- components.AudioContentPartSchema$inboundSchema,
3218
- z.lazy(() => UpdateDatapoint2Datasets4$inboundSchema),
3219
- ]),
3220
- ),
5051
+ z.array(z.union([
5052
+ z.lazy(() => UpdateDatapoint2DatasetsResponse1$inboundSchema),
5053
+ components.ImageContentPartSchema$inboundSchema,
5054
+ components.AudioContentPartSchema$inboundSchema,
5055
+ z.lazy(() => UpdateDatapoint2Datasets4$inboundSchema),
5056
+ ])),
3221
5057
  ]),
3222
5058
  });
3223
5059
  /** @internal */
@@ -3227,7 +5063,7 @@ export type UpdateDatapointMessagesDatasetsUserMessage$Outbound = {
3227
5063
  content:
3228
5064
  | string
3229
5065
  | Array<
3230
- | (components.TextContentPartSchema$Outbound & { type: "text" })
5066
+ | UpdateDatapoint2DatasetsResponse1$Outbound
3231
5067
  | components.ImageContentPartSchema$Outbound
3232
5068
  | components.AudioContentPartSchema$Outbound
3233
5069
  | UpdateDatapoint2Datasets4$Outbound
@@ -3245,16 +5081,12 @@ export const UpdateDatapointMessagesDatasetsUserMessage$outboundSchema:
3245
5081
  name: z.string().optional(),
3246
5082
  content: z.union([
3247
5083
  z.string(),
3248
- z.array(
3249
- z.union([
3250
- components.TextContentPartSchema$outboundSchema.and(
3251
- z.object({ type: z.literal("text") }),
3252
- ),
3253
- components.ImageContentPartSchema$outboundSchema,
3254
- components.AudioContentPartSchema$outboundSchema,
3255
- z.lazy(() => UpdateDatapoint2Datasets4$outboundSchema),
3256
- ]),
3257
- ),
5084
+ z.array(z.union([
5085
+ z.lazy(() => UpdateDatapoint2DatasetsResponse1$outboundSchema),
5086
+ components.ImageContentPartSchema$outboundSchema,
5087
+ components.AudioContentPartSchema$outboundSchema,
5088
+ z.lazy(() => UpdateDatapoint2Datasets4$outboundSchema),
5089
+ ])),
3258
5090
  ]),
3259
5091
  });
3260
5092
 
@@ -3284,6 +5116,164 @@ export function updateDatapointMessagesDatasetsUserMessageFromJSON(
3284
5116
  );
3285
5117
  }
3286
5118
 
5119
+ /** @internal */
5120
+ export const UpdateDatapointContentDatasetsResponse200Type$inboundSchema:
5121
+ z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsResponse200Type> = z
5122
+ .nativeEnum(UpdateDatapointContentDatasetsResponse200Type);
5123
+ /** @internal */
5124
+ export const UpdateDatapointContentDatasetsResponse200Type$outboundSchema:
5125
+ z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsResponse200Type> =
5126
+ UpdateDatapointContentDatasetsResponse200Type$inboundSchema;
5127
+
5128
+ /** @internal */
5129
+ export const UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema:
5130
+ z.ZodNativeEnum<
5131
+ typeof UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType
5132
+ > = z.nativeEnum(
5133
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType,
5134
+ );
5135
+ /** @internal */
5136
+ export const UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema:
5137
+ z.ZodNativeEnum<
5138
+ typeof UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType
5139
+ > =
5140
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema;
5141
+
5142
+ /** @internal */
5143
+ export const UpdateDatapointContentDatasetsResponse200Ttl$inboundSchema:
5144
+ z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsResponse200Ttl> = z
5145
+ .nativeEnum(UpdateDatapointContentDatasetsResponse200Ttl);
5146
+ /** @internal */
5147
+ export const UpdateDatapointContentDatasetsResponse200Ttl$outboundSchema:
5148
+ z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsResponse200Ttl> =
5149
+ UpdateDatapointContentDatasetsResponse200Ttl$inboundSchema;
5150
+
5151
+ /** @internal */
5152
+ export const UpdateDatapointContentDatasetsResponse200CacheControl$inboundSchema:
5153
+ z.ZodType<
5154
+ UpdateDatapointContentDatasetsResponse200CacheControl,
5155
+ z.ZodTypeDef,
5156
+ unknown
5157
+ > = z.object({
5158
+ type:
5159
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema,
5160
+ ttl: UpdateDatapointContentDatasetsResponse200Ttl$inboundSchema.default(
5161
+ "5m",
5162
+ ),
5163
+ });
5164
+ /** @internal */
5165
+ export type UpdateDatapointContentDatasetsResponse200CacheControl$Outbound = {
5166
+ type: string;
5167
+ ttl: string;
5168
+ };
5169
+
5170
+ /** @internal */
5171
+ export const UpdateDatapointContentDatasetsResponse200CacheControl$outboundSchema:
5172
+ z.ZodType<
5173
+ UpdateDatapointContentDatasetsResponse200CacheControl$Outbound,
5174
+ z.ZodTypeDef,
5175
+ UpdateDatapointContentDatasetsResponse200CacheControl
5176
+ > = z.object({
5177
+ type:
5178
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema,
5179
+ ttl: UpdateDatapointContentDatasetsResponse200Ttl$outboundSchema.default(
5180
+ "5m",
5181
+ ),
5182
+ });
5183
+
5184
+ export function updateDatapointContentDatasetsResponse200CacheControlToJSON(
5185
+ updateDatapointContentDatasetsResponse200CacheControl:
5186
+ UpdateDatapointContentDatasetsResponse200CacheControl,
5187
+ ): string {
5188
+ return JSON.stringify(
5189
+ UpdateDatapointContentDatasetsResponse200CacheControl$outboundSchema.parse(
5190
+ updateDatapointContentDatasetsResponse200CacheControl,
5191
+ ),
5192
+ );
5193
+ }
5194
+ export function updateDatapointContentDatasetsResponse200CacheControlFromJSON(
5195
+ jsonString: string,
5196
+ ): SafeParseResult<
5197
+ UpdateDatapointContentDatasetsResponse200CacheControl,
5198
+ SDKValidationError
5199
+ > {
5200
+ return safeParse(
5201
+ jsonString,
5202
+ (x) =>
5203
+ UpdateDatapointContentDatasetsResponse200CacheControl$inboundSchema.parse(
5204
+ JSON.parse(x),
5205
+ ),
5206
+ `Failed to parse 'UpdateDatapointContentDatasetsResponse200CacheControl' from JSON`,
5207
+ );
5208
+ }
5209
+
5210
+ /** @internal */
5211
+ export const UpdateDatapointContentDatasetsResponse2002$inboundSchema:
5212
+ z.ZodType<UpdateDatapointContentDatasetsResponse2002, z.ZodTypeDef, unknown> =
5213
+ z.object({
5214
+ type: UpdateDatapointContentDatasetsResponse200Type$inboundSchema,
5215
+ text: z.string(),
5216
+ cache_control: z.lazy(() =>
5217
+ UpdateDatapointContentDatasetsResponse200CacheControl$inboundSchema
5218
+ ).optional(),
5219
+ }).transform((v) => {
5220
+ return remap$(v, {
5221
+ "cache_control": "cacheControl",
5222
+ });
5223
+ });
5224
+ /** @internal */
5225
+ export type UpdateDatapointContentDatasetsResponse2002$Outbound = {
5226
+ type: string;
5227
+ text: string;
5228
+ cache_control?:
5229
+ | UpdateDatapointContentDatasetsResponse200CacheControl$Outbound
5230
+ | undefined;
5231
+ };
5232
+
5233
+ /** @internal */
5234
+ export const UpdateDatapointContentDatasetsResponse2002$outboundSchema:
5235
+ z.ZodType<
5236
+ UpdateDatapointContentDatasetsResponse2002$Outbound,
5237
+ z.ZodTypeDef,
5238
+ UpdateDatapointContentDatasetsResponse2002
5239
+ > = z.object({
5240
+ type: UpdateDatapointContentDatasetsResponse200Type$outboundSchema,
5241
+ text: z.string(),
5242
+ cacheControl: z.lazy(() =>
5243
+ UpdateDatapointContentDatasetsResponse200CacheControl$outboundSchema
5244
+ ).optional(),
5245
+ }).transform((v) => {
5246
+ return remap$(v, {
5247
+ cacheControl: "cache_control",
5248
+ });
5249
+ });
5250
+
5251
+ export function updateDatapointContentDatasetsResponse2002ToJSON(
5252
+ updateDatapointContentDatasetsResponse2002:
5253
+ UpdateDatapointContentDatasetsResponse2002,
5254
+ ): string {
5255
+ return JSON.stringify(
5256
+ UpdateDatapointContentDatasetsResponse2002$outboundSchema.parse(
5257
+ updateDatapointContentDatasetsResponse2002,
5258
+ ),
5259
+ );
5260
+ }
5261
+ export function updateDatapointContentDatasetsResponse2002FromJSON(
5262
+ jsonString: string,
5263
+ ): SafeParseResult<
5264
+ UpdateDatapointContentDatasetsResponse2002,
5265
+ SDKValidationError
5266
+ > {
5267
+ return safeParse(
5268
+ jsonString,
5269
+ (x) =>
5270
+ UpdateDatapointContentDatasetsResponse2002$inboundSchema.parse(
5271
+ JSON.parse(x),
5272
+ ),
5273
+ `Failed to parse 'UpdateDatapointContentDatasetsResponse2002' from JSON`,
5274
+ );
5275
+ }
5276
+
3287
5277
  /** @internal */
3288
5278
  export const UpdateDatapointMessagesDatasetsResponse200Content$inboundSchema:
3289
5279
  z.ZodType<
@@ -3292,12 +5282,14 @@ export const UpdateDatapointMessagesDatasetsResponse200Content$inboundSchema:
3292
5282
  unknown
3293
5283
  > = z.union([
3294
5284
  z.string(),
3295
- z.array(components.TextContentPartSchema$inboundSchema),
5285
+ z.array(
5286
+ z.lazy(() => UpdateDatapointContentDatasetsResponse2002$inboundSchema),
5287
+ ),
3296
5288
  ]);
3297
5289
  /** @internal */
3298
5290
  export type UpdateDatapointMessagesDatasetsResponse200Content$Outbound =
3299
5291
  | string
3300
- | Array<components.TextContentPartSchema$Outbound>;
5292
+ | Array<UpdateDatapointContentDatasetsResponse2002$Outbound>;
3301
5293
 
3302
5294
  /** @internal */
3303
5295
  export const UpdateDatapointMessagesDatasetsResponse200Content$outboundSchema:
@@ -3307,7 +5299,9 @@ export const UpdateDatapointMessagesDatasetsResponse200Content$outboundSchema:
3307
5299
  UpdateDatapointMessagesDatasetsResponse200Content
3308
5300
  > = z.union([
3309
5301
  z.string(),
3310
- z.array(components.TextContentPartSchema$outboundSchema),
5302
+ z.array(
5303
+ z.lazy(() => UpdateDatapointContentDatasetsResponse2002$outboundSchema),
5304
+ ),
3311
5305
  ]);
3312
5306
 
3313
5307
  export function updateDatapointMessagesDatasetsResponse200ContentToJSON(
@@ -3346,14 +5340,16 @@ export const UpdateDatapointMessagesDatasetsDeveloperMessage$inboundSchema:
3346
5340
  role: z.literal("developer"),
3347
5341
  content: z.union([
3348
5342
  z.string(),
3349
- z.array(components.TextContentPartSchema$inboundSchema),
5343
+ z.array(
5344
+ z.lazy(() => UpdateDatapointContentDatasetsResponse2002$inboundSchema),
5345
+ ),
3350
5346
  ]),
3351
5347
  name: z.string().optional(),
3352
5348
  });
3353
5349
  /** @internal */
3354
5350
  export type UpdateDatapointMessagesDatasetsDeveloperMessage$Outbound = {
3355
5351
  role: "developer";
3356
- content: string | Array<components.TextContentPartSchema$Outbound>;
5352
+ content: string | Array<UpdateDatapointContentDatasetsResponse2002$Outbound>;
3357
5353
  name?: string | undefined;
3358
5354
  };
3359
5355
 
@@ -3367,7 +5363,9 @@ export const UpdateDatapointMessagesDatasetsDeveloperMessage$outboundSchema:
3367
5363
  role: z.literal("developer"),
3368
5364
  content: z.union([
3369
5365
  z.string(),
3370
- z.array(components.TextContentPartSchema$outboundSchema),
5366
+ z.array(
5367
+ z.lazy(() => UpdateDatapointContentDatasetsResponse2002$outboundSchema),
5368
+ ),
3371
5369
  ]),
3372
5370
  name: z.string().optional(),
3373
5371
  });
@@ -3398,6 +5396,161 @@ export function updateDatapointMessagesDatasetsDeveloperMessageFromJSON(
3398
5396
  );
3399
5397
  }
3400
5398
 
5399
+ /** @internal */
5400
+ export const UpdateDatapointContentDatasetsResponseType$inboundSchema:
5401
+ z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsResponseType> = z
5402
+ .nativeEnum(UpdateDatapointContentDatasetsResponseType);
5403
+ /** @internal */
5404
+ export const UpdateDatapointContentDatasetsResponseType$outboundSchema:
5405
+ z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsResponseType> =
5406
+ UpdateDatapointContentDatasetsResponseType$inboundSchema;
5407
+
5408
+ /** @internal */
5409
+ export const UpdateDatapointContentDatasetsResponse200ApplicationJSONType$inboundSchema:
5410
+ z.ZodNativeEnum<
5411
+ typeof UpdateDatapointContentDatasetsResponse200ApplicationJSONType
5412
+ > = z.nativeEnum(
5413
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONType,
5414
+ );
5415
+ /** @internal */
5416
+ export const UpdateDatapointContentDatasetsResponse200ApplicationJSONType$outboundSchema:
5417
+ z.ZodNativeEnum<
5418
+ typeof UpdateDatapointContentDatasetsResponse200ApplicationJSONType
5419
+ > =
5420
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONType$inboundSchema;
5421
+
5422
+ /** @internal */
5423
+ export const UpdateDatapointContentDatasetsResponseTtl$inboundSchema:
5424
+ z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsResponseTtl> = z
5425
+ .nativeEnum(UpdateDatapointContentDatasetsResponseTtl);
5426
+ /** @internal */
5427
+ export const UpdateDatapointContentDatasetsResponseTtl$outboundSchema:
5428
+ z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsResponseTtl> =
5429
+ UpdateDatapointContentDatasetsResponseTtl$inboundSchema;
5430
+
5431
+ /** @internal */
5432
+ export const UpdateDatapointContentDatasetsResponseCacheControl$inboundSchema:
5433
+ z.ZodType<
5434
+ UpdateDatapointContentDatasetsResponseCacheControl,
5435
+ z.ZodTypeDef,
5436
+ unknown
5437
+ > = z.object({
5438
+ type:
5439
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONType$inboundSchema,
5440
+ ttl: UpdateDatapointContentDatasetsResponseTtl$inboundSchema.default("5m"),
5441
+ });
5442
+ /** @internal */
5443
+ export type UpdateDatapointContentDatasetsResponseCacheControl$Outbound = {
5444
+ type: string;
5445
+ ttl: string;
5446
+ };
5447
+
5448
+ /** @internal */
5449
+ export const UpdateDatapointContentDatasetsResponseCacheControl$outboundSchema:
5450
+ z.ZodType<
5451
+ UpdateDatapointContentDatasetsResponseCacheControl$Outbound,
5452
+ z.ZodTypeDef,
5453
+ UpdateDatapointContentDatasetsResponseCacheControl
5454
+ > = z.object({
5455
+ type:
5456
+ UpdateDatapointContentDatasetsResponse200ApplicationJSONType$outboundSchema,
5457
+ ttl: UpdateDatapointContentDatasetsResponseTtl$outboundSchema.default("5m"),
5458
+ });
5459
+
5460
+ export function updateDatapointContentDatasetsResponseCacheControlToJSON(
5461
+ updateDatapointContentDatasetsResponseCacheControl:
5462
+ UpdateDatapointContentDatasetsResponseCacheControl,
5463
+ ): string {
5464
+ return JSON.stringify(
5465
+ UpdateDatapointContentDatasetsResponseCacheControl$outboundSchema.parse(
5466
+ updateDatapointContentDatasetsResponseCacheControl,
5467
+ ),
5468
+ );
5469
+ }
5470
+ export function updateDatapointContentDatasetsResponseCacheControlFromJSON(
5471
+ jsonString: string,
5472
+ ): SafeParseResult<
5473
+ UpdateDatapointContentDatasetsResponseCacheControl,
5474
+ SDKValidationError
5475
+ > {
5476
+ return safeParse(
5477
+ jsonString,
5478
+ (x) =>
5479
+ UpdateDatapointContentDatasetsResponseCacheControl$inboundSchema.parse(
5480
+ JSON.parse(x),
5481
+ ),
5482
+ `Failed to parse 'UpdateDatapointContentDatasetsResponseCacheControl' from JSON`,
5483
+ );
5484
+ }
5485
+
5486
+ /** @internal */
5487
+ export const UpdateDatapointContentDatasetsResponse2$inboundSchema: z.ZodType<
5488
+ UpdateDatapointContentDatasetsResponse2,
5489
+ z.ZodTypeDef,
5490
+ unknown
5491
+ > = z.object({
5492
+ type: UpdateDatapointContentDatasetsResponseType$inboundSchema,
5493
+ text: z.string(),
5494
+ cache_control: z.lazy(() =>
5495
+ UpdateDatapointContentDatasetsResponseCacheControl$inboundSchema
5496
+ ).optional(),
5497
+ }).transform((v) => {
5498
+ return remap$(v, {
5499
+ "cache_control": "cacheControl",
5500
+ });
5501
+ });
5502
+ /** @internal */
5503
+ export type UpdateDatapointContentDatasetsResponse2$Outbound = {
5504
+ type: string;
5505
+ text: string;
5506
+ cache_control?:
5507
+ | UpdateDatapointContentDatasetsResponseCacheControl$Outbound
5508
+ | undefined;
5509
+ };
5510
+
5511
+ /** @internal */
5512
+ export const UpdateDatapointContentDatasetsResponse2$outboundSchema: z.ZodType<
5513
+ UpdateDatapointContentDatasetsResponse2$Outbound,
5514
+ z.ZodTypeDef,
5515
+ UpdateDatapointContentDatasetsResponse2
5516
+ > = z.object({
5517
+ type: UpdateDatapointContentDatasetsResponseType$outboundSchema,
5518
+ text: z.string(),
5519
+ cacheControl: z.lazy(() =>
5520
+ UpdateDatapointContentDatasetsResponseCacheControl$outboundSchema
5521
+ ).optional(),
5522
+ }).transform((v) => {
5523
+ return remap$(v, {
5524
+ cacheControl: "cache_control",
5525
+ });
5526
+ });
5527
+
5528
+ export function updateDatapointContentDatasetsResponse2ToJSON(
5529
+ updateDatapointContentDatasetsResponse2:
5530
+ UpdateDatapointContentDatasetsResponse2,
5531
+ ): string {
5532
+ return JSON.stringify(
5533
+ UpdateDatapointContentDatasetsResponse2$outboundSchema.parse(
5534
+ updateDatapointContentDatasetsResponse2,
5535
+ ),
5536
+ );
5537
+ }
5538
+ export function updateDatapointContentDatasetsResponse2FromJSON(
5539
+ jsonString: string,
5540
+ ): SafeParseResult<
5541
+ UpdateDatapointContentDatasetsResponse2,
5542
+ SDKValidationError
5543
+ > {
5544
+ return safeParse(
5545
+ jsonString,
5546
+ (x) =>
5547
+ UpdateDatapointContentDatasetsResponse2$inboundSchema.parse(
5548
+ JSON.parse(x),
5549
+ ),
5550
+ `Failed to parse 'UpdateDatapointContentDatasetsResponse2' from JSON`,
5551
+ );
5552
+ }
5553
+
3401
5554
  /** @internal */
3402
5555
  export const UpdateDatapointMessagesDatasetsResponseContent$inboundSchema:
3403
5556
  z.ZodType<
@@ -3406,12 +5559,14 @@ export const UpdateDatapointMessagesDatasetsResponseContent$inboundSchema:
3406
5559
  unknown
3407
5560
  > = z.union([
3408
5561
  z.string(),
3409
- z.array(components.TextContentPartSchema$inboundSchema),
5562
+ z.array(
5563
+ z.lazy(() => UpdateDatapointContentDatasetsResponse2$inboundSchema),
5564
+ ),
3410
5565
  ]);
3411
5566
  /** @internal */
3412
5567
  export type UpdateDatapointMessagesDatasetsResponseContent$Outbound =
3413
5568
  | string
3414
- | Array<components.TextContentPartSchema$Outbound>;
5569
+ | Array<UpdateDatapointContentDatasetsResponse2$Outbound>;
3415
5570
 
3416
5571
  /** @internal */
3417
5572
  export const UpdateDatapointMessagesDatasetsResponseContent$outboundSchema:
@@ -3421,7 +5576,9 @@ export const UpdateDatapointMessagesDatasetsResponseContent$outboundSchema:
3421
5576
  UpdateDatapointMessagesDatasetsResponseContent
3422
5577
  > = z.union([
3423
5578
  z.string(),
3424
- z.array(components.TextContentPartSchema$outboundSchema),
5579
+ z.array(
5580
+ z.lazy(() => UpdateDatapointContentDatasetsResponse2$outboundSchema),
5581
+ ),
3425
5582
  ]);
3426
5583
 
3427
5584
  export function updateDatapointMessagesDatasetsResponseContentToJSON(
@@ -3460,14 +5617,16 @@ export const UpdateDatapointMessagesDatasetsSystemMessage$inboundSchema:
3460
5617
  role: z.literal("system"),
3461
5618
  content: z.union([
3462
5619
  z.string(),
3463
- z.array(components.TextContentPartSchema$inboundSchema),
5620
+ z.array(
5621
+ z.lazy(() => UpdateDatapointContentDatasetsResponse2$inboundSchema),
5622
+ ),
3464
5623
  ]),
3465
5624
  name: z.string().optional(),
3466
5625
  });
3467
5626
  /** @internal */
3468
5627
  export type UpdateDatapointMessagesDatasetsSystemMessage$Outbound = {
3469
5628
  role: "system";
3470
- content: string | Array<components.TextContentPartSchema$Outbound>;
5629
+ content: string | Array<UpdateDatapointContentDatasetsResponse2$Outbound>;
3471
5630
  name?: string | undefined;
3472
5631
  };
3473
5632
 
@@ -3481,7 +5640,9 @@ export const UpdateDatapointMessagesDatasetsSystemMessage$outboundSchema:
3481
5640
  role: z.literal("system"),
3482
5641
  content: z.union([
3483
5642
  z.string(),
3484
- z.array(components.TextContentPartSchema$outboundSchema),
5643
+ z.array(
5644
+ z.lazy(() => UpdateDatapointContentDatasetsResponse2$outboundSchema),
5645
+ ),
3485
5646
  ]),
3486
5647
  name: z.string().optional(),
3487
5648
  });
@@ -3598,7 +5759,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
3598
5759
  .default("orq"),
3599
5760
  reviewed_by_id: z.string(),
3600
5761
  reviewed_at: z.string().datetime({ offset: true }).default(
3601
- "2025-12-08T12:58:42.308Z",
5762
+ "2025-12-08T22:59:30.860Z",
3602
5763
  ).transform(v => new Date(v)),
3603
5764
  type: z.literal("string_array"),
3604
5765
  values: z.array(z.string()),
@@ -3635,7 +5796,7 @@ export const UpdateDatapointEvaluations3$outboundSchema: z.ZodType<
3635
5796
  source: UpdateDatapointEvaluationsDatasetsResponseSource$outboundSchema
3636
5797
  .default("orq"),
3637
5798
  reviewedById: z.string(),
3638
- reviewedAt: z.date().default(() => new Date("2025-12-08T12:58:42.308Z"))
5799
+ reviewedAt: z.date().default(() => new Date("2025-12-08T22:59:30.860Z"))
3639
5800
  .transform(v => v.toISOString()),
3640
5801
  type: z.literal("string_array"),
3641
5802
  values: z.array(z.string()),
@@ -3698,7 +5859,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
3698
5859
  source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
3699
5860
  reviewed_by_id: z.string(),
3700
5861
  reviewed_at: z.string().datetime({ offset: true }).default(
3701
- "2025-12-08T12:58:42.307Z",
5862
+ "2025-12-08T22:59:30.859Z",
3702
5863
  ).transform(v => new Date(v)),
3703
5864
  type: z.literal("number"),
3704
5865
  value: z.number(),
@@ -3736,7 +5897,7 @@ export const UpdateDatapointEvaluations2$outboundSchema: z.ZodType<
3736
5897
  "orq",
3737
5898
  ),
3738
5899
  reviewedById: z.string(),
3739
- reviewedAt: z.date().default(() => new Date("2025-12-08T12:58:42.307Z"))
5900
+ reviewedAt: z.date().default(() => new Date("2025-12-08T22:59:30.859Z"))
3740
5901
  .transform(v => v.toISOString()),
3741
5902
  type: z.literal("number"),
3742
5903
  value: z.number(),
@@ -3798,7 +5959,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
3798
5959
  source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
3799
5960
  reviewed_by_id: z.string(),
3800
5961
  reviewed_at: z.string().datetime({ offset: true }).default(
3801
- "2025-12-08T12:58:42.306Z",
5962
+ "2025-12-08T22:59:30.859Z",
3802
5963
  ).transform(v => new Date(v)),
3803
5964
  type: z.literal("string"),
3804
5965
  value: z.string(),
@@ -3833,7 +5994,7 @@ export const UpdateDatapointEvaluations1$outboundSchema: z.ZodType<
3833
5994
  humanReviewId: z.string(),
3834
5995
  source: UpdateDatapointEvaluationsSource$outboundSchema.default("orq"),
3835
5996
  reviewedById: z.string(),
3836
- reviewedAt: z.date().default(() => new Date("2025-12-08T12:58:42.306Z"))
5997
+ reviewedAt: z.date().default(() => new Date("2025-12-08T22:59:30.859Z"))
3837
5998
  .transform(v => v.toISOString()),
3838
5999
  type: z.literal("string"),
3839
6000
  value: z.string(),
@@ -3946,7 +6107,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
3946
6107
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
3947
6108
  .optional(),
3948
6109
  updated: z.string().datetime({ offset: true }).default(
3949
- "2025-12-08T12:58:30.471Z",
6110
+ "2025-12-08T22:59:16.300Z",
3950
6111
  ).transform(v => new Date(v)),
3951
6112
  }).transform((v) => {
3952
6113
  return remap$(v, {
@@ -4024,7 +6185,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
4024
6185
  createdById: z.string().optional(),
4025
6186
  updatedById: z.string().optional(),
4026
6187
  created: z.date().transform(v => v.toISOString()).optional(),
4027
- updated: z.date().default(() => new Date("2025-12-08T12:58:30.471Z"))
6188
+ updated: z.date().default(() => new Date("2025-12-08T22:59:16.300Z"))
4028
6189
  .transform(v => v.toISOString()),
4029
6190
  }).transform((v) => {
4030
6191
  return remap$(v, {