@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
@@ -165,11 +165,6 @@ export type CreateImageTimeout = {
165
165
  callTimeout: number;
166
166
  };
167
167
 
168
- export type CreateImagePlugins =
169
- | components.PIIRedactionPluginEn
170
- | components.PIIRedactionPluginNl
171
- | components.PIIRedactionPluginAuto;
172
-
173
168
  /**
174
169
  * Retry configuration for the request
175
170
  */
@@ -364,13 +359,7 @@ export type CreateImageRequestBody = {
364
359
  /**
365
360
  * 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.
366
361
  */
367
- plugins?:
368
- | Array<
369
- | components.PIIRedactionPluginEn
370
- | components.PIIRedactionPluginNl
371
- | components.PIIRedactionPluginAuto
372
- >
373
- | undefined;
362
+ plugins?: Array<components.PIIRedactionPlugin> | undefined;
374
363
  orq?: CreateImageOrq | undefined;
375
364
  };
376
365
 
@@ -621,31 +610,6 @@ export function createImageTimeoutToJSON(
621
610
  );
622
611
  }
623
612
 
624
- /** @internal */
625
- export type CreateImagePlugins$Outbound =
626
- | components.PIIRedactionPluginEn$Outbound
627
- | components.PIIRedactionPluginNl$Outbound
628
- | components.PIIRedactionPluginAuto$Outbound;
629
-
630
- /** @internal */
631
- export const CreateImagePlugins$outboundSchema: z.ZodType<
632
- CreateImagePlugins$Outbound,
633
- z.ZodTypeDef,
634
- CreateImagePlugins
635
- > = z.union([
636
- components.PIIRedactionPluginEn$outboundSchema,
637
- components.PIIRedactionPluginNl$outboundSchema,
638
- components.PIIRedactionPluginAuto$outboundSchema,
639
- ]);
640
-
641
- export function createImagePluginsToJSON(
642
- createImagePlugins: CreateImagePlugins,
643
- ): string {
644
- return JSON.stringify(
645
- CreateImagePlugins$outboundSchema.parse(createImagePlugins),
646
- );
647
- }
648
-
649
613
  /** @internal */
