@orq-ai/node 4.11.0-rc.4 → 4.11.0-rc.6

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 (278) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/components/index.d.ts +23 -0
  5. package/models/components/index.d.ts.map +1 -1
  6. package/models/components/index.js +23 -0
  7. package/models/components/index.js.map +1 -1
  8. package/models/components/modelmetadata.d.ts +2 -0
  9. package/models/components/modelmetadata.d.ts.map +1 -1
  10. package/models/components/modelmetadata.js +4 -0
  11. package/models/components/modelmetadata.js.map +1 -1
  12. package/models/components/publicresponseresource.d.ts +105 -0
  13. package/models/components/publicresponseresource.d.ts.map +1 -0
  14. package/models/components/publicresponseresource.js +138 -0
  15. package/models/components/publicresponseresource.js.map +1 -0
  16. package/models/components/reasoning.d.ts +40 -2
  17. package/models/components/reasoning.d.ts.map +1 -1
  18. package/models/components/reasoning.js +26 -3
  19. package/models/components/reasoning.js.map +1 -1
  20. package/models/components/reasoningparam.d.ts +40 -2
  21. package/models/components/reasoningparam.d.ts.map +1 -1
  22. package/models/components/reasoningparam.js +28 -3
  23. package/models/components/reasoningparam.js.map +1 -1
  24. package/models/components/reasoningpart.js +1 -1
  25. package/models/components/responsecodeinterpretercodedeltastreamevent.d.ts +61 -0
  26. package/models/components/responsecodeinterpretercodedeltastreamevent.d.ts.map +1 -0
  27. package/models/components/responsecodeinterpretercodedeltastreamevent.js +89 -0
  28. package/models/components/responsecodeinterpretercodedeltastreamevent.js.map +1 -0
  29. package/models/components/responsecodeinterpretercodedonestreamevent.d.ts +61 -0
  30. package/models/components/responsecodeinterpretercodedonestreamevent.d.ts.map +1 -0
  31. package/models/components/responsecodeinterpretercodedonestreamevent.js +89 -0
  32. package/models/components/responsecodeinterpretercodedonestreamevent.js.map +1 -0
  33. package/models/components/responsecontentpartstreamevent.d.ts +81 -0
  34. package/models/components/responsecontentpartstreamevent.d.ts.map +1 -0
  35. package/models/components/responsecontentpartstreamevent.js +100 -0
  36. package/models/components/responsecontentpartstreamevent.js.map +1 -0
  37. package/models/components/responseerrorstreamevent.d.ts +51 -0
  38. package/models/components/responseerrorstreamevent.d.ts.map +1 -0
  39. package/models/components/responseerrorstreamevent.js +85 -0
  40. package/models/components/responseerrorstreamevent.js.map +1 -0
  41. package/models/components/responsefunctioncallargumentsdeltastreamevent.d.ts +65 -0
  42. package/models/components/responsefunctioncallargumentsdeltastreamevent.d.ts.map +1 -0
  43. package/models/components/responsefunctioncallargumentsdeltastreamevent.js +90 -0
  44. package/models/components/responsefunctioncallargumentsdeltastreamevent.js.map +1 -0
  45. package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts +61 -0
  46. package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts.map +1 -0
  47. package/models/components/responsefunctioncallargumentsdonestreamevent.js +89 -0
  48. package/models/components/responsefunctioncallargumentsdonestreamevent.js.map +1 -0
  49. package/models/components/responsehostedtoolcallstreamevent.d.ts +97 -0
  50. package/models/components/responsehostedtoolcallstreamevent.d.ts.map +1 -0
  51. package/models/components/responsehostedtoolcallstreamevent.js +123 -0
  52. package/models/components/responsehostedtoolcallstreamevent.js.map +1 -0
  53. package/models/components/responseimagegenerationpartialimagestreamevent.d.ts +65 -0
  54. package/models/components/responseimagegenerationpartialimagestreamevent.d.ts.map +1 -0
  55. package/models/components/responseimagegenerationpartialimagestreamevent.js +92 -0
  56. package/models/components/responseimagegenerationpartialimagestreamevent.js.map +1 -0
  57. package/models/components/responselifecyclestreamevent.d.ts +73 -0
  58. package/models/components/responselifecyclestreamevent.d.ts.map +1 -0
  59. package/models/components/responselifecyclestreamevent.js +103 -0
  60. package/models/components/responselifecyclestreamevent.js.map +1 -0
  61. package/models/components/responsemcpcallargumentsdeltastreamevent.d.ts +61 -0
  62. package/models/components/responsemcpcallargumentsdeltastreamevent.d.ts.map +1 -0
  63. package/models/components/responsemcpcallargumentsdeltastreamevent.js +89 -0
  64. package/models/components/responsemcpcallargumentsdeltastreamevent.js.map +1 -0
  65. package/models/components/responsemcpcallargumentsdonestreamevent.d.ts +61 -0
  66. package/models/components/responsemcpcallargumentsdonestreamevent.d.ts.map +1 -0
  67. package/models/components/responsemcpcallargumentsdonestreamevent.js +89 -0
  68. package/models/components/responsemcpcallargumentsdonestreamevent.js.map +1 -0
  69. package/models/components/responseoutputitemstreamevent.d.ts +73 -0
  70. package/models/components/responseoutputitemstreamevent.d.ts.map +1 -0
  71. package/models/components/responseoutputitemstreamevent.js +96 -0
  72. package/models/components/responseoutputitemstreamevent.js.map +1 -0
  73. package/models/components/responseoutputtextannotationaddedstreamevent.d.ts +71 -0
  74. package/models/components/responseoutputtextannotationaddedstreamevent.d.ts.map +1 -0
  75. package/models/components/responseoutputtextannotationaddedstreamevent.js +93 -0
  76. package/models/components/responseoutputtextannotationaddedstreamevent.js.map +1 -0
  77. package/models/components/responseoutputtextdeltastreamevent.d.ts +75 -0
  78. package/models/components/responseoutputtextdeltastreamevent.d.ts.map +1 -0
  79. package/models/components/responseoutputtextdeltastreamevent.js +92 -0
  80. package/models/components/responseoutputtextdeltastreamevent.js.map +1 -0
  81. package/models/components/responseoutputtextdonestreamevent.d.ts +71 -0
  82. package/models/components/responseoutputtextdonestreamevent.d.ts.map +1 -0
  83. package/models/components/responseoutputtextdonestreamevent.js +91 -0
  84. package/models/components/responseoutputtextdonestreamevent.js.map +1 -0
  85. package/models/components/responsereasoningdeltastreamevent.d.ts +83 -0
  86. package/models/components/responsereasoningdeltastreamevent.d.ts.map +1 -0
  87. package/models/components/responsereasoningdeltastreamevent.js +101 -0
  88. package/models/components/responsereasoningdeltastreamevent.js.map +1 -0
  89. package/models/components/responsereasoningdonestreamevent.d.ts +79 -0
  90. package/models/components/responsereasoningdonestreamevent.d.ts.map +1 -0
  91. package/models/components/responsereasoningdonestreamevent.js +100 -0
  92. package/models/components/responsereasoningdonestreamevent.js.map +1 -0
  93. package/models/components/responsereasoningsummarypartstreamevent.d.ts +81 -0
  94. package/models/components/responsereasoningsummarypartstreamevent.d.ts.map +1 -0
  95. package/models/components/responsereasoningsummarypartstreamevent.js +102 -0
  96. package/models/components/responsereasoningsummarypartstreamevent.js.map +1 -0
  97. package/models/components/responsereasoningsummarytextdeltastreamevent.d.ts +69 -0
  98. package/models/components/responsereasoningsummarytextdeltastreamevent.d.ts.map +1 -0
  99. package/models/components/responsereasoningsummarytextdeltastreamevent.js +92 -0
  100. package/models/components/responsereasoningsummarytextdeltastreamevent.js.map +1 -0
  101. package/models/components/responsereasoningsummarytextdonestreamevent.d.ts +65 -0
  102. package/models/components/responsereasoningsummarytextdonestreamevent.d.ts.map +1 -0
  103. package/models/components/responsereasoningsummarytextdonestreamevent.js +91 -0
  104. package/models/components/responsereasoningsummarytextdonestreamevent.js.map +1 -0
  105. package/models/components/responserefusaldeltastreamevent.d.ts +65 -0
  106. package/models/components/responserefusaldeltastreamevent.d.ts.map +1 -0
  107. package/models/components/responserefusaldeltastreamevent.js +90 -0
  108. package/models/components/responserefusaldeltastreamevent.js.map +1 -0
  109. package/models/components/responserefusaldonestreamevent.d.ts +65 -0
  110. package/models/components/responserefusaldonestreamevent.d.ts.map +1 -0
  111. package/models/components/responserefusaldonestreamevent.js +90 -0
  112. package/models/components/responserefusaldonestreamevent.js.map +1 -0
  113. package/models/operations/createagentrequest.d.ts +298 -4
  114. package/models/operations/createagentrequest.d.ts.map +1 -1
  115. package/models/operations/createagentrequest.js +163 -9
  116. package/models/operations/createagentrequest.js.map +1 -1
  117. package/models/operations/createchatcompletion.d.ts +81 -4
  118. package/models/operations/createchatcompletion.d.ts.map +1 -1
  119. package/models/operations/createchatcompletion.js +45 -7
  120. package/models/operations/createchatcompletion.js.map +1 -1
  121. package/models/operations/createdataset.js +1 -1
  122. package/models/operations/createdatasetitem.js +4 -4
  123. package/models/operations/createdatasource.js +1 -1
  124. package/models/operations/createeval.js +16 -16
  125. package/models/operations/createprompt.d.ts +225 -12
  126. package/models/operations/createprompt.d.ts.map +1 -1
  127. package/models/operations/createprompt.js +124 -13
  128. package/models/operations/createprompt.js.map +1 -1
  129. package/models/operations/createrouterresponse.d.ts +476 -61
  130. package/models/operations/createrouterresponse.d.ts.map +1 -1
  131. package/models/operations/createrouterresponse.js +332 -60
  132. package/models/operations/createrouterresponse.js.map +1 -1
  133. package/models/operations/createtool.js +6 -6
  134. package/models/operations/deploymentgetconfig.d.ts +70 -4
  135. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  136. package/models/operations/deploymentgetconfig.js +43 -8
  137. package/models/operations/deploymentgetconfig.js.map +1 -1
  138. package/models/operations/deployments.d.ts +74 -8
  139. package/models/operations/deployments.d.ts.map +1 -1
  140. package/models/operations/deployments.js +43 -8
  141. package/models/operations/deployments.js.map +1 -1
  142. package/models/operations/getallprompts.d.ts +140 -4
  143. package/models/operations/getallprompts.d.ts.map +1 -1
  144. package/models/operations/getallprompts.js +79 -6
  145. package/models/operations/getallprompts.js.map +1 -1
  146. package/models/operations/getalltools.js +6 -6
  147. package/models/operations/getevals.js +16 -16
  148. package/models/operations/getoneprompt.d.ts +140 -4
  149. package/models/operations/getoneprompt.d.ts.map +1 -1
  150. package/models/operations/getoneprompt.js +79 -6
  151. package/models/operations/getoneprompt.js.map +1 -1
  152. package/models/operations/getpromptversion.d.ts +140 -4
  153. package/models/operations/getpromptversion.d.ts.map +1 -1
  154. package/models/operations/getpromptversion.js +78 -6
  155. package/models/operations/getpromptversion.js.map +1 -1
  156. package/models/operations/getv2humanevalsets.js +2 -2
  157. package/models/operations/getv2humanevalsetsid.js +2 -2
  158. package/models/operations/listagents.d.ts +140 -0
  159. package/models/operations/listagents.d.ts.map +1 -1
  160. package/models/operations/listagents.js +79 -3
  161. package/models/operations/listagents.js.map +1 -1
  162. package/models/operations/listdatasetdatapoints.js +4 -4
  163. package/models/operations/listdatasets.js +1 -1
  164. package/models/operations/listdatasources.js +1 -1
  165. package/models/operations/listknowledgebases.d.ts +3 -0
  166. package/models/operations/listknowledgebases.d.ts.map +1 -1
  167. package/models/operations/listknowledgebases.js +1 -1
  168. package/models/operations/listknowledgebases.js.map +1 -1
  169. package/models/operations/listpromptversions.d.ts +140 -4
  170. package/models/operations/listpromptversions.d.ts.map +1 -1
  171. package/models/operations/listpromptversions.js +79 -6
  172. package/models/operations/listpromptversions.js.map +1 -1
  173. package/models/operations/patchv2humanevalsetsid.js +2 -2
  174. package/models/operations/postv2feedbackevaluation.js +3 -3
  175. package/models/operations/postv2humanevalsets.js +2 -2
  176. package/models/operations/retrieveagentrequest.d.ts +140 -0
  177. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  178. package/models/operations/retrieveagentrequest.js +81 -2
  179. package/models/operations/retrieveagentrequest.js.map +1 -1
  180. package/models/operations/retrievedatapoint.js +4 -4
  181. package/models/operations/retrievedataset.js +1 -1
  182. package/models/operations/retrievedatasource.js +1 -1
  183. package/models/operations/retrievetool.js +6 -6
  184. package/models/operations/runagent.d.ts +154 -0
  185. package/models/operations/runagent.d.ts.map +1 -1
  186. package/models/operations/runagent.js +80 -5
  187. package/models/operations/runagent.js.map +1 -1
  188. package/models/operations/streamrunagent.d.ts +154 -0
  189. package/models/operations/streamrunagent.d.ts.map +1 -1
  190. package/models/operations/streamrunagent.js +82 -4
  191. package/models/operations/streamrunagent.js.map +1 -1
  192. package/models/operations/updateagent.d.ts +298 -4
  193. package/models/operations/updateagent.d.ts.map +1 -1
  194. package/models/operations/updateagent.js +162 -9
  195. package/models/operations/updateagent.js.map +1 -1
  196. package/models/operations/updatedatapoint.js +4 -4
  197. package/models/operations/updatedataset.js +1 -1
  198. package/models/operations/updatedatasource.js +1 -1
  199. package/models/operations/updateeval.js +16 -16
  200. package/models/operations/updateprompt.d.ts +225 -12
  201. package/models/operations/updateprompt.d.ts.map +1 -1
  202. package/models/operations/updateprompt.js +125 -14
  203. package/models/operations/updateprompt.js.map +1 -1
  204. package/models/operations/updatetool.js +7 -7
  205. package/package.json +3 -3
  206. package/sdk/feedback.d.ts +2 -2
  207. package/sdk/feedback.js +2 -2
  208. package/src/lib/config.ts +2 -2
  209. package/src/models/components/index.ts +23 -0
  210. package/src/models/components/modelmetadata.ts +6 -0
  211. package/src/models/components/publicresponseresource.ts +196 -0
  212. package/src/models/components/reasoning.ts +50 -4
  213. package/src/models/components/reasoningparam.ts +48 -4
  214. package/src/models/components/reasoningpart.ts +1 -1
  215. package/src/models/components/responsecodeinterpretercodedeltastreamevent.ts +149 -0
  216. package/src/models/components/responsecodeinterpretercodedonestreamevent.ts +146 -0
  217. package/src/models/components/responsecontentpartstreamevent.ts +157 -0
  218. package/src/models/components/responseerrorstreamevent.ts +116 -0
  219. package/src/models/components/responsefunctioncallargumentsdeltastreamevent.ts +153 -0
  220. package/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +148 -0
  221. package/src/models/components/responsehostedtoolcallstreamevent.ts +186 -0
  222. package/src/models/components/responseimagegenerationpartialimagestreamevent.ts +156 -0
  223. package/src/models/components/responselifecyclestreamevent.ts +145 -0
  224. package/src/models/components/responsemcpcallargumentsdeltastreamevent.ts +145 -0
  225. package/src/models/components/responsemcpcallargumentsdonestreamevent.ts +145 -0
  226. package/src/models/components/responseoutputitemstreamevent.ts +144 -0
  227. package/src/models/components/responseoutputtextannotationaddedstreamevent.ts +160 -0
  228. package/src/models/components/responseoutputtextdeltastreamevent.ts +149 -0
  229. package/src/models/components/responseoutputtextdonestreamevent.ts +143 -0
  230. package/src/models/components/responsereasoningdeltastreamevent.ts +164 -0
  231. package/src/models/components/responsereasoningdonestreamevent.ts +159 -0
  232. package/src/models/components/responsereasoningsummarypartstreamevent.ts +171 -0
  233. package/src/models/components/responsereasoningsummarytextdeltastreamevent.ts +159 -0
  234. package/src/models/components/responsereasoningsummarytextdonestreamevent.ts +154 -0
  235. package/src/models/components/responserefusaldeltastreamevent.ts +137 -0
  236. package/src/models/components/responserefusaldonestreamevent.ts +137 -0
  237. package/src/models/operations/createagentrequest.ts +460 -8
  238. package/src/models/operations/createchatcompletion.ts +129 -10
  239. package/src/models/operations/createdataset.ts +1 -1
  240. package/src/models/operations/createdatasetitem.ts +4 -4
  241. package/src/models/operations/createdatasource.ts +1 -1
  242. package/src/models/operations/createeval.ts +16 -16
  243. package/src/models/operations/createprompt.ts +356 -27
  244. package/src/models/operations/createrouterresponse.ts +1000 -109
  245. package/src/models/operations/createtool.ts +6 -6
  246. package/src/models/operations/deploymentgetconfig.ts +105 -8
  247. package/src/models/operations/deployments.ts +113 -16
  248. package/src/models/operations/getallprompts.ts +210 -8
  249. package/src/models/operations/getalltools.ts +6 -6
  250. package/src/models/operations/getevals.ts +16 -16
  251. package/src/models/operations/getoneprompt.ts +208 -8
  252. package/src/models/operations/getpromptversion.ts +212 -8
  253. package/src/models/operations/getv2humanevalsets.ts +2 -2
  254. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  255. package/src/models/operations/listagents.ts +215 -0
  256. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  257. package/src/models/operations/listdatasets.ts +1 -1
  258. package/src/models/operations/listdatasources.ts +1 -1
  259. package/src/models/operations/listknowledgebases.ts +4 -1
  260. package/src/models/operations/listpromptversions.ts +212 -8
  261. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  262. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  263. package/src/models/operations/postv2humanevalsets.ts +2 -2
  264. package/src/models/operations/retrieveagentrequest.ts +222 -0
  265. package/src/models/operations/retrievedatapoint.ts +4 -4
  266. package/src/models/operations/retrievedataset.ts +1 -1
  267. package/src/models/operations/retrievedatasource.ts +1 -1
  268. package/src/models/operations/retrievetool.ts +6 -6
  269. package/src/models/operations/runagent.ts +236 -1
  270. package/src/models/operations/streamrunagent.ts +242 -1
  271. package/src/models/operations/updateagent.ts +464 -9
  272. package/src/models/operations/updatedatapoint.ts +4 -4
  273. package/src/models/operations/updatedataset.ts +1 -1
  274. package/src/models/operations/updatedatasource.ts +1 -1
  275. package/src/models/operations/updateeval.ts +16 -16
  276. package/src/models/operations/updateprompt.ts +356 -27
  277. package/src/models/operations/updatetool.ts +7 -7
  278. package/src/sdk/feedback.ts +2 -2
