@orq-ai/node 4.15.0-rc.21 → 4.15.0-rc.23

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 (427) hide show
  1. package/README.md +54 -28
  2. package/funcs/hubGet.d.ts +18 -0
  3. package/funcs/hubGet.d.ts.map +1 -0
  4. package/funcs/hubGet.js +121 -0
  5. package/funcs/hubGet.js.map +1 -0
  6. package/funcs/hubSearch.d.ts +18 -0
  7. package/funcs/hubSearch.d.ts.map +1 -0
  8. package/funcs/hubSearch.js +120 -0
  9. package/funcs/hubSearch.js.map +1 -0
  10. package/funcs/piiCapabilities.d.ts +17 -0
  11. package/funcs/piiCapabilities.d.ts.map +1 -0
  12. package/funcs/piiCapabilities.js +105 -0
  13. package/funcs/piiCapabilities.js.map +1 -0
  14. package/funcs/sessionsCreate.d.ts +17 -0
  15. package/funcs/sessionsCreate.d.ts.map +1 -0
  16. package/funcs/sessionsCreate.js +115 -0
  17. package/funcs/sessionsCreate.js.map +1 -0
  18. package/funcs/sessionsDelete.d.ts +17 -0
  19. package/funcs/sessionsDelete.d.ts.map +1 -0
  20. package/funcs/sessionsDelete.js +121 -0
  21. package/funcs/sessionsDelete.js.map +1 -0
  22. package/funcs/sessionsGet.d.ts +18 -0
  23. package/funcs/sessionsGet.d.ts.map +1 -0
  24. package/funcs/sessionsGet.js +121 -0
  25. package/funcs/sessionsGet.js.map +1 -0
  26. package/funcs/sessionsGetCount.d.ts +17 -0
  27. package/funcs/sessionsGetCount.d.ts.map +1 -0
  28. package/funcs/sessionsGetCount.js +115 -0
  29. package/funcs/sessionsGetCount.js.map +1 -0
  30. package/funcs/sessionsList.d.ts +17 -0
  31. package/funcs/sessionsList.d.ts.map +1 -0
  32. package/funcs/sessionsList.js +115 -0
  33. package/funcs/sessionsList.js.map +1 -0
  34. package/funcs/sessionsListTags.d.ts +16 -0
  35. package/funcs/sessionsListTags.d.ts.map +1 -0
  36. package/funcs/sessionsListTags.js +105 -0
  37. package/funcs/sessionsListTags.js.map +1 -0
  38. package/funcs/sessionsUpdate.d.ts +18 -0
  39. package/funcs/sessionsUpdate.d.ts.map +1 -0
  40. package/funcs/sessionsUpdate.js +124 -0
  41. package/funcs/sessionsUpdate.js.map +1 -0
  42. package/jsr.json +1 -1
  43. package/lib/config.d.ts +2 -2
  44. package/lib/config.js +2 -2
  45. package/models/components/agentresponserequest.d.ts +6 -6
  46. package/models/components/agentresponserequest.d.ts.map +1 -1
  47. package/models/components/agentresponserequest.js +6 -6
  48. package/models/components/agentresponserequest.js.map +1 -1
  49. package/models/components/agentstartedstreamingevent.d.ts +13 -1
  50. package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
  51. package/models/components/agentstartedstreamingevent.js +2 -0
  52. package/models/components/agentstartedstreamingevent.js.map +1 -1
  53. package/models/components/capabilitiesresponse.d.ts +62 -0
  54. package/models/components/capabilitiesresponse.d.ts.map +1 -0
  55. package/models/components/capabilitiesresponse.js +68 -0
  56. package/models/components/capabilitiesresponse.js.map +1 -0
  57. package/models/components/createthreadrequest.d.ts +41 -0
  58. package/models/components/createthreadrequest.d.ts.map +1 -0
  59. package/models/components/createthreadrequest.js +75 -0
  60. package/models/components/createthreadrequest.js.map +1 -0
  61. package/models/components/detectrequest.d.ts +48 -0
  62. package/models/components/detectrequest.d.ts.map +1 -1
  63. package/models/components/detectrequest.js +4 -0
  64. package/models/components/detectrequest.js.map +1 -1
  65. package/models/components/entitylist.d.ts +16 -0
  66. package/models/components/entitylist.d.ts.map +1 -0
  67. package/models/components/entitylist.js +50 -0
  68. package/models/components/entitylist.js.map +1 -0
  69. package/models/components/gethubitemresponse.d.ts +11 -0
  70. package/models/components/gethubitemresponse.d.ts.map +1 -0
  71. package/models/components/gethubitemresponse.js +56 -0
  72. package/models/components/gethubitemresponse.js.map +1 -0
  73. package/models/components/getthreadcountrequest.d.ts +17 -0
  74. package/models/components/getthreadcountrequest.d.ts.map +1 -0
  75. package/models/components/getthreadcountrequest.js +52 -0
  76. package/models/components/getthreadcountrequest.js.map +1 -0
  77. package/models/components/getthreadcountresponse.d.ts +10 -0
  78. package/models/components/getthreadcountresponse.d.ts.map +1 -0
  79. package/models/components/getthreadcountresponse.js +50 -0
  80. package/models/components/getthreadcountresponse.js.map +1 -0
  81. package/models/components/guardrailruleplugin.d.ts +25 -0
  82. package/models/components/guardrailruleplugin.d.ts.map +1 -1
  83. package/models/components/guardrailruleplugin.js +6 -0
  84. package/models/components/guardrailruleplugin.js.map +1 -1
  85. package/models/components/hubitem.d.ts +71 -0
  86. package/models/components/hubitem.d.ts.map +1 -0
  87. package/models/components/hubitem.js +83 -0
  88. package/models/components/hubitem.js.map +1 -0
  89. package/models/components/hubitemsummary.d.ts +29 -0
  90. package/models/components/hubitemsummary.d.ts.map +1 -0
  91. package/models/components/hubitemsummary.js +60 -0
  92. package/models/components/hubitemsummary.js.map +1 -0
  93. package/models/components/hubsearchhit.d.ts +11 -0
  94. package/models/components/hubsearchhit.d.ts.map +1 -0
  95. package/models/components/hubsearchhit.js +51 -0
  96. package/models/components/hubsearchhit.js.map +1 -0
  97. package/models/components/index.d.ts +21 -3
  98. package/models/components/index.d.ts.map +1 -1
  99. package/models/components/index.js +21 -3
  100. package/models/components/index.js.map +1 -1
  101. package/models/components/listthreadsrequest.d.ts +17 -0
  102. package/models/components/listthreadsrequest.d.ts.map +1 -0
  103. package/models/components/listthreadsrequest.js +52 -0
  104. package/models/components/listthreadsrequest.js.map +1 -0
  105. package/models/components/listthreadsresponse.d.ts +13 -0
  106. package/models/components/listthreadsresponse.d.ts.map +1 -0
  107. package/models/components/listthreadsresponse.js +58 -0
  108. package/models/components/listthreadsresponse.js.map +1 -0
  109. package/models/components/openaipromptcacheoptions.d.ts +37 -0
  110. package/models/components/openaipromptcacheoptions.d.ts.map +1 -0
  111. package/models/components/openaipromptcacheoptions.js +75 -0
  112. package/models/components/openaipromptcacheoptions.js.map +1 -0
  113. package/models/components/piiredactionplugin.d.ts +84 -0
  114. package/models/components/piiredactionplugin.d.ts.map +1 -0
  115. package/models/components/piiredactionplugin.js +103 -0
  116. package/models/components/piiredactionplugin.js.map +1 -0
  117. package/models/components/publicplugin.d.ts +17 -16
  118. package/models/components/publicplugin.d.ts.map +1 -1
  119. package/models/components/publicplugin.js +5 -11
  120. package/models/components/publicplugin.js.map +1 -1
  121. package/models/components/publicresponseresource.d.ts +2 -0
  122. package/models/components/publicresponseresource.d.ts.map +1 -1
  123. package/models/components/publicresponseresource.js +3 -0
  124. package/models/components/publicresponseresource.js.map +1 -1
  125. package/models/components/reasoningpart.js +1 -1
  126. package/models/components/redactrequest.d.ts +48 -0
  127. package/models/components/redactrequest.d.ts.map +1 -1
  128. package/models/components/redactrequest.js +8 -0
  129. package/models/components/redactrequest.js.map +1 -1
  130. package/models/components/responsehealingplugin.d.ts +2 -17
  131. package/models/components/responsehealingplugin.d.ts.map +1 -1
  132. package/models/components/responsehealingplugin.js +3 -13
  133. package/models/components/responsehealingplugin.js.map +1 -1
  134. package/models/components/routingruleplugin.d.ts +25 -0
  135. package/models/components/routingruleplugin.d.ts.map +1 -1
  136. package/models/components/routingruleplugin.js +6 -0
  137. package/models/components/routingruleplugin.js.map +1 -1
  138. package/models/components/searchhubitemsresponse.d.ts +11 -0
  139. package/models/components/searchhubitemsresponse.d.ts.map +1 -0
  140. package/models/components/searchhubitemsresponse.js +51 -0
  141. package/models/components/searchhubitemsresponse.js.map +1 -0
  142. package/models/components/sessioninterval.d.ts +19 -0
  143. package/models/components/sessioninterval.d.ts.map +1 -0
  144. package/models/components/sessioninterval.js +56 -0
  145. package/models/components/sessioninterval.js.map +1 -0
  146. package/models/components/textcontentpartschema.d.ts +5 -5
  147. package/models/components/textcontentpartschema.d.ts.map +1 -1
  148. package/models/components/textcontentpartschema.js +6 -6
  149. package/models/components/textcontentpartschema.js.map +1 -1
  150. package/models/components/thread.d.ts +54 -0
  151. package/models/components/thread.d.ts.map +1 -0
  152. package/models/components/thread.js +79 -0
  153. package/models/components/thread.js.map +1 -0
  154. package/models/components/threadbilling.d.ts +21 -0
  155. package/models/components/threadbilling.d.ts.map +1 -0
  156. package/models/components/threadbilling.js +75 -0
  157. package/models/components/threadbilling.js.map +1 -0
  158. package/models/components/threadfilters.d.ts +34 -0
  159. package/models/components/threadfilters.d.ts.map +1 -0
  160. package/models/components/threadfilters.js +65 -0
  161. package/models/components/threadfilters.js.map +1 -0
  162. package/models/components/threadkind.d.ts +13 -0
  163. package/models/components/threadkind.d.ts.map +1 -0
  164. package/models/components/threadkind.js +51 -0
  165. package/models/components/threadkind.js.map +1 -0
  166. package/models/components/threadusage.d.ts +21 -0
  167. package/models/components/threadusage.d.ts.map +1 -0
  168. package/models/components/threadusage.js +75 -0
  169. package/models/components/threadusage.js.map +1 -0
  170. package/models/components/tracescrubbingplugin.d.ts +2 -16
  171. package/models/components/tracescrubbingplugin.d.ts.map +1 -1
  172. package/models/components/tracescrubbingplugin.js +3 -13
  173. package/models/components/tracescrubbingplugin.js.map +1 -1
  174. package/models/components/updatethreadrequest.d.ts +51 -0
  175. package/models/components/updatethreadrequest.d.ts.map +1 -0
  176. package/models/components/updatethreadrequest.js +79 -0
  177. package/models/components/updatethreadrequest.js.map +1 -0
  178. package/models/operations/createagentrequest.d.ts +67 -13
  179. package/models/operations/createagentrequest.d.ts.map +1 -1
  180. package/models/operations/createagentrequest.js +20 -32
  181. package/models/operations/createagentrequest.js.map +1 -1
  182. package/models/operations/createchatcompletion.d.ts +12 -4
  183. package/models/operations/createchatcompletion.d.ts.map +1 -1
  184. package/models/operations/createchatcompletion.js +4 -8
  185. package/models/operations/createchatcompletion.js.map +1 -1
  186. package/models/operations/createcompletion.d.ts +2 -8
  187. package/models/operations/createcompletion.d.ts.map +1 -1
  188. package/models/operations/createcompletion.js +3 -17
  189. package/models/operations/createcompletion.js.map +1 -1
  190. package/models/operations/createdataset.js +1 -1
  191. package/models/operations/createdatasetitem.js +5 -5
  192. package/models/operations/createimage.d.ts +2 -8
  193. package/models/operations/createimage.d.ts.map +1 -1
  194. package/models/operations/createimage.js +2 -16
  195. package/models/operations/createimage.js.map +1 -1
  196. package/models/operations/createprompt.d.ts +18 -6
  197. package/models/operations/createprompt.d.ts.map +1 -1
  198. package/models/operations/createprompt.js +8 -16
  199. package/models/operations/createprompt.js.map +1 -1
  200. package/models/operations/creatererank.d.ts +2 -8
  201. package/models/operations/creatererank.d.ts.map +1 -1
  202. package/models/operations/creatererank.js +2 -16
  203. package/models/operations/creatererank.js.map +1 -1
  204. package/models/operations/createrouterresponse.d.ts +80 -8
  205. package/models/operations/createrouterresponse.d.ts.map +1 -1
  206. package/models/operations/createrouterresponse.js +48 -5
  207. package/models/operations/createrouterresponse.js.map +1 -1
  208. package/models/operations/createtool.js +4 -4
  209. package/models/operations/deletesession.d.ts +12 -0
  210. package/models/operations/deletesession.d.ts.map +1 -0
  211. package/models/operations/deletesession.js +54 -0
  212. package/models/operations/deletesession.js.map +1 -0
  213. package/models/operations/getallprompts.d.ts +6 -2
  214. package/models/operations/getallprompts.d.ts.map +1 -1
  215. package/models/operations/getallprompts.js +4 -8
  216. package/models/operations/getallprompts.js.map +1 -1
  217. package/models/operations/getalltools.js +4 -4
  218. package/models/operations/getoneprompt.d.ts +6 -2
  219. package/models/operations/getoneprompt.d.ts.map +1 -1
  220. package/models/operations/getoneprompt.js +4 -8
  221. package/models/operations/getoneprompt.js.map +1 -1
  222. package/models/operations/getpromptversion.d.ts +6 -2
  223. package/models/operations/getpromptversion.d.ts.map +1 -1
  224. package/models/operations/getpromptversion.js +4 -8
  225. package/models/operations/getpromptversion.js.map +1 -1
  226. package/models/operations/getsession.d.ts +12 -0
  227. package/models/operations/getsession.d.ts.map +1 -0
  228. package/models/operations/getsession.js +54 -0
  229. package/models/operations/getsession.js.map +1 -0
  230. package/models/operations/getv2humanevalsets.js +2 -2
  231. package/models/operations/getv2humanevalsetsid.js +2 -2
  232. package/models/operations/hubget.d.ts +12 -0
  233. package/models/operations/hubget.d.ts.map +1 -0
  234. package/models/operations/hubget.js +49 -0
  235. package/models/operations/hubget.js.map +1 -0
  236. package/models/operations/hubsearch.d.ts +14 -0
  237. package/models/operations/hubsearch.d.ts.map +1 -0
  238. package/models/operations/hubsearch.js +50 -0
  239. package/models/operations/hubsearch.js.map +1 -0
  240. package/models/operations/index.d.ts +5 -0
  241. package/models/operations/index.d.ts.map +1 -1
  242. package/models/operations/index.js +5 -0
  243. package/models/operations/index.js.map +1 -1
  244. package/models/operations/listagents.d.ts +25 -5
  245. package/models/operations/listagents.d.ts.map +1 -1
  246. package/models/operations/listagents.js +10 -16
  247. package/models/operations/listagents.js.map +1 -1
  248. package/models/operations/listdatasetdatapoints.js +5 -5
  249. package/models/operations/listdatasets.js +1 -1
  250. package/models/operations/listpromptversions.d.ts +6 -2
  251. package/models/operations/listpromptversions.d.ts.map +1 -1
  252. package/models/operations/listpromptversions.js +4 -8
  253. package/models/operations/listpromptversions.js.map +1 -1
  254. package/models/operations/modelcreateopenailike.d.ts +4 -0
  255. package/models/operations/modelcreateopenailike.d.ts.map +1 -1
  256. package/models/operations/modelcreateopenailike.js +4 -0
  257. package/models/operations/modelcreateopenailike.js.map +1 -1
  258. package/models/operations/modelupdateopenailike.d.ts +4 -0
  259. package/models/operations/modelupdateopenailike.d.ts.map +1 -1
  260. package/models/operations/modelupdateopenailike.js +4 -0
  261. package/models/operations/modelupdateopenailike.js.map +1 -1
  262. package/models/operations/patchv2humanevalsetsid.js +2 -2
  263. package/models/operations/postv2feedbackevaluation.js +4 -4
  264. package/models/operations/postv2humanevalsets.js +2 -2
  265. package/models/operations/postv2routerocr.d.ts +24 -0
  266. package/models/operations/postv2routerocr.d.ts.map +1 -1
  267. package/models/operations/postv2routerocr.js +12 -0
  268. package/models/operations/postv2routerocr.js.map +1 -1
  269. package/models/operations/retrieveagentrequest.d.ts +25 -5
  270. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  271. package/models/operations/retrieveagentrequest.js +10 -16
  272. package/models/operations/retrieveagentrequest.js.map +1 -1
  273. package/models/operations/retrievedatapoint.js +5 -5
  274. package/models/operations/retrievedataset.js +1 -1
  275. package/models/operations/retrieveresponse.d.ts +1 -0
  276. package/models/operations/retrieveresponse.d.ts.map +1 -1
  277. package/models/operations/retrieveresponse.js +2 -0
  278. package/models/operations/retrieveresponse.js.map +1 -1
  279. package/models/operations/retrievetool.js +4 -4
  280. package/models/operations/runagent.d.ts +42 -8
  281. package/models/operations/runagent.d.ts.map +1 -1
  282. package/models/operations/runagent.js +11 -17
  283. package/models/operations/runagent.js.map +1 -1
  284. package/models/operations/streamrunagent.d.ts +42 -8
  285. package/models/operations/streamrunagent.d.ts.map +1 -1
  286. package/models/operations/streamrunagent.js +11 -17
  287. package/models/operations/streamrunagent.js.map +1 -1
  288. package/models/operations/updateagent.d.ts +67 -13
  289. package/models/operations/updateagent.d.ts.map +1 -1
  290. package/models/operations/updateagent.js +20 -32
  291. package/models/operations/updateagent.js.map +1 -1
  292. package/models/operations/updatedatapoint.js +5 -5
  293. package/models/operations/updatedataset.js +1 -1
  294. package/models/operations/updateprompt.d.ts +18 -6
  295. package/models/operations/updateprompt.d.ts.map +1 -1
  296. package/models/operations/updateprompt.js +8 -16
  297. package/models/operations/updateprompt.js.map +1 -1
  298. package/models/operations/updatesession.d.ts +15 -0
  299. package/models/operations/updatesession.d.ts.map +1 -0
  300. package/models/operations/updatesession.js +57 -0
  301. package/models/operations/updatesession.js.map +1 -0
  302. package/models/operations/updatetool.js +4 -4
  303. package/package.json +1 -1
  304. package/sdk/hub.d.ts +20 -0
  305. package/sdk/hub.d.ts.map +1 -0
  306. package/sdk/hub.js +32 -0
  307. package/sdk/hub.js.map +1 -0
  308. package/sdk/pii.d.ts +7 -0
  309. package/sdk/pii.d.ts.map +1 -1
  310. package/sdk/pii.js +10 -0
  311. package/sdk/pii.js.map +1 -1
  312. package/sdk/sdk.d.ts +6 -0
  313. package/sdk/sdk.d.ts.map +1 -1
  314. package/sdk/sdk.js +8 -0
  315. package/sdk/sdk.js.map +1 -1
  316. package/sdk/sessions.d.ts +55 -0
  317. package/sdk/sessions.d.ts.map +1 -0
  318. package/sdk/sessions.js +82 -0
  319. package/sdk/sessions.js.map +1 -0
  320. package/src/funcs/hubGet.ts +168 -0
  321. package/src/funcs/hubSearch.ts +169 -0
  322. package/src/funcs/piiCapabilities.ts +144 -0
  323. package/src/funcs/sessionsCreate.ts +162 -0
  324. package/src/funcs/sessionsDelete.ts +168 -0
  325. package/src/funcs/sessionsGet.ts +168 -0
  326. package/src/funcs/sessionsGetCount.ts +162 -0
  327. package/src/funcs/sessionsList.ts +162 -0
  328. package/src/funcs/sessionsListTags.ts +144 -0
  329. package/src/funcs/sessionsUpdate.ts +171 -0
  330. package/src/lib/config.ts +2 -2
  331. package/src/models/components/agentresponserequest.ts +14 -10
  332. package/src/models/components/agentstartedstreamingevent.ts +11 -1
  333. package/src/models/components/capabilitiesresponse.ts +96 -0
  334. package/src/models/components/createthreadrequest.ts +91 -0
  335. package/src/models/components/detectrequest.ts +48 -0
  336. package/src/models/components/entitylist.ts +37 -0
  337. package/src/models/components/gethubitemresponse.ts +37 -0
  338. package/src/models/components/getthreadcountrequest.ts +42 -0
  339. package/src/models/components/getthreadcountresponse.ts +31 -0
  340. package/src/models/components/guardrailruleplugin.ts +27 -0
  341. package/src/models/components/hubitem.ts +136 -0
  342. package/src/models/components/hubitemsummary.ts +60 -0
  343. package/src/models/components/hubsearchhit.ts +35 -0
  344. package/src/models/components/index.ts +21 -3
  345. package/src/models/components/listthreadsrequest.ts +42 -0
  346. package/src/models/components/listthreadsresponse.ts +41 -0
  347. package/src/models/components/openaipromptcacheoptions.ts +84 -0
  348. package/src/models/components/piiredactionplugin.ts +143 -0
  349. package/src/models/components/publicplugin.ts +17 -21
  350. package/src/models/components/publicresponseresource.ts +7 -0
  351. package/src/models/components/reasoningpart.ts +1 -1
  352. package/src/models/components/redactrequest.ts +52 -0
  353. package/src/models/components/responsehealingplugin.ts +4 -27
  354. package/src/models/components/routingruleplugin.ts +27 -0
  355. package/src/models/components/searchhubitemsresponse.ts +32 -0
  356. package/src/models/components/sessioninterval.ts +26 -0
  357. package/src/models/components/textcontentpartschema.ts +13 -8
  358. package/src/models/components/thread.ts +101 -0
  359. package/src/models/components/threadbilling.ts +68 -0
  360. package/src/models/components/threadfilters.ts +66 -0
  361. package/src/models/components/threadkind.ts +20 -0
  362. package/src/models/components/threadusage.ts +68 -0
  363. package/src/models/components/tracescrubbingplugin.ts +4 -24
  364. package/src/models/components/updatethreadrequest.ts +105 -0
  365. package/src/models/operations/createagentrequest.ts +85 -87
  366. package/src/models/operations/createchatcompletion.ts +18 -26
  367. package/src/models/operations/createcompletion.ts +3 -51
  368. package/src/models/operations/createdataset.ts +1 -1
  369. package/src/models/operations/createdatasetitem.ts +5 -5
  370. package/src/models/operations/createimage.ts +3 -51
  371. package/src/models/operations/createprompt.ts +31 -43
  372. package/src/models/operations/creatererank.ts +3 -51
  373. package/src/models/operations/createrouterresponse.ts +128 -9
  374. package/src/models/operations/createtool.ts +4 -4
  375. package/src/models/operations/deletesession.ts +36 -0
  376. package/src/models/operations/getallprompts.ts +13 -17
  377. package/src/models/operations/getalltools.ts +4 -4
  378. package/src/models/operations/getoneprompt.ts +13 -17
  379. package/src/models/operations/getpromptversion.ts +13 -17
  380. package/src/models/operations/getsession.ts +36 -0
  381. package/src/models/operations/getv2humanevalsets.ts +2 -2
  382. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  383. package/src/models/operations/hubget.ts +27 -0
  384. package/src/models/operations/hubsearch.ts +34 -0
  385. package/src/models/operations/index.ts +5 -0
  386. package/src/models/operations/listagents.ts +37 -35
  387. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  388. package/src/models/operations/listdatasets.ts +1 -1
  389. package/src/models/operations/listpromptversions.ts +13 -17
  390. package/src/models/operations/modelcreateopenailike.ts +8 -0
  391. package/src/models/operations/modelupdateopenailike.ts +8 -0
  392. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  393. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  394. package/src/models/operations/postv2humanevalsets.ts +2 -2
  395. package/src/models/operations/postv2routerocr.ts +36 -0
  396. package/src/models/operations/retrieveagentrequest.ts +37 -35
  397. package/src/models/operations/retrievedatapoint.ts +5 -5
  398. package/src/models/operations/retrievedataset.ts +1 -1
  399. package/src/models/operations/retrieveresponse.ts +5 -0
  400. package/src/models/operations/retrievetool.ts +4 -4
  401. package/src/models/operations/runagent.ts +49 -53
  402. package/src/models/operations/streamrunagent.ts +49 -53
  403. package/src/models/operations/updateagent.ts +85 -87
  404. package/src/models/operations/updatedatapoint.ts +5 -5
  405. package/src/models/operations/updatedataset.ts +1 -1
  406. package/src/models/operations/updateprompt.ts +31 -43
  407. package/src/models/operations/updatesession.ts +41 -0
  408. package/src/models/operations/updatetool.ts +4 -4
  409. package/src/sdk/hub.ts +46 -0
  410. package/src/sdk/pii.ts +16 -0
  411. package/src/sdk/sdk.ts +12 -0
  412. package/src/sdk/sessions.ts +134 -0
  413. package/models/components/piiredactionpluginauto.d.ts +0 -126
  414. package/models/components/piiredactionpluginauto.d.ts.map +0 -1
  415. package/models/components/piiredactionpluginauto.js +0 -156
  416. package/models/components/piiredactionpluginauto.js.map +0 -1
  417. package/models/components/piiredactionpluginen.d.ts +0 -145
  418. package/models/components/piiredactionpluginen.d.ts.map +0 -1
  419. package/models/components/piiredactionpluginen.js +0 -167
  420. package/models/components/piiredactionpluginen.js.map +0 -1
  421. package/models/components/piiredactionpluginnl.d.ts +0 -137
  422. package/models/components/piiredactionpluginnl.d.ts.map +0 -1
  423. package/models/components/piiredactionpluginnl.js +0 -158
  424. package/models/components/piiredactionpluginnl.js.map +0 -1
  425. package/src/models/components/piiredactionpluginauto.ts +0 -185
  426. package/src/models/components/piiredactionpluginen.ts +0 -222
  427. package/src/models/components/piiredactionpluginnl.ts +0 -218
