@orq-ai/node 4.12.0-rc.8 → 4.12.3

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 (1534) hide show
  1. package/README.md +65 -43
  2. package/funcs/datasetsClear.d.ts +2 -1
  3. package/funcs/datasetsClear.d.ts.map +1 -1
  4. package/funcs/datasetsClear.js +6 -2
  5. package/funcs/datasetsClear.js.map +1 -1
  6. package/funcs/filesList.js +1 -0
  7. package/funcs/filesList.js.map +1 -1
  8. package/funcs/knowledgeListDatasources.js +1 -0
  9. package/funcs/knowledgeListDatasources.js.map +1 -1
  10. package/funcs/notifiersList.js +2 -0
  11. package/funcs/notifiersList.js.map +1 -1
  12. package/funcs/reportingQuery.d.ts +3 -1
  13. package/funcs/reportingQuery.d.ts.map +1 -1
  14. package/funcs/reportingQuery.js +3 -1
  15. package/funcs/reportingQuery.js.map +1 -1
  16. package/funcs/telemetryQuery.d.ts +17 -0
  17. package/funcs/telemetryQuery.d.ts.map +1 -0
  18. package/funcs/telemetryQuery.js +115 -0
  19. package/funcs/telemetryQuery.js.map +1 -0
  20. package/funcs/tracesAggregate.d.ts +3 -1
  21. package/funcs/tracesAggregate.d.ts.map +1 -1
  22. package/funcs/tracesAggregate.js +3 -1
  23. package/funcs/tracesAggregate.js.map +1 -1
  24. package/funcs/{budgetsCheck.d.ts → webhooksCount.d.ts} +4 -4
  25. package/funcs/webhooksCount.d.ts.map +1 -0
  26. package/funcs/webhooksCount.js +105 -0
  27. package/funcs/webhooksCount.js.map +1 -0
  28. package/funcs/webhooksCreate.d.ts +17 -0
  29. package/funcs/webhooksCreate.d.ts.map +1 -0
  30. package/funcs/{budgetsCheck.js → webhooksCreate.js} +9 -9
  31. package/funcs/webhooksCreate.js.map +1 -0
  32. package/funcs/webhooksDelete.d.ts +18 -0
  33. package/funcs/webhooksDelete.d.ts.map +1 -0
  34. package/funcs/webhooksDelete.js +121 -0
  35. package/funcs/webhooksDelete.js.map +1 -0
  36. package/funcs/webhooksGenerateSecret.d.ts +17 -0
  37. package/funcs/webhooksGenerateSecret.d.ts.map +1 -0
  38. package/funcs/webhooksGenerateSecret.js +105 -0
  39. package/funcs/webhooksGenerateSecret.js.map +1 -0
  40. package/funcs/webhooksGet.d.ts +18 -0
  41. package/funcs/webhooksGet.d.ts.map +1 -0
  42. package/funcs/webhooksGet.js +121 -0
  43. package/funcs/webhooksGet.js.map +1 -0
  44. package/funcs/webhooksList.d.ts +18 -0
  45. package/funcs/webhooksList.d.ts.map +1 -0
  46. package/funcs/webhooksList.js +126 -0
  47. package/funcs/webhooksList.js.map +1 -0
  48. package/funcs/webhooksQuery.d.ts +19 -0
  49. package/funcs/webhooksQuery.d.ts.map +1 -0
  50. package/funcs/webhooksQuery.js +117 -0
  51. package/funcs/webhooksQuery.js.map +1 -0
  52. package/funcs/webhooksUpdate.d.ts +17 -0
  53. package/funcs/webhooksUpdate.d.ts.map +1 -0
  54. package/funcs/webhooksUpdate.js +121 -0
  55. package/funcs/webhooksUpdate.js.map +1 -0
  56. package/jsr.json +1 -1
  57. package/lib/config.d.ts +3 -3
  58. package/lib/config.js +3 -3
  59. package/lib/config.js.map +1 -1
  60. package/lib/http.d.ts +1 -1
  61. package/lib/http.d.ts.map +1 -1
  62. package/lib/http.js +1 -1
  63. package/lib/http.js.map +1 -1
  64. package/lib/security.d.ts +5 -4
  65. package/lib/security.d.ts.map +1 -1
  66. package/lib/security.js +6 -7
  67. package/lib/security.js.map +1 -1
  68. package/models/components/actionreviewrequestedstreamingevent.d.ts +2 -2
  69. package/models/components/actionreviewrequestedstreamingevent.d.ts.map +1 -1
  70. package/models/components/actionreviewrequestedstreamingevent.js +1 -1
  71. package/models/components/actionreviewrequestedstreamingevent.js.map +1 -1
  72. package/models/components/agentstartedstreamingevent.d.ts +2 -2
  73. package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
  74. package/models/components/agentstartedstreamingevent.js +1 -1
  75. package/models/components/agentstartedstreamingevent.js.map +1 -1
  76. package/models/components/agenttoolinputcrud.d.ts +413 -0
  77. package/models/components/agenttoolinputcrud.d.ts.map +1 -0
  78. package/models/components/agenttoolinputcrud.js +287 -0
  79. package/models/components/agenttoolinputcrud.js.map +1 -0
  80. package/models/components/apikey.d.ts +5 -0
  81. package/models/components/apikey.d.ts.map +1 -1
  82. package/models/components/apikey.js +2 -0
  83. package/models/components/apikey.js.map +1 -1
  84. package/models/components/budget.d.ts +5 -0
  85. package/models/components/budget.d.ts.map +1 -1
  86. package/models/components/budget.js +2 -0
  87. package/models/components/budget.js.map +1 -1
  88. package/models/components/budgetalert.d.ts +41 -0
  89. package/models/components/budgetalert.d.ts.map +1 -0
  90. package/models/components/budgetalert.js +76 -0
  91. package/models/components/budgetalert.js.map +1 -0
  92. package/models/components/budgetalertdimension.d.ts +13 -0
  93. package/models/components/budgetalertdimension.d.ts.map +1 -0
  94. package/models/components/budgetalertdimension.js +50 -0
  95. package/models/components/budgetalertdimension.js.map +1 -0
  96. package/models/components/codetoolinput.d.ts +38 -0
  97. package/models/components/codetoolinput.d.ts.map +1 -0
  98. package/models/components/{checkbudgetsrequest.js → codetoolinput.js} +12 -23
  99. package/models/components/codetoolinput.js.map +1 -0
  100. package/models/components/config.d.ts +14 -0
  101. package/models/components/config.d.ts.map +1 -0
  102. package/models/components/config.js +63 -0
  103. package/models/components/config.js.map +1 -0
  104. package/models/components/countwebhooksresponse.d.ts +16 -0
  105. package/models/components/countwebhooksresponse.d.ts.map +1 -0
  106. package/models/components/countwebhooksresponse.js +50 -0
  107. package/models/components/countwebhooksresponse.js.map +1 -0
  108. package/models/components/createbudgetrequest.d.ts +9 -0
  109. package/models/components/createbudgetrequest.d.ts.map +1 -1
  110. package/models/components/createbudgetrequest.js +2 -0
  111. package/models/components/createbudgetrequest.js.map +1 -1
  112. package/models/components/createwebhookrequest.d.ts +62 -0
  113. package/models/components/createwebhookrequest.d.ts.map +1 -0
  114. package/models/components/createwebhookrequest.js +71 -0
  115. package/models/components/createwebhookrequest.js.map +1 -0
  116. package/models/components/deletewebhookresponse.d.ts +13 -0
  117. package/models/components/deletewebhookresponse.d.ts.map +1 -0
  118. package/models/components/deletewebhookresponse.js +50 -0
  119. package/models/components/deletewebhookresponse.js.map +1 -0
  120. package/models/components/evaluatorresponsefunction.js +2 -2
  121. package/models/components/evaluatorresponsehttp.js +2 -2
  122. package/models/components/evaluatorresponsejsonschema.js +2 -2
  123. package/models/components/evaluatorresponsellm.js +2 -2
  124. package/models/components/evaluatorresponsepython.js +2 -2
  125. package/models/components/evaluatorresponseragas.js +2 -2
  126. package/models/components/evaluatorresponsetypescript.js +2 -2
  127. package/models/components/functiontoolinput.d.ts +33 -0
  128. package/models/components/functiontoolinput.d.ts.map +1 -0
  129. package/models/components/functiontoolinput.js +57 -0
  130. package/models/components/functiontoolinput.js.map +1 -0
  131. package/models/components/generatewebhooksecretresponse.d.ts +16 -0
  132. package/models/components/generatewebhooksecretresponse.d.ts.map +1 -0
  133. package/models/components/generatewebhooksecretresponse.js +50 -0
  134. package/models/components/generatewebhooksecretresponse.js.map +1 -0
  135. package/models/components/httptoolinput.d.ts +38 -0
  136. package/models/components/httptoolinput.d.ts.map +1 -0
  137. package/models/components/httptoolinput.js +58 -0
  138. package/models/components/httptoolinput.js.map +1 -0
  139. package/models/components/identity.d.ts +9 -4
  140. package/models/components/identity.d.ts.map +1 -1
  141. package/models/components/identity.js +8 -6
  142. package/models/components/identity.js.map +1 -1
  143. package/models/components/index.d.ts +29 -4
  144. package/models/components/index.d.ts.map +1 -1
  145. package/models/components/index.js +29 -4
  146. package/models/components/index.js.map +1 -1
  147. package/models/components/jsonschematoolinput.d.ts +33 -0
  148. package/models/components/jsonschematoolinput.d.ts.map +1 -0
  149. package/models/components/jsonschematoolinput.js +57 -0
  150. package/models/components/jsonschematoolinput.js.map +1 -0
  151. package/models/components/listwebhooksresponse.d.ts +25 -0
  152. package/models/components/listwebhooksresponse.d.ts.map +1 -0
  153. package/models/components/{budgetrejection.js → listwebhooksresponse.js} +11 -13
  154. package/models/components/listwebhooksresponse.js.map +1 -0
  155. package/models/components/mcptoolinput.d.ts +38 -0
  156. package/models/components/mcptoolinput.d.ts.map +1 -0
  157. package/models/components/mcptoolinput.js +59 -0
  158. package/models/components/mcptoolinput.js.map +1 -0
  159. package/models/components/modeldocument.d.ts +2 -0
  160. package/models/components/modeldocument.d.ts.map +1 -1
  161. package/models/components/modeldocument.js +2 -0
  162. package/models/components/modeldocument.js.map +1 -1
  163. package/models/components/modelsconfig.d.ts +1 -0
  164. package/models/components/modelsconfig.d.ts.map +1 -1
  165. package/models/components/modelsconfig.js +1 -0
  166. package/models/components/modelsconfig.js.map +1 -1
  167. package/models/components/providertoolinput.d.ts +47 -0
  168. package/models/components/providertoolinput.d.ts.map +1 -0
  169. package/models/components/providertoolinput.js +59 -0
  170. package/models/components/providertoolinput.js.map +1 -0
  171. package/models/components/queryparamspagination.d.ts +18 -0
  172. package/models/components/queryparamspagination.d.ts.map +1 -0
  173. package/models/components/queryparamspagination.js +52 -0
  174. package/models/components/queryparamspagination.js.map +1 -0
  175. package/models/components/queryparamssort.d.ts +14 -0
  176. package/models/components/queryparamssort.d.ts.map +1 -0
  177. package/models/components/queryparamssort.js +50 -0
  178. package/models/components/queryparamssort.js.map +1 -0
  179. package/models/components/querytelemetrymeta.d.ts +11 -0
  180. package/models/components/querytelemetrymeta.d.ts.map +1 -0
  181. package/models/components/{dimensioninfo.js → querytelemetrymeta.js} +9 -10
  182. package/models/components/querytelemetrymeta.js.map +1 -0
  183. package/models/components/querytelemetryrequest.d.ts +40 -0
  184. package/models/components/querytelemetryrequest.d.ts.map +1 -0
  185. package/models/components/querytelemetryrequest.js +69 -0
  186. package/models/components/querytelemetryrequest.js.map +1 -0
  187. package/models/components/querytelemetryresponse.d.ts +15 -0
  188. package/models/components/querytelemetryresponse.d.ts.map +1 -0
  189. package/models/components/{checkbudgetsresponse.js → querytelemetryresponse.js} +12 -13
  190. package/models/components/querytelemetryresponse.js.map +1 -0
  191. package/models/components/querywebhooksrequest.d.ts +38 -0
  192. package/models/components/querywebhooksrequest.d.ts.map +1 -0
  193. package/models/components/querywebhooksrequest.js +67 -0
  194. package/models/components/querywebhooksrequest.js.map +1 -0
  195. package/models/components/querywebhooksresponse.d.ts +12 -0
  196. package/models/components/querywebhooksresponse.d.ts.map +1 -0
  197. package/models/components/querywebhooksresponse.js +52 -0
  198. package/models/components/querywebhooksresponse.js.map +1 -0
  199. package/models/components/reasoningpart.js +1 -1
  200. package/models/components/responsecustomtoolcallinputdeltastreamevent.d.ts +35 -0
  201. package/models/components/responsecustomtoolcallinputdeltastreamevent.d.ts.map +1 -0
  202. package/models/components/responsecustomtoolcallinputdeltastreamevent.js +61 -0
  203. package/models/components/responsecustomtoolcallinputdeltastreamevent.js.map +1 -0
  204. package/models/components/responsecustomtoolcallinputdonestreamevent.d.ts +35 -0
  205. package/models/components/responsecustomtoolcallinputdonestreamevent.d.ts.map +1 -0
  206. package/models/components/responsecustomtoolcallinputdonestreamevent.js +61 -0
  207. package/models/components/responsecustomtoolcallinputdonestreamevent.js.map +1 -0
  208. package/models/components/responsemcplisttoolscompletedstreamevent.d.ts +31 -0
  209. package/models/components/responsemcplisttoolscompletedstreamevent.d.ts.map +1 -0
  210. package/models/components/responsemcplisttoolscompletedstreamevent.js +60 -0
  211. package/models/components/responsemcplisttoolscompletedstreamevent.js.map +1 -0
  212. package/models/components/responsemcplisttoolsfailedstreamevent.d.ts +31 -0
  213. package/models/components/responsemcplisttoolsfailedstreamevent.d.ts.map +1 -0
  214. package/models/components/responsemcplisttoolsfailedstreamevent.js +60 -0
  215. package/models/components/responsemcplisttoolsfailedstreamevent.js.map +1 -0
  216. package/models/components/responsemcplisttoolsinprogressstreamevent.d.ts +31 -0
  217. package/models/components/responsemcplisttoolsinprogressstreamevent.d.ts.map +1 -0
  218. package/models/components/responsemcplisttoolsinprogressstreamevent.js +60 -0
  219. package/models/components/responsemcplisttoolsinprogressstreamevent.js.map +1 -0
  220. package/models/components/responsestreamevent.d.ts +6 -1
  221. package/models/components/responsestreamevent.d.ts.map +1 -1
  222. package/models/components/responsestreamevent.js +10 -0
  223. package/models/components/responsestreamevent.js.map +1 -1
  224. package/models/components/telemetryrow.d.ts +22 -0
  225. package/models/components/telemetryrow.d.ts.map +1 -0
  226. package/models/components/telemetryrow.js +53 -0
  227. package/models/components/telemetryrow.js.map +1 -0
  228. package/models/components/thinkingconfigenabledschema.d.ts +1 -0
  229. package/models/components/thinkingconfigenabledschema.d.ts.map +1 -1
  230. package/models/components/thinkingconfigenabledschema.js +1 -0
  231. package/models/components/thinkingconfigenabledschema.js.map +1 -1
  232. package/models/components/updatebudgetrequest.d.ts +14 -0
  233. package/models/components/updatebudgetrequest.d.ts.map +1 -1
  234. package/models/components/updatebudgetrequest.js +4 -0
  235. package/models/components/updatebudgetrequest.js.map +1 -1
  236. package/models/components/webhook.d.ts +74 -0
  237. package/models/components/webhook.d.ts.map +1 -0
  238. package/models/components/webhook.js +81 -0
  239. package/models/components/webhook.js.map +1 -0
  240. package/models/operations/createagentrequest.d.ts +9 -660
  241. package/models/operations/createagentrequest.d.ts.map +1 -1
  242. package/models/operations/createagentrequest.js +12 -419
  243. package/models/operations/createagentrequest.js.map +1 -1
  244. package/models/operations/createchatcompletion.d.ts +1 -0
  245. package/models/operations/createchatcompletion.d.ts.map +1 -1
  246. package/models/operations/createchatcompletion.js +1 -0
  247. package/models/operations/createchatcompletion.js.map +1 -1
  248. package/models/operations/createdataset.js +1 -1
  249. package/models/operations/createdatasetitem.d.ts +121 -8
  250. package/models/operations/createdatasetitem.d.ts.map +1 -1
  251. package/models/operations/createdatasetitem.js +97 -12
  252. package/models/operations/createdatasetitem.js.map +1 -1
  253. package/models/operations/createdatasource.d.ts +42 -0
  254. package/models/operations/createdatasource.d.ts.map +1 -1
  255. package/models/operations/createdatasource.js +26 -2
  256. package/models/operations/createdatasource.js.map +1 -1
  257. package/models/operations/createeval.d.ts +88 -88
  258. package/models/operations/createeval.d.ts.map +1 -1
  259. package/models/operations/createeval.js +78 -78
  260. package/models/operations/createeval.js.map +1 -1
  261. package/models/operations/createknowledge.d.ts +6 -6
  262. package/models/operations/createknowledge.d.ts.map +1 -1
  263. package/models/operations/createknowledge.js +6 -6
  264. package/models/operations/createknowledge.js.map +1 -1
  265. package/models/operations/createprompt.d.ts +5 -0
  266. package/models/operations/createprompt.d.ts.map +1 -1
  267. package/models/operations/createprompt.js +5 -0
  268. package/models/operations/createprompt.js.map +1 -1
  269. package/models/operations/createrouterresponse.d.ts +84 -26
  270. package/models/operations/createrouterresponse.d.ts.map +1 -1
  271. package/models/operations/createrouterresponse.js +47 -17
  272. package/models/operations/createrouterresponse.js.map +1 -1
  273. package/models/operations/createtool.d.ts +27 -18
  274. package/models/operations/createtool.d.ts.map +1 -1
  275. package/models/operations/createtool.js +30 -28
  276. package/models/operations/createtool.js.map +1 -1
  277. package/models/operations/deploymentgetconfig.d.ts +1 -0
  278. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  279. package/models/operations/deploymentgetconfig.js +1 -0
  280. package/models/operations/deploymentgetconfig.js.map +1 -1
  281. package/models/operations/deploymentinvoke.d.ts +2 -0
  282. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  283. package/models/operations/deploymentinvoke.js +2 -0
  284. package/models/operations/deploymentinvoke.js.map +1 -1
  285. package/models/operations/deployments.d.ts +3 -0
  286. package/models/operations/deployments.d.ts.map +1 -1
  287. package/models/operations/deployments.js +3 -0
  288. package/models/operations/deployments.js.map +1 -1
  289. package/models/operations/deploymentstream.d.ts +2 -0
  290. package/models/operations/deploymentstream.d.ts.map +1 -1
  291. package/models/operations/deploymentstream.js +2 -0
  292. package/models/operations/deploymentstream.js.map +1 -1
  293. package/models/operations/filelist.d.ts +10 -0
  294. package/models/operations/filelist.d.ts.map +1 -1
  295. package/models/operations/filelist.js +1 -0
  296. package/models/operations/filelist.js.map +1 -1
  297. package/models/operations/getallmemories.d.ts +1 -1
  298. package/models/operations/getallmemorydocuments.d.ts +1 -1
  299. package/models/operations/getallmemorystores.d.ts +1 -1
  300. package/models/operations/getallprompts.d.ts +5 -1
  301. package/models/operations/getallprompts.d.ts.map +1 -1
  302. package/models/operations/getallprompts.js +4 -0
  303. package/models/operations/getallprompts.js.map +1 -1
  304. package/models/operations/getalltools.d.ts +4 -0
  305. package/models/operations/getalltools.d.ts.map +1 -1
  306. package/models/operations/getalltools.js +7 -6
  307. package/models/operations/getalltools.js.map +1 -1
  308. package/models/operations/getevals.d.ts +1 -1
  309. package/models/operations/getoneprompt.d.ts +4 -0
  310. package/models/operations/getoneprompt.d.ts.map +1 -1
  311. package/models/operations/getoneprompt.js +4 -0
  312. package/models/operations/getoneprompt.js.map +1 -1
  313. package/models/operations/getpromptversion.d.ts +4 -0
  314. package/models/operations/getpromptversion.d.ts.map +1 -1
  315. package/models/operations/getpromptversion.js +4 -0
  316. package/models/operations/getpromptversion.js.map +1 -1
  317. package/models/operations/getv2evaluatorsidversions.d.ts +1 -1
  318. package/models/operations/getv2humanevalsets.js +2 -2
  319. package/models/operations/getv2humanevalsetsid.js +2 -2
  320. package/models/operations/getv2toolstoolidversions.d.ts +1 -1
  321. package/models/operations/index.d.ts +4 -0
  322. package/models/operations/index.d.ts.map +1 -1
  323. package/models/operations/index.js +4 -0
  324. package/models/operations/index.js.map +1 -1
  325. package/models/operations/listagents.d.ts +5 -3
  326. package/models/operations/listagents.d.ts.map +1 -1
  327. package/models/operations/listagents.js +4 -2
  328. package/models/operations/listagents.js.map +1 -1
  329. package/models/operations/listchunks.d.ts +1 -1
  330. package/models/operations/listdatasetdatapoints.d.ts +150 -37
  331. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  332. package/models/operations/listdatasetdatapoints.js +119 -37
  333. package/models/operations/listdatasetdatapoints.js.map +1 -1
  334. package/models/operations/listdatasets.d.ts +1 -1
  335. package/models/operations/listdatasets.js +1 -1
  336. package/models/operations/listdatasources.d.ts +48 -0
  337. package/models/operations/listdatasources.d.ts.map +1 -1
  338. package/models/operations/listdatasources.js +33 -2
  339. package/models/operations/listdatasources.js.map +1 -1
  340. package/models/operations/listpromptversions.d.ts +5 -1
  341. package/models/operations/listpromptversions.d.ts.map +1 -1
  342. package/models/operations/listpromptversions.js +4 -0
  343. package/models/operations/listpromptversions.js.map +1 -1
  344. package/models/operations/modelcreate.d.ts +1 -0
  345. package/models/operations/modelcreate.d.ts.map +1 -1
  346. package/models/operations/modelcreate.js +1 -0
  347. package/models/operations/modelcreate.js.map +1 -1
  348. package/models/operations/modelcreateautorouter.d.ts +1 -0
  349. package/models/operations/modelcreateautorouter.d.ts.map +1 -1
  350. package/models/operations/modelcreateautorouter.js +1 -0
  351. package/models/operations/modelcreateautorouter.js.map +1 -1
  352. package/models/operations/modelcreateawsbedrock.d.ts +1 -0
  353. package/models/operations/modelcreateawsbedrock.d.ts.map +1 -1
  354. package/models/operations/modelcreateawsbedrock.js +1 -0
  355. package/models/operations/modelcreateawsbedrock.js.map +1 -1
  356. package/models/operations/modelcreateopenailike.d.ts +1 -0
  357. package/models/operations/modelcreateopenailike.d.ts.map +1 -1
  358. package/models/operations/modelcreateopenailike.js +1 -0
  359. package/models/operations/modelcreateopenailike.js.map +1 -1
  360. package/models/operations/modelcreatevertex.d.ts +1 -0
  361. package/models/operations/modelcreatevertex.d.ts.map +1 -1
  362. package/models/operations/modelcreatevertex.js +1 -0
  363. package/models/operations/modelcreatevertex.js.map +1 -1
  364. package/models/operations/modelupdate.d.ts +1 -0
  365. package/models/operations/modelupdate.d.ts.map +1 -1
  366. package/models/operations/modelupdate.js +1 -0
  367. package/models/operations/modelupdate.js.map +1 -1
  368. package/models/operations/modelupdateautorouter.d.ts +1 -0
  369. package/models/operations/modelupdateautorouter.d.ts.map +1 -1
  370. package/models/operations/modelupdateautorouter.js +1 -0
  371. package/models/operations/modelupdateautorouter.js.map +1 -1
  372. package/models/operations/modelupdateawsbedrock.d.ts +1 -0
  373. package/models/operations/modelupdateawsbedrock.d.ts.map +1 -1
  374. package/models/operations/modelupdateawsbedrock.js +1 -0
  375. package/models/operations/modelupdateawsbedrock.js.map +1 -1
  376. package/models/operations/modelupdateopenailike.d.ts +1 -0
  377. package/models/operations/modelupdateopenailike.d.ts.map +1 -1
  378. package/models/operations/modelupdateopenailike.js +1 -0
  379. package/models/operations/modelupdateopenailike.js.map +1 -1
  380. package/models/operations/notifierlist.d.ts +11 -0
  381. package/models/operations/notifierlist.d.ts.map +1 -1
  382. package/models/operations/notifierlist.js +3 -0
  383. package/models/operations/notifierlist.js.map +1 -1
  384. package/models/operations/patchv2humanevalsetsid.js +2 -2
  385. package/models/operations/postv2feedbackevaluation.d.ts +68 -6
  386. package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
  387. package/models/operations/postv2feedbackevaluation.js +46 -6
  388. package/models/operations/postv2feedbackevaluation.js.map +1 -1
  389. package/models/operations/postv2humanevalsets.js +2 -2
  390. package/models/operations/retrieveagentrequest.d.ts +5 -3
  391. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  392. package/models/operations/retrieveagentrequest.js +4 -2
  393. package/models/operations/retrieveagentrequest.js.map +1 -1
  394. package/models/operations/retrievedatapoint.d.ts +117 -4
  395. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  396. package/models/operations/retrievedatapoint.js +90 -8
  397. package/models/operations/retrievedatapoint.js.map +1 -1
  398. package/models/operations/retrievedataset.js +1 -1
  399. package/models/operations/retrievedatasource.d.ts +33 -0
  400. package/models/operations/retrievedatasource.d.ts.map +1 -1
  401. package/models/operations/retrievedatasource.js +25 -2
  402. package/models/operations/retrievedatasource.js.map +1 -1
  403. package/models/operations/retrieveresponse.d.ts +4 -4
  404. package/models/operations/retrieveresponse.d.ts.map +1 -1
  405. package/models/operations/retrieveresponse.js +4 -4
  406. package/models/operations/retrieveresponse.js.map +1 -1
  407. package/models/operations/retrievetool.d.ts +4 -0
  408. package/models/operations/retrievetool.d.ts.map +1 -1
  409. package/models/operations/retrievetool.js +7 -6
  410. package/models/operations/retrievetool.js.map +1 -1
  411. package/models/operations/runagent.d.ts +69 -52
  412. package/models/operations/runagent.d.ts.map +1 -1
  413. package/models/operations/runagent.js +80 -75
  414. package/models/operations/runagent.js.map +1 -1
  415. package/models/operations/streamrunagent.d.ts +69 -52
  416. package/models/operations/streamrunagent.d.ts.map +1 -1
  417. package/models/operations/streamrunagent.js +80 -78
  418. package/models/operations/streamrunagent.js.map +1 -1
  419. package/models/operations/updateagent.d.ts +9 -660
  420. package/models/operations/updateagent.d.ts.map +1 -1
  421. package/models/operations/updateagent.js +12 -419
  422. package/models/operations/updateagent.js.map +1 -1
  423. package/models/operations/updatedatapoint.d.ts +117 -4
  424. package/models/operations/updatedatapoint.d.ts.map +1 -1
  425. package/models/operations/updatedatapoint.js +92 -8
  426. package/models/operations/updatedatapoint.js.map +1 -1
  427. package/models/operations/updatedataset.js +1 -1
  428. package/models/operations/updatedatasource.d.ts +33 -0
  429. package/models/operations/updatedatasource.d.ts.map +1 -1
  430. package/models/operations/updatedatasource.js +25 -2
  431. package/models/operations/updatedatasource.js.map +1 -1
  432. package/models/operations/updateprompt.d.ts +5 -0
  433. package/models/operations/updateprompt.d.ts.map +1 -1
  434. package/models/operations/updateprompt.js +5 -0
  435. package/models/operations/updateprompt.js.map +1 -1
  436. package/models/operations/updatetool.d.ts +9 -0
  437. package/models/operations/updatetool.d.ts.map +1 -1
  438. package/models/operations/updatetool.js +9 -7
  439. package/models/operations/updatetool.js.map +1 -1
  440. package/models/operations/webhookdelete.d.ts +12 -0
  441. package/models/operations/webhookdelete.d.ts.map +1 -0
  442. package/models/operations/webhookdelete.js +49 -0
  443. package/models/operations/webhookdelete.js.map +1 -0
  444. package/models/operations/webhookget.d.ts +12 -0
  445. package/models/operations/webhookget.d.ts.map +1 -0
  446. package/models/operations/webhookget.js +49 -0
  447. package/models/operations/webhookget.js.map +1 -0
  448. package/models/operations/webhooklist.d.ts +70 -0
  449. package/models/operations/webhooklist.d.ts.map +1 -0
  450. package/models/operations/webhooklist.js +61 -0
  451. package/models/operations/webhooklist.js.map +1 -0
  452. package/models/operations/webhookupdate.d.ts +29 -0
  453. package/models/operations/webhookupdate.d.ts.map +1 -0
  454. package/models/operations/webhookupdate.js +68 -0
  455. package/models/operations/webhookupdate.js.map +1 -0
  456. package/package.json +8 -9
  457. package/packages/orq-rc/examples/evalsAll.example.ts +26 -0
  458. package/packages/orq-rc/src/core.ts +13 -0
  459. package/packages/orq-rc/src/funcs/agentsCreate.ts +163 -0
  460. package/packages/orq-rc/src/funcs/agentsDelete.ts +181 -0
  461. package/packages/orq-rc/src/funcs/agentsInvoke.ts +178 -0
  462. package/packages/orq-rc/src/funcs/agentsList.ts +186 -0
  463. package/packages/orq-rc/src/funcs/agentsRefreshKeyCard.ts +188 -0
  464. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +189 -0
  465. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +185 -0
  466. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +181 -0
  467. package/packages/orq-rc/src/funcs/agentsRun.ts +164 -0
  468. package/packages/orq-rc/src/funcs/agentsStream.ts +205 -0
  469. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +191 -0
  470. package/packages/orq-rc/src/funcs/agentsUpdate.ts +185 -0
  471. package/packages/orq-rc/src/funcs/annotationsCreate.ts +175 -0
  472. package/packages/orq-rc/src/funcs/annotationsDelete.ts +175 -0
  473. package/packages/orq-rc/src/funcs/apiKeysCreate.ts +162 -0
  474. package/packages/orq-rc/src/funcs/apiKeysDelete.ts +168 -0
  475. package/packages/orq-rc/src/funcs/apiKeysGet.ts +173 -0
  476. package/packages/orq-rc/src/funcs/apiKeysList.ts +176 -0
  477. package/packages/orq-rc/src/funcs/apiKeysListCapabilities.ts +144 -0
  478. package/packages/orq-rc/src/funcs/apiKeysUpdate.ts +171 -0
  479. package/packages/orq-rc/src/funcs/budgetsCreate.ts +162 -0
  480. package/packages/orq-rc/src/funcs/budgetsDelete.ts +168 -0
  481. package/packages/orq-rc/src/funcs/budgetsGet.ts +168 -0
  482. package/packages/orq-rc/src/funcs/budgetsGetConsumption.ts +169 -0
  483. package/packages/orq-rc/src/funcs/budgetsList.ts +176 -0
  484. package/packages/orq-rc/src/funcs/budgetsResetConsumption.ts +174 -0
  485. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +171 -0
  486. package/packages/orq-rc/src/funcs/chunkingParse.ts +162 -0
  487. package/packages/orq-rc/src/funcs/datasetsClear.ts +177 -0
  488. package/packages/orq-rc/src/funcs/datasetsCreate.ts +167 -0
  489. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +172 -0
  490. package/packages/orq-rc/src/funcs/datasetsDelete.ts +168 -0
  491. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +183 -0
  492. package/packages/orq-rc/src/funcs/datasetsList.ts +171 -0
  493. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +184 -0
  494. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +176 -0
  495. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +182 -0
  496. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +177 -0
  497. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +180 -0
  498. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +170 -0
  499. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +170 -0
  500. package/packages/orq-rc/src/funcs/deploymentsList.ts +178 -0
  501. package/packages/orq-rc/src/funcs/deploymentsStream.ts +180 -0
  502. package/packages/orq-rc/src/funcs/evalsAll.ts +178 -0
  503. package/packages/orq-rc/src/funcs/evalsCreate.ts +171 -0
  504. package/packages/orq-rc/src/funcs/evalsDelete.ts +174 -0
  505. package/packages/orq-rc/src/funcs/evalsInvoke.ts +182 -0
  506. package/packages/orq-rc/src/funcs/evalsListVersions.ts +184 -0
  507. package/packages/orq-rc/src/funcs/evalsUpdate.ts +174 -0
  508. package/packages/orq-rc/src/funcs/feedbackCreate.ts +174 -0
  509. package/packages/orq-rc/src/funcs/feedbackCreateEvaluation.ts +161 -0
  510. package/packages/orq-rc/src/funcs/feedbackRemove.ts +169 -0
  511. package/packages/orq-rc/src/funcs/feedbackRemoveEvaluation.ts +161 -0
  512. package/packages/orq-rc/src/funcs/filesCreate.ts +162 -0
  513. package/packages/orq-rc/src/funcs/filesDelete.ts +168 -0
  514. package/packages/orq-rc/src/funcs/filesGet.ts +168 -0
  515. package/packages/orq-rc/src/funcs/filesGetContent.ts +168 -0
  516. package/packages/orq-rc/src/funcs/filesList.ts +172 -0
  517. package/packages/orq-rc/src/funcs/filesUpdate.ts +169 -0
  518. package/packages/orq-rc/src/funcs/guardrailRulesCreate.ts +163 -0
  519. package/packages/orq-rc/src/funcs/guardrailRulesDelete.ts +172 -0
  520. package/packages/orq-rc/src/funcs/guardrailRulesList.ts +176 -0
  521. package/packages/orq-rc/src/funcs/guardrailRulesListUsedGuardrails.ts +147 -0
  522. package/packages/orq-rc/src/funcs/guardrailRulesRetrieve.ts +170 -0
  523. package/packages/orq-rc/src/funcs/guardrailRulesUpdate.ts +172 -0
  524. package/packages/orq-rc/src/funcs/humanReviewSetsCreate.ts +164 -0
  525. package/packages/orq-rc/src/funcs/humanReviewSetsDelete.ts +166 -0
  526. package/packages/orq-rc/src/funcs/humanReviewSetsGet.ts +165 -0
  527. package/packages/orq-rc/src/funcs/humanReviewSetsList.ts +170 -0
  528. package/packages/orq-rc/src/funcs/humanReviewSetsUpdate.ts +166 -0
  529. package/packages/orq-rc/src/funcs/identitiesCreate.ts +162 -0
  530. package/packages/orq-rc/src/funcs/identitiesDelete.ts +168 -0
  531. package/packages/orq-rc/src/funcs/identitiesList.ts +175 -0
  532. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +174 -0
  533. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +171 -0
  534. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +160 -0
  535. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +172 -0
  536. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +167 -0
  537. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +168 -0
  538. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +175 -0
  539. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +171 -0
  540. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +174 -0
  541. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +174 -0
  542. package/packages/orq-rc/src/funcs/knowledgeList.ts +175 -0
  543. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +179 -0
  544. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +172 -0
  545. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +176 -0
  546. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +167 -0
  547. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +174 -0
  548. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +170 -0
  549. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +168 -0
  550. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +165 -0
  551. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +175 -0
  552. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +171 -0
  553. package/packages/orq-rc/src/funcs/managementKeysCreate.ts +163 -0
  554. package/packages/orq-rc/src/funcs/managementKeysDelete.ts +172 -0
  555. package/packages/orq-rc/src/funcs/managementKeysGet.ts +171 -0
  556. package/packages/orq-rc/src/funcs/managementKeysList.ts +175 -0
  557. package/packages/orq-rc/src/funcs/managementKeysListCapabilities.ts +144 -0
  558. package/packages/orq-rc/src/funcs/managementKeysUpdate.ts +175 -0
  559. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +164 -0
  560. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +177 -0
  561. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +171 -0
  562. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +169 -0
  563. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +186 -0
  564. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +181 -0
  565. package/packages/orq-rc/src/funcs/memoryStoresList.ts +183 -0
  566. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +185 -0
  567. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +178 -0
  568. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +178 -0
  569. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +180 -0
  570. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +175 -0
  571. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +169 -0
  572. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +181 -0
  573. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +176 -0
  574. package/packages/orq-rc/src/funcs/modelsAzureFoundryDeployments.ts +168 -0
  575. package/packages/orq-rc/src/funcs/modelsCreate.ts +162 -0
  576. package/packages/orq-rc/src/funcs/modelsCreateAwsBedrock.ts +163 -0
  577. package/packages/orq-rc/src/funcs/modelsCreateOpenaiLike.ts +163 -0
  578. package/packages/orq-rc/src/funcs/modelsCreateVertex.ts +163 -0
  579. package/packages/orq-rc/src/funcs/modelsDelete.ts +168 -0
  580. package/packages/orq-rc/src/funcs/modelsDisable.ts +168 -0
  581. package/packages/orq-rc/src/funcs/modelsEnable.ts +163 -0
  582. package/packages/orq-rc/src/funcs/modelsImportLitellm.ts +166 -0
  583. package/packages/orq-rc/src/funcs/modelsList.ts +144 -0
  584. package/packages/orq-rc/src/funcs/modelsListLitellm.ts +144 -0
  585. package/packages/orq-rc/src/funcs/modelsUpdate.ts +168 -0
  586. package/packages/orq-rc/src/funcs/modelsUpdateAwsBedrock.ts +169 -0
  587. package/packages/orq-rc/src/funcs/modelsUpdateOpenaiLike.ts +169 -0
  588. package/packages/orq-rc/src/funcs/modelsValidate.ts +163 -0
  589. package/packages/orq-rc/src/funcs/modelsValidateAwsBedrock.ts +164 -0
  590. package/packages/orq-rc/src/funcs/notifiersCreate.ts +162 -0
  591. package/packages/orq-rc/src/funcs/notifiersDelete.ts +168 -0
  592. package/packages/orq-rc/src/funcs/notifiersGet.ts +168 -0
  593. package/packages/orq-rc/src/funcs/notifiersList.ts +173 -0
  594. package/packages/orq-rc/src/funcs/notifiersUpdate.ts +171 -0
  595. package/packages/orq-rc/src/funcs/piiDetect.ts +162 -0
  596. package/packages/orq-rc/src/funcs/piiRedact.ts +162 -0
  597. package/packages/orq-rc/src/funcs/piiRestore.ts +162 -0
  598. package/packages/orq-rc/src/funcs/policiesCreate.ts +162 -0
  599. package/packages/orq-rc/src/funcs/policiesDelete.ts +168 -0
  600. package/packages/orq-rc/src/funcs/policiesList.ts +170 -0
  601. package/packages/orq-rc/src/funcs/policiesRetrieve.ts +167 -0
  602. package/packages/orq-rc/src/funcs/policiesUpdate.ts +168 -0
  603. package/packages/orq-rc/src/funcs/projectsCreate.ts +162 -0
  604. package/packages/orq-rc/src/funcs/projectsDelete.ts +168 -0
  605. package/packages/orq-rc/src/funcs/projectsGet.ts +168 -0
  606. package/packages/orq-rc/src/funcs/projectsList.ts +170 -0
  607. package/packages/orq-rc/src/funcs/projectsUpdate.ts +171 -0
  608. package/packages/orq-rc/src/funcs/promptsCreate.ts +163 -0
  609. package/packages/orq-rc/src/funcs/promptsDelete.ts +174 -0
  610. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +182 -0
  611. package/packages/orq-rc/src/funcs/promptsList.ts +169 -0
  612. package/packages/orq-rc/src/funcs/promptsListVersions.ts +174 -0
  613. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +167 -0
  614. package/packages/orq-rc/src/funcs/promptsUpdate.ts +174 -0
  615. package/packages/orq-rc/src/funcs/reportingQuery.ts +164 -0
  616. package/packages/orq-rc/src/funcs/responsesCreate.ts +170 -0
  617. package/packages/orq-rc/src/funcs/responsesGet.ts +167 -0
  618. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +163 -0
  619. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +272 -0
  620. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +262 -0
  621. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +170 -0
  622. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +170 -0
  623. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +163 -0
  624. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +224 -0
  625. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +162 -0
  626. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +220 -0
  627. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +169 -0
  628. package/packages/orq-rc/src/funcs/routerOcr.ts +160 -0
  629. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +162 -0
  630. package/packages/orq-rc/src/funcs/routingRulesCreate.ts +163 -0
  631. package/packages/orq-rc/src/funcs/routingRulesDelete.ts +168 -0
  632. package/packages/orq-rc/src/funcs/routingRulesList.ts +173 -0
  633. package/packages/orq-rc/src/funcs/routingRulesListUsedModels.ts +144 -0
  634. package/packages/orq-rc/src/funcs/routingRulesRetrieve.ts +167 -0
  635. package/packages/orq-rc/src/funcs/routingRulesUpdate.ts +168 -0
  636. package/packages/orq-rc/src/funcs/schedulesCreate.ts +185 -0
  637. package/packages/orq-rc/src/funcs/schedulesDelete.ts +184 -0
  638. package/packages/orq-rc/src/funcs/schedulesList.ts +167 -0
  639. package/packages/orq-rc/src/funcs/schedulesRetrieve.ts +183 -0
  640. package/packages/orq-rc/src/funcs/schedulesTrigger.ts +190 -0
  641. package/packages/orq-rc/src/funcs/schedulesUpdate.ts +191 -0
  642. package/packages/orq-rc/src/funcs/skillsCreate.ts +162 -0
  643. package/packages/orq-rc/src/funcs/skillsDelete.ts +168 -0
  644. package/packages/orq-rc/src/funcs/skillsGet.ts +168 -0
  645. package/packages/orq-rc/src/funcs/skillsList.ts +170 -0
  646. package/packages/orq-rc/src/funcs/skillsUpdate.ts +171 -0
  647. package/packages/orq-rc/src/funcs/smartRoutersCreate.ts +162 -0
  648. package/packages/orq-rc/src/funcs/smartRoutersDelete.ts +168 -0
  649. package/packages/orq-rc/src/funcs/smartRoutersGet.ts +168 -0
  650. package/packages/orq-rc/src/funcs/smartRoutersList.ts +173 -0
  651. package/packages/orq-rc/src/funcs/smartRoutersSetEnabled.ts +174 -0
  652. package/packages/orq-rc/src/funcs/smartRoutersUpdate.ts +171 -0
  653. package/packages/orq-rc/src/funcs/telemetryQuery.ts +162 -0
  654. package/packages/orq-rc/src/funcs/toolsCreate.ts +165 -0
  655. package/packages/orq-rc/src/funcs/toolsDelete.ts +168 -0
  656. package/packages/orq-rc/src/funcs/toolsGetVersion.ts +191 -0
  657. package/packages/orq-rc/src/funcs/toolsList.ts +178 -0
  658. package/packages/orq-rc/src/funcs/toolsListVersions.ts +184 -0
  659. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +167 -0
  660. package/packages/orq-rc/src/funcs/toolsUpdate.ts +177 -0
  661. package/packages/orq-rc/src/funcs/tracesAggregate.ts +164 -0
  662. package/packages/orq-rc/src/funcs/tracesGet.ts +168 -0
  663. package/packages/orq-rc/src/funcs/tracesGetSpan.ts +172 -0
  664. package/packages/orq-rc/src/funcs/tracesListFacetValues.ts +177 -0
  665. package/packages/orq-rc/src/funcs/tracesListFacets.ts +144 -0
  666. package/packages/orq-rc/src/funcs/tracesListFields.ts +144 -0
  667. package/packages/orq-rc/src/funcs/tracesListSpans.ts +174 -0
  668. package/packages/orq-rc/src/funcs/tracesQuery.ts +162 -0
  669. package/{src/funcs/budgetsCheck.ts → packages/orq-rc/src/funcs/tracesSearch.ts} +12 -12
  670. package/packages/orq-rc/src/funcs/webhooksCount.ts +144 -0
  671. package/packages/orq-rc/src/funcs/webhooksCreate.ts +162 -0
  672. package/packages/orq-rc/src/funcs/webhooksDelete.ts +168 -0
  673. package/packages/orq-rc/src/funcs/webhooksGenerateSecret.ts +144 -0
  674. package/packages/orq-rc/src/funcs/webhooksGet.ts +168 -0
  675. package/packages/orq-rc/src/funcs/webhooksList.ts +175 -0
  676. package/packages/orq-rc/src/funcs/webhooksQuery.ts +164 -0
  677. package/packages/orq-rc/src/funcs/webhooksUpdate.ts +168 -0
  678. package/packages/orq-rc/src/hooks/global.ts +44 -0
  679. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  680. package/packages/orq-rc/src/hooks/index.ts +6 -0
  681. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  682. package/packages/orq-rc/src/hooks/types.ts +113 -0
  683. package/packages/orq-rc/src/index.ts +9 -0
  684. package/packages/orq-rc/src/lib/base64.ts +37 -0
  685. package/packages/orq-rc/src/lib/config.ts +64 -0
  686. package/packages/orq-rc/src/lib/encodings.ts +525 -0
  687. package/packages/orq-rc/src/lib/env.ts +61 -0
  688. package/packages/orq-rc/src/lib/event-streams.ts +191 -0
  689. package/packages/orq-rc/src/lib/files.ts +104 -0
  690. package/packages/orq-rc/src/lib/http.ts +325 -0
  691. package/packages/orq-rc/src/lib/logger.ts +9 -0
  692. package/packages/orq-rc/src/lib/matchers.ts +346 -0
  693. package/packages/orq-rc/src/lib/primitives.ts +166 -0
  694. package/packages/orq-rc/src/lib/retries.ts +226 -0
  695. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  696. package/packages/orq-rc/src/lib/sdks.ts +443 -0
  697. package/packages/orq-rc/src/lib/security.ts +280 -0
  698. package/packages/orq-rc/src/lib/url.ts +35 -0
  699. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +99 -0
  700. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +190 -0
  701. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +73 -0
  702. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +91 -0
  703. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +71 -0
  704. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +507 -0
  705. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +165 -0
  706. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +103 -0
  707. package/packages/orq-rc/src/models/components/agentresponserequest.ts +565 -0
  708. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +531 -0
  709. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +807 -0
  710. package/packages/orq-rc/src/models/components/agenttoolinputcrud.ts +747 -0
  711. package/packages/orq-rc/src/models/components/aggregatetracesrequest.ts +65 -0
  712. package/packages/orq-rc/src/models/components/aggregatetracesresponse.ts +37 -0
  713. package/packages/orq-rc/src/models/components/allprojects.ts +39 -0
  714. package/packages/orq-rc/src/models/components/apikey.ts +293 -0
  715. package/packages/orq-rc/src/models/components/apikeybudgetscope.ts +66 -0
  716. package/packages/orq-rc/src/models/components/apikeyowner.ts +82 -0
  717. package/packages/orq-rc/src/models/components/apikeystatus.ts +21 -0
  718. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +136 -0
  719. package/packages/orq-rc/src/models/components/autorouterconfig.ts +92 -0
  720. package/packages/orq-rc/src/models/components/autorouterv2config.ts +152 -0
  721. package/packages/orq-rc/src/models/components/autorouterv2creatorconfig.ts +59 -0
  722. package/packages/orq-rc/src/models/components/autorouterv2effortconfig.ts +66 -0
  723. package/packages/orq-rc/src/models/components/azurefoundrydeployment.ts +51 -0
  724. package/packages/orq-rc/src/models/components/azurefoundrydeploymentmasterdata.ts +60 -0
  725. package/packages/orq-rc/src/models/components/budget.ts +120 -0
  726. package/packages/orq-rc/src/models/components/budgetalert.ts +92 -0
  727. package/packages/orq-rc/src/models/components/budgetalertdimension.ts +22 -0
  728. package/packages/orq-rc/src/models/components/budgetlimit.ts +83 -0
  729. package/packages/orq-rc/src/models/components/budgetlimits.ts +84 -0
  730. package/packages/orq-rc/src/models/components/budgetmatch.ts +56 -0
  731. package/packages/orq-rc/src/models/components/budgetperiod.ts +23 -0
  732. package/packages/orq-rc/src/models/components/budgetscope.ts +150 -0
  733. package/packages/orq-rc/src/models/components/budgetscopekind.ts +22 -0
  734. package/packages/orq-rc/src/models/components/budgetsortfield.ts +19 -0
  735. package/packages/orq-rc/src/models/components/budgetusage.ts +54 -0
  736. package/packages/orq-rc/src/models/components/codetoolinput.ts +62 -0
  737. package/packages/orq-rc/src/models/components/config.ts +44 -0
  738. package/packages/orq-rc/src/models/components/conversationparam.ts +51 -0
  739. package/packages/orq-rc/src/models/components/countwebhooksresponse.ts +37 -0
  740. package/packages/orq-rc/src/models/components/createagentresponse.ts +305 -0
  741. package/packages/orq-rc/src/models/components/createapikeyrequest.ts +91 -0
  742. package/packages/orq-rc/src/models/components/createapikeyresponse.ts +49 -0
  743. package/packages/orq-rc/src/models/components/createbudgetrequest.ts +123 -0
  744. package/packages/orq-rc/src/models/components/createbudgetresponse.ts +35 -0
  745. package/packages/orq-rc/src/models/components/createfilerequest.ts +62 -0
  746. package/packages/orq-rc/src/models/components/createfileresponse.ts +35 -0
  747. package/packages/orq-rc/src/models/components/createidentityrequest.ts +100 -0
  748. package/packages/orq-rc/src/models/components/createidentityresponse.ts +35 -0
  749. package/packages/orq-rc/src/models/components/createmanagementkeyrequest.ts +69 -0
  750. package/packages/orq-rc/src/models/components/createmanagementkeyresponse.ts +48 -0
  751. package/packages/orq-rc/src/models/components/createmodelparameter.ts +54 -0
  752. package/packages/orq-rc/src/models/components/createnotifierrequest.ts +433 -0
  753. package/packages/orq-rc/src/models/components/createnotifierresponse.ts +35 -0
  754. package/packages/orq-rc/src/models/components/createprojectrequest.ts +46 -0
  755. package/packages/orq-rc/src/models/components/createprojectresponse.ts +35 -0
  756. package/packages/orq-rc/src/models/components/createskillrequest.ts +159 -0
  757. package/packages/orq-rc/src/models/components/createskillresponse.ts +35 -0
  758. package/packages/orq-rc/src/models/components/createsmartrouterrequest.ts +47 -0
  759. package/packages/orq-rc/src/models/components/createsmartrouterresponse.ts +37 -0
  760. package/packages/orq-rc/src/models/components/createwebhookrequest.ts +100 -0
  761. package/packages/orq-rc/src/models/components/datapart.ts +38 -0
  762. package/packages/orq-rc/src/models/components/datapoint.ts +60 -0
  763. package/packages/orq-rc/src/models/components/deleteapikeyresponse.ts +27 -0
  764. package/packages/orq-rc/src/models/components/deletebudgetresponse.ts +27 -0
  765. package/packages/orq-rc/src/models/components/deletefileresponse.ts +27 -0
  766. package/packages/orq-rc/src/models/components/deleteidentityresponse.ts +27 -0
  767. package/packages/orq-rc/src/models/components/deletemanagementkeyresponse.ts +27 -0
  768. package/packages/orq-rc/src/models/components/deletenotifierresponse.ts +27 -0
  769. package/packages/orq-rc/src/models/components/deleteprojectresponse.ts +27 -0
  770. package/packages/orq-rc/src/models/components/deleteskillresponse.ts +27 -0
  771. package/packages/orq-rc/src/models/components/deletesmartrouterresponse.ts +27 -0
  772. package/packages/orq-rc/src/models/components/deletewebhookresponse.ts +34 -0
  773. package/packages/orq-rc/src/models/components/detectrequest.ts +56 -0
  774. package/packages/orq-rc/src/models/components/detectresponse.ts +41 -0
  775. package/packages/orq-rc/src/models/components/domain.ts +66 -0
  776. package/packages/orq-rc/src/models/components/embeddingcacheconfig.ts +59 -0
  777. package/packages/orq-rc/src/models/components/embeddingcontactparams.ts +48 -0
  778. package/packages/orq-rc/src/models/components/embeddingloadbalancerconfig.ts +66 -0
  779. package/packages/orq-rc/src/models/components/embeddingloadbalancermodelconfig.ts +42 -0
  780. package/packages/orq-rc/src/models/components/embeddingorqparams.ts +101 -0
  781. package/packages/orq-rc/src/models/components/embeddingretryconfig.ts +45 -0
  782. package/packages/orq-rc/src/models/components/embeddingtimeoutconfig.ts +39 -0
  783. package/packages/orq-rc/src/models/components/errorpart.ts +58 -0
  784. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +66 -0
  785. package/packages/orq-rc/src/models/components/evaluatorref.ts +93 -0
  786. package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +916 -0
  787. package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +71 -0
  788. package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +54 -0
  789. package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +304 -0
  790. package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +54 -0
  791. package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +78 -0
  792. package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +54 -0
  793. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +71 -0
  794. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +61 -0
  795. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +67 -0
  796. package/packages/orq-rc/src/models/components/expression.ts +33 -0
  797. package/packages/orq-rc/src/models/components/expressioninput.ts +29 -0
  798. package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
  799. package/packages/orq-rc/src/models/components/fallbackconfig.ts +27 -0
  800. package/packages/orq-rc/src/models/components/file.ts +64 -0
  801. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +87 -0
  802. package/packages/orq-rc/src/models/components/filepart.ts +223 -0
  803. package/packages/orq-rc/src/models/components/filepurpose.ts +22 -0
  804. package/packages/orq-rc/src/models/components/filter.ts +137 -0
  805. package/packages/orq-rc/src/models/components/functiontoolinput.ts +60 -0
  806. package/packages/orq-rc/src/models/components/generatewebhooksecretresponse.ts +37 -0
  807. package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
  808. package/packages/orq-rc/src/models/components/getapikeyresponse.ts +40 -0
  809. package/packages/orq-rc/src/models/components/getbudgetconsumptionresponse.ts +71 -0
  810. package/packages/orq-rc/src/models/components/getbudgetresponse.ts +35 -0
  811. package/packages/orq-rc/src/models/components/getfilecontentresponse.ts +39 -0
  812. package/packages/orq-rc/src/models/components/getfileresponse.ts +35 -0
  813. package/packages/orq-rc/src/models/components/getmanagementkeyresponse.ts +40 -0
  814. package/packages/orq-rc/src/models/components/getnotifierresponse.ts +35 -0
  815. package/packages/orq-rc/src/models/components/getprojectresponse.ts +35 -0
  816. package/packages/orq-rc/src/models/components/getskillresponse.ts +35 -0
  817. package/packages/orq-rc/src/models/components/getsmartrouterresponse.ts +37 -0
  818. package/packages/orq-rc/src/models/components/gettraceresponse.ts +32 -0
  819. package/packages/orq-rc/src/models/components/gettracespanresponse.ts +32 -0
  820. package/packages/orq-rc/src/models/components/guardrailref.ts +91 -0
  821. package/packages/orq-rc/src/models/components/guardrailrule.ts +69 -0
  822. package/packages/orq-rc/src/models/components/httptoolinput.ts +62 -0
  823. package/packages/orq-rc/src/models/components/identity.ts +252 -0
  824. package/packages/orq-rc/src/models/components/identitybudgetscope.ts +66 -0
  825. package/packages/orq-rc/src/models/components/identitymetrics.ts +57 -0
  826. package/packages/orq-rc/src/models/components/identitysortfield.ts +18 -0
  827. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +268 -0
  828. package/packages/orq-rc/src/models/components/incompletedetails.ts +31 -0
  829. package/packages/orq-rc/src/models/components/index.ts +368 -0
  830. package/packages/orq-rc/src/models/components/inputtokensdetails.ts +45 -0
  831. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +3492 -0
  832. package/packages/orq-rc/src/models/components/jsonschematoolinput.ts +60 -0
  833. package/packages/orq-rc/src/models/components/legacytokenfamily.ts +19 -0
  834. package/packages/orq-rc/src/models/components/limits.ts +70 -0
  835. package/packages/orq-rc/src/models/components/listapikeysresponse.ts +56 -0
  836. package/packages/orq-rc/src/models/components/listbudgetsresponse.ts +53 -0
  837. package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +38 -0
  838. package/packages/orq-rc/src/models/components/listfilesresponse.ts +50 -0
  839. package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +53 -0
  840. package/packages/orq-rc/src/models/components/listmanagementcapabilitiesresponse.ts +36 -0
  841. package/packages/orq-rc/src/models/components/listmanagementkeysresponse.ts +56 -0
  842. package/packages/orq-rc/src/models/components/listnotifiersresponse.ts +50 -0
  843. package/packages/orq-rc/src/models/components/listprojectsresponse.ts +53 -0
  844. package/packages/orq-rc/src/models/components/listskillsresponse.ts +53 -0
  845. package/packages/orq-rc/src/models/components/listsmartroutersresponse.ts +41 -0
  846. package/packages/orq-rc/src/models/components/listtracefacetsresponse.ts +32 -0
  847. package/packages/orq-rc/src/models/components/listtracefacetvaluesresponse.ts +44 -0
  848. package/packages/orq-rc/src/models/components/listtracefieldsresponse.ts +32 -0
  849. package/packages/orq-rc/src/models/components/listtracespansresponse.ts +44 -0
  850. package/packages/orq-rc/src/models/components/listwebhooksresponse.ts +53 -0
  851. package/packages/orq-rc/src/models/components/litellmmodel.ts +50 -0
  852. package/packages/orq-rc/src/models/components/litellmmodelinfo.ts +97 -0
  853. package/packages/orq-rc/src/models/components/litellmparams.ts +43 -0
  854. package/packages/orq-rc/src/models/components/managementkey.ts +132 -0
  855. package/packages/orq-rc/src/models/components/managementkeystatus.ts +23 -0
  856. package/packages/orq-rc/src/models/components/managementpermissionmode.ts +25 -0
  857. package/packages/orq-rc/src/models/components/mcptoolinput.ts +63 -0
  858. package/packages/orq-rc/src/models/components/memoryparam.ts +56 -0
  859. package/packages/orq-rc/src/models/components/modelbudgetscope.ts +67 -0
  860. package/packages/orq-rc/src/models/components/modelconfigurationresponse.ts +82 -0
  861. package/packages/orq-rc/src/models/components/modeldocument.ts +115 -0
  862. package/packages/orq-rc/src/models/components/modelmetadata.ts +738 -0
  863. package/packages/orq-rc/src/models/components/modelparameterdocument.ts +53 -0
  864. package/packages/orq-rc/src/models/components/modelref.ts +70 -0
  865. package/packages/orq-rc/src/models/components/modelsconfig.ts +75 -0
  866. package/packages/orq-rc/src/models/components/notifier.ts +465 -0
  867. package/packages/orq-rc/src/models/components/notifiertype.ts +21 -0
  868. package/packages/orq-rc/src/models/components/outputtokensdetails.ts +36 -0
  869. package/packages/orq-rc/src/models/components/ownertype.ts +17 -0
  870. package/packages/orq-rc/src/models/components/partdelta.ts +39 -0
  871. package/packages/orq-rc/src/models/components/partdeltaevent.ts +73 -0
  872. package/packages/orq-rc/src/models/components/partdoneevent.ts +70 -0
  873. package/packages/orq-rc/src/models/components/permissionmode.ts +23 -0
  874. package/packages/orq-rc/src/models/components/piiredactionplugin.ts +44 -0
  875. package/packages/orq-rc/src/models/components/piiredactionpluginauto.ts +185 -0
  876. package/packages/orq-rc/src/models/components/piiredactionpluginen.ts +222 -0
  877. package/packages/orq-rc/src/models/components/piiredactionpluginnl.ts +218 -0
  878. package/packages/orq-rc/src/models/components/plugin.ts +37 -0
  879. package/packages/orq-rc/src/models/components/policy.ts +80 -0
  880. package/packages/orq-rc/src/models/components/policyretryconfig.ts +64 -0
  881. package/packages/orq-rc/src/models/components/price.ts +56 -0
  882. package/packages/orq-rc/src/models/components/pricing.ts +93 -0
  883. package/packages/orq-rc/src/models/components/pricingvariant.ts +90 -0
  884. package/packages/orq-rc/src/models/components/project.ts +108 -0
  885. package/packages/orq-rc/src/models/components/projectbudgetscope.ts +63 -0
  886. package/packages/orq-rc/src/models/components/projectscope.ts +70 -0
  887. package/packages/orq-rc/src/models/components/providerbudgetscope.ts +57 -0
  888. package/packages/orq-rc/src/models/components/providertoolinput.ts +72 -0
  889. package/packages/orq-rc/src/models/components/publiccontact.ts +71 -0
  890. package/packages/orq-rc/src/models/components/publicembeddingdata.ts +60 -0
  891. package/packages/orq-rc/src/models/components/publicembeddingusage.ts +45 -0
  892. package/packages/orq-rc/src/models/components/publicidentity.ts +69 -0
  893. package/packages/orq-rc/src/models/components/publicmodelentry.ts +71 -0
  894. package/packages/orq-rc/src/models/components/publicpiiredactionplugin.ts +127 -0
  895. package/packages/orq-rc/src/models/components/publicresponseresource.ts +196 -0
  896. package/packages/orq-rc/src/models/components/publicschedule.ts +118 -0
  897. package/packages/orq-rc/src/models/components/publicscheduleerrordetail.ts +39 -0
  898. package/packages/orq-rc/src/models/components/publicschedulepayload.ts +84 -0
  899. package/packages/orq-rc/src/models/components/publicusage.ts +77 -0
  900. package/packages/orq-rc/src/models/components/queryparamspagination.ts +40 -0
  901. package/packages/orq-rc/src/models/components/queryparamssort.ts +32 -0
  902. package/packages/orq-rc/src/models/components/queryreportrequest.ts +237 -0
  903. package/packages/orq-rc/src/models/components/queryreportresponse.ts +99 -0
  904. package/packages/orq-rc/src/models/components/querytelemetrymeta.ts +38 -0
  905. package/packages/orq-rc/src/models/components/querytelemetryrequest.ts +85 -0
  906. package/packages/orq-rc/src/models/components/querytelemetryresponse.ts +42 -0
  907. package/packages/orq-rc/src/models/components/querytracesrequest.ts +48 -0
  908. package/packages/orq-rc/src/models/components/querytracesresponse.ts +37 -0
  909. package/packages/orq-rc/src/models/components/querywebhooksrequest.ts +85 -0
  910. package/packages/orq-rc/src/models/components/querywebhooksresponse.ts +34 -0
  911. package/packages/orq-rc/src/models/components/ratelimit.ts +62 -0
  912. package/packages/orq-rc/src/models/components/reasoning.ts +79 -0
  913. package/packages/orq-rc/src/models/components/reasoningparam.ts +74 -0
  914. package/packages/orq-rc/src/models/components/reasoningpart.ts +62 -0
  915. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +71 -0
  916. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +66 -0
  917. package/packages/orq-rc/src/models/components/redactrequest.ts +33 -0
  918. package/packages/orq-rc/src/models/components/redactresponse.ts +41 -0
  919. package/packages/orq-rc/src/models/components/refusalpartschema.ts +64 -0
  920. package/packages/orq-rc/src/models/components/requestlimit.ts +69 -0
  921. package/packages/orq-rc/src/models/components/resetbudgetconsumptionrequest.ts +27 -0
  922. package/packages/orq-rc/src/models/components/resetbudgetconsumptionresponse.ts +38 -0
  923. package/packages/orq-rc/src/models/components/responsecodeinterpretercallcodedeltastreamevent.ts +79 -0
  924. package/packages/orq-rc/src/models/components/responsecodeinterpretercallcodedonestreamevent.ts +79 -0
  925. package/packages/orq-rc/src/models/components/responsecodeinterpretercallcompletedstreamevent.ts +74 -0
  926. package/packages/orq-rc/src/models/components/responsecodeinterpretercallinprogressstreamevent.ts +74 -0
  927. package/packages/orq-rc/src/models/components/responsecodeinterpretercallinterpretingstreamevent.ts +74 -0
  928. package/packages/orq-rc/src/models/components/responsecompletedstreamevent.ts +61 -0
  929. package/packages/orq-rc/src/models/components/responsecontentpartaddedstreamevent.ts +79 -0
  930. package/packages/orq-rc/src/models/components/responsecontentpartdonestreamevent.ts +79 -0
  931. package/packages/orq-rc/src/models/components/responsecreatedstreamevent.ts +61 -0
  932. package/packages/orq-rc/src/models/components/responsecustomtoolcallinputdeltastreamevent.ts +79 -0
  933. package/packages/orq-rc/src/models/components/responsecustomtoolcallinputdonestreamevent.ts +76 -0
  934. package/packages/orq-rc/src/models/components/responsedoneevent.ts +324 -0
  935. package/packages/orq-rc/src/models/components/responseerror.ts +33 -0
  936. package/packages/orq-rc/src/models/components/responseerrorstreamevent.ts +58 -0
  937. package/packages/orq-rc/src/models/components/responseexecutionlimits.ts +52 -0
  938. package/packages/orq-rc/src/models/components/responsefailedevent.ts +72 -0
  939. package/packages/orq-rc/src/models/components/responsefailedstreamevent.ts +61 -0
  940. package/packages/orq-rc/src/models/components/responsefilesearchcallcompletedstreamevent.ts +71 -0
  941. package/packages/orq-rc/src/models/components/responsefilesearchcallinprogressstreamevent.ts +74 -0
  942. package/packages/orq-rc/src/models/components/responsefilesearchcallsearchingstreamevent.ts +71 -0
  943. package/packages/orq-rc/src/models/components/responsefunctioncallargumentsdeltastreamevent.ts +84 -0
  944. package/packages/orq-rc/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +79 -0
  945. package/packages/orq-rc/src/models/components/responseidentity.ts +48 -0
  946. package/packages/orq-rc/src/models/components/responseimagegenerationcallcompletedstreamevent.ts +74 -0
  947. package/packages/orq-rc/src/models/components/responseimagegenerationcallgeneratingstreamevent.ts +74 -0
  948. package/packages/orq-rc/src/models/components/responseimagegenerationcallinprogressstreamevent.ts +74 -0
  949. package/packages/orq-rc/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +86 -0
  950. package/packages/orq-rc/src/models/components/responseincompletestreamevent.ts +61 -0
  951. package/packages/orq-rc/src/models/components/responseinprogressstreamevent.ts +61 -0
  952. package/packages/orq-rc/src/models/components/responsemcpcallargumentsdeltastreamevent.ts +78 -0
  953. package/packages/orq-rc/src/models/components/responsemcpcallargumentsdonestreamevent.ts +78 -0
  954. package/packages/orq-rc/src/models/components/responsemcpcallcompletedstreamevent.ts +68 -0
  955. package/packages/orq-rc/src/models/components/responsemcpcallfailedstreamevent.ts +67 -0
  956. package/packages/orq-rc/src/models/components/responsemcpcallinprogressstreamevent.ts +68 -0
  957. package/packages/orq-rc/src/models/components/responsemcplisttoolscompletedstreamevent.ts +73 -0
  958. package/packages/orq-rc/src/models/components/responsemcplisttoolsfailedstreamevent.ts +68 -0
  959. package/packages/orq-rc/src/models/components/responsemcplisttoolsinprogressstreamevent.ts +73 -0
  960. package/packages/orq-rc/src/models/components/responsemeta.ts +103 -0
  961. package/packages/orq-rc/src/models/components/responseoutputitemaddedstreamevent.ts +67 -0
  962. package/packages/orq-rc/src/models/components/responseoutputitemdonestreamevent.ts +66 -0
  963. package/packages/orq-rc/src/models/components/responseoutputtextannotationaddedstreamevent.ts +91 -0
  964. package/packages/orq-rc/src/models/components/responseoutputtextdeltastreamevent.ts +89 -0
  965. package/packages/orq-rc/src/models/components/responseoutputtextdonestreamevent.ts +83 -0
  966. package/packages/orq-rc/src/models/components/responsequeuedstreamevent.ts +61 -0
  967. package/packages/orq-rc/src/models/components/responsereasoningdeltastreamevent.ts +83 -0
  968. package/packages/orq-rc/src/models/components/responsereasoningdonestreamevent.ts +78 -0
  969. package/packages/orq-rc/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +85 -0
  970. package/packages/orq-rc/src/models/components/responsereasoningsummarypartdonestreamevent.ts +85 -0
  971. package/packages/orq-rc/src/models/components/responsereasoningsummarytextdeltastreamevent.ts +90 -0
  972. package/packages/orq-rc/src/models/components/responsereasoningsummarytextdonestreamevent.ts +85 -0
  973. package/packages/orq-rc/src/models/components/responsereasoningtextdeltastreamevent.ts +84 -0
  974. package/packages/orq-rc/src/models/components/responsereasoningtextdonestreamevent.ts +79 -0
  975. package/packages/orq-rc/src/models/components/responserefusaldeltastreamevent.ts +78 -0
  976. package/packages/orq-rc/src/models/components/responserefusaldonestreamevent.ts +78 -0
  977. package/packages/orq-rc/src/models/components/responseretryconfig.ts +45 -0
  978. package/packages/orq-rc/src/models/components/responsestartedevent.ts +97 -0
  979. package/packages/orq-rc/src/models/components/responsestreamevent.ts +337 -0
  980. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +85 -0
  981. package/packages/orq-rc/src/models/components/responsethread.ts +30 -0
  982. package/packages/orq-rc/src/models/components/responsewebsearchcallcompletedstreamevent.ts +73 -0
  983. package/packages/orq-rc/src/models/components/responsewebsearchcallinprogressstreamevent.ts +71 -0
  984. package/packages/orq-rc/src/models/components/responsewebsearchcallsearchingstreamevent.ts +73 -0
  985. package/packages/orq-rc/src/models/components/restorerequest.ts +38 -0
  986. package/packages/orq-rc/src/models/components/restoreresponse.ts +36 -0
  987. package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +35 -0
  988. package/packages/orq-rc/src/models/components/reviewoutcome.ts +23 -0
  989. package/packages/orq-rc/src/models/components/routingrule.ts +67 -0
  990. package/packages/orq-rc/src/models/components/searchtracesrequest.ts +68 -0
  991. package/packages/orq-rc/src/models/components/searchtracesresponse.ts +72 -0
  992. package/packages/orq-rc/src/models/components/security.ts +32 -0
  993. package/packages/orq-rc/src/models/components/serviceaccountowner.ts +43 -0
  994. package/packages/orq-rc/src/models/components/setsmartrouterenabledrequest.ts +33 -0
  995. package/packages/orq-rc/src/models/components/setsmartrouterenabledresponse.ts +37 -0
  996. package/packages/orq-rc/src/models/components/singleproject.ts +59 -0
  997. package/packages/orq-rc/src/models/components/skill.ts +109 -0
  998. package/packages/orq-rc/src/models/components/smartrouter.ts +72 -0
  999. package/packages/orq-rc/src/models/components/smartrouterprofile.ts +23 -0
  1000. package/packages/orq-rc/src/models/components/spandetail.ts +53 -0
  1001. package/packages/orq-rc/src/models/components/spansummary.ts +76 -0
  1002. package/packages/orq-rc/src/models/components/streamoptions.ts +32 -0
  1003. package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
  1004. package/packages/orq-rc/src/models/components/telemetryrow.ts +42 -0
  1005. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +211 -0
  1006. package/packages/orq-rc/src/models/components/textpart.ts +54 -0
  1007. package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +59 -0
  1008. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +59 -0
  1009. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +108 -0
  1010. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +64 -0
  1011. package/packages/orq-rc/src/models/components/tokenlimit.ts +69 -0
  1012. package/packages/orq-rc/src/models/components/toolcallpart.ts +51 -0
  1013. package/packages/orq-rc/src/models/components/tooldoneevent.ts +77 -0
  1014. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +235 -0
  1015. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +219 -0
  1016. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +215 -0
  1017. package/packages/orq-rc/src/models/components/toolfailedevent.ts +77 -0
  1018. package/packages/orq-rc/src/models/components/toolresultpart.ts +71 -0
  1019. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +78 -0
  1020. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +87 -0
  1021. package/packages/orq-rc/src/models/components/toolstartedevent.ts +82 -0
  1022. package/packages/orq-rc/src/models/components/totals.ts +34 -0
  1023. package/packages/orq-rc/src/models/components/traceagent.ts +33 -0
  1024. package/packages/orq-rc/src/models/components/traceaggregaterow.ts +33 -0
  1025. package/packages/orq-rc/src/models/components/tracecompute.ts +30 -0
  1026. package/packages/orq-rc/src/models/components/tracecontext.ts +39 -0
  1027. package/packages/orq-rc/src/models/components/tracecost.ts +77 -0
  1028. package/packages/orq-rc/src/models/components/tracefacet.ts +35 -0
  1029. package/packages/orq-rc/src/models/components/tracefacetvalue.ts +33 -0
  1030. package/packages/orq-rc/src/models/components/tracefield.ts +56 -0
  1031. package/packages/orq-rc/src/models/components/tracefilter.ts +33 -0
  1032. package/packages/orq-rc/src/models/components/tracesearchmeta.ts +45 -0
  1033. package/packages/orq-rc/src/models/components/tracesort.ts +30 -0
  1034. package/packages/orq-rc/src/models/components/tracesummary.ts +152 -0
  1035. package/packages/orq-rc/src/models/components/traceusage.ts +62 -0
  1036. package/packages/orq-rc/src/models/components/updateapikeyrequest.ts +92 -0
  1037. package/packages/orq-rc/src/models/components/updateapikeyresponse.ts +40 -0
  1038. package/packages/orq-rc/src/models/components/updatebudgetrequest.ts +115 -0
  1039. package/packages/orq-rc/src/models/components/updatebudgetresponse.ts +35 -0
  1040. package/packages/orq-rc/src/models/components/updatefilerequest.ts +39 -0
  1041. package/packages/orq-rc/src/models/components/updatefileresponse.ts +35 -0
  1042. package/packages/orq-rc/src/models/components/updateidentityrequest.ts +90 -0
  1043. package/packages/orq-rc/src/models/components/updateidentityresponse.ts +35 -0
  1044. package/packages/orq-rc/src/models/components/updatemanagementkeyrequest.ts +80 -0
  1045. package/packages/orq-rc/src/models/components/updatemanagementkeyresponse.ts +40 -0
  1046. package/packages/orq-rc/src/models/components/updatemodelparameter.ts +61 -0
  1047. package/packages/orq-rc/src/models/components/updatenotifierrequest.ts +130 -0
  1048. package/packages/orq-rc/src/models/components/updatenotifierresponse.ts +35 -0
  1049. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +49 -0
  1050. package/packages/orq-rc/src/models/components/updateprojectresponse.ts +35 -0
  1051. package/packages/orq-rc/src/models/components/updateskillrequest.ts +75 -0
  1052. package/packages/orq-rc/src/models/components/updateskillresponse.ts +35 -0
  1053. package/packages/orq-rc/src/models/components/updatesmartrouterrequest.ts +38 -0
  1054. package/packages/orq-rc/src/models/components/updatesmartrouterresponse.ts +37 -0
  1055. package/packages/orq-rc/src/models/components/userowner.ts +59 -0
  1056. package/packages/orq-rc/src/models/components/vertexcapabilities.ts +37 -0
  1057. package/packages/orq-rc/src/models/components/vertexconfiguration.ts +45 -0
  1058. package/packages/orq-rc/src/models/components/vertexmodelconfiguration.ts +53 -0
  1059. package/packages/orq-rc/src/models/components/vertexparameters.ts +47 -0
  1060. package/packages/orq-rc/src/models/components/vertexparamrange.ts +34 -0
  1061. package/packages/orq-rc/src/models/components/vertexparamrangeint.ts +34 -0
  1062. package/packages/orq-rc/src/models/components/webhook.ts +116 -0
  1063. package/packages/orq-rc/src/models/components/workspacebudgetscope.ts +46 -0
  1064. package/packages/orq-rc/src/models/errors/apierror.ts +40 -0
  1065. package/packages/orq-rc/src/models/errors/createagentschedule.ts +105 -0
  1066. package/packages/orq-rc/src/models/errors/createeval.ts +51 -0
  1067. package/packages/orq-rc/src/models/errors/createmoderation.ts +84 -0
  1068. package/packages/orq-rc/src/models/errors/createtranscription.ts +87 -0
  1069. package/packages/orq-rc/src/models/errors/createtranslation.ts +87 -0
  1070. package/packages/orq-rc/src/models/errors/deleteagent.ts +51 -0
  1071. package/packages/orq-rc/src/models/errors/deleteagentschedule.ts +56 -0
  1072. package/packages/orq-rc/src/models/errors/deleteeval.ts +51 -0
  1073. package/packages/orq-rc/src/models/errors/deleteprompt.ts +51 -0
  1074. package/packages/orq-rc/src/models/errors/getevals.ts +51 -0
  1075. package/packages/orq-rc/src/models/errors/getpromptversion.ts +51 -0
  1076. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +51 -0
  1077. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +51 -0
  1078. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +52 -0
  1079. package/packages/orq-rc/src/models/errors/honoapierror.ts +59 -0
  1080. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  1081. package/packages/orq-rc/src/models/errors/index.ts +38 -0
  1082. package/packages/orq-rc/src/models/errors/invokeeval.ts +141 -0
  1083. package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
  1084. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
  1085. package/packages/orq-rc/src/models/errors/postv2feedback.ts +96 -0
  1086. package/packages/orq-rc/src/models/errors/postv2feedbackremove.ts +51 -0
  1087. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
  1088. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +51 -0
  1089. package/packages/orq-rc/src/models/errors/retrieveagentschedule.ts +56 -0
  1090. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +109 -0
  1091. package/packages/orq-rc/src/models/errors/streamagent.ts +51 -0
  1092. package/packages/orq-rc/src/models/errors/streamrunagent.ts +51 -0
  1093. package/packages/orq-rc/src/models/errors/triggeragentschedule.ts +105 -0
  1094. package/packages/orq-rc/src/models/errors/updateagent.ts +51 -0
  1095. package/packages/orq-rc/src/models/errors/updateagentschedule.ts +105 -0
  1096. package/packages/orq-rc/src/models/errors/updateeval.ts +51 -0
  1097. package/packages/orq-rc/src/models/errors/updateprompt.ts +51 -0
  1098. package/packages/orq-rc/src/models/errors/updatetool.ts +62 -0
  1099. package/packages/orq-rc/src/models/operations/apikeydelete.ts +39 -0
  1100. package/packages/orq-rc/src/models/operations/apikeyget.ts +49 -0
  1101. package/packages/orq-rc/src/models/operations/apikeylist.ts +118 -0
  1102. package/packages/orq-rc/src/models/operations/apikeyupdate.ts +44 -0
  1103. package/packages/orq-rc/src/models/operations/budgetdelete.ts +39 -0
  1104. package/packages/orq-rc/src/models/operations/budgetget.ts +39 -0
  1105. package/packages/orq-rc/src/models/operations/budgetgetconsumption.ts +41 -0
  1106. package/packages/orq-rc/src/models/operations/budgetlist.ts +109 -0
  1107. package/packages/orq-rc/src/models/operations/budgetresetconsumption.ts +48 -0
  1108. package/packages/orq-rc/src/models/operations/budgetupdate.ts +44 -0
  1109. package/packages/orq-rc/src/models/operations/cleardataset.ts +39 -0
  1110. package/packages/orq-rc/src/models/operations/createagentrequest.ts +5878 -0
  1111. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +125 -0
  1112. package/packages/orq-rc/src/models/operations/createagentschedule.ts +227 -0
  1113. package/packages/orq-rc/src/models/operations/createannotation.ts +256 -0
  1114. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +6581 -0
  1115. package/packages/orq-rc/src/models/operations/createchunk.ts +222 -0
  1116. package/packages/orq-rc/src/models/operations/createcompletion.ts +3528 -0
  1117. package/packages/orq-rc/src/models/operations/createdataset.ts +162 -0
  1118. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +3105 -0
  1119. package/packages/orq-rc/src/models/operations/createdatasource.ts +522 -0
  1120. package/packages/orq-rc/src/models/operations/createembedding.ts +219 -0
  1121. package/packages/orq-rc/src/models/operations/createeval.ts +663 -0
  1122. package/packages/orq-rc/src/models/operations/createimage.ts +1088 -0
  1123. package/packages/orq-rc/src/models/operations/createimageedit.ts +1045 -0
  1124. package/packages/orq-rc/src/models/operations/createimagevariation.ts +1067 -0
  1125. package/packages/orq-rc/src/models/operations/createknowledge.ts +964 -0
  1126. package/packages/orq-rc/src/models/operations/creatememory.ts +142 -0
  1127. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +152 -0
  1128. package/packages/orq-rc/src/models/operations/creatememorystore.ts +199 -0
  1129. package/packages/orq-rc/src/models/operations/createmoderation.ts +664 -0
  1130. package/packages/orq-rc/src/models/operations/createprompt.ts +5842 -0
  1131. package/packages/orq-rc/src/models/operations/creatererank.ts +944 -0
  1132. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +2122 -0
  1133. package/packages/orq-rc/src/models/operations/createspeech.ts +700 -0
  1134. package/packages/orq-rc/src/models/operations/createtool.ts +2485 -0
  1135. package/packages/orq-rc/src/models/operations/createtranscription.ts +955 -0
  1136. package/packages/orq-rc/src/models/operations/createtranslation.ts +930 -0
  1137. package/packages/orq-rc/src/models/operations/deleteagent.ts +39 -0
  1138. package/packages/orq-rc/src/models/operations/deleteagentschedule.ts +46 -0
  1139. package/packages/orq-rc/src/models/operations/deleteannotation.ts +125 -0
  1140. package/packages/orq-rc/src/models/operations/deletechunk.ts +53 -0
  1141. package/packages/orq-rc/src/models/operations/deletechunks.ts +125 -0
  1142. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +46 -0
  1143. package/packages/orq-rc/src/models/operations/deletedataset.ts +39 -0
  1144. package/packages/orq-rc/src/models/operations/deletedatasource.ts +46 -0
  1145. package/packages/orq-rc/src/models/operations/deleteeval.ts +31 -0
  1146. package/packages/orq-rc/src/models/operations/deleteidentity.ts +34 -0
  1147. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +39 -0
  1148. package/packages/orq-rc/src/models/operations/deletememory.ts +46 -0
  1149. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +55 -0
  1150. package/packages/orq-rc/src/models/operations/deletememorystore.ts +39 -0
  1151. package/packages/orq-rc/src/models/operations/deleteprompt.ts +34 -0
  1152. package/packages/orq-rc/src/models/operations/deletetool.ts +36 -0
  1153. package/packages/orq-rc/src/models/operations/deletev2humanevalsetsid.ts +36 -0
  1154. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4614 -0
  1155. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +729 -0
  1156. package/packages/orq-rc/src/models/operations/deployments.ts +1378 -0
  1157. package/packages/orq-rc/src/models/operations/deploymentstream.ts +4661 -0
  1158. package/packages/orq-rc/src/models/operations/filecontent.ts +39 -0
  1159. package/packages/orq-rc/src/models/operations/filedelete.ts +39 -0
  1160. package/packages/orq-rc/src/models/operations/fileget.ts +35 -0
  1161. package/packages/orq-rc/src/models/operations/filelist.ts +71 -0
  1162. package/packages/orq-rc/src/models/operations/fileupdate.ts +44 -0
  1163. package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
  1164. package/packages/orq-rc/src/models/operations/getallmemories.ts +173 -0
  1165. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +188 -0
  1166. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +220 -0
  1167. package/packages/orq-rc/src/models/operations/getallprompts.ts +3427 -0
  1168. package/packages/orq-rc/src/models/operations/getalltools.ts +1388 -0
  1169. package/packages/orq-rc/src/models/operations/getchunkscount.ts +142 -0
  1170. package/packages/orq-rc/src/models/operations/getevals.ts +168 -0
  1171. package/packages/orq-rc/src/models/operations/getonechunk.ts +171 -0
  1172. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +652 -0
  1173. package/packages/orq-rc/src/models/operations/getoneprompt.ts +3350 -0
  1174. package/packages/orq-rc/src/models/operations/getpromptversion.ts +3399 -0
  1175. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +162 -0
  1176. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +234 -0
  1177. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +235 -0
  1178. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +163 -0
  1179. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +110 -0
  1180. package/packages/orq-rc/src/models/operations/guardrailrulecreate.ts +126 -0
  1181. package/packages/orq-rc/src/models/operations/guardrailruledelete.ts +39 -0
  1182. package/packages/orq-rc/src/models/operations/guardrailruleget.ts +104 -0
  1183. package/packages/orq-rc/src/models/operations/guardrailrulelist.ts +138 -0
  1184. package/packages/orq-rc/src/models/operations/guardrailrulelistusedguardrails.ts +48 -0
  1185. package/packages/orq-rc/src/models/operations/guardrailruleupdate.ts +155 -0
  1186. package/packages/orq-rc/src/models/operations/index.ts +196 -0
  1187. package/packages/orq-rc/src/models/operations/invokeagent.ts +775 -0
  1188. package/packages/orq-rc/src/models/operations/invokeeval.ts +1257 -0
  1189. package/packages/orq-rc/src/models/operations/listagents.ts +3020 -0
  1190. package/packages/orq-rc/src/models/operations/listagentschedules.ts +69 -0
  1191. package/packages/orq-rc/src/models/operations/listchunks.ts +289 -0
  1192. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +282 -0
  1193. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2086 -0
  1194. package/packages/orq-rc/src/models/operations/listdatasets.ts +218 -0
  1195. package/packages/orq-rc/src/models/operations/listdatasources.ts +338 -0
  1196. package/packages/orq-rc/src/models/operations/listidentities.ts +94 -0
  1197. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +687 -0
  1198. package/packages/orq-rc/src/models/operations/listmodels.ts +60 -0
  1199. package/packages/orq-rc/src/models/operations/listpromptversions.ts +3474 -0
  1200. package/packages/orq-rc/src/models/operations/managementkeydelete.ts +39 -0
  1201. package/packages/orq-rc/src/models/operations/managementkeyget.ts +39 -0
  1202. package/packages/orq-rc/src/models/operations/managementkeylist.ts +85 -0
  1203. package/packages/orq-rc/src/models/operations/managementkeyupdate.ts +45 -0
  1204. package/packages/orq-rc/src/models/operations/modelazurefoundrydeployments.ts +90 -0
  1205. package/packages/orq-rc/src/models/operations/modelcreate.ts +186 -0
  1206. package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +236 -0
  1207. package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +204 -0
  1208. package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +146 -0
  1209. package/packages/orq-rc/src/models/operations/modeldelete.ts +34 -0
  1210. package/packages/orq-rc/src/models/operations/modeldisable.ts +39 -0
  1211. package/packages/orq-rc/src/models/operations/modelenable.ts +36 -0
  1212. package/packages/orq-rc/src/models/operations/modelupdate.ts +200 -0
  1213. package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +262 -0
  1214. package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +238 -0
  1215. package/packages/orq-rc/src/models/operations/modelvalidate.ts +57 -0
  1216. package/packages/orq-rc/src/models/operations/modelvalidateawsbedrock.ts +61 -0
  1217. package/packages/orq-rc/src/models/operations/notifierdelete.ts +36 -0
  1218. package/packages/orq-rc/src/models/operations/notifierget.ts +36 -0
  1219. package/packages/orq-rc/src/models/operations/notifierlist.ts +72 -0
  1220. package/packages/orq-rc/src/models/operations/notifierupdate.ts +41 -0
  1221. package/packages/orq-rc/src/models/operations/parse.ts +784 -0
  1222. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +415 -0
  1223. package/packages/orq-rc/src/models/operations/policycreate.ts +138 -0
  1224. package/packages/orq-rc/src/models/operations/policydelete.ts +39 -0
  1225. package/packages/orq-rc/src/models/operations/policyget.ts +110 -0
  1226. package/packages/orq-rc/src/models/operations/policylist.ts +94 -0
  1227. package/packages/orq-rc/src/models/operations/policyupdate.ts +174 -0
  1228. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
  1229. package/packages/orq-rc/src/models/operations/postv2feedback.ts +214 -0
  1230. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +465 -0
  1231. package/packages/orq-rc/src/models/operations/postv2feedbackevaluationremove.ts +43 -0
  1232. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +135 -0
  1233. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +365 -0
  1234. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +478 -0
  1235. package/packages/orq-rc/src/models/operations/projectdelete.ts +39 -0
  1236. package/packages/orq-rc/src/models/operations/projectget.ts +39 -0
  1237. package/packages/orq-rc/src/models/operations/projectlist.ts +58 -0
  1238. package/packages/orq-rc/src/models/operations/projectupdate.ts +44 -0
  1239. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3082 -0
  1240. package/packages/orq-rc/src/models/operations/retrieveagentschedule.ts +162 -0
  1241. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +1971 -0
  1242. package/packages/orq-rc/src/models/operations/retrievedataset.ts +150 -0
  1243. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +222 -0
  1244. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +55 -0
  1245. package/packages/orq-rc/src/models/operations/retrievememory.ts +112 -0
  1246. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +118 -0
  1247. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +144 -0
  1248. package/packages/orq-rc/src/models/operations/retrieveresponse.ts +225 -0
  1249. package/packages/orq-rc/src/models/operations/retrievetool.ts +1375 -0
  1250. package/packages/orq-rc/src/models/operations/routingrulecreate.ts +124 -0
  1251. package/packages/orq-rc/src/models/operations/routingruledelete.ts +39 -0
  1252. package/packages/orq-rc/src/models/operations/routingruleget.ts +102 -0
  1253. package/packages/orq-rc/src/models/operations/routingrulelist.ts +112 -0
  1254. package/packages/orq-rc/src/models/operations/routingrulelistusedmodels.ts +37 -0
  1255. package/packages/orq-rc/src/models/operations/routingruleupdate.ts +154 -0
  1256. package/packages/orq-rc/src/models/operations/runagent.ts +5412 -0
  1257. package/packages/orq-rc/src/models/operations/searchknowledge.ts +1762 -0
  1258. package/packages/orq-rc/src/models/operations/skilldelete.ts +39 -0
  1259. package/packages/orq-rc/src/models/operations/skillget.ts +40 -0
  1260. package/packages/orq-rc/src/models/operations/skilllist.ts +61 -0
  1261. package/packages/orq-rc/src/models/operations/skillupdate.ts +44 -0
  1262. package/packages/orq-rc/src/models/operations/smartrouterdelete.ts +36 -0
  1263. package/packages/orq-rc/src/models/operations/smartrouterget.ts +36 -0
  1264. package/packages/orq-rc/src/models/operations/smartrouterlist.ts +53 -0
  1265. package/packages/orq-rc/src/models/operations/smartroutersetenabled.ts +45 -0
  1266. package/packages/orq-rc/src/models/operations/smartrouterupdate.ts +41 -0
  1267. package/packages/orq-rc/src/models/operations/streamagent.ts +698 -0
  1268. package/packages/orq-rc/src/models/operations/streamrunagent.ts +5579 -0
  1269. package/packages/orq-rc/src/models/operations/tracesget.ts +36 -0
  1270. package/packages/orq-rc/src/models/operations/tracesgetspan.ts +40 -0
  1271. package/packages/orq-rc/src/models/operations/traceslistfacetvalues.ts +50 -0
  1272. package/packages/orq-rc/src/models/operations/traceslistspans.ts +43 -0
  1273. package/packages/orq-rc/src/models/operations/triggeragentschedule.ts +86 -0
  1274. package/packages/orq-rc/src/models/operations/updateagent.ts +6150 -0
  1275. package/packages/orq-rc/src/models/operations/updateagentschedule.ts +241 -0
  1276. package/packages/orq-rc/src/models/operations/updatechunk.ts +236 -0
  1277. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +3143 -0
  1278. package/packages/orq-rc/src/models/operations/updatedataset.ts +206 -0
  1279. package/packages/orq-rc/src/models/operations/updatedatasource.ts +256 -0
  1280. package/packages/orq-rc/src/models/operations/updateeval.ts +446 -0
  1281. package/packages/orq-rc/src/models/operations/updateidentity.ts +43 -0
  1282. package/packages/orq-rc/src/models/operations/updateknowledge.ts +1231 -0
  1283. package/packages/orq-rc/src/models/operations/updatememory.ts +142 -0
  1284. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +159 -0
  1285. package/packages/orq-rc/src/models/operations/updatememorystore.ts +188 -0
  1286. package/packages/orq-rc/src/models/operations/updateprompt.ts +5929 -0
  1287. package/packages/orq-rc/src/models/operations/updatetool.ts +2812 -0
  1288. package/packages/orq-rc/src/models/operations/webhookdelete.ts +31 -0
  1289. package/packages/orq-rc/src/models/operations/webhookget.ts +31 -0
  1290. package/packages/orq-rc/src/models/operations/webhooklist.ts +101 -0
  1291. package/packages/orq-rc/src/models/operations/webhookupdate.ts +84 -0
  1292. package/packages/orq-rc/src/sdk/agents.ts +216 -0
  1293. package/packages/orq-rc/src/sdk/annotations.ts +45 -0
  1294. package/packages/orq-rc/src/sdk/apikeys.ts +116 -0
  1295. package/packages/orq-rc/src/sdk/audio.ts +25 -0
  1296. package/packages/orq-rc/src/sdk/budgets.ts +136 -0
  1297. package/packages/orq-rc/src/sdk/chat.ts +13 -0
  1298. package/packages/orq-rc/src/sdk/chunking.ts +27 -0
  1299. package/packages/orq-rc/src/sdk/completions.ts +32 -0
  1300. package/packages/orq-rc/src/sdk/datasets.ts +204 -0
  1301. package/packages/orq-rc/src/sdk/deployments.ts +83 -0
  1302. package/packages/orq-rc/src/sdk/edits.ts +27 -0
  1303. package/packages/orq-rc/src/sdk/embeddings.ts +27 -0
  1304. package/packages/orq-rc/src/sdk/evals.ts +102 -0
  1305. package/packages/orq-rc/src/sdk/feedback.ts +63 -0
  1306. package/packages/orq-rc/src/sdk/files.ts +118 -0
  1307. package/packages/orq-rc/src/sdk/generations.ts +27 -0
  1308. package/packages/orq-rc/src/sdk/guardrailrules.ts +115 -0
  1309. package/packages/orq-rc/src/sdk/humanreviewsets.ts +84 -0
  1310. package/packages/orq-rc/src/sdk/identities.ts +100 -0
  1311. package/packages/orq-rc/src/sdk/images.ts +25 -0
  1312. package/packages/orq-rc/src/sdk/index.ts +5 -0
  1313. package/packages/orq-rc/src/sdk/knowledge.ts +312 -0
  1314. package/packages/orq-rc/src/sdk/managementkeys.ts +116 -0
  1315. package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
  1316. package/packages/orq-rc/src/sdk/models.ts +294 -0
  1317. package/packages/orq-rc/src/sdk/moderations.ts +24 -0
  1318. package/packages/orq-rc/src/sdk/notifiers.ts +100 -0
  1319. package/packages/orq-rc/src/sdk/orqcompletions.ts +32 -0
  1320. package/packages/orq-rc/src/sdk/orqresponses.ts +57 -0
  1321. package/packages/orq-rc/src/sdk/pii.ts +63 -0
  1322. package/packages/orq-rc/src/sdk/policies.ts +99 -0
  1323. package/packages/orq-rc/src/sdk/projects.ts +100 -0
  1324. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  1325. package/packages/orq-rc/src/sdk/reporting.ts +29 -0
  1326. package/packages/orq-rc/src/sdk/rerank.ts +27 -0
  1327. package/packages/orq-rc/src/sdk/responses.ts +47 -0
  1328. package/packages/orq-rc/src/sdk/router.ts +66 -0
  1329. package/packages/orq-rc/src/sdk/routingrules.ts +115 -0
  1330. package/packages/orq-rc/src/sdk/schedules.ts +117 -0
  1331. package/packages/orq-rc/src/sdk/sdk.ts +205 -0
  1332. package/packages/orq-rc/src/sdk/skills.ts +100 -0
  1333. package/packages/orq-rc/src/sdk/smartrouters.ts +118 -0
  1334. package/packages/orq-rc/src/sdk/speech.ts +27 -0
  1335. package/packages/orq-rc/src/sdk/telemetry.ts +27 -0
  1336. package/packages/orq-rc/src/sdk/tools.ts +135 -0
  1337. package/packages/orq-rc/src/sdk/traces.ts +170 -0
  1338. package/packages/orq-rc/src/sdk/transcriptions.ts +24 -0
  1339. package/packages/orq-rc/src/sdk/translations.ts +24 -0
  1340. package/packages/orq-rc/src/sdk/variations.ts +27 -0
  1341. package/packages/orq-rc/src/sdk/webhooks.ts +152 -0
  1342. package/packages/orq-rc/src/types/async.ts +69 -0
  1343. package/packages/orq-rc/src/types/blobs.ts +32 -0
  1344. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  1345. package/packages/orq-rc/src/types/enums.ts +45 -0
  1346. package/packages/orq-rc/src/types/fp.ts +50 -0
  1347. package/packages/orq-rc/src/types/index.ts +11 -0
  1348. package/packages/orq-rc/src/types/operations.ts +105 -0
  1349. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  1350. package/packages/orq-rc/src/types/streams.ts +21 -0
  1351. package/packages/orq-rc/src/types/unrecognized.ts +35 -0
  1352. package/sdk/budgets.d.ts +0 -7
  1353. package/sdk/budgets.d.ts.map +1 -1
  1354. package/sdk/budgets.js +0 -10
  1355. package/sdk/budgets.js.map +1 -1
  1356. package/sdk/feedback.d.ts +2 -2
  1357. package/sdk/feedback.js +2 -2
  1358. package/sdk/reporting.d.ts +3 -1
  1359. package/sdk/reporting.d.ts.map +1 -1
  1360. package/sdk/reporting.js +3 -1
  1361. package/sdk/reporting.js.map +1 -1
  1362. package/sdk/sdk.d.ts +6 -0
  1363. package/sdk/sdk.d.ts.map +1 -1
  1364. package/sdk/sdk.js +8 -0
  1365. package/sdk/sdk.js.map +1 -1
  1366. package/sdk/telemetry.d.ts +12 -0
  1367. package/sdk/telemetry.d.ts.map +1 -0
  1368. package/sdk/telemetry.js +22 -0
  1369. package/sdk/telemetry.js.map +1 -0
  1370. package/sdk/traces.d.ts +3 -1
  1371. package/sdk/traces.d.ts.map +1 -1
  1372. package/sdk/traces.js +3 -1
  1373. package/sdk/traces.js.map +1 -1
  1374. package/sdk/webhooks.d.ts +64 -0
  1375. package/sdk/webhooks.d.ts.map +1 -0
  1376. package/sdk/webhooks.js +94 -0
  1377. package/sdk/webhooks.js.map +1 -0
  1378. package/src/funcs/datasetsClear.ts +11 -2
  1379. package/src/funcs/filesList.ts +1 -0
  1380. package/src/funcs/knowledgeListDatasources.ts +1 -0
  1381. package/src/funcs/notifiersList.ts +2 -0
  1382. package/src/funcs/reportingQuery.ts +3 -1
  1383. package/src/funcs/telemetryQuery.ts +162 -0
  1384. package/src/funcs/tracesAggregate.ts +3 -1
  1385. package/src/funcs/webhooksCount.ts +144 -0
  1386. package/src/funcs/webhooksCreate.ts +162 -0
  1387. package/src/funcs/webhooksDelete.ts +168 -0
  1388. package/src/funcs/webhooksGenerateSecret.ts +144 -0
  1389. package/src/funcs/webhooksGet.ts +168 -0
  1390. package/src/funcs/webhooksList.ts +175 -0
  1391. package/src/funcs/webhooksQuery.ts +164 -0
  1392. package/src/funcs/webhooksUpdate.ts +168 -0
  1393. package/src/lib/config.ts +3 -3
  1394. package/src/lib/http.ts +3 -1
  1395. package/src/lib/security.ts +10 -5
  1396. package/src/models/components/actionreviewrequestedstreamingevent.ts +3 -3
  1397. package/src/models/components/agentstartedstreamingevent.ts +3 -3
  1398. package/src/models/components/agenttoolinputcrud.ts +747 -0
  1399. package/src/models/components/apikey.ts +6 -0
  1400. package/src/models/components/budget.ts +6 -0
  1401. package/src/models/components/budgetalert.ts +92 -0
  1402. package/src/models/components/budgetalertdimension.ts +22 -0
  1403. package/src/models/components/codetoolinput.ts +62 -0
  1404. package/src/models/components/config.ts +44 -0
  1405. package/src/models/components/countwebhooksresponse.ts +37 -0
  1406. package/src/models/components/createbudgetrequest.ts +14 -0
  1407. package/src/models/components/createwebhookrequest.ts +100 -0
  1408. package/src/models/components/deletewebhookresponse.ts +34 -0
  1409. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  1410. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  1411. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  1412. package/src/models/components/evaluatorresponsellm.ts +2 -2
  1413. package/src/models/components/evaluatorresponsepython.ts +2 -2
  1414. package/src/models/components/evaluatorresponseragas.ts +2 -2
  1415. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  1416. package/src/models/components/functiontoolinput.ts +60 -0
  1417. package/src/models/components/generatewebhooksecretresponse.ts +37 -0
  1418. package/src/models/components/httptoolinput.ts +62 -0
  1419. package/src/models/components/identity.ts +15 -9
  1420. package/src/models/components/index.ts +29 -4
  1421. package/src/models/components/jsonschematoolinput.ts +60 -0
  1422. package/src/models/components/listwebhooksresponse.ts +53 -0
  1423. package/src/models/components/mcptoolinput.ts +63 -0
  1424. package/src/models/components/modeldocument.ts +3 -0
  1425. package/src/models/components/modelsconfig.ts +1 -0
  1426. package/src/models/components/providertoolinput.ts +72 -0
  1427. package/src/models/components/queryparamspagination.ts +40 -0
  1428. package/src/models/components/queryparamssort.ts +32 -0
  1429. package/src/models/components/querytelemetrymeta.ts +38 -0
  1430. package/src/models/components/querytelemetryrequest.ts +85 -0
  1431. package/src/models/components/querytelemetryresponse.ts +42 -0
  1432. package/src/models/components/querywebhooksrequest.ts +85 -0
  1433. package/src/models/components/querywebhooksresponse.ts +34 -0
  1434. package/src/models/components/reasoningpart.ts +1 -1
  1435. package/src/models/components/responsecustomtoolcallinputdeltastreamevent.ts +79 -0
  1436. package/src/models/components/responsecustomtoolcallinputdonestreamevent.ts +76 -0
  1437. package/src/models/components/responsemcplisttoolscompletedstreamevent.ts +73 -0
  1438. package/src/models/components/responsemcplisttoolsfailedstreamevent.ts +68 -0
  1439. package/src/models/components/responsemcplisttoolsinprogressstreamevent.ts +73 -0
  1440. package/src/models/components/responsestreamevent.ts +30 -0
  1441. package/src/models/components/telemetryrow.ts +42 -0
  1442. package/src/models/components/thinkingconfigenabledschema.ts +1 -0
  1443. package/src/models/components/updatebudgetrequest.ts +21 -0
  1444. package/src/models/components/webhook.ts +116 -0
  1445. package/src/models/operations/createagentrequest.ts +998 -2311
  1446. package/src/models/operations/createchatcompletion.ts +1 -0
  1447. package/src/models/operations/createdataset.ts +1 -1
  1448. package/src/models/operations/createdatasetitem.ts +237 -19
  1449. package/src/models/operations/createdatasource.ts +78 -2
  1450. package/src/models/operations/createeval.ts +179 -175
  1451. package/src/models/operations/createknowledge.ts +18 -10
  1452. package/src/models/operations/createprompt.ts +5 -0
  1453. package/src/models/operations/createrouterresponse.ts +94 -44
  1454. package/src/models/operations/createtool.ts +58 -61
  1455. package/src/models/operations/deploymentgetconfig.ts +1 -0
  1456. package/src/models/operations/deploymentinvoke.ts +2 -0
  1457. package/src/models/operations/deployments.ts +3 -0
  1458. package/src/models/operations/deploymentstream.ts +2 -0
  1459. package/src/models/operations/filelist.ts +11 -0
  1460. package/src/models/operations/getallmemories.ts +1 -1
  1461. package/src/models/operations/getallmemorydocuments.ts +1 -1
  1462. package/src/models/operations/getallmemorystores.ts +1 -1
  1463. package/src/models/operations/getallprompts.ts +5 -1
  1464. package/src/models/operations/getalltools.ts +11 -6
  1465. package/src/models/operations/getevals.ts +1 -1
  1466. package/src/models/operations/getoneprompt.ts +4 -0
  1467. package/src/models/operations/getpromptversion.ts +4 -0
  1468. package/src/models/operations/getv2evaluatorsidversions.ts +1 -1
  1469. package/src/models/operations/getv2humanevalsets.ts +2 -2
  1470. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  1471. package/src/models/operations/getv2toolstoolidversions.ts +1 -1
  1472. package/src/models/operations/index.ts +4 -0
  1473. package/src/models/operations/listagents.ts +7 -5
  1474. package/src/models/operations/listchunks.ts +1 -1
  1475. package/src/models/operations/listdatasetdatapoints.ts +314 -85
  1476. package/src/models/operations/listdatasets.ts +2 -2
  1477. package/src/models/operations/listdatasources.ts +99 -2
  1478. package/src/models/operations/listpromptversions.ts +5 -1
  1479. package/src/models/operations/modelcreate.ts +2 -0
  1480. package/src/models/operations/modelcreateautorouter.ts +2 -0
  1481. package/src/models/operations/modelcreateawsbedrock.ts +2 -0
  1482. package/src/models/operations/modelcreateopenailike.ts +2 -0
  1483. package/src/models/operations/modelcreatevertex.ts +2 -0
  1484. package/src/models/operations/modelupdate.ts +2 -0
  1485. package/src/models/operations/modelupdateautorouter.ts +2 -0
  1486. package/src/models/operations/modelupdateawsbedrock.ts +2 -0
  1487. package/src/models/operations/modelupdateopenailike.ts +2 -0
  1488. package/src/models/operations/notifierlist.ts +13 -0
  1489. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  1490. package/src/models/operations/postv2feedbackevaluation.ts +119 -11
  1491. package/src/models/operations/postv2humanevalsets.ts +2 -2
  1492. package/src/models/operations/retrieveagentrequest.ts +7 -5
  1493. package/src/models/operations/retrievedatapoint.ts +234 -9
  1494. package/src/models/operations/retrievedataset.ts +1 -1
  1495. package/src/models/operations/retrievedatasource.ts +72 -2
  1496. package/src/models/operations/retrieveresponse.ts +8 -8
  1497. package/src/models/operations/retrievetool.ts +11 -6
  1498. package/src/models/operations/runagent.ts +215 -232
  1499. package/src/models/operations/streamrunagent.ts +293 -328
  1500. package/src/models/operations/updateagent.ts +823 -2199
  1501. package/src/models/operations/updatedatapoint.ts +229 -9
  1502. package/src/models/operations/updatedataset.ts +1 -1
  1503. package/src/models/operations/updatedatasource.ts +72 -2
  1504. package/src/models/operations/updateprompt.ts +5 -0
  1505. package/src/models/operations/updatetool.ts +18 -7
  1506. package/src/models/operations/webhookdelete.ts +31 -0
  1507. package/src/models/operations/webhookget.ts +31 -0
  1508. package/src/models/operations/webhooklist.ts +101 -0
  1509. package/src/models/operations/webhookupdate.ts +84 -0
  1510. package/src/sdk/budgets.ts +0 -18
  1511. package/src/sdk/feedback.ts +2 -2
  1512. package/src/sdk/reporting.ts +3 -1
  1513. package/src/sdk/sdk.ts +12 -0
  1514. package/src/sdk/telemetry.ts +27 -0
  1515. package/src/sdk/traces.ts +3 -1
  1516. package/src/sdk/webhooks.ts +152 -0
  1517. package/funcs/budgetsCheck.d.ts.map +0 -1
  1518. package/funcs/budgetsCheck.js.map +0 -1
  1519. package/models/components/budgetrejection.d.ts +0 -17
  1520. package/models/components/budgetrejection.d.ts.map +0 -1
  1521. package/models/components/budgetrejection.js.map +0 -1
  1522. package/models/components/checkbudgetsrequest.d.ts +0 -72
  1523. package/models/components/checkbudgetsrequest.d.ts.map +0 -1
  1524. package/models/components/checkbudgetsrequest.js.map +0 -1
  1525. package/models/components/checkbudgetsresponse.d.ts +0 -34
  1526. package/models/components/checkbudgetsresponse.d.ts.map +0 -1
  1527. package/models/components/checkbudgetsresponse.js.map +0 -1
  1528. package/models/components/dimensioninfo.d.ts +0 -15
  1529. package/models/components/dimensioninfo.d.ts.map +0 -1
  1530. package/models/components/dimensioninfo.js.map +0 -1
  1531. package/src/models/components/budgetrejection.ts +0 -48
  1532. package/src/models/components/checkbudgetsrequest.ts +0 -111
  1533. package/src/models/components/checkbudgetsresponse.ts +0 -62
  1534. package/src/models/components/dimensioninfo.ts +0 -43