@@ -495,6 +495,66 @@ export type ListAgentsTimeout = {
495
495
  callTimeout: number;
496
496
  };
497
497
 
498
+ /**
499
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
500
+ */
501
+ export const ListAgentsAgentsResponseType = {
502
+ Ephemeral: "ephemeral",
503
+ } as const;
504
+ /**
505
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
506
+ */
507
+ export type ListAgentsAgentsResponseType = ClosedEnum<
508
+ typeof ListAgentsAgentsResponseType
509
+ >;
510
+
511
+ /**
512
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
513
+ *
514
+ * @remarks
515
+ *
516
+ * - `5m`: 5 minutes
517
+ * - `1h`: 1 hour
518
+ *
519
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
520
+ */
521
+ export const ListAgentsTtl = {
522
+ Fivem: "5m",
523
+ Oneh: "1h",
524
+ } as const;
525
+ /**
526
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
527
+ *
528
+ * @remarks
529
+ *
530
+ * - `5m`: 5 minutes
531
+ * - `1h`: 1 hour
532
+ *
533
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
534
+ */
535
+ export type ListAgentsTtl = ClosedEnum<typeof ListAgentsTtl>;
536
+
537
+ /**
538
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
539
+ */
540
+ export type ListAgentsCacheControl = {
541
+ /**
542
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
543
+ */
544
+ type: ListAgentsAgentsResponseType;
545
+ /**
546
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
547
+ *
548
+ * @remarks
549
+ *
550
+ * - `5m`: 5 minutes
551
+ * - `1h`: 1 hour
552
+ *
553
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
554
+ */
555
+ ttl: ListAgentsTtl;
556
+ };
557
+
498
558
  /**
499
559
  * Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
500
560
  */
