@orq-ai/node 4.12.0-rc.9 → 4.12.4

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 (1536) hide show
  1. package/README.md +65 -43
  2. package/funcs/datasetsClear.d.ts +2 -1
  3. package/funcs/datasetsClear.d.ts.map +1 -1
  4. package/funcs/datasetsClear.js +6 -2
  5. package/funcs/datasetsClear.js.map +1 -1
  6. package/funcs/filesList.js +1 -0
  7. package/funcs/filesList.js.map +1 -1
  8. package/funcs/knowledgeListDatasources.js +1 -0
  9. package/funcs/knowledgeListDatasources.js.map +1 -1
  10. package/funcs/notifiersList.js +2 -0
  11. package/funcs/notifiersList.js.map +1 -1
  12. package/funcs/reportingQuery.d.ts +3 -1
  13. package/funcs/reportingQuery.d.ts.map +1 -1
  14. package/funcs/reportingQuery.js +3 -1
  15. package/funcs/reportingQuery.js.map +1 -1
  16. package/funcs/telemetryQuery.d.ts +17 -0
  17. package/funcs/telemetryQuery.d.ts.map +1 -0
  18. package/funcs/telemetryQuery.js +115 -0
  19. package/funcs/telemetryQuery.js.map +1 -0
  20. package/funcs/tracesAggregate.d.ts +3 -1
  21. package/funcs/tracesAggregate.d.ts.map +1 -1
  22. package/funcs/tracesAggregate.js +3 -1
  23. package/funcs/tracesAggregate.js.map +1 -1
  24. package/funcs/{budgetsCheck.d.ts → webhooksCount.d.ts} +4 -4
  25. package/funcs/webhooksCount.d.ts.map +1 -0
  26. package/funcs/webhooksCount.js +105 -0
  27. package/funcs/webhooksCount.js.map +1 -0
  28. package/funcs/webhooksCreate.d.ts +17 -0
  29. package/funcs/webhooksCreate.d.ts.map +1 -0
  30. package/funcs/{budgetsCheck.js → webhooksCreate.js} +9 -9
  31. package/funcs/webhooksCreate.js.map +1 -0
  32. package/funcs/webhooksDelete.d.ts +18 -0
  33. package/funcs/webhooksDelete.d.ts.map +1 -0
  34. package/funcs/webhooksDelete.js +121 -0
  35. package/funcs/webhooksDelete.js.map +1 -0
  36. package/funcs/webhooksGenerateSecret.d.ts +17 -0
  37. package/funcs/webhooksGenerateSecret.d.ts.map +1 -0
  38. package/funcs/webhooksGenerateSecret.js +105 -0
  39. package/funcs/webhooksGenerateSecret.js.map +1 -0
  40. package/funcs/webhooksGet.d.ts +18 -0
  41. package/funcs/webhooksGet.d.ts.map +1 -0
  42. package/funcs/webhooksGet.js +121 -0
  43. package/funcs/webhooksGet.js.map +1 -0
  44. package/funcs/webhooksList.d.ts +18 -0
  45. package/funcs/webhooksList.d.ts.map +1 -0
  46. package/funcs/webhooksList.js +126 -0
  47. package/funcs/webhooksList.js.map +1 -0
  48. package/funcs/webhooksQuery.d.ts +19 -0
  49. package/funcs/webhooksQuery.d.ts.map +1 -0
  50. package/funcs/webhooksQuery.js +117 -0
  51. package/funcs/webhooksQuery.js.map +1 -0
  52. package/funcs/webhooksUpdate.d.ts +17 -0
  53. package/funcs/webhooksUpdate.d.ts.map +1 -0
  54. package/funcs/webhooksUpdate.js +121 -0
  55. package/funcs/webhooksUpdate.js.map +1 -0
  56. package/jsr.json +1 -1
  57. package/lib/config.d.ts +3 -3
  58. package/lib/config.js +3 -3
  59. package/lib/config.js.map +1 -1
  60. package/lib/http.d.ts +1 -1
  61. package/lib/http.d.ts.map +1 -1
  62. package/lib/http.js +1 -1
  63. package/lib/http.js.map +1 -1
  64. package/lib/security.d.ts +5 -4
  65. package/lib/security.d.ts.map +1 -1
  66. package/lib/security.js +6 -7
  67. package/lib/security.js.map +1 -1
  68. package/models/components/actionreviewrequestedstreamingevent.d.ts +2 -2
  69. package/models/components/actionreviewrequestedstreamingevent.d.ts.map +1 -1
  70. package/models/components/actionreviewrequestedstreamingevent.js +1 -1
  71. package/models/components/actionreviewrequestedstreamingevent.js.map +1 -1
  72. package/models/components/agentstartedstreamingevent.d.ts +2 -2
  73. package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
  74. package/models/components/agentstartedstreamingevent.js +1 -1
  75. package/models/components/agentstartedstreamingevent.js.map +1 -1
  76. package/models/components/agenttoolinputcrud.d.ts +413 -0
  77. package/models/components/agenttoolinputcrud.d.ts.map +1 -0
  78. package/models/components/agenttoolinputcrud.js +287 -0
  79. package/models/components/agenttoolinputcrud.js.map +1 -0
  80. package/models/components/apikey.d.ts +5 -0
  81. package/models/components/apikey.d.ts.map +1 -1
  82. package/models/components/apikey.js +2 -0
  83. package/models/components/apikey.js.map +1 -1
  84. package/models/components/budget.d.ts +5 -0
  85. package/models/components/budget.d.ts.map +1 -1
  86. package/models/components/budget.js +2 -0
  87. package/models/components/budget.js.map +1 -1
  88. package/models/components/budgetalert.d.ts +41 -0
  89. package/models/components/budgetalert.d.ts.map +1 -0
  90. package/models/components/budgetalert.js +76 -0
  91. package/models/components/budgetalert.js.map +1 -0
  92. package/models/components/budgetalertdimension.d.ts +13 -0
  93. package/models/components/budgetalertdimension.d.ts.map +1 -0
  94. package/models/components/budgetalertdimension.js +50 -0
  95. package/models/components/budgetalertdimension.js.map +1 -0
  96. package/models/components/codetoolinput.d.ts +38 -0
  97. package/models/components/codetoolinput.d.ts.map +1 -0
  98. package/models/components/{checkbudgetsrequest.js → codetoolinput.js} +12 -23
  99. package/models/components/codetoolinput.js.map +1 -0
  100. package/models/components/config.d.ts +14 -0
  101. package/models/components/config.d.ts.map +1 -0
  102. package/models/components/config.js +63 -0
  103. package/models/components/config.js.map +1 -0
  104. package/models/components/countwebhooksresponse.d.ts +16 -0
  105. package/models/components/countwebhooksresponse.d.ts.map +1 -0
  106. package/models/components/countwebhooksresponse.js +50 -0
  107. package/models/components/countwebhooksresponse.js.map +1 -0
  108. package/models/components/createbudgetrequest.d.ts +9 -0
  109. package/models/components/createbudgetrequest.d.ts.map +1 -1
  110. package/models/components/createbudgetrequest.js +2 -0
  111. package/models/components/createbudgetrequest.js.map +1 -1
  112. package/models/components/createwebhookrequest.d.ts +62 -0
  113. package/models/components/createwebhookrequest.d.ts.map +1 -0
  114. package/models/components/createwebhookrequest.js +71 -0
  115. package/models/components/createwebhookrequest.js.map +1 -0
  116. package/models/components/deletewebhookresponse.d.ts +13 -0
  117. package/models/components/deletewebhookresponse.d.ts.map +1 -0
  118. package/models/components/deletewebhookresponse.js +50 -0
  119. package/models/components/deletewebhookresponse.js.map +1 -0
  120. package/models/components/evaluatorresponsefunction.js +2 -2
  121. package/models/components/evaluatorresponsehttp.js +2 -2
  122. package/models/components/evaluatorresponsejsonschema.js +2 -2
  123. package/models/components/evaluatorresponsellm.js +2 -2
  124. package/models/components/evaluatorresponsepython.js +2 -2
  125. package/models/components/evaluatorresponseragas.js +2 -2
  126. package/models/components/evaluatorresponsetypescript.js +2 -2
  127. package/models/components/functiontoolinput.d.ts +33 -0
  128. package/models/components/functiontoolinput.d.ts.map +1 -0
  129. package/models/components/functiontoolinput.js +57 -0
  130. package/models/components/functiontoolinput.js.map +1 -0
  131. package/models/components/generatewebhooksecretresponse.d.ts +16 -0
  132. package/models/components/generatewebhooksecretresponse.d.ts.map +1 -0
  133. package/models/components/generatewebhooksecretresponse.js +50 -0
  134. package/models/components/generatewebhooksecretresponse.js.map +1 -0
  135. package/models/components/httptoolinput.d.ts +38 -0
  136. package/models/components/httptoolinput.d.ts.map +1 -0
  137. package/models/components/httptoolinput.js +58 -0
  138. package/models/components/httptoolinput.js.map +1 -0
  139. package/models/components/identity.d.ts +9 -4
  140. package/models/components/identity.d.ts.map +1 -1
  141. package/models/components/identity.js +8 -6
  142. package/models/components/identity.js.map +1 -1
  143. package/models/components/index.d.ts +29 -4
  144. package/models/components/index.d.ts.map +1 -1
  145. package/models/components/index.js +29 -4
  146. package/models/components/index.js.map +1 -1
  147. package/models/components/jsonschematoolinput.d.ts +33 -0
  148. package/models/components/jsonschematoolinput.d.ts.map +1 -0
  149. package/models/components/jsonschematoolinput.js +57 -0
  150. package/models/components/jsonschematoolinput.js.map +1 -0
  151. package/models/components/listwebhooksresponse.d.ts +25 -0
  152. package/models/components/listwebhooksresponse.d.ts.map +1 -0
  153. package/models/components/{budgetrejection.js → listwebhooksresponse.js} +11 -13
  154. package/models/components/listwebhooksresponse.js.map +1 -0
  155. package/models/components/mcptoolinput.d.ts +38 -0
  156. package/models/components/mcptoolinput.d.ts.map +1 -0
  157. package/models/components/mcptoolinput.js +59 -0
  158. package/models/components/mcptoolinput.js.map +1 -0
  159. package/models/components/modeldocument.d.ts +2 -0
  160. package/models/components/modeldocument.d.ts.map +1 -1
  161. package/models/components/modeldocument.js +2 -0
  162. package/models/components/modeldocument.js.map +1 -1
  163. package/models/components/modelsconfig.d.ts +1 -0
  164. package/models/components/modelsconfig.d.ts.map +1 -1
  165. package/models/components/modelsconfig.js +1 -0
  166. package/models/components/modelsconfig.js.map +1 -1
  167. package/models/components/providertoolinput.d.ts +47 -0
  168. package/models/components/providertoolinput.d.ts.map +1 -0
  169. package/models/components/providertoolinput.js +59 -0
  170. package/models/components/providertoolinput.js.map +1 -0
  171. package/models/components/queryparamspagination.d.ts +18 -0
  172. package/models/components/queryparamspagination.d.ts.map +1 -0
  173. package/models/components/queryparamspagination.js +52 -0
  174. package/models/components/queryparamspagination.js.map +1 -0
  175. package/models/components/queryparamssort.d.ts +14 -0
  176. package/models/components/queryparamssort.d.ts.map +1 -0
  177. package/models/components/queryparamssort.js +50 -0
  178. package/models/components/queryparamssort.js.map +1 -0
  179. package/models/components/querytelemetrymeta.d.ts +11 -0
  180. package/models/components/querytelemetrymeta.d.ts.map +1 -0
  181. package/models/components/{dimensioninfo.js → querytelemetrymeta.js} +9 -10
  182. package/models/components/querytelemetrymeta.js.map +1 -0
  183. package/models/components/querytelemetryrequest.d.ts +40 -0
  184. package/models/components/querytelemetryrequest.d.ts.map +1 -0
  185. package/models/components/querytelemetryrequest.js +69 -0
  186. package/models/components/querytelemetryrequest.js.map +1 -0
  187. package/models/components/querytelemetryresponse.d.ts +15 -0
  188. package/models/components/querytelemetryresponse.d.ts.map +1 -0
  189. package/models/components/{checkbudgetsresponse.js → querytelemetryresponse.js} +12 -13
  190. package/models/components/querytelemetryresponse.js.map +1 -0
  191. package/models/components/querywebhooksrequest.d.ts +38 -0
  192. package/models/components/querywebhooksrequest.d.ts.map +1 -0
  193. package/models/components/querywebhooksrequest.js +67 -0
  194. package/models/components/querywebhooksrequest.js.map +1 -0
  195. package/models/components/querywebhooksresponse.d.ts +12 -0
  196. package/models/components/querywebhooksresponse.d.ts.map +1 -0
  197. package/models/components/querywebhooksresponse.js +52 -0
  198. package/models/components/querywebhooksresponse.js.map +1 -0
  199. package/models/components/reasoningpart.js +1 -1
  200. package/models/components/responsecustomtoolcallinputdeltastreamevent.d.ts +35 -0
  201. package/models/components/responsecustomtoolcallinputdeltastreamevent.d.ts.map +1 -0
  202. package/models/components/responsecustomtoolcallinputdeltastreamevent.js +61 -0
  203. package/models/components/responsecustomtoolcallinputdeltastreamevent.js.map +1 -0
  204. package/models/components/responsecustomtoolcallinputdonestreamevent.d.ts +35 -0
  205. package/models/components/responsecustomtoolcallinputdonestreamevent.d.ts.map +1 -0
  206. package/models/components/responsecustomtoolcallinputdonestreamevent.js +61 -0
  207. package/models/components/responsecustomtoolcallinputdonestreamevent.js.map +1 -0
  208. package/models/components/responsemcplisttoolscompletedstreamevent.d.ts +31 -0
  209. package/models/components/responsemcplisttoolscompletedstreamevent.d.ts.map +1 -0
  210. package/models/components/responsemcplisttoolscompletedstreamevent.js +60 -0
  211. package/models/components/responsemcplisttoolscompletedstreamevent.js.map +1 -0
  212. package/models/components/responsemcplisttoolsfailedstreamevent.d.ts +31 -0
  213. package/models/components/responsemcplisttoolsfailedstreamevent.d.ts.map +1 -0
  214. package/models/components/responsemcplisttoolsfailedstreamevent.js +60 -0
  215. package/models/components/responsemcplisttoolsfailedstreamevent.js.map +1 -0
  216. package/models/components/responsemcplisttoolsinprogressstreamevent.d.ts +31 -0
  217. package/models/components/responsemcplisttoolsinprogressstreamevent.d.ts.map +1 -0
  218. package/models/components/responsemcplisttoolsinprogressstreamevent.js +60 -0
  219. package/models/components/responsemcplisttoolsinprogressstreamevent.js.map +1 -0
  220. package/models/components/responsestreamevent.d.ts +6 -1
  221. package/models/components/responsestreamevent.d.ts.map +1 -1
  222. package/models/components/responsestreamevent.js +10 -0
  223. package/models/components/responsestreamevent.js.map +1 -1
  224. package/models/components/telemetryrow.d.ts +22 -0
  225. package/models/components/telemetryrow.d.ts.map +1 -0
  226. package/models/components/telemetryrow.js +53 -0
  227. package/models/components/telemetryrow.js.map +1 -0
  228. package/models/components/thinkingconfigenabledschema.d.ts +1 -0
  229. package/models/components/thinkingconfigenabledschema.d.ts.map +1 -1
  230. package/models/components/thinkingconfigenabledschema.js +1 -0
  231. package/models/components/thinkingconfigenabledschema.js.map +1 -1
  232. package/models/components/updatebudgetrequest.d.ts +14 -0
  233. package/models/components/updatebudgetrequest.d.ts.map +1 -1
  234. package/models/components/updatebudgetrequest.js +4 -0
  235. package/models/components/updatebudgetrequest.js.map +1 -1
  236. package/models/components/webhook.d.ts +74 -0
  237. package/models/components/webhook.d.ts.map +1 -0
  238. package/models/components/webhook.js +81 -0
  239. package/models/components/webhook.js.map +1 -0
  240. package/models/operations/createagentrequest.d.ts +9 -660
  241. package/models/operations/createagentrequest.d.ts.map +1 -1
  242. package/models/operations/createagentrequest.js +12 -419
  243. package/models/operations/createagentrequest.js.map +1 -1
  244. package/models/operations/createchatcompletion.d.ts +1 -0
  245. package/models/operations/createchatcompletion.d.ts.map +1 -1
  246. package/models/operations/createchatcompletion.js +1 -0
  247. package/models/operations/createchatcompletion.js.map +1 -1
  248. package/models/operations/createdataset.js +1 -1
  249. package/models/operations/createdatasetitem.d.ts +121 -8
  250. package/models/operations/createdatasetitem.d.ts.map +1 -1
  251. package/models/operations/createdatasetitem.js +97 -12
  252. package/models/operations/createdatasetitem.js.map +1 -1
  253. package/models/operations/createdatasource.d.ts +42 -0
  254. package/models/operations/createdatasource.d.ts.map +1 -1
  255. package/models/operations/createdatasource.js +26 -2
  256. package/models/operations/createdatasource.js.map +1 -1
  257. package/models/operations/createeval.d.ts +88 -88
  258. package/models/operations/createeval.d.ts.map +1 -1
  259. package/models/operations/createeval.js +78 -78
  260. package/models/operations/createeval.js.map +1 -1
  261. package/models/operations/createknowledge.d.ts +6 -6
  262. package/models/operations/createknowledge.d.ts.map +1 -1
  263. package/models/operations/createknowledge.js +6 -6
  264. package/models/operations/createknowledge.js.map +1 -1
  265. package/models/operations/createprompt.d.ts +5 -0
  266. package/models/operations/createprompt.d.ts.map +1 -1
  267. package/models/operations/createprompt.js +5 -0
  268. package/models/operations/createprompt.js.map +1 -1
  269. package/models/operations/createrouterresponse.d.ts +84 -26
  270. package/models/operations/createrouterresponse.d.ts.map +1 -1
  271. package/models/operations/createrouterresponse.js +47 -17
  272. package/models/operations/createrouterresponse.js.map +1 -1
  273. package/models/operations/createtool.d.ts +27 -18
  274. package/models/operations/createtool.d.ts.map +1 -1
  275. package/models/operations/createtool.js +30 -28
  276. package/models/operations/createtool.js.map +1 -1
  277. package/models/operations/deploymentgetconfig.d.ts +1 -0
  278. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  279. package/models/operations/deploymentgetconfig.js +1 -0
  280. package/models/operations/deploymentgetconfig.js.map +1 -1
  281. package/models/operations/deploymentinvoke.d.ts +2 -0
  282. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  283. package/models/operations/deploymentinvoke.js +2 -0
  284. package/models/operations/deploymentinvoke.js.map +1 -1
  285. package/models/operations/deployments.d.ts +3 -0
  286. package/models/operations/deployments.d.ts.map +1 -1
  287. package/models/operations/deployments.js +3 -0
  288. package/models/operations/deployments.js.map +1 -1
  289. package/models/operations/deploymentstream.d.ts +2 -0
  290. package/models/operations/deploymentstream.d.ts.map +1 -1
  291. package/models/operations/deploymentstream.js +2 -0
  292. package/models/operations/deploymentstream.js.map +1 -1
  293. package/models/operations/filelist.d.ts +10 -0
  294. package/models/operations/filelist.d.ts.map +1 -1
  295. package/models/operations/filelist.js +1 -0
  296. package/models/operations/filelist.js.map +1 -1
  297. package/models/operations/getallmemories.d.ts +1 -1
  298. package/models/operations/getallmemorydocuments.d.ts +1 -1
  299. package/models/operations/getallmemorystores.d.ts +1 -1
  300. package/models/operations/getallprompts.d.ts +5 -1
  301. package/models/operations/getallprompts.d.ts.map +1 -1
  302. package/models/operations/getallprompts.js +4 -0
  303. package/models/operations/getallprompts.js.map +1 -1
  304. package/models/operations/getalltools.d.ts +4 -0
  305. package/models/operations/getalltools.d.ts.map +1 -1
  306. package/models/operations/getalltools.js +7 -6
  307. package/models/operations/getalltools.js.map +1 -1
  308. package/models/operations/getevals.d.ts +1 -1
  309. package/models/operations/getoneprompt.d.ts +4 -0
  310. package/models/operations/getoneprompt.d.ts.map +1 -1
  311. package/models/operations/getoneprompt.js +4 -0
  312. package/models/operations/getoneprompt.js.map +1 -1
  313. package/models/operations/getpromptversion.d.ts +4 -0
  314. package/models/operations/getpromptversion.d.ts.map +1 -1
  315. package/models/operations/getpromptversion.js +4 -0
  316. package/models/operations/getpromptversion.js.map +1 -1
  317. package/models/operations/getv2evaluatorsidversions.d.ts +1 -1
  318. package/models/operations/getv2humanevalsets.js +2 -2
  319. package/models/operations/getv2humanevalsetsid.js +2 -2
  320. package/models/operations/getv2toolstoolidversions.d.ts +1 -1
  321. package/models/operations/index.d.ts +4 -0
  322. package/models/operations/index.d.ts.map +1 -1
  323. package/models/operations/index.js +4 -0
  324. package/models/operations/index.js.map +1 -1
  325. package/models/operations/listagents.d.ts +5 -3
  326. package/models/operations/listagents.d.ts.map +1 -1
  327. package/models/operations/listagents.js +4 -2
  328. package/models/operations/listagents.js.map +1 -1
  329. package/models/operations/listchunks.d.ts +1 -1
  330. package/models/operations/listdatasetdatapoints.d.ts +150 -37
  331. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  332. package/models/operations/listdatasetdatapoints.js +119 -37
  333. package/models/operations/listdatasetdatapoints.js.map +1 -1
  334. package/models/operations/listdatasets.d.ts +1 -1
  335. package/models/operations/listdatasets.js +1 -1
  336. package/models/operations/listdatasources.d.ts +48 -0
  337. package/models/operations/listdatasources.d.ts.map +1 -1
  338. package/models/operations/listdatasources.js +33 -2
  339. package/models/operations/listdatasources.js.map +1 -1
  340. package/models/operations/listpromptversions.d.ts +5 -1
  341. package/models/operations/listpromptversions.d.ts.map +1 -1
  342. package/models/operations/listpromptversions.js +4 -0
  343. package/models/operations/listpromptversions.js.map +1 -1
  344. package/models/operations/modelcreate.d.ts +1 -0
  345. package/models/operations/modelcreate.d.ts.map +1 -1
  346. package/models/operations/modelcreate.js +1 -0
  347. package/models/operations/modelcreate.js.map +1 -1
  348. package/models/operations/modelcreateautorouter.d.ts +1 -0
  349. package/models/operations/modelcreateautorouter.d.ts.map +1 -1
  350. package/models/operations/modelcreateautorouter.js +1 -0
  351. package/models/operations/modelcreateautorouter.js.map +1 -1
  352. package/models/operations/modelcreateawsbedrock.d.ts +1 -0
  353. package/models/operations/modelcreateawsbedrock.d.ts.map +1 -1
  354. package/models/operations/modelcreateawsbedrock.js +1 -0
  355. package/models/operations/modelcreateawsbedrock.js.map +1 -1
  356. package/models/operations/modelcreateopenailike.d.ts +1 -0
  357. package/models/operations/modelcreateopenailike.d.ts.map +1 -1
  358. package/models/operations/modelcreateopenailike.js +1 -0
  359. package/models/operations/modelcreateopenailike.js.map +1 -1
  360. package/models/operations/modelcreatevertex.d.ts +1 -0
  361. package/models/operations/modelcreatevertex.d.ts.map +1 -1
  362. package/models/operations/modelcreatevertex.js +1 -0
  363. package/models/operations/modelcreatevertex.js.map +1 -1
  364. package/models/operations/modelupdate.d.ts +1 -0
  365. package/models/operations/modelupdate.d.ts.map +1 -1
  366. package/models/operations/modelupdate.js +1 -0
  367. package/models/operations/modelupdate.js.map +1 -1
  368. package/models/operations/modelupdateautorouter.d.ts +1 -0
  369. package/models/operations/modelupdateautorouter.d.ts.map +1 -1
  370. package/models/operations/modelupdateautorouter.js +1 -0
  371. package/models/operations/modelupdateautorouter.js.map +1 -1
  372. package/models/operations/modelupdateawsbedrock.d.ts +1 -0
  373. package/models/operations/modelupdateawsbedrock.d.ts.map +1 -1
  374. package/models/operations/modelupdateawsbedrock.js +1 -0
  375. package/models/operations/modelupdateawsbedrock.js.map +1 -1
  376. package/models/operations/modelupdateopenailike.d.ts +1 -0
  377. package/models/operations/modelupdateopenailike.d.ts.map +1 -1
  378. package/models/operations/modelupdateopenailike.js +1 -0
  379. package/models/operations/modelupdateopenailike.js.map +1 -1
  380. package/models/operations/notifierlist.d.ts +11 -0
  381. package/models/operations/notifierlist.d.ts.map +1 -1
  382. package/models/operations/notifierlist.js +3 -0
  383. package/models/operations/notifierlist.js.map +1 -1
  384. package/models/operations/patchv2humanevalsetsid.js +2 -2
  385. package/models/operations/postv2feedbackevaluation.d.ts +68 -6
  386. package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
  387. package/models/operations/postv2feedbackevaluation.js +46 -6
  388. package/models/operations/postv2feedbackevaluation.js.map +1 -1
  389. package/models/operations/postv2humanevalsets.js +2 -2
  390. package/models/operations/retrieveagentrequest.d.ts +5 -3
  391. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  392. package/models/operations/retrieveagentrequest.js +4 -2
  393. package/models/operations/retrieveagentrequest.js.map +1 -1
  394. package/models/operations/retrievedatapoint.d.ts +117 -4
  395. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  396. package/models/operations/retrievedatapoint.js +90 -8
  397. package/models/operations/retrievedatapoint.js.map +1 -1
  398. package/models/operations/retrievedataset.js +1 -1
  399. package/models/operations/retrievedatasource.d.ts +33 -0
  400. package/models/operations/retrievedatasource.d.ts.map +1 -1
  401. package/models/operations/retrievedatasource.js +25 -2
  402. package/models/operations/retrievedatasource.js.map +1 -1
  403. package/models/operations/retrieveresponse.d.ts +4 -4
  404. package/models/operations/retrieveresponse.d.ts.map +1 -1
  405. package/models/operations/retrieveresponse.js +4 -4
  406. package/models/operations/retrieveresponse.js.map +1 -1
  407. package/models/operations/retrievetool.d.ts +4 -0
  408. package/models/operations/retrievetool.d.ts.map +1 -1
  409. package/models/operations/retrievetool.js +7 -6
  410. package/models/operations/retrievetool.js.map +1 -1
  411. package/models/operations/runagent.d.ts +69 -52
  412. package/models/operations/runagent.d.ts.map +1 -1
  413. package/models/operations/runagent.js +80 -75
  414. package/models/operations/runagent.js.map +1 -1
  415. package/models/operations/streamrunagent.d.ts +69 -52
  416. package/models/operations/streamrunagent.d.ts.map +1 -1
  417. package/models/operations/streamrunagent.js +80 -78
  418. package/models/operations/streamrunagent.js.map +1 -1
  419. package/models/operations/updateagent.d.ts +9 -660
  420. package/models/operations/updateagent.d.ts.map +1 -1
  421. package/models/operations/updateagent.js +12 -419
  422. package/models/operations/updateagent.js.map +1 -1
  423. package/models/operations/updatedatapoint.d.ts +117 -4
  424. package/models/operations/updatedatapoint.d.ts.map +1 -1
  425. package/models/operations/updatedatapoint.js +92 -8
  426. package/models/operations/updatedatapoint.js.map +1 -1
  427. package/models/operations/updatedataset.js +1 -1
  428. package/models/operations/updatedatasource.d.ts +33 -0
  429. package/models/operations/updatedatasource.d.ts.map +1 -1
  430. package/models/operations/updatedatasource.js +25 -2
  431. package/models/operations/updatedatasource.js.map +1 -1
  432. package/models/operations/updateprompt.d.ts +5 -0
  433. package/models/operations/updateprompt.d.ts.map +1 -1
  434. package/models/operations/updateprompt.js +5 -0
  435. package/models/operations/updateprompt.js.map +1 -1
  436. package/models/operations/updatetool.d.ts +9 -0
  437. package/models/operations/updatetool.d.ts.map +1 -1
  438. package/models/operations/updatetool.js +9 -7
  439. package/models/operations/updatetool.js.map +1 -1
  440. package/models/operations/webhookdelete.d.ts +12 -0
  441. package/models/operations/webhookdelete.d.ts.map +1 -0
  442. package/models/operations/webhookdelete.js +49 -0
  443. package/models/operations/webhookdelete.js.map +1 -0
  444. package/models/operations/webhookget.d.ts +12 -0
  445. package/models/operations/webhookget.d.ts.map +1 -0
  446. package/models/operations/webhookget.js +49 -0
  447. package/models/operations/webhookget.js.map +1 -0
  448. package/models/operations/webhooklist.d.ts +70 -0
  449. package/models/operations/webhooklist.d.ts.map +1 -0
  450. package/models/operations/webhooklist.js +61 -0
  451. package/models/operations/webhooklist.js.map +1 -0
  452. package/models/operations/webhookupdate.d.ts +29 -0
  453. package/models/operations/webhookupdate.d.ts.map +1 -0
  454. package/models/operations/webhookupdate.js +68 -0
  455. package/models/operations/webhookupdate.js.map +1 -0
  456. package/package.json +4 -5
  457. package/packages/orq-rc/examples/evalsAll.example.ts +26 -0
  458. package/packages/orq-rc/src/core.ts +13 -0
  459. package/packages/orq-rc/src/funcs/agentsCreate.ts +163 -0
  460. package/packages/orq-rc/src/funcs/agentsDelete.ts +181 -0
  461. package/packages/orq-rc/src/funcs/agentsInvoke.ts +178 -0
  462. package/packages/orq-rc/src/funcs/agentsList.ts +186 -0
  463. package/packages/orq-rc/src/funcs/agentsRefreshKeyCard.ts +188 -0
  464. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +189 -0
  465. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +185 -0
  466. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +181 -0
  467. package/packages/orq-rc/src/funcs/agentsRun.ts +164 -0
  468. package/packages/orq-rc/src/funcs/agentsStream.ts +205 -0
  469. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +191 -0
  470. package/packages/orq-rc/src/funcs/agentsUpdate.ts +185 -0
  471. package/packages/orq-rc/src/funcs/annotationsCreate.ts +175 -0
  472. package/packages/orq-rc/src/funcs/annotationsDelete.ts +175 -0
  473. package/packages/orq-rc/src/funcs/apiKeysCreate.ts +162 -0
  474. package/packages/orq-rc/src/funcs/apiKeysDelete.ts +168 -0
  475. package/packages/orq-rc/src/funcs/apiKeysGet.ts +173 -0
  476. package/packages/orq-rc/src/funcs/apiKeysList.ts +176 -0
  477. package/packages/orq-rc/src/funcs/apiKeysListCapabilities.ts +144 -0
  478. package/packages/orq-rc/src/funcs/apiKeysUpdate.ts +171 -0
  479. package/packages/orq-rc/src/funcs/budgetsCreate.ts +162 -0
  480. package/packages/orq-rc/src/funcs/budgetsDelete.ts +168 -0
  481. package/packages/orq-rc/src/funcs/budgetsGet.ts +168 -0
  482. package/packages/orq-rc/src/funcs/budgetsGetConsumption.ts +169 -0
  483. package/packages/orq-rc/src/funcs/budgetsList.ts +176 -0
  484. package/packages/orq-rc/src/funcs/budgetsResetConsumption.ts +174 -0
  485. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +171 -0
  486. package/packages/orq-rc/src/funcs/chunkingParse.ts +162 -0
  487. package/packages/orq-rc/src/funcs/datasetsClear.ts +177 -0
  488. package/packages/orq-rc/src/funcs/datasetsCreate.ts +167 -0
  489. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +172 -0
  490. package/packages/orq-rc/src/funcs/datasetsDelete.ts +168 -0
  491. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +183 -0
  492. package/packages/orq-rc/src/funcs/datasetsList.ts +171 -0
  493. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +184 -0
  494. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +176 -0
  495. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +182 -0
  496. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +177 -0
  497. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +180 -0
  498. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +170 -0
  499. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +170 -0
  500. package/packages/orq-rc/src/funcs/deploymentsList.ts +178 -0
  501. package/packages/orq-rc/src/funcs/deploymentsStream.ts +180 -0
  502. package/packages/orq-rc/src/funcs/evalsAll.ts +178 -0
  503. package/packages/orq-rc/src/funcs/evalsCreate.ts +171 -0
  504. package/packages/orq-rc/src/funcs/evalsDelete.ts +174 -0
  505. package/packages/orq-rc/src/funcs/evalsInvoke.ts +182 -0
  506. package/packages/orq-rc/src/funcs/evalsListVersions.ts +184 -0
  507. package/packages/orq-rc/src/funcs/evalsUpdate.ts +174 -0
  508. package/packages/orq-rc/src/funcs/feedbackCreate.ts +174 -0
  509. package/packages/orq-rc/src/funcs/feedbackCreateEvaluation.ts +161 -0
  510. package/packages/orq-rc/src/funcs/feedbackRemove.ts +169 -0
  511. package/packages/orq-rc/src/funcs/feedbackRemoveEvaluation.ts +161 -0
  512. package/packages/orq-rc/src/funcs/filesCreate.ts +162 -0
  513. package/packages/orq-rc/src/funcs/filesDelete.ts +168 -0
  514. package/packages/orq-rc/src/funcs/filesGet.ts +168 -0
  515. package/packages/orq-rc/src/funcs/filesGetContent.ts +168 -0
  516. package/packages/orq-rc/src/funcs/filesList.ts +172 -0
  517. package/packages/orq-rc/src/funcs/filesUpdate.ts +169 -0
  518. package/packages/orq-rc/src/funcs/guardrailRulesCreate.ts +163 -0
  519. package/packages/orq-rc/src/funcs/guardrailRulesDelete.ts +172 -0
  520. package/packages/orq-rc/src/funcs/guardrailRulesList.ts +176 -0
  521. package/packages/orq-rc/src/funcs/guardrailRulesListUsedGuardrails.ts +147 -0
  522. package/packages/orq-rc/src/funcs/guardrailRulesRetrieve.ts +170 -0
  523. package/packages/orq-rc/src/funcs/guardrailRulesUpdate.ts +172 -0
  524. package/packages/orq-rc/src/funcs/humanReviewSetsCreate.ts +164 -0
  525. package/packages/orq-rc/src/funcs/humanReviewSetsDelete.ts +166 -0
  526. package/packages/orq-rc/src/funcs/humanReviewSetsGet.ts +165 -0
  527. package/packages/orq-rc/src/funcs/humanReviewSetsList.ts +170 -0
  528. package/packages/orq-rc/src/funcs/humanReviewSetsUpdate.ts +166 -0
  529. package/packages/orq-rc/src/funcs/identitiesCreate.ts +162 -0
  530. package/packages/orq-rc/src/funcs/identitiesDelete.ts +168 -0
  531. package/packages/orq-rc/src/funcs/identitiesList.ts +175 -0
  532. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +174 -0
  533. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +171 -0
  534. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +160 -0
  535. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +172 -0
  536. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +167 -0
  537. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +168 -0
  538. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +175 -0
  539. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +171 -0
  540. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +174 -0
  541. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +174 -0
  542. package/packages/orq-rc/src/funcs/knowledgeList.ts +175 -0
  543. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +179 -0
  544. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +172 -0
  545. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +176 -0
  546. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +167 -0
  547. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +174 -0
  548. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +170 -0
  549. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +168 -0
  550. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +165 -0
  551. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +175 -0
  552. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +171 -0
  553. package/packages/orq-rc/src/funcs/managementKeysCreate.ts +163 -0
  554. package/packages/orq-rc/src/funcs/managementKeysDelete.ts +172 -0
  555. package/packages/orq-rc/src/funcs/managementKeysGet.ts +171 -0
  556. package/packages/orq-rc/src/funcs/managementKeysList.ts +175 -0
  557. package/packages/orq-rc/src/funcs/managementKeysListCapabilities.ts +144 -0
  558. package/packages/orq-rc/src/funcs/managementKeysUpdate.ts +175 -0
  559. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +164 -0
  560. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +177 -0
  561. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +171 -0
  562. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +169 -0
  563. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +186 -0
  564. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +181 -0
  565. package/packages/orq-rc/src/funcs/memoryStoresList.ts +183 -0
  566. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +185 -0
  567. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +178 -0
  568. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +178 -0
  569. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +180 -0
  570. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +175 -0
  571. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +169 -0
  572. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +181 -0
  573. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +176 -0
  574. package/packages/orq-rc/src/funcs/modelsAzureFoundryDeployments.ts +168 -0
  575. package/packages/orq-rc/src/funcs/modelsCreate.ts +162 -0
  576. package/packages/orq-rc/src/funcs/modelsCreateAwsBedrock.ts +163 -0
  577. package/packages/orq-rc/src/funcs/modelsCreateOpenaiLike.ts +163 -0
  578. package/packages/orq-rc/src/funcs/modelsCreateVertex.ts +163 -0
  579. package/packages/orq-rc/src/funcs/modelsDelete.ts +168 -0
  580. package/packages/orq-rc/src/funcs/modelsDisable.ts +168 -0
  581. package/packages/orq-rc/src/funcs/modelsEnable.ts +163 -0
  582. package/packages/orq-rc/src/funcs/modelsImportLitellm.ts +166 -0
  583. package/packages/orq-rc/src/funcs/modelsList.ts +144 -0
  584. package/packages/orq-rc/src/funcs/modelsListLitellm.ts +144 -0
  585. package/packages/orq-rc/src/funcs/modelsUpdate.ts +168 -0
  586. package/packages/orq-rc/src/funcs/modelsUpdateAwsBedrock.ts +169 -0
  587. package/packages/orq-rc/src/funcs/modelsUpdateOpenaiLike.ts +169 -0
  588. package/packages/orq-rc/src/funcs/modelsValidate.ts +163 -0
  589. package/packages/orq-rc/src/funcs/modelsValidateAwsBedrock.ts +164 -0
  590. package/packages/orq-rc/src/funcs/notifiersCreate.ts +162 -0
  591. package/packages/orq-rc/src/funcs/notifiersDelete.ts +168 -0
  592. package/packages/orq-rc/src/funcs/notifiersGet.ts +168 -0
  593. package/packages/orq-rc/src/funcs/notifiersList.ts +173 -0
  594. package/packages/orq-rc/src/funcs/notifiersUpdate.ts +171 -0
  595. package/packages/orq-rc/src/funcs/piiDetect.ts +162 -0
  596. package/packages/orq-rc/src/funcs/piiRedact.ts +162 -0
  597. package/packages/orq-rc/src/funcs/piiRestore.ts +162 -0
  598. package/packages/orq-rc/src/funcs/policiesCreate.ts +162 -0
  599. package/packages/orq-rc/src/funcs/policiesDelete.ts +168 -0
  600. package/packages/orq-rc/src/funcs/policiesList.ts +170 -0
  601. package/packages/orq-rc/src/funcs/policiesRetrieve.ts +167 -0
  602. package/packages/orq-rc/src/funcs/policiesUpdate.ts +168 -0
  603. package/packages/orq-rc/src/funcs/projectsCreate.ts +162 -0
  604. package/packages/orq-rc/src/funcs/projectsDelete.ts +168 -0
  605. package/packages/orq-rc/src/funcs/projectsGet.ts +168 -0
  606. package/packages/orq-rc/src/funcs/projectsList.ts +170 -0
  607. package/packages/orq-rc/src/funcs/projectsUpdate.ts +171 -0
  608. package/packages/orq-rc/src/funcs/promptsCreate.ts +163 -0
  609. package/packages/orq-rc/src/funcs/promptsDelete.ts +174 -0
  610. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +182 -0
  611. package/packages/orq-rc/src/funcs/promptsList.ts +169 -0
  612. package/packages/orq-rc/src/funcs/promptsListVersions.ts +174 -0
  613. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +167 -0
  614. package/packages/orq-rc/src/funcs/promptsUpdate.ts +174 -0
  615. package/packages/orq-rc/src/funcs/reportingQuery.ts +164 -0
  616. package/packages/orq-rc/src/funcs/responsesCreate.ts +170 -0
  617. package/packages/orq-rc/src/funcs/responsesGet.ts +167 -0
  618. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +163 -0
  619. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +272 -0
  620. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +262 -0
  621. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +170 -0
  622. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +170 -0
  623. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +163 -0
  624. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +224 -0
  625. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +162 -0
  626. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +220 -0
  627. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +169 -0
  628. package/packages/orq-rc/src/funcs/routerOcr.ts +160 -0
  629. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +162 -0
  630. package/packages/orq-rc/src/funcs/routingRulesCreate.ts +163 -0
  631. package/packages/orq-rc/src/funcs/routingRulesDelete.ts +168 -0
  632. package/packages/orq-rc/src/funcs/routingRulesList.ts +173 -0
  633. package/packages/orq-rc/src/funcs/routingRulesListUsedModels.ts +144 -0
  634. package/packages/orq-rc/src/funcs/routingRulesRetrieve.ts +167 -0
  635. package/packages/orq-rc/src/funcs/routingRulesUpdate.ts +168 -0
  636. package/packages/orq-rc/src/funcs/schedulesCreate.ts +185 -0
  637. package/packages/orq-rc/src/funcs/schedulesDelete.ts +184 -0
  638. package/packages/orq-rc/src/funcs/schedulesList.ts +167 -0
  639. package/packages/orq-rc/src/funcs/schedulesRetrieve.ts +183 -0
  640. package/packages/orq-rc/src/funcs/schedulesTrigger.ts +190 -0
  641. package/packages/orq-rc/src/funcs/schedulesUpdate.ts +191 -0
  642. package/packages/orq-rc/src/funcs/skillsCreate.ts +162 -0
  643. package/packages/orq-rc/src/funcs/skillsDelete.ts +168 -0
  644. package/packages/orq-rc/src/funcs/skillsGet.ts +168 -0
  645. package/packages/orq-rc/src/funcs/skillsList.ts +170 -0
  646. package/packages/orq-rc/src/funcs/skillsUpdate.ts +171 -0
  647. package/packages/orq-rc/src/funcs/smartRoutersCreate.ts +162 -0
  648. package/packages/orq-rc/src/funcs/smartRoutersDelete.ts +168 -0
  649. package/packages/orq-rc/src/funcs/smartRoutersGet.ts +168 -0
  650. package/packages/orq-rc/src/funcs/smartRoutersList.ts +173 -0
  651. package/packages/orq-rc/src/funcs/smartRoutersSetEnabled.ts +174 -0
  652. package/packages/orq-rc/src/funcs/smartRoutersUpdate.ts +171 -0
  653. package/packages/orq-rc/src/funcs/telemetryQuery.ts +162 -0
  654. package/packages/orq-rc/src/funcs/toolsCreate.ts +165 -0
  655. package/packages/orq-rc/src/funcs/toolsDelete.ts +168 -0
  656. package/packages/orq-rc/src/funcs/toolsGetVersion.ts +191 -0
  657. package/packages/orq-rc/src/funcs/toolsList.ts +178 -0
  658. package/packages/orq-rc/src/funcs/toolsListVersions.ts +184 -0
  659. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +167 -0
  660. package/packages/orq-rc/src/funcs/toolsUpdate.ts +177 -0
  661. package/packages/orq-rc/src/funcs/tracesAggregate.ts +164 -0
  662. package/packages/orq-rc/src/funcs/tracesGet.ts +168 -0
  663. package/packages/orq-rc/src/funcs/tracesGetSpan.ts +172 -0
  664. package/packages/orq-rc/src/funcs/tracesListFacetValues.ts +177 -0
  665. package/packages/orq-rc/src/funcs/tracesListFacets.ts +144 -0
  666. package/packages/orq-rc/src/funcs/tracesListFields.ts +144 -0
  667. package/packages/orq-rc/src/funcs/tracesListSpans.ts +174 -0
  668. package/packages/orq-rc/src/funcs/tracesQuery.ts +162 -0
  669. package/{src/funcs/budgetsCheck.ts → packages/orq-rc/src/funcs/tracesSearch.ts} +12 -12
  670. package/packages/orq-rc/src/funcs/webhooksCount.ts +144 -0
  671. package/packages/orq-rc/src/funcs/webhooksCreate.ts +162 -0
  672. package/packages/orq-rc/src/funcs/webhooksDelete.ts +168 -0
  673. package/packages/orq-rc/src/funcs/webhooksGenerateSecret.ts +144 -0
  674. package/packages/orq-rc/src/funcs/webhooksGet.ts +168 -0
  675. package/packages/orq-rc/src/funcs/webhooksList.ts +175 -0
  676. package/packages/orq-rc/src/funcs/webhooksQuery.ts +164 -0
  677. package/packages/orq-rc/src/funcs/webhooksUpdate.ts +168 -0
  678. package/packages/orq-rc/src/hooks/global.ts +44 -0
  679. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  680. package/packages/orq-rc/src/hooks/index.ts +6 -0
  681. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  682. package/packages/orq-rc/src/hooks/types.ts +113 -0
  683. package/packages/orq-rc/src/index.ts +9 -0
  684. package/packages/orq-rc/src/lib/base64.ts +37 -0
  685. package/packages/orq-rc/src/lib/config.ts +64 -0
  686. package/packages/orq-rc/src/lib/encodings.ts +525 -0
  687. package/packages/orq-rc/src/lib/env.ts +61 -0
  688. package/packages/orq-rc/src/lib/event-streams.ts +191 -0
  689. package/packages/orq-rc/src/lib/files.ts +104 -0
  690. package/packages/orq-rc/src/lib/http.ts +325 -0
  691. package/packages/orq-rc/src/lib/logger.ts +9 -0
  692. package/packages/orq-rc/src/lib/matchers.ts +346 -0
  693. package/packages/orq-rc/src/lib/primitives.ts +166 -0
  694. package/packages/orq-rc/src/lib/retries.ts +226 -0
  695. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  696. package/packages/orq-rc/src/lib/sdks.ts +443 -0
  697. package/packages/orq-rc/src/lib/security.ts +280 -0
  698. package/packages/orq-rc/src/lib/url.ts +35 -0
  699. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +99 -0
  700. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +190 -0
  701. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +73 -0
  702. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +91 -0
  703. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +71 -0
  704. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +507 -0
  705. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +165 -0
  706. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +103 -0
  707. package/packages/orq-rc/src/models/components/agentresponserequest.ts +565 -0
  708. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +531 -0
  709. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +807 -0
  710. package/packages/orq-rc/src/models/components/agenttoolinputcrud.ts +747 -0
  711. package/packages/orq-rc/src/models/components/aggregatetracesrequest.ts +65 -0
  712. package/packages/orq-rc/src/models/components/aggregatetracesresponse.ts +37 -0
  713. package/packages/orq-rc/src/models/components/allprojects.ts +39 -0
  714. package/packages/orq-rc/src/models/components/apikey.ts +293 -0
  715. package/packages/orq-rc/src/models/components/apikeybudgetscope.ts +66 -0
  716. package/packages/orq-rc/src/models/components/apikeyowner.ts +82 -0
  717. package/packages/orq-rc/src/models/components/apikeystatus.ts +21 -0
  718. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +136 -0
  719. package/packages/orq-rc/src/models/components/autorouterconfig.ts +92 -0
  720. package/packages/orq-rc/src/models/components/autorouterv2config.ts +152 -0
  721. package/packages/orq-rc/src/models/components/autorouterv2creatorconfig.ts +59 -0
  722. package/packages/orq-rc/src/models/components/autorouterv2effortconfig.ts +66 -0
  723. package/packages/orq-rc/src/models/components/azurefoundrydeployment.ts +51 -0
  724. package/packages/orq-rc/src/models/components/azurefoundrydeploymentmasterdata.ts +60 -0
  725. package/packages/orq-rc/src/models/components/budget.ts +120 -0
  726. package/packages/orq-rc/src/models/components/budgetalert.ts +92 -0
  727. package/packages/orq-rc/src/models/components/budgetalertdimension.ts +22 -0
  728. package/packages/orq-rc/src/models/components/budgetlimit.ts +83 -0
  729. package/packages/orq-rc/src/models/components/budgetlimits.ts +84 -0
  730. package/packages/orq-rc/src/models/components/budgetmatch.ts +56 -0
  731. package/packages/orq-rc/src/models/components/budgetperiod.ts +23 -0
  732. package/packages/orq-rc/src/models/components/budgetscope.ts +150 -0
  733. package/packages/orq-rc/src/models/components/budgetscopekind.ts +22 -0
  734. package/packages/orq-rc/src/models/components/budgetsortfield.ts +19 -0
  735. package/packages/orq-rc/src/models/components/budgetusage.ts +54 -0
  736. package/packages/orq-rc/src/models/components/codetoolinput.ts +62 -0
  737. package/packages/orq-rc/src/models/components/config.ts +44 -0
  738. package/packages/orq-rc/src/models/components/conversationparam.ts +51 -0
  739. package/packages/orq-rc/src/models/components/countwebhooksresponse.ts +37 -0
  740. package/packages/orq-rc/src/models/components/createagentresponse.ts +305 -0
  741. package/packages/orq-rc/src/models/components/createapikeyrequest.ts +91 -0
  742. package/packages/orq-rc/src/models/components/createapikeyresponse.ts +49 -0
  743. package/packages/orq-rc/src/models/components/createbudgetrequest.ts +123 -0
  744. package/packages/orq-rc/src/models/components/createbudgetresponse.ts +35 -0
  745. package/packages/orq-rc/src/models/components/createfilerequest.ts +62 -0
  746. package/packages/orq-rc/src/models/components/createfileresponse.ts +35 -0
  747. package/packages/orq-rc/src/models/components/createidentityrequest.ts +100 -0
  748. package/packages/orq-rc/src/models/components/createidentityresponse.ts +35 -0
  749. package/packages/orq-rc/src/models/components/createmanagementkeyrequest.ts +69 -0
  750. package/packages/orq-rc/src/models/components/createmanagementkeyresponse.ts +48 -0
  751. package/packages/orq-rc/src/models/components/createmodelparameter.ts +54 -0
  752. package/packages/orq-rc/src/models/components/createnotifierrequest.ts +433 -0
  753. package/packages/orq-rc/src/models/components/createnotifierresponse.ts +35 -0
  754. package/packages/orq-rc/src/models/components/createprojectrequest.ts +46 -0
  755. package/packages/orq-rc/src/models/components/createprojectresponse.ts +35 -0
  756. package/packages/orq-rc/src/models/components/createskillrequest.ts +159 -0
  757. package/packages/orq-rc/src/models/components/createskillresponse.ts +35 -0
  758. package/packages/orq-rc/src/models/components/createsmartrouterrequest.ts +47 -0
  759. package/packages/orq-rc/src/models/components/createsmartrouterresponse.ts +37 -0
  760. package/packages/orq-rc/src/models/components/createwebhookrequest.ts +100 -0
  761. package/packages/orq-rc/src/models/components/datapart.ts +38 -0
  762. package/packages/orq-rc/src/models/components/datapoint.ts +60 -0
  763. package/packages/orq-rc/src/models/components/deleteapikeyresponse.ts +27 -0
  764. package/packages/orq-rc/src/models/components/deletebudgetresponse.ts +27 -0
  765. package/packages/orq-rc/src/models/components/deletefileresponse.ts +27 -0
  766. package/packages/orq-rc/src/models/components/deleteidentityresponse.ts +27 -0
  767. package/packages/orq-rc/src/models/components/deletemanagementkeyresponse.ts +27 -0
  768. package/packages/orq-rc/src/models/components/deletenotifierresponse.ts +27 -0
  769. package/packages/orq-rc/src/models/components/deleteprojectresponse.ts +27 -0
  770. package/packages/orq-rc/src/models/components/deleteskillresponse.ts +27 -0
  771. package/packages/orq-rc/src/models/components/deletesmartrouterresponse.ts +27 -0
  772. package/packages/orq-rc/src/models/components/deletewebhookresponse.ts +34 -0
  773. package/packages/orq-rc/src/models/components/detectrequest.ts +56 -0
  774. package/packages/orq-rc/src/models/components/detectresponse.ts +41 -0
  775. package/packages/orq-rc/src/models/components/domain.ts +66 -0
  776. package/packages/orq-rc/src/models/components/embeddingcacheconfig.ts +59 -0
  777. package/packages/orq-rc/src/models/components/embeddingcontactparams.ts +48 -0
  778. package/packages/orq-rc/src/models/components/embeddingloadbalancerconfig.ts +66 -0
  779. package/packages/orq-rc/src/models/components/embeddingloadbalancermodelconfig.ts +42 -0
  780. package/packages/orq-rc/src/models/components/embeddingorqparams.ts +101 -0
  781. package/packages/orq-rc/src/models/components/embeddingretryconfig.ts +45 -0
  782. package/packages/orq-rc/src/models/components/embeddingtimeoutconfig.ts +39 -0
  783. package/packages/orq-rc/src/models/components/errorpart.ts +58 -0
  784. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +66 -0
  785. package/packages/orq-rc/src/models/components/evaluatorref.ts +93 -0
  786. package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +916 -0
  787. package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +71 -0
  788. package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +54 -0
  789. package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +304 -0
  790. package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +54 -0
  791. package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +78 -0
  792. package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +54 -0
  793. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +71 -0
  794. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +61 -0
  795. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +67 -0
  796. package/packages/orq-rc/src/models/components/expression.ts +33 -0
  797. package/packages/orq-rc/src/models/components/expressioninput.ts +29 -0
  798. package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
  799. package/packages/orq-rc/src/models/components/fallbackconfig.ts +27 -0
  800. package/packages/orq-rc/src/models/components/file.ts +64 -0
  801. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +87 -0
  802. package/packages/orq-rc/src/models/components/filepart.ts +223 -0
  803. package/packages/orq-rc/src/models/components/filepurpose.ts +22 -0
  804. package/packages/orq-rc/src/models/components/filter.ts +137 -0
  805. package/packages/orq-rc/src/models/components/functiontoolinput.ts +60 -0
  806. package/packages/orq-rc/src/models/components/generatewebhooksecretresponse.ts +37 -0
  807. package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
  808. package/packages/orq-rc/src/models/components/getapikeyresponse.ts +40 -0
  809. package/packages/orq-rc/src/models/components/getbudgetconsumptionresponse.ts +71 -0
  810. package/packages/orq-rc/src/models/components/getbudgetresponse.ts +35 -0
  811. package/packages/orq-rc/src/models/components/getfilecontentresponse.ts +39 -0
  812. package/packages/orq-rc/src/models/components/getfileresponse.ts +35 -0
  813. package/packages/orq-rc/src/models/components/getmanagementkeyresponse.ts +40 -0
  814. package/packages/orq-rc/src/models/components/getnotifierresponse.ts +35 -0
  815. package/packages/orq-rc/src/models/components/getprojectresponse.ts +35 -0
  816. package/packages/orq-rc/src/models/components/getskillresponse.ts +35 -0
  817. package/packages/orq-rc/src/models/components/getsmartrouterresponse.ts +37 -0
  818. package/packages/orq-rc/src/models/components/gettraceresponse.ts +32 -0
  819. package/packages/orq-rc/src/models/components/gettracespanresponse.ts +32 -0
  820. package/packages/orq-rc/src/models/components/guardrailref.ts +91 -0
  821. package/packages/orq-rc/src/models/components/guardrailrule.ts +69 -0
  822. package/packages/orq-rc/src/models/components/httptoolinput.ts +62 -0
  823. package/packages/orq-rc/src/models/components/identity.ts +252 -0
  824. package/packages/orq-rc/src/models/components/identitybudgetscope.ts +66 -0
  825. package/packages/orq-rc/src/models/components/identitymetrics.ts +57 -0
  826. package/packages/orq-rc/src/models/components/identitysortfield.ts +18 -0
  827. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +268 -0
  828. package/packages/orq-rc/src/models/components/incompletedetails.ts +31 -0
  829. package/packages/orq-rc/src/models/components/index.ts +368 -0
  830. package/packages/orq-rc/src/models/components/inputtokensdetails.ts +45 -0
  831. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +3492 -0
  832. package/packages/orq-rc/src/models/components/jsonschematoolinput.ts +60 -0
  833. package/packages/orq-rc/src/models/components/legacytokenfamily.ts +19 -0
  834. package/packages/orq-rc/src/models/components/limits.ts +70 -0
  835. package/packages/orq-rc/src/models/components/listapikeysresponse.ts +56 -0
  836. package/packages/orq-rc/src/models/components/listbudgetsresponse.ts +53 -0
  837. package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +38 -0
  838. package/packages/orq-rc/src/models/components/listfilesresponse.ts +50 -0
  839. package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +53 -0
  840. package/packages/orq-rc/src/models/components/listmanagementcapabilitiesresponse.ts +36 -0
  841. package/packages/orq-rc/src/models/components/listmanagementkeysresponse.ts +56 -0
  842. package/packages/orq-rc/src/models/components/listnotifiersresponse.ts +50 -0
  843. package/packages/orq-rc/src/models/components/listprojectsresponse.ts +53 -0
  844. package/packages/orq-rc/src/models/components/listskillsresponse.ts +53 -0
  845. package/packages/orq-rc/src/models/components/listsmartroutersresponse.ts +41 -0
  846. package/packages/orq-rc/src/models/components/listtracefacetsresponse.ts +32 -0
  847. package/packages/orq-rc/src/models/components/listtracefacetvaluesresponse.ts +44 -0
  848. package/packages/orq-rc/src/models/components/listtracefieldsresponse.ts +32 -0
  849. package/packages/orq-rc/src/models/components/listtracespansresponse.ts +44 -0
  850. package/packages/orq-rc/src/models/components/listwebhooksresponse.ts +53 -0
  851. package/packages/orq-rc/src/models/components/litellmmodel.ts +50 -0
  852. package/packages/orq-rc/src/models/components/litellmmodelinfo.ts +97 -0
  853. package/packages/orq-rc/src/models/components/litellmparams.ts +43 -0
  854. package/packages/orq-rc/src/models/components/managementkey.ts +132 -0
  855. package/packages/orq-rc/src/models/components/managementkeystatus.ts +23 -0
  856. package/packages/orq-rc/src/models/components/managementpermissionmode.ts +25 -0
  857. package/packages/orq-rc/src/models/components/mcptoolinput.ts +63 -0
  858. package/packages/orq-rc/src/models/components/memoryparam.ts +56 -0
  859. package/packages/orq-rc/src/models/components/modelbudgetscope.ts +67 -0
  860. package/packages/orq-rc/src/models/components/modelconfigurationresponse.ts +82 -0
  861. package/packages/orq-rc/src/models/components/modeldocument.ts +115 -0
  862. package/packages/orq-rc/src/models/components/modelmetadata.ts +738 -0
  863. package/packages/orq-rc/src/models/components/modelparameterdocument.ts +53 -0
  864. package/packages/orq-rc/src/models/components/modelref.ts +70 -0
  865. package/packages/orq-rc/src/models/components/modelsconfig.ts +75 -0
  866. package/packages/orq-rc/src/models/components/notifier.ts +465 -0
  867. package/packages/orq-rc/src/models/components/notifiertype.ts +21 -0
  868. package/packages/orq-rc/src/models/components/outputtokensdetails.ts +36 -0
  869. package/packages/orq-rc/src/models/components/ownertype.ts +17 -0
  870. package/packages/orq-rc/src/models/components/partdelta.ts +39 -0
  871. package/packages/orq-rc/src/models/components/partdeltaevent.ts +73 -0
  872. package/packages/orq-rc/src/models/components/partdoneevent.ts +70 -0
  873. package/packages/orq-rc/src/models/components/permissionmode.ts +23 -0
  874. package/packages/orq-rc/src/models/components/piiredactionplugin.ts +44 -0
  875. package/packages/orq-rc/src/models/components/piiredactionpluginauto.ts +185 -0
  876. package/packages/orq-rc/src/models/components/piiredactionpluginen.ts +222 -0
  877. package/packages/orq-rc/src/models/components/piiredactionpluginnl.ts +218 -0
  878. package/packages/orq-rc/src/models/components/plugin.ts +37 -0
  879. package/packages/orq-rc/src/models/components/policy.ts +80 -0
  880. package/packages/orq-rc/src/models/components/policyretryconfig.ts +64 -0
  881. package/packages/orq-rc/src/models/components/price.ts +56 -0
  882. package/packages/orq-rc/src/models/components/pricing.ts +93 -0
  883. package/packages/orq-rc/src/models/components/pricingvariant.ts +90 -0
  884. package/packages/orq-rc/src/models/components/project.ts +108 -0
  885. package/packages/orq-rc/src/models/components/projectbudgetscope.ts +63 -0
  886. package/packages/orq-rc/src/models/components/projectscope.ts +70 -0
  887. package/packages/orq-rc/src/models/components/providerbudgetscope.ts +57 -0
  888. package/packages/orq-rc/src/models/components/providertoolinput.ts +72 -0
  889. package/packages/orq-rc/src/models/components/publiccontact.ts +71 -0
  890. package/packages/orq-rc/src/models/components/publicembeddingdata.ts +60 -0
  891. package/packages/orq-rc/src/models/components/publicembeddingusage.ts +45 -0
  892. package/packages/orq-rc/src/models/components/publicidentity.ts +69 -0
  893. package/packages/orq-rc/src/models/components/publicmodelentry.ts +71 -0
  894. package/packages/orq-rc/src/models/components/publicpiiredactionplugin.ts +127 -0
  895. package/packages/orq-rc/src/models/components/publicresponseresource.ts +196 -0
  896. package/packages/orq-rc/src/models/components/publicschedule.ts +118 -0
  897. package/packages/orq-rc/src/models/components/publicscheduleerrordetail.ts +39 -0
  898. package/packages/orq-rc/src/models/components/publicschedulepayload.ts +84 -0
  899. package/packages/orq-rc/src/models/components/publicusage.ts +77 -0
  900. package/packages/orq-rc/src/models/components/queryparamspagination.ts +40 -0
  901. package/packages/orq-rc/src/models/components/queryparamssort.ts +32 -0
  902. package/packages/orq-rc/src/models/components/queryreportrequest.ts +237 -0
  903. package/packages/orq-rc/src/models/components/queryreportresponse.ts +99 -0
  904. package/packages/orq-rc/src/models/components/querytelemetrymeta.ts +38 -0
  905. package/packages/orq-rc/src/models/components/querytelemetryrequest.ts +85 -0
  906. package/packages/orq-rc/src/models/components/querytelemetryresponse.ts +42 -0
  907. package/packages/orq-rc/src/models/components/querytracesrequest.ts +48 -0
  908. package/packages/orq-rc/src/models/components/querytracesresponse.ts +37 -0
  909. package/packages/orq-rc/src/models/components/querywebhooksrequest.ts +85 -0
  910. package/packages/orq-rc/src/models/components/querywebhooksresponse.ts +34 -0
  911. package/packages/orq-rc/src/models/components/ratelimit.ts +62 -0
  912. package/packages/orq-rc/src/models/components/reasoning.ts +79 -0
  913. package/packages/orq-rc/src/models/components/reasoningparam.ts +74 -0
  914. package/packages/orq-rc/src/models/components/reasoningpart.ts +62 -0
  915. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +71 -0
  916. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +66 -0
  917. package/packages/orq-rc/src/models/components/redactrequest.ts +33 -0
  918. package/packages/orq-rc/src/models/components/redactresponse.ts +41 -0
  919. package/packages/orq-rc/src/models/components/refusalpartschema.ts +64 -0
  920. package/packages/orq-rc/src/models/components/requestlimit.ts +69 -0
  921. package/packages/orq-rc/src/models/components/resetbudgetconsumptionrequest.ts +27 -0
  922. package/packages/orq-rc/src/models/components/resetbudgetconsumptionresponse.ts +38 -0
  923. package/packages/orq-rc/src/models/components/responsecodeinterpretercallcodedeltastreamevent.ts +79 -0
  924. package/packages/orq-rc/src/models/components/responsecodeinterpretercallcodedonestreamevent.ts +79 -0
  925. package/packages/orq-rc/src/models/components/responsecodeinterpretercallcompletedstreamevent.ts +74 -0
  926. package/packages/orq-rc/src/models/components/responsecodeinterpretercallinprogressstreamevent.ts +74 -0
  927. package/packages/orq-rc/src/models/components/responsecodeinterpretercallinterpretingstreamevent.ts +74 -0
  928. package/packages/orq-rc/src/models/components/responsecompletedstreamevent.ts +61 -0
  929. package/packages/orq-rc/src/models/components/responsecontentpartaddedstreamevent.ts +79 -0
  930. package/packages/orq-rc/src/models/components/responsecontentpartdonestreamevent.ts +79 -0
  931. package/packages/orq-rc/src/models/components/responsecreatedstreamevent.ts +61 -0
  932. package/packages/orq-rc/src/models/components/responsecustomtoolcallinputdeltastreamevent.ts +79 -0
  933. package/packages/orq-rc/src/models/components/responsecustomtoolcallinputdonestreamevent.ts +76 -0
  934. package/packages/orq-rc/src/models/components/responsedoneevent.ts +324 -0
  935. package/packages/orq-rc/src/models/components/responseerror.ts +33 -0
  936. package/packages/orq-rc/src/models/components/responseerrorstreamevent.ts +58 -0
  937. package/packages/orq-rc/src/models/components/responseexecutionlimits.ts +52 -0
  938. package/packages/orq-rc/src/models/components/responsefailedevent.ts +72 -0
  939. package/packages/orq-rc/src/models/components/responsefailedstreamevent.ts +61 -0
  940. package/packages/orq-rc/src/models/components/responsefilesearchcallcompletedstreamevent.ts +71 -0
  941. package/packages/orq-rc/src/models/components/responsefilesearchcallinprogressstreamevent.ts +74 -0
  942. package/packages/orq-rc/src/models/components/responsefilesearchcallsearchingstreamevent.ts +71 -0
  943. package/packages/orq-rc/src/models/components/responsefunctioncallargumentsdeltastreamevent.ts +84 -0
  944. package/packages/orq-rc/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +79 -0
  945. package/packages/orq-rc/src/models/components/responseidentity.ts +48 -0
  946. package/packages/orq-rc/src/models/components/responseimagegenerationcallcompletedstreamevent.ts +74 -0
  947. package/packages/orq-rc/src/models/components/responseimagegenerationcallgeneratingstreamevent.ts +74 -0
  948. package/packages/orq-rc/src/models/components/responseimagegenerationcallinprogressstreamevent.ts +74 -0
  949. package/packages/orq-rc/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +86 -0
  950. package/packages/orq-rc/src/models/components/responseincompletestreamevent.ts +61 -0
  951. package/packages/orq-rc/src/models/components/responseinprogressstreamevent.ts +61 -0
  952. package/packages/orq-rc/src/models/components/responsemcpcallargumentsdeltastreamevent.ts +78 -0
  953. package/packages/orq-rc/src/models/components/responsemcpcallargumentsdonestreamevent.ts +78 -0
  954. package/packages/orq-rc/src/models/components/responsemcpcallcompletedstreamevent.ts +68 -0
  955. package/packages/orq-rc/src/models/components/responsemcpcallfailedstreamevent.ts +67 -0
  956. package/packages/orq-rc/src/models/components/responsemcpcallinprogressstreamevent.ts +68 -0
  957. package/packages/orq-rc/src/models/components/responsemcplisttoolscompletedstreamevent.ts +73 -0
  958. package/packages/orq-rc/src/models/components/responsemcplisttoolsfailedstreamevent.ts +68 -0
  959. package/packages/orq-rc/src/models/components/responsemcplisttoolsinprogressstreamevent.ts +73 -0
  960. package/packages/orq-rc/src/models/components/responsemeta.ts +103 -0
  961. package/packages/orq-rc/src/models/components/responseoutputitemaddedstreamevent.ts +67 -0
  962. package/packages/orq-rc/src/models/components/responseoutputitemdonestreamevent.ts +66 -0
  963. package/packages/orq-rc/src/models/components/responseoutputtextannotationaddedstreamevent.ts +91 -0
  964. package/packages/orq-rc/src/models/components/responseoutputtextdeltastreamevent.ts +89 -0
  965. package/packages/orq-rc/src/models/components/responseoutputtextdonestreamevent.ts +83 -0
  966. package/packages/orq-rc/src/models/components/responsequeuedstreamevent.ts +61 -0
  967. package/packages/orq-rc/src/models/components/responsereasoningdeltastreamevent.ts +83 -0
  968. package/packages/orq-rc/src/models/components/responsereasoningdonestreamevent.ts +78 -0
  969. package/packages/orq-rc/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +85 -0
  970. package/packages/orq-rc/src/models/components/responsereasoningsummarypartdonestreamevent.ts +85 -0
  971. package/packages/orq-rc/src/models/components/responsereasoningsummarytextdeltastreamevent.ts +90 -0
  972. package/packages/orq-rc/src/models/components/responsereasoningsummarytextdonestreamevent.ts +85 -0
  973. package/packages/orq-rc/src/models/components/responsereasoningtextdeltastreamevent.ts +84 -0
  974. package/packages/orq-rc/src/models/components/responsereasoningtextdonestreamevent.ts +79 -0
  975. package/packages/orq-rc/src/models/components/responserefusaldeltastreamevent.ts +78 -0
  976. package/packages/orq-rc/src/models/components/responserefusaldonestreamevent.ts +78 -0
  977. package/packages/orq-rc/src/models/components/responseretryconfig.ts +45 -0
  978. package/packages/orq-rc/src/models/components/responsestartedevent.ts +97 -0
  979. package/packages/orq-rc/src/models/components/responsestreamevent.ts +337 -0
  980. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +85 -0
  981. package/packages/orq-rc/src/models/components/responsethread.ts +30 -0
  982. package/packages/orq-rc/src/models/components/responsewebsearchcallcompletedstreamevent.ts +73 -0
  983. package/packages/orq-rc/src/models/components/responsewebsearchcallinprogressstreamevent.ts +71 -0
  984. package/packages/orq-rc/src/models/components/responsewebsearchcallsearchingstreamevent.ts +73 -0
  985. package/packages/orq-rc/src/models/components/restorerequest.ts +38 -0
  986. package/packages/orq-rc/src/models/components/restoreresponse.ts +36 -0
  987. package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +35 -0
  988. package/packages/orq-rc/src/models/components/reviewoutcome.ts +23 -0
  989. package/packages/orq-rc/src/models/components/routingrule.ts +67 -0
  990. package/packages/orq-rc/src/models/components/searchtracesrequest.ts +68 -0
  991. package/packages/orq-rc/src/models/components/searchtracesresponse.ts +72 -0
  992. package/packages/orq-rc/src/models/components/security.ts +32 -0
  993. package/packages/orq-rc/src/models/components/serviceaccountowner.ts +43 -0
  994. package/packages/orq-rc/src/models/components/setsmartrouterenabledrequest.ts +33 -0
  995. package/packages/orq-rc/src/models/components/setsmartrouterenabledresponse.ts +37 -0
  996. package/packages/orq-rc/src/models/components/singleproject.ts +59 -0
  997. package/packages/orq-rc/src/models/components/skill.ts +109 -0
  998. package/packages/orq-rc/src/models/components/smartrouter.ts +72 -0
  999. package/packages/orq-rc/src/models/components/smartrouterprofile.ts +23 -0
  1000. package/packages/orq-rc/src/models/components/spandetail.ts +53 -0
  1001. package/packages/orq-rc/src/models/components/spansummary.ts +76 -0
  1002. package/packages/orq-rc/src/models/components/streamoptions.ts +32 -0
  1003. package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
  1004. package/packages/orq-rc/src/models/components/telemetryrow.ts +42 -0
  1005. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +211 -0
  1006. package/packages/orq-rc/src/models/components/textpart.ts +54 -0
  1007. package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +59 -0
  1008. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +59 -0
  1009. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +108 -0
  1010. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +64 -0
  1011. package/packages/orq-rc/src/models/components/tokenlimit.ts +69 -0
  1012. package/packages/orq-rc/src/models/components/toolcallpart.ts +51 -0
  1013. package/packages/orq-rc/src/models/components/tooldoneevent.ts +77 -0
  1014. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +235 -0
  1015. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +219 -0
  1016. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +215 -0
  1017. package/packages/orq-rc/src/models/components/toolfailedevent.ts +77 -0
  1018. package/packages/orq-rc/src/models/components/toolresultpart.ts +71 -0
  1019. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +78 -0
  1020. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +87 -0
  1021. package/packages/orq-rc/src/models/components/toolstartedevent.ts +82 -0
  1022. package/packages/orq-rc/src/models/components/totals.ts +34 -0
  1023. package/packages/orq-rc/src/models/components/traceagent.ts +33 -0
  1024. package/packages/orq-rc/src/models/components/traceaggregaterow.ts +33 -0
  1025. package/packages/orq-rc/src/models/components/tracecompute.ts +30 -0
  1026. package/packages/orq-rc/src/models/components/tracecontext.ts +39 -0
  1027. package/packages/orq-rc/src/models/components/tracecost.ts +77 -0
  1028. package/packages/orq-rc/src/models/components/tracefacet.ts +35 -0
  1029. package/packages/orq-rc/src/models/components/tracefacetvalue.ts +33 -0
  1030. package/packages/orq-rc/src/models/components/tracefield.ts +56 -0
  1031. package/packages/orq-rc/src/models/components/tracefilter.ts +33 -0
  1032. package/packages/orq-rc/src/models/components/tracesearchmeta.ts +45 -0
  1033. package/packages/orq-rc/src/models/components/tracesort.ts +30 -0
  1034. package/packages/orq-rc/src/models/components/tracesummary.ts +152 -0
  1035. package/packages/orq-rc/src/models/components/traceusage.ts +62 -0
  1036. package/packages/orq-rc/src/models/components/updateapikeyrequest.ts +92 -0
  1037. package/packages/orq-rc/src/models/components/updateapikeyresponse.ts +40 -0
  1038. package/packages/orq-rc/src/models/components/updatebudgetrequest.ts +115 -0
  1039. package/packages/orq-rc/src/models/components/updatebudgetresponse.ts +35 -0
  1040. package/packages/orq-rc/src/models/components/updatefilerequest.ts +39 -0
  1041. package/packages/orq-rc/src/models/components/updatefileresponse.ts +35 -0
  1042. package/packages/orq-rc/src/models/components/updateidentityrequest.ts +90 -0
  1043. package/packages/orq-rc/src/models/components/updateidentityresponse.ts +35 -0
  1044. package/packages/orq-rc/src/models/components/updatemanagementkeyrequest.ts +80 -0
  1045. package/packages/orq-rc/src/models/components/updatemanagementkeyresponse.ts +40 -0
  1046. package/packages/orq-rc/src/models/components/updatemodelparameter.ts +61 -0
  1047. package/packages/orq-rc/src/models/components/updatenotifierrequest.ts +130 -0
  1048. package/packages/orq-rc/src/models/components/updatenotifierresponse.ts +35 -0
  1049. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +49 -0
  1050. package/packages/orq-rc/src/models/components/updateprojectresponse.ts +35 -0
  1051. package/packages/orq-rc/src/models/components/updateskillrequest.ts +75 -0
  1052. package/packages/orq-rc/src/models/components/updateskillresponse.ts +35 -0
  1053. package/packages/orq-rc/src/models/components/updatesmartrouterrequest.ts +38 -0
  1054. package/packages/orq-rc/src/models/components/updatesmartrouterresponse.ts +37 -0
  1055. package/packages/orq-rc/src/models/components/userowner.ts +59 -0
  1056. package/packages/orq-rc/src/models/components/vertexcapabilities.ts +37 -0
  1057. package/packages/orq-rc/src/models/components/vertexconfiguration.ts +45 -0
  1058. package/packages/orq-rc/src/models/components/vertexmodelconfiguration.ts +53 -0
  1059. package/packages/orq-rc/src/models/components/vertexparameters.ts +47 -0
  1060. package/packages/orq-rc/src/models/components/vertexparamrange.ts +34 -0
  1061. package/packages/orq-rc/src/models/components/vertexparamrangeint.ts +34 -0
  1062. package/packages/orq-rc/src/models/components/webhook.ts +116 -0
  1063. package/packages/orq-rc/src/models/components/workspacebudgetscope.ts +46 -0
  1064. package/packages/orq-rc/src/models/errors/apierror.ts +40 -0
  1065. package/packages/orq-rc/src/models/errors/createagentschedule.ts +105 -0
  1066. package/packages/orq-rc/src/models/errors/createeval.ts +51 -0
  1067. package/packages/orq-rc/src/models/errors/createmoderation.ts +84 -0
  1068. package/packages/orq-rc/src/models/errors/createtranscription.ts +87 -0
  1069. package/packages/orq-rc/src/models/errors/createtranslation.ts +87 -0
  1070. package/packages/orq-rc/src/models/errors/deleteagent.ts +51 -0
  1071. package/packages/orq-rc/src/models/errors/deleteagentschedule.ts +56 -0
  1072. package/packages/orq-rc/src/models/errors/deleteeval.ts +51 -0
  1073. package/packages/orq-rc/src/models/errors/deleteprompt.ts +51 -0
  1074. package/packages/orq-rc/src/models/errors/getevals.ts +51 -0
  1075. package/packages/orq-rc/src/models/errors/getpromptversion.ts +51 -0
  1076. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +51 -0
  1077. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +51 -0
  1078. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +52 -0
  1079. package/packages/orq-rc/src/models/errors/honoapierror.ts +59 -0
  1080. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  1081. package/packages/orq-rc/src/models/errors/index.ts +38 -0
  1082. package/packages/orq-rc/src/models/errors/invokeeval.ts +141 -0
  1083. package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
  1084. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
  1085. package/packages/orq-rc/src/models/errors/postv2feedback.ts +96 -0
  1086. package/packages/orq-rc/src/models/errors/postv2feedbackremove.ts +51 -0
  1087. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
  1088. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +51 -0
  1089. package/packages/orq-rc/src/models/errors/retrieveagentschedule.ts +56 -0
  1090. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +109 -0
  1091. package/packages/orq-rc/src/models/errors/streamagent.ts +51 -0
  1092. package/packages/orq-rc/src/models/errors/streamrunagent.ts +51 -0
  1093. package/packages/orq-rc/src/models/errors/triggeragentschedule.ts +105 -0
  1094. package/packages/orq-rc/src/models/errors/updateagent.ts +51 -0
  1095. package/packages/orq-rc/src/models/errors/updateagentschedule.ts +105 -0
  1096. package/packages/orq-rc/src/models/errors/updateeval.ts +51 -0
  1097. package/packages/orq-rc/src/models/errors/updateprompt.ts +51 -0
  1098. package/packages/orq-rc/src/models/errors/updatetool.ts +62 -0
  1099. package/packages/orq-rc/src/models/operations/apikeydelete.ts +39 -0
  1100. package/packages/orq-rc/src/models/operations/apikeyget.ts +49 -0
  1101. package/packages/orq-rc/src/models/operations/apikeylist.ts +118 -0
  1102. package/packages/orq-rc/src/models/operations/apikeyupdate.ts +44 -0
  1103. package/packages/orq-rc/src/models/operations/budgetdelete.ts +39 -0
  1104. package/packages/orq-rc/src/models/operations/budgetget.ts +39 -0
  1105. package/packages/orq-rc/src/models/operations/budgetgetconsumption.ts +41 -0
  1106. package/packages/orq-rc/src/models/operations/budgetlist.ts +109 -0
  1107. package/packages/orq-rc/src/models/operations/budgetresetconsumption.ts +48 -0
  1108. package/packages/orq-rc/src/models/operations/budgetupdate.ts +44 -0
  1109. package/packages/orq-rc/src/models/operations/cleardataset.ts +39 -0
  1110. package/packages/orq-rc/src/models/operations/createagentrequest.ts +5878 -0
  1111. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +125 -0
  1112. package/packages/orq-rc/src/models/operations/createagentschedule.ts +227 -0
  1113. package/packages/orq-rc/src/models/operations/createannotation.ts +256 -0
  1114. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +6581 -0
  1115. package/packages/orq-rc/src/models/operations/createchunk.ts +222 -0
  1116. package/packages/orq-rc/src/models/operations/createcompletion.ts +3528 -0
  1117. package/packages/orq-rc/src/models/operations/createdataset.ts +162 -0
  1118. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +3105 -0
  1119. package/packages/orq-rc/src/models/operations/createdatasource.ts +522 -0
  1120. package/packages/orq-rc/src/models/operations/createembedding.ts +219 -0
  1121. package/packages/orq-rc/src/models/operations/createeval.ts +663 -0
  1122. package/packages/orq-rc/src/models/operations/createimage.ts +1088 -0
  1123. package/packages/orq-rc/src/models/operations/createimageedit.ts +1045 -0
  1124. package/packages/orq-rc/src/models/operations/createimagevariation.ts +1067 -0
  1125. package/packages/orq-rc/src/models/operations/createknowledge.ts +964 -0
  1126. package/packages/orq-rc/src/models/operations/creatememory.ts +142 -0
  1127. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +152 -0
  1128. package/packages/orq-rc/src/models/operations/creatememorystore.ts +199 -0
  1129. package/packages/orq-rc/src/models/operations/createmoderation.ts +664 -0
  1130. package/packages/orq-rc/src/models/operations/createprompt.ts +5842 -0
  1131. package/packages/orq-rc/src/models/operations/creatererank.ts +944 -0
  1132. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +2122 -0
  1133. package/packages/orq-rc/src/models/operations/createspeech.ts +700 -0
  1134. package/packages/orq-rc/src/models/operations/createtool.ts +2485 -0
  1135. package/packages/orq-rc/src/models/operations/createtranscription.ts +955 -0
  1136. package/packages/orq-rc/src/models/operations/createtranslation.ts +930 -0
  1137. package/packages/orq-rc/src/models/operations/deleteagent.ts +39 -0
  1138. package/packages/orq-rc/src/models/operations/deleteagentschedule.ts +46 -0
  1139. package/packages/orq-rc/src/models/operations/deleteannotation.ts +125 -0
  1140. package/packages/orq-rc/src/models/operations/deletechunk.ts +53 -0
  1141. package/packages/orq-rc/src/models/operations/deletechunks.ts +125 -0
  1142. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +46 -0
  1143. package/packages/orq-rc/src/models/operations/deletedataset.ts +39 -0
  1144. package/packages/orq-rc/src/models/operations/deletedatasource.ts +46 -0
  1145. package/packages/orq-rc/src/models/operations/deleteeval.ts +31 -0
  1146. package/packages/orq-rc/src/models/operations/deleteidentity.ts +34 -0
  1147. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +39 -0
  1148. package/packages/orq-rc/src/models/operations/deletememory.ts +46 -0
  1149. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +55 -0
  1150. package/packages/orq-rc/src/models/operations/deletememorystore.ts +39 -0
  1151. package/packages/orq-rc/src/models/operations/deleteprompt.ts +34 -0
  1152. package/packages/orq-rc/src/models/operations/deletetool.ts +36 -0
  1153. package/packages/orq-rc/src/models/operations/deletev2humanevalsetsid.ts +36 -0
  1154. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4614 -0
  1155. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +729 -0
  1156. package/packages/orq-rc/src/models/operations/deployments.ts +1378 -0
  1157. package/packages/orq-rc/src/models/operations/deploymentstream.ts +4661 -0
  1158. package/packages/orq-rc/src/models/operations/filecontent.ts +39 -0
  1159. package/packages/orq-rc/src/models/operations/filedelete.ts +39 -0
  1160. package/packages/orq-rc/src/models/operations/fileget.ts +35 -0
  1161. package/packages/orq-rc/src/models/operations/filelist.ts +71 -0
  1162. package/packages/orq-rc/src/models/operations/fileupdate.ts +44 -0
  1163. package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
  1164. package/packages/orq-rc/src/models/operations/getallmemories.ts +173 -0
  1165. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +188 -0
  1166. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +220 -0
  1167. package/packages/orq-rc/src/models/operations/getallprompts.ts +3427 -0
  1168. package/packages/orq-rc/src/models/operations/getalltools.ts +1388 -0
  1169. package/packages/orq-rc/src/models/operations/getchunkscount.ts +142 -0
  1170. package/packages/orq-rc/src/models/operations/getevals.ts +168 -0
  1171. package/packages/orq-rc/src/models/operations/getonechunk.ts +171 -0
  1172. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +652 -0
  1173. package/packages/orq-rc/src/models/operations/getoneprompt.ts +3350 -0
  1174. package/packages/orq-rc/src/models/operations/getpromptversion.ts +3399 -0
  1175. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +162 -0
  1176. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +234 -0
  1177. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +235 -0
  1178. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +163 -0
  1179. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +110 -0
  1180. package/packages/orq-rc/src/models/operations/guardrailrulecreate.ts +126 -0
  1181. package/packages/orq-rc/src/models/operations/guardrailruledelete.ts +39 -0
  1182. package/packages/orq-rc/src/models/operations/guardrailruleget.ts +104 -0
  1183. package/packages/orq-rc/src/models/operations/guardrailrulelist.ts +138 -0
  1184. package/packages/orq-rc/src/models/operations/guardrailrulelistusedguardrails.ts +48 -0
  1185. package/packages/orq-rc/src/models/operations/guardrailruleupdate.ts +155 -0
  1186. package/packages/orq-rc/src/models/operations/index.ts +196 -0
  1187. package/packages/orq-rc/src/models/operations/invokeagent.ts +775 -0
  1188. package/packages/orq-rc/src/models/operations/invokeeval.ts +1257 -0
  1189. package/packages/orq-rc/src/models/operations/listagents.ts +3020 -0
  1190. package/packages/orq-rc/src/models/operations/listagentschedules.ts +69 -0
  1191. package/packages/orq-rc/src/models/operations/listchunks.ts +289 -0
  1192. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +282 -0
  1193. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2086 -0
  1194. package/packages/orq-rc/src/models/operations/listdatasets.ts +218 -0
  1195. package/packages/orq-rc/src/models/operations/listdatasources.ts +338 -0
  1196. package/packages/orq-rc/src/models/operations/listidentities.ts +94 -0
  1197. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +687 -0
  1198. package/packages/orq-rc/src/models/operations/listmodels.ts +60 -0
  1199. package/packages/orq-rc/src/models/operations/listpromptversions.ts +3474 -0
  1200. package/packages/orq-rc/src/models/operations/managementkeydelete.ts +39 -0
  1201. package/packages/orq-rc/src/models/operations/managementkeyget.ts +39 -0
  1202. package/packages/orq-rc/src/models/operations/managementkeylist.ts +85 -0
  1203. package/packages/orq-rc/src/models/operations/managementkeyupdate.ts +45 -0
  1204. package/packages/orq-rc/src/models/operations/modelazurefoundrydeployments.ts +90 -0
  1205. package/packages/orq-rc/src/models/operations/modelcreate.ts +186 -0
  1206. package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +236 -0
  1207. package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +204 -0
  1208. package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +146 -0
  1209. package/packages/orq-rc/src/models/operations/modeldelete.ts +34 -0
  1210. package/packages/orq-rc/src/models/operations/modeldisable.ts +39 -0
  1211. package/packages/orq-rc/src/models/operations/modelenable.ts +36 -0
  1212. package/packages/orq-rc/src/models/operations/modelupdate.ts +200 -0
  1213. package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +262 -0
  1214. package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +238 -0
  1215. package/packages/orq-rc/src/models/operations/modelvalidate.ts +57 -0
  1216. package/packages/orq-rc/src/models/operations/modelvalidateawsbedrock.ts +61 -0
  1217. package/packages/orq-rc/src/models/operations/notifierdelete.ts +36 -0
  1218. package/packages/orq-rc/src/models/operations/notifierget.ts +36 -0
  1219. package/packages/orq-rc/src/models/operations/notifierlist.ts +72 -0
  1220. package/packages/orq-rc/src/models/operations/notifierupdate.ts +41 -0
  1221. package/packages/orq-rc/src/models/operations/parse.ts +784 -0
  1222. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +415 -0
  1223. package/packages/orq-rc/src/models/operations/policycreate.ts +138 -0
  1224. package/packages/orq-rc/src/models/operations/policydelete.ts +39 -0
  1225. package/packages/orq-rc/src/models/operations/policyget.ts +110 -0
  1226. package/packages/orq-rc/src/models/operations/policylist.ts +94 -0
  1227. package/packages/orq-rc/src/models/operations/policyupdate.ts +174 -0
  1228. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
  1229. package/packages/orq-rc/src/models/operations/postv2feedback.ts +214 -0
  1230. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +465 -0
  1231. package/packages/orq-rc/src/models/operations/postv2feedbackevaluationremove.ts +43 -0
  1232. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +135 -0
  1233. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +365 -0
  1234. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +478 -0
  1235. package/packages/orq-rc/src/models/operations/projectdelete.ts +39 -0
  1236. package/packages/orq-rc/src/models/operations/projectget.ts +39 -0
  1237. package/packages/orq-rc/src/models/operations/projectlist.ts +58 -0
  1238. package/packages/orq-rc/src/models/operations/projectupdate.ts +44 -0
  1239. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3082 -0
  1240. package/packages/orq-rc/src/models/operations/retrieveagentschedule.ts +162 -0
  1241. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +1971 -0
  1242. package/packages/orq-rc/src/models/operations/retrievedataset.ts +150 -0
  1243. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +222 -0
  1244. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +55 -0
  1245. package/packages/orq-rc/src/models/operations/retrievememory.ts +112 -0
  1246. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +118 -0
  1247. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +144 -0
  1248. package/packages/orq-rc/src/models/operations/retrieveresponse.ts +225 -0
  1249. package/packages/orq-rc/src/models/operations/retrievetool.ts +1375 -0
  1250. package/packages/orq-rc/src/models/operations/routingrulecreate.ts +124 -0
  1251. package/packages/orq-rc/src/models/operations/routingruledelete.ts +39 -0
  1252. package/packages/orq-rc/src/models/operations/routingruleget.ts +102 -0
  1253. package/packages/orq-rc/src/models/operations/routingrulelist.ts +112 -0
  1254. package/packages/orq-rc/src/models/operations/routingrulelistusedmodels.ts +37 -0
  1255. package/packages/orq-rc/src/models/operations/routingruleupdate.ts +154 -0
  1256. package/packages/orq-rc/src/models/operations/runagent.ts +5412 -0
  1257. package/packages/orq-rc/src/models/operations/searchknowledge.ts +1762 -0
  1258. package/packages/orq-rc/src/models/operations/skilldelete.ts +39 -0
  1259. package/packages/orq-rc/src/models/operations/skillget.ts +40 -0
  1260. package/packages/orq-rc/src/models/operations/skilllist.ts +61 -0
  1261. package/packages/orq-rc/src/models/operations/skillupdate.ts +44 -0
  1262. package/packages/orq-rc/src/models/operations/smartrouterdelete.ts +36 -0
  1263. package/packages/orq-rc/src/models/operations/smartrouterget.ts +36 -0
  1264. package/packages/orq-rc/src/models/operations/smartrouterlist.ts +53 -0
  1265. package/packages/orq-rc/src/models/operations/smartroutersetenabled.ts +45 -0
  1266. package/packages/orq-rc/src/models/operations/smartrouterupdate.ts +41 -0
  1267. package/packages/orq-rc/src/models/operations/streamagent.ts +698 -0
  1268. package/packages/orq-rc/src/models/operations/streamrunagent.ts +5579 -0
  1269. package/packages/orq-rc/src/models/operations/tracesget.ts +36 -0
  1270. package/packages/orq-rc/src/models/operations/tracesgetspan.ts +40 -0
  1271. package/packages/orq-rc/src/models/operations/traceslistfacetvalues.ts +50 -0
  1272. package/packages/orq-rc/src/models/operations/traceslistspans.ts +43 -0
  1273. package/packages/orq-rc/src/models/operations/triggeragentschedule.ts +86 -0
  1274. package/packages/orq-rc/src/models/operations/updateagent.ts +6150 -0
  1275. package/packages/orq-rc/src/models/operations/updateagentschedule.ts +241 -0
  1276. package/packages/orq-rc/src/models/operations/updatechunk.ts +236 -0
  1277. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +3143 -0
  1278. package/packages/orq-rc/src/models/operations/updatedataset.ts +206 -0
  1279. package/packages/orq-rc/src/models/operations/updatedatasource.ts +256 -0
  1280. package/packages/orq-rc/src/models/operations/updateeval.ts +446 -0
  1281. package/packages/orq-rc/src/models/operations/updateidentity.ts +43 -0
  1282. package/packages/orq-rc/src/models/operations/updateknowledge.ts +1231 -0
  1283. package/packages/orq-rc/src/models/operations/updatememory.ts +142 -0
  1284. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +159 -0
  1285. package/packages/orq-rc/src/models/operations/updatememorystore.ts +188 -0
  1286. package/packages/orq-rc/src/models/operations/updateprompt.ts +5929 -0
  1287. package/packages/orq-rc/src/models/operations/updatetool.ts +2812 -0
  1288. package/packages/orq-rc/src/models/operations/webhookdelete.ts +31 -0
  1289. package/packages/orq-rc/src/models/operations/webhookget.ts +31 -0
  1290. package/packages/orq-rc/src/models/operations/webhooklist.ts +101 -0
  1291. package/packages/orq-rc/src/models/operations/webhookupdate.ts +84 -0
  1292. package/packages/orq-rc/src/sdk/agents.ts +216 -0
  1293. package/packages/orq-rc/src/sdk/annotations.ts +45 -0
  1294. package/packages/orq-rc/src/sdk/apikeys.ts +116 -0
  1295. package/packages/orq-rc/src/sdk/audio.ts +25 -0
  1296. package/packages/orq-rc/src/sdk/budgets.ts +136 -0
  1297. package/packages/orq-rc/src/sdk/chat.ts +13 -0
  1298. package/packages/orq-rc/src/sdk/chunking.ts +27 -0
  1299. package/packages/orq-rc/src/sdk/completions.ts +32 -0
  1300. package/packages/orq-rc/src/sdk/datasets.ts +204 -0
  1301. package/packages/orq-rc/src/sdk/deployments.ts +83 -0
  1302. package/packages/orq-rc/src/sdk/edits.ts +27 -0
  1303. package/packages/orq-rc/src/sdk/embeddings.ts +27 -0
  1304. package/packages/orq-rc/src/sdk/evals.ts +102 -0
  1305. package/packages/orq-rc/src/sdk/feedback.ts +60 -0
  1306. package/packages/orq-rc/src/sdk/files.ts +118 -0
  1307. package/packages/orq-rc/src/sdk/generations.ts +27 -0
  1308. package/packages/orq-rc/src/sdk/guardrailrules.ts +115 -0
  1309. package/packages/orq-rc/src/sdk/humanreviewsets.ts +84 -0
  1310. package/packages/orq-rc/src/sdk/identities.ts +100 -0
  1311. package/packages/orq-rc/src/sdk/images.ts +25 -0
  1312. package/packages/orq-rc/src/sdk/index.ts +5 -0
  1313. package/packages/orq-rc/src/sdk/knowledge.ts +312 -0
  1314. package/packages/orq-rc/src/sdk/managementkeys.ts +116 -0
  1315. package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
  1316. package/packages/orq-rc/src/sdk/models.ts +294 -0
  1317. package/packages/orq-rc/src/sdk/moderations.ts +24 -0
  1318. package/packages/orq-rc/src/sdk/notifiers.ts +100 -0
  1319. package/packages/orq-rc/src/sdk/orqcompletions.ts +32 -0
  1320. package/packages/orq-rc/src/sdk/orqresponses.ts +57 -0
  1321. package/packages/orq-rc/src/sdk/pii.ts +63 -0
  1322. package/packages/orq-rc/src/sdk/policies.ts +99 -0
  1323. package/packages/orq-rc/src/sdk/projects.ts +100 -0
  1324. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  1325. package/packages/orq-rc/src/sdk/reporting.ts +29 -0
  1326. package/packages/orq-rc/src/sdk/rerank.ts +27 -0
  1327. package/packages/orq-rc/src/sdk/responses.ts +47 -0
  1328. package/packages/orq-rc/src/sdk/router.ts +66 -0
  1329. package/packages/orq-rc/src/sdk/routingrules.ts +115 -0
  1330. package/packages/orq-rc/src/sdk/schedules.ts +117 -0
  1331. package/packages/orq-rc/src/sdk/sdk.ts +205 -0
  1332. package/packages/orq-rc/src/sdk/skills.ts +100 -0
  1333. package/packages/orq-rc/src/sdk/smartrouters.ts +118 -0
  1334. package/packages/orq-rc/src/sdk/speech.ts +27 -0
  1335. package/packages/orq-rc/src/sdk/telemetry.ts +27 -0
  1336. package/packages/orq-rc/src/sdk/tools.ts +135 -0
  1337. package/packages/orq-rc/src/sdk/traces.ts +170 -0
  1338. package/packages/orq-rc/src/sdk/transcriptions.ts +24 -0
  1339. package/packages/orq-rc/src/sdk/translations.ts +24 -0
  1340. package/packages/orq-rc/src/sdk/variations.ts +27 -0
  1341. package/packages/orq-rc/src/sdk/webhooks.ts +152 -0
  1342. package/packages/orq-rc/src/types/async.ts +69 -0
  1343. package/packages/orq-rc/src/types/blobs.ts +32 -0
  1344. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  1345. package/packages/orq-rc/src/types/enums.ts +45 -0
  1346. package/packages/orq-rc/src/types/fp.ts +50 -0
  1347. package/packages/orq-rc/src/types/index.ts +11 -0
  1348. package/packages/orq-rc/src/types/operations.ts +105 -0
  1349. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  1350. package/packages/orq-rc/src/types/streams.ts +21 -0
  1351. package/packages/orq-rc/src/types/unrecognized.ts +35 -0
  1352. package/sdk/budgets.d.ts +0 -7
  1353. package/sdk/budgets.d.ts.map +1 -1
  1354. package/sdk/budgets.js +0 -10
  1355. package/sdk/budgets.js.map +1 -1
  1356. package/sdk/feedback.d.ts +4 -1
  1357. package/sdk/feedback.d.ts.map +1 -1
  1358. package/sdk/feedback.js +4 -1
  1359. package/sdk/feedback.js.map +1 -1
  1360. package/sdk/reporting.d.ts +3 -1
  1361. package/sdk/reporting.d.ts.map +1 -1
  1362. package/sdk/reporting.js +3 -1
  1363. package/sdk/reporting.js.map +1 -1
  1364. package/sdk/sdk.d.ts +6 -0
  1365. package/sdk/sdk.d.ts.map +1 -1
  1366. package/sdk/sdk.js +8 -0
  1367. package/sdk/sdk.js.map +1 -1
  1368. package/sdk/telemetry.d.ts +12 -0
  1369. package/sdk/telemetry.d.ts.map +1 -0
  1370. package/sdk/telemetry.js +22 -0
  1371. package/sdk/telemetry.js.map +1 -0
  1372. package/sdk/traces.d.ts +3 -1
  1373. package/sdk/traces.d.ts.map +1 -1
  1374. package/sdk/traces.js +3 -1
  1375. package/sdk/traces.js.map +1 -1
  1376. package/sdk/webhooks.d.ts +64 -0
  1377. package/sdk/webhooks.d.ts.map +1 -0
  1378. package/sdk/webhooks.js +94 -0
  1379. package/sdk/webhooks.js.map +1 -0
  1380. package/src/funcs/datasetsClear.ts +11 -2
  1381. package/src/funcs/filesList.ts +1 -0
  1382. package/src/funcs/knowledgeListDatasources.ts +1 -0
  1383. package/src/funcs/notifiersList.ts +2 -0
  1384. package/src/funcs/reportingQuery.ts +3 -1
  1385. package/src/funcs/telemetryQuery.ts +162 -0
  1386. package/src/funcs/tracesAggregate.ts +3 -1
  1387. package/src/funcs/webhooksCount.ts +144 -0
  1388. package/src/funcs/webhooksCreate.ts +162 -0
  1389. package/src/funcs/webhooksDelete.ts +168 -0
  1390. package/src/funcs/webhooksGenerateSecret.ts +144 -0
  1391. package/src/funcs/webhooksGet.ts +168 -0
  1392. package/src/funcs/webhooksList.ts +175 -0
  1393. package/src/funcs/webhooksQuery.ts +164 -0
  1394. package/src/funcs/webhooksUpdate.ts +168 -0
  1395. package/src/lib/config.ts +3 -3
  1396. package/src/lib/http.ts +3 -1
  1397. package/src/lib/security.ts +10 -5
  1398. package/src/models/components/actionreviewrequestedstreamingevent.ts +3 -3
  1399. package/src/models/components/agentstartedstreamingevent.ts +3 -3
  1400. package/src/models/components/agenttoolinputcrud.ts +747 -0
  1401. package/src/models/components/apikey.ts +6 -0
  1402. package/src/models/components/budget.ts +6 -0
  1403. package/src/models/components/budgetalert.ts +92 -0
  1404. package/src/models/components/budgetalertdimension.ts +22 -0
  1405. package/src/models/components/codetoolinput.ts +62 -0
  1406. package/src/models/components/config.ts +44 -0
  1407. package/src/models/components/countwebhooksresponse.ts +37 -0
  1408. package/src/models/components/createbudgetrequest.ts +14 -0
  1409. package/src/models/components/createwebhookrequest.ts +100 -0
  1410. package/src/models/components/deletewebhookresponse.ts +34 -0
  1411. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  1412. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  1413. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  1414. package/src/models/components/evaluatorresponsellm.ts +2 -2
  1415. package/src/models/components/evaluatorresponsepython.ts +2 -2
  1416. package/src/models/components/evaluatorresponseragas.ts +2 -2
  1417. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  1418. package/src/models/components/functiontoolinput.ts +60 -0
  1419. package/src/models/components/generatewebhooksecretresponse.ts +37 -0
  1420. package/src/models/components/httptoolinput.ts +62 -0
  1421. package/src/models/components/identity.ts +15 -9
  1422. package/src/models/components/index.ts +29 -4
  1423. package/src/models/components/jsonschematoolinput.ts +60 -0
  1424. package/src/models/components/listwebhooksresponse.ts +53 -0
  1425. package/src/models/components/mcptoolinput.ts +63 -0
  1426. package/src/models/components/modeldocument.ts +3 -0
  1427. package/src/models/components/modelsconfig.ts +1 -0
  1428. package/src/models/components/providertoolinput.ts +72 -0
  1429. package/src/models/components/queryparamspagination.ts +40 -0
  1430. package/src/models/components/queryparamssort.ts +32 -0
  1431. package/src/models/components/querytelemetrymeta.ts +38 -0
  1432. package/src/models/components/querytelemetryrequest.ts +85 -0
  1433. package/src/models/components/querytelemetryresponse.ts +42 -0
  1434. package/src/models/components/querywebhooksrequest.ts +85 -0
  1435. package/src/models/components/querywebhooksresponse.ts +34 -0
  1436. package/src/models/components/reasoningpart.ts +1 -1
  1437. package/src/models/components/responsecustomtoolcallinputdeltastreamevent.ts +79 -0
  1438. package/src/models/components/responsecustomtoolcallinputdonestreamevent.ts +76 -0
  1439. package/src/models/components/responsemcplisttoolscompletedstreamevent.ts +73 -0
  1440. package/src/models/components/responsemcplisttoolsfailedstreamevent.ts +68 -0
  1441. package/src/models/components/responsemcplisttoolsinprogressstreamevent.ts +73 -0
  1442. package/src/models/components/responsestreamevent.ts +30 -0
  1443. package/src/models/components/telemetryrow.ts +42 -0
  1444. package/src/models/components/thinkingconfigenabledschema.ts +1 -0
  1445. package/src/models/components/updatebudgetrequest.ts +21 -0
  1446. package/src/models/components/webhook.ts +116 -0
  1447. package/src/models/operations/createagentrequest.ts +998 -2311
  1448. package/src/models/operations/createchatcompletion.ts +1 -0
  1449. package/src/models/operations/createdataset.ts +1 -1
  1450. package/src/models/operations/createdatasetitem.ts +237 -19
  1451. package/src/models/operations/createdatasource.ts +78 -2
  1452. package/src/models/operations/createeval.ts +179 -175
  1453. package/src/models/operations/createknowledge.ts +18 -10
  1454. package/src/models/operations/createprompt.ts +5 -0
  1455. package/src/models/operations/createrouterresponse.ts +94 -44
  1456. package/src/models/operations/createtool.ts +58 -61
  1457. package/src/models/operations/deploymentgetconfig.ts +1 -0
  1458. package/src/models/operations/deploymentinvoke.ts +2 -0
  1459. package/src/models/operations/deployments.ts +3 -0
  1460. package/src/models/operations/deploymentstream.ts +2 -0
  1461. package/src/models/operations/filelist.ts +11 -0
  1462. package/src/models/operations/getallmemories.ts +1 -1
  1463. package/src/models/operations/getallmemorydocuments.ts +1 -1
  1464. package/src/models/operations/getallmemorystores.ts +1 -1
  1465. package/src/models/operations/getallprompts.ts +5 -1
  1466. package/src/models/operations/getalltools.ts +11 -6
  1467. package/src/models/operations/getevals.ts +1 -1
  1468. package/src/models/operations/getoneprompt.ts +4 -0
  1469. package/src/models/operations/getpromptversion.ts +4 -0
  1470. package/src/models/operations/getv2evaluatorsidversions.ts +1 -1
  1471. package/src/models/operations/getv2humanevalsets.ts +2 -2
  1472. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  1473. package/src/models/operations/getv2toolstoolidversions.ts +1 -1
  1474. package/src/models/operations/index.ts +4 -0
  1475. package/src/models/operations/listagents.ts +7 -5
  1476. package/src/models/operations/listchunks.ts +1 -1
  1477. package/src/models/operations/listdatasetdatapoints.ts +314 -85
  1478. package/src/models/operations/listdatasets.ts +2 -2
  1479. package/src/models/operations/listdatasources.ts +99 -2
  1480. package/src/models/operations/listpromptversions.ts +5 -1
  1481. package/src/models/operations/modelcreate.ts +2 -0
  1482. package/src/models/operations/modelcreateautorouter.ts +2 -0
  1483. package/src/models/operations/modelcreateawsbedrock.ts +2 -0
  1484. package/src/models/operations/modelcreateopenailike.ts +2 -0
  1485. package/src/models/operations/modelcreatevertex.ts +2 -0
  1486. package/src/models/operations/modelupdate.ts +2 -0
  1487. package/src/models/operations/modelupdateautorouter.ts +2 -0
  1488. package/src/models/operations/modelupdateawsbedrock.ts +2 -0
  1489. package/src/models/operations/modelupdateopenailike.ts +2 -0
  1490. package/src/models/operations/notifierlist.ts +13 -0
  1491. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  1492. package/src/models/operations/postv2feedbackevaluation.ts +119 -11
  1493. package/src/models/operations/postv2humanevalsets.ts +2 -2
  1494. package/src/models/operations/retrieveagentrequest.ts +7 -5
  1495. package/src/models/operations/retrievedatapoint.ts +234 -9
  1496. package/src/models/operations/retrievedataset.ts +1 -1
  1497. package/src/models/operations/retrievedatasource.ts +72 -2
  1498. package/src/models/operations/retrieveresponse.ts +8 -8
  1499. package/src/models/operations/retrievetool.ts +11 -6
  1500. package/src/models/operations/runagent.ts +215 -232
  1501. package/src/models/operations/streamrunagent.ts +293 -328
  1502. package/src/models/operations/updateagent.ts +823 -2199
  1503. package/src/models/operations/updatedatapoint.ts +229 -9
  1504. package/src/models/operations/updatedataset.ts +1 -1
  1505. package/src/models/operations/updatedatasource.ts +72 -2
  1506. package/src/models/operations/updateprompt.ts +5 -0
  1507. package/src/models/operations/updatetool.ts +18 -7
  1508. package/src/models/operations/webhookdelete.ts +31 -0
  1509. package/src/models/operations/webhookget.ts +31 -0
  1510. package/src/models/operations/webhooklist.ts +101 -0
  1511. package/src/models/operations/webhookupdate.ts +84 -0
  1512. package/src/sdk/budgets.ts +0 -18
  1513. package/src/sdk/feedback.ts +4 -1
  1514. package/src/sdk/reporting.ts +3 -1
  1515. package/src/sdk/sdk.ts +12 -0
  1516. package/src/sdk/telemetry.ts +27 -0
  1517. package/src/sdk/traces.ts +3 -1
  1518. package/src/sdk/webhooks.ts +152 -0
  1519. package/funcs/budgetsCheck.d.ts.map +0 -1
  1520. package/funcs/budgetsCheck.js.map +0 -1
  1521. package/models/components/budgetrejection.d.ts +0 -17
  1522. package/models/components/budgetrejection.d.ts.map +0 -1
  1523. package/models/components/budgetrejection.js.map +0 -1
  1524. package/models/components/checkbudgetsrequest.d.ts +0 -72
  1525. package/models/components/checkbudgetsrequest.d.ts.map +0 -1
  1526. package/models/components/checkbudgetsrequest.js.map +0 -1
  1527. package/models/components/checkbudgetsresponse.d.ts +0 -34
  1528. package/models/components/checkbudgetsresponse.d.ts.map +0 -1
  1529. package/models/components/checkbudgetsresponse.js.map +0 -1
  1530. package/models/components/dimensioninfo.d.ts +0 -15
  1531. package/models/components/dimensioninfo.d.ts.map +0 -1
  1532. package/models/components/dimensioninfo.js.map +0 -1
  1533. package/src/models/components/budgetrejection.ts +0 -48
  1534. package/src/models/components/checkbudgetsrequest.ts +0 -111
  1535. package/src/models/components/checkbudgetsresponse.ts +0 -62
  1536. package/src/models/components/dimensioninfo.ts +0 -43