650
614
  export type CreateImageRouterImagesGenerationsRetry$Outbound = {
651
615
  count: number;
@@ -924,13 +888,7 @@ export type CreateImageRequestBody$Outbound = {
924
888
  cache?: CreateImageCache$Outbound | undefined;
925
889
  load_balancer?: CreateImageLoadBalancer1$Outbound | undefined;
926
890
  timeout?: CreateImageTimeout$Outbound | undefined;
927
- plugins?:
928
- | Array<
929
- | components.PIIRedactionPluginEn$Outbound
930
- | components.PIIRedactionPluginNl$Outbound
931
- | components.PIIRedactionPluginAuto$Outbound
932
- >
933
- | undefined;
891
+ plugins?: Array<components.PIIRedactionPlugin$Outbound> | undefined;
934
892
  orq?: CreateImageOrq$Outbound | undefined;
935
893
  };
936
894
 
@@ -961,13 +919,7 @@ export const CreateImageRequestBody$outboundSchema: z.ZodType<
961
919
  loadBalancer: z.lazy(() => CreateImageLoadBalancer1$outboundSchema)
962
920
  .optional(),
963
921
  timeout: z.lazy(() => CreateImageTimeout$outboundSchema).optional(),
964
- plugins: z.array(
965
- z.union([
966
- components.PIIRedactionPluginEn$outboundSchema,
967
- components.PIIRedactionPluginNl$outboundSchema,
968
- components.PIIRedactionPluginAuto$outboundSchema,
969
- ]),
970
- ).optional(),
922
+ plugins: z.array(components.PIIRedactionPlugin$outboundSchema).optional(),
971
923
  orq: z.lazy(() => CreateImageOrq$outboundSchema).optional(),
972
924
  }).transform((v) => {
973
925
  return remap$(v, {
@@ -639,11 +639,9 @@ export type CreatePromptGuardrails = {
639
639
  };
640
640
 
641
641
  export type CreatePromptPlugins =
642
- | components.PIIRedactionPluginEn
643
- | components.PIIRedactionPluginNl
644
- | components.TraceScrubbingPlugin
645
- | components.PIIRedactionPluginAuto
646
- | components.ResponseHealingPlugin;
642
+ | (components.PIIRedactionPlugin & { id: "pii_redaction" })
643
+ | components.ResponseHealingPlugin
644
+ | components.TraceScrubbingPlugin;
647
645
 
648
646
  export type CreatePromptFallbacks = {
649
647
  /**
@@ -912,11 +910,9 @@ export type PromptInput = {
912
910
  */
913
911
  plugins?:
914
912
  | Array<
915
- | components.PIIRedactionPluginEn
916
- | components.PIIRedactionPluginNl
917
- | components.TraceScrubbingPlugin
918
- | components.PIIRedactionPluginAuto
913
+ | (components.PIIRedactionPlugin & { id: "pii_redaction" })
919
914
  | components.ResponseHealingPlugin
915
+ | components.TraceScrubbingPlugin
920
916
  >
921
917
  | undefined;
922
918
  /**
@@ -1812,11 +1808,9 @@ export type CreatePromptPromptsGuardrails = {
1812
1808
  };
1813
1809
 
1814
1810
  export type CreatePromptPromptsPlugins =
1815
- | components.PIIRedactionPluginEn
1816
- | components.PIIRedactionPluginNl
1817
- | components.TraceScrubbingPlugin
1818
- | components.PIIRedactionPluginAuto
1819
- | components.ResponseHealingPlugin;
1811
+ | (components.PIIRedactionPlugin & { id: "pii_redaction" })
1812
+ | components.ResponseHealingPlugin
1813
+ | components.TraceScrubbingPlugin;
1820
1814
 
1821
1815
  export type CreatePromptPromptsFallbacks = {
1822
1816
  /**
@@ -2414,11 +2408,9 @@ export type PromptField = {
2414
2408
  */
2415
2409
  plugins?:
2416
2410
  | Array<
2417
- | components.PIIRedactionPluginEn
2418
- | components.PIIRedactionPluginNl
2419
- | components.TraceScrubbingPlugin
2420
- | components.PIIRedactionPluginAuto
2411
+ | (components.PIIRedactionPlugin & { id: "pii_redaction" })
2421
2412
  | components.ResponseHealingPlugin
2413
+ | components.TraceScrubbingPlugin
2422
2414
  >
2423
2415
  | undefined;
2424
2416
  /**
@@ -3578,11 +3570,9 @@ export function createPromptGuardrailsToJSON(
3578
3570
 
3579
3571
  /** @internal */
3580
3572
  export type CreatePromptPlugins$Outbound =
3581
- | components.PIIRedactionPluginEn$Outbound
3582
- | components.PIIRedactionPluginNl$Outbound
3583
- | components.TraceScrubbingPlugin$Outbound
3584
- | components.PIIRedactionPluginAuto$Outbound
3585
- | components.ResponseHealingPlugin$Outbound;
3573
+ | (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
3574
+ | components.ResponseHealingPlugin$Outbound
3575
+ | components.TraceScrubbingPlugin$Outbound;
3586
3576
 
3587
3577
  /** @internal */
3588
3578
  export const CreatePromptPlugins$outboundSchema: z.ZodType<
@@ -3590,11 +3580,11 @@ export const CreatePromptPlugins$outboundSchema: z.ZodType<
3590
3580
  z.ZodTypeDef,
3591
3581
  CreatePromptPlugins
3592
3582
  > = z.union([
3593
- components.PIIRedactionPluginEn$outboundSchema,
3594
- components.PIIRedactionPluginNl$outboundSchema,
3595
- components.TraceScrubbingPlugin$outboundSchema,
3596
- components.PIIRedactionPluginAuto$outboundSchema,
3583
+ components.PIIRedactionPlugin$outboundSchema.and(
3584
+ z.object({ id: z.literal("pii_redaction") }),
3585
+ ),
3597
3586
  components.ResponseHealingPlugin$outboundSchema,
3587
+ components.TraceScrubbingPlugin$outboundSchema,
3598
3588
  ]);
3599
3589
 
3600
3590
  export function createPromptPluginsToJSON(
@@ -3860,11 +3850,9 @@ export type PromptInput$Outbound = {
3860
3850
  guardrails?: Array<CreatePromptGuardrails$Outbound> | undefined;
3861
3851
  plugins?:
3862
3852
  | Array<
3863
- | components.PIIRedactionPluginEn$Outbound
3864
- | components.PIIRedactionPluginNl$Outbound
3865
- | components.TraceScrubbingPlugin$Outbound
3866
- | components.PIIRedactionPluginAuto$Outbound
3853
+ | (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
3867
3854
  | components.ResponseHealingPlugin$Outbound
3855
+ | components.TraceScrubbingPlugin$Outbound
3868
3856
  >
3869
3857
  | undefined;
3870
3858
  fallbacks?: Array<CreatePromptFallbacks$Outbound> | undefined;
@@ -3930,11 +3918,11 @@ export const PromptInput$outboundSchema: z.ZodType<
3930
3918
  .optional(),
3931
3919
  plugins: z.array(
3932
3920
  z.union([
3933
- components.PIIRedactionPluginEn$outboundSchema,
3934
- components.PIIRedactionPluginNl$outboundSchema,
3935
- components.TraceScrubbingPlugin$outboundSchema,
3936
- components.PIIRedactionPluginAuto$outboundSchema,
3921
+ components.PIIRedactionPlugin$outboundSchema.and(
3922
+ z.object({ id: z.literal("pii_redaction") }),
3923
+ ),
3937
3924
  components.ResponseHealingPlugin$outboundSchema,
3925
+ components.TraceScrubbingPlugin$outboundSchema,
3938
3926
  ]),
3939
3927
  ).optional(),
3940
3928
  fallbacks: z.array(z.lazy(() => CreatePromptFallbacks$outboundSchema))
@@ -4952,11 +4940,11 @@ export const CreatePromptPromptsPlugins$inboundSchema: z.ZodType<
4952
4940
  z.ZodTypeDef,
4953
4941
  unknown
4954
4942
  > = z.union([
4955
- components.PIIRedactionPluginEn$inboundSchema,
4956
- components.PIIRedactionPluginNl$inboundSchema,
4957
- components.TraceScrubbingPlugin$inboundSchema,
4958
- components.PIIRedactionPluginAuto$inboundSchema,
4943
+ components.PIIRedactionPlugin$inboundSchema.and(
4944
+ z.object({ id: z.literal("pii_redaction") }),
4945
+ ),
4959
4946
  components.ResponseHealingPlugin$inboundSchema,
4947
+ components.TraceScrubbingPlugin$inboundSchema,
4960
4948
  ]);
4961
4949
 
4962
4950
  export function createPromptPromptsPluginsFromJSON(
@@ -5747,11 +5735,11 @@ export const PromptField$inboundSchema: z.ZodType<
5747
5735
  .optional(),
5748
5736
  plugins: z.array(
5749
5737
  z.union([
5750
- components.PIIRedactionPluginEn$inboundSchema,
5751
- components.PIIRedactionPluginNl$inboundSchema,
5752
- components.TraceScrubbingPlugin$inboundSchema,
5753
- components.PIIRedactionPluginAuto$inboundSchema,
5738
+ components.PIIRedactionPlugin$inboundSchema.and(
5739
+ z.object({ id: z.literal("pii_redaction") }),
5740
+ ),
5754
5741
  components.ResponseHealingPlugin$inboundSchema,
5742
+ components.TraceScrubbingPlugin$inboundSchema,
5755
5743
  ]),
5756
5744
  ).optional(),
5757
5745
  fallbacks: z.array(z.lazy(() => CreatePromptPromptsFallbacks$inboundSchema))
@@ -85,11 +85,6 @@ export type CreateRerankTimeout = {
85
85
  callTimeout: number;
86
86
  };
87
87
 
88
- export type CreateRerankPlugins =
89
- | components.PIIRedactionPluginEn
90
- | components.PIIRedactionPluginNl
91
- | components.PIIRedactionPluginAuto;
92
-
93
88
  export type CreateRerankRouterRerankFallbacks = {
94
89
  /**
95
90
  * Fallback model identifier
@@ -260,13 +255,7 @@ export type CreateRerankRequestBody = {
260
255
  /**
261
256
  * 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.
262
257
  */
263
- plugins?:
264
- | Array<
265
- | components.PIIRedactionPluginEn
266
- | components.PIIRedactionPluginNl
267
- | components.PIIRedactionPluginAuto
268
- >
269
- | undefined;
258
+ plugins?: Array<components.PIIRedactionPlugin> | undefined;
270
259
  orq?: CreateRerankOrq | undefined;
271
260
  };
272
261
 
@@ -519,31 +508,6 @@ export function createRerankTimeoutToJSON(
519
508
  );
520
509
  }
521
510
 
522
- /** @internal */
523
- export type CreateRerankPlugins$Outbound =
524
- | components.PIIRedactionPluginEn$Outbound
525
- | components.PIIRedactionPluginNl$Outbound
526
- | components.PIIRedactionPluginAuto$Outbound;
527
-
528
- /** @internal */
529
- export const CreateRerankPlugins$outboundSchema: z.ZodType<
530
- CreateRerankPlugins$Outbound,
531
- z.ZodTypeDef,
532
- CreateRerankPlugins
533
- > = z.union([
534
- components.PIIRedactionPluginEn$outboundSchema,
535
- components.PIIRedactionPluginNl$outboundSchema,
536
- components.PIIRedactionPluginAuto$outboundSchema,
537
- ]);
538
-
539
- export function createRerankPluginsToJSON(
540
- createRerankPlugins: CreateRerankPlugins,
541
- ): string {
542
- return JSON.stringify(
543
- CreateRerankPlugins$outboundSchema.parse(createRerankPlugins),
544
- );
545
- }
546
-
547
511
  /** @internal */
548
512
  export type CreateRerankRouterRerankFallbacks$Outbound = {
549
513
  model: string;
@@ -796,13 +760,7 @@ export type CreateRerankRequestBody$Outbound = {
796
760
  cache?: CreateRerankCache$Outbound | undefined;
797
761
  load_balancer?: CreateRerankLoadBalancer1$Outbound | undefined;
798
762
  timeout?: CreateRerankTimeout$Outbound | undefined;
799
- plugins?:
800
- | Array<
801
- | components.PIIRedactionPluginEn$Outbound
802
- | components.PIIRedactionPluginNl$Outbound
803
- | components.PIIRedactionPluginAuto$Outbound
804
- >
805
- | undefined;
763
+ plugins?: Array<components.PIIRedactionPlugin$Outbound> | undefined;
806
764
  orq?: CreateRerankOrq$Outbound | undefined;
807
765
  };
808
766
 
@@ -826,13 +784,7 @@ export const CreateRerankRequestBody$outboundSchema: z.ZodType<
826
784
  loadBalancer: z.lazy(() => CreateRerankLoadBalancer1$outboundSchema)
827
785
  .optional(),
828
786
  timeout: z.lazy(() => CreateRerankTimeout$outboundSchema).optional(),
829
- plugins: z.array(
830
- z.union([
831
- components.PIIRedactionPluginEn$outboundSchema,
832
- components.PIIRedactionPluginNl$outboundSchema,
833
- components.PIIRedactionPluginAuto$outboundSchema,
834
- ]),
835
- ).optional(),
787
+ plugins: z.array(components.PIIRedactionPlugin$outboundSchema).optional(),
836
788
  orq: z.lazy(() => CreateRerankOrq$outboundSchema).optional(),
837
789
  }).transform((v) => {
838
790
  return remap$(v, {
@@ -332,6 +332,24 @@ export type CreateRouterResponseContent2 = TwoText | TwoImage | TwoFile;
332
332
  */
333
333
  export type InputContent = string | Array<TwoText | TwoImage | TwoFile>;
334
334
 
335
+ export const Effort = {
336
+ None: "none",
337
+ Minimal: "minimal",
338
+ Low: "low",
339
+ Medium: "medium",
340
+ High: "high",
341
+ Xhigh: "xhigh",
342
+ Max: "max",
343
+ } as const;
344
+ export type Effort = ClosedEnum<typeof Effort>;
345
+
346
+ /**
347
+ * Reasoning settings applied by a configuration_update item.
348
+ */
349
+ export type Reasoning = {
350
+ effort?: Effort | undefined;
351
+ };
352
+
335
353
  /**
336
354
  * The role of the message sender (for message items).
337
355
  */
@@ -388,6 +406,7 @@ export const InputType = {
388
406
  McpListTools: "mcp_list_tools",
389
407
  McpApprovalRequest: "mcp_approval_request",
390
408
  McpApprovalResponse: "mcp_approval_response",
409
+ ConfigurationUpdate: "configuration_update",
391
410
  } as const;
392
411
  /**
393
412
  * The type of item.
@@ -402,6 +421,10 @@ export type CreateRouterResponseInput2 = {
402
421
  * The function arguments as a JSON string (for function_call items).
403
422
  */
404
423
  arguments?: string | undefined;
424
+ /**
425
+ * Whether a function or custom tool call runs asynchronously.
426
+ */
427
+ async?: boolean | undefined;
405
428
  /**
406
429
  * The function call identifier (for function_call and function_call_output items).
407
430
  */
@@ -422,6 +445,10 @@ export type CreateRouterResponseInput2 = {
422
445
  * The output of the function call (for function_call_output type).
423
446
  */
424
447
  output?: string | undefined;
448
+ /**
449
+ * Reasoning settings applied by a configuration_update item.
450
+ */
451
+ reasoning?: Reasoning | undefined;
425
452
  /**
426
453
  * The role of the message sender (for message items).
427
454
  */
@@ -648,7 +675,7 @@ export type Network = {
648
675
  /**
649
676
  * The orq.ai tool type. orq:web_search, orq:web_fetch, and orq:datetime are the canonical names for orq:google_search, orq:web_scraper, and orq:current_date.
650
677
  */
651
- export const CreateRouterResponseToolsResponsesType = {
678
+ export const CreateRouterResponseToolsResponsesRequestType = {
652
679
  OrqWebSearch: "orq:web_search",
653
680
  OrqWebFetch: "orq:web_fetch",
654
681
  OrqDatetime: "orq:datetime",
@@ -670,8 +697,8 @@ export const CreateRouterResponseToolsResponsesType = {
670
697
  /**
671
698
  * The orq.ai tool type. orq:web_search, orq:web_fetch, and orq:datetime are the canonical names for orq:google_search, orq:web_scraper, and orq:current_date.
672
699
  */
673
- export type CreateRouterResponseToolsResponsesType = ClosedEnum<
674
- typeof CreateRouterResponseToolsResponsesType
700
+ export type CreateRouterResponseToolsResponsesRequestType = ClosedEnum<
701
+ typeof CreateRouterResponseToolsResponsesRequestType
675
702
  >;
676
703
 
677
704
  /**
@@ -697,7 +724,26 @@ export type OrqAiTool = {
697
724
  /**
698
725
  * The orq.ai tool type. orq:web_search, orq:web_fetch, and orq:datetime are the canonical names for orq:google_search, orq:web_scraper, and orq:current_date.
699
726
  */
700
- type: CreateRouterResponseToolsResponsesType;
727
+ type: CreateRouterResponseToolsResponsesRequestType;
728
+ };
729
+
730
+ /**
731
+ * A custom tool that accepts free-form input.
732
+ */
733
+ export type Custom = {
734
+ /**
735
+ * Whether the tool response can be returned asynchronously.
736
+ */
737
+ async?: boolean | undefined;
738
+ /**
739
+ * A description of what the custom tool does.
740
+ */
741
+ description?: string | undefined;
742
+ /**
743
+ * The name of the custom tool.
744
+ */
745
+ name: string;
746
+ type: "custom";
701
747
  };
702
748
 
703
749
  /**
@@ -759,6 +805,10 @@ export type ToolsCacheControl = {
759
805
  * A function tool the model can call.
760
806
  */
761
807
  export type ToolsFunction = {
808
+ /**
809
+ * Whether the tool response can be returned asynchronously.
810
+ */
811
+ async?: boolean | undefined;
762
812
  cacheControl?: ToolsCacheControl | undefined;
763
813
  /**
764
814
  * A description of what the function does.
@@ -784,6 +834,7 @@ export type ToolsFunction = {
784
834
  */
785
835
  export type CreateRouterResponseTools =
786
836
  | ToolsFunction
837
+ | Custom
787
838
  | components.OrqAdvisorTool
788
839
  | (components.OrqSidekickTool & { type: "orq:subagent" })
789
840
  | (components.OrqSidekickTool & { type: "orq:sidekick" })
@@ -881,6 +932,7 @@ export type CreateRouterResponseRequestBody = {
881
932
  * Key for prompt caching across requests.
882
933
  */
883
934
  promptCacheKey?: string | undefined;
935
+ promptCacheOptions?: components.OpenAIPromptCacheOptions | undefined;
884
936
  reasoning?: components.ReasoningParam | undefined;
885
937
  retry?: components.ResponseRetryConfig | undefined;
886
938
  /**
@@ -933,6 +985,7 @@ export type CreateRouterResponseRequestBody = {
933
985
  tools?:
934
986
  | Array<
935
987
  | ToolsFunction
988
+ | Custom
936
989
  | components.OrqAdvisorTool
937
990
  | (components.OrqSidekickTool & { type: "orq:subagent" })
938
991
  | (components.OrqSidekickTool & { type: "orq:sidekick" })
@@ -1050,6 +1103,7 @@ export type CreateRouterResponseResponseBody = {
1050
1103
  presencePenalty: number;
1051
1104
  previousResponseId: string | null;
1052
1105
  promptCacheKey: string | null;
1106
+ promptCacheOptions: components.OpenAIPromptCacheOptions | null;
1053
1107
  promptCacheRetention: string | null;
1054
1108
  reasoning: components.Reasoning | null;
1055
1109
  safetyIdentifier: string | null;
@@ -1395,6 +1449,28 @@ export function inputContentToJSON(inputContent: InputContent): string {
1395
1449
  return JSON.stringify(InputContent$outboundSchema.parse(inputContent));
1396
1450
  }
1397
1451
 
1452
+ /** @internal */
1453
+ export const Effort$outboundSchema: z.ZodNativeEnum<typeof Effort> = z
1454
+ .nativeEnum(Effort);
1455
+
1456
+ /** @internal */
1457
+ export type Reasoning$Outbound = {
1458
+ effort?: string | undefined;
1459
+ };
1460
+
1461
+ /** @internal */
1462
+ export const Reasoning$outboundSchema: z.ZodType<
1463
+ Reasoning$Outbound,
1464
+ z.ZodTypeDef,
1465
+ Reasoning
1466
+ > = z.object({
1467
+ effort: Effort$outboundSchema.optional(),
1468
+ });
1469
+
1470
+ export function reasoningToJSON(reasoning: Reasoning): string {
1471
+ return JSON.stringify(Reasoning$outboundSchema.parse(reasoning));
1472
+ }
1473
+
1398
1474
  /** @internal */
1399
1475
  export const InputRole$outboundSchema: z.ZodNativeEnum<typeof InputRole> = z
1400
1476
  .nativeEnum(InputRole);
@@ -1410,6 +1486,7 @@ export const InputType$outboundSchema: z.ZodNativeEnum<typeof InputType> = z
1410
1486
  /** @internal */
1411
1487
  export type CreateRouterResponseInput2$Outbound = {
1412
1488
  arguments?: string | undefined;
1489
+ async?: boolean | undefined;
1413
1490
  call_id?: string | undefined;
1414
1491
  content?:
1415
1492
  | string
@@ -1418,6 +1495,7 @@ export type CreateRouterResponseInput2$Outbound = {
1418
1495
  id?: string | undefined;
1419
1496
  name?: string | undefined;
1420
1497
  output?: string | undefined;
1498
+ reasoning?: Reasoning$Outbound | undefined;
1421
1499
  role?: string | undefined;
1422
1500
  status?: string | undefined;
1423
1501
  type?: string | undefined;
@@ -1430,6 +1508,7 @@ export const CreateRouterResponseInput2$outboundSchema: z.ZodType<
1430
1508
  CreateRouterResponseInput2
1431
1509
  > = z.object({
1432
1510
  arguments: z.string().optional(),
1511
+ async: z.boolean().optional(),
1433
1512
  callId: z.string().optional(),
1434
1513
  content: z.union([
1435
1514
  z.string(),
@@ -1442,6 +1521,7 @@ export const CreateRouterResponseInput2$outboundSchema: z.ZodType<
1442
1521
  id: z.string().optional(),
1443
1522
  name: z.string().optional(),
1444
1523
  output: z.string().optional(),
1524
+ reasoning: z.lazy(() => Reasoning$outboundSchema).optional(),
1445
1525
  role: InputRole$outboundSchema.optional(),
1446
1526
  status: Status$outboundSchema.optional(),
1447
1527
  type: InputType$outboundSchema.optional(),
@@ -1759,10 +1839,9 @@ export function networkToJSON(network: Network): string {
1759
1839
  }
1760
1840
 
1761
1841
  /** @internal */
1762
- export const CreateRouterResponseToolsResponsesType$outboundSchema:
1763
- z.ZodNativeEnum<typeof CreateRouterResponseToolsResponsesType> = z.nativeEnum(
1764
- CreateRouterResponseToolsResponsesType,
1765
- );
1842
+ export const CreateRouterResponseToolsResponsesRequestType$outboundSchema:
1843
+ z.ZodNativeEnum<typeof CreateRouterResponseToolsResponsesRequestType> = z
1844
+ .nativeEnum(CreateRouterResponseToolsResponsesRequestType);
1766
1845
 
1767
1846
  /** @internal */
1768
1847
  export type OrqAiTool$Outbound = {
@@ -1783,7 +1862,7 @@ export const OrqAiTool$outboundSchema: z.ZodType<
1783
1862
  network: z.lazy(() => Network$outboundSchema).optional(),
1784
1863
  timezone: z.string().optional(),
1785
1864
  toolId: z.string().optional(),
1786
- type: CreateRouterResponseToolsResponsesType$outboundSchema,
1865
+ type: CreateRouterResponseToolsResponsesRequestType$outboundSchema,
1787
1866
  }).transform((v) => {
1788
1867
  return remap$(v, {
1789
1868
  toolId: "tool_id",
@@ -1794,6 +1873,30 @@ export function orqAiToolToJSON(orqAiTool: OrqAiTool): string {
1794
1873
  return JSON.stringify(OrqAiTool$outboundSchema.parse(orqAiTool));
1795
1874
  }
1796
1875
 
1876
+ /** @internal */
1877
+ export type Custom$Outbound = {
1878
+ async?: boolean | undefined;
1879
+ description?: string | undefined;
1880
+ name: string;
1881
+ type: "custom";
1882
+ };
1883
+
1884
+ /** @internal */
1885
+ export const Custom$outboundSchema: z.ZodType<
1886
+ Custom$Outbound,
1887
+ z.ZodTypeDef,
1888
+ Custom
1889
+ > = z.object({
1890
+ async: z.boolean().optional(),
1891
+ description: z.string().optional(),
1892
+ name: z.string(),
1893
+ type: z.literal("custom"),
1894
+ });
1895
+
1896
+ export function customToJSON(custom: Custom): string {
1897
+ return JSON.stringify(Custom$outboundSchema.parse(custom));
1898
+ }
1899
+
1797
1900
  /** @internal */
1798
1901
  export const ToolsTtl$outboundSchema: z.ZodNativeEnum<typeof ToolsTtl> = z
1799
1902
  .nativeEnum(ToolsTtl);
@@ -1828,6 +1931,7 @@ export function toolsCacheControlToJSON(
1828
1931
 
1829
1932
  /** @internal */
1830
1933
  export type ToolsFunction$Outbound = {
1934
+ async?: boolean | undefined;
1831
1935
  cache_control?: ToolsCacheControl$Outbound | undefined;
1832
1936
  description?: string | undefined;
1833
1937
  name: string;
@@ -1842,6 +1946,7 @@ export const ToolsFunction$outboundSchema: z.ZodType<
1842
1946
  z.ZodTypeDef,
1843
1947
  ToolsFunction
1844
1948
  > = z.object({
1949
+ async: z.boolean().optional(),
1845
1950
  cacheControl: z.lazy(() => ToolsCacheControl$outboundSchema).optional(),
1846
1951
  description: z.string().optional(),
1847
1952
  name: z.string(),
@@ -1861,6 +1966,7 @@ export function toolsFunctionToJSON(toolsFunction: ToolsFunction): string {
1861
1966
  /** @internal */
1862
1967
  export type CreateRouterResponseTools$Outbound =
1863
1968
  | ToolsFunction$Outbound
1969
+ | Custom$Outbound
1864
1970
  | components.OrqAdvisorTool$Outbound
1865
1971
  | (components.OrqSidekickTool$Outbound & { type: "orq:subagent" })
1866
1972
  | (components.OrqSidekickTool$Outbound & { type: "orq:sidekick" })
@@ -1890,6 +1996,7 @@ export const CreateRouterResponseTools$outboundSchema: z.ZodType<
1890
1996
  CreateRouterResponseTools
1891
1997
  > = z.union([
1892
1998
  z.lazy(() => ToolsFunction$outboundSchema),
1999
+ z.lazy(() => Custom$outboundSchema),
1893
2000
  components.OrqAdvisorTool$outboundSchema,
1894
2001
  components.OrqSidekickTool$outboundSchema.and(
1895
2002
  z.object({ type: z.literal("orq:subagent") }),
@@ -1984,6 +2091,9 @@ export type CreateRouterResponseRequestBody$Outbound = {
1984
2091
  presence_penalty?: number | undefined;
1985
2092
  previous_response_id?: string | undefined;
1986
2093
  prompt_cache_key?: string | undefined;
2094
+ prompt_cache_options?:
2095
+ | components.OpenAIPromptCacheOptions$Outbound
2096
+ | undefined;
1987
2097
  reasoning?: components.ReasoningParam$Outbound | undefined;
1988
2098
  retry?: components.ResponseRetryConfig$Outbound | undefined;
1989
2099
  safety_identifier?: string | undefined;
@@ -2003,6 +2113,7 @@ export type CreateRouterResponseRequestBody$Outbound = {
2003
2113
  tools?:
2004
2114
  | Array<
2005
2115
  | ToolsFunction$Outbound
2116
+ | Custom$Outbound
2006
2117
  | components.OrqAdvisorTool$Outbound
2007
2118
  | (components.OrqSidekickTool$Outbound & { type: "orq:subagent" })
2008
2119
  | (components.OrqSidekickTool$Outbound & { type: "orq:sidekick" })
@@ -2067,6 +2178,8 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
2067
2178
  presencePenalty: z.number().optional(),
2068
2179
  previousResponseId: z.string().optional(),
2069
2180
  promptCacheKey: z.string().optional(),
2181
+ promptCacheOptions: components.OpenAIPromptCacheOptions$outboundSchema
2182
+ .optional(),
2070
2183
  reasoning: components.ReasoningParam$outboundSchema.optional(),
2071
2184
  retry: components.ResponseRetryConfig$outboundSchema.optional(),
2072
2185
  safetyIdentifier: z.string().optional(),
@@ -2089,6 +2202,7 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
2089
2202
  tools: z.array(
2090
2203
  z.union([
2091
2204
  z.lazy(() => ToolsFunction$outboundSchema),
2205
+ z.lazy(() => Custom$outboundSchema),
2092
2206
  components.OrqAdvisorTool$outboundSchema,
2093
2207
  components.OrqSidekickTool$outboundSchema.and(
2094
2208
  z.object({ type: z.literal("orq:subagent") }),
@@ -2166,6 +2280,7 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
2166
2280
  presencePenalty: "presence_penalty",
2167
2281
  previousResponseId: "previous_response_id",
2168
2282
  promptCacheKey: "prompt_cache_key",
2283
+ promptCacheOptions: "prompt_cache_options",
2169
2284
  safetyIdentifier: "safety_identifier",
2170
2285
  serviceTier: "service_tier",
2171
2286
  stopSequences: "stop_sequences",
@@ -2263,6 +2378,9 @@ export const CreateRouterResponseResponseBody$inboundSchema: z.ZodType<
2263
2378
  presence_penalty: z.number(),
2264
2379
  previous_response_id: z.nullable(z.string()),
2265
2380
  prompt_cache_key: z.nullable(z.string()),
2381
+ prompt_cache_options: z.nullable(
2382
+ components.OpenAIPromptCacheOptions$inboundSchema,
2383
+ ),
2266
2384
  prompt_cache_retention: z.nullable(z.string()),
2267
2385
  reasoning: z.nullable(components.Reasoning$inboundSchema),
2268
2386
  safety_identifier: z.nullable(z.string()),
@@ -2293,6 +2411,7 @@ export const CreateRouterResponseResponseBody$inboundSchema: z.ZodType<
2293
2411
  "presence_penalty": "presencePenalty",
2294
2412
  "previous_response_id": "previousResponseId",
2295
2413
  "prompt_cache_key": "promptCacheKey",
2414
+ "prompt_cache_options": "promptCacheOptions",
2296
2415
  "prompt_cache_retention": "promptCacheRetention",
2297
2416
  "safety_identifier": "safetyIdentifier",
2298
2417
  "service_tier": "serviceTier",