@@ -605,6 +665,14 @@ export type ListAgentsParameters = {
605
665
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
606
666
  */
607
667
  timeout?: ListAgentsTimeout | undefined;
668
+ /**
669
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
670
+ */
671
+ cacheControl?: ListAgentsCacheControl | undefined;
672
+ /**
673
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
674
+ */
675
+ promptCacheKey?: string | undefined;
608
676
  };
609
677
 
610
678
  /**
@@ -877,6 +945,68 @@ export type ListAgentsFallbackModelConfigurationTimeout = {
877
945
  callTimeout: number;
878
946
  };
879
947
 
948
+ /**
949
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
950
+ */
951
+ export const ListAgentsFallbackModelConfigurationAgentsType = {
952
+ Ephemeral: "ephemeral",
953
+ } as const;
954
+ /**
955
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
956
+ */
957
+ export type ListAgentsFallbackModelConfigurationAgentsType = ClosedEnum<
958
+ typeof ListAgentsFallbackModelConfigurationAgentsType
959
+ >;
960
+
961
+ /**
962
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
963
+ *
964
+ * @remarks
965
+ *
966
+ * - `5m`: 5 minutes
967
+ * - `1h`: 1 hour
968
+ *
969
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
970
+ */
971
+ export const ListAgentsFallbackModelConfigurationTtl = {
972
+ Fivem: "5m",
973
+ Oneh: "1h",
974
+ } as const;
975
+ /**
976
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
977
+ *
978
+ * @remarks
979
+ *
980
+ * - `5m`: 5 minutes
981
+ * - `1h`: 1 hour
982
+ *
983
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
984
+ */
985
+ export type ListAgentsFallbackModelConfigurationTtl = ClosedEnum<
986
+ typeof ListAgentsFallbackModelConfigurationTtl
987
+ >;
988
+
989
+ /**
990
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
991
+ */
992
+ export type ListAgentsFallbackModelConfigurationCacheControl = {
993
+ /**
994
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
995
+ */
996
+ type: ListAgentsFallbackModelConfigurationAgentsType;
997
+ /**
998
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
999
+ *
1000
+ * @remarks
1001
+ *
1002
+ * - `5m`: 5 minutes
1003
+ * - `1h`: 1 hour
1004
+ *
1005
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1006
+ */
1007
+ ttl: ListAgentsFallbackModelConfigurationTtl;
1008
+ };
1009
+
880
1010
  /**
881
1011
  * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
882
1012
  */