@@ -0,0 +1,3474 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import * as components from "../components/index.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+
13
+ export type ListPromptVersionsRequest = {
14
+ promptId: string;
15
+ /**
16
+ * A limit on the number of objects to be returned. Limit can range between 1 and 200, and the default is 10
17
+ */
18
+ limit?: number | undefined;
19
+ /**
20
+ * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
21
+ */
22
+ startingAfter?: string | undefined;
23
+ /**
24
+ * 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.
25
+ */
26
+ endingBefore?: string | undefined;
27
+ };
28
+
29
+ export const ListPromptVersionsObject = {
30
+ List: "list",
31
+ } as const;
32
+ export type ListPromptVersionsObject = ClosedEnum<
33
+ typeof ListPromptVersionsObject
34
+ >;
35
+
36
+ /**
37
+ * The modality of the model
38
+ */
39
+ export const ListPromptVersionsModelType = {
40
+ Chat: "chat",
41
+ Completion: "completion",
42
+ Embedding: "embedding",
43
+ Image: "image",
44
+ Tts: "tts",
45
+ Stt: "stt",
46
+ Rerank: "rerank",
47
+ Ocr: "ocr",
48
+ Moderation: "moderation",
49
+ Vision: "vision",
50
+ } as const;
51
+ /**
52
+ * The modality of the model
53
+ */
54
+ export type ListPromptVersionsModelType = ClosedEnum<
55
+ typeof ListPromptVersionsModelType
56
+ >;
57
+
58
+ /**
59
+ * Only supported on `image` models.
60
+ */
61
+ export const ListPromptVersionsFormat = {
62
+ Url: "url",
63
+ B64Json: "b64_json",
64
+ Text: "text",
65
+ JsonObject: "json_object",
66
+ } as const;
67
+ /**
68
+ * Only supported on `image` models.
69
+ */
70
+ export type ListPromptVersionsFormat = ClosedEnum<
71
+ typeof ListPromptVersionsFormat
72
+ >;
73
+
74
+ export const ListPromptVersionsResponseFormat6 = {
75
+ Json: "json",
76
+ Text: "text",
77
+ Srt: "srt",
78
+ VerboseJson: "verbose_json",
79
+ Vtt: "vtt",
80
+ } as const;
81
+ export type ListPromptVersionsResponseFormat6 = ClosedEnum<
82
+ typeof ListPromptVersionsResponseFormat6
83
+ >;
84
+
85
+ export const ListPromptVersionsResponseFormat5 = {
86
+ Url: "url",
87
+ Base64Json: "base64_json",
88
+ } as const;
89
+ export type ListPromptVersionsResponseFormat5 = ClosedEnum<
90
+ typeof ListPromptVersionsResponseFormat5
91
+ >;
92
+
93
+ export const ListPromptVersionsResponseFormat4 = {
94
+ Mp3: "mp3",
95
+ Opus: "opus",
96
+ Aac: "aac",
97
+ Flac: "flac",
98
+ Wav: "wav",
99
+ Pcm: "pcm",
100
+ } as const;
101
+ export type ListPromptVersionsResponseFormat4 = ClosedEnum<
102
+ typeof ListPromptVersionsResponseFormat4
103
+ >;
104
+
105
+ export const ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType =
106
+ {
107
+ Text: "text",
108
+ } as const;
109
+ export type ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType =
110
+ ClosedEnum<
111
+ typeof ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType
112
+ >;
113
+
114
+ export type ListPromptVersionsResponseFormat3 = {
115
+ type:
116
+ ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType;
117
+ };
118
+
119
+ export const ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType =
120
+ {
121
+ JsonObject: "json_object",
122
+ } as const;
123
+ export type ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType =
124
+ ClosedEnum<
125
+ typeof ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType
126
+ >;
127
+
128
+ export type ListPromptVersionsResponseFormat2 = {
129
+ type: ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType;
130
+ };
131
+
132
+ export const ListPromptVersionsResponseFormatPromptsResponse200Type = {
133
+ JsonSchema: "json_schema",
134
+ } as const;
135
+ export type ListPromptVersionsResponseFormatPromptsResponse200Type = ClosedEnum<
136
+ typeof ListPromptVersionsResponseFormatPromptsResponse200Type
137
+ >;
138
+
139
+ export type ListPromptVersionsResponseFormatPromptsResponseJsonSchema = {
140
+ name: string;
141
+ description?: string | null | undefined;
142
+ strict?: boolean | undefined;
143
+ schema: { [k: string]: any };
144
+ };
145
+
146
+ export type ListPromptVersionsResponseFormat1 = {
147
+ type: ListPromptVersionsResponseFormatPromptsResponse200Type;
148
+ displayName?: string | undefined;
149
+ jsonSchema: ListPromptVersionsResponseFormatPromptsResponseJsonSchema;
150
+ };
151
+
152
+ /**
153
+ * An object specifying the format that the model must output.
154
+ *
155
+ * @remarks
156
+ *
157
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
158
+ *
159
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
160
+ *
161
+ * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
162
+ */
163
+ export type ListPromptVersionsPromptsResponseFormat =
164
+ | ListPromptVersionsResponseFormat1
165
+ | ListPromptVersionsResponseFormat2
166
+ | ListPromptVersionsResponseFormat3
167
+ | ListPromptVersionsResponseFormat4
168
+ | ListPromptVersionsResponseFormat5
169
+ | ListPromptVersionsResponseFormat6;
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
+
233
+ /**
234
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
235
+ */
236
+ export const ListPromptVersionsPhotoRealVersion = {
237
+ V1: "v1",
238
+ V2: "v2",
239
+ } as const;
240
+ /**
241
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
242
+ */
243
+ export type ListPromptVersionsPhotoRealVersion = ClosedEnum<
244
+ typeof ListPromptVersionsPhotoRealVersion
245
+ >;
246
+
247
+ /**
248
+ * The format to return the embeddings
249
+ */
250
+ export const ListPromptVersionsEncodingFormat = {
251
+ Float: "float",
252
+ Base64: "base64",
253
+ } as const;
254
+ /**
255
+ * The format to return the embeddings
256
+ */
257
+ export type ListPromptVersionsEncodingFormat = ClosedEnum<
258
+ typeof ListPromptVersionsEncodingFormat
259
+ >;
260
+
261
+ /**
262
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
263
+ */
264
+ export const ListPromptVersionsPromptsReasoningEffort = {
265
+ None: "none",
266
+ Disable: "disable",
267
+ Minimal: "minimal",
268
+ Low: "low",
269
+ Medium: "medium",
270
+ High: "high",
271
+ } as const;
272
+ /**
273
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
274
+ */
275
+ export type ListPromptVersionsPromptsReasoningEffort = ClosedEnum<
276
+ typeof ListPromptVersionsPromptsReasoningEffort
277
+ >;
278
+
279
+ /**
280
+ * Controls the verbosity of the model output.
281
+ */
282
+ export const ListPromptVersionsVerbosity = {
283
+ Low: "low",
284
+ Medium: "medium",
285
+ High: "high",
286
+ } as const;
287
+ /**
288
+ * Controls the verbosity of the model output.
289
+ */
290
+ export type ListPromptVersionsVerbosity = ClosedEnum<
291
+ typeof ListPromptVersionsVerbosity
292
+ >;
293
+
294
+ /**
295
+ * The level of thinking to use for the model. Only supported by `Google AI`
296
+ */
297
+ export const ListPromptVersionsThinkingLevel = {
298
+ Minimal: "minimal",
299
+ Low: "low",
300
+ Medium: "medium",
301
+ High: "high",
302
+ } as const;
303
+ /**
304
+ * The level of thinking to use for the model. Only supported by `Google AI`
305
+ */
306
+ export type ListPromptVersionsThinkingLevel = ClosedEnum<
307
+ typeof ListPromptVersionsThinkingLevel
308
+ >;
309
+
310
+ /**
311
+ * Model Parameters: Not all parameters apply to every model
312
+ */
313
+ export type ListPromptVersionsModelParameters = {
314
+ /**
315
+ * Only supported on `chat` and `completion` models.
316
+ */
317
+ temperature?: number | undefined;
318
+ /**
319
+ * Only supported on `chat` and `completion` models.
320
+ */
321
+ maxTokens?: number | undefined;
322
+ /**
323
+ * Only supported on `chat` and `completion` models.
324
+ */
325
+ topK?: number | undefined;
326
+ /**
327
+ * Only supported on `chat` and `completion` models.
328
+ */
329
+ topP?: number | undefined;
330
+ /**
331
+ * Only supported on `chat` and `completion` models.
332
+ */
333
+ frequencyPenalty?: number | undefined;
334
+ /**
335
+ * Only supported on `chat` and `completion` models.
336
+ */
337
+ presencePenalty?: number | undefined;
338
+ /**
339
+ * Only supported on `image` models.
340
+ */
341
+ numImages?: number | undefined;
342
+ /**
343
+ * Best effort deterministic seed for the model. Currently only OpenAI models support these
344
+ */
345
+ seed?: number | undefined;
346
+ /**
347
+ * Only supported on `image` models.
348
+ */
349
+ format?: ListPromptVersionsFormat | undefined;
350
+ /**
351
+ * Only supported on `image` models.
352
+ */
353
+ dimensions?: string | undefined;
354
+ /**
355
+ * Only supported on `image` models.
356
+ */
357
+ quality?: string | undefined;
358
+ /**
359
+ * Only supported on `image` models.
360
+ */
361
+ style?: string | undefined;
362
+ /**
363
+ * An object specifying the format that the model must output.
364
+ *
365
+ * @remarks
366
+ *
367
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
368
+ *
369
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
370
+ *
371
+ * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
372
+ */
373
+ responseFormat?:
374
+ | ListPromptVersionsResponseFormat1
375
+ | ListPromptVersionsResponseFormat2
376
+ | ListPromptVersionsResponseFormat3
377
+ | ListPromptVersionsResponseFormat4
378
+ | ListPromptVersionsResponseFormat5
379
+ | ListPromptVersionsResponseFormat6
380
+ | null
381
+ | undefined;
382
+ /**
383
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
384
+ */
385
+ cacheControl?: ListPromptVersionsPromptsCacheControl | null | undefined;
386
+ /**
387
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
388
+ */
389
+ photoRealVersion?: ListPromptVersionsPhotoRealVersion | undefined;
390
+ /**
391
+ * The format to return the embeddings
392
+ */
393
+ encodingFormat?: ListPromptVersionsEncodingFormat | undefined;
394
+ /**
395
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
396
+ */
397
+ reasoningEffort?: ListPromptVersionsPromptsReasoningEffort | undefined;
398
+ /**
399
+ * Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
400
+ */
401
+ budgetTokens?: number | undefined;
402
+ /**
403
+ * Controls the verbosity of the model output.
404
+ */
405
+ verbosity?: ListPromptVersionsVerbosity | undefined;
406
+ /**
407
+ * The level of thinking to use for the model. Only supported by `Google AI`
408
+ */
409
+ thinkingLevel?: ListPromptVersionsThinkingLevel | undefined;
410
+ };
411
+
412
+ export const ListPromptVersionsProvider = {
413
+ Openai: "openai",
414
+ Groq: "groq",
415
+ Cohere: "cohere",
416
+ Azure: "azure",
417
+ Aws: "aws",
418
+ Google: "google",
419
+ GoogleAi: "google-ai",
420
+ Huggingface: "huggingface",
421
+ Togetherai: "togetherai",
422
+ Perplexity: "perplexity",
423
+ Anthropic: "anthropic",
424
+ Leonardoai: "leonardoai",
425
+ Fal: "fal",
426
+ Nvidia: "nvidia",
427
+ Jina: "jina",
428
+ Elevenlabs: "elevenlabs",
429
+ Litellm: "litellm",
430
+ Cerebras: "cerebras",
431
+ Openailike: "openailike",
432
+ Bytedance: "bytedance",
433
+ Mistral: "mistral",
434
+ Deepseek: "deepseek",
435
+ Moonshotai: "moonshotai",
436
+ Zai: "zai",
437
+ Minimax: "minimax",
438
+ Xai: "xai",
439
+ Alibaba: "alibaba",
440
+ Tensorix: "tensorix",
441
+ Scaleway: "scaleway",
442
+ Hcompany: "hcompany",
443
+ Inceptron: "inceptron",
444
+ Wafer: "wafer",
445
+ Poolside: "poolside",
446
+ Tencent: "tencent",
447
+ Nebius: "nebius",
448
+ Reson8: "reson8",
449
+ Slack: "slack",
450
+ Orq: "orq",
451
+ } as const;
452
+ export type ListPromptVersionsProvider = ClosedEnum<
453
+ typeof ListPromptVersionsProvider
454
+ >;
455
+
456
+ /**
457
+ * The role of the prompt message
458
+ */
459
+ export const ListPromptVersionsRole = {
460
+ System: "system",
461
+ Developer: "developer",
462
+ Assistant: "assistant",
463
+ User: "user",
464
+ Exception: "exception",
465
+ Tool: "tool",
466
+ Prompt: "prompt",
467
+ Correction: "correction",
468
+ ExpectedOutput: "expected_output",
469
+ } as const;
470
+ /**
471
+ * The role of the prompt message
472
+ */
473
+ export type ListPromptVersionsRole = ClosedEnum<typeof ListPromptVersionsRole>;
474
+
475
+ export type ListPromptVersions2File = {
476
+ /**
477
+ * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
478
+ */
479
+ fileData?: string | undefined;
480
+ /**
481
+ * URL to the file. Only supported by Anthropic Claude models for PDF files.
482
+ */
483
+ uri?: string | undefined;
484
+ /**
485
+ * MIME type of the file (e.g., application/pdf, image/png)
486
+ */
487
+ mimeType?: string | undefined;
488
+ /**
489
+ * The name of the file, used when passing the file to the model as a string.
490
+ */
491
+ filename?: string | undefined;
492
+ };
493
+
494
+ export type ListPromptVersions23 = {
495
+ /**
496
+ * The type of the content part. Always `file`.
497
+ */
498
+ type: "file";
499
+ file: ListPromptVersions2File;
500
+ };
501
+
502
+ export type ListPromptVersions2ImageUrl = {
503
+ /**
504
+ * The orq.ai id of the image
505
+ */
506
+ id?: string | undefined;
507
+ /**
508
+ * Either a URL of the image or the base64 encoded data URI.
509
+ */
510
+ url: string;
511
+ /**
512
+ * Specifies the detail level of the image. Currently only supported with OpenAI models
513
+ */
514
+ detail?: string | undefined;
515
+ };
516
+
517
+ /**
518
+ * The image part of the prompt message. Only supported with vision models.
519
+ */
520
+ export type ListPromptVersions22 = {
521
+ type: "image_url";
522
+ imageUrl: ListPromptVersions2ImageUrl;
523
+ };
524
+
525
+ /**
526
+ * Text content part of a prompt message
527
+ */
528
+ export type ListPromptVersions21 = {
529
+ type: "text";
530
+ text: string;
531
+ };
532
+
533
+ export type ListPromptVersionsContent2 =
534
+ | ListPromptVersions21
535
+ | ListPromptVersions22
536
+ | ListPromptVersions23;
537
+
538
+ /**
539
+ * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
540
+ */
541
+ export type ListPromptVersionsContent =
542
+ | string
543
+ | Array<ListPromptVersions21 | ListPromptVersions22 | ListPromptVersions23>;
544
+
545
+ export const ListPromptVersionsPromptsResponse200Type = {
546
+ Function: "function",
547
+ } as const;
548
+ export type ListPromptVersionsPromptsResponse200Type = ClosedEnum<
549
+ typeof ListPromptVersionsPromptsResponse200Type
550
+ >;
551
+
552
+ export type ListPromptVersionsFunction = {
553
+ name: string;
554
+ /**
555
+ * JSON string arguments for the functions
556
+ */
557
+ arguments: string;
558
+ };
559
+
560
+ export type ListPromptVersionsToolCalls = {
561
+ id?: string | undefined;
562
+ index?: number | undefined;
563
+ type: ListPromptVersionsPromptsResponse200Type;
564
+ function: ListPromptVersionsFunction;
565
+ };
566
+
567
+ export type ListPromptVersionsMessages = {
568
+ /**
569
+ * The role of the prompt message
570
+ */
571
+ role: ListPromptVersionsRole;
572
+ /**
573
+ * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
574
+ */
575
+ content:
576
+ | string
577
+ | Array<ListPromptVersions21 | ListPromptVersions22 | ListPromptVersions23>
578
+ | null;
579
+ toolCalls?: Array<ListPromptVersionsToolCalls> | undefined;
580
+ toolCallId?: string | null | undefined;
581
+ };
582
+
583
+ /**
584
+ * [DEPRECATED] Use the `prompt` property instead. A list of messages compatible with the openAI schema.
585
+ *
586
+ * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
587
+ */
588
+ export type ListPromptVersionsPromptConfig = {
589
+ stream?: boolean | undefined;
590
+ model?: string | null | undefined;
591
+ /**
592
+ * The id of the resource
593
+ */
594
+ modelDbId?: string | null | undefined;
595
+ /**
596
+ * The modality of the model
597
+ */
598
+ modelType?: ListPromptVersionsModelType | null | undefined;
599
+ /**
600
+ * Model Parameters: Not all parameters apply to every model
601
+ */
602
+ modelParameters?: ListPromptVersionsModelParameters | undefined;
603
+ provider?: ListPromptVersionsProvider | null | undefined;
604
+ /**
605
+ * The ID of the integration to use
606
+ */
607
+ integrationId?: string | null | undefined;
608
+ version?: string | undefined;
609
+ messages: Array<ListPromptVersionsMessages>;
610
+ };
611
+
612
+ /**
613
+ * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
614
+ */
615
+ export const ListPromptVersionsVoice = {
616
+ Alloy: "alloy",
617
+ Echo: "echo",
618
+ Fable: "fable",
619
+ Onyx: "onyx",
620
+ Nova: "nova",
621
+ Shimmer: "shimmer",
622
+ } as const;
623
+ /**
624
+ * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
625
+ */
626
+ export type ListPromptVersionsVoice = ClosedEnum<
627
+ typeof ListPromptVersionsVoice
628
+ >;
629
+
630
+ /**
631
+ * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
632
+ */
633
+ export const ListPromptVersionsPromptsFormat = {
634
+ Wav: "wav",
635
+ Mp3: "mp3",
636
+ Flac: "flac",
637
+ Opus: "opus",
638
+ Pcm16: "pcm16",
639
+ } as const;
640
+ /**
641
+ * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
642
+ */
643
+ export type ListPromptVersionsPromptsFormat = ClosedEnum<
644
+ typeof ListPromptVersionsPromptsFormat
645
+ >;
646
+
647
+ /**
648
+ * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
649
+ */
650
+ export type ListPromptVersionsAudio = {
651
+ /**
652
+ * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
653
+ */
654
+ voice: ListPromptVersionsVoice;
655
+ /**
656
+ * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
657
+ */
658
+ format: ListPromptVersionsPromptsFormat;
659
+ };
660
+
661
+ export type ListPromptVersionsResponseFormatJsonSchema = {
662
+ /**
663
+ * A description of what the response format is for, used by the model to determine how to respond in the format.
664
+ */
665
+ description?: string | undefined;
666
+ /**
667
+ * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
668
+ */
669
+ name: string;
670
+ /**
671
+ * The schema for the response format, described as a JSON Schema object.
672
+ */
673
+ schema?: any | undefined;
674
+ /**
675
+ * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
676
+ */
677
+ strict: boolean;
678
+ };
679
+
680
+ /**
681
+ * @remarks
682
+ *
683
+ * JSON Schema response format. Used to generate structured JSON responses
684
+ */
685
+ export type ListPromptVersionsResponseFormatPromptsJSONSchema = {
686
+ type: "json_schema";
687
+ jsonSchema: ListPromptVersionsResponseFormatJsonSchema;
688
+ };
689
+
690
+ /**
691
+ * @remarks
692
+ *
693
+ * JSON object response format. An older method of generating JSON responses. Using `json_schema` is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.
694
+ */
695
+ export type ListPromptVersionsResponseFormatJSONObject = {
696
+ type: "json_object";
697
+ };
698
+
699
+ /**
700
+ * @remarks
701
+ *
702
+ * Default response format. Used to generate text responses
703
+ */
704
+ export type ListPromptVersionsResponseFormatText = {
705
+ type: "text";
706
+ };
707
+
708
+ /**
709
+ * An object specifying the format that the model must output
710
+ */
711
+ export type ListPromptVersionsResponseFormat =
712
+ | ListPromptVersionsResponseFormatText
713
+ | ListPromptVersionsResponseFormatJSONObject
714
+ | ListPromptVersionsResponseFormatPromptsJSONSchema;
715
+
716
+ /**
717
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
718
+ *
719
+ * @remarks
720
+ *
721
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
722
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
723
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
724
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
725
+ *
726
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
727
+ */
728
+ export const ListPromptVersionsReasoningEffort = {
729
+ None: "none",
730
+ Minimal: "minimal",
731
+ Low: "low",
732
+ Medium: "medium",
733
+ High: "high",
734
+ Xhigh: "xhigh",
735
+ } as const;
736
+ /**
737
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
738
+ *
739
+ * @remarks
740
+ *
741
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
742
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
743
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
744
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
745
+ *
746
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
747
+ */
748
+ export type ListPromptVersionsReasoningEffort = ClosedEnum<
749
+ typeof ListPromptVersionsReasoningEffort
750
+ >;
751
+
752
+ /**
753
+ * Up to 4 sequences where the API will stop generating further tokens.
754
+ */
755
+ export type ListPromptVersionsStop = string | Array<string>;
756
+
757
+ /**
758
+ * Options for streaming response. Only set this when you set stream: true.
759
+ */
760
+ export type ListPromptVersionsStreamOptions = {
761
+ /**
762
+ * If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
763
+ */
764
+ includeUsage?: boolean | undefined;
765
+ };
766
+
767
+ export type ListPromptVersionsThinking =
768
+ | components.ThinkingConfigDisabledSchema
769
+ | components.ThinkingConfigEnabledSchema
770
+ | components.ThinkingConfigAdaptiveSchema;
771
+
772
+ /**
773
+ * The type of the tool. Currently, only function is supported.
774
+ */
775
+ export const ListPromptVersionsToolChoiceType = {
776
+ Function: "function",
777
+ } as const;
778
+ /**
779
+ * The type of the tool. Currently, only function is supported.
780
+ */
781
+ export type ListPromptVersionsToolChoiceType = ClosedEnum<
782
+ typeof ListPromptVersionsToolChoiceType
783
+ >;
784
+
785
+ export type ListPromptVersionsToolChoiceFunction = {
786
+ /**
787
+ * The name of the function to call.
788
+ */
789
+ name: string;
790
+ };
791
+
792
+ export type ListPromptVersionsToolChoice2 = {
793
+ /**
794
+ * The type of the tool. Currently, only function is supported.
795
+ */
796
+ type?: ListPromptVersionsToolChoiceType | undefined;
797
+ function: ListPromptVersionsToolChoiceFunction;
798
+ };
799
+
800
+ export const ListPromptVersionsToolChoice1 = {
801
+ None: "none",
802
+ Auto: "auto",
803
+ Required: "required",
804
+ } as const;
805
+ export type ListPromptVersionsToolChoice1 = ClosedEnum<
806
+ typeof ListPromptVersionsToolChoice1
807
+ >;
808
+
809
+ /**
810
+ * Controls which (if any) tool is called by the model.
811
+ */
812
+ export type ListPromptVersionsToolChoice =
813
+ | ListPromptVersionsToolChoice2
814
+ | ListPromptVersionsToolChoice1;
815
+
816
+ export const ListPromptVersionsModalities = {
817
+ Text: "text",
818
+ Audio: "audio",
819
+ } as const;
820
+ export type ListPromptVersionsModalities = ClosedEnum<
821
+ typeof ListPromptVersionsModalities
822
+ >;
823
+
824
+ /**
825
+ * The key of the guardrail.
826
+ */
827
+ export const ListPromptVersionsId1 = {
828
+ OrqPiiDetection: "orq_pii_detection",
829
+ OrqSecretDetection: "orq_secret_detection",
830
+ OrqSexualModeration: "orq_sexual_moderation",
831
+ OrqHarmfulModeration: "orq_harmful_moderation",
832
+ } as const;
833
+ /**
834
+ * The key of the guardrail.
835
+ */
836
+ export type ListPromptVersionsId1 = ClosedEnum<typeof ListPromptVersionsId1>;
837
+
838
+ export type ListPromptVersionsId = ListPromptVersionsId1 | string;
839
+
840
+ /**
841
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
842
+ */
843
+ export const ListPromptVersionsExecuteOn = {
844
+ Input: "input",
845
+ Output: "output",
846
+ } as const;
847
+ /**
848
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
849
+ */
850
+ export type ListPromptVersionsExecuteOn = ClosedEnum<
851
+ typeof ListPromptVersionsExecuteOn
852
+ >;
853
+
854
+ export type ListPromptVersionsGuardrails = {
855
+ id: ListPromptVersionsId1 | string;
856
+ /**
857
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
858
+ */
859
+ executeOn: ListPromptVersionsExecuteOn;
860
+ };
861
+
862
+ export type ListPromptVersionsPlugins =
863
+ | components.PIIRedactionPluginEn
864
+ | components.PIIRedactionPluginNl
865
+ | components.PIIRedactionPluginAuto;
866
+
867
+ export type ListPromptVersionsFallbacks = {
868
+ /**
869
+ * Fallback model identifier
870
+ */
871
+ model: string;
872
+ };
873
+
874
+ /**
875
+ * Retry configuration for the request
876
+ */
877
+ export type ListPromptVersionsRetry = {
878
+ /**
879
+ * Number of retry attempts (1-5)
880
+ */
881
+ count: number;
882
+ /**
883
+ * HTTP status codes that trigger retry logic
884
+ */
885
+ onCodes?: Array<number> | undefined;
886
+ };
887
+
888
+ export const ListPromptVersionsType = {
889
+ ExactMatch: "exact_match",
890
+ } as const;
891
+ export type ListPromptVersionsType = ClosedEnum<typeof ListPromptVersionsType>;
892
+
893
+ /**
894
+ * Cache configuration for the request.
895
+ */
896
+ export type ListPromptVersionsCache = {
897
+ /**
898
+ * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
899
+ */
900
+ ttl: number;
901
+ type: ListPromptVersionsType;
902
+ };
903
+
904
+ export const ListPromptVersionsLoadBalancerType = {
905
+ WeightBased: "weight_based",
906
+ } as const;
907
+ export type ListPromptVersionsLoadBalancerType = ClosedEnum<
908
+ typeof ListPromptVersionsLoadBalancerType
909
+ >;
910
+
911
+ export type ListPromptVersionsLoadBalancerModels = {
912
+ /**
913
+ * Model identifier for load balancing
914
+ */
915
+ model: string;
916
+ /**
917
+ * Weight assigned to this model for load balancing
918
+ */
919
+ weight: number;
920
+ };
921
+
922
+ export type ListPromptVersionsLoadBalancer1 = {
923
+ type: ListPromptVersionsLoadBalancerType;
924
+ models: Array<ListPromptVersionsLoadBalancerModels>;
925
+ };
926
+
927
+ /**
928
+ * Load balancer configuration for the request.
929
+ */
930
+ export type ListPromptVersionsLoadBalancer = ListPromptVersionsLoadBalancer1;
931
+
932
+ /**
933
+ * 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.
934
+ */
935
+ export type ListPromptVersionsTimeout = {
936
+ /**
937
+ * Timeout value in milliseconds
938
+ */
939
+ callTimeout: number;
940
+ };
941
+
942
+ /**
943
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
944
+ */
945
+ export const ListPromptVersionsPromptsType = {
946
+ Ephemeral: "ephemeral",
947
+ } as const;
948
+ /**
949
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
950
+ */
951
+ export type ListPromptVersionsPromptsType = ClosedEnum<
952
+ typeof ListPromptVersionsPromptsType
953
+ >;
954
+
955
+ /**
956
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
957
+ *
958
+ * @remarks
959
+ *
960
+ * - `5m`: 5 minutes
961
+ * - `1h`: 1 hour
962
+ *
963
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
964
+ */
965
+ export const ListPromptVersionsTtl = {
966
+ Fivem: "5m",
967
+ Oneh: "1h",
968
+ } as const;
969
+ /**
970
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
971
+ *
972
+ * @remarks
973
+ *
974
+ * - `5m`: 5 minutes
975
+ * - `1h`: 1 hour
976
+ *
977
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
978
+ */
979
+ export type ListPromptVersionsTtl = ClosedEnum<typeof ListPromptVersionsTtl>;
980
+
981
+ /**
982
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
983
+ */
984
+ export type ListPromptVersionsCacheControl = {
985
+ /**
986
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
987
+ */
988
+ type: ListPromptVersionsPromptsType;
989
+ /**
990
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
991
+ *
992
+ * @remarks
993
+ *
994
+ * - `5m`: 5 minutes
995
+ * - `1h`: 1 hour
996
+ *
997
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
998
+ */
999
+ ttl: ListPromptVersionsTtl;
1000
+ };
1001
+
1002
+ export type ListPromptVersionsContentPromptsResponse2002 =
1003
+ components.TextContentPartSchema;
1004
+
1005
+ /**
1006
+ * The contents of the tool message.
1007
+ */
1008
+ export type ListPromptVersionsMessagesPromptsResponse200Content =
1009
+ | string
1010
+ | Array<components.TextContentPartSchema>;
1011
+
1012
+ /**
1013
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1014
+ */
1015
+ export const ListPromptVersionsMessagesPromptsType = {
1016
+ Ephemeral: "ephemeral",
1017
+ } as const;
1018
+ /**
1019
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1020
+ */
1021
+ export type ListPromptVersionsMessagesPromptsType = ClosedEnum<
1022
+ typeof ListPromptVersionsMessagesPromptsType
1023
+ >;
1024
+
1025
+ /**
1026
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1027
+ *
1028
+ * @remarks
1029
+ *
1030
+ * - `5m`: 5 minutes
1031
+ * - `1h`: 1 hour
1032
+ *
1033
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1034
+ */
1035
+ export const ListPromptVersionsMessagesTtl = {
1036
+ Fivem: "5m",
1037
+ Oneh: "1h",
1038
+ } as const;
1039
+ /**
1040
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1041
+ *
1042
+ * @remarks
1043
+ *
1044
+ * - `5m`: 5 minutes
1045
+ * - `1h`: 1 hour
1046
+ *
1047
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1048
+ */
1049
+ export type ListPromptVersionsMessagesTtl = ClosedEnum<
1050
+ typeof ListPromptVersionsMessagesTtl
1051
+ >;
1052
+
1053
+ export type ListPromptVersionsMessagesCacheControl = {
1054
+ /**
1055
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1056
+ */
1057
+ type: ListPromptVersionsMessagesPromptsType;
1058
+ /**
1059
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1060
+ *
1061
+ * @remarks
1062
+ *
1063
+ * - `5m`: 5 minutes
1064
+ * - `1h`: 1 hour
1065
+ *
1066
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1067
+ */
1068
+ ttl: ListPromptVersionsMessagesTtl;
1069
+ };
1070
+
1071
+ export type ListPromptVersionsMessagesToolMessage = {
1072
+ /**
1073
+ * The role of the messages author, in this case tool.
1074
+ */
1075
+ role: "tool";
1076
+ /**
1077
+ * The contents of the tool message.
1078
+ */
1079
+ content: string | Array<components.TextContentPartSchema>;
1080
+ /**
1081
+ * Tool call that this message is responding to.
1082
+ */
1083
+ toolCallId: string | null;
1084
+ cacheControl?: ListPromptVersionsMessagesCacheControl | undefined;
1085
+ };
1086
+
1087
+ export type ListPromptVersionsContentPromptsResponse2 =
1088
+ | (components.TextContentPartSchema & { type: "text" })
1089
+ | components.RefusalPartSchema
1090
+ | components.ReasoningPartSchema
1091
+ | components.RedactedReasoningPartSchema;
1092
+
1093
+ /**
1094
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
1095
+ */
1096
+ export type ListPromptVersionsMessagesPromptsResponseContent =
1097
+ | string
1098
+ | Array<
1099
+ | (components.TextContentPartSchema & { type: "text" })
1100
+ | components.RefusalPartSchema
1101
+ | components.ReasoningPartSchema
1102
+ | components.RedactedReasoningPartSchema
1103
+ >;
1104
+
1105
+ /**
1106
+ * Data about a previous audio response from the model.
1107
+ */
1108
+ export type ListPromptVersionsMessagesAudio = {
1109
+ /**
1110
+ * Unique identifier for a previous audio response from the model.
1111
+ */
1112
+ id: string;
1113
+ };
1114
+
1115
+ /**
1116
+ * The type of the tool. Currently, only `function` is supported.
1117
+ */
1118
+ export const ListPromptVersionsMessagesType = {
1119
+ Function: "function",
1120
+ } as const;
1121
+ /**
1122
+ * The type of the tool. Currently, only `function` is supported.
1123
+ */
1124
+ export type ListPromptVersionsMessagesType = ClosedEnum<
1125
+ typeof ListPromptVersionsMessagesType
1126
+ >;
1127
+
1128
+ export type ListPromptVersionsMessagesFunction = {
1129
+ /**
1130
+ * The name of the function to call.
1131
+ */
1132
+ name?: string | undefined;
1133
+ /**
1134
+ * The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
1135
+ */
1136
+ arguments?: string | undefined;
1137
+ };
1138
+
1139
+ export type ListPromptVersionsMessagesToolCalls = {
1140
+ /**
1141
+ * The ID of the tool call.
1142
+ */
1143
+ id: string;
1144
+ /**
1145
+ * The type of the tool. Currently, only `function` is supported.
1146
+ */
1147
+ type: ListPromptVersionsMessagesType;
1148
+ function: ListPromptVersionsMessagesFunction;
1149
+ /**
1150
+ * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
1151
+ */
1152
+ thoughtSignature?: string | undefined;
1153
+ };
1154
+
1155
+ export type ListPromptVersionsMessagesAssistantMessage = {
1156
+ /**
1157
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
1158
+ */
1159
+ content?:
1160
+ | string
1161
+ | Array<
1162
+ | (components.TextContentPartSchema & { type: "text" })
1163
+ | components.RefusalPartSchema
1164
+ | components.ReasoningPartSchema
1165
+ | components.RedactedReasoningPartSchema
1166
+ >
1167
+ | null
1168
+ | undefined;
1169
+ /**
1170
+ * The refusal message by the assistant.
1171
+ */
1172
+ refusal?: string | null | undefined;
1173
+ /**
1174
+ * The role of the messages author, in this case `assistant`.
1175
+ */
1176
+ role: "assistant";
1177
+ /**
1178
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
1179
+ */
1180
+ name?: string | undefined;
1181
+ /**
1182
+ * Data about a previous audio response from the model.
1183
+ */
1184
+ audio?: ListPromptVersionsMessagesAudio | null | undefined;
1185
+ /**
1186
+ * The tool calls generated by the model, such as function calls.
1187
+ */
1188
+ toolCalls?: Array<ListPromptVersionsMessagesToolCalls> | undefined;
1189
+ };
1190
+
1191
+ /**
1192
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1193
+ */
1194
+ export const ListPromptVersions2PromptsResponse200ApplicationJSONType = {
1195
+ Ephemeral: "ephemeral",
1196
+ } as const;
1197
+ /**
1198
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1199
+ */
1200
+ export type ListPromptVersions2PromptsResponse200ApplicationJSONType =
1201
+ ClosedEnum<typeof ListPromptVersions2PromptsResponse200ApplicationJSONType>;
1202
+
1203
+ /**
1204
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1205
+ *
1206
+ * @remarks
1207
+ *
1208
+ * - `5m`: 5 minutes
1209
+ * - `1h`: 1 hour
1210
+ *
1211
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1212
+ */
1213
+ export const ListPromptVersions2Ttl = {
1214
+ Fivem: "5m",
1215
+ Oneh: "1h",
1216
+ } as const;
1217
+ /**
1218
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1219
+ *
1220
+ * @remarks
1221
+ *
1222
+ * - `5m`: 5 minutes
1223
+ * - `1h`: 1 hour
1224
+ *
1225
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1226
+ */
1227
+ export type ListPromptVersions2Ttl = ClosedEnum<typeof ListPromptVersions2Ttl>;
1228
+
1229
+ export type ListPromptVersions2CacheControl = {
1230
+ /**
1231
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1232
+ */
1233
+ type: ListPromptVersions2PromptsResponse200ApplicationJSONType;
1234
+ /**
1235
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1236
+ *
1237
+ * @remarks
1238
+ *
1239
+ * - `5m`: 5 minutes
1240
+ * - `1h`: 1 hour
1241
+ *
1242
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1243
+ */
1244
+ ttl: ListPromptVersions2Ttl;
1245
+ };
1246
+
1247
+ export type ListPromptVersions24 = {
1248
+ /**
1249
+ * The type of the content part. Always `file`.
1250
+ */
1251
+ type: "file";
1252
+ cacheControl?: ListPromptVersions2CacheControl | undefined;
1253
+ /**
1254
+ * File data for the content part. Must contain either file_data or uri, but not both.
1255
+ */
1256
+ file: components.FileContentPartSchema;
1257
+ };
1258
+
1259
+ export type ListPromptVersionsContentPrompts2 =
1260
+ | (components.TextContentPartSchema & { type: "text" })
1261
+ | components.ImageContentPartSchema
1262
+ | components.AudioContentPartSchema
1263
+ | ListPromptVersions24;
1264
+
1265
+ /**
1266
+ * The contents of the user message.
1267
+ */
1268
+ export type ListPromptVersionsMessagesPromptsContent =
1269
+ | string
1270
+ | Array<
1271
+ | (components.TextContentPartSchema & { type: "text" })
1272
+ | components.ImageContentPartSchema
1273
+ | components.AudioContentPartSchema
1274
+ | ListPromptVersions24
1275
+ >;
1276
+
1277
+ export type ListPromptVersionsMessagesUserMessage = {
1278
+ /**
1279
+ * The role of the messages author, in this case `user`.
1280
+ */
1281
+ role: "user";
1282
+ /**
1283
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
1284
+ */
1285
+ name?: string | undefined;
1286
+ /**
1287
+ * The contents of the user message.
1288
+ */
1289
+ content:
1290
+ | string
1291
+ | Array<
1292
+ | (components.TextContentPartSchema & { type: "text" })
1293
+ | components.ImageContentPartSchema
1294
+ | components.AudioContentPartSchema
1295
+ | ListPromptVersions24
1296
+ >;
1297
+ };
1298
+
1299
+ /**
1300
+ * The contents of the system message.
1301
+ */
1302
+ export type ListPromptVersionsMessagesContent =
1303
+ | string
1304
+ | Array<components.TextContentPartSchema>;
1305
+
1306
+ /**
1307
+ * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
1308
+ */
1309
+ export type ListPromptVersionsMessagesSystemMessage = {
1310
+ /**
1311
+ * The role of the messages author, in this case `system`.
1312
+ */
1313
+ role: "system";
1314
+ /**
1315
+ * The contents of the system message.
1316
+ */
1317
+ content: string | Array<components.TextContentPartSchema>;
1318
+ /**
1319
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
1320
+ */
1321
+ name?: string | undefined;
1322
+ };
1323
+
1324
+ export type ListPromptVersionsPromptsMessages =
1325
+ | ListPromptVersionsMessagesSystemMessage
1326
+ | ListPromptVersionsMessagesUserMessage
1327
+ | ListPromptVersionsMessagesAssistantMessage
1328
+ | ListPromptVersionsMessagesToolMessage;
1329
+
1330
+ /**
1331
+ * Prompt configuration with model and messages. Use this instead of prompt_config.
1332
+ */
1333
+ export type ListPromptVersionsPromptField = {
1334
+ /**
1335
+ * The name to display on the trace. If not specified, the default system name will be used.
1336
+ */
1337
+ name?: string | undefined;
1338
+ /**
1339
+ * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
1340
+ */
1341
+ audio?: ListPromptVersionsAudio | null | undefined;
1342
+ /**
1343
+ * Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
1344
+ */
1345
+ frequencyPenalty?: number | null | undefined;
1346
+ /**
1347
+ * `[Deprecated]`. The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
1348
+ *
1349
+ * @remarks
1350
+ *
1351
+ * This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
1352
+ */
1353
+ maxTokens?: number | null | undefined;
1354
+ /**
1355
+ * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
1356
+ */
1357
+ maxCompletionTokens?: number | null | undefined;
1358
+ /**
1359
+ * Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
1360
+ */
1361
+ logprobs?: boolean | null | undefined;
1362
+ /**
1363
+ * An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
1364
+ */
1365
+ topLogprobs?: number | null | undefined;
1366
+ /**
1367
+ * How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
1368
+ */
1369
+ n?: number | null | undefined;
1370
+ /**
1371
+ * Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
1372
+ */
1373
+ presencePenalty?: number | null | undefined;
1374
+ /**
1375
+ * An object specifying the format that the model must output
1376
+ */
1377
+ responseFormat?:
1378
+ | ListPromptVersionsResponseFormatText
1379
+ | ListPromptVersionsResponseFormatJSONObject
1380
+ | ListPromptVersionsResponseFormatPromptsJSONSchema
1381
+ | undefined;
1382
+ /**
1383
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1384
+ *
1385
+ * @remarks
1386
+ *
1387
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
1388
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
1389
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1390
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
1391
+ *
1392
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
1393
+ */
1394
+ reasoningEffort?: ListPromptVersionsReasoningEffort | undefined;
1395
+ /**
1396
+ * Adjusts response verbosity. Lower levels yield shorter answers.
1397
+ */
1398
+ verbosity?: string | undefined;
1399
+ /**
1400
+ * If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
1401
+ */
1402
+ seed?: number | null | undefined;
1403
+ /**
1404
+ * Up to 4 sequences where the API will stop generating further tokens.
1405
+ */
1406
+ stop?: string | Array<string> | null | undefined;
1407
+ /**
1408
+ * Options for streaming response. Only set this when you set stream: true.
1409
+ */
1410
+ streamOptions?: ListPromptVersionsStreamOptions | null | undefined;
1411
+ thinking?:
1412
+ | components.ThinkingConfigDisabledSchema
1413
+ | components.ThinkingConfigEnabledSchema
1414
+ | components.ThinkingConfigAdaptiveSchema
1415
+ | undefined;
1416
+ /**
1417
+ * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
1418
+ */
1419
+ temperature?: number | null | undefined;
1420
+ /**
1421
+ * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
1422
+ */
1423
+ topP?: number | null | undefined;
1424
+ /**
1425
+ * Limits the model to consider only the top k most likely tokens at each step.
1426
+ */
1427
+ topK?: number | null | undefined;
1428
+ /**
1429
+ * Controls which (if any) tool is called by the model.
1430
+ */
1431
+ toolChoice?:
1432
+ | ListPromptVersionsToolChoice2
1433
+ | ListPromptVersionsToolChoice1
1434
+ | undefined;
1435
+ /**
1436
+ * Whether to enable parallel function calling during tool use.
1437
+ */
1438
+ parallelToolCalls?: boolean | undefined;
1439
+ /**
1440
+ * Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
1441
+ */
1442
+ modalities?: Array<ListPromptVersionsModalities> | null | undefined;
1443
+ /**
1444
+ * A list of guardrails to apply to the request.
1445
+ */
1446
+ guardrails?: Array<ListPromptVersionsGuardrails> | undefined;
1447
+ /**
1448
+ * Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
1449
+ */
1450
+ plugins?:
1451
+ | Array<
1452
+ | components.PIIRedactionPluginEn
1453
+ | components.PIIRedactionPluginNl
1454
+ | components.PIIRedactionPluginAuto
1455
+ >
1456
+ | undefined;
1457
+ /**
1458
+ * Array of fallback models to use if primary model fails
1459
+ */
1460
+ fallbacks?: Array<ListPromptVersionsFallbacks> | undefined;
1461
+ /**
1462
+ * Retry configuration for the request
1463
+ */
1464
+ retry?: ListPromptVersionsRetry | undefined;
1465
+ /**
1466
+ * Cache configuration for the request.
1467
+ */
1468
+ cache?: ListPromptVersionsCache | undefined;
1469
+ /**
1470
+ * Load balancer configuration for the request.
1471
+ */
1472
+ loadBalancer?: ListPromptVersionsLoadBalancer1 | undefined;
1473
+ /**
1474
+ * 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.
1475
+ */
1476
+ timeout?: ListPromptVersionsTimeout | undefined;
1477
+ /**
1478
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
1479
+ */
1480
+ cacheControl?: ListPromptVersionsCacheControl | undefined;
1481
+ /**
1482
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
1483
+ */
1484
+ promptCacheKey?: string | undefined;
1485
+ /**
1486
+ * Array of messages that make up the conversation. Each message has a role (system, user, assistant, or tool) and content.
1487
+ */
1488
+ messages?:
1489
+ | Array<
1490
+ | ListPromptVersionsMessagesSystemMessage
1491
+ | ListPromptVersionsMessagesUserMessage
1492
+ | ListPromptVersionsMessagesAssistantMessage
1493
+ | ListPromptVersionsMessagesToolMessage
1494
+ >
1495
+ | undefined;
1496
+ /**
1497
+ * Model ID used to generate the response, like `openai/gpt-4o` or `anthropic/claude-3-5-sonnet-20241022`. For private models, use format: `{workspaceKey}@{provider}/{model}`.
1498
+ */
1499
+ model?: string | null | undefined;
1500
+ version?: string | undefined;
1501
+ };
1502
+
1503
+ export const ListPromptVersionsUseCases = {
1504
+ AgentsSimulations: "Agents simulations",
1505
+ Agents: "Agents",
1506
+ APIInteraction: "API interaction",
1507
+ AutonomousAgents: "Autonomous Agents",
1508
+ Chatbots: "Chatbots",
1509
+ Classification: "Classification",
1510
+ CodeUnderstanding: "Code understanding",
1511
+ CodeWriting: "Code writing",
1512
+ Conversation: "Conversation",
1513
+ DocumentsQA: "Documents QA",
1514
+ Evaluation: "Evaluation",
1515
+ Extraction: "Extraction",
1516
+ MultiModal: "Multi-modal",
1517
+ SelfChecking: "Self-checking",
1518
+ SentimentAnalysis: "Sentiment analysis",
1519
+ Sql: "SQL",
1520
+ Summarization: "Summarization",
1521
+ Tagging: "Tagging",
1522
+ TranslationDocument: "Translation (document)",
1523
+ TranslationSentences: "Translation (sentences)",
1524
+ } as const;
1525
+ export type ListPromptVersionsUseCases = ClosedEnum<
1526
+ typeof ListPromptVersionsUseCases
1527
+ >;
1528
+
1529
+ /**
1530
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
1531
+ */
1532
+ export const ListPromptVersionsLanguage = {
1533
+ Chinese: "Chinese",
1534
+ Dutch: "Dutch",
1535
+ English: "English",
1536
+ French: "French",
1537
+ German: "German",
1538
+ Russian: "Russian",
1539
+ Spanish: "Spanish",
1540
+ } as const;
1541
+ /**
1542
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
1543
+ */
1544
+ export type ListPromptVersionsLanguage = ClosedEnum<
1545
+ typeof ListPromptVersionsLanguage
1546
+ >;
1547
+
1548
+ export type ListPromptVersionsMetadata = {
1549
+ /**
1550
+ * A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
1551
+ */
1552
+ useCases?: Array<ListPromptVersionsUseCases> | undefined;
1553
+ /**
1554
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
1555
+ */
1556
+ language?: ListPromptVersionsLanguage | null | undefined;
1557
+ };
1558
+
1559
+ export type ListPromptVersionsData = {
1560
+ id: string;
1561
+ createdById?: string | null | undefined;
1562
+ updatedById?: string | null | undefined;
1563
+ /**
1564
+ * The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
1565
+ */
1566
+ description?: string | null | undefined;
1567
+ /**
1568
+ * [DEPRECATED] Use the `prompt` property instead. A list of messages compatible with the openAI schema.
1569
+ *
1570
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1571
+ */
1572
+ promptConfig?: ListPromptVersionsPromptConfig | undefined;
1573
+ /**
1574
+ * Prompt configuration with model and messages. Use this instead of prompt_config.
1575
+ */
1576
+ prompt: ListPromptVersionsPromptField;
1577
+ metadata?: ListPromptVersionsMetadata | undefined;
1578
+ timestamp: string;
1579
+ };
1580
+
1581
+ /**
1582
+ * Prompt versions retrieved.
1583
+ */
1584
+ export type ListPromptVersionsResponseBody = {
1585
+ object: ListPromptVersionsObject;
1586
+ data: Array<ListPromptVersionsData>;
1587
+ hasMore: boolean;
1588
+ };
1589
+
1590
+ /** @internal */
1591
+ export type ListPromptVersionsRequest$Outbound = {
1592
+ prompt_id: string;
1593
+ limit: number;
1594
+ starting_after?: string | undefined;
1595
+ ending_before?: string | undefined;
1596
+ };
1597
+
1598
+ /** @internal */
1599
+ export const ListPromptVersionsRequest$outboundSchema: z.ZodType<
1600
+ ListPromptVersionsRequest$Outbound,
1601
+ z.ZodTypeDef,
1602
+ ListPromptVersionsRequest
1603
+ > = z.object({
1604
+ promptId: z.string(),
1605
+ limit: z.number().int().default(10),
1606
+ startingAfter: z.string().optional(),
1607
+ endingBefore: z.string().optional(),
1608
+ }).transform((v) => {
1609
+ return remap$(v, {
1610
+ promptId: "prompt_id",
1611
+ startingAfter: "starting_after",
1612
+ endingBefore: "ending_before",
1613
+ });
1614
+ });
1615
+
1616
+ export function listPromptVersionsRequestToJSON(
1617
+ listPromptVersionsRequest: ListPromptVersionsRequest,
1618
+ ): string {
1619
+ return JSON.stringify(
1620
+ ListPromptVersionsRequest$outboundSchema.parse(listPromptVersionsRequest),
1621
+ );
1622
+ }
1623
+
1624
+ /** @internal */
1625
+ export const ListPromptVersionsObject$inboundSchema: z.ZodNativeEnum<
1626
+ typeof ListPromptVersionsObject
1627
+ > = z.nativeEnum(ListPromptVersionsObject);
1628
+
1629
+ /** @internal */
1630
+ export const ListPromptVersionsModelType$inboundSchema: z.ZodNativeEnum<
1631
+ typeof ListPromptVersionsModelType
1632
+ > = z.nativeEnum(ListPromptVersionsModelType);
1633
+
1634
+ /** @internal */
1635
+ export const ListPromptVersionsFormat$inboundSchema: z.ZodNativeEnum<
1636
+ typeof ListPromptVersionsFormat
1637
+ > = z.nativeEnum(ListPromptVersionsFormat);
1638
+
1639
+ /** @internal */
1640
+ export const ListPromptVersionsResponseFormat6$inboundSchema: z.ZodNativeEnum<
1641
+ typeof ListPromptVersionsResponseFormat6
1642
+ > = z.nativeEnum(ListPromptVersionsResponseFormat6);
1643
+
1644
+ /** @internal */
1645
+ export const ListPromptVersionsResponseFormat5$inboundSchema: z.ZodNativeEnum<
1646
+ typeof ListPromptVersionsResponseFormat5
1647
+ > = z.nativeEnum(ListPromptVersionsResponseFormat5);
1648
+
1649
+ /** @internal */
1650
+ export const ListPromptVersionsResponseFormat4$inboundSchema: z.ZodNativeEnum<
1651
+ typeof ListPromptVersionsResponseFormat4
1652
+ > = z.nativeEnum(ListPromptVersionsResponseFormat4);
1653
+
1654
+ /** @internal */
1655
+ export const ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema:
1656
+ z.ZodNativeEnum<
1657
+ typeof ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType
1658
+ > = z.nativeEnum(
1659
+ ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType,
1660
+ );
1661
+
1662
+ /** @internal */
1663
+ export const ListPromptVersionsResponseFormat3$inboundSchema: z.ZodType<
1664
+ ListPromptVersionsResponseFormat3,
1665
+ z.ZodTypeDef,
1666
+ unknown
1667
+ > = z.object({
1668
+ type:
1669
+ ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema,
1670
+ });
1671
+
1672
+ export function listPromptVersionsResponseFormat3FromJSON(
1673
+ jsonString: string,
1674
+ ): SafeParseResult<ListPromptVersionsResponseFormat3, SDKValidationError> {
1675
+ return safeParse(
1676
+ jsonString,
1677
+ (x) => ListPromptVersionsResponseFormat3$inboundSchema.parse(JSON.parse(x)),
1678
+ `Failed to parse 'ListPromptVersionsResponseFormat3' from JSON`,
1679
+ );
1680
+ }
1681
+
1682
+ /** @internal */
1683
+ export const ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema:
1684
+ z.ZodNativeEnum<
1685
+ typeof ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType
1686
+ > = z.nativeEnum(
1687
+ ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType,
1688
+ );
1689
+
1690
+ /** @internal */
1691
+ export const ListPromptVersionsResponseFormat2$inboundSchema: z.ZodType<
1692
+ ListPromptVersionsResponseFormat2,
1693
+ z.ZodTypeDef,
1694
+ unknown
1695
+ > = z.object({
1696
+ type:
1697
+ ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
1698
+ });
1699
+
1700
+ export function listPromptVersionsResponseFormat2FromJSON(
1701
+ jsonString: string,
1702
+ ): SafeParseResult<ListPromptVersionsResponseFormat2, SDKValidationError> {
1703
+ return safeParse(
1704
+ jsonString,
1705
+ (x) => ListPromptVersionsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1706
+ `Failed to parse 'ListPromptVersionsResponseFormat2' from JSON`,
1707
+ );
1708
+ }
1709
+
1710
+ /** @internal */
1711
+ export const ListPromptVersionsResponseFormatPromptsResponse200Type$inboundSchema:
1712
+ z.ZodNativeEnum<
1713
+ typeof ListPromptVersionsResponseFormatPromptsResponse200Type
1714
+ > = z.nativeEnum(ListPromptVersionsResponseFormatPromptsResponse200Type);
1715
+
1716
+ /** @internal */
1717
+ export const ListPromptVersionsResponseFormatPromptsResponseJsonSchema$inboundSchema:
1718
+ z.ZodType<
1719
+ ListPromptVersionsResponseFormatPromptsResponseJsonSchema,
1720
+ z.ZodTypeDef,
1721
+ unknown
1722
+ > = z.object({
1723
+ name: z.string(),
1724
+ description: z.nullable(z.string()).optional(),
1725
+ strict: z.boolean().optional(),
1726
+ schema: z.record(z.any()),
1727
+ });
1728
+
1729
+ export function listPromptVersionsResponseFormatPromptsResponseJsonSchemaFromJSON(
1730
+ jsonString: string,
1731
+ ): SafeParseResult<
1732
+ ListPromptVersionsResponseFormatPromptsResponseJsonSchema,
1733
+ SDKValidationError
1734
+ > {
1735
+ return safeParse(
1736
+ jsonString,
1737
+ (x) =>
1738
+ ListPromptVersionsResponseFormatPromptsResponseJsonSchema$inboundSchema
1739
+ .parse(JSON.parse(x)),
1740
+ `Failed to parse 'ListPromptVersionsResponseFormatPromptsResponseJsonSchema' from JSON`,
1741
+ );
1742
+ }
1743
+
1744
+ /** @internal */
1745
+ export const ListPromptVersionsResponseFormat1$inboundSchema: z.ZodType<
1746
+ ListPromptVersionsResponseFormat1,
1747
+ z.ZodTypeDef,
1748
+ unknown
1749
+ > = z.object({
1750
+ type: ListPromptVersionsResponseFormatPromptsResponse200Type$inboundSchema,
1751
+ display_name: z.string().optional(),
1752
+ json_schema: z.lazy(() =>
1753
+ ListPromptVersionsResponseFormatPromptsResponseJsonSchema$inboundSchema
1754
+ ),
1755
+ }).transform((v) => {
1756
+ return remap$(v, {
1757
+ "display_name": "displayName",
1758
+ "json_schema": "jsonSchema",
1759
+ });
1760
+ });
1761
+
1762
+ export function listPromptVersionsResponseFormat1FromJSON(
1763
+ jsonString: string,
1764
+ ): SafeParseResult<ListPromptVersionsResponseFormat1, SDKValidationError> {
1765
+ return safeParse(
1766
+ jsonString,
1767
+ (x) => ListPromptVersionsResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1768
+ `Failed to parse 'ListPromptVersionsResponseFormat1' from JSON`,
1769
+ );
1770
+ }
1771
+
1772
+ /** @internal */
1773
+ export const ListPromptVersionsPromptsResponseFormat$inboundSchema: z.ZodType<
1774
+ ListPromptVersionsPromptsResponseFormat,
1775
+ z.ZodTypeDef,
1776
+ unknown
1777
+ > = z.union([
1778
+ z.lazy(() => ListPromptVersionsResponseFormat1$inboundSchema),
1779
+ z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
1780
+ z.lazy(() => ListPromptVersionsResponseFormat3$inboundSchema),
1781
+ ListPromptVersionsResponseFormat4$inboundSchema,
1782
+ ListPromptVersionsResponseFormat5$inboundSchema,
1783
+ ListPromptVersionsResponseFormat6$inboundSchema,
1784
+ ]);
1785
+
1786
+ export function listPromptVersionsPromptsResponseFormatFromJSON(
1787
+ jsonString: string,
1788
+ ): SafeParseResult<
1789
+ ListPromptVersionsPromptsResponseFormat,
1790
+ SDKValidationError
1791
+ > {
1792
+ return safeParse(
1793
+ jsonString,
1794
+ (x) =>
1795
+ ListPromptVersionsPromptsResponseFormat$inboundSchema.parse(
1796
+ JSON.parse(x),
1797
+ ),
1798
+ `Failed to parse 'ListPromptVersionsPromptsResponseFormat' from JSON`,
1799
+ );
1800
+ }
1801
+
1802
+ /** @internal */
1803
+ export const ListPromptVersionsPromptsResponseType$inboundSchema:
1804
+ z.ZodNativeEnum<typeof ListPromptVersionsPromptsResponseType> = z.nativeEnum(
1805
+ ListPromptVersionsPromptsResponseType,
1806
+ );
1807
+
1808
+ /** @internal */
1809
+ export const ListPromptVersionsPromptsTtl$inboundSchema: z.ZodNativeEnum<
1810
+ typeof ListPromptVersionsPromptsTtl
1811
+ > = z.nativeEnum(ListPromptVersionsPromptsTtl);
1812
+
1813
+ /** @internal */
1814
+ export const ListPromptVersionsPromptsCacheControl$inboundSchema: z.ZodType<
1815
+ ListPromptVersionsPromptsCacheControl,
1816
+ z.ZodTypeDef,
1817
+ unknown
1818
+ > = z.object({
1819
+ type: ListPromptVersionsPromptsResponseType$inboundSchema,
1820
+ ttl: ListPromptVersionsPromptsTtl$inboundSchema.default("5m"),
1821
+ });
1822
+
1823
+ export function listPromptVersionsPromptsCacheControlFromJSON(
1824
+ jsonString: string,
1825
+ ): SafeParseResult<ListPromptVersionsPromptsCacheControl, SDKValidationError> {
1826
+ return safeParse(
1827
+ jsonString,
1828
+ (x) =>
1829
+ ListPromptVersionsPromptsCacheControl$inboundSchema.parse(JSON.parse(x)),
1830
+ `Failed to parse 'ListPromptVersionsPromptsCacheControl' from JSON`,
1831
+ );
1832
+ }
1833
+
1834
+ /** @internal */
1835
+ export const ListPromptVersionsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1836
+ typeof ListPromptVersionsPhotoRealVersion
1837
+ > = z.nativeEnum(ListPromptVersionsPhotoRealVersion);
1838
+
1839
+ /** @internal */
1840
+ export const ListPromptVersionsEncodingFormat$inboundSchema: z.ZodNativeEnum<
1841
+ typeof ListPromptVersionsEncodingFormat
1842
+ > = z.nativeEnum(ListPromptVersionsEncodingFormat);
1843
+
1844
+ /** @internal */
1845
+ export const ListPromptVersionsPromptsReasoningEffort$inboundSchema:
1846
+ z.ZodNativeEnum<typeof ListPromptVersionsPromptsReasoningEffort> = z
1847
+ .nativeEnum(ListPromptVersionsPromptsReasoningEffort);
1848
+
1849
+ /** @internal */
1850
+ export const ListPromptVersionsVerbosity$inboundSchema: z.ZodNativeEnum<
1851
+ typeof ListPromptVersionsVerbosity
1852
+ > = z.nativeEnum(ListPromptVersionsVerbosity);
1853
+
1854
+ /** @internal */
1855
+ export const ListPromptVersionsThinkingLevel$inboundSchema: z.ZodNativeEnum<
1856
+ typeof ListPromptVersionsThinkingLevel
1857
+ > = z.nativeEnum(ListPromptVersionsThinkingLevel);
1858
+
1859
+ /** @internal */
1860
+ export const ListPromptVersionsModelParameters$inboundSchema: z.ZodType<
1861
+ ListPromptVersionsModelParameters,
1862
+ z.ZodTypeDef,
1863
+ unknown
1864
+ > = z.object({
1865
+ temperature: z.number().optional(),
1866
+ maxTokens: z.number().optional(),
1867
+ topK: z.number().optional(),
1868
+ topP: z.number().optional(),
1869
+ frequencyPenalty: z.number().optional(),
1870
+ presencePenalty: z.number().optional(),
1871
+ numImages: z.number().optional(),
1872
+ seed: z.number().optional(),
1873
+ format: ListPromptVersionsFormat$inboundSchema.optional(),
1874
+ dimensions: z.string().optional(),
1875
+ quality: z.string().optional(),
1876
+ style: z.string().optional(),
1877
+ responseFormat: z.nullable(
1878
+ z.union([
1879
+ z.lazy(() => ListPromptVersionsResponseFormat1$inboundSchema),
1880
+ z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
1881
+ z.lazy(() => ListPromptVersionsResponseFormat3$inboundSchema),
1882
+ ListPromptVersionsResponseFormat4$inboundSchema,
1883
+ ListPromptVersionsResponseFormat5$inboundSchema,
1884
+ ListPromptVersionsResponseFormat6$inboundSchema,
1885
+ ]),
1886
+ ).optional(),
1887
+ cacheControl: z.nullable(
1888
+ z.lazy(() => ListPromptVersionsPromptsCacheControl$inboundSchema),
1889
+ ).optional(),
1890
+ photoRealVersion: ListPromptVersionsPhotoRealVersion$inboundSchema.optional(),
1891
+ encoding_format: ListPromptVersionsEncodingFormat$inboundSchema.optional(),
1892
+ reasoningEffort: ListPromptVersionsPromptsReasoningEffort$inboundSchema
1893
+ .optional(),
1894
+ budgetTokens: z.number().optional(),
1895
+ verbosity: ListPromptVersionsVerbosity$inboundSchema.optional(),
1896
+ thinkingLevel: ListPromptVersionsThinkingLevel$inboundSchema.optional(),
1897
+ }).transform((v) => {
1898
+ return remap$(v, {
1899
+ "encoding_format": "encodingFormat",
1900
+ });
1901
+ });
1902
+
1903
+ export function listPromptVersionsModelParametersFromJSON(
1904
+ jsonString: string,
1905
+ ): SafeParseResult<ListPromptVersionsModelParameters, SDKValidationError> {
1906
+ return safeParse(
1907
+ jsonString,
1908
+ (x) => ListPromptVersionsModelParameters$inboundSchema.parse(JSON.parse(x)),
1909
+ `Failed to parse 'ListPromptVersionsModelParameters' from JSON`,
1910
+ );
1911
+ }
1912
+
1913
+ /** @internal */
1914
+ export const ListPromptVersionsProvider$inboundSchema: z.ZodNativeEnum<
1915
+ typeof ListPromptVersionsProvider
1916
+ > = z.nativeEnum(ListPromptVersionsProvider);
1917
+
1918
+ /** @internal */
1919
+ export const ListPromptVersionsRole$inboundSchema: z.ZodNativeEnum<
1920
+ typeof ListPromptVersionsRole
1921
+ > = z.nativeEnum(ListPromptVersionsRole);
1922
+
1923
+ /** @internal */
1924
+ export const ListPromptVersions2File$inboundSchema: z.ZodType<
1925
+ ListPromptVersions2File,
1926
+ z.ZodTypeDef,
1927
+ unknown
1928
+ > = z.object({
1929
+ file_data: z.string().optional(),
1930
+ uri: z.string().optional(),
1931
+ mimeType: z.string().optional(),
1932
+ filename: z.string().optional(),
1933
+ }).transform((v) => {
1934
+ return remap$(v, {
1935
+ "file_data": "fileData",
1936
+ });
1937
+ });
1938
+
1939
+ export function listPromptVersions2FileFromJSON(
1940
+ jsonString: string,
1941
+ ): SafeParseResult<ListPromptVersions2File, SDKValidationError> {
1942
+ return safeParse(
1943
+ jsonString,
1944
+ (x) => ListPromptVersions2File$inboundSchema.parse(JSON.parse(x)),
1945
+ `Failed to parse 'ListPromptVersions2File' from JSON`,
1946
+ );
1947
+ }
1948
+
1949
+ /** @internal */
1950
+ export const ListPromptVersions23$inboundSchema: z.ZodType<
1951
+ ListPromptVersions23,
1952
+ z.ZodTypeDef,
1953
+ unknown
1954
+ > = z.object({
1955
+ type: z.literal("file"),
1956
+ file: z.lazy(() => ListPromptVersions2File$inboundSchema),
1957
+ });
1958
+
1959
+ export function listPromptVersions23FromJSON(
1960
+ jsonString: string,
1961
+ ): SafeParseResult<ListPromptVersions23, SDKValidationError> {
1962
+ return safeParse(
1963
+ jsonString,
1964
+ (x) => ListPromptVersions23$inboundSchema.parse(JSON.parse(x)),
1965
+ `Failed to parse 'ListPromptVersions23' from JSON`,
1966
+ );
1967
+ }
1968
+
1969
+ /** @internal */
1970
+ export const ListPromptVersions2ImageUrl$inboundSchema: z.ZodType<
1971
+ ListPromptVersions2ImageUrl,
1972
+ z.ZodTypeDef,
1973
+ unknown
1974
+ > = z.object({
1975
+ id: z.string().optional(),
1976
+ url: z.string(),
1977
+ detail: z.string().optional(),
1978
+ });
1979
+
1980
+ export function listPromptVersions2ImageUrlFromJSON(
1981
+ jsonString: string,
1982
+ ): SafeParseResult<ListPromptVersions2ImageUrl, SDKValidationError> {
1983
+ return safeParse(
1984
+ jsonString,
1985
+ (x) => ListPromptVersions2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1986
+ `Failed to parse 'ListPromptVersions2ImageUrl' from JSON`,
1987
+ );
1988
+ }
1989
+
1990
+ /** @internal */
1991
+ export const ListPromptVersions22$inboundSchema: z.ZodType<
1992
+ ListPromptVersions22,
1993
+ z.ZodTypeDef,
1994
+ unknown
1995
+ > = z.object({
1996
+ type: z.literal("image_url"),
1997
+ image_url: z.lazy(() => ListPromptVersions2ImageUrl$inboundSchema),
1998
+ }).transform((v) => {
1999
+ return remap$(v, {
2000
+ "image_url": "imageUrl",
2001
+ });
2002
+ });
2003
+
2004
+ export function listPromptVersions22FromJSON(
2005
+ jsonString: string,
2006
+ ): SafeParseResult<ListPromptVersions22, SDKValidationError> {
2007
+ return safeParse(
2008
+ jsonString,
2009
+ (x) => ListPromptVersions22$inboundSchema.parse(JSON.parse(x)),
2010
+ `Failed to parse 'ListPromptVersions22' from JSON`,
2011
+ );
2012
+ }
2013
+
2014
+ /** @internal */
2015
+ export const ListPromptVersions21$inboundSchema: z.ZodType<
2016
+ ListPromptVersions21,
2017
+ z.ZodTypeDef,
2018
+ unknown
2019
+ > = z.object({
2020
+ type: z.literal("text"),
2021
+ text: z.string(),
2022
+ });
2023
+
2024
+ export function listPromptVersions21FromJSON(
2025
+ jsonString: string,
2026
+ ): SafeParseResult<ListPromptVersions21, SDKValidationError> {
2027
+ return safeParse(
2028
+ jsonString,
2029
+ (x) => ListPromptVersions21$inboundSchema.parse(JSON.parse(x)),
2030
+ `Failed to parse 'ListPromptVersions21' from JSON`,
2031
+ );
2032
+ }
2033
+
2034
+ /** @internal */
2035
+ export const ListPromptVersionsContent2$inboundSchema: z.ZodType<
2036
+ ListPromptVersionsContent2,
2037
+ z.ZodTypeDef,
2038
+ unknown
2039
+ > = z.union([
2040
+ z.lazy(() => ListPromptVersions21$inboundSchema),
2041
+ z.lazy(() => ListPromptVersions22$inboundSchema),
2042
+ z.lazy(() => ListPromptVersions23$inboundSchema),
2043
+ ]);
2044
+
2045
+ export function listPromptVersionsContent2FromJSON(
2046
+ jsonString: string,
2047
+ ): SafeParseResult<ListPromptVersionsContent2, SDKValidationError> {
2048
+ return safeParse(
2049
+ jsonString,
2050
+ (x) => ListPromptVersionsContent2$inboundSchema.parse(JSON.parse(x)),
2051
+ `Failed to parse 'ListPromptVersionsContent2' from JSON`,
2052
+ );
2053
+ }
2054
+
2055
+ /** @internal */
2056
+ export const ListPromptVersionsContent$inboundSchema: z.ZodType<
2057
+ ListPromptVersionsContent,
2058
+ z.ZodTypeDef,
2059
+ unknown
2060
+ > = z.union([
2061
+ z.string(),
2062
+ z.array(z.union([
2063
+ z.lazy(() => ListPromptVersions21$inboundSchema),
2064
+ z.lazy(() => ListPromptVersions22$inboundSchema),
2065
+ z.lazy(() => ListPromptVersions23$inboundSchema),
2066
+ ])),
2067
+ ]);
2068
+
2069
+ export function listPromptVersionsContentFromJSON(
2070
+ jsonString: string,
2071
+ ): SafeParseResult<ListPromptVersionsContent, SDKValidationError> {
2072
+ return safeParse(
2073
+ jsonString,
2074
+ (x) => ListPromptVersionsContent$inboundSchema.parse(JSON.parse(x)),
2075
+ `Failed to parse 'ListPromptVersionsContent' from JSON`,
2076
+ );
2077
+ }
2078
+
2079
+ /** @internal */
2080
+ export const ListPromptVersionsPromptsResponse200Type$inboundSchema:
2081
+ z.ZodNativeEnum<typeof ListPromptVersionsPromptsResponse200Type> = z
2082
+ .nativeEnum(ListPromptVersionsPromptsResponse200Type);
2083
+
2084
+ /** @internal */
2085
+ export const ListPromptVersionsFunction$inboundSchema: z.ZodType<
2086
+ ListPromptVersionsFunction,
2087
+ z.ZodTypeDef,
2088
+ unknown
2089
+ > = z.object({
2090
+ name: z.string(),
2091
+ arguments: z.string(),
2092
+ });
2093
+
2094
+ export function listPromptVersionsFunctionFromJSON(
2095
+ jsonString: string,
2096
+ ): SafeParseResult<ListPromptVersionsFunction, SDKValidationError> {
2097
+ return safeParse(
2098
+ jsonString,
2099
+ (x) => ListPromptVersionsFunction$inboundSchema.parse(JSON.parse(x)),
2100
+ `Failed to parse 'ListPromptVersionsFunction' from JSON`,
2101
+ );
2102
+ }
2103
+
2104
+ /** @internal */
2105
+ export const ListPromptVersionsToolCalls$inboundSchema: z.ZodType<
2106
+ ListPromptVersionsToolCalls,
2107
+ z.ZodTypeDef,
2108
+ unknown
2109
+ > = z.object({
2110
+ id: z.string().optional(),
2111
+ index: z.number().optional(),
2112
+ type: ListPromptVersionsPromptsResponse200Type$inboundSchema,
2113
+ function: z.lazy(() => ListPromptVersionsFunction$inboundSchema),
2114
+ });
2115
+
2116
+ export function listPromptVersionsToolCallsFromJSON(
2117
+ jsonString: string,
2118
+ ): SafeParseResult<ListPromptVersionsToolCalls, SDKValidationError> {
2119
+ return safeParse(
2120
+ jsonString,
2121
+ (x) => ListPromptVersionsToolCalls$inboundSchema.parse(JSON.parse(x)),
2122
+ `Failed to parse 'ListPromptVersionsToolCalls' from JSON`,
2123
+ );
2124
+ }
2125
+
2126
+ /** @internal */
2127
+ export const ListPromptVersionsMessages$inboundSchema: z.ZodType<
2128
+ ListPromptVersionsMessages,
2129
+ z.ZodTypeDef,
2130
+ unknown
2131
+ > = z.object({
2132
+ role: ListPromptVersionsRole$inboundSchema,
2133
+ content: z.nullable(
2134
+ z.union([
2135
+ z.string(),
2136
+ z.array(
2137
+ z.union([
2138
+ z.lazy(() => ListPromptVersions21$inboundSchema),
2139
+ z.lazy(() => ListPromptVersions22$inboundSchema),
2140
+ z.lazy(() => ListPromptVersions23$inboundSchema),
2141
+ ]),
2142
+ ),
2143
+ ]),
2144
+ ),
2145
+ tool_calls: z.array(z.lazy(() => ListPromptVersionsToolCalls$inboundSchema))
2146
+ .optional(),
2147
+ tool_call_id: z.nullable(z.string()).optional(),
2148
+ }).transform((v) => {
2149
+ return remap$(v, {
2150
+ "tool_calls": "toolCalls",
2151
+ "tool_call_id": "toolCallId",
2152
+ });
2153
+ });
2154
+
2155
+ export function listPromptVersionsMessagesFromJSON(
2156
+ jsonString: string,
2157
+ ): SafeParseResult<ListPromptVersionsMessages, SDKValidationError> {
2158
+ return safeParse(
2159
+ jsonString,
2160
+ (x) => ListPromptVersionsMessages$inboundSchema.parse(JSON.parse(x)),
2161
+ `Failed to parse 'ListPromptVersionsMessages' from JSON`,
2162
+ );
2163
+ }
2164
+
2165
+ /** @internal */
2166
+ export const ListPromptVersionsPromptConfig$inboundSchema: z.ZodType<
2167
+ ListPromptVersionsPromptConfig,
2168
+ z.ZodTypeDef,
2169
+ unknown
2170
+ > = z.object({
2171
+ stream: z.boolean().optional(),
2172
+ model: z.nullable(z.string()).optional(),
2173
+ model_db_id: z.nullable(z.string()).optional(),
2174
+ model_type: z.nullable(ListPromptVersionsModelType$inboundSchema).optional(),
2175
+ model_parameters: z.lazy(() =>
2176
+ ListPromptVersionsModelParameters$inboundSchema
2177
+ ).optional(),
2178
+ provider: z.nullable(ListPromptVersionsProvider$inboundSchema).optional(),
2179
+ integration_id: z.nullable(z.string()).optional(),
2180
+ version: z.string().optional(),
2181
+ messages: z.array(z.lazy(() => ListPromptVersionsMessages$inboundSchema)),
2182
+ }).transform((v) => {
2183
+ return remap$(v, {
2184
+ "model_db_id": "modelDbId",
2185
+ "model_type": "modelType",
2186
+ "model_parameters": "modelParameters",
2187
+ "integration_id": "integrationId",
2188
+ });
2189
+ });
2190
+
2191
+ export function listPromptVersionsPromptConfigFromJSON(
2192
+ jsonString: string,
2193
+ ): SafeParseResult<ListPromptVersionsPromptConfig, SDKValidationError> {
2194
+ return safeParse(
2195
+ jsonString,
2196
+ (x) => ListPromptVersionsPromptConfig$inboundSchema.parse(JSON.parse(x)),
2197
+ `Failed to parse 'ListPromptVersionsPromptConfig' from JSON`,
2198
+ );
2199
+ }
2200
+
2201
+ /** @internal */
2202
+ export const ListPromptVersionsVoice$inboundSchema: z.ZodNativeEnum<
2203
+ typeof ListPromptVersionsVoice
2204
+ > = z.nativeEnum(ListPromptVersionsVoice);
2205
+
2206
+ /** @internal */
2207
+ export const ListPromptVersionsPromptsFormat$inboundSchema: z.ZodNativeEnum<
2208
+ typeof ListPromptVersionsPromptsFormat
2209
+ > = z.nativeEnum(ListPromptVersionsPromptsFormat);
2210
+
2211
+ /** @internal */
2212
+ export const ListPromptVersionsAudio$inboundSchema: z.ZodType<
2213
+ ListPromptVersionsAudio,
2214
+ z.ZodTypeDef,
2215
+ unknown
2216
+ > = z.object({
2217
+ voice: ListPromptVersionsVoice$inboundSchema,
2218
+ format: ListPromptVersionsPromptsFormat$inboundSchema,
2219
+ });
2220
+
2221
+ export function listPromptVersionsAudioFromJSON(
2222
+ jsonString: string,
2223
+ ): SafeParseResult<ListPromptVersionsAudio, SDKValidationError> {
2224
+ return safeParse(
2225
+ jsonString,
2226
+ (x) => ListPromptVersionsAudio$inboundSchema.parse(JSON.parse(x)),
2227
+ `Failed to parse 'ListPromptVersionsAudio' from JSON`,
2228
+ );
2229
+ }
2230
+
2231
+ /** @internal */
2232
+ export const ListPromptVersionsResponseFormatJsonSchema$inboundSchema:
2233
+ z.ZodType<ListPromptVersionsResponseFormatJsonSchema, z.ZodTypeDef, unknown> =
2234
+ z.object({
2235
+ description: z.string().optional(),
2236
+ name: z.string(),
2237
+ schema: z.any().optional(),
2238
+ strict: z.boolean().default(false),
2239
+ });
2240
+
2241
+ export function listPromptVersionsResponseFormatJsonSchemaFromJSON(
2242
+ jsonString: string,
2243
+ ): SafeParseResult<
2244
+ ListPromptVersionsResponseFormatJsonSchema,
2245
+ SDKValidationError
2246
+ > {
2247
+ return safeParse(
2248
+ jsonString,
2249
+ (x) =>
2250
+ ListPromptVersionsResponseFormatJsonSchema$inboundSchema.parse(
2251
+ JSON.parse(x),
2252
+ ),
2253
+ `Failed to parse 'ListPromptVersionsResponseFormatJsonSchema' from JSON`,
2254
+ );
2255
+ }
2256
+
2257
+ /** @internal */
2258
+ export const ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema:
2259
+ z.ZodType<
2260
+ ListPromptVersionsResponseFormatPromptsJSONSchema,
2261
+ z.ZodTypeDef,
2262
+ unknown
2263
+ > = z.object({
2264
+ type: z.literal("json_schema"),
2265
+ json_schema: z.lazy(() =>
2266
+ ListPromptVersionsResponseFormatJsonSchema$inboundSchema
2267
+ ),
2268
+ }).transform((v) => {
2269
+ return remap$(v, {
2270
+ "json_schema": "jsonSchema",
2271
+ });
2272
+ });
2273
+
2274
+ export function listPromptVersionsResponseFormatPromptsJSONSchemaFromJSON(
2275
+ jsonString: string,
2276
+ ): SafeParseResult<
2277
+ ListPromptVersionsResponseFormatPromptsJSONSchema,
2278
+ SDKValidationError
2279
+ > {
2280
+ return safeParse(
2281
+ jsonString,
2282
+ (x) =>
2283
+ ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema.parse(
2284
+ JSON.parse(x),
2285
+ ),
2286
+ `Failed to parse 'ListPromptVersionsResponseFormatPromptsJSONSchema' from JSON`,
2287
+ );
2288
+ }
2289
+
2290
+ /** @internal */
2291
+ export const ListPromptVersionsResponseFormatJSONObject$inboundSchema:
2292
+ z.ZodType<ListPromptVersionsResponseFormatJSONObject, z.ZodTypeDef, unknown> =
2293
+ z.object({
2294
+ type: z.literal("json_object"),
2295
+ });
2296
+
2297
+ export function listPromptVersionsResponseFormatJSONObjectFromJSON(
2298
+ jsonString: string,
2299
+ ): SafeParseResult<
2300
+ ListPromptVersionsResponseFormatJSONObject,
2301
+ SDKValidationError
2302
+ > {
2303
+ return safeParse(
2304
+ jsonString,
2305
+ (x) =>
2306
+ ListPromptVersionsResponseFormatJSONObject$inboundSchema.parse(
2307
+ JSON.parse(x),
2308
+ ),
2309
+ `Failed to parse 'ListPromptVersionsResponseFormatJSONObject' from JSON`,
2310
+ );
2311
+ }
2312
+
2313
+ /** @internal */
2314
+ export const ListPromptVersionsResponseFormatText$inboundSchema: z.ZodType<
2315
+ ListPromptVersionsResponseFormatText,
2316
+ z.ZodTypeDef,
2317
+ unknown
2318
+ > = z.object({
2319
+ type: z.literal("text"),
2320
+ });
2321
+
2322
+ export function listPromptVersionsResponseFormatTextFromJSON(
2323
+ jsonString: string,
2324
+ ): SafeParseResult<ListPromptVersionsResponseFormatText, SDKValidationError> {
2325
+ return safeParse(
2326
+ jsonString,
2327
+ (x) =>
2328
+ ListPromptVersionsResponseFormatText$inboundSchema.parse(JSON.parse(x)),
2329
+ `Failed to parse 'ListPromptVersionsResponseFormatText' from JSON`,
2330
+ );
2331
+ }
2332
+
2333
+ /** @internal */
2334
+ export const ListPromptVersionsResponseFormat$inboundSchema: z.ZodType<
2335
+ ListPromptVersionsResponseFormat,
2336
+ z.ZodTypeDef,
2337
+ unknown
2338
+ > = z.union([
2339
+ z.lazy(() => ListPromptVersionsResponseFormatText$inboundSchema),
2340
+ z.lazy(() => ListPromptVersionsResponseFormatJSONObject$inboundSchema),
2341
+ z.lazy(() => ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema),
2342
+ ]);
2343
+
2344
+ export function listPromptVersionsResponseFormatFromJSON(
2345
+ jsonString: string,
2346
+ ): SafeParseResult<ListPromptVersionsResponseFormat, SDKValidationError> {
2347
+ return safeParse(
2348
+ jsonString,
2349
+ (x) => ListPromptVersionsResponseFormat$inboundSchema.parse(JSON.parse(x)),
2350
+ `Failed to parse 'ListPromptVersionsResponseFormat' from JSON`,
2351
+ );
2352
+ }
2353
+
2354
+ /** @internal */
2355
+ export const ListPromptVersionsReasoningEffort$inboundSchema: z.ZodNativeEnum<
2356
+ typeof ListPromptVersionsReasoningEffort
2357
+ > = z.nativeEnum(ListPromptVersionsReasoningEffort);
2358
+
2359
+ /** @internal */
2360
+ export const ListPromptVersionsStop$inboundSchema: z.ZodType<
2361
+ ListPromptVersionsStop,
2362
+ z.ZodTypeDef,
2363
+ unknown
2364
+ > = z.union([z.string(), z.array(z.string())]);
2365
+
2366
+ export function listPromptVersionsStopFromJSON(
2367
+ jsonString: string,
2368
+ ): SafeParseResult<ListPromptVersionsStop, SDKValidationError> {
2369
+ return safeParse(
2370
+ jsonString,
2371
+ (x) => ListPromptVersionsStop$inboundSchema.parse(JSON.parse(x)),
2372
+ `Failed to parse 'ListPromptVersionsStop' from JSON`,
2373
+ );
2374
+ }
2375
+
2376
+ /** @internal */
2377
+ export const ListPromptVersionsStreamOptions$inboundSchema: z.ZodType<
2378
+ ListPromptVersionsStreamOptions,
2379
+ z.ZodTypeDef,
2380
+ unknown
2381
+ > = z.object({
2382
+ include_usage: z.boolean().optional(),
2383
+ }).transform((v) => {
2384
+ return remap$(v, {
2385
+ "include_usage": "includeUsage",
2386
+ });
2387
+ });
2388
+
2389
+ export function listPromptVersionsStreamOptionsFromJSON(
2390
+ jsonString: string,
2391
+ ): SafeParseResult<ListPromptVersionsStreamOptions, SDKValidationError> {
2392
+ return safeParse(
2393
+ jsonString,
2394
+ (x) => ListPromptVersionsStreamOptions$inboundSchema.parse(JSON.parse(x)),
2395
+ `Failed to parse 'ListPromptVersionsStreamOptions' from JSON`,
2396
+ );
2397
+ }
2398
+
2399
+ /** @internal */
2400
+ export const ListPromptVersionsThinking$inboundSchema: z.ZodType<
2401
+ ListPromptVersionsThinking,
2402
+ z.ZodTypeDef,
2403
+ unknown
2404
+ > = z.union([
2405
+ components.ThinkingConfigDisabledSchema$inboundSchema,
2406
+ components.ThinkingConfigEnabledSchema$inboundSchema,
2407
+ components.ThinkingConfigAdaptiveSchema$inboundSchema,
2408
+ ]);
2409
+
2410
+ export function listPromptVersionsThinkingFromJSON(
2411
+ jsonString: string,
2412
+ ): SafeParseResult<ListPromptVersionsThinking, SDKValidationError> {
2413
+ return safeParse(
2414
+ jsonString,
2415
+ (x) => ListPromptVersionsThinking$inboundSchema.parse(JSON.parse(x)),
2416
+ `Failed to parse 'ListPromptVersionsThinking' from JSON`,
2417
+ );
2418
+ }
2419
+
2420
+ /** @internal */
2421
+ export const ListPromptVersionsToolChoiceType$inboundSchema: z.ZodNativeEnum<
2422
+ typeof ListPromptVersionsToolChoiceType
2423
+ > = z.nativeEnum(ListPromptVersionsToolChoiceType);
2424
+
2425
+ /** @internal */
2426
+ export const ListPromptVersionsToolChoiceFunction$inboundSchema: z.ZodType<
2427
+ ListPromptVersionsToolChoiceFunction,
2428
+ z.ZodTypeDef,
2429
+ unknown
2430
+ > = z.object({
2431
+ name: z.string(),
2432
+ });
2433
+
2434
+ export function listPromptVersionsToolChoiceFunctionFromJSON(
2435
+ jsonString: string,
2436
+ ): SafeParseResult<ListPromptVersionsToolChoiceFunction, SDKValidationError> {
2437
+ return safeParse(
2438
+ jsonString,
2439
+ (x) =>
2440
+ ListPromptVersionsToolChoiceFunction$inboundSchema.parse(JSON.parse(x)),
2441
+ `Failed to parse 'ListPromptVersionsToolChoiceFunction' from JSON`,
2442
+ );
2443
+ }
2444
+
2445
+ /** @internal */
2446
+ export const ListPromptVersionsToolChoice2$inboundSchema: z.ZodType<
2447
+ ListPromptVersionsToolChoice2,
2448
+ z.ZodTypeDef,
2449
+ unknown
2450
+ > = z.object({
2451
+ type: ListPromptVersionsToolChoiceType$inboundSchema.optional(),
2452
+ function: z.lazy(() => ListPromptVersionsToolChoiceFunction$inboundSchema),
2453
+ });
2454
+
2455
+ export function listPromptVersionsToolChoice2FromJSON(
2456
+ jsonString: string,
2457
+ ): SafeParseResult<ListPromptVersionsToolChoice2, SDKValidationError> {
2458
+ return safeParse(
2459
+ jsonString,
2460
+ (x) => ListPromptVersionsToolChoice2$inboundSchema.parse(JSON.parse(x)),
2461
+ `Failed to parse 'ListPromptVersionsToolChoice2' from JSON`,
2462
+ );
2463
+ }
2464
+
2465
+ /** @internal */
2466
+ export const ListPromptVersionsToolChoice1$inboundSchema: z.ZodNativeEnum<
2467
+ typeof ListPromptVersionsToolChoice1
2468
+ > = z.nativeEnum(ListPromptVersionsToolChoice1);
2469
+
2470
+ /** @internal */
2471
+ export const ListPromptVersionsToolChoice$inboundSchema: z.ZodType<
2472
+ ListPromptVersionsToolChoice,
2473
+ z.ZodTypeDef,
2474
+ unknown
2475
+ > = z.union([
2476
+ z.lazy(() => ListPromptVersionsToolChoice2$inboundSchema),
2477
+ ListPromptVersionsToolChoice1$inboundSchema,
2478
+ ]);
2479
+
2480
+ export function listPromptVersionsToolChoiceFromJSON(
2481
+ jsonString: string,
2482
+ ): SafeParseResult<ListPromptVersionsToolChoice, SDKValidationError> {
2483
+ return safeParse(
2484
+ jsonString,
2485
+ (x) => ListPromptVersionsToolChoice$inboundSchema.parse(JSON.parse(x)),
2486
+ `Failed to parse 'ListPromptVersionsToolChoice' from JSON`,
2487
+ );
2488
+ }
2489
+
2490
+ /** @internal */
2491
+ export const ListPromptVersionsModalities$inboundSchema: z.ZodNativeEnum<
2492
+ typeof ListPromptVersionsModalities
2493
+ > = z.nativeEnum(ListPromptVersionsModalities);
2494
+
2495
+ /** @internal */
2496
+ export const ListPromptVersionsId1$inboundSchema: z.ZodNativeEnum<
2497
+ typeof ListPromptVersionsId1
2498
+ > = z.nativeEnum(ListPromptVersionsId1);
2499
+
2500
+ /** @internal */
2501
+ export const ListPromptVersionsId$inboundSchema: z.ZodType<
2502
+ ListPromptVersionsId,
2503
+ z.ZodTypeDef,
2504
+ unknown
2505
+ > = z.union([ListPromptVersionsId1$inboundSchema, z.string()]);
2506
+
2507
+ export function listPromptVersionsIdFromJSON(
2508
+ jsonString: string,
2509
+ ): SafeParseResult<ListPromptVersionsId, SDKValidationError> {
2510
+ return safeParse(
2511
+ jsonString,
2512
+ (x) => ListPromptVersionsId$inboundSchema.parse(JSON.parse(x)),
2513
+ `Failed to parse 'ListPromptVersionsId' from JSON`,
2514
+ );
2515
+ }
2516
+
2517
+ /** @internal */
2518
+ export const ListPromptVersionsExecuteOn$inboundSchema: z.ZodNativeEnum<
2519
+ typeof ListPromptVersionsExecuteOn
2520
+ > = z.nativeEnum(ListPromptVersionsExecuteOn);
2521
+
2522
+ /** @internal */
2523
+ export const ListPromptVersionsGuardrails$inboundSchema: z.ZodType<
2524
+ ListPromptVersionsGuardrails,
2525
+ z.ZodTypeDef,
2526
+ unknown
2527
+ > = z.object({
2528
+ id: z.union([ListPromptVersionsId1$inboundSchema, z.string()]),
2529
+ execute_on: ListPromptVersionsExecuteOn$inboundSchema,
2530
+ }).transform((v) => {
2531
+ return remap$(v, {
2532
+ "execute_on": "executeOn",
2533
+ });
2534
+ });
2535
+
2536
+ export function listPromptVersionsGuardrailsFromJSON(
2537
+ jsonString: string,
2538
+ ): SafeParseResult<ListPromptVersionsGuardrails, SDKValidationError> {
2539
+ return safeParse(
2540
+ jsonString,
2541
+ (x) => ListPromptVersionsGuardrails$inboundSchema.parse(JSON.parse(x)),
2542
+ `Failed to parse 'ListPromptVersionsGuardrails' from JSON`,
2543
+ );
2544
+ }
2545
+
2546
+ /** @internal */
2547
+ export const ListPromptVersionsPlugins$inboundSchema: z.ZodType<
2548
+ ListPromptVersionsPlugins,
2549
+ z.ZodTypeDef,
2550
+ unknown
2551
+ > = z.union([
2552
+ components.PIIRedactionPluginEn$inboundSchema,
2553
+ components.PIIRedactionPluginNl$inboundSchema,
2554
+ components.PIIRedactionPluginAuto$inboundSchema,
2555
+ ]);
2556
+
2557
+ export function listPromptVersionsPluginsFromJSON(
2558
+ jsonString: string,
2559
+ ): SafeParseResult<ListPromptVersionsPlugins, SDKValidationError> {
2560
+ return safeParse(
2561
+ jsonString,
2562
+ (x) => ListPromptVersionsPlugins$inboundSchema.parse(JSON.parse(x)),
2563
+ `Failed to parse 'ListPromptVersionsPlugins' from JSON`,
2564
+ );
2565
+ }
2566
+
2567
+ /** @internal */
2568
+ export const ListPromptVersionsFallbacks$inboundSchema: z.ZodType<
2569
+ ListPromptVersionsFallbacks,
2570
+ z.ZodTypeDef,
2571
+ unknown
2572
+ > = z.object({
2573
+ model: z.string(),
2574
+ });
2575
+
2576
+ export function listPromptVersionsFallbacksFromJSON(
2577
+ jsonString: string,
2578
+ ): SafeParseResult<ListPromptVersionsFallbacks, SDKValidationError> {
2579
+ return safeParse(
2580
+ jsonString,
2581
+ (x) => ListPromptVersionsFallbacks$inboundSchema.parse(JSON.parse(x)),
2582
+ `Failed to parse 'ListPromptVersionsFallbacks' from JSON`,
2583
+ );
2584
+ }
2585
+
2586
+ /** @internal */
2587
+ export const ListPromptVersionsRetry$inboundSchema: z.ZodType<
2588
+ ListPromptVersionsRetry,
2589
+ z.ZodTypeDef,
2590
+ unknown
2591
+ > = z.object({
2592
+ count: z.number().default(3),
2593
+ on_codes: z.array(z.number()).optional(),
2594
+ }).transform((v) => {
2595
+ return remap$(v, {
2596
+ "on_codes": "onCodes",
2597
+ });
2598
+ });
2599
+
2600
+ export function listPromptVersionsRetryFromJSON(
2601
+ jsonString: string,
2602
+ ): SafeParseResult<ListPromptVersionsRetry, SDKValidationError> {
2603
+ return safeParse(
2604
+ jsonString,
2605
+ (x) => ListPromptVersionsRetry$inboundSchema.parse(JSON.parse(x)),
2606
+ `Failed to parse 'ListPromptVersionsRetry' from JSON`,
2607
+ );
2608
+ }
2609
+
2610
+ /** @internal */
2611
+ export const ListPromptVersionsType$inboundSchema: z.ZodNativeEnum<
2612
+ typeof ListPromptVersionsType
2613
+ > = z.nativeEnum(ListPromptVersionsType);
2614
+
2615
+ /** @internal */
2616
+ export const ListPromptVersionsCache$inboundSchema: z.ZodType<
2617
+ ListPromptVersionsCache,
2618
+ z.ZodTypeDef,
2619
+ unknown
2620
+ > = z.object({
2621
+ ttl: z.number().default(1800),
2622
+ type: ListPromptVersionsType$inboundSchema,
2623
+ });
2624
+
2625
+ export function listPromptVersionsCacheFromJSON(
2626
+ jsonString: string,
2627
+ ): SafeParseResult<ListPromptVersionsCache, SDKValidationError> {
2628
+ return safeParse(
2629
+ jsonString,
2630
+ (x) => ListPromptVersionsCache$inboundSchema.parse(JSON.parse(x)),
2631
+ `Failed to parse 'ListPromptVersionsCache' from JSON`,
2632
+ );
2633
+ }
2634
+
2635
+ /** @internal */
2636
+ export const ListPromptVersionsLoadBalancerType$inboundSchema: z.ZodNativeEnum<
2637
+ typeof ListPromptVersionsLoadBalancerType
2638
+ > = z.nativeEnum(ListPromptVersionsLoadBalancerType);
2639
+
2640
+ /** @internal */
2641
+ export const ListPromptVersionsLoadBalancerModels$inboundSchema: z.ZodType<
2642
+ ListPromptVersionsLoadBalancerModels,
2643
+ z.ZodTypeDef,
2644
+ unknown
2645
+ > = z.object({
2646
+ model: z.string(),
2647
+ weight: z.number().default(0.5),
2648
+ });
2649
+
2650
+ export function listPromptVersionsLoadBalancerModelsFromJSON(
2651
+ jsonString: string,
2652
+ ): SafeParseResult<ListPromptVersionsLoadBalancerModels, SDKValidationError> {
2653
+ return safeParse(
2654
+ jsonString,
2655
+ (x) =>
2656
+ ListPromptVersionsLoadBalancerModels$inboundSchema.parse(JSON.parse(x)),
2657
+ `Failed to parse 'ListPromptVersionsLoadBalancerModels' from JSON`,
2658
+ );
2659
+ }
2660
+
2661
+ /** @internal */
2662
+ export const ListPromptVersionsLoadBalancer1$inboundSchema: z.ZodType<
2663
+ ListPromptVersionsLoadBalancer1,
2664
+ z.ZodTypeDef,
2665
+ unknown
2666
+ > = z.object({
2667
+ type: ListPromptVersionsLoadBalancerType$inboundSchema,
2668
+ models: z.array(
2669
+ z.lazy(() => ListPromptVersionsLoadBalancerModels$inboundSchema),
2670
+ ),
2671
+ });
2672
+
2673
+ export function listPromptVersionsLoadBalancer1FromJSON(
2674
+ jsonString: string,
2675
+ ): SafeParseResult<ListPromptVersionsLoadBalancer1, SDKValidationError> {
2676
+ return safeParse(
2677
+ jsonString,
2678
+ (x) => ListPromptVersionsLoadBalancer1$inboundSchema.parse(JSON.parse(x)),
2679
+ `Failed to parse 'ListPromptVersionsLoadBalancer1' from JSON`,
2680
+ );
2681
+ }
2682
+
2683
+ /** @internal */
2684
+ export const ListPromptVersionsLoadBalancer$inboundSchema: z.ZodType<
2685
+ ListPromptVersionsLoadBalancer,
2686
+ z.ZodTypeDef,
2687
+ unknown
2688
+ > = z.lazy(() => ListPromptVersionsLoadBalancer1$inboundSchema);
2689
+
2690
+ export function listPromptVersionsLoadBalancerFromJSON(
2691
+ jsonString: string,
2692
+ ): SafeParseResult<ListPromptVersionsLoadBalancer, SDKValidationError> {
2693
+ return safeParse(
2694
+ jsonString,
2695
+ (x) => ListPromptVersionsLoadBalancer$inboundSchema.parse(JSON.parse(x)),
2696
+ `Failed to parse 'ListPromptVersionsLoadBalancer' from JSON`,
2697
+ );
2698
+ }
2699
+
2700
+ /** @internal */
2701
+ export const ListPromptVersionsTimeout$inboundSchema: z.ZodType<
2702
+ ListPromptVersionsTimeout,
2703
+ z.ZodTypeDef,
2704
+ unknown
2705
+ > = z.object({
2706
+ call_timeout: z.number(),
2707
+ }).transform((v) => {
2708
+ return remap$(v, {
2709
+ "call_timeout": "callTimeout",
2710
+ });
2711
+ });
2712
+
2713
+ export function listPromptVersionsTimeoutFromJSON(
2714
+ jsonString: string,
2715
+ ): SafeParseResult<ListPromptVersionsTimeout, SDKValidationError> {
2716
+ return safeParse(
2717
+ jsonString,
2718
+ (x) => ListPromptVersionsTimeout$inboundSchema.parse(JSON.parse(x)),
2719
+ `Failed to parse 'ListPromptVersionsTimeout' from JSON`,
2720
+ );
2721
+ }
2722
+
2723
+ /** @internal */
2724
+ export const ListPromptVersionsPromptsType$inboundSchema: z.ZodNativeEnum<
2725
+ typeof ListPromptVersionsPromptsType
2726
+ > = z.nativeEnum(ListPromptVersionsPromptsType);
2727
+
2728
+ /** @internal */
2729
+ export const ListPromptVersionsTtl$inboundSchema: z.ZodNativeEnum<
2730
+ typeof ListPromptVersionsTtl
2731
+ > = z.nativeEnum(ListPromptVersionsTtl);
2732
+
2733
+ /** @internal */
2734
+ export const ListPromptVersionsCacheControl$inboundSchema: z.ZodType<
2735
+ ListPromptVersionsCacheControl,
2736
+ z.ZodTypeDef,
2737
+ unknown
2738
+ > = z.object({
2739
+ type: ListPromptVersionsPromptsType$inboundSchema,
2740
+ ttl: ListPromptVersionsTtl$inboundSchema.default("5m"),
2741
+ });
2742
+
2743
+ export function listPromptVersionsCacheControlFromJSON(
2744
+ jsonString: string,
2745
+ ): SafeParseResult<ListPromptVersionsCacheControl, SDKValidationError> {
2746
+ return safeParse(
2747
+ jsonString,
2748
+ (x) => ListPromptVersionsCacheControl$inboundSchema.parse(JSON.parse(x)),
2749
+ `Failed to parse 'ListPromptVersionsCacheControl' from JSON`,
2750
+ );
2751
+ }
2752
+
2753
+ /** @internal */
2754
+ export const ListPromptVersionsContentPromptsResponse2002$inboundSchema:
2755
+ z.ZodType<
2756
+ ListPromptVersionsContentPromptsResponse2002,
2757
+ z.ZodTypeDef,
2758
+ unknown
2759
+ > = components.TextContentPartSchema$inboundSchema;
2760
+
2761
+ export function listPromptVersionsContentPromptsResponse2002FromJSON(
2762
+ jsonString: string,
2763
+ ): SafeParseResult<
2764
+ ListPromptVersionsContentPromptsResponse2002,
2765
+ SDKValidationError
2766
+ > {
2767
+ return safeParse(
2768
+ jsonString,
2769
+ (x) =>
2770
+ ListPromptVersionsContentPromptsResponse2002$inboundSchema.parse(
2771
+ JSON.parse(x),
2772
+ ),
2773
+ `Failed to parse 'ListPromptVersionsContentPromptsResponse2002' from JSON`,
2774
+ );
2775
+ }
2776
+
2777
+ /** @internal */
2778
+ export const ListPromptVersionsMessagesPromptsResponse200Content$inboundSchema:
2779
+ z.ZodType<
2780
+ ListPromptVersionsMessagesPromptsResponse200Content,
2781
+ z.ZodTypeDef,
2782
+ unknown
2783
+ > = z.union([
2784
+ z.string(),
2785
+ z.array(components.TextContentPartSchema$inboundSchema),
2786
+ ]);
2787
+
2788
+ export function listPromptVersionsMessagesPromptsResponse200ContentFromJSON(
2789
+ jsonString: string,
2790
+ ): SafeParseResult<
2791
+ ListPromptVersionsMessagesPromptsResponse200Content,
2792
+ SDKValidationError
2793
+ > {
2794
+ return safeParse(
2795
+ jsonString,
2796
+ (x) =>
2797
+ ListPromptVersionsMessagesPromptsResponse200Content$inboundSchema.parse(
2798
+ JSON.parse(x),
2799
+ ),
2800
+ `Failed to parse 'ListPromptVersionsMessagesPromptsResponse200Content' from JSON`,
2801
+ );
2802
+ }
2803
+
2804
+ /** @internal */
2805
+ export const ListPromptVersionsMessagesPromptsType$inboundSchema:
2806
+ z.ZodNativeEnum<typeof ListPromptVersionsMessagesPromptsType> = z.nativeEnum(
2807
+ ListPromptVersionsMessagesPromptsType,
2808
+ );
2809
+
2810
+ /** @internal */
2811
+ export const ListPromptVersionsMessagesTtl$inboundSchema: z.ZodNativeEnum<
2812
+ typeof ListPromptVersionsMessagesTtl
2813
+ > = z.nativeEnum(ListPromptVersionsMessagesTtl);
2814
+
2815
+ /** @internal */
2816
+ export const ListPromptVersionsMessagesCacheControl$inboundSchema: z.ZodType<
2817
+ ListPromptVersionsMessagesCacheControl,
2818
+ z.ZodTypeDef,
2819
+ unknown
2820
+ > = z.object({
2821
+ type: ListPromptVersionsMessagesPromptsType$inboundSchema,
2822
+ ttl: ListPromptVersionsMessagesTtl$inboundSchema.default("5m"),
2823
+ });
2824
+
2825
+ export function listPromptVersionsMessagesCacheControlFromJSON(
2826
+ jsonString: string,
2827
+ ): SafeParseResult<ListPromptVersionsMessagesCacheControl, SDKValidationError> {
2828
+ return safeParse(
2829
+ jsonString,
2830
+ (x) =>
2831
+ ListPromptVersionsMessagesCacheControl$inboundSchema.parse(JSON.parse(x)),
2832
+ `Failed to parse 'ListPromptVersionsMessagesCacheControl' from JSON`,
2833
+ );
2834
+ }
2835
+
2836
+ /** @internal */
2837
+ export const ListPromptVersionsMessagesToolMessage$inboundSchema: z.ZodType<
2838
+ ListPromptVersionsMessagesToolMessage,
2839
+ z.ZodTypeDef,
2840
+ unknown
2841
+ > = z.object({
2842
+ role: z.literal("tool"),
2843
+ content: z.union([
2844
+ z.string(),
2845
+ z.array(components.TextContentPartSchema$inboundSchema),
2846
+ ]),
2847
+ tool_call_id: z.nullable(z.string()),
2848
+ cache_control: z.lazy(() =>
2849
+ ListPromptVersionsMessagesCacheControl$inboundSchema
2850
+ ).optional(),
2851
+ }).transform((v) => {
2852
+ return remap$(v, {
2853
+ "tool_call_id": "toolCallId",
2854
+ "cache_control": "cacheControl",
2855
+ });
2856
+ });
2857
+
2858
+ export function listPromptVersionsMessagesToolMessageFromJSON(
2859
+ jsonString: string,
2860
+ ): SafeParseResult<ListPromptVersionsMessagesToolMessage, SDKValidationError> {
2861
+ return safeParse(
2862
+ jsonString,
2863
+ (x) =>
2864
+ ListPromptVersionsMessagesToolMessage$inboundSchema.parse(JSON.parse(x)),
2865
+ `Failed to parse 'ListPromptVersionsMessagesToolMessage' from JSON`,
2866
+ );
2867
+ }
2868
+
2869
+ /** @internal */
2870
+ export const ListPromptVersionsContentPromptsResponse2$inboundSchema: z.ZodType<
2871
+ ListPromptVersionsContentPromptsResponse2,
2872
+ z.ZodTypeDef,
2873
+ unknown
2874
+ > = z.union([
2875
+ components.TextContentPartSchema$inboundSchema.and(
2876
+ z.object({ type: z.literal("text") }),
2877
+ ),
2878
+ components.RefusalPartSchema$inboundSchema,
2879
+ components.ReasoningPartSchema$inboundSchema,
2880
+ components.RedactedReasoningPartSchema$inboundSchema,
2881
+ ]);
2882
+
2883
+ export function listPromptVersionsContentPromptsResponse2FromJSON(
2884
+ jsonString: string,
2885
+ ): SafeParseResult<
2886
+ ListPromptVersionsContentPromptsResponse2,
2887
+ SDKValidationError
2888
+ > {
2889
+ return safeParse(
2890
+ jsonString,
2891
+ (x) =>
2892
+ ListPromptVersionsContentPromptsResponse2$inboundSchema.parse(
2893
+ JSON.parse(x),
2894
+ ),
2895
+ `Failed to parse 'ListPromptVersionsContentPromptsResponse2' from JSON`,
2896
+ );
2897
+ }
2898
+
2899
+ /** @internal */
2900
+ export const ListPromptVersionsMessagesPromptsResponseContent$inboundSchema:
2901
+ z.ZodType<
2902
+ ListPromptVersionsMessagesPromptsResponseContent,
2903
+ z.ZodTypeDef,
2904
+ unknown
2905
+ > = z.union([
2906
+ z.string(),
2907
+ z.array(
2908
+ z.union([
2909
+ components.TextContentPartSchema$inboundSchema.and(
2910
+ z.object({ type: z.literal("text") }),
2911
+ ),
2912
+ components.RefusalPartSchema$inboundSchema,
2913
+ components.ReasoningPartSchema$inboundSchema,
2914
+ components.RedactedReasoningPartSchema$inboundSchema,
2915
+ ]),
2916
+ ),
2917
+ ]);
2918
+
2919
+ export function listPromptVersionsMessagesPromptsResponseContentFromJSON(
2920
+ jsonString: string,
2921
+ ): SafeParseResult<
2922
+ ListPromptVersionsMessagesPromptsResponseContent,
2923
+ SDKValidationError
2924
+ > {
2925
+ return safeParse(
2926
+ jsonString,
2927
+ (x) =>
2928
+ ListPromptVersionsMessagesPromptsResponseContent$inboundSchema.parse(
2929
+ JSON.parse(x),
2930
+ ),
2931
+ `Failed to parse 'ListPromptVersionsMessagesPromptsResponseContent' from JSON`,
2932
+ );
2933
+ }
2934
+
2935
+ /** @internal */
2936
+ export const ListPromptVersionsMessagesAudio$inboundSchema: z.ZodType<
2937
+ ListPromptVersionsMessagesAudio,
2938
+ z.ZodTypeDef,
2939
+ unknown
2940
+ > = z.object({
2941
+ id: z.string(),
2942
+ });
2943
+
2944
+ export function listPromptVersionsMessagesAudioFromJSON(
2945
+ jsonString: string,
2946
+ ): SafeParseResult<ListPromptVersionsMessagesAudio, SDKValidationError> {
2947
+ return safeParse(
2948
+ jsonString,
2949
+ (x) => ListPromptVersionsMessagesAudio$inboundSchema.parse(JSON.parse(x)),
2950
+ `Failed to parse 'ListPromptVersionsMessagesAudio' from JSON`,
2951
+ );
2952
+ }
2953
+
2954
+ /** @internal */
2955
+ export const ListPromptVersionsMessagesType$inboundSchema: z.ZodNativeEnum<
2956
+ typeof ListPromptVersionsMessagesType
2957
+ > = z.nativeEnum(ListPromptVersionsMessagesType);
2958
+
2959
+ /** @internal */
2960
+ export const ListPromptVersionsMessagesFunction$inboundSchema: z.ZodType<
2961
+ ListPromptVersionsMessagesFunction,
2962
+ z.ZodTypeDef,
2963
+ unknown
2964
+ > = z.object({
2965
+ name: z.string().optional(),
2966
+ arguments: z.string().optional(),
2967
+ });
2968
+
2969
+ export function listPromptVersionsMessagesFunctionFromJSON(
2970
+ jsonString: string,
2971
+ ): SafeParseResult<ListPromptVersionsMessagesFunction, SDKValidationError> {
2972
+ return safeParse(
2973
+ jsonString,
2974
+ (x) =>
2975
+ ListPromptVersionsMessagesFunction$inboundSchema.parse(JSON.parse(x)),
2976
+ `Failed to parse 'ListPromptVersionsMessagesFunction' from JSON`,
2977
+ );
2978
+ }
2979
+
2980
+ /** @internal */
2981
+ export const ListPromptVersionsMessagesToolCalls$inboundSchema: z.ZodType<
2982
+ ListPromptVersionsMessagesToolCalls,
2983
+ z.ZodTypeDef,
2984
+ unknown
2985
+ > = z.object({
2986
+ id: z.string(),
2987
+ type: ListPromptVersionsMessagesType$inboundSchema,
2988
+ function: z.lazy(() => ListPromptVersionsMessagesFunction$inboundSchema),
2989
+ thought_signature: z.string().optional(),
2990
+ }).transform((v) => {
2991
+ return remap$(v, {
2992
+ "thought_signature": "thoughtSignature",
2993
+ });
2994
+ });
2995
+
2996
+ export function listPromptVersionsMessagesToolCallsFromJSON(
2997
+ jsonString: string,
2998
+ ): SafeParseResult<ListPromptVersionsMessagesToolCalls, SDKValidationError> {
2999
+ return safeParse(
3000
+ jsonString,
3001
+ (x) =>
3002
+ ListPromptVersionsMessagesToolCalls$inboundSchema.parse(JSON.parse(x)),
3003
+ `Failed to parse 'ListPromptVersionsMessagesToolCalls' from JSON`,
3004
+ );
3005
+ }
3006
+
3007
+ /** @internal */
3008
+ export const ListPromptVersionsMessagesAssistantMessage$inboundSchema:
3009
+ z.ZodType<ListPromptVersionsMessagesAssistantMessage, z.ZodTypeDef, unknown> =
3010
+ z.object({
3011
+ content: z.nullable(
3012
+ z.union([
3013
+ z.string(),
3014
+ z.array(
3015
+ z.union([
3016
+ components.TextContentPartSchema$inboundSchema.and(
3017
+ z.object({ type: z.literal("text") }),
3018
+ ),
3019
+ components.RefusalPartSchema$inboundSchema,
3020
+ components.ReasoningPartSchema$inboundSchema,
3021
+ components.RedactedReasoningPartSchema$inboundSchema,
3022
+ ]),
3023
+ ),
3024
+ ]),
3025
+ ).optional(),
3026
+ refusal: z.nullable(z.string()).optional(),
3027
+ role: z.literal("assistant"),
3028
+ name: z.string().optional(),
3029
+ audio: z.nullable(
3030
+ z.lazy(() => ListPromptVersionsMessagesAudio$inboundSchema),
3031
+ ).optional(),
3032
+ tool_calls: z.array(
3033
+ z.lazy(() => ListPromptVersionsMessagesToolCalls$inboundSchema),
3034
+ ).optional(),
3035
+ }).transform((v) => {
3036
+ return remap$(v, {
3037
+ "tool_calls": "toolCalls",
3038
+ });
3039
+ });
3040
+
3041
+ export function listPromptVersionsMessagesAssistantMessageFromJSON(
3042
+ jsonString: string,
3043
+ ): SafeParseResult<
3044
+ ListPromptVersionsMessagesAssistantMessage,
3045
+ SDKValidationError
3046
+ > {
3047
+ return safeParse(
3048
+ jsonString,
3049
+ (x) =>
3050
+ ListPromptVersionsMessagesAssistantMessage$inboundSchema.parse(
3051
+ JSON.parse(x),
3052
+ ),
3053
+ `Failed to parse 'ListPromptVersionsMessagesAssistantMessage' from JSON`,
3054
+ );
3055
+ }
3056
+
3057
+ /** @internal */
3058
+ export const ListPromptVersions2PromptsResponse200ApplicationJSONType$inboundSchema:
3059
+ z.ZodNativeEnum<
3060
+ typeof ListPromptVersions2PromptsResponse200ApplicationJSONType
3061
+ > = z.nativeEnum(ListPromptVersions2PromptsResponse200ApplicationJSONType);
3062
+
3063
+ /** @internal */
3064
+ export const ListPromptVersions2Ttl$inboundSchema: z.ZodNativeEnum<
3065
+ typeof ListPromptVersions2Ttl
3066
+ > = z.nativeEnum(ListPromptVersions2Ttl);
3067
+
3068
+ /** @internal */
3069
+ export const ListPromptVersions2CacheControl$inboundSchema: z.ZodType<
3070
+ ListPromptVersions2CacheControl,
3071
+ z.ZodTypeDef,
3072
+ unknown
3073
+ > = z.object({
3074
+ type: ListPromptVersions2PromptsResponse200ApplicationJSONType$inboundSchema,
3075
+ ttl: ListPromptVersions2Ttl$inboundSchema.default("5m"),
3076
+ });
3077
+
3078
+ export function listPromptVersions2CacheControlFromJSON(
3079
+ jsonString: string,
3080
+ ): SafeParseResult<ListPromptVersions2CacheControl, SDKValidationError> {
3081
+ return safeParse(
3082
+ jsonString,
3083
+ (x) => ListPromptVersions2CacheControl$inboundSchema.parse(JSON.parse(x)),
3084
+ `Failed to parse 'ListPromptVersions2CacheControl' from JSON`,
3085
+ );
3086
+ }
3087
+
3088
+ /** @internal */
3089
+ export const ListPromptVersions24$inboundSchema: z.ZodType<
3090
+ ListPromptVersions24,
3091
+ z.ZodTypeDef,
3092
+ unknown
3093
+ > = z.object({
3094
+ type: z.literal("file"),
3095
+ cache_control: z.lazy(() => ListPromptVersions2CacheControl$inboundSchema)
3096
+ .optional(),
3097
+ file: components.FileContentPartSchema$inboundSchema,
3098
+ }).transform((v) => {
3099
+ return remap$(v, {
3100
+ "cache_control": "cacheControl",
3101
+ });
3102
+ });
3103
+
3104
+ export function listPromptVersions24FromJSON(
3105
+ jsonString: string,
3106
+ ): SafeParseResult<ListPromptVersions24, SDKValidationError> {
3107
+ return safeParse(
3108
+ jsonString,
3109
+ (x) => ListPromptVersions24$inboundSchema.parse(JSON.parse(x)),
3110
+ `Failed to parse 'ListPromptVersions24' from JSON`,
3111
+ );
3112
+ }
3113
+
3114
+ /** @internal */
3115
+ export const ListPromptVersionsContentPrompts2$inboundSchema: z.ZodType<
3116
+ ListPromptVersionsContentPrompts2,
3117
+ z.ZodTypeDef,
3118
+ unknown
3119
+ > = z.union([
3120
+ components.TextContentPartSchema$inboundSchema.and(
3121
+ z.object({ type: z.literal("text") }),
3122
+ ),
3123
+ components.ImageContentPartSchema$inboundSchema,
3124
+ components.AudioContentPartSchema$inboundSchema,
3125
+ z.lazy(() => ListPromptVersions24$inboundSchema),
3126
+ ]);
3127
+
3128
+ export function listPromptVersionsContentPrompts2FromJSON(
3129
+ jsonString: string,
3130
+ ): SafeParseResult<ListPromptVersionsContentPrompts2, SDKValidationError> {
3131
+ return safeParse(
3132
+ jsonString,
3133
+ (x) => ListPromptVersionsContentPrompts2$inboundSchema.parse(JSON.parse(x)),
3134
+ `Failed to parse 'ListPromptVersionsContentPrompts2' from JSON`,
3135
+ );
3136
+ }
3137
+
3138
+ /** @internal */
3139
+ export const ListPromptVersionsMessagesPromptsContent$inboundSchema: z.ZodType<
3140
+ ListPromptVersionsMessagesPromptsContent,
3141
+ z.ZodTypeDef,
3142
+ unknown
3143
+ > = z.union([
3144
+ z.string(),
3145
+ z.array(
3146
+ z.union([
3147
+ components.TextContentPartSchema$inboundSchema.and(
3148
+ z.object({ type: z.literal("text") }),
3149
+ ),
3150
+ components.ImageContentPartSchema$inboundSchema,
3151
+ components.AudioContentPartSchema$inboundSchema,
3152
+ z.lazy(() => ListPromptVersions24$inboundSchema),
3153
+ ]),
3154
+ ),
3155
+ ]);
3156
+
3157
+ export function listPromptVersionsMessagesPromptsContentFromJSON(
3158
+ jsonString: string,
3159
+ ): SafeParseResult<
3160
+ ListPromptVersionsMessagesPromptsContent,
3161
+ SDKValidationError
3162
+ > {
3163
+ return safeParse(
3164
+ jsonString,
3165
+ (x) =>
3166
+ ListPromptVersionsMessagesPromptsContent$inboundSchema.parse(
3167
+ JSON.parse(x),
3168
+ ),
3169
+ `Failed to parse 'ListPromptVersionsMessagesPromptsContent' from JSON`,
3170
+ );
3171
+ }
3172
+
3173
+ /** @internal */
3174
+ export const ListPromptVersionsMessagesUserMessage$inboundSchema: z.ZodType<
3175
+ ListPromptVersionsMessagesUserMessage,
3176
+ z.ZodTypeDef,
3177
+ unknown
3178
+ > = z.object({
3179
+ role: z.literal("user"),
3180
+ name: z.string().optional(),
3181
+ content: z.union([
3182
+ z.string(),
3183
+ z.array(
3184
+ z.union([
3185
+ components.TextContentPartSchema$inboundSchema.and(
3186
+ z.object({ type: z.literal("text") }),
3187
+ ),
3188
+ components.ImageContentPartSchema$inboundSchema,
3189
+ components.AudioContentPartSchema$inboundSchema,
3190
+ z.lazy(() => ListPromptVersions24$inboundSchema),
3191
+ ]),
3192
+ ),
3193
+ ]),
3194
+ });
3195
+
3196
+ export function listPromptVersionsMessagesUserMessageFromJSON(
3197
+ jsonString: string,
3198
+ ): SafeParseResult<ListPromptVersionsMessagesUserMessage, SDKValidationError> {
3199
+ return safeParse(
3200
+ jsonString,
3201
+ (x) =>
3202
+ ListPromptVersionsMessagesUserMessage$inboundSchema.parse(JSON.parse(x)),
3203
+ `Failed to parse 'ListPromptVersionsMessagesUserMessage' from JSON`,
3204
+ );
3205
+ }
3206
+
3207
+ /** @internal */
3208
+ export const ListPromptVersionsMessagesContent$inboundSchema: z.ZodType<
3209
+ ListPromptVersionsMessagesContent,
3210
+ z.ZodTypeDef,
3211
+ unknown
3212
+ > = z.union([
3213
+ z.string(),
3214
+ z.array(components.TextContentPartSchema$inboundSchema),
3215
+ ]);
3216
+
3217
+ export function listPromptVersionsMessagesContentFromJSON(
3218
+ jsonString: string,
3219
+ ): SafeParseResult<ListPromptVersionsMessagesContent, SDKValidationError> {
3220
+ return safeParse(
3221
+ jsonString,
3222
+ (x) => ListPromptVersionsMessagesContent$inboundSchema.parse(JSON.parse(x)),
3223
+ `Failed to parse 'ListPromptVersionsMessagesContent' from JSON`,
3224
+ );
3225
+ }
3226
+
3227
+ /** @internal */
3228
+ export const ListPromptVersionsMessagesSystemMessage$inboundSchema: z.ZodType<
3229
+ ListPromptVersionsMessagesSystemMessage,
3230
+ z.ZodTypeDef,
3231
+ unknown
3232
+ > = z.object({
3233
+ role: z.literal("system"),
3234
+ content: z.union([
3235
+ z.string(),
3236
+ z.array(components.TextContentPartSchema$inboundSchema),
3237
+ ]),
3238
+ name: z.string().optional(),
3239
+ });
3240
+
3241
+ export function listPromptVersionsMessagesSystemMessageFromJSON(
3242
+ jsonString: string,
3243
+ ): SafeParseResult<
3244
+ ListPromptVersionsMessagesSystemMessage,
3245
+ SDKValidationError
3246
+ > {
3247
+ return safeParse(
3248
+ jsonString,
3249
+ (x) =>
3250
+ ListPromptVersionsMessagesSystemMessage$inboundSchema.parse(
3251
+ JSON.parse(x),
3252
+ ),
3253
+ `Failed to parse 'ListPromptVersionsMessagesSystemMessage' from JSON`,
3254
+ );
3255
+ }
3256
+
3257
+ /** @internal */
3258
+ export const ListPromptVersionsPromptsMessages$inboundSchema: z.ZodType<
3259
+ ListPromptVersionsPromptsMessages,
3260
+ z.ZodTypeDef,
3261
+ unknown
3262
+ > = z.union([
3263
+ z.lazy(() => ListPromptVersionsMessagesSystemMessage$inboundSchema),
3264
+ z.lazy(() => ListPromptVersionsMessagesUserMessage$inboundSchema),
3265
+ z.lazy(() => ListPromptVersionsMessagesAssistantMessage$inboundSchema),
3266
+ z.lazy(() => ListPromptVersionsMessagesToolMessage$inboundSchema),
3267
+ ]);
3268
+
3269
+ export function listPromptVersionsPromptsMessagesFromJSON(
3270
+ jsonString: string,
3271
+ ): SafeParseResult<ListPromptVersionsPromptsMessages, SDKValidationError> {
3272
+ return safeParse(
3273
+ jsonString,
3274
+ (x) => ListPromptVersionsPromptsMessages$inboundSchema.parse(JSON.parse(x)),
3275
+ `Failed to parse 'ListPromptVersionsPromptsMessages' from JSON`,
3276
+ );
3277
+ }
3278
+
3279
+ /** @internal */
3280
+ export const ListPromptVersionsPromptField$inboundSchema: z.ZodType<
3281
+ ListPromptVersionsPromptField,
3282
+ z.ZodTypeDef,
3283
+ unknown
3284
+ > = z.object({
3285
+ name: z.string().optional(),
3286
+ audio: z.nullable(z.lazy(() => ListPromptVersionsAudio$inboundSchema))
3287
+ .optional(),
3288
+ frequency_penalty: z.nullable(z.number()).optional(),
3289
+ max_tokens: z.nullable(z.number().int()).optional(),
3290
+ max_completion_tokens: z.nullable(z.number().int()).optional(),
3291
+ logprobs: z.nullable(z.boolean()).optional(),
3292
+ top_logprobs: z.nullable(z.number().int()).optional(),
3293
+ n: z.nullable(z.number().int()).optional(),
3294
+ presence_penalty: z.nullable(z.number()).optional(),
3295
+ response_format: z.union([
3296
+ z.lazy(() => ListPromptVersionsResponseFormatText$inboundSchema),
3297
+ z.lazy(() => ListPromptVersionsResponseFormatJSONObject$inboundSchema),
3298
+ z.lazy(() =>
3299
+ ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema
3300
+ ),
3301
+ ]).optional(),
3302
+ reasoning_effort: ListPromptVersionsReasoningEffort$inboundSchema.optional(),
3303
+ verbosity: z.string().optional(),
3304
+ seed: z.nullable(z.number()).optional(),
3305
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
3306
+ stream_options: z.nullable(
3307
+ z.lazy(() => ListPromptVersionsStreamOptions$inboundSchema),
3308
+ ).optional(),
3309
+ thinking: z.union([
3310
+ components.ThinkingConfigDisabledSchema$inboundSchema,
3311
+ components.ThinkingConfigEnabledSchema$inboundSchema,
3312
+ components.ThinkingConfigAdaptiveSchema$inboundSchema,
3313
+ ]).optional(),
3314
+ temperature: z.nullable(z.number()).optional(),
3315
+ top_p: z.nullable(z.number()).optional(),
3316
+ top_k: z.nullable(z.number()).optional(),
3317
+ tool_choice: z.union([
3318
+ z.lazy(() => ListPromptVersionsToolChoice2$inboundSchema),
3319
+ ListPromptVersionsToolChoice1$inboundSchema,
3320
+ ]).optional(),
3321
+ parallel_tool_calls: z.boolean().optional(),
3322
+ modalities: z.nullable(z.array(ListPromptVersionsModalities$inboundSchema))
3323
+ .optional(),
3324
+ guardrails: z.array(z.lazy(() => ListPromptVersionsGuardrails$inboundSchema))
3325
+ .optional(),
3326
+ plugins: z.array(
3327
+ z.union([
3328
+ components.PIIRedactionPluginEn$inboundSchema,
3329
+ components.PIIRedactionPluginNl$inboundSchema,
3330
+ components.PIIRedactionPluginAuto$inboundSchema,
3331
+ ]),
3332
+ ).optional(),
3333
+ fallbacks: z.array(z.lazy(() => ListPromptVersionsFallbacks$inboundSchema))
3334
+ .optional(),
3335
+ retry: z.lazy(() => ListPromptVersionsRetry$inboundSchema).optional(),
3336
+ cache: z.lazy(() => ListPromptVersionsCache$inboundSchema).optional(),
3337
+ load_balancer: z.lazy(() => ListPromptVersionsLoadBalancer1$inboundSchema)
3338
+ .optional(),
3339
+ timeout: z.lazy(() => ListPromptVersionsTimeout$inboundSchema).optional(),
3340
+ cache_control: z.lazy(() => ListPromptVersionsCacheControl$inboundSchema)
3341
+ .optional(),
3342
+ prompt_cache_key: z.string().optional(),
3343
+ messages: z.array(
3344
+ z.union([
3345
+ z.lazy(() => ListPromptVersionsMessagesSystemMessage$inboundSchema),
3346
+ z.lazy(() => ListPromptVersionsMessagesUserMessage$inboundSchema),
3347
+ z.lazy(() => ListPromptVersionsMessagesAssistantMessage$inboundSchema),
3348
+ z.lazy(() => ListPromptVersionsMessagesToolMessage$inboundSchema),
3349
+ ]),
3350
+ ).optional(),
3351
+ model: z.nullable(z.string()).optional(),
3352
+ version: z.string().optional(),
3353
+ }).transform((v) => {
3354
+ return remap$(v, {
3355
+ "frequency_penalty": "frequencyPenalty",
3356
+ "max_tokens": "maxTokens",
3357
+ "max_completion_tokens": "maxCompletionTokens",
3358
+ "top_logprobs": "topLogprobs",
3359
+ "presence_penalty": "presencePenalty",
3360
+ "response_format": "responseFormat",
3361
+ "reasoning_effort": "reasoningEffort",
3362
+ "stream_options": "streamOptions",
3363
+ "top_p": "topP",
3364
+ "top_k": "topK",
3365
+ "tool_choice": "toolChoice",
3366
+ "parallel_tool_calls": "parallelToolCalls",
3367
+ "load_balancer": "loadBalancer",
3368
+ "cache_control": "cacheControl",
3369
+ "prompt_cache_key": "promptCacheKey",
3370
+ });
3371
+ });
3372
+
3373
+ export function listPromptVersionsPromptFieldFromJSON(
3374
+ jsonString: string,
3375
+ ): SafeParseResult<ListPromptVersionsPromptField, SDKValidationError> {
3376
+ return safeParse(
3377
+ jsonString,
3378
+ (x) => ListPromptVersionsPromptField$inboundSchema.parse(JSON.parse(x)),
3379
+ `Failed to parse 'ListPromptVersionsPromptField' from JSON`,
3380
+ );
3381
+ }
3382
+
3383
+ /** @internal */
3384
+ export const ListPromptVersionsUseCases$inboundSchema: z.ZodNativeEnum<
3385
+ typeof ListPromptVersionsUseCases
3386
+ > = z.nativeEnum(ListPromptVersionsUseCases);
3387
+
3388
+ /** @internal */
3389
+ export const ListPromptVersionsLanguage$inboundSchema: z.ZodNativeEnum<
3390
+ typeof ListPromptVersionsLanguage
3391
+ > = z.nativeEnum(ListPromptVersionsLanguage);
3392
+
3393
+ /** @internal */
3394
+ export const ListPromptVersionsMetadata$inboundSchema: z.ZodType<
3395
+ ListPromptVersionsMetadata,
3396
+ z.ZodTypeDef,
3397
+ unknown
3398
+ > = z.object({
3399
+ use_cases: z.array(ListPromptVersionsUseCases$inboundSchema).optional(),
3400
+ language: z.nullable(ListPromptVersionsLanguage$inboundSchema).optional(),
3401
+ }).transform((v) => {
3402
+ return remap$(v, {
3403
+ "use_cases": "useCases",
3404
+ });
3405
+ });
3406
+
3407
+ export function listPromptVersionsMetadataFromJSON(
3408
+ jsonString: string,
3409
+ ): SafeParseResult<ListPromptVersionsMetadata, SDKValidationError> {
3410
+ return safeParse(
3411
+ jsonString,
3412
+ (x) => ListPromptVersionsMetadata$inboundSchema.parse(JSON.parse(x)),
3413
+ `Failed to parse 'ListPromptVersionsMetadata' from JSON`,
3414
+ );
3415
+ }
3416
+
3417
+ /** @internal */
3418
+ export const ListPromptVersionsData$inboundSchema: z.ZodType<
3419
+ ListPromptVersionsData,
3420
+ z.ZodTypeDef,
3421
+ unknown
3422
+ > = z.object({
3423
+ _id: z.string(),
3424
+ created_by_id: z.nullable(z.string()).optional(),
3425
+ updated_by_id: z.nullable(z.string()).optional(),
3426
+ description: z.nullable(z.string()).optional(),
3427
+ prompt_config: z.lazy(() => ListPromptVersionsPromptConfig$inboundSchema)
3428
+ .optional(),
3429
+ prompt: z.lazy(() => ListPromptVersionsPromptField$inboundSchema),
3430
+ metadata: z.lazy(() => ListPromptVersionsMetadata$inboundSchema).optional(),
3431
+ timestamp: z.string(),
3432
+ }).transform((v) => {
3433
+ return remap$(v, {
3434
+ "_id": "id",
3435
+ "created_by_id": "createdById",
3436
+ "updated_by_id": "updatedById",
3437
+ "prompt_config": "promptConfig",
3438
+ });
3439
+ });
3440
+
3441
+ export function listPromptVersionsDataFromJSON(
3442
+ jsonString: string,
3443
+ ): SafeParseResult<ListPromptVersionsData, SDKValidationError> {
3444
+ return safeParse(
3445
+ jsonString,
3446
+ (x) => ListPromptVersionsData$inboundSchema.parse(JSON.parse(x)),
3447
+ `Failed to parse 'ListPromptVersionsData' from JSON`,
3448
+ );
3449
+ }
3450
+
3451
+ /** @internal */
3452
+ export const ListPromptVersionsResponseBody$inboundSchema: z.ZodType<
3453
+ ListPromptVersionsResponseBody,
3454
+ z.ZodTypeDef,
3455
+ unknown
3456
+ > = z.object({
3457
+ object: ListPromptVersionsObject$inboundSchema,
3458
+ data: z.array(z.lazy(() => ListPromptVersionsData$inboundSchema)),
3459
+ has_more: z.boolean(),
3460
+ }).transform((v) => {
3461
+ return remap$(v, {
3462
+ "has_more": "hasMore",
3463
+ });
3464
+ });
3465
+
3466
+ export function listPromptVersionsResponseBodyFromJSON(
3467
+ jsonString: string,
3468
+ ): SafeParseResult<ListPromptVersionsResponseBody, SDKValidationError> {
3469
+ return safeParse(
3470
+ jsonString,
3471
+ (x) => ListPromptVersionsResponseBody$inboundSchema.parse(JSON.parse(x)),
3472
+ `Failed to parse 'ListPromptVersionsResponseBody' from JSON`,
3473
+ );
3474
+ }