@orq-ai/node 4.11.0 → 4.12.0-rc.2

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