@@ -997,6 +1127,14 @@ export type ListAgentsFallbackModelConfigurationParameters = {
997
1127
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
998
1128
  */
999
1129
  timeout?: ListAgentsFallbackModelConfigurationTimeout | undefined;
1130
+ /**
1131
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
1132
+ */
1133
+ cacheControl?: ListAgentsFallbackModelConfigurationCacheControl | undefined;
1134
+ /**
1135
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
1136
+ */
1137
+ promptCacheKey?: string | undefined;
1000
1138
  };
1001
1139
 
1002
1140
  /**
@@ -1835,6 +1973,36 @@ export function listAgentsTimeoutFromJSON(
1835
1973
  );
1836
1974
  }
1837
1975
 
1976
+ /** @internal */
1977
+ export const ListAgentsAgentsResponseType$inboundSchema: z.ZodNativeEnum<
1978
+ typeof ListAgentsAgentsResponseType
1979
+ > = z.nativeEnum(ListAgentsAgentsResponseType);
1980
+
1981
+ /** @internal */
1982
+ export const ListAgentsTtl$inboundSchema: z.ZodNativeEnum<
1983
+ typeof ListAgentsTtl
1984
+ > = z.nativeEnum(ListAgentsTtl);
1985
+
1986
+ /** @internal */
1987
+ export const ListAgentsCacheControl$inboundSchema: z.ZodType<
1988
+ ListAgentsCacheControl,
1989
+ z.ZodTypeDef,
1990
+ unknown
1991
+ > = z.object({
1992
+ type: ListAgentsAgentsResponseType$inboundSchema,
1993
+ ttl: ListAgentsTtl$inboundSchema.default("5m"),
1994
+ });
1995
+
1996
+ export function listAgentsCacheControlFromJSON(
1997
+ jsonString: string,
1998
+ ): SafeParseResult<ListAgentsCacheControl, SDKValidationError> {
1999
+ return safeParse(
2000
+ jsonString,
2001
+ (x) => ListAgentsCacheControl$inboundSchema.parse(JSON.parse(x)),
2002
+ `Failed to parse 'ListAgentsCacheControl' from JSON`,
2003
+ );
2004
+ }
2005
+
1838
2006
  /** @internal */