@@ -199,11 +199,9 @@ export type RunAgentModelConfigurationGuardrails = {
199
199
  };
200
200
 
201
201
  export type RunAgentModelConfigurationPlugins =
202
- | components.PIIRedactionPluginEn
203
- | components.PIIRedactionPluginNl
204
- | components.TraceScrubbingPlugin
205
- | components.PIIRedactionPluginAuto
206
- | components.ResponseHealingPlugin;
202
+ | (components.PIIRedactionPlugin & { id: "pii_redaction" })
203
+ | components.ResponseHealingPlugin
204
+ | components.TraceScrubbingPlugin;
207
205
 
208
206
  export type RunAgentModelConfigurationFallbacks = {
209
207
  /**
@@ -429,11 +427,9 @@ export type RunAgentModelConfigurationParameters = {
429
427
  */
430
428
  plugins?:
431
429
  | Array<
432
- | components.PIIRedactionPluginEn
433
- | components.PIIRedactionPluginNl
434
- | components.TraceScrubbingPlugin
435
- | components.PIIRedactionPluginAuto
430
+ | (components.PIIRedactionPlugin & { id: "pii_redaction" })
436
431
  | components.ResponseHealingPlugin
432
+ | components.TraceScrubbingPlugin
437
433
  >
438
434
  | undefined;
439
435
  /**
@@ -694,11 +690,9 @@ export type RunAgentFallbackModelConfigurationGuardrails = {
694
690
  };
695
691
 
696
692
  export type RunAgentFallbackModelConfigurationPlugins =
697
- | components.PIIRedactionPluginEn
698
- | components.PIIRedactionPluginNl
699
- | components.TraceScrubbingPlugin
700
- | components.PIIRedactionPluginAuto
701
- | components.ResponseHealingPlugin;
693
+ | (components.PIIRedactionPlugin & { id: "pii_redaction" })
694
+ | components.ResponseHealingPlugin
695
+ | components.TraceScrubbingPlugin;
702
696
 
703
697
  export type RunAgentFallbackModelConfigurationFallbacks = {
704
698
  /**
@@ -933,11 +927,9 @@ export type RunAgentFallbackModelConfigurationParameters = {
933
927
  */
934
928
  plugins?:
935
929
  | Array<
936
- | components.PIIRedactionPluginEn
937
- | components.PIIRedactionPluginNl
938
- | components.TraceScrubbingPlugin
939
- | components.PIIRedactionPluginAuto
930
+ | (components.PIIRedactionPlugin & { id: "pii_redaction" })
940
931
  | components.ResponseHealingPlugin
932
+ | components.TraceScrubbingPlugin
941
933
  >
942
934
  | undefined;
943
935
  /**
@@ -1631,6 +1623,10 @@ export type RunAgentEvaluators = {
1631
1623
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1632
1624
  */
1633
1625
  executeOn: RunAgentExecuteOn;
1626
+ /**
1627
+ * Evaluator-specific configuration, passed through to the evaluator at run time. For orq_pii_detection this carries regions, entities, entity_thresholds, language and threshold, and is validated against PIIDetectionGuardrailOptions: regions and entities are two mutually exclusive coverage modes, and every entity_thresholds key must also appear in entities. on_failure is rejected: an evaluator acting as a guardrail always fails closed.
1628
+ */
1629
+ options?: { [k: string]: any } | undefined;
1634
1630
  };