@@ -0,0 +1,3020 @@
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
+ /**
14
+ * Filter agents by type
15
+ */
16
+ export const QueryParamType = {
17
+ Internal: "internal",
18
+ } as const;
19
+ /**
20
+ * Filter agents by type
21
+ */
22
+ export type QueryParamType = ClosedEnum<typeof QueryParamType>;
23
+
24
+ export type ListAgentsRequest = {
25
+ /**
26
+ * A limit on the number of objects to be returned. Limit can range between 1 and 200. When not provided, returns all agents without pagination.
27
+ */
28
+ limit?: number | undefined;
29
+ /**
30
+ * 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.
31
+ */
32
+ startingAfter?: string | undefined;
33
+ /**
34
+ * 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.
35
+ */
36
+ endingBefore?: string | undefined;
37
+ /**
38
+ * Filter agents by type
39
+ */
40
+ type?: QueryParamType | undefined;
41
+ };
42
+
43
+ export const ListAgentsObject = {
44
+ List: "list",
45
+ } as const;
46
+ export type ListAgentsObject = ClosedEnum<typeof ListAgentsObject>;
47
+
48
+ /**
49
+ * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
50
+ */
51
+ export const ListAgentsStatus = {
52
+ Live: "live",
53
+ Draft: "draft",
54
+ Pending: "pending",
55
+ Published: "published",
56
+ } as const;
57
+ /**
58
+ * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
59
+ */
60
+ export type ListAgentsStatus = ClosedEnum<typeof ListAgentsStatus>;
61
+
62
+ export type ListAgentsTeamOfAgents = {
63
+ /**
64
+ * The unique key of the agent within the workspace
65
+ */
66
+ key: string;
67
+ /**
68
+ * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
69
+ */
70
+ role?: string | undefined;
71
+ };
72
+
73
+ export type ListAgentsMetrics = {
74
+ totalCost: number;
75
+ };
76
+
77
+ export type ListAgentsKnowledgeBases = {
78
+ /**
79
+ * Unique identifier of the knowledge base to search
80
+ */
81
+ knowledgeId: string;
82
+ };
83
+
84
+ export const ListAgentsSource = {
85
+ Internal: "internal",
86
+ External: "external",
87
+ Experiment: "experiment",
88
+ } as const;
89
+ export type ListAgentsSource = ClosedEnum<typeof ListAgentsSource>;
90
+
91
+ export const ListAgentsEngine = {
92
+ Text: "text",
93
+ Jinja: "jinja",
94
+ Mustache: "mustache",
95
+ } as const;
96
+ export type ListAgentsEngine = ClosedEnum<typeof ListAgentsEngine>;
97
+
98
+ /**
99
+ * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
100
+ */
101
+ export const ListAgentsType = {
102
+ Internal: "internal",
103
+ A2a: "a2a",
104
+ } as const;
105
+ /**
106
+ * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
107
+ */
108
+ export type ListAgentsType = ClosedEnum<typeof ListAgentsType>;
109
+
110
+ /**
111
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
112
+ */
113
+ export const ListAgentsToolApprovalRequired = {
114
+ All: "all",
115
+ RespectTool: "respect_tool",
116
+ None: "none",
117
+ } as const;
118
+ /**
119
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
120
+ */
121
+ export type ListAgentsToolApprovalRequired = ClosedEnum<
122
+ typeof ListAgentsToolApprovalRequired
123
+ >;
124
+
125
+ export type ListAgentsConditions = {
126
+ /**
127
+ * The argument of the tool call to evaluate
128
+ */
129
+ condition: string;
130
+ /**
131
+ * The operator to use
132
+ */
133
+ operator: string;
134
+ /**
135
+ * The value to compare against
136
+ */
137
+ value: string;
138
+ };
139
+
140
+ export type ListAgentsTools = {
141
+ /**
142
+ * The id of the resource
143
+ */
144
+ id: string;
145
+ /**
146
+ * Optional tool key for custom tools
147
+ */
148
+ key?: string | undefined;
149
+ actionType: string;
150
+ displayName?: string | undefined;
151
+ /**
152
+ * Optional tool description
153
+ */
154
+ description?: string | undefined;
155
+ /**
156
+ * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
157
+ */
158
+ configuration?: { [k: string]: any } | undefined;
159
+ requiresApproval: boolean;
160
+ /**
161
+ * Nested tool ID for MCP tools (identifies specific tool within MCP server)
162
+ */
163
+ toolId?: string | undefined;
164
+ conditions?: Array<ListAgentsConditions> | undefined;
165
+ /**
166
+ * Tool execution timeout in seconds for this agent (max: 10 minutes). Overrides the timeout configured on the tool definition.
167
+ */
168
+ timeout?: number | undefined;
169
+ };
170
+
171
+ /**
172
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
173
+ */
174
+ export const ListAgentsExecuteOn = {
175
+ Input: "input",
176
+ Output: "output",
177
+ } as const;
178
+ /**
179
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
180
+ */
181
+ export type ListAgentsExecuteOn = ClosedEnum<typeof ListAgentsExecuteOn>;
182
+
183
+ export type ListAgentsEvaluators = {
184
+ /**
185
+ * Unique key or identifier of the evaluator
186
+ */
187
+ id: string;
188
+ /**
189
+ * The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
190
+ */
191
+ sampleRate: number;
192
+ /**
193
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
194
+ */
195
+ executeOn: ListAgentsExecuteOn;
196
+ };
197
+
198
+ /**
199
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
200
+ */
201
+ export const ListAgentsAgentsExecuteOn = {
202
+ Input: "input",
203
+ Output: "output",
204
+ } as const;
205
+ /**
206
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
207
+ */
208
+ export type ListAgentsAgentsExecuteOn = ClosedEnum<
209
+ typeof ListAgentsAgentsExecuteOn
210
+ >;
211
+
212
+ export type ListAgentsGuardrails = {
213
+ /**
214
+ * Unique key or identifier of the evaluator
215
+ */
216
+ id: string;
217
+ /**
218
+ * The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
219
+ */
220
+ sampleRate: number;
221
+ /**
222
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
223
+ */
224
+ executeOn: ListAgentsAgentsExecuteOn;
225
+ };
226
+
227
+ export type ListAgentsSettings = {
228
+ /**
229
+ * Maximum iterations(llm calls) before the agent will stop executing.
230
+ */
231
+ maxIterations: number;
232
+ /**
233
+ * Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
234
+ */
235
+ maxExecutionTime: number;
236
+ /**
237
+ * Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses
238
+ */
239
+ maxCost: number;
240
+ /**
241
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
242
+ */
243
+ toolApprovalRequired: ListAgentsToolApprovalRequired;
244
+ /**
245
+ * When enabled, this agent is exposed as a selectable target in AI Chat for users to consume.
246
+ */
247
+ chatExposed?: boolean | undefined;
248
+ tools?: Array<ListAgentsTools> | undefined;
249
+ /**
250
+ * Configuration for an evaluator applied to the agent
251
+ */
252
+ evaluators?: Array<ListAgentsEvaluators> | undefined;
253
+ /**
254
+ * Configuration for a guardrail applied to the agent
255
+ */
256
+ guardrails?: Array<ListAgentsGuardrails> | undefined;
257
+ };
258
+
259
+ export type ListAgentsResponseFormatJsonSchema = {
260
+ /**
261
+ * A description of what the response format is for, used by the model to determine how to respond in the format.
262
+ */
263
+ description?: string | undefined;
264
+ /**
265
+ * 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.
266
+ */
267
+ name: string;
268
+ /**
269
+ * The schema for the response format, described as a JSON Schema object.
270
+ */
271
+ schema?: any | undefined;
272
+ /**
273
+ * 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.
274
+ */
275
+ strict: boolean;
276
+ };
277
+
278
+ /**
279
+ * @remarks
280
+ *
281
+ * JSON Schema response format. Used to generate structured JSON responses
282
+ */
283
+ export type ListAgentsResponseFormatAgentsJSONSchema = {
284
+ type: "json_schema";
285
+ jsonSchema: ListAgentsResponseFormatJsonSchema;
286
+ };
287
+
288
+ /**
289
+ * @remarks
290
+ *
291
+ * 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.
292
+ */
293
+ export type ListAgentsResponseFormatJSONObject = {
294
+ type: "json_object";
295
+ };
296
+
297
+ /**
298
+ * @remarks
299
+ *
300
+ * Default response format. Used to generate text responses
301
+ */
302
+ export type ListAgentsResponseFormatText = {
303
+ type: "text";
304
+ };
305
+
306
+ /**
307
+ * An object specifying the format that the model must output
308
+ */
309
+ export type ListAgentsResponseFormat =
310
+ | ListAgentsResponseFormatText
311
+ | ListAgentsResponseFormatJSONObject
312
+ | ListAgentsResponseFormatAgentsJSONSchema;
313
+
314
+ /**
315
+ * 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.
316
+ *
317
+ * @remarks
318
+ *
319
+ * - `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.
320
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
321
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
322
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
323
+ *
324
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
325
+ */
326
+ export const ListAgentsReasoningEffort = {
327
+ None: "none",
328
+ Minimal: "minimal",
329
+ Low: "low",
330
+ Medium: "medium",
331
+ High: "high",
332
+ Xhigh: "xhigh",
333
+ } as const;
334
+ /**
335
+ * 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.
336
+ *
337
+ * @remarks
338
+ *
339
+ * - `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.
340
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
341
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
342
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
343
+ *
344
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
345
+ */
346
+ export type ListAgentsReasoningEffort = ClosedEnum<
347
+ typeof ListAgentsReasoningEffort
348
+ >;
349
+
350
+ /**
351
+ * Up to 4 sequences where the API will stop generating further tokens.
352
+ */
353
+ export type ListAgentsStop = string | Array<string>;
354
+
355
+ export type ListAgentsThinking =
356
+ | components.ThinkingConfigDisabledSchema
357
+ | components.ThinkingConfigEnabledSchema
358
+ | components.ThinkingConfigAdaptiveSchema;
359
+
360
+ /**
361
+ * The type of the tool. Currently, only function is supported.
362
+ */
363
+ export const ListAgentsToolChoiceType = {
364
+ Function: "function",
365
+ } as const;
366
+ /**
367
+ * The type of the tool. Currently, only function is supported.
368
+ */
369
+ export type ListAgentsToolChoiceType = ClosedEnum<
370
+ typeof ListAgentsToolChoiceType
371
+ >;
372
+
373
+ export type ListAgentsToolChoiceFunction = {
374
+ /**
375
+ * The name of the function to call.
376
+ */
377
+ name: string;
378
+ };
379
+
380
+ export type ListAgentsToolChoice2 = {
381
+ /**
382
+ * The type of the tool. Currently, only function is supported.
383
+ */
384
+ type?: ListAgentsToolChoiceType | undefined;
385
+ function: ListAgentsToolChoiceFunction;
386
+ };
387
+
388
+ export const ListAgentsToolChoice1 = {
389
+ None: "none",
390
+ Auto: "auto",
391
+ Required: "required",
392
+ } as const;
393
+ export type ListAgentsToolChoice1 = ClosedEnum<typeof ListAgentsToolChoice1>;
394
+
395
+ /**
396
+ * Controls which (if any) tool is called by the model.
397
+ */
398
+ export type ListAgentsToolChoice =
399
+ | ListAgentsToolChoice2
400
+ | ListAgentsToolChoice1;
401
+
402
+ export const ListAgentsModalities = {
403
+ Text: "text",
404
+ Audio: "audio",
405
+ } as const;
406
+ export type ListAgentsModalities = ClosedEnum<typeof ListAgentsModalities>;
407
+
408
+ /**
409
+ * The key of the guardrail.
410
+ */
411
+ export const ListAgentsId1 = {
412
+ OrqPiiDetection: "orq_pii_detection",
413
+ OrqSecretDetection: "orq_secret_detection",
414
+ OrqSexualModeration: "orq_sexual_moderation",
415
+ OrqHarmfulModeration: "orq_harmful_moderation",
416
+ } as const;
417
+ /**
418
+ * The key of the guardrail.
419
+ */
420
+ export type ListAgentsId1 = ClosedEnum<typeof ListAgentsId1>;
421
+
422
+ export type ListAgentsId = ListAgentsId1 | string;
423
+
424
+ /**
425
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
426
+ */
427
+ export const ListAgentsAgentsResponseExecuteOn = {
428
+ Input: "input",
429
+ Output: "output",
430
+ } as const;
431
+ /**
432
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
433
+ */
434
+ export type ListAgentsAgentsResponseExecuteOn = ClosedEnum<
435
+ typeof ListAgentsAgentsResponseExecuteOn
436
+ >;
437
+
438
+ export type ListAgentsAgentsGuardrails = {
439
+ id: ListAgentsId1 | string;
440
+ /**
441
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
442
+ */
443
+ executeOn: ListAgentsAgentsResponseExecuteOn;
444
+ };
445
+
446
+ export type ListAgentsPlugins =
447
+ | components.PIIRedactionPluginEn
448
+ | components.PIIRedactionPluginNl
449
+ | components.PIIRedactionPluginAuto;
450
+
451
+ export type ListAgentsFallbacks = {
452
+ /**
453
+ * Fallback model identifier
454
+ */
455
+ model: string;
456
+ };
457
+
458
+ export const ListAgentsAgentsType = {
459
+ ExactMatch: "exact_match",
460
+ } as const;
461
+ export type ListAgentsAgentsType = ClosedEnum<typeof ListAgentsAgentsType>;
462
+
463
+ /**
464
+ * Cache configuration for the request.
465
+ */
466
+ export type ListAgentsCache = {
467
+ /**
468
+ * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
469
+ */
470
+ ttl: number;
471
+ type: ListAgentsAgentsType;
472
+ };
473
+
474
+ export const ListAgentsLoadBalancerType = {
475
+ WeightBased: "weight_based",
476
+ } as const;
477
+ export type ListAgentsLoadBalancerType = ClosedEnum<
478
+ typeof ListAgentsLoadBalancerType
479
+ >;
480
+
481
+ export type ListAgentsLoadBalancerModels = {
482
+ /**
483
+ * Model identifier for load balancing
484
+ */
485
+ model: string;
486
+ /**
487
+ * Weight assigned to this model for load balancing
488
+ */
489
+ weight: number;
490
+ };
491
+
492
+ export type ListAgentsLoadBalancer1 = {
493
+ type: ListAgentsLoadBalancerType;
494
+ models: Array<ListAgentsLoadBalancerModels>;
495
+ };
496
+
497
+ /**
498
+ * Load balancer configuration for the request.
499
+ */
500
+ export type ListAgentsLoadBalancer = ListAgentsLoadBalancer1;
501
+
502
+ /**
503
+ * 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.
504
+ */
505
+ export type ListAgentsTimeout = {
506
+ /**
507
+ * Timeout value in milliseconds
508
+ */
509
+ callTimeout: number;
510
+ };
511
+
512
+ /**
513
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
514
+ */
515
+ export const ListAgentsAgentsResponseType = {
516
+ Ephemeral: "ephemeral",
517
+ } as const;
518
+ /**
519
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
520
+ */
521
+ export type ListAgentsAgentsResponseType = ClosedEnum<
522
+ typeof ListAgentsAgentsResponseType
523
+ >;
524
+
525
+ /**
526
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
527
+ *
528
+ * @remarks
529
+ *
530
+ * - `5m`: 5 minutes
531
+ * - `1h`: 1 hour
532
+ *
533
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
534
+ */
535
+ export const ListAgentsTtl = {
536
+ Fivem: "5m",
537
+ Oneh: "1h",
538
+ } as const;
539
+ /**
540
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
541
+ *
542
+ * @remarks
543
+ *
544
+ * - `5m`: 5 minutes
545
+ * - `1h`: 1 hour
546
+ *
547
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
548
+ */
549
+ export type ListAgentsTtl = ClosedEnum<typeof ListAgentsTtl>;
550
+
551
+ /**
552
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
553
+ */
554
+ export type ListAgentsCacheControl = {
555
+ /**
556
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
557
+ */
558
+ type: ListAgentsAgentsResponseType;
559
+ /**
560
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
561
+ *
562
+ * @remarks
563
+ *
564
+ * - `5m`: 5 minutes
565
+ * - `1h`: 1 hour
566
+ *
567
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
568
+ */
569
+ ttl: ListAgentsTtl;
570
+ };
571
+
572
+ /**
573
+ * Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
574
+ */
575
+ export type ListAgentsParameters = {
576
+ /**
577
+ * The name to display on the trace. If not specified, the default system name will be used.
578
+ */
579
+ name?: string | undefined;
580
+ /**
581
+ * 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.
582
+ */
583
+ frequencyPenalty?: number | null | undefined;
584
+ /**
585
+ * `[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.
586
+ *
587
+ * @remarks
588
+ *
589
+ * This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
590
+ */
591
+ maxTokens?: number | null | undefined;
592
+ /**
593
+ * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
594
+ */
595
+ maxCompletionTokens?: number | null | undefined;
596
+ /**
597
+ * 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.
598
+ */
599
+ presencePenalty?: number | null | undefined;
600
+ /**
601
+ * An object specifying the format that the model must output
602
+ */
603
+ responseFormat?:
604
+ | ListAgentsResponseFormatText
605
+ | ListAgentsResponseFormatJSONObject
606
+ | ListAgentsResponseFormatAgentsJSONSchema
607
+ | undefined;
608
+ /**
609
+ * 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.
610
+ *
611
+ * @remarks
612
+ *
613
+ * - `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.
614
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
615
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
616
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
617
+ *
618
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
619
+ */
620
+ reasoningEffort?: ListAgentsReasoningEffort | undefined;
621
+ /**
622
+ * Adjusts response verbosity. Lower levels yield shorter answers.
623
+ */
624
+ verbosity?: string | undefined;
625
+ /**
626
+ * 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.
627
+ */
628
+ seed?: number | null | undefined;
629
+ /**
630
+ * Up to 4 sequences where the API will stop generating further tokens.
631
+ */
632
+ stop?: string | Array<string> | null | undefined;
633
+ thinking?:
634
+ | components.ThinkingConfigDisabledSchema
635
+ | components.ThinkingConfigEnabledSchema
636
+ | components.ThinkingConfigAdaptiveSchema
637
+ | undefined;
638
+ /**
639
+ * 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.
640
+ */
641
+ temperature?: number | null | undefined;
642
+ /**
643
+ * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
644
+ */
645
+ topP?: number | null | undefined;
646
+ /**
647
+ * Limits the model to consider only the top k most likely tokens at each step.
648
+ */
649
+ topK?: number | null | undefined;
650
+ /**
651
+ * Controls which (if any) tool is called by the model.
652
+ */
653
+ toolChoice?: ListAgentsToolChoice2 | ListAgentsToolChoice1 | undefined;
654
+ /**
655
+ * Whether to enable parallel function calling during tool use.
656
+ */
657
+ parallelToolCalls?: boolean | undefined;
658
+ /**
659
+ * 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"].
660
+ */
661
+ modalities?: Array<ListAgentsModalities> | null | undefined;
662
+ /**
663
+ * A list of guardrails to apply to the request.
664
+ */
665
+ guardrails?: Array<ListAgentsAgentsGuardrails> | undefined;
666
+ /**
667
+ * 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.
668
+ */
669
+ plugins?:
670
+ | Array<
671
+ | components.PIIRedactionPluginEn
672
+ | components.PIIRedactionPluginNl
673
+ | components.PIIRedactionPluginAuto
674
+ >
675
+ | undefined;
676
+ /**
677
+ * Array of fallback models to use if primary model fails
678
+ */
679
+ fallbacks?: Array<ListAgentsFallbacks> | undefined;
680
+ /**
681
+ * Cache configuration for the request.
682
+ */
683
+ cache?: ListAgentsCache | undefined;
684
+ /**
685
+ * Load balancer configuration for the request.
686
+ */
687
+ loadBalancer?: ListAgentsLoadBalancer1 | undefined;
688
+ /**
689
+ * 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.
690
+ */
691
+ timeout?: ListAgentsTimeout | undefined;
692
+ /**
693
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
694
+ */
695
+ cacheControl?: ListAgentsCacheControl | undefined;
696
+ /**
697
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
698
+ */
699
+ promptCacheKey?: string | undefined;
700
+ };
701
+
702
+ /**
703
+ * Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
704
+ */
705
+ export type ListAgentsRetry = {
706
+ /**
707
+ * Number of retry attempts (1-5)
708
+ */
709
+ count: number;
710
+ /**
711
+ * HTTP status codes that trigger retry logic
712
+ */
713
+ onCodes?: Array<number> | undefined;
714
+ };
715
+
716
+ export type ListAgentsResponseFormatAgentsResponseJsonSchema = {
717
+ /**
718
+ * A description of what the response format is for, used by the model to determine how to respond in the format.
719
+ */
720
+ description?: string | undefined;
721
+ /**
722
+ * 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.
723
+ */
724
+ name: string;
725
+ /**
726
+ * The schema for the response format, described as a JSON Schema object.
727
+ */
728
+ schema?: any | undefined;
729
+ /**
730
+ * 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.
731
+ */
732
+ strict: boolean;
733
+ };
734
+
735
+ /**
736
+ * @remarks
737
+ *
738
+ * JSON Schema response format. Used to generate structured JSON responses
739
+ */
740
+ export type ListAgentsResponseFormatAgentsResponse200JSONSchema = {
741
+ type: "json_schema";
742
+ jsonSchema: ListAgentsResponseFormatAgentsResponseJsonSchema;
743
+ };
744
+
745
+ /**
746
+ * @remarks
747
+ *
748
+ * 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.
749
+ */
750
+ export type ListAgentsResponseFormatAgentsJSONObject = {
751
+ type: "json_object";
752
+ };
753
+
754
+ /**
755
+ * @remarks
756
+ *
757
+ * Default response format. Used to generate text responses
758
+ */
759
+ export type ListAgentsResponseFormatAgentsText = {
760
+ type: "text";
761
+ };
762
+
763
+ /**
764
+ * An object specifying the format that the model must output
765
+ */
766
+ export type ListAgentsFallbackModelConfigurationResponseFormat =
767
+ | ListAgentsResponseFormatAgentsText
768
+ | ListAgentsResponseFormatAgentsJSONObject
769
+ | ListAgentsResponseFormatAgentsResponse200JSONSchema;
770
+
771
+ /**
772
+ * 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.
773
+ *
774
+ * @remarks
775
+ *
776
+ * - `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.
777
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
778
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
779
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
780
+ *
781
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
782
+ */
783
+ export const ListAgentsFallbackModelConfigurationReasoningEffort = {
784
+ None: "none",
785
+ Minimal: "minimal",
786
+ Low: "low",
787
+ Medium: "medium",
788
+ High: "high",
789
+ Xhigh: "xhigh",
790
+ } as const;
791
+ /**
792
+ * 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.
793
+ *
794
+ * @remarks
795
+ *
796
+ * - `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.
797
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
798
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
799
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
800
+ *
801
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
802
+ */
803
+ export type ListAgentsFallbackModelConfigurationReasoningEffort = ClosedEnum<
804
+ typeof ListAgentsFallbackModelConfigurationReasoningEffort
805
+ >;
806
+
807
+ /**
808
+ * Up to 4 sequences where the API will stop generating further tokens.
809
+ */
810
+ export type ListAgentsFallbackModelConfigurationStop = string | Array<string>;
811
+
812
+ export type ListAgentsFallbackModelConfigurationThinking =
813
+ | components.ThinkingConfigDisabledSchema
814
+ | components.ThinkingConfigEnabledSchema
815
+ | components.ThinkingConfigAdaptiveSchema;
816
+
817
+ /**
818
+ * The type of the tool. Currently, only function is supported.
819
+ */
820
+ export const ListAgentsToolChoiceAgentsType = {
821
+ Function: "function",
822
+ } as const;
823
+ /**
824
+ * The type of the tool. Currently, only function is supported.
825
+ */
826
+ export type ListAgentsToolChoiceAgentsType = ClosedEnum<
827
+ typeof ListAgentsToolChoiceAgentsType
828
+ >;
829
+
830
+ export type ListAgentsToolChoiceAgentsFunction = {
831
+ /**
832
+ * The name of the function to call.
833
+ */
834
+ name: string;
835
+ };
836
+
837
+ export type ListAgentsToolChoiceAgents2 = {
838
+ /**
839
+ * The type of the tool. Currently, only function is supported.
840
+ */
841
+ type?: ListAgentsToolChoiceAgentsType | undefined;
842
+ function: ListAgentsToolChoiceAgentsFunction;
843
+ };
844
+
845
+ export const ListAgentsToolChoiceAgents1 = {
846
+ None: "none",
847
+ Auto: "auto",
848
+ Required: "required",
849
+ } as const;
850
+ export type ListAgentsToolChoiceAgents1 = ClosedEnum<
851
+ typeof ListAgentsToolChoiceAgents1
852
+ >;
853
+
854
+ /**
855
+ * Controls which (if any) tool is called by the model.
856
+ */
857
+ export type ListAgentsFallbackModelConfigurationToolChoice =
858
+ | ListAgentsToolChoiceAgents2
859
+ | ListAgentsToolChoiceAgents1;
860
+
861
+ export const ListAgentsFallbackModelConfigurationModalities = {
862
+ Text: "text",
863
+ Audio: "audio",
864
+ } as const;
865
+ export type ListAgentsFallbackModelConfigurationModalities = ClosedEnum<
866
+ typeof ListAgentsFallbackModelConfigurationModalities
867
+ >;
868
+
869
+ /**
870
+ * The key of the guardrail.
871
+ */
872
+ export const ListAgentsIdAgents1 = {
873
+ OrqPiiDetection: "orq_pii_detection",
874
+ OrqSecretDetection: "orq_secret_detection",
875
+ OrqSexualModeration: "orq_sexual_moderation",
876
+ OrqHarmfulModeration: "orq_harmful_moderation",
877
+ } as const;
878
+ /**
879
+ * The key of the guardrail.
880
+ */
881
+ export type ListAgentsIdAgents1 = ClosedEnum<typeof ListAgentsIdAgents1>;
882
+
883
+ export type ListAgentsFallbackModelConfigurationId =
884
+ | ListAgentsIdAgents1
885
+ | string;
886
+
887
+ /**
888
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
889
+ */
890
+ export const ListAgentsFallbackModelConfigurationExecuteOn = {
891
+ Input: "input",
892
+ Output: "output",
893
+ } as const;
894
+ /**
895
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
896
+ */
897
+ export type ListAgentsFallbackModelConfigurationExecuteOn = ClosedEnum<
898
+ typeof ListAgentsFallbackModelConfigurationExecuteOn
899
+ >;
900
+
901
+ export type ListAgentsFallbackModelConfigurationGuardrails = {
902
+ id: ListAgentsIdAgents1 | string;
903
+ /**
904
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
905
+ */
906
+ executeOn: ListAgentsFallbackModelConfigurationExecuteOn;
907
+ };
908
+
909
+ export type ListAgentsFallbackModelConfigurationPlugins =
910
+ | components.PIIRedactionPluginEn
911
+ | components.PIIRedactionPluginNl
912
+ | components.PIIRedactionPluginAuto;
913
+
914
+ export type ListAgentsFallbackModelConfigurationFallbacks = {
915
+ /**
916
+ * Fallback model identifier
917
+ */
918
+ model: string;
919
+ };
920
+
921
+ export const ListAgentsFallbackModelConfigurationType = {
922
+ ExactMatch: "exact_match",
923
+ } as const;
924
+ export type ListAgentsFallbackModelConfigurationType = ClosedEnum<
925
+ typeof ListAgentsFallbackModelConfigurationType
926
+ >;
927
+
928
+ /**
929
+ * Cache configuration for the request.
930
+ */
931
+ export type ListAgentsFallbackModelConfigurationCache = {
932
+ /**
933
+ * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
934
+ */
935
+ ttl: number;
936
+ type: ListAgentsFallbackModelConfigurationType;
937
+ };
938
+
939
+ export const ListAgentsLoadBalancerAgentsType = {
940
+ WeightBased: "weight_based",
941
+ } as const;
942
+ export type ListAgentsLoadBalancerAgentsType = ClosedEnum<
943
+ typeof ListAgentsLoadBalancerAgentsType
944
+ >;
945
+
946
+ export type ListAgentsLoadBalancerAgentsModels = {
947
+ /**
948
+ * Model identifier for load balancing
949
+ */
950
+ model: string;
951
+ /**
952
+ * Weight assigned to this model for load balancing
953
+ */
954
+ weight: number;
955
+ };
956
+
957
+ export type ListAgentsLoadBalancerAgents1 = {
958
+ type: ListAgentsLoadBalancerAgentsType;
959
+ models: Array<ListAgentsLoadBalancerAgentsModels>;
960
+ };
961
+
962
+ /**
963
+ * Load balancer configuration for the request.
964
+ */
965
+ export type ListAgentsFallbackModelConfigurationLoadBalancer =
966
+ ListAgentsLoadBalancerAgents1;
967
+
968
+ /**
969
+ * 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.
970
+ */
971
+ export type ListAgentsFallbackModelConfigurationTimeout = {
972
+ /**
973
+ * Timeout value in milliseconds
974
+ */
975
+ callTimeout: number;
976
+ };
977
+
978
+ /**
979
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
980
+ */
981
+ export const ListAgentsFallbackModelConfigurationAgentsType = {
982
+ Ephemeral: "ephemeral",
983
+ } as const;
984
+ /**
985
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
986
+ */
987
+ export type ListAgentsFallbackModelConfigurationAgentsType = ClosedEnum<
988
+ typeof ListAgentsFallbackModelConfigurationAgentsType
989
+ >;
990
+
991
+ /**
992
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
993
+ *
994
+ * @remarks
995
+ *
996
+ * - `5m`: 5 minutes
997
+ * - `1h`: 1 hour
998
+ *
999
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1000
+ */
1001
+ export const ListAgentsFallbackModelConfigurationTtl = {
1002
+ Fivem: "5m",
1003
+ Oneh: "1h",
1004
+ } as const;
1005
+ /**
1006
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1007
+ *
1008
+ * @remarks
1009
+ *
1010
+ * - `5m`: 5 minutes
1011
+ * - `1h`: 1 hour
1012
+ *
1013
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1014
+ */
1015
+ export type ListAgentsFallbackModelConfigurationTtl = ClosedEnum<
1016
+ typeof ListAgentsFallbackModelConfigurationTtl
1017
+ >;
1018
+
1019
+ /**
1020
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
1021
+ */
1022
+ export type ListAgentsFallbackModelConfigurationCacheControl = {
1023
+ /**
1024
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1025
+ */
1026
+ type: ListAgentsFallbackModelConfigurationAgentsType;
1027
+ /**
1028
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1029
+ *
1030
+ * @remarks
1031
+ *
1032
+ * - `5m`: 5 minutes
1033
+ * - `1h`: 1 hour
1034
+ *
1035
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1036
+ */
1037
+ ttl: ListAgentsFallbackModelConfigurationTtl;
1038
+ };
1039
+
1040
+ /**
1041
+ * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
1042
+ */
1043
+ export type ListAgentsFallbackModelConfigurationParameters = {
1044
+ /**
1045
+ * The name to display on the trace. If not specified, the default system name will be used.
1046
+ */
1047
+ name?: string | undefined;
1048
+ /**
1049
+ * 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.
1050
+ */
1051
+ frequencyPenalty?: number | null | undefined;
1052
+ /**
1053
+ * `[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.
1054
+ *
1055
+ * @remarks
1056
+ *
1057
+ * This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
1058
+ */
1059
+ maxTokens?: number | null | undefined;
1060
+ /**
1061
+ * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
1062
+ */
1063
+ maxCompletionTokens?: number | null | undefined;
1064
+ /**
1065
+ * 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.
1066
+ */
1067
+ presencePenalty?: number | null | undefined;
1068
+ /**
1069
+ * An object specifying the format that the model must output
1070
+ */
1071
+ responseFormat?:
1072
+ | ListAgentsResponseFormatAgentsText
1073
+ | ListAgentsResponseFormatAgentsJSONObject
1074
+ | ListAgentsResponseFormatAgentsResponse200JSONSchema
1075
+ | undefined;
1076
+ /**
1077
+ * 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.
1078
+ *
1079
+ * @remarks
1080
+ *
1081
+ * - `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.
1082
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
1083
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1084
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
1085
+ *
1086
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
1087
+ */
1088
+ reasoningEffort?:
1089
+ | ListAgentsFallbackModelConfigurationReasoningEffort
1090
+ | undefined;
1091
+ /**
1092
+ * Adjusts response verbosity. Lower levels yield shorter answers.
1093
+ */
1094
+ verbosity?: string | undefined;
1095
+ /**
1096
+ * 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.
1097
+ */
1098
+ seed?: number | null | undefined;
1099
+ /**
1100
+ * Up to 4 sequences where the API will stop generating further tokens.
1101
+ */
1102
+ stop?: string | Array<string> | null | undefined;
1103
+ thinking?:
1104
+ | components.ThinkingConfigDisabledSchema
1105
+ | components.ThinkingConfigEnabledSchema
1106
+ | components.ThinkingConfigAdaptiveSchema
1107
+ | undefined;
1108
+ /**
1109
+ * 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.
1110
+ */
1111
+ temperature?: number | null | undefined;
1112
+ /**
1113
+ * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
1114
+ */
1115
+ topP?: number | null | undefined;
1116
+ /**
1117
+ * Limits the model to consider only the top k most likely tokens at each step.
1118
+ */
1119
+ topK?: number | null | undefined;
1120
+ /**
1121
+ * Controls which (if any) tool is called by the model.
1122
+ */
1123
+ toolChoice?:
1124
+ | ListAgentsToolChoiceAgents2
1125
+ | ListAgentsToolChoiceAgents1
1126
+ | undefined;
1127
+ /**
1128
+ * Whether to enable parallel function calling during tool use.
1129
+ */
1130
+ parallelToolCalls?: boolean | undefined;
1131
+ /**
1132
+ * 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"].
1133
+ */
1134
+ modalities?:
1135
+ | Array<ListAgentsFallbackModelConfigurationModalities>
1136
+ | null
1137
+ | undefined;
1138
+ /**
1139
+ * A list of guardrails to apply to the request.
1140
+ */
1141
+ guardrails?:
1142
+ | Array<ListAgentsFallbackModelConfigurationGuardrails>
1143
+ | undefined;
1144
+ /**
1145
+ * 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.
1146
+ */
1147
+ plugins?:
1148
+ | Array<
1149
+ | components.PIIRedactionPluginEn
1150
+ | components.PIIRedactionPluginNl
1151
+ | components.PIIRedactionPluginAuto
1152
+ >
1153
+ | undefined;
1154
+ /**
1155
+ * Array of fallback models to use if primary model fails
1156
+ */
1157
+ fallbacks?: Array<ListAgentsFallbackModelConfigurationFallbacks> | undefined;
1158
+ /**
1159
+ * Cache configuration for the request.
1160
+ */
1161
+ cache?: ListAgentsFallbackModelConfigurationCache | undefined;
1162
+ /**
1163
+ * Load balancer configuration for the request.
1164
+ */
1165
+ loadBalancer?: ListAgentsLoadBalancerAgents1 | undefined;
1166
+ /**
1167
+ * 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.
1168
+ */
1169
+ timeout?: ListAgentsFallbackModelConfigurationTimeout | undefined;
1170
+ /**
1171
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
1172
+ */
1173
+ cacheControl?: ListAgentsFallbackModelConfigurationCacheControl | undefined;
1174
+ /**
1175
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
1176
+ */
1177
+ promptCacheKey?: string | undefined;
1178
+ };
1179
+
1180
+ /**
1181
+ * Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
1182
+ */
1183
+ export type ListAgentsFallbackModelConfigurationRetry = {
1184
+ /**
1185
+ * Number of retry attempts (1-5)
1186
+ */
1187
+ count: number;
1188
+ /**
1189
+ * HTTP status codes that trigger retry logic
1190
+ */
1191
+ onCodes?: Array<number> | undefined;
1192
+ };
1193
+
1194
+ /**
1195
+ * Fallback model configuration with optional parameters and retry settings.
1196
+ */
1197
+ export type ListAgentsFallbackModelConfiguration2 = {
1198
+ /**
1199
+ * A fallback model ID string. Must support tool calling.
1200
+ */
1201
+ id: string;
1202
+ /**
1203
+ * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
1204
+ */
1205
+ parameters?: ListAgentsFallbackModelConfigurationParameters | undefined;
1206
+ /**
1207
+ * Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
1208
+ */
1209
+ retry?: ListAgentsFallbackModelConfigurationRetry | undefined;
1210
+ };
1211
+
1212
+ /**
1213
+ * Fallback model for automatic failover when primary model request fails. Supports optional parameter overrides. Can be a simple model ID string or a configuration object with model-specific parameters. Fallbacks are tried in order.
1214
+ */
1215
+ export type ListAgentsFallbackModelConfiguration =
1216
+ | ListAgentsFallbackModelConfiguration2
1217
+ | string;
1218
+
1219
+ export type ListAgentsModel = {
1220
+ /**
1221
+ * The database ID of the primary model
1222
+ */
1223
+ id: string;
1224
+ /**
1225
+ * Optional integration ID for custom model configurations
1226
+ */
1227
+ integrationId?: string | null | undefined;
1228
+ /**
1229
+ * Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
1230
+ */
1231
+ parameters?: ListAgentsParameters | undefined;
1232
+ /**
1233
+ * Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
1234
+ */
1235
+ retry?: ListAgentsRetry | undefined;
1236
+ /**
1237
+ * Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
1238
+ */
1239
+ fallbackModels?:
1240
+ | Array<ListAgentsFallbackModelConfiguration2 | string>
1241
+ | null
1242
+ | undefined;
1243
+ };
1244
+
1245
+ export type ListAgentsData = {
1246
+ id: string;
1247
+ /**
1248
+ * Unique identifier for the agent within the workspace
1249
+ */
1250
+ key: string;
1251
+ displayName?: string | undefined;
1252
+ createdById?: string | null | undefined;
1253
+ updatedById?: string | null | undefined;
1254
+ created?: string | undefined;
1255
+ updated?: string | undefined;
1256
+ /**
1257
+ * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1258
+ */
1259
+ status: ListAgentsStatus;
1260
+ /**
1261
+ * Current semantic version of the agent manifest.
1262
+ */
1263
+ version?: string | undefined;
1264
+ /**
1265
+ * Entity storage path.
1266
+ *
1267
+ * @remarks
1268
+ *
1269
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
1270
+ *
1271
+ * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
1272
+ */
1273
+ path: string;
1274
+ /**
1275
+ * Array of memory store identifiers. Accepts both memory store IDs and keys.
1276
+ */
1277
+ memoryStores?: Array<string> | undefined;
1278
+ /**
1279
+ * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
1280
+ */
1281
+ teamOfAgents?: Array<ListAgentsTeamOfAgents> | undefined;
1282
+ /**
1283
+ * List of skills that the agent can utilize. This field allows you to specify which skills the agent has access to, enabling more complex and dynamic behavior.
1284
+ */
1285
+ skills?: Array<string> | undefined;
1286
+ metrics?: ListAgentsMetrics | undefined;
1287
+ /**
1288
+ * Extracted variables from agent instructions
1289
+ */
1290
+ variables?: { [k: string]: any } | undefined;
1291
+ /**
1292
+ * Agent knowledge bases reference
1293
+ */
1294
+ knowledgeBases?: Array<ListAgentsKnowledgeBases> | undefined;
1295
+ source?: ListAgentsSource | undefined;
1296
+ engine: ListAgentsEngine;
1297
+ /**
1298
+ * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
1299
+ */
1300
+ type: ListAgentsType;
1301
+ role: string;
1302
+ description: string;
1303
+ systemPrompt?: string | null | undefined;
1304
+ instructions: string;
1305
+ settings?: ListAgentsSettings | undefined;
1306
+ model: ListAgentsModel;
1307
+ };
1308
+
1309
+ /**
1310
+ * Successfully retrieved the list of agents. Returns a paginated response containing agent manifests with complete configurations, including primary and fallback models, tools, knowledge bases, and execution settings.
1311
+ */
1312
+ export type ListAgentsResponseBody = {
1313
+ object: ListAgentsObject;
1314
+ data: Array<ListAgentsData>;
1315
+ hasMore: boolean;
1316
+ };
1317
+
1318
+ /** @internal */
1319
+ export const QueryParamType$outboundSchema: z.ZodNativeEnum<
1320
+ typeof QueryParamType
1321
+ > = z.nativeEnum(QueryParamType);
1322
+
1323
+ /** @internal */
1324
+ export type ListAgentsRequest$Outbound = {
1325
+ limit?: number | undefined;
1326
+ starting_after?: string | undefined;
1327
+ ending_before?: string | undefined;
1328
+ type?: string | undefined;
1329
+ };
1330
+
1331
+ /** @internal */
1332
+ export const ListAgentsRequest$outboundSchema: z.ZodType<
1333
+ ListAgentsRequest$Outbound,
1334
+ z.ZodTypeDef,
1335
+ ListAgentsRequest
1336
+ > = z.object({
1337
+ limit: z.number().optional(),
1338
+ startingAfter: z.string().optional(),
1339
+ endingBefore: z.string().optional(),
1340
+ type: QueryParamType$outboundSchema.optional(),
1341
+ }).transform((v) => {
1342
+ return remap$(v, {
1343
+ startingAfter: "starting_after",
1344
+ endingBefore: "ending_before",
1345
+ });
1346
+ });
1347
+
1348
+ export function listAgentsRequestToJSON(
1349
+ listAgentsRequest: ListAgentsRequest,
1350
+ ): string {
1351
+ return JSON.stringify(
1352
+ ListAgentsRequest$outboundSchema.parse(listAgentsRequest),
1353
+ );
1354
+ }
1355
+
1356
+ /** @internal */
1357
+ export const ListAgentsObject$inboundSchema: z.ZodNativeEnum<
1358
+ typeof ListAgentsObject
1359
+ > = z.nativeEnum(ListAgentsObject);
1360
+
1361
+ /** @internal */
1362
+ export const ListAgentsStatus$inboundSchema: z.ZodNativeEnum<
1363
+ typeof ListAgentsStatus
1364
+ > = z.nativeEnum(ListAgentsStatus);
1365
+
1366
+ /** @internal */
1367
+ export const ListAgentsTeamOfAgents$inboundSchema: z.ZodType<
1368
+ ListAgentsTeamOfAgents,
1369
+ z.ZodTypeDef,
1370
+ unknown
1371
+ > = z.object({
1372
+ key: z.string(),
1373
+ role: z.string().optional(),
1374
+ });
1375
+
1376
+ export function listAgentsTeamOfAgentsFromJSON(
1377
+ jsonString: string,
1378
+ ): SafeParseResult<ListAgentsTeamOfAgents, SDKValidationError> {
1379
+ return safeParse(
1380
+ jsonString,
1381
+ (x) => ListAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
1382
+ `Failed to parse 'ListAgentsTeamOfAgents' from JSON`,
1383
+ );
1384
+ }
1385
+
1386
+ /** @internal */
1387
+ export const ListAgentsMetrics$inboundSchema: z.ZodType<
1388
+ ListAgentsMetrics,
1389
+ z.ZodTypeDef,
1390
+ unknown
1391
+ > = z.object({
1392
+ total_cost: z.number().default(0),
1393
+ }).transform((v) => {
1394
+ return remap$(v, {
1395
+ "total_cost": "totalCost",
1396
+ });
1397
+ });
1398
+
1399
+ export function listAgentsMetricsFromJSON(
1400
+ jsonString: string,
1401
+ ): SafeParseResult<ListAgentsMetrics, SDKValidationError> {
1402
+ return safeParse(
1403
+ jsonString,
1404
+ (x) => ListAgentsMetrics$inboundSchema.parse(JSON.parse(x)),
1405
+ `Failed to parse 'ListAgentsMetrics' from JSON`,
1406
+ );
1407
+ }
1408
+
1409
+ /** @internal */
1410
+ export const ListAgentsKnowledgeBases$inboundSchema: z.ZodType<
1411
+ ListAgentsKnowledgeBases,
1412
+ z.ZodTypeDef,
1413
+ unknown
1414
+ > = z.object({
1415
+ knowledge_id: z.string(),
1416
+ }).transform((v) => {
1417
+ return remap$(v, {
1418
+ "knowledge_id": "knowledgeId",
1419
+ });
1420
+ });
1421
+
1422
+ export function listAgentsKnowledgeBasesFromJSON(
1423
+ jsonString: string,
1424
+ ): SafeParseResult<ListAgentsKnowledgeBases, SDKValidationError> {
1425
+ return safeParse(
1426
+ jsonString,
1427
+ (x) => ListAgentsKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
1428
+ `Failed to parse 'ListAgentsKnowledgeBases' from JSON`,
1429
+ );
1430
+ }
1431
+
1432
+ /** @internal */
1433
+ export const ListAgentsSource$inboundSchema: z.ZodNativeEnum<
1434
+ typeof ListAgentsSource
1435
+ > = z.nativeEnum(ListAgentsSource);
1436
+
1437
+ /** @internal */
1438
+ export const ListAgentsEngine$inboundSchema: z.ZodNativeEnum<
1439
+ typeof ListAgentsEngine
1440
+ > = z.nativeEnum(ListAgentsEngine);
1441
+
1442
+ /** @internal */
1443
+ export const ListAgentsType$inboundSchema: z.ZodNativeEnum<
1444
+ typeof ListAgentsType
1445
+ > = z.nativeEnum(ListAgentsType);
1446
+
1447
+ /** @internal */
1448
+ export const ListAgentsToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
1449
+ typeof ListAgentsToolApprovalRequired
1450
+ > = z.nativeEnum(ListAgentsToolApprovalRequired);
1451
+
1452
+ /** @internal */
1453
+ export const ListAgentsConditions$inboundSchema: z.ZodType<
1454
+ ListAgentsConditions,
1455
+ z.ZodTypeDef,
1456
+ unknown
1457
+ > = z.object({
1458
+ condition: z.string(),
1459
+ operator: z.string(),
1460
+ value: z.string(),
1461
+ });
1462
+
1463
+ export function listAgentsConditionsFromJSON(
1464
+ jsonString: string,
1465
+ ): SafeParseResult<ListAgentsConditions, SDKValidationError> {
1466
+ return safeParse(
1467
+ jsonString,
1468
+ (x) => ListAgentsConditions$inboundSchema.parse(JSON.parse(x)),
1469
+ `Failed to parse 'ListAgentsConditions' from JSON`,
1470
+ );
1471
+ }
1472
+
1473
+ /** @internal */
1474
+ export const ListAgentsTools$inboundSchema: z.ZodType<
1475
+ ListAgentsTools,
1476
+ z.ZodTypeDef,
1477
+ unknown
1478
+ > = z.object({
1479
+ id: z.string(),
1480
+ key: z.string().optional(),
1481
+ action_type: z.string(),
1482
+ display_name: z.string().optional(),
1483
+ description: z.string().optional(),
1484
+ configuration: z.record(z.any()).optional(),
1485
+ requires_approval: z.boolean().default(false),
1486
+ tool_id: z.string().optional(),
1487
+ conditions: z.array(z.lazy(() => ListAgentsConditions$inboundSchema))
1488
+ .optional(),
1489
+ timeout: z.number().optional(),
1490
+ }).transform((v) => {
1491
+ return remap$(v, {
1492
+ "action_type": "actionType",
1493
+ "display_name": "displayName",
1494
+ "requires_approval": "requiresApproval",
1495
+ "tool_id": "toolId",
1496
+ });
1497
+ });
1498
+
1499
+ export function listAgentsToolsFromJSON(
1500
+ jsonString: string,
1501
+ ): SafeParseResult<ListAgentsTools, SDKValidationError> {
1502
+ return safeParse(
1503
+ jsonString,
1504
+ (x) => ListAgentsTools$inboundSchema.parse(JSON.parse(x)),
1505
+ `Failed to parse 'ListAgentsTools' from JSON`,
1506
+ );
1507
+ }
1508
+
1509
+ /** @internal */
1510
+ export const ListAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
1511
+ typeof ListAgentsExecuteOn
1512
+ > = z.nativeEnum(ListAgentsExecuteOn);
1513
+
1514
+ /** @internal */
1515
+ export const ListAgentsEvaluators$inboundSchema: z.ZodType<
1516
+ ListAgentsEvaluators,
1517
+ z.ZodTypeDef,
1518
+ unknown
1519
+ > = z.object({
1520
+ id: z.string(),
1521
+ sample_rate: z.number().default(50),
1522
+ execute_on: ListAgentsExecuteOn$inboundSchema,
1523
+ }).transform((v) => {
1524
+ return remap$(v, {
1525
+ "sample_rate": "sampleRate",
1526
+ "execute_on": "executeOn",
1527
+ });
1528
+ });
1529
+
1530
+ export function listAgentsEvaluatorsFromJSON(
1531
+ jsonString: string,
1532
+ ): SafeParseResult<ListAgentsEvaluators, SDKValidationError> {
1533
+ return safeParse(
1534
+ jsonString,
1535
+ (x) => ListAgentsEvaluators$inboundSchema.parse(JSON.parse(x)),
1536
+ `Failed to parse 'ListAgentsEvaluators' from JSON`,
1537
+ );
1538
+ }
1539
+
1540
+ /** @internal */
1541
+ export const ListAgentsAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
1542
+ typeof ListAgentsAgentsExecuteOn
1543
+ > = z.nativeEnum(ListAgentsAgentsExecuteOn);
1544
+
1545
+ /** @internal */
1546
+ export const ListAgentsGuardrails$inboundSchema: z.ZodType<
1547
+ ListAgentsGuardrails,
1548
+ z.ZodTypeDef,
1549
+ unknown
1550
+ > = z.object({
1551
+ id: z.string(),
1552
+ sample_rate: z.number().default(50),
1553
+ execute_on: ListAgentsAgentsExecuteOn$inboundSchema,
1554
+ }).transform((v) => {
1555
+ return remap$(v, {
1556
+ "sample_rate": "sampleRate",
1557
+ "execute_on": "executeOn",
1558
+ });
1559
+ });
1560
+
1561
+ export function listAgentsGuardrailsFromJSON(
1562
+ jsonString: string,
1563
+ ): SafeParseResult<ListAgentsGuardrails, SDKValidationError> {
1564
+ return safeParse(
1565
+ jsonString,
1566
+ (x) => ListAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
1567
+ `Failed to parse 'ListAgentsGuardrails' from JSON`,
1568
+ );
1569
+ }
1570
+
1571
+ /** @internal */
1572
+ export const ListAgentsSettings$inboundSchema: z.ZodType<
1573
+ ListAgentsSettings,
1574
+ z.ZodTypeDef,
1575
+ unknown
1576
+ > = z.object({
1577
+ max_iterations: z.number().int().default(100),
1578
+ max_execution_time: z.number().int().default(600),
1579
+ max_cost: z.number().default(0),
1580
+ tool_approval_required: ListAgentsToolApprovalRequired$inboundSchema.default(
1581
+ "respect_tool",
1582
+ ),
1583
+ chat_exposed: z.boolean().optional(),
1584
+ tools: z.array(z.lazy(() => ListAgentsTools$inboundSchema)).optional(),
1585
+ evaluators: z.array(z.lazy(() => ListAgentsEvaluators$inboundSchema))
1586
+ .optional(),
1587
+ guardrails: z.array(z.lazy(() => ListAgentsGuardrails$inboundSchema))
1588
+ .optional(),
1589
+ }).transform((v) => {
1590
+ return remap$(v, {
1591
+ "max_iterations": "maxIterations",
1592
+ "max_execution_time": "maxExecutionTime",
1593
+ "max_cost": "maxCost",
1594
+ "tool_approval_required": "toolApprovalRequired",
1595
+ "chat_exposed": "chatExposed",
1596
+ });
1597
+ });
1598
+
1599
+ export function listAgentsSettingsFromJSON(
1600
+ jsonString: string,
1601
+ ): SafeParseResult<ListAgentsSettings, SDKValidationError> {
1602
+ return safeParse(
1603
+ jsonString,
1604
+ (x) => ListAgentsSettings$inboundSchema.parse(JSON.parse(x)),
1605
+ `Failed to parse 'ListAgentsSettings' from JSON`,
1606
+ );
1607
+ }
1608
+
1609
+ /** @internal */
1610
+ export const ListAgentsResponseFormatJsonSchema$inboundSchema: z.ZodType<
1611
+ ListAgentsResponseFormatJsonSchema,
1612
+ z.ZodTypeDef,
1613
+ unknown
1614
+ > = z.object({
1615
+ description: z.string().optional(),
1616
+ name: z.string(),
1617
+ schema: z.any().optional(),
1618
+ strict: z.boolean().default(false),
1619
+ });
1620
+
1621
+ export function listAgentsResponseFormatJsonSchemaFromJSON(
1622
+ jsonString: string,
1623
+ ): SafeParseResult<ListAgentsResponseFormatJsonSchema, SDKValidationError> {
1624
+ return safeParse(
1625
+ jsonString,
1626
+ (x) =>
1627
+ ListAgentsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
1628
+ `Failed to parse 'ListAgentsResponseFormatJsonSchema' from JSON`,
1629
+ );
1630
+ }
1631
+
1632
+ /** @internal */
1633
+ export const ListAgentsResponseFormatAgentsJSONSchema$inboundSchema: z.ZodType<
1634
+ ListAgentsResponseFormatAgentsJSONSchema,
1635
+ z.ZodTypeDef,
1636
+ unknown
1637
+ > = z.object({
1638
+ type: z.literal("json_schema"),
1639
+ json_schema: z.lazy(() => ListAgentsResponseFormatJsonSchema$inboundSchema),
1640
+ }).transform((v) => {
1641
+ return remap$(v, {
1642
+ "json_schema": "jsonSchema",
1643
+ });
1644
+ });
1645
+
1646
+ export function listAgentsResponseFormatAgentsJSONSchemaFromJSON(
1647
+ jsonString: string,
1648
+ ): SafeParseResult<
1649
+ ListAgentsResponseFormatAgentsJSONSchema,
1650
+ SDKValidationError
1651
+ > {
1652
+ return safeParse(
1653
+ jsonString,
1654
+ (x) =>
1655
+ ListAgentsResponseFormatAgentsJSONSchema$inboundSchema.parse(
1656
+ JSON.parse(x),
1657
+ ),
1658
+ `Failed to parse 'ListAgentsResponseFormatAgentsJSONSchema' from JSON`,
1659
+ );
1660
+ }
1661
+
1662
+ /** @internal */
1663
+ export const ListAgentsResponseFormatJSONObject$inboundSchema: z.ZodType<
1664
+ ListAgentsResponseFormatJSONObject,
1665
+ z.ZodTypeDef,
1666
+ unknown
1667
+ > = z.object({
1668
+ type: z.literal("json_object"),
1669
+ });
1670
+
1671
+ export function listAgentsResponseFormatJSONObjectFromJSON(
1672
+ jsonString: string,
1673
+ ): SafeParseResult<ListAgentsResponseFormatJSONObject, SDKValidationError> {
1674
+ return safeParse(
1675
+ jsonString,
1676
+ (x) =>
1677
+ ListAgentsResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)),
1678
+ `Failed to parse 'ListAgentsResponseFormatJSONObject' from JSON`,
1679
+ );
1680
+ }
1681
+
1682
+ /** @internal */
1683
+ export const ListAgentsResponseFormatText$inboundSchema: z.ZodType<
1684
+ ListAgentsResponseFormatText,
1685
+ z.ZodTypeDef,
1686
+ unknown
1687
+ > = z.object({
1688
+ type: z.literal("text"),
1689
+ });
1690
+
1691
+ export function listAgentsResponseFormatTextFromJSON(
1692
+ jsonString: string,
1693
+ ): SafeParseResult<ListAgentsResponseFormatText, SDKValidationError> {
1694
+ return safeParse(
1695
+ jsonString,
1696
+ (x) => ListAgentsResponseFormatText$inboundSchema.parse(JSON.parse(x)),
1697
+ `Failed to parse 'ListAgentsResponseFormatText' from JSON`,
1698
+ );
1699
+ }
1700
+
1701
+ /** @internal */
1702
+ export const ListAgentsResponseFormat$inboundSchema: z.ZodType<
1703
+ ListAgentsResponseFormat,
1704
+ z.ZodTypeDef,
1705
+ unknown
1706
+ > = z.union([
1707
+ z.lazy(() => ListAgentsResponseFormatText$inboundSchema),
1708
+ z.lazy(() => ListAgentsResponseFormatJSONObject$inboundSchema),
1709
+ z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
1710
+ ]);
1711
+
1712
+ export function listAgentsResponseFormatFromJSON(
1713
+ jsonString: string,
1714
+ ): SafeParseResult<ListAgentsResponseFormat, SDKValidationError> {
1715
+ return safeParse(
1716
+ jsonString,
1717
+ (x) => ListAgentsResponseFormat$inboundSchema.parse(JSON.parse(x)),
1718
+ `Failed to parse 'ListAgentsResponseFormat' from JSON`,
1719
+ );
1720
+ }
1721
+
1722
+ /** @internal */
1723
+ export const ListAgentsReasoningEffort$inboundSchema: z.ZodNativeEnum<
1724
+ typeof ListAgentsReasoningEffort
1725
+ > = z.nativeEnum(ListAgentsReasoningEffort);
1726
+
1727
+ /** @internal */
1728
+ export const ListAgentsStop$inboundSchema: z.ZodType<
1729
+ ListAgentsStop,
1730
+ z.ZodTypeDef,
1731
+ unknown
1732
+ > = z.union([z.string(), z.array(z.string())]);
1733
+
1734
+ export function listAgentsStopFromJSON(
1735
+ jsonString: string,
1736
+ ): SafeParseResult<ListAgentsStop, SDKValidationError> {
1737
+ return safeParse(
1738
+ jsonString,
1739
+ (x) => ListAgentsStop$inboundSchema.parse(JSON.parse(x)),
1740
+ `Failed to parse 'ListAgentsStop' from JSON`,
1741
+ );
1742
+ }
1743
+
1744
+ /** @internal */
1745
+ export const ListAgentsThinking$inboundSchema: z.ZodType<
1746
+ ListAgentsThinking,
1747
+ z.ZodTypeDef,
1748
+ unknown
1749
+ > = z.union([
1750
+ components.ThinkingConfigDisabledSchema$inboundSchema,
1751
+ components.ThinkingConfigEnabledSchema$inboundSchema,
1752
+ components.ThinkingConfigAdaptiveSchema$inboundSchema,
1753
+ ]);
1754
+
1755
+ export function listAgentsThinkingFromJSON(
1756
+ jsonString: string,
1757
+ ): SafeParseResult<ListAgentsThinking, SDKValidationError> {
1758
+ return safeParse(
1759
+ jsonString,
1760
+ (x) => ListAgentsThinking$inboundSchema.parse(JSON.parse(x)),
1761
+ `Failed to parse 'ListAgentsThinking' from JSON`,
1762
+ );
1763
+ }
1764
+
1765
+ /** @internal */
1766
+ export const ListAgentsToolChoiceType$inboundSchema: z.ZodNativeEnum<
1767
+ typeof ListAgentsToolChoiceType
1768
+ > = z.nativeEnum(ListAgentsToolChoiceType);
1769
+
1770
+ /** @internal */
1771
+ export const ListAgentsToolChoiceFunction$inboundSchema: z.ZodType<
1772
+ ListAgentsToolChoiceFunction,
1773
+ z.ZodTypeDef,
1774
+ unknown
1775
+ > = z.object({
1776
+ name: z.string(),
1777
+ });
1778
+
1779
+ export function listAgentsToolChoiceFunctionFromJSON(
1780
+ jsonString: string,
1781
+ ): SafeParseResult<ListAgentsToolChoiceFunction, SDKValidationError> {
1782
+ return safeParse(
1783
+ jsonString,
1784
+ (x) => ListAgentsToolChoiceFunction$inboundSchema.parse(JSON.parse(x)),
1785
+ `Failed to parse 'ListAgentsToolChoiceFunction' from JSON`,
1786
+ );
1787
+ }
1788
+
1789
+ /** @internal */
1790
+ export const ListAgentsToolChoice2$inboundSchema: z.ZodType<
1791
+ ListAgentsToolChoice2,
1792
+ z.ZodTypeDef,
1793
+ unknown
1794
+ > = z.object({
1795
+ type: ListAgentsToolChoiceType$inboundSchema.optional(),
1796
+ function: z.lazy(() => ListAgentsToolChoiceFunction$inboundSchema),
1797
+ });
1798
+
1799
+ export function listAgentsToolChoice2FromJSON(
1800
+ jsonString: string,
1801
+ ): SafeParseResult<ListAgentsToolChoice2, SDKValidationError> {
1802
+ return safeParse(
1803
+ jsonString,
1804
+ (x) => ListAgentsToolChoice2$inboundSchema.parse(JSON.parse(x)),
1805
+ `Failed to parse 'ListAgentsToolChoice2' from JSON`,
1806
+ );
1807
+ }
1808
+
1809
+ /** @internal */
1810
+ export const ListAgentsToolChoice1$inboundSchema: z.ZodNativeEnum<
1811
+ typeof ListAgentsToolChoice1
1812
+ > = z.nativeEnum(ListAgentsToolChoice1);
1813
+
1814
+ /** @internal */
1815
+ export const ListAgentsToolChoice$inboundSchema: z.ZodType<
1816
+ ListAgentsToolChoice,
1817
+ z.ZodTypeDef,
1818
+ unknown
1819
+ > = z.union([
1820
+ z.lazy(() => ListAgentsToolChoice2$inboundSchema),
1821
+ ListAgentsToolChoice1$inboundSchema,
1822
+ ]);
1823
+
1824
+ export function listAgentsToolChoiceFromJSON(
1825
+ jsonString: string,
1826
+ ): SafeParseResult<ListAgentsToolChoice, SDKValidationError> {
1827
+ return safeParse(
1828
+ jsonString,
1829
+ (x) => ListAgentsToolChoice$inboundSchema.parse(JSON.parse(x)),
1830
+ `Failed to parse 'ListAgentsToolChoice' from JSON`,
1831
+ );
1832
+ }
1833
+
1834
+ /** @internal */
1835
+ export const ListAgentsModalities$inboundSchema: z.ZodNativeEnum<
1836
+ typeof ListAgentsModalities
1837
+ > = z.nativeEnum(ListAgentsModalities);
1838
+
1839
+ /** @internal */
1840
+ export const ListAgentsId1$inboundSchema: z.ZodNativeEnum<
1841
+ typeof ListAgentsId1
1842
+ > = z.nativeEnum(ListAgentsId1);
1843
+
1844
+ /** @internal */
1845
+ export const ListAgentsId$inboundSchema: z.ZodType<
1846
+ ListAgentsId,
1847
+ z.ZodTypeDef,
1848
+ unknown
1849
+ > = z.union([ListAgentsId1$inboundSchema, z.string()]);
1850
+
1851
+ export function listAgentsIdFromJSON(
1852
+ jsonString: string,
1853
+ ): SafeParseResult<ListAgentsId, SDKValidationError> {
1854
+ return safeParse(
1855
+ jsonString,
1856
+ (x) => ListAgentsId$inboundSchema.parse(JSON.parse(x)),
1857
+ `Failed to parse 'ListAgentsId' from JSON`,
1858
+ );
1859
+ }
1860
+
1861
+ /** @internal */
1862
+ export const ListAgentsAgentsResponseExecuteOn$inboundSchema: z.ZodNativeEnum<
1863
+ typeof ListAgentsAgentsResponseExecuteOn
1864
+ > = z.nativeEnum(ListAgentsAgentsResponseExecuteOn);
1865
+
1866
+ /** @internal */
1867
+ export const ListAgentsAgentsGuardrails$inboundSchema: z.ZodType<
1868
+ ListAgentsAgentsGuardrails,
1869
+ z.ZodTypeDef,
1870
+ unknown
1871
+ > = z.object({
1872
+ id: z.union([ListAgentsId1$inboundSchema, z.string()]),
1873
+ execute_on: ListAgentsAgentsResponseExecuteOn$inboundSchema,
1874
+ }).transform((v) => {
1875
+ return remap$(v, {
1876
+ "execute_on": "executeOn",
1877
+ });
1878
+ });
1879
+
1880
+ export function listAgentsAgentsGuardrailsFromJSON(
1881
+ jsonString: string,
1882
+ ): SafeParseResult<ListAgentsAgentsGuardrails, SDKValidationError> {
1883
+ return safeParse(
1884
+ jsonString,
1885
+ (x) => ListAgentsAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
1886
+ `Failed to parse 'ListAgentsAgentsGuardrails' from JSON`,
1887
+ );
1888
+ }
1889
+
1890
+ /** @internal */
1891
+ export const ListAgentsPlugins$inboundSchema: z.ZodType<
1892
+ ListAgentsPlugins,
1893
+ z.ZodTypeDef,
1894
+ unknown
1895
+ > = z.union([
1896
+ components.PIIRedactionPluginEn$inboundSchema,
1897
+ components.PIIRedactionPluginNl$inboundSchema,
1898
+ components.PIIRedactionPluginAuto$inboundSchema,
1899
+ ]);
1900
+
1901
+ export function listAgentsPluginsFromJSON(
1902
+ jsonString: string,
1903
+ ): SafeParseResult<ListAgentsPlugins, SDKValidationError> {
1904
+ return safeParse(
1905
+ jsonString,
1906
+ (x) => ListAgentsPlugins$inboundSchema.parse(JSON.parse(x)),
1907
+ `Failed to parse 'ListAgentsPlugins' from JSON`,
1908
+ );
1909
+ }
1910
+
1911
+ /** @internal */
1912
+ export const ListAgentsFallbacks$inboundSchema: z.ZodType<
1913
+ ListAgentsFallbacks,
1914
+ z.ZodTypeDef,
1915
+ unknown
1916
+ > = z.object({
1917
+ model: z.string(),
1918
+ });
1919
+
1920
+ export function listAgentsFallbacksFromJSON(
1921
+ jsonString: string,
1922
+ ): SafeParseResult<ListAgentsFallbacks, SDKValidationError> {
1923
+ return safeParse(
1924
+ jsonString,
1925
+ (x) => ListAgentsFallbacks$inboundSchema.parse(JSON.parse(x)),
1926
+ `Failed to parse 'ListAgentsFallbacks' from JSON`,
1927
+ );
1928
+ }
1929
+
1930
+ /** @internal */
1931
+ export const ListAgentsAgentsType$inboundSchema: z.ZodNativeEnum<
1932
+ typeof ListAgentsAgentsType
1933
+ > = z.nativeEnum(ListAgentsAgentsType);
1934
+
1935
+ /** @internal */
1936
+ export const ListAgentsCache$inboundSchema: z.ZodType<
1937
+ ListAgentsCache,
1938
+ z.ZodTypeDef,
1939
+ unknown
1940
+ > = z.object({
1941
+ ttl: z.number().default(1800),
1942
+ type: ListAgentsAgentsType$inboundSchema,
1943
+ });
1944
+
1945
+ export function listAgentsCacheFromJSON(
1946
+ jsonString: string,
1947
+ ): SafeParseResult<ListAgentsCache, SDKValidationError> {
1948
+ return safeParse(
1949
+ jsonString,
1950
+ (x) => ListAgentsCache$inboundSchema.parse(JSON.parse(x)),
1951
+ `Failed to parse 'ListAgentsCache' from JSON`,
1952
+ );
1953
+ }
1954
+
1955
+ /** @internal */
1956
+ export const ListAgentsLoadBalancerType$inboundSchema: z.ZodNativeEnum<
1957
+ typeof ListAgentsLoadBalancerType
1958
+ > = z.nativeEnum(ListAgentsLoadBalancerType);
1959
+
1960
+ /** @internal */
1961
+ export const ListAgentsLoadBalancerModels$inboundSchema: z.ZodType<
1962
+ ListAgentsLoadBalancerModels,
1963
+ z.ZodTypeDef,
1964
+ unknown
1965
+ > = z.object({
1966
+ model: z.string(),
1967
+ weight: z.number().default(0.5),
1968
+ });
1969
+
1970
+ export function listAgentsLoadBalancerModelsFromJSON(
1971
+ jsonString: string,
1972
+ ): SafeParseResult<ListAgentsLoadBalancerModels, SDKValidationError> {
1973
+ return safeParse(
1974
+ jsonString,
1975
+ (x) => ListAgentsLoadBalancerModels$inboundSchema.parse(JSON.parse(x)),
1976
+ `Failed to parse 'ListAgentsLoadBalancerModels' from JSON`,
1977
+ );
1978
+ }
1979
+
1980
+ /** @internal */
1981
+ export const ListAgentsLoadBalancer1$inboundSchema: z.ZodType<
1982
+ ListAgentsLoadBalancer1,
1983
+ z.ZodTypeDef,
1984
+ unknown
1985
+ > = z.object({
1986
+ type: ListAgentsLoadBalancerType$inboundSchema,
1987
+ models: z.array(z.lazy(() => ListAgentsLoadBalancerModels$inboundSchema)),
1988
+ });
1989
+
1990
+ export function listAgentsLoadBalancer1FromJSON(
1991
+ jsonString: string,
1992
+ ): SafeParseResult<ListAgentsLoadBalancer1, SDKValidationError> {
1993
+ return safeParse(
1994
+ jsonString,
1995
+ (x) => ListAgentsLoadBalancer1$inboundSchema.parse(JSON.parse(x)),
1996
+ `Failed to parse 'ListAgentsLoadBalancer1' from JSON`,
1997
+ );
1998
+ }
1999
+
2000
+ /** @internal */
2001
+ export const ListAgentsLoadBalancer$inboundSchema: z.ZodType<
2002
+ ListAgentsLoadBalancer,
2003
+ z.ZodTypeDef,
2004
+ unknown
2005
+ > = z.lazy(() => ListAgentsLoadBalancer1$inboundSchema);
2006
+
2007
+ export function listAgentsLoadBalancerFromJSON(
2008
+ jsonString: string,
2009
+ ): SafeParseResult<ListAgentsLoadBalancer, SDKValidationError> {
2010
+ return safeParse(
2011
+ jsonString,
2012
+ (x) => ListAgentsLoadBalancer$inboundSchema.parse(JSON.parse(x)),
2013
+ `Failed to parse 'ListAgentsLoadBalancer' from JSON`,
2014
+ );
2015
+ }
2016
+
2017
+ /** @internal */
2018
+ export const ListAgentsTimeout$inboundSchema: z.ZodType<
2019
+ ListAgentsTimeout,
2020
+ z.ZodTypeDef,
2021
+ unknown
2022
+ > = z.object({
2023
+ call_timeout: z.number(),
2024
+ }).transform((v) => {
2025
+ return remap$(v, {
2026
+ "call_timeout": "callTimeout",
2027
+ });
2028
+ });
2029
+
2030
+ export function listAgentsTimeoutFromJSON(
2031
+ jsonString: string,
2032
+ ): SafeParseResult<ListAgentsTimeout, SDKValidationError> {
2033
+ return safeParse(
2034
+ jsonString,
2035
+ (x) => ListAgentsTimeout$inboundSchema.parse(JSON.parse(x)),
2036
+ `Failed to parse 'ListAgentsTimeout' from JSON`,
2037
+ );
2038
+ }
2039
+
2040
+ /** @internal */
2041
+ export const ListAgentsAgentsResponseType$inboundSchema: z.ZodNativeEnum<
2042
+ typeof ListAgentsAgentsResponseType
2043
+ > = z.nativeEnum(ListAgentsAgentsResponseType);
2044
+
2045
+ /** @internal */
2046
+ export const ListAgentsTtl$inboundSchema: z.ZodNativeEnum<
2047
+ typeof ListAgentsTtl
2048
+ > = z.nativeEnum(ListAgentsTtl);
2049
+
2050
+ /** @internal */
2051
+ export const ListAgentsCacheControl$inboundSchema: z.ZodType<
2052
+ ListAgentsCacheControl,
2053
+ z.ZodTypeDef,
2054
+ unknown
2055
+ > = z.object({
2056
+ type: ListAgentsAgentsResponseType$inboundSchema,
2057
+ ttl: ListAgentsTtl$inboundSchema.default("5m"),
2058
+ });
2059
+
2060
+ export function listAgentsCacheControlFromJSON(
2061
+ jsonString: string,
2062
+ ): SafeParseResult<ListAgentsCacheControl, SDKValidationError> {
2063
+ return safeParse(
2064
+ jsonString,
2065
+ (x) => ListAgentsCacheControl$inboundSchema.parse(JSON.parse(x)),
2066
+ `Failed to parse 'ListAgentsCacheControl' from JSON`,
2067
+ );
2068
+ }
2069
+
2070
+ /** @internal */
2071
+ export const ListAgentsParameters$inboundSchema: z.ZodType<
2072
+ ListAgentsParameters,
2073
+ z.ZodTypeDef,
2074
+ unknown
2075
+ > = z.object({
2076
+ name: z.string().optional(),
2077
+ frequency_penalty: z.nullable(z.number()).optional(),
2078
+ max_tokens: z.nullable(z.number().int()).optional(),
2079
+ max_completion_tokens: z.nullable(z.number().int()).optional(),
2080
+ presence_penalty: z.nullable(z.number()).optional(),
2081
+ response_format: z.union([
2082
+ z.lazy(() => ListAgentsResponseFormatText$inboundSchema),
2083
+ z.lazy(() => ListAgentsResponseFormatJSONObject$inboundSchema),
2084
+ z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
2085
+ ]).optional(),
2086
+ reasoning_effort: ListAgentsReasoningEffort$inboundSchema.optional(),
2087
+ verbosity: z.string().optional(),
2088
+ seed: z.nullable(z.number()).optional(),
2089
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
2090
+ thinking: z.union([
2091
+ components.ThinkingConfigDisabledSchema$inboundSchema,
2092
+ components.ThinkingConfigEnabledSchema$inboundSchema,
2093
+ components.ThinkingConfigAdaptiveSchema$inboundSchema,
2094
+ ]).optional(),
2095
+ temperature: z.nullable(z.number()).optional(),
2096
+ top_p: z.nullable(z.number()).optional(),
2097
+ top_k: z.nullable(z.number()).optional(),
2098
+ tool_choice: z.union([
2099
+ z.lazy(() => ListAgentsToolChoice2$inboundSchema),
2100
+ ListAgentsToolChoice1$inboundSchema,
2101
+ ]).optional(),
2102
+ parallel_tool_calls: z.boolean().optional(),
2103
+ modalities: z.nullable(z.array(ListAgentsModalities$inboundSchema))
2104
+ .optional(),
2105
+ guardrails: z.array(z.lazy(() => ListAgentsAgentsGuardrails$inboundSchema))
2106
+ .optional(),
2107
+ plugins: z.array(
2108
+ z.union([
2109
+ components.PIIRedactionPluginEn$inboundSchema,
2110
+ components.PIIRedactionPluginNl$inboundSchema,
2111
+ components.PIIRedactionPluginAuto$inboundSchema,
2112
+ ]),
2113
+ ).optional(),
2114
+ fallbacks: z.array(z.lazy(() => ListAgentsFallbacks$inboundSchema))
2115
+ .optional(),
2116
+ cache: z.lazy(() => ListAgentsCache$inboundSchema).optional(),
2117
+ load_balancer: z.lazy(() => ListAgentsLoadBalancer1$inboundSchema).optional(),
2118
+ timeout: z.lazy(() => ListAgentsTimeout$inboundSchema).optional(),
2119
+ cache_control: z.lazy(() => ListAgentsCacheControl$inboundSchema).optional(),
2120
+ prompt_cache_key: z.string().optional(),
2121
+ }).transform((v) => {
2122
+ return remap$(v, {
2123
+ "frequency_penalty": "frequencyPenalty",
2124
+ "max_tokens": "maxTokens",
2125
+ "max_completion_tokens": "maxCompletionTokens",
2126
+ "presence_penalty": "presencePenalty",
2127
+ "response_format": "responseFormat",
2128
+ "reasoning_effort": "reasoningEffort",
2129
+ "top_p": "topP",
2130
+ "top_k": "topK",
2131
+ "tool_choice": "toolChoice",
2132
+ "parallel_tool_calls": "parallelToolCalls",
2133
+ "load_balancer": "loadBalancer",
2134
+ "cache_control": "cacheControl",
2135
+ "prompt_cache_key": "promptCacheKey",
2136
+ });
2137
+ });
2138
+
2139
+ export function listAgentsParametersFromJSON(
2140
+ jsonString: string,
2141
+ ): SafeParseResult<ListAgentsParameters, SDKValidationError> {
2142
+ return safeParse(
2143
+ jsonString,
2144
+ (x) => ListAgentsParameters$inboundSchema.parse(JSON.parse(x)),
2145
+ `Failed to parse 'ListAgentsParameters' from JSON`,
2146
+ );
2147
+ }
2148
+
2149
+ /** @internal */
2150
+ export const ListAgentsRetry$inboundSchema: z.ZodType<
2151
+ ListAgentsRetry,
2152
+ z.ZodTypeDef,
2153
+ unknown
2154
+ > = z.object({
2155
+ count: z.number().default(3),
2156
+ on_codes: z.array(z.number()).optional(),
2157
+ }).transform((v) => {
2158
+ return remap$(v, {
2159
+ "on_codes": "onCodes",
2160
+ });
2161
+ });
2162
+
2163
+ export function listAgentsRetryFromJSON(
2164
+ jsonString: string,
2165
+ ): SafeParseResult<ListAgentsRetry, SDKValidationError> {
2166
+ return safeParse(
2167
+ jsonString,
2168
+ (x) => ListAgentsRetry$inboundSchema.parse(JSON.parse(x)),
2169
+ `Failed to parse 'ListAgentsRetry' from JSON`,
2170
+ );
2171
+ }
2172
+
2173
+ /** @internal */
2174
+ export const ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema:
2175
+ z.ZodType<
2176
+ ListAgentsResponseFormatAgentsResponseJsonSchema,
2177
+ z.ZodTypeDef,
2178
+ unknown
2179
+ > = z.object({
2180
+ description: z.string().optional(),
2181
+ name: z.string(),
2182
+ schema: z.any().optional(),
2183
+ strict: z.boolean().default(false),
2184
+ });
2185
+
2186
+ export function listAgentsResponseFormatAgentsResponseJsonSchemaFromJSON(
2187
+ jsonString: string,
2188
+ ): SafeParseResult<
2189
+ ListAgentsResponseFormatAgentsResponseJsonSchema,
2190
+ SDKValidationError
2191
+ > {
2192
+ return safeParse(
2193
+ jsonString,
2194
+ (x) =>
2195
+ ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema.parse(
2196
+ JSON.parse(x),
2197
+ ),
2198
+ `Failed to parse 'ListAgentsResponseFormatAgentsResponseJsonSchema' from JSON`,
2199
+ );
2200
+ }
2201
+
2202
+ /** @internal */
2203
+ export const ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema:
2204
+ z.ZodType<
2205
+ ListAgentsResponseFormatAgentsResponse200JSONSchema,
2206
+ z.ZodTypeDef,
2207
+ unknown
2208
+ > = z.object({
2209
+ type: z.literal("json_schema"),
2210
+ json_schema: z.lazy(() =>
2211
+ ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema
2212
+ ),
2213
+ }).transform((v) => {
2214
+ return remap$(v, {
2215
+ "json_schema": "jsonSchema",
2216
+ });
2217
+ });
2218
+
2219
+ export function listAgentsResponseFormatAgentsResponse200JSONSchemaFromJSON(
2220
+ jsonString: string,
2221
+ ): SafeParseResult<
2222
+ ListAgentsResponseFormatAgentsResponse200JSONSchema,
2223
+ SDKValidationError
2224
+ > {
2225
+ return safeParse(
2226
+ jsonString,
2227
+ (x) =>
2228
+ ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema.parse(
2229
+ JSON.parse(x),
2230
+ ),
2231
+ `Failed to parse 'ListAgentsResponseFormatAgentsResponse200JSONSchema' from JSON`,
2232
+ );
2233
+ }
2234
+
2235
+ /** @internal */
2236
+ export const ListAgentsResponseFormatAgentsJSONObject$inboundSchema: z.ZodType<
2237
+ ListAgentsResponseFormatAgentsJSONObject,
2238
+ z.ZodTypeDef,
2239
+ unknown
2240
+ > = z.object({
2241
+ type: z.literal("json_object"),
2242
+ });
2243
+
2244
+ export function listAgentsResponseFormatAgentsJSONObjectFromJSON(
2245
+ jsonString: string,
2246
+ ): SafeParseResult<
2247
+ ListAgentsResponseFormatAgentsJSONObject,
2248
+ SDKValidationError
2249
+ > {
2250
+ return safeParse(
2251
+ jsonString,
2252
+ (x) =>
2253
+ ListAgentsResponseFormatAgentsJSONObject$inboundSchema.parse(
2254
+ JSON.parse(x),
2255
+ ),
2256
+ `Failed to parse 'ListAgentsResponseFormatAgentsJSONObject' from JSON`,
2257
+ );
2258
+ }
2259
+
2260
+ /** @internal */
2261
+ export const ListAgentsResponseFormatAgentsText$inboundSchema: z.ZodType<
2262
+ ListAgentsResponseFormatAgentsText,
2263
+ z.ZodTypeDef,
2264
+ unknown
2265
+ > = z.object({
2266
+ type: z.literal("text"),
2267
+ });
2268
+
2269
+ export function listAgentsResponseFormatAgentsTextFromJSON(
2270
+ jsonString: string,
2271
+ ): SafeParseResult<ListAgentsResponseFormatAgentsText, SDKValidationError> {
2272
+ return safeParse(
2273
+ jsonString,
2274
+ (x) =>
2275
+ ListAgentsResponseFormatAgentsText$inboundSchema.parse(JSON.parse(x)),
2276
+ `Failed to parse 'ListAgentsResponseFormatAgentsText' from JSON`,
2277
+ );
2278
+ }
2279
+
2280
+ /** @internal */
2281
+ export const ListAgentsFallbackModelConfigurationResponseFormat$inboundSchema:
2282
+ z.ZodType<
2283
+ ListAgentsFallbackModelConfigurationResponseFormat,
2284
+ z.ZodTypeDef,
2285
+ unknown
2286
+ > = z.union([
2287
+ z.lazy(() => ListAgentsResponseFormatAgentsText$inboundSchema),
2288
+ z.lazy(() => ListAgentsResponseFormatAgentsJSONObject$inboundSchema),
2289
+ z.lazy(() =>
2290
+ ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema
2291
+ ),
2292
+ ]);
2293
+
2294
+ export function listAgentsFallbackModelConfigurationResponseFormatFromJSON(
2295
+ jsonString: string,
2296
+ ): SafeParseResult<
2297
+ ListAgentsFallbackModelConfigurationResponseFormat,
2298
+ SDKValidationError
2299
+ > {
2300
+ return safeParse(
2301
+ jsonString,
2302
+ (x) =>
2303
+ ListAgentsFallbackModelConfigurationResponseFormat$inboundSchema.parse(
2304
+ JSON.parse(x),
2305
+ ),
2306
+ `Failed to parse 'ListAgentsFallbackModelConfigurationResponseFormat' from JSON`,
2307
+ );
2308
+ }
2309
+
2310
+ /** @internal */
2311
+ export const ListAgentsFallbackModelConfigurationReasoningEffort$inboundSchema:
2312
+ z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationReasoningEffort> =
2313
+ z.nativeEnum(ListAgentsFallbackModelConfigurationReasoningEffort);
2314
+
2315
+ /** @internal */
2316
+ export const ListAgentsFallbackModelConfigurationStop$inboundSchema: z.ZodType<
2317
+ ListAgentsFallbackModelConfigurationStop,
2318
+ z.ZodTypeDef,
2319
+ unknown
2320
+ > = z.union([z.string(), z.array(z.string())]);
2321
+
2322
+ export function listAgentsFallbackModelConfigurationStopFromJSON(
2323
+ jsonString: string,
2324
+ ): SafeParseResult<
2325
+ ListAgentsFallbackModelConfigurationStop,
2326
+ SDKValidationError
2327
+ > {
2328
+ return safeParse(
2329
+ jsonString,
2330
+ (x) =>
2331
+ ListAgentsFallbackModelConfigurationStop$inboundSchema.parse(
2332
+ JSON.parse(x),
2333
+ ),
2334
+ `Failed to parse 'ListAgentsFallbackModelConfigurationStop' from JSON`,
2335
+ );
2336
+ }
2337
+
2338
+ /** @internal */
2339
+ export const ListAgentsFallbackModelConfigurationThinking$inboundSchema:
2340
+ z.ZodType<
2341
+ ListAgentsFallbackModelConfigurationThinking,
2342
+ z.ZodTypeDef,
2343
+ unknown
2344
+ > = z.union([
2345
+ components.ThinkingConfigDisabledSchema$inboundSchema,
2346
+ components.ThinkingConfigEnabledSchema$inboundSchema,
2347
+ components.ThinkingConfigAdaptiveSchema$inboundSchema,
2348
+ ]);
2349
+
2350
+ export function listAgentsFallbackModelConfigurationThinkingFromJSON(
2351
+ jsonString: string,
2352
+ ): SafeParseResult<
2353
+ ListAgentsFallbackModelConfigurationThinking,
2354
+ SDKValidationError
2355
+ > {
2356
+ return safeParse(
2357
+ jsonString,
2358
+ (x) =>
2359
+ ListAgentsFallbackModelConfigurationThinking$inboundSchema.parse(
2360
+ JSON.parse(x),
2361
+ ),
2362
+ `Failed to parse 'ListAgentsFallbackModelConfigurationThinking' from JSON`,
2363
+ );
2364
+ }
2365
+
2366
+ /** @internal */
2367
+ export const ListAgentsToolChoiceAgentsType$inboundSchema: z.ZodNativeEnum<
2368
+ typeof ListAgentsToolChoiceAgentsType
2369
+ > = z.nativeEnum(ListAgentsToolChoiceAgentsType);
2370
+
2371
+ /** @internal */
2372
+ export const ListAgentsToolChoiceAgentsFunction$inboundSchema: z.ZodType<
2373
+ ListAgentsToolChoiceAgentsFunction,
2374
+ z.ZodTypeDef,
2375
+ unknown
2376
+ > = z.object({
2377
+ name: z.string(),
2378
+ });
2379
+
2380
+ export function listAgentsToolChoiceAgentsFunctionFromJSON(
2381
+ jsonString: string,
2382
+ ): SafeParseResult<ListAgentsToolChoiceAgentsFunction, SDKValidationError> {
2383
+ return safeParse(
2384
+ jsonString,
2385
+ (x) =>
2386
+ ListAgentsToolChoiceAgentsFunction$inboundSchema.parse(JSON.parse(x)),
2387
+ `Failed to parse 'ListAgentsToolChoiceAgentsFunction' from JSON`,
2388
+ );
2389
+ }
2390
+
2391
+ /** @internal */
2392
+ export const ListAgentsToolChoiceAgents2$inboundSchema: z.ZodType<
2393
+ ListAgentsToolChoiceAgents2,
2394
+ z.ZodTypeDef,
2395
+ unknown
2396
+ > = z.object({
2397
+ type: ListAgentsToolChoiceAgentsType$inboundSchema.optional(),
2398
+ function: z.lazy(() => ListAgentsToolChoiceAgentsFunction$inboundSchema),
2399
+ });
2400
+
2401
+ export function listAgentsToolChoiceAgents2FromJSON(
2402
+ jsonString: string,
2403
+ ): SafeParseResult<ListAgentsToolChoiceAgents2, SDKValidationError> {
2404
+ return safeParse(
2405
+ jsonString,
2406
+ (x) => ListAgentsToolChoiceAgents2$inboundSchema.parse(JSON.parse(x)),
2407
+ `Failed to parse 'ListAgentsToolChoiceAgents2' from JSON`,
2408
+ );
2409
+ }
2410
+
2411
+ /** @internal */
2412
+ export const ListAgentsToolChoiceAgents1$inboundSchema: z.ZodNativeEnum<
2413
+ typeof ListAgentsToolChoiceAgents1
2414
+ > = z.nativeEnum(ListAgentsToolChoiceAgents1);
2415
+
2416
+ /** @internal */
2417
+ export const ListAgentsFallbackModelConfigurationToolChoice$inboundSchema:
2418
+ z.ZodType<
2419
+ ListAgentsFallbackModelConfigurationToolChoice,
2420
+ z.ZodTypeDef,
2421
+ unknown
2422
+ > = z.union([
2423
+ z.lazy(() => ListAgentsToolChoiceAgents2$inboundSchema),
2424
+ ListAgentsToolChoiceAgents1$inboundSchema,
2425
+ ]);
2426
+
2427
+ export function listAgentsFallbackModelConfigurationToolChoiceFromJSON(
2428
+ jsonString: string,
2429
+ ): SafeParseResult<
2430
+ ListAgentsFallbackModelConfigurationToolChoice,
2431
+ SDKValidationError
2432
+ > {
2433
+ return safeParse(
2434
+ jsonString,
2435
+ (x) =>
2436
+ ListAgentsFallbackModelConfigurationToolChoice$inboundSchema.parse(
2437
+ JSON.parse(x),
2438
+ ),
2439
+ `Failed to parse 'ListAgentsFallbackModelConfigurationToolChoice' from JSON`,
2440
+ );
2441
+ }
2442
+
2443
+ /** @internal */
2444
+ export const ListAgentsFallbackModelConfigurationModalities$inboundSchema:
2445
+ z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationModalities> = z
2446
+ .nativeEnum(ListAgentsFallbackModelConfigurationModalities);
2447
+
2448
+ /** @internal */
2449
+ export const ListAgentsIdAgents1$inboundSchema: z.ZodNativeEnum<
2450
+ typeof ListAgentsIdAgents1
2451
+ > = z.nativeEnum(ListAgentsIdAgents1);
2452
+
2453
+ /** @internal */
2454
+ export const ListAgentsFallbackModelConfigurationId$inboundSchema: z.ZodType<
2455
+ ListAgentsFallbackModelConfigurationId,
2456
+ z.ZodTypeDef,
2457
+ unknown
2458
+ > = z.union([ListAgentsIdAgents1$inboundSchema, z.string()]);
2459
+
2460
+ export function listAgentsFallbackModelConfigurationIdFromJSON(
2461
+ jsonString: string,
2462
+ ): SafeParseResult<ListAgentsFallbackModelConfigurationId, SDKValidationError> {
2463
+ return safeParse(
2464
+ jsonString,
2465
+ (x) =>
2466
+ ListAgentsFallbackModelConfigurationId$inboundSchema.parse(JSON.parse(x)),
2467
+ `Failed to parse 'ListAgentsFallbackModelConfigurationId' from JSON`,
2468
+ );
2469
+ }
2470
+
2471
+ /** @internal */
2472
+ export const ListAgentsFallbackModelConfigurationExecuteOn$inboundSchema:
2473
+ z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationExecuteOn> = z
2474
+ .nativeEnum(ListAgentsFallbackModelConfigurationExecuteOn);
2475
+
2476
+ /** @internal */
2477
+ export const ListAgentsFallbackModelConfigurationGuardrails$inboundSchema:
2478
+ z.ZodType<
2479
+ ListAgentsFallbackModelConfigurationGuardrails,
2480
+ z.ZodTypeDef,
2481
+ unknown
2482
+ > = z.object({
2483
+ id: z.union([ListAgentsIdAgents1$inboundSchema, z.string()]),
2484
+ execute_on: ListAgentsFallbackModelConfigurationExecuteOn$inboundSchema,
2485
+ }).transform((v) => {
2486
+ return remap$(v, {
2487
+ "execute_on": "executeOn",
2488
+ });
2489
+ });
2490
+
2491
+ export function listAgentsFallbackModelConfigurationGuardrailsFromJSON(
2492
+ jsonString: string,
2493
+ ): SafeParseResult<
2494
+ ListAgentsFallbackModelConfigurationGuardrails,
2495
+ SDKValidationError
2496
+ > {
2497
+ return safeParse(
2498
+ jsonString,
2499
+ (x) =>
2500
+ ListAgentsFallbackModelConfigurationGuardrails$inboundSchema.parse(
2501
+ JSON.parse(x),
2502
+ ),
2503
+ `Failed to parse 'ListAgentsFallbackModelConfigurationGuardrails' from JSON`,
2504
+ );
2505
+ }
2506
+
2507
+ /** @internal */
2508
+ export const ListAgentsFallbackModelConfigurationPlugins$inboundSchema:
2509
+ z.ZodType<
2510
+ ListAgentsFallbackModelConfigurationPlugins,
2511
+ z.ZodTypeDef,
2512
+ unknown
2513
+ > = z.union([
2514
+ components.PIIRedactionPluginEn$inboundSchema,
2515
+ components.PIIRedactionPluginNl$inboundSchema,
2516
+ components.PIIRedactionPluginAuto$inboundSchema,
2517
+ ]);
2518
+
2519
+ export function listAgentsFallbackModelConfigurationPluginsFromJSON(
2520
+ jsonString: string,
2521
+ ): SafeParseResult<
2522
+ ListAgentsFallbackModelConfigurationPlugins,
2523
+ SDKValidationError
2524
+ > {
2525
+ return safeParse(
2526
+ jsonString,
2527
+ (x) =>
2528
+ ListAgentsFallbackModelConfigurationPlugins$inboundSchema.parse(
2529
+ JSON.parse(x),
2530
+ ),
2531
+ `Failed to parse 'ListAgentsFallbackModelConfigurationPlugins' from JSON`,
2532
+ );
2533
+ }
2534
+
2535
+ /** @internal */
2536
+ export const ListAgentsFallbackModelConfigurationFallbacks$inboundSchema:
2537
+ z.ZodType<
2538
+ ListAgentsFallbackModelConfigurationFallbacks,
2539
+ z.ZodTypeDef,
2540
+ unknown
2541
+ > = z.object({
2542
+ model: z.string(),
2543
+ });
2544
+
2545
+ export function listAgentsFallbackModelConfigurationFallbacksFromJSON(
2546
+ jsonString: string,
2547
+ ): SafeParseResult<
2548
+ ListAgentsFallbackModelConfigurationFallbacks,
2549
+ SDKValidationError
2550
+ > {
2551
+ return safeParse(
2552
+ jsonString,
2553
+ (x) =>
2554
+ ListAgentsFallbackModelConfigurationFallbacks$inboundSchema.parse(
2555
+ JSON.parse(x),
2556
+ ),
2557
+ `Failed to parse 'ListAgentsFallbackModelConfigurationFallbacks' from JSON`,
2558
+ );
2559
+ }
2560
+
2561
+ /** @internal */
2562
+ export const ListAgentsFallbackModelConfigurationType$inboundSchema:
2563
+ z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationType> = z
2564
+ .nativeEnum(ListAgentsFallbackModelConfigurationType);
2565
+
2566
+ /** @internal */
2567
+ export const ListAgentsFallbackModelConfigurationCache$inboundSchema: z.ZodType<
2568
+ ListAgentsFallbackModelConfigurationCache,
2569
+ z.ZodTypeDef,
2570
+ unknown
2571
+ > = z.object({
2572
+ ttl: z.number().default(1800),
2573
+ type: ListAgentsFallbackModelConfigurationType$inboundSchema,
2574
+ });
2575
+
2576
+ export function listAgentsFallbackModelConfigurationCacheFromJSON(
2577
+ jsonString: string,
2578
+ ): SafeParseResult<
2579
+ ListAgentsFallbackModelConfigurationCache,
2580
+ SDKValidationError
2581
+ > {
2582
+ return safeParse(
2583
+ jsonString,
2584
+ (x) =>
2585
+ ListAgentsFallbackModelConfigurationCache$inboundSchema.parse(
2586
+ JSON.parse(x),
2587
+ ),
2588
+ `Failed to parse 'ListAgentsFallbackModelConfigurationCache' from JSON`,
2589
+ );
2590
+ }
2591
+
2592
+ /** @internal */
2593
+ export const ListAgentsLoadBalancerAgentsType$inboundSchema: z.ZodNativeEnum<
2594
+ typeof ListAgentsLoadBalancerAgentsType
2595
+ > = z.nativeEnum(ListAgentsLoadBalancerAgentsType);
2596
+
2597
+ /** @internal */
2598
+ export const ListAgentsLoadBalancerAgentsModels$inboundSchema: z.ZodType<
2599
+ ListAgentsLoadBalancerAgentsModels,
2600
+ z.ZodTypeDef,
2601
+ unknown
2602
+ > = z.object({
2603
+ model: z.string(),
2604
+ weight: z.number().default(0.5),
2605
+ });
2606
+
2607
+ export function listAgentsLoadBalancerAgentsModelsFromJSON(
2608
+ jsonString: string,
2609
+ ): SafeParseResult<ListAgentsLoadBalancerAgentsModels, SDKValidationError> {
2610
+ return safeParse(
2611
+ jsonString,
2612
+ (x) =>
2613
+ ListAgentsLoadBalancerAgentsModels$inboundSchema.parse(JSON.parse(x)),
2614
+ `Failed to parse 'ListAgentsLoadBalancerAgentsModels' from JSON`,
2615
+ );
2616
+ }
2617
+
2618
+ /** @internal */
2619
+ export const ListAgentsLoadBalancerAgents1$inboundSchema: z.ZodType<
2620
+ ListAgentsLoadBalancerAgents1,
2621
+ z.ZodTypeDef,
2622
+ unknown
2623
+ > = z.object({
2624
+ type: ListAgentsLoadBalancerAgentsType$inboundSchema,
2625
+ models: z.array(
2626
+ z.lazy(() => ListAgentsLoadBalancerAgentsModels$inboundSchema),
2627
+ ),
2628
+ });
2629
+
2630
+ export function listAgentsLoadBalancerAgents1FromJSON(
2631
+ jsonString: string,
2632
+ ): SafeParseResult<ListAgentsLoadBalancerAgents1, SDKValidationError> {
2633
+ return safeParse(
2634
+ jsonString,
2635
+ (x) => ListAgentsLoadBalancerAgents1$inboundSchema.parse(JSON.parse(x)),
2636
+ `Failed to parse 'ListAgentsLoadBalancerAgents1' from JSON`,
2637
+ );
2638
+ }
2639
+
2640
+ /** @internal */
2641
+ export const ListAgentsFallbackModelConfigurationLoadBalancer$inboundSchema:
2642
+ z.ZodType<
2643
+ ListAgentsFallbackModelConfigurationLoadBalancer,
2644
+ z.ZodTypeDef,
2645
+ unknown
2646
+ > = z.lazy(() => ListAgentsLoadBalancerAgents1$inboundSchema);
2647
+
2648
+ export function listAgentsFallbackModelConfigurationLoadBalancerFromJSON(
2649
+ jsonString: string,
2650
+ ): SafeParseResult<
2651
+ ListAgentsFallbackModelConfigurationLoadBalancer,
2652
+ SDKValidationError
2653
+ > {
2654
+ return safeParse(
2655
+ jsonString,
2656
+ (x) =>
2657
+ ListAgentsFallbackModelConfigurationLoadBalancer$inboundSchema.parse(
2658
+ JSON.parse(x),
2659
+ ),
2660
+ `Failed to parse 'ListAgentsFallbackModelConfigurationLoadBalancer' from JSON`,
2661
+ );
2662
+ }
2663
+
2664
+ /** @internal */
2665
+ export const ListAgentsFallbackModelConfigurationTimeout$inboundSchema:
2666
+ z.ZodType<
2667
+ ListAgentsFallbackModelConfigurationTimeout,
2668
+ z.ZodTypeDef,
2669
+ unknown
2670
+ > = z.object({
2671
+ call_timeout: z.number(),
2672
+ }).transform((v) => {
2673
+ return remap$(v, {
2674
+ "call_timeout": "callTimeout",
2675
+ });
2676
+ });
2677
+
2678
+ export function listAgentsFallbackModelConfigurationTimeoutFromJSON(
2679
+ jsonString: string,
2680
+ ): SafeParseResult<
2681
+ ListAgentsFallbackModelConfigurationTimeout,
2682
+ SDKValidationError
2683
+ > {
2684
+ return safeParse(
2685
+ jsonString,
2686
+ (x) =>
2687
+ ListAgentsFallbackModelConfigurationTimeout$inboundSchema.parse(
2688
+ JSON.parse(x),
2689
+ ),
2690
+ `Failed to parse 'ListAgentsFallbackModelConfigurationTimeout' from JSON`,
2691
+ );
2692
+ }
2693
+
2694
+ /** @internal */
2695
+ export const ListAgentsFallbackModelConfigurationAgentsType$inboundSchema:
2696
+ z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationAgentsType> = z
2697
+ .nativeEnum(ListAgentsFallbackModelConfigurationAgentsType);
2698
+
2699
+ /** @internal */
2700
+ export const ListAgentsFallbackModelConfigurationTtl$inboundSchema:
2701
+ z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationTtl> = z
2702
+ .nativeEnum(ListAgentsFallbackModelConfigurationTtl);
2703
+
2704
+ /** @internal */
2705
+ export const ListAgentsFallbackModelConfigurationCacheControl$inboundSchema:
2706
+ z.ZodType<
2707
+ ListAgentsFallbackModelConfigurationCacheControl,
2708
+ z.ZodTypeDef,
2709
+ unknown
2710
+ > = z.object({
2711
+ type: ListAgentsFallbackModelConfigurationAgentsType$inboundSchema,
2712
+ ttl: ListAgentsFallbackModelConfigurationTtl$inboundSchema.default("5m"),
2713
+ });
2714
+
2715
+ export function listAgentsFallbackModelConfigurationCacheControlFromJSON(
2716
+ jsonString: string,
2717
+ ): SafeParseResult<
2718
+ ListAgentsFallbackModelConfigurationCacheControl,
2719
+ SDKValidationError
2720
+ > {
2721
+ return safeParse(
2722
+ jsonString,
2723
+ (x) =>
2724
+ ListAgentsFallbackModelConfigurationCacheControl$inboundSchema.parse(
2725
+ JSON.parse(x),
2726
+ ),
2727
+ `Failed to parse 'ListAgentsFallbackModelConfigurationCacheControl' from JSON`,
2728
+ );
2729
+ }
2730
+
2731
+ /** @internal */
2732
+ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
2733
+ z.ZodType<
2734
+ ListAgentsFallbackModelConfigurationParameters,
2735
+ z.ZodTypeDef,
2736
+ unknown
2737
+ > = z.object({
2738
+ name: z.string().optional(),
2739
+ frequency_penalty: z.nullable(z.number()).optional(),
2740
+ max_tokens: z.nullable(z.number().int()).optional(),
2741
+ max_completion_tokens: z.nullable(z.number().int()).optional(),
2742
+ presence_penalty: z.nullable(z.number()).optional(),
2743
+ response_format: z.union([
2744
+ z.lazy(() => ListAgentsResponseFormatAgentsText$inboundSchema),
2745
+ z.lazy(() => ListAgentsResponseFormatAgentsJSONObject$inboundSchema),
2746
+ z.lazy(() =>
2747
+ ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema
2748
+ ),
2749
+ ]).optional(),
2750
+ reasoning_effort:
2751
+ ListAgentsFallbackModelConfigurationReasoningEffort$inboundSchema
2752
+ .optional(),
2753
+ verbosity: z.string().optional(),
2754
+ seed: z.nullable(z.number()).optional(),
2755
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
2756
+ thinking: z.union([
2757
+ components.ThinkingConfigDisabledSchema$inboundSchema,
2758
+ components.ThinkingConfigEnabledSchema$inboundSchema,
2759
+ components.ThinkingConfigAdaptiveSchema$inboundSchema,
2760
+ ]).optional(),
2761
+ temperature: z.nullable(z.number()).optional(),
2762
+ top_p: z.nullable(z.number()).optional(),
2763
+ top_k: z.nullable(z.number()).optional(),
2764
+ tool_choice: z.union([
2765
+ z.lazy(() => ListAgentsToolChoiceAgents2$inboundSchema),
2766
+ ListAgentsToolChoiceAgents1$inboundSchema,
2767
+ ]).optional(),
2768
+ parallel_tool_calls: z.boolean().optional(),
2769
+ modalities: z.nullable(
2770
+ z.array(ListAgentsFallbackModelConfigurationModalities$inboundSchema),
2771
+ ).optional(),
2772
+ guardrails: z.array(
2773
+ z.lazy(() =>
2774
+ ListAgentsFallbackModelConfigurationGuardrails$inboundSchema
2775
+ ),
2776
+ ).optional(),
2777
+ plugins: z.array(
2778
+ z.union([
2779
+ components.PIIRedactionPluginEn$inboundSchema,
2780
+ components.PIIRedactionPluginNl$inboundSchema,
2781
+ components.PIIRedactionPluginAuto$inboundSchema,
2782
+ ]),
2783
+ ).optional(),
2784
+ fallbacks: z.array(
2785
+ z.lazy(() => ListAgentsFallbackModelConfigurationFallbacks$inboundSchema),
2786
+ ).optional(),
2787
+ cache: z.lazy(() => ListAgentsFallbackModelConfigurationCache$inboundSchema)
2788
+ .optional(),
2789
+ load_balancer: z.lazy(() => ListAgentsLoadBalancerAgents1$inboundSchema)
2790
+ .optional(),
2791
+ timeout: z.lazy(() =>
2792
+ ListAgentsFallbackModelConfigurationTimeout$inboundSchema
2793
+ ).optional(),
2794
+ cache_control: z.lazy(() =>
2795
+ ListAgentsFallbackModelConfigurationCacheControl$inboundSchema
2796
+ ).optional(),
2797
+ prompt_cache_key: z.string().optional(),
2798
+ }).transform((v) => {
2799
+ return remap$(v, {
2800
+ "frequency_penalty": "frequencyPenalty",
2801
+ "max_tokens": "maxTokens",
2802
+ "max_completion_tokens": "maxCompletionTokens",
2803
+ "presence_penalty": "presencePenalty",
2804
+ "response_format": "responseFormat",
2805
+ "reasoning_effort": "reasoningEffort",
2806
+ "top_p": "topP",
2807
+ "top_k": "topK",
2808
+ "tool_choice": "toolChoice",
2809
+ "parallel_tool_calls": "parallelToolCalls",
2810
+ "load_balancer": "loadBalancer",
2811
+ "cache_control": "cacheControl",
2812
+ "prompt_cache_key": "promptCacheKey",
2813
+ });
2814
+ });
2815
+
2816
+ export function listAgentsFallbackModelConfigurationParametersFromJSON(
2817
+ jsonString: string,
2818
+ ): SafeParseResult<
2819
+ ListAgentsFallbackModelConfigurationParameters,
2820
+ SDKValidationError
2821
+ > {
2822
+ return safeParse(
2823
+ jsonString,
2824
+ (x) =>
2825
+ ListAgentsFallbackModelConfigurationParameters$inboundSchema.parse(
2826
+ JSON.parse(x),
2827
+ ),
2828
+ `Failed to parse 'ListAgentsFallbackModelConfigurationParameters' from JSON`,
2829
+ );
2830
+ }
2831
+
2832
+ /** @internal */
2833
+ export const ListAgentsFallbackModelConfigurationRetry$inboundSchema: z.ZodType<
2834
+ ListAgentsFallbackModelConfigurationRetry,
2835
+ z.ZodTypeDef,
2836
+ unknown
2837
+ > = z.object({
2838
+ count: z.number().default(3),
2839
+ on_codes: z.array(z.number()).optional(),
2840
+ }).transform((v) => {
2841
+ return remap$(v, {
2842
+ "on_codes": "onCodes",
2843
+ });
2844
+ });
2845
+
2846
+ export function listAgentsFallbackModelConfigurationRetryFromJSON(
2847
+ jsonString: string,
2848
+ ): SafeParseResult<
2849
+ ListAgentsFallbackModelConfigurationRetry,
2850
+ SDKValidationError
2851
+ > {
2852
+ return safeParse(
2853
+ jsonString,
2854
+ (x) =>
2855
+ ListAgentsFallbackModelConfigurationRetry$inboundSchema.parse(
2856
+ JSON.parse(x),
2857
+ ),
2858
+ `Failed to parse 'ListAgentsFallbackModelConfigurationRetry' from JSON`,
2859
+ );
2860
+ }
2861
+
2862
+ /** @internal */
2863
+ export const ListAgentsFallbackModelConfiguration2$inboundSchema: z.ZodType<
2864
+ ListAgentsFallbackModelConfiguration2,
2865
+ z.ZodTypeDef,
2866
+ unknown
2867
+ > = z.object({
2868
+ id: z.string(),
2869
+ parameters: z.lazy(() =>
2870
+ ListAgentsFallbackModelConfigurationParameters$inboundSchema
2871
+ ).optional(),
2872
+ retry: z.lazy(() => ListAgentsFallbackModelConfigurationRetry$inboundSchema)
2873
+ .optional(),
2874
+ });
2875
+
2876
+ export function listAgentsFallbackModelConfiguration2FromJSON(
2877
+ jsonString: string,
2878
+ ): SafeParseResult<ListAgentsFallbackModelConfiguration2, SDKValidationError> {
2879
+ return safeParse(
2880
+ jsonString,
2881
+ (x) =>
2882
+ ListAgentsFallbackModelConfiguration2$inboundSchema.parse(JSON.parse(x)),
2883
+ `Failed to parse 'ListAgentsFallbackModelConfiguration2' from JSON`,
2884
+ );
2885
+ }
2886
+
2887
+ /** @internal */
2888
+ export const ListAgentsFallbackModelConfiguration$inboundSchema: z.ZodType<
2889
+ ListAgentsFallbackModelConfiguration,
2890
+ z.ZodTypeDef,
2891
+ unknown
2892
+ > = z.union([
2893
+ z.lazy(() => ListAgentsFallbackModelConfiguration2$inboundSchema),
2894
+ z.string(),
2895
+ ]);
2896
+
2897
+ export function listAgentsFallbackModelConfigurationFromJSON(
2898
+ jsonString: string,
2899
+ ): SafeParseResult<ListAgentsFallbackModelConfiguration, SDKValidationError> {
2900
+ return safeParse(
2901
+ jsonString,
2902
+ (x) =>
2903
+ ListAgentsFallbackModelConfiguration$inboundSchema.parse(JSON.parse(x)),
2904
+ `Failed to parse 'ListAgentsFallbackModelConfiguration' from JSON`,
2905
+ );
2906
+ }
2907
+
2908
+ /** @internal */
2909
+ export const ListAgentsModel$inboundSchema: z.ZodType<
2910
+ ListAgentsModel,
2911
+ z.ZodTypeDef,
2912
+ unknown
2913
+ > = z.object({
2914
+ id: z.string(),
2915
+ integration_id: z.nullable(z.string()).optional(),
2916
+ parameters: z.lazy(() => ListAgentsParameters$inboundSchema).optional(),
2917
+ retry: z.lazy(() => ListAgentsRetry$inboundSchema).optional(),
2918
+ fallback_models: z.nullable(
2919
+ z.array(z.union([
2920
+ z.lazy(() => ListAgentsFallbackModelConfiguration2$inboundSchema),
2921
+ z.string(),
2922
+ ])),
2923
+ ).optional(),
2924
+ }).transform((v) => {
2925
+ return remap$(v, {
2926
+ "integration_id": "integrationId",
2927
+ "fallback_models": "fallbackModels",
2928
+ });
2929
+ });
2930
+
2931
+ export function listAgentsModelFromJSON(
2932
+ jsonString: string,
2933
+ ): SafeParseResult<ListAgentsModel, SDKValidationError> {
2934
+ return safeParse(
2935
+ jsonString,
2936
+ (x) => ListAgentsModel$inboundSchema.parse(JSON.parse(x)),
2937
+ `Failed to parse 'ListAgentsModel' from JSON`,
2938
+ );
2939
+ }
2940
+
2941
+ /** @internal */
2942
+ export const ListAgentsData$inboundSchema: z.ZodType<
2943
+ ListAgentsData,
2944
+ z.ZodTypeDef,
2945
+ unknown
2946
+ > = z.object({
2947
+ _id: z.string(),
2948
+ key: z.string(),
2949
+ display_name: z.string().optional(),
2950
+ created_by_id: z.nullable(z.string()).optional(),
2951
+ updated_by_id: z.nullable(z.string()).optional(),
2952
+ created: z.string().optional(),
2953
+ updated: z.string().optional(),
2954
+ status: ListAgentsStatus$inboundSchema,
2955
+ version: z.string().optional(),
2956
+ path: z.string(),
2957
+ memory_stores: z.array(z.string()).optional(),
2958
+ team_of_agents: z.array(z.lazy(() => ListAgentsTeamOfAgents$inboundSchema))
2959
+ .optional(),
2960
+ skills: z.array(z.string()).optional(),
2961
+ metrics: z.lazy(() => ListAgentsMetrics$inboundSchema).optional(),
2962
+ variables: z.record(z.any()).optional(),
2963
+ knowledge_bases: z.array(z.lazy(() => ListAgentsKnowledgeBases$inboundSchema))
2964
+ .optional(),
2965
+ source: ListAgentsSource$inboundSchema.optional(),
2966
+ engine: ListAgentsEngine$inboundSchema.default("text"),
2967
+ type: ListAgentsType$inboundSchema.default("internal"),
2968
+ role: z.string(),
2969
+ description: z.string(),
2970
+ system_prompt: z.nullable(z.string()).optional(),
2971
+ instructions: z.string(),
2972
+ settings: z.lazy(() => ListAgentsSettings$inboundSchema).optional(),
2973
+ model: z.lazy(() => ListAgentsModel$inboundSchema),
2974
+ }).transform((v) => {
2975
+ return remap$(v, {
2976
+ "_id": "id",
2977
+ "display_name": "displayName",
2978
+ "created_by_id": "createdById",
2979
+ "updated_by_id": "updatedById",
2980
+ "memory_stores": "memoryStores",
2981
+ "team_of_agents": "teamOfAgents",
2982
+ "knowledge_bases": "knowledgeBases",
2983
+ "system_prompt": "systemPrompt",
2984
+ });
2985
+ });
2986
+
2987
+ export function listAgentsDataFromJSON(
2988
+ jsonString: string,
2989
+ ): SafeParseResult<ListAgentsData, SDKValidationError> {
2990
+ return safeParse(
2991
+ jsonString,
2992
+ (x) => ListAgentsData$inboundSchema.parse(JSON.parse(x)),
2993
+ `Failed to parse 'ListAgentsData' from JSON`,
2994
+ );
2995
+ }
2996
+
2997
+ /** @internal */
2998
+ export const ListAgentsResponseBody$inboundSchema: z.ZodType<
2999
+ ListAgentsResponseBody,
3000
+ z.ZodTypeDef,
3001
+ unknown
3002
+ > = z.object({
3003
+ object: ListAgentsObject$inboundSchema,
3004
+ data: z.array(z.lazy(() => ListAgentsData$inboundSchema)),
3005
+ has_more: z.boolean(),
3006
+ }).transform((v) => {
3007
+ return remap$(v, {
3008
+ "has_more": "hasMore",
3009
+ });
3010
+ });
3011
+
3012
+ export function listAgentsResponseBodyFromJSON(
3013
+ jsonString: string,
3014
+ ): SafeParseResult<ListAgentsResponseBody, SDKValidationError> {
3015
+ return safeParse(
3016
+ jsonString,
3017
+ (x) => ListAgentsResponseBody$inboundSchema.parse(JSON.parse(x)),
3018
+ `Failed to parse 'ListAgentsResponseBody' from JSON`,
3019
+ );
3020
+ }