1839
2007
  export const ListAgentsParameters$inboundSchema: z.ZodType<
1840
2008
  ListAgentsParameters,
@@ -1877,6 +2045,8 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
1877
2045
  cache: z.lazy(() => ListAgentsCache$inboundSchema).optional(),
1878
2046
  load_balancer: z.lazy(() => ListAgentsLoadBalancer1$inboundSchema).optional(),
1879
2047
  timeout: z.lazy(() => ListAgentsTimeout$inboundSchema).optional(),
2048
+ cache_control: z.lazy(() => ListAgentsCacheControl$inboundSchema).optional(),
2049
+ prompt_cache_key: z.string().optional(),
1880
2050
  }).transform((v) => {
1881
2051
  return remap$(v, {
1882
2052
  "frequency_penalty": "frequencyPenalty",
@@ -1890,6 +2060,8 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
1890
2060
  "tool_choice": "toolChoice",
1891
2061
  "parallel_tool_calls": "parallelToolCalls",
1892
2062
  "load_balancer": "loadBalancer",
2063
+ "cache_control": "cacheControl",
2064
+ "prompt_cache_key": "promptCacheKey",
1893
2065
  });
1894
2066
  });
1895
2067
 
@@ -2420,6 +2592,43 @@ export function listAgentsFallbackModelConfigurationTimeoutFromJSON(
2420
2592
  );
2421
2593
  }
2422
2594
 
2595
+ /** @internal */
2596
+ export const ListAgentsFallbackModelConfigurationAgentsType$inboundSchema:
2597
+ z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationAgentsType> = z
2598
+ .nativeEnum(ListAgentsFallbackModelConfigurationAgentsType);
2599
+
2600
+ /** @internal */
2601
+ export const ListAgentsFallbackModelConfigurationTtl$inboundSchema:
2602
+ z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationTtl> = z
2603
+ .nativeEnum(ListAgentsFallbackModelConfigurationTtl);
2604
+
2605
+ /** @internal */
2606
+ export const ListAgentsFallbackModelConfigurationCacheControl$inboundSchema:
2607
+ z.ZodType<
2608
+ ListAgentsFallbackModelConfigurationCacheControl,
2609
+ z.ZodTypeDef,
2610
+ unknown
2611
+ > = z.object({
2612
+ type: ListAgentsFallbackModelConfigurationAgentsType$inboundSchema,
2613
+ ttl: ListAgentsFallbackModelConfigurationTtl$inboundSchema.default("5m"),
2614
+ });
2615
+
2616
+ export function listAgentsFallbackModelConfigurationCacheControlFromJSON(
2617
+ jsonString: string,
2618
+ ): SafeParseResult<
2619
+ ListAgentsFallbackModelConfigurationCacheControl,
2620
+ SDKValidationError
2621
+ > {
2622
+ return safeParse(
2623
+ jsonString,
2624
+ (x) =>
2625
+ ListAgentsFallbackModelConfigurationCacheControl$inboundSchema.parse(
2626
+ JSON.parse(x),
2627
+ ),
2628
+ `Failed to parse 'ListAgentsFallbackModelConfigurationCacheControl' from JSON`,
2629
+ );
2630
+ }
2631
+
2423
2632
  /** @internal */
2424
2633
  export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
2425
2634
  z.ZodType<
@@ -2476,6 +2685,10 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
2476
2685
  timeout: z.lazy(() =>
2477
2686
  ListAgentsFallbackModelConfigurationTimeout$inboundSchema
2478
2687
  ).optional(),