1635
1631
 
1636
1632
  /**
@@ -1660,6 +1656,10 @@ export type RunAgentGuardrails = {
1660
1656
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1661
1657
  */
1662
1658
  executeOn: RunAgentAgentsExecuteOn;
1659
+ /**
1660
+ * Evaluator-specific configuration, passed through to the evaluator at run time. For orq_pii_detection this carries regions, entities, entity_thresholds, language and threshold, and is validated against PIIDetectionGuardrailOptions: regions and entities are two mutually exclusive coverage modes, and every entity_thresholds key must also appear in entities. on_failure is rejected: an evaluator acting as a guardrail always fails closed.
1661
+ */
1662
+ options?: { [k: string]: any } | undefined;
1663
1663
  };
1664
1664
 
1665
1665
  export type RunAgentSettings = {
@@ -2291,11 +2291,9 @@ export function runAgentModelConfigurationGuardrailsToJSON(
2291
2291
 
2292
2292
  /** @internal */
2293
2293
  export type RunAgentModelConfigurationPlugins$Outbound =
2294
- | components.PIIRedactionPluginEn$Outbound
2295
- | components.PIIRedactionPluginNl$Outbound
2296
- | components.TraceScrubbingPlugin$Outbound
2297
- | components.PIIRedactionPluginAuto$Outbound
2298
- | components.ResponseHealingPlugin$Outbound;
2294
+ | (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
2295
+ | components.ResponseHealingPlugin$Outbound
2296
+ | components.TraceScrubbingPlugin$Outbound;
2299
2297
 
2300
2298
  /** @internal */
2301
2299
  export const RunAgentModelConfigurationPlugins$outboundSchema: z.ZodType<
@@ -2303,11 +2301,11 @@ export const RunAgentModelConfigurationPlugins$outboundSchema: z.ZodType<
2303
2301
  z.ZodTypeDef,
2304
2302
  RunAgentModelConfigurationPlugins
2305
2303
  > = z.union([
2306
- components.PIIRedactionPluginEn$outboundSchema,
2307
- components.PIIRedactionPluginNl$outboundSchema,
2308
- components.TraceScrubbingPlugin$outboundSchema,
2309
- components.PIIRedactionPluginAuto$outboundSchema,
2304
+ components.PIIRedactionPlugin$outboundSchema.and(
2305
+ z.object({ id: z.literal("pii_redaction") }),
2306
+ ),
2310
2307
  components.ResponseHealingPlugin$outboundSchema,
2308
+ components.TraceScrubbingPlugin$outboundSchema,
2311
2309
  ]);
2312
2310
 
2313
2311
  export function runAgentModelConfigurationPluginsToJSON(
@@ -2546,11 +2544,9 @@ export type RunAgentModelConfigurationParameters$Outbound = {
2546
2544
  guardrails?: Array<RunAgentModelConfigurationGuardrails$Outbound> | undefined;
2547
2545
  plugins?:
2548
2546
  | Array<
2549
- | components.PIIRedactionPluginEn$Outbound
2550
- | components.PIIRedactionPluginNl$Outbound
2551
- | components.TraceScrubbingPlugin$Outbound
2552
- | components.PIIRedactionPluginAuto$Outbound
2547
+ | (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
2553
2548
  | components.ResponseHealingPlugin$Outbound
2549
+ | components.TraceScrubbingPlugin$Outbound
2554
2550
  >
2555
2551
  | undefined;
2556
2552
  fallbacks?: Array<RunAgentModelConfigurationFallbacks$Outbound> | undefined;
@@ -2603,11 +2599,11 @@ export const RunAgentModelConfigurationParameters$outboundSchema: z.ZodType<
2603
2599
  ).optional(),
2604
2600
  plugins: z.array(
2605
2601
  z.union([
2606
- components.PIIRedactionPluginEn$outboundSchema,
2607
- components.PIIRedactionPluginNl$outboundSchema,
2608
- components.TraceScrubbingPlugin$outboundSchema,
2609
- components.PIIRedactionPluginAuto$outboundSchema,
2602
+ components.PIIRedactionPlugin$outboundSchema.and(
2603
+ z.object({ id: z.literal("pii_redaction") }),
2604
+ ),
2610
2605
  components.ResponseHealingPlugin$outboundSchema,
2606
+ components.TraceScrubbingPlugin$outboundSchema,
2611
2607
  ]),
2612
2608
  ).optional(),
2613
2609
  fallbacks: z.array(
@@ -3089,11 +3085,9 @@ export function runAgentFallbackModelConfigurationGuardrailsToJSON(
3089
3085
 
3090
3086
  /** @internal */
3091
3087
  export type RunAgentFallbackModelConfigurationPlugins$Outbound =
3092
- | components.PIIRedactionPluginEn$Outbound
3093
- | components.PIIRedactionPluginNl$Outbound
3094
- | components.TraceScrubbingPlugin$Outbound
3095
- | components.PIIRedactionPluginAuto$Outbound
3096
- | components.ResponseHealingPlugin$Outbound;
3088
+ | (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
3089
+ | components.ResponseHealingPlugin$Outbound
3090
+ | components.TraceScrubbingPlugin$Outbound;
3097
3091
 
3098
3092
  /** @internal */
3099
3093
  export const RunAgentFallbackModelConfigurationPlugins$outboundSchema:
@@ -3102,11 +3096,11 @@ export const RunAgentFallbackModelConfigurationPlugins$outboundSchema:
3102
3096
  z.ZodTypeDef,
3103
3097
  RunAgentFallbackModelConfigurationPlugins
3104
3098
  > = z.union([
3105
- components.PIIRedactionPluginEn$outboundSchema,
3106
- components.PIIRedactionPluginNl$outboundSchema,
3107
- components.TraceScrubbingPlugin$outboundSchema,
3108
- components.PIIRedactionPluginAuto$outboundSchema,
3099
+ components.PIIRedactionPlugin$outboundSchema.and(
3100
+ z.object({ id: z.literal("pii_redaction") }),
3101
+ ),
3109
3102
  components.ResponseHealingPlugin$outboundSchema,
3103
+ components.TraceScrubbingPlugin$outboundSchema,
3110
3104
  ]);
3111
3105
 
3112
3106
  export function runAgentFallbackModelConfigurationPluginsToJSON(
@@ -3362,11 +3356,9 @@ export type RunAgentFallbackModelConfigurationParameters$Outbound = {
3362
3356
  | undefined;
3363
3357
  plugins?:
3364
3358
  | Array<
3365
- | components.PIIRedactionPluginEn$Outbound
3366
- | components.PIIRedactionPluginNl$Outbound
3367
- | components.TraceScrubbingPlugin$Outbound
3368
- | components.PIIRedactionPluginAuto$Outbound
3359
+ | (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
3369
3360
  | components.ResponseHealingPlugin$Outbound
3361
+ | components.TraceScrubbingPlugin$Outbound
3370
3362
  >
3371
3363
  | undefined;
3372
3364
  fallbacks?:
@@ -3427,11 +3419,11 @@ export const RunAgentFallbackModelConfigurationParameters$outboundSchema:
3427
3419
  ).optional(),
3428
3420
  plugins: z.array(
3429
3421
  z.union([
3430
- components.PIIRedactionPluginEn$outboundSchema,
3431
- components.PIIRedactionPluginNl$outboundSchema,
3432
- components.TraceScrubbingPlugin$outboundSchema,
3433
- components.PIIRedactionPluginAuto$outboundSchema,
3422
+ components.PIIRedactionPlugin$outboundSchema.and(
3423
+ z.object({ id: z.literal("pii_redaction") }),
3424
+ ),
3434
3425
  components.ResponseHealingPlugin$outboundSchema,
3426
+ components.TraceScrubbingPlugin$outboundSchema,
3435
3427
  ]),
3436
3428
  ).optional(),
3437
3429
  fallbacks: z.array(
@@ -3898,7 +3890,7 @@ export const Tools$outboundSchema: z.ZodType<
3898
3890
  z.ZodTypeDef,
3899
3891
  Tools
3900
3892
  > = z.object({
3901
- id: z.string().default("01M1NQ4PMH23SM3S5WSKMEFRA0"),
3893
+ id: z.string().default("01M1WJDNZCP58N8CTF4CG3V87C"),
3902
3894
  name: z.string(),
3903
3895
  description: z.string().optional(),
3904
3896
  schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
@@ -4542,6 +4534,7 @@ export type RunAgentEvaluators$Outbound = {
4542
4534
  id: string;
4543
4535
  sample_rate: number;
4544
4536
  execute_on: string;
4537
+ options?: { [k: string]: any } | undefined;
4545
4538
  };
4546
4539
 
4547
4540
  /** @internal */
@@ -4553,6 +4546,7 @@ export const RunAgentEvaluators$outboundSchema: z.ZodType<
4553
4546
  id: z.string(),
4554
4547
  sampleRate: z.number().default(50),
4555
4548
  executeOn: RunAgentExecuteOn$outboundSchema,
4549
+ options: z.record(z.any()).optional(),
4556
4550
  }).transform((v) => {
4557
4551
  return remap$(v, {
4558
4552
  sampleRate: "sample_rate",
@@ -4578,6 +4572,7 @@ export type RunAgentGuardrails$Outbound = {
4578
4572
  id: string;
4579
4573
  sample_rate: number;
4580
4574
  execute_on: string;
4575
+ options?: { [k: string]: any } | undefined;
4581
4576
  };
4582
4577
 
4583
4578
  /** @internal */
@@ -4589,6 +4584,7 @@ export const RunAgentGuardrails$outboundSchema: z.ZodType<
4589
4584
  id: z.string(),
4590
4585
  sampleRate: z.number().default(50),
4591
4586
  executeOn: RunAgentAgentsExecuteOn$outboundSchema,
4587
+ options: z.record(z.any()).optional(),
4592
4588
  }).transform((v) => {
4593
4589
  return remap$(v, {
4594
4590
  sampleRate: "sample_rate",
@@ -203,11 +203,9 @@ export type StreamRunAgentModelConfigurationGuardrails = {
203
203
  };
204
204
 
205
205
  export type StreamRunAgentModelConfigurationPlugins =
206
- | components.PIIRedactionPluginEn
207
- | components.PIIRedactionPluginNl
208
- | components.TraceScrubbingPlugin
209
- | components.PIIRedactionPluginAuto
210
- | components.ResponseHealingPlugin;
206
+ | (components.PIIRedactionPlugin & { id: "pii_redaction" })
207
+ | components.ResponseHealingPlugin
208
+ | components.TraceScrubbingPlugin;
211
209
 
212
210
  export type StreamRunAgentModelConfigurationFallbacks = {
213
211
  /**
@@ -440,11 +438,9 @@ export type StreamRunAgentModelConfigurationParameters = {
440
438
  */
441
439
  plugins?:
442
440
  | Array<
443
- | components.PIIRedactionPluginEn
444
- | components.PIIRedactionPluginNl
445
- | components.TraceScrubbingPlugin
446
- | components.PIIRedactionPluginAuto
441
+ | (components.PIIRedactionPlugin & { id: "pii_redaction" })
447
442
  | components.ResponseHealingPlugin
443
+ | components.TraceScrubbingPlugin
448
444
  >
449
445
  | undefined;
450
446
  /**
@@ -712,11 +708,9 @@ export type StreamRunAgentFallbackModelConfigurationGuardrails = {
712
708
  };
713
709
 
714
710
  export type StreamRunAgentFallbackModelConfigurationPlugins =
715
- | components.PIIRedactionPluginEn
716
- | components.PIIRedactionPluginNl
717
- | components.TraceScrubbingPlugin
718
- | components.PIIRedactionPluginAuto
719
- | components.ResponseHealingPlugin;
711
+ | (components.PIIRedactionPlugin & { id: "pii_redaction" })
712
+ | components.ResponseHealingPlugin
713
+ | components.TraceScrubbingPlugin;
720
714
 
721
715
  export type StreamRunAgentFallbackModelConfigurationFallbacks = {
722
716
  /**
@@ -953,11 +947,9 @@ export type StreamRunAgentFallbackModelConfigurationParameters = {
953
947
  */
954
948
  plugins?:
955
949
  | Array<
956
- | components.PIIRedactionPluginEn
957
- | components.PIIRedactionPluginNl
958
- | components.TraceScrubbingPlugin
959
- | components.PIIRedactionPluginAuto
950
+ | (components.PIIRedactionPlugin & { id: "pii_redaction" })
960
951
  | components.ResponseHealingPlugin
952
+ | components.TraceScrubbingPlugin
961
953
  >
962
954
  | undefined;
963
955
  /**
@@ -1673,6 +1665,10 @@ export type StreamRunAgentEvaluators = {
1673
1665
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1674
1666
  */
1675
1667
  executeOn: StreamRunAgentExecuteOn;
1668
+ /**
1669
+ * Evaluator-specific configuration, passed through to the evaluator at run time. For orq_pii_detection this carries regions, entities, entity_thresholds, language and threshold, and is validated against PIIDetectionGuardrailOptions: regions and entities are two mutually exclusive coverage modes, and every entity_thresholds key must also appear in entities. on_failure is rejected: an evaluator acting as a guardrail always fails closed.
1670
+ */
1671
+ options?: { [k: string]: any } | undefined;
1676
1672
  };
1677
1673
 
1678
1674
  /**
@@ -1702,6 +1698,10 @@ export type StreamRunAgentGuardrails = {
1702
1698
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1703
1699
  */
1704
1700
  executeOn: StreamRunAgentAgentsExecuteOn;
1701
+ /**
1702
+ * Evaluator-specific configuration, passed through to the evaluator at run time. For orq_pii_detection this carries regions, entities, entity_thresholds, language and threshold, and is validated against PIIDetectionGuardrailOptions: regions and entities are two mutually exclusive coverage modes, and every entity_thresholds key must also appear in entities. on_failure is rejected: an evaluator acting as a guardrail always fails closed.
1703
+ */
1704
+ options?: { [k: string]: any } | undefined;
1705
1705
  };
1706
1706
 
1707
1707
  export type StreamRunAgentSettings = {
@@ -2268,11 +2268,9 @@ export function streamRunAgentModelConfigurationGuardrailsToJSON(
2268
2268
 
2269
2269
  /** @internal */
2270
2270
  export type StreamRunAgentModelConfigurationPlugins$Outbound =
2271
- | components.PIIRedactionPluginEn$Outbound
2272
- | components.PIIRedactionPluginNl$Outbound
2273
- | components.TraceScrubbingPlugin$Outbound
2274
- | components.PIIRedactionPluginAuto$Outbound
2275
- | components.ResponseHealingPlugin$Outbound;
2271
+ | (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
2272
+ | components.ResponseHealingPlugin$Outbound
2273
+ | components.TraceScrubbingPlugin$Outbound;
2276
2274
 
2277
2275
  /** @internal */
2278
2276
  export const StreamRunAgentModelConfigurationPlugins$outboundSchema: z.ZodType<
@@ -2280,11 +2278,11 @@ export const StreamRunAgentModelConfigurationPlugins$outboundSchema: z.ZodType<
2280
2278
  z.ZodTypeDef,
2281
2279
  StreamRunAgentModelConfigurationPlugins
2282
2280
  > = z.union([
2283
- components.PIIRedactionPluginEn$outboundSchema,
2284
- components.PIIRedactionPluginNl$outboundSchema,
2285
- components.TraceScrubbingPlugin$outboundSchema,
2286
- components.PIIRedactionPluginAuto$outboundSchema,
2281
+ components.PIIRedactionPlugin$outboundSchema.and(
2282
+ z.object({ id: z.literal("pii_redaction") }),
2283
+ ),
2287
2284
  components.ResponseHealingPlugin$outboundSchema,
2285
+ components.TraceScrubbingPlugin$outboundSchema,
2288
2286
  ]);
2289
2287
 
2290
2288
  export function streamRunAgentModelConfigurationPluginsToJSON(
@@ -2538,11 +2536,9 @@ export type StreamRunAgentModelConfigurationParameters$Outbound = {
2538
2536
  | undefined;
2539
2537
  plugins?:
2540
2538
  | Array<
2541
- | components.PIIRedactionPluginEn$Outbound
2542
- | components.PIIRedactionPluginNl$Outbound
2543
- | components.TraceScrubbingPlugin$Outbound
2544
- | components.PIIRedactionPluginAuto$Outbound
2539
+ | (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
2545
2540
  | components.ResponseHealingPlugin$Outbound
2541
+ | components.TraceScrubbingPlugin$Outbound
2546
2542
  >
2547
2543
  | undefined;
2548
2544
  fallbacks?:
@@ -2600,11 +2596,11 @@ export const StreamRunAgentModelConfigurationParameters$outboundSchema:
2600
2596
  ).optional(),
2601
2597
  plugins: z.array(
2602
2598
  z.union([
2603
- components.PIIRedactionPluginEn$outboundSchema,
2604
- components.PIIRedactionPluginNl$outboundSchema,
2605
- components.TraceScrubbingPlugin$outboundSchema,
2606
- components.PIIRedactionPluginAuto$outboundSchema,
2599
+ components.PIIRedactionPlugin$outboundSchema.and(
2600
+ z.object({ id: z.literal("pii_redaction") }),
2601
+ ),
2607
2602
  components.ResponseHealingPlugin$outboundSchema,
2603
+ components.TraceScrubbingPlugin$outboundSchema,
2608
2604
  ]),
2609
2605
  ).optional(),
2610
2606
  fallbacks: z.array(
@@ -3105,11 +3101,9 @@ export function streamRunAgentFallbackModelConfigurationGuardrailsToJSON(
3105
3101
 
3106
3102
  /** @internal */
3107
3103
  export type StreamRunAgentFallbackModelConfigurationPlugins$Outbound =
3108
- | components.PIIRedactionPluginEn$Outbound
3109
- | components.PIIRedactionPluginNl$Outbound
3110
- | components.TraceScrubbingPlugin$Outbound
3111
- | components.PIIRedactionPluginAuto$Outbound
3112
- | components.ResponseHealingPlugin$Outbound;
3104
+ | (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
3105
+ | components.ResponseHealingPlugin$Outbound
3106
+ | components.TraceScrubbingPlugin$Outbound;
3113
3107
 
3114
3108
  /** @internal */
3115
3109
  export const StreamRunAgentFallbackModelConfigurationPlugins$outboundSchema:
@@ -3118,11 +3112,11 @@ export const StreamRunAgentFallbackModelConfigurationPlugins$outboundSchema:
3118
3112
  z.ZodTypeDef,
3119
3113
  StreamRunAgentFallbackModelConfigurationPlugins
3120
3114
  > = z.union([
3121
- components.PIIRedactionPluginEn$outboundSchema,
3122
- components.PIIRedactionPluginNl$outboundSchema,
3123
- components.TraceScrubbingPlugin$outboundSchema,
3124
- components.PIIRedactionPluginAuto$outboundSchema,
3115
+ components.PIIRedactionPlugin$outboundSchema.and(
3116
+ z.object({ id: z.literal("pii_redaction") }),
3117
+ ),
3125
3118
  components.ResponseHealingPlugin$outboundSchema,
3119
+ components.TraceScrubbingPlugin$outboundSchema,
3126
3120
  ]);
3127
3121
 
3128
3122
  export function streamRunAgentFallbackModelConfigurationPluginsToJSON(
@@ -3381,11 +3375,9 @@ export type StreamRunAgentFallbackModelConfigurationParameters$Outbound = {
3381
3375
  | undefined;
3382
3376
  plugins?:
3383
3377
  | Array<
3384
- | components.PIIRedactionPluginEn$Outbound
3385
- | components.PIIRedactionPluginNl$Outbound
3386
- | components.TraceScrubbingPlugin$Outbound
3387
- | components.PIIRedactionPluginAuto$Outbound
3378
+ | (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
3388
3379
  | components.ResponseHealingPlugin$Outbound
3380
+ | components.TraceScrubbingPlugin$Outbound
3389
3381
  >
3390
3382
  | undefined;
3391
3383
  fallbacks?:
@@ -3452,11 +3444,11 @@ export const StreamRunAgentFallbackModelConfigurationParameters$outboundSchema:
3452
3444
  ).optional(),
3453
3445
  plugins: z.array(
3454
3446
  z.union([
3455
- components.PIIRedactionPluginEn$outboundSchema,
3456
- components.PIIRedactionPluginNl$outboundSchema,
3457
- components.TraceScrubbingPlugin$outboundSchema,
3458
- components.PIIRedactionPluginAuto$outboundSchema,
3447
+ components.PIIRedactionPlugin$outboundSchema.and(
3448
+ z.object({ id: z.literal("pii_redaction") }),
3449
+ ),
3459
3450
  components.ResponseHealingPlugin$outboundSchema,
3451
+ components.TraceScrubbingPlugin$outboundSchema,
3460
3452
  ]),
3461
3453
  ).optional(),
3462
3454
  fallbacks: z.array(
@@ -3957,7 +3949,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
3957
3949
  z.ZodTypeDef,
3958
3950
  AgentToolInputRunTools
3959
3951
  > = z.object({
3960
- id: z.string().default("01M1NQ4PN1KK5ZM8GZMKJXZDDN"),
3952
+ id: z.string().default("01M1WJDP008923ZGT3ERQ89TST"),
3961
3953
  name: z.string(),
3962
3954
  description: z.string().optional(),
3963
3955
  schema: z.lazy(() =>
@@ -4711,6 +4703,7 @@ export type StreamRunAgentEvaluators$Outbound = {
4711
4703
  id: string;
4712
4704
  sample_rate: number;
4713
4705
  execute_on: string;
4706
+ options?: { [k: string]: any } | undefined;
4714
4707
  };
4715
4708
 
4716
4709
  /** @internal */
@@ -4722,6 +4715,7 @@ export const StreamRunAgentEvaluators$outboundSchema: z.ZodType<
4722
4715
  id: z.string(),
4723
4716
  sampleRate: z.number().default(50),
4724
4717
  executeOn: StreamRunAgentExecuteOn$outboundSchema,
4718
+ options: z.record(z.any()).optional(),
4725
4719
  }).transform((v) => {
4726
4720
  return remap$(v, {
4727
4721
  sampleRate: "sample_rate",
@@ -4747,6 +4741,7 @@ export type StreamRunAgentGuardrails$Outbound = {
4747
4741
  id: string;
4748
4742
  sample_rate: number;
4749
4743
  execute_on: string;
4744
+ options?: { [k: string]: any } | undefined;
4750
4745
  };
4751
4746
 
4752
4747
  /** @internal */
@@ -4758,6 +4753,7 @@ export const StreamRunAgentGuardrails$outboundSchema: z.ZodType<
4758
4753
  id: z.string(),
4759
4754
  sampleRate: z.number().default(50),
4760
4755
  executeOn: StreamRunAgentAgentsExecuteOn$outboundSchema,
4756
+ options: z.record(z.any()).optional(),
4761
4757
  }).transform((v) => {
4762
4758
  return remap$(v, {
4763
4759
  sampleRate: "sample_rate",