2688
+ cache_control: z.lazy(() =>
2689
+ ListAgentsFallbackModelConfigurationCacheControl$inboundSchema
2690
+ ).optional(),
2691
+ prompt_cache_key: z.string().optional(),
2479
2692
  }).transform((v) => {
2480
2693
  return remap$(v, {
2481
2694
  "frequency_penalty": "frequencyPenalty",
@@ -2489,6 +2702,8 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
2489
2702
  "tool_choice": "toolChoice",
2490
2703
  "parallel_tool_calls": "parallelToolCalls",
2491
2704
  "load_balancer": "loadBalancer",
2705
+ "cache_control": "cacheControl",
2706
+ "prompt_cache_key": "promptCacheKey",
2492
2707
  });
2493
2708
  });
2494
2709
 
@@ -1270,7 +1270,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
1270
1270
  ),
1271
1271
  reviewed_by_id: z.string(),
1272
1272
  reviewed_at: z.string().datetime({ offset: true }).default(
1273
- "2026-06-09T07:16:39.712Z",
1273
+ "2026-06-09T18:01:25.882Z",
1274
1274
  ).transform(v => new Date(v)),
1275
1275
  type: z.literal("string_array"),
1276
1276
  values: z.array(z.string()),
@@ -1320,7 +1320,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
1320
1320
  source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
1321
1321
  reviewed_by_id: z.string(),
1322
1322
  reviewed_at: z.string().datetime({ offset: true }).default(
1323
- "2026-06-09T07:16:39.712Z",
1323
+ "2026-06-09T18:01:25.882Z",
1324
1324
  ).transform(v => new Date(v)),
1325
1325
  type: z.literal("number"),
1326
1326
  value: z.number(),
@@ -1369,7 +1369,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
1369
1369
  .default("orq"),
1370
1370
  reviewed_by_id: z.string(),
1371
1371
  reviewed_at: z.string().datetime({ offset: true }).default(
1372
- "2026-06-09T07:16:39.711Z",
1372
+ "2026-06-09T18:01:25.881Z",
1373
1373
  ).transform(v => new Date(v)),
1374
1374
  type: z.literal("string"),
1375
1375
  value: z.string(),
@@ -1448,7 +1448,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
1448
1448
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1449
1449
  .optional(),
1450
1450
  updated: z.string().datetime({ offset: true }).default(
1451
- "2026-06-09T07:16:24.404Z",
1451
+ "2026-06-09T18:01:04.261Z",
1452
1452
  ).transform(v => new Date(v)),
1453
1453
  }).transform((v) => {
1454
1454
  return remap$(v, {
@@ -156,7 +156,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
156
156
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
157
157
  .optional(),
158
158
  updated: z.string().datetime({ offset: true }).default(
159
- "2026-06-09T07:16:24.404Z",
159
+ "2026-06-09T18:01:04.261Z",
160
160
  ).transform(v => new Date(v)),
161
161
  }).transform((v) => {
162
162
  return remap$(v, {
@@ -182,7 +182,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
182
182
  z.ZodTypeDef,
183
183
  unknown
184
184
  > = z.object({
185
- _id: z.string().default("01KTNKV4JEFCC8THT6TFSZ95CR"),
185
+ _id: z.string().default("01KTPRQR23PRJ023AAT7V3R5CH"),
186
186
  display_name: z.string(),
187
187
  description: z.nullable(z.string()).optional(),
188
188
  status: ListDatasourcesStatus$inboundSchema,
@@ -18,6 +18,9 @@ export type ListKnowledgeBasesRequest = {
18
18
  * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
19
19
  */
20
20
  endingBefore?: string | undefined;
21
+ /**
22
+ * A limit on the number of objects to be returned. Limit can range between 1 and 300, and the default is 25
23
+ */
21
24
  limit?: number | undefined;
22
25
  };
23
26
 
@@ -289,7 +292,7 @@ export const ListKnowledgeBasesRequest$outboundSchema: z.ZodType<
289
292
  > = z.object({
290
293
  startingAfter: z.string().optional(),
291
294
  endingBefore: z.string().optional(),
292
- limit: z.number().default(300),
295
+ limit: z.number().int().default(25),
293
296
  }).transform((v) => {
294
297
  return remap$(v, {
295
298
  startingAfter: "starting_after",
@@ -168,6 +168,68 @@ export type ListPromptVersionsPromptsResponseFormat =
168
168
  | ListPromptVersionsResponseFormat5
169
169
  | ListPromptVersionsResponseFormat6;
170
170
 
171
+ /**
172
+ * Create a cache control breakpoint. Accepts only the value "ephemeral".
173
+ */
174
+ export const ListPromptVersionsPromptsResponseType = {
175
+ Ephemeral: "ephemeral",
176
+ } as const;
177
+ /**
178
+ * Create a cache control breakpoint. Accepts only the value "ephemeral".
179
+ */
180
+ export type ListPromptVersionsPromptsResponseType = ClosedEnum<
181
+ typeof ListPromptVersionsPromptsResponseType
182
+ >;
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 ListPromptVersionsPromptsTtl = {
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 ListPromptVersionsPromptsTtl = ClosedEnum<
209
+ typeof ListPromptVersionsPromptsTtl
210
+ >;
211
+
212
+ /**
213
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
214
+ */
215
+ export type ListPromptVersionsPromptsCacheControl = {
216
+ /**
217
+ * Create a cache control breakpoint. Accepts only the value "ephemeral".
218
+ */
219
+ type: ListPromptVersionsPromptsResponseType;
220
+ /**
221
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
222
+ *
223
+ * @remarks
224
+ *
225
+ * - `5m`: 5 minutes
226
+ * - `1h`: 1 hour
227
+ *
228
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
229
+ */
230
+ ttl: ListPromptVersionsPromptsTtl;
231
+ };
232
+
171
233
  /**
172
234
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
173
235
  */
@@ -316,6 +378,10 @@ export type ListPromptVersionsModelParameters = {
316
378
  | ListPromptVersionsResponseFormat6
317
379
  | null
318
380
  | undefined;
381
+ /**
382
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
383
+ */
384
+ cacheControl?: ListPromptVersionsPromptsCacheControl | null | undefined;
319
385
  /**
320
386
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
321
387
  */
@@ -472,11 +538,11 @@ export type ListPromptVersionsContent =
472
538
  | string
473
539
  | Array<ListPromptVersions21 | ListPromptVersions22 | ListPromptVersions23>;
474
540
 
475
- export const ListPromptVersionsPromptsType = {
541
+ export const ListPromptVersionsPromptsResponse200Type = {
476
542
  Function: "function",
477
543
  } as const;
478
- export type ListPromptVersionsPromptsType = ClosedEnum<
479
- typeof ListPromptVersionsPromptsType
544
+ export type ListPromptVersionsPromptsResponse200Type = ClosedEnum<
545
+ typeof ListPromptVersionsPromptsResponse200Type
480
546
  >;
481
547
 
482
548
  export type ListPromptVersionsFunction = {
@@ -490,7 +556,7 @@ export type ListPromptVersionsFunction = {
490
556
  export type ListPromptVersionsToolCalls = {
491
557
  id?: string | undefined;
492
558
  index?: number | undefined;
493
- type: ListPromptVersionsPromptsType;
559
+ type: ListPromptVersionsPromptsResponse200Type;
494
560
  function: ListPromptVersionsFunction;
495
561
  };
496
562
 
@@ -863,6 +929,66 @@ export type ListPromptVersionsTimeout = {
863
929
  callTimeout: number;
864
930
  };
865
931
 
932
+ /**
933
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
934
+ */
935
+ export const ListPromptVersionsPromptsType = {
936
+ Ephemeral: "ephemeral",
937
+ } as const;
938
+ /**
939
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
940
+ */
941
+ export type ListPromptVersionsPromptsType = ClosedEnum<
942
+ typeof ListPromptVersionsPromptsType
943
+ >;
944
+
945
+ /**
946
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
947
+ *
948
+ * @remarks
949
+ *
950
+ * - `5m`: 5 minutes
951
+ * - `1h`: 1 hour
952
+ *
953
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
954
+ */
955
+ export const ListPromptVersionsTtl = {
956
+ Fivem: "5m",
957
+ Oneh: "1h",
958
+ } as const;
959
+ /**
960
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
961
+ *
962
+ * @remarks
963
+ *
964
+ * - `5m`: 5 minutes
965
+ * - `1h`: 1 hour
966
+ *
967
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
968
+ */
969
+ export type ListPromptVersionsTtl = ClosedEnum<typeof ListPromptVersionsTtl>;
970
+
971
+ /**
972
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
973
+ */
974
+ export type ListPromptVersionsCacheControl = {
975
+ /**
976
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
977
+ */
978
+ type: ListPromptVersionsPromptsType;
979
+ /**
980
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
981
+ *
982
+ * @remarks
983
+ *
984
+ * - `5m`: 5 minutes
985
+ * - `1h`: 1 hour
986
+ *
987
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
988
+ */
989
+ ttl: ListPromptVersionsTtl;
990
+ };
991
+
866
992
  export type ListPromptVersionsContentPromptsResponse2002 =
867
993
  components.TextContentPartSchema;
868
994
 
@@ -1328,6 +1454,14 @@ export type ListPromptVersionsPromptField = {
1328
1454
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
1329
1455
  */
1330
1456
  timeout?: ListPromptVersionsTimeout | undefined;
1457
+ /**
1458
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
1459
+ */
1460
+ cacheControl?: ListPromptVersionsCacheControl | undefined;
1461
+ /**
1462
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
1463
+ */
1464
+ promptCacheKey?: string | undefined;
1331
1465
  /**
1332
1466
  * Array of messages that make up the conversation. Each message has a role (system, user, assistant, or tool) and content.
1333
1467
  */
@@ -1645,6 +1779,38 @@ export function listPromptVersionsPromptsResponseFormatFromJSON(
1645
1779
  );
1646
1780
  }
1647
1781
 
1782
+ /** @internal */
1783
+ export const ListPromptVersionsPromptsResponseType$inboundSchema:
1784
+ z.ZodNativeEnum<typeof ListPromptVersionsPromptsResponseType> = z.nativeEnum(
1785
+ ListPromptVersionsPromptsResponseType,
1786
+ );
1787
+
1788
+ /** @internal */
1789
+ export const ListPromptVersionsPromptsTtl$inboundSchema: z.ZodNativeEnum<
1790
+ typeof ListPromptVersionsPromptsTtl
1791
+ > = z.nativeEnum(ListPromptVersionsPromptsTtl);
1792
+
1793
+ /** @internal */
1794
+ export const ListPromptVersionsPromptsCacheControl$inboundSchema: z.ZodType<
1795
+ ListPromptVersionsPromptsCacheControl,
1796
+ z.ZodTypeDef,
1797
+ unknown
1798
+ > = z.object({
1799
+ type: ListPromptVersionsPromptsResponseType$inboundSchema,
1800
+ ttl: ListPromptVersionsPromptsTtl$inboundSchema.default("5m"),
1801
+ });
1802
+
1803
+ export function listPromptVersionsPromptsCacheControlFromJSON(
1804
+ jsonString: string,
1805
+ ): SafeParseResult<ListPromptVersionsPromptsCacheControl, SDKValidationError> {
1806
+ return safeParse(
1807
+ jsonString,
1808
+ (x) =>
1809
+ ListPromptVersionsPromptsCacheControl$inboundSchema.parse(JSON.parse(x)),
1810
+ `Failed to parse 'ListPromptVersionsPromptsCacheControl' from JSON`,
1811
+ );
1812
+ }
1813
+
1648
1814
  /** @internal */
1649
1815
  export const ListPromptVersionsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1650
1816
  typeof ListPromptVersionsPhotoRealVersion
@@ -1698,6 +1864,9 @@ export const ListPromptVersionsModelParameters$inboundSchema: z.ZodType<
1698
1864
  ListPromptVersionsResponseFormat6$inboundSchema,
1699
1865
  ]),
1700
1866
  ).optional(),
1867
+ cacheControl: z.nullable(
1868
+ z.lazy(() => ListPromptVersionsPromptsCacheControl$inboundSchema),
1869
+ ).optional(),
1701
1870
  photoRealVersion: ListPromptVersionsPhotoRealVersion$inboundSchema.optional(),
1702
1871
  encoding_format: ListPromptVersionsEncodingFormat$inboundSchema.optional(),
1703
1872
  reasoningEffort: ListPromptVersionsPromptsReasoningEffort$inboundSchema
@@ -1888,9 +2057,9 @@ export function listPromptVersionsContentFromJSON(
1888
2057
  }
1889
2058
 
1890
2059
  /** @internal */
1891
- export const ListPromptVersionsPromptsType$inboundSchema: z.ZodNativeEnum<
1892
- typeof ListPromptVersionsPromptsType
1893
- > = z.nativeEnum(ListPromptVersionsPromptsType);
2060
+ export const ListPromptVersionsPromptsResponse200Type$inboundSchema:
2061
+ z.ZodNativeEnum<typeof ListPromptVersionsPromptsResponse200Type> = z
2062
+ .nativeEnum(ListPromptVersionsPromptsResponse200Type);
1894
2063
 
1895
2064
  /** @internal */
1896
2065
  export const ListPromptVersionsFunction$inboundSchema: z.ZodType<
@@ -1920,7 +2089,7 @@ export const ListPromptVersionsToolCalls$inboundSchema: z.ZodType<
1920
2089
  > = z.object({
1921
2090
  id: z.string().optional(),
1922
2091
  index: z.number().optional(),
1923
- type: ListPromptVersionsPromptsType$inboundSchema,
2092
+ type: ListPromptVersionsPromptsResponse200Type$inboundSchema,
1924
2093
  function: z.lazy(() => ListPromptVersionsFunction$inboundSchema),
1925
2094
  });
1926
2095
 
@@ -2510,6 +2679,36 @@ export function listPromptVersionsTimeoutFromJSON(
2510
2679
  );
2511
2680
  }
2512
2681
 
2682
+ /** @internal */
2683
+ export const ListPromptVersionsPromptsType$inboundSchema: z.ZodNativeEnum<
2684
+ typeof ListPromptVersionsPromptsType
2685
+ > = z.nativeEnum(ListPromptVersionsPromptsType);
2686
+
2687
+ /** @internal */
2688
+ export const ListPromptVersionsTtl$inboundSchema: z.ZodNativeEnum<
2689
+ typeof ListPromptVersionsTtl
2690
+ > = z.nativeEnum(ListPromptVersionsTtl);
2691
+
2692
+ /** @internal */
2693
+ export const ListPromptVersionsCacheControl$inboundSchema: z.ZodType<
2694
+ ListPromptVersionsCacheControl,
2695
+ z.ZodTypeDef,
2696
+ unknown
2697
+ > = z.object({
2698
+ type: ListPromptVersionsPromptsType$inboundSchema,
2699
+ ttl: ListPromptVersionsTtl$inboundSchema.default("5m"),
2700
+ });
2701
+
2702
+ export function listPromptVersionsCacheControlFromJSON(
2703
+ jsonString: string,
2704
+ ): SafeParseResult<ListPromptVersionsCacheControl, SDKValidationError> {
2705
+ return safeParse(
2706
+ jsonString,
2707
+ (x) => ListPromptVersionsCacheControl$inboundSchema.parse(JSON.parse(x)),
2708
+ `Failed to parse 'ListPromptVersionsCacheControl' from JSON`,
2709
+ );
2710
+ }
2711
+
2513
2712
  /** @internal */
2514
2713
  export const ListPromptVersionsContentPromptsResponse2002$inboundSchema:
2515
2714
  z.ZodType<
@@ -3090,6 +3289,9 @@ export const ListPromptVersionsPromptField$inboundSchema: z.ZodType<
3090
3289
  load_balancer: z.lazy(() => ListPromptVersionsLoadBalancer1$inboundSchema)
3091
3290
  .optional(),
3092
3291
  timeout: z.lazy(() => ListPromptVersionsTimeout$inboundSchema).optional(),
3292
+ cache_control: z.lazy(() => ListPromptVersionsCacheControl$inboundSchema)
3293
+ .optional(),
3294
+ prompt_cache_key: z.string().optional(),
3093
3295
  messages: z.array(
3094
3296
  z.union([
3095
3297
  z.lazy(() => ListPromptVersionsMessagesSystemMessage$inboundSchema),
@@ -3115,6 +3317,8 @@ export const ListPromptVersionsPromptField$inboundSchema: z.ZodType<
3115
3317
  "tool_choice": "toolChoice",
3116
3318
  "parallel_tool_calls": "parallelToolCalls",
3117
3319
  "load_balancer": "loadBalancer",
3320
+ "cache_control": "cacheControl",
3321
+ "prompt_cache_key": "promptCacheKey",
3118
3322
  });
3119
3323
  });
3120
3324
 
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
318
318
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
319
319
  .optional(),
320
320
  updated: z.string().datetime({ offset: true }).default(
321
- "2026-06-09T07:16:24.404Z",
321
+ "2026-06-09T18:01:04.261Z",
322
322
  ).transform(v => new Date(v)),
323
323
  filter_type: z.literal("name"),
324
324
  filter_value: z.string(),
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
364
364
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
365
365
  .optional(),
366
366
  updated: z.string().datetime({ offset: true }).default(
367
- "2026-06-09T07:16:24.404Z",
367
+ "2026-06-09T18:01:04.261Z",
368
368
  ).transform(v => new Date(v)),
369
369
  filter_type: z.literal("span_type"),
370
370
  filter_values: z.array(z.string()),