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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1536) hide show
  1. package/README.md +65 -43
  2. package/funcs/datasetsClear.d.ts +2 -1
  3. package/funcs/datasetsClear.d.ts.map +1 -1
  4. package/funcs/datasetsClear.js +6 -2
  5. package/funcs/datasetsClear.js.map +1 -1
  6. package/funcs/filesList.js +1 -0
  7. package/funcs/filesList.js.map +1 -1
  8. package/funcs/knowledgeListDatasources.js +1 -0
  9. package/funcs/knowledgeListDatasources.js.map +1 -1
  10. package/funcs/notifiersList.js +2 -0
  11. package/funcs/notifiersList.js.map +1 -1
  12. package/funcs/reportingQuery.d.ts +3 -1
  13. package/funcs/reportingQuery.d.ts.map +1 -1
  14. package/funcs/reportingQuery.js +3 -1
  15. package/funcs/reportingQuery.js.map +1 -1
  16. package/funcs/telemetryQuery.d.ts +17 -0
  17. package/funcs/telemetryQuery.d.ts.map +1 -0
  18. package/funcs/telemetryQuery.js +115 -0
  19. package/funcs/telemetryQuery.js.map +1 -0
  20. package/funcs/tracesAggregate.d.ts +3 -1
  21. package/funcs/tracesAggregate.d.ts.map +1 -1
  22. package/funcs/tracesAggregate.js +3 -1
  23. package/funcs/tracesAggregate.js.map +1 -1
  24. package/funcs/{budgetsCheck.d.ts → webhooksCount.d.ts} +4 -4
  25. package/funcs/webhooksCount.d.ts.map +1 -0
  26. package/funcs/webhooksCount.js +105 -0
  27. package/funcs/webhooksCount.js.map +1 -0
  28. package/funcs/webhooksCreate.d.ts +17 -0
  29. package/funcs/webhooksCreate.d.ts.map +1 -0
  30. package/funcs/{budgetsCheck.js → webhooksCreate.js} +9 -9
  31. package/funcs/webhooksCreate.js.map +1 -0
  32. package/funcs/webhooksDelete.d.ts +18 -0
  33. package/funcs/webhooksDelete.d.ts.map +1 -0
  34. package/funcs/webhooksDelete.js +121 -0
  35. package/funcs/webhooksDelete.js.map +1 -0
  36. package/funcs/webhooksGenerateSecret.d.ts +17 -0
  37. package/funcs/webhooksGenerateSecret.d.ts.map +1 -0
  38. package/funcs/webhooksGenerateSecret.js +105 -0
  39. package/funcs/webhooksGenerateSecret.js.map +1 -0
  40. package/funcs/webhooksGet.d.ts +18 -0
  41. package/funcs/webhooksGet.d.ts.map +1 -0
  42. package/funcs/webhooksGet.js +121 -0
  43. package/funcs/webhooksGet.js.map +1 -0
  44. package/funcs/webhooksList.d.ts +18 -0
  45. package/funcs/webhooksList.d.ts.map +1 -0
  46. package/funcs/webhooksList.js +126 -0
  47. package/funcs/webhooksList.js.map +1 -0
  48. package/funcs/webhooksQuery.d.ts +19 -0
  49. package/funcs/webhooksQuery.d.ts.map +1 -0
  50. package/funcs/webhooksQuery.js +117 -0
  51. package/funcs/webhooksQuery.js.map +1 -0
  52. package/funcs/webhooksUpdate.d.ts +17 -0
  53. package/funcs/webhooksUpdate.d.ts.map +1 -0
  54. package/funcs/webhooksUpdate.js +121 -0
  55. package/funcs/webhooksUpdate.js.map +1 -0
  56. package/jsr.json +1 -1
  57. package/lib/config.d.ts +3 -3
  58. package/lib/config.js +3 -3
  59. package/lib/config.js.map +1 -1
  60. package/lib/http.d.ts +1 -1
  61. package/lib/http.d.ts.map +1 -1
  62. package/lib/http.js +1 -1
  63. package/lib/http.js.map +1 -1
  64. package/lib/security.d.ts +5 -4
  65. package/lib/security.d.ts.map +1 -1
  66. package/lib/security.js +6 -7
  67. package/lib/security.js.map +1 -1
  68. package/models/components/actionreviewrequestedstreamingevent.d.ts +2 -2
  69. package/models/components/actionreviewrequestedstreamingevent.d.ts.map +1 -1
  70. package/models/components/actionreviewrequestedstreamingevent.js +1 -1
  71. package/models/components/actionreviewrequestedstreamingevent.js.map +1 -1
  72. package/models/components/agentstartedstreamingevent.d.ts +2 -2
  73. package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
  74. package/models/components/agentstartedstreamingevent.js +1 -1
  75. package/models/components/agentstartedstreamingevent.js.map +1 -1
  76. package/models/components/agenttoolinputcrud.d.ts +413 -0
  77. package/models/components/agenttoolinputcrud.d.ts.map +1 -0
  78. package/models/components/agenttoolinputcrud.js +287 -0
  79. package/models/components/agenttoolinputcrud.js.map +1 -0
  80. package/models/components/apikey.d.ts +5 -0
  81. package/models/components/apikey.d.ts.map +1 -1
  82. package/models/components/apikey.js +2 -0
  83. package/models/components/apikey.js.map +1 -1
  84. package/models/components/budget.d.ts +5 -0
  85. package/models/components/budget.d.ts.map +1 -1
  86. package/models/components/budget.js +2 -0
  87. package/models/components/budget.js.map +1 -1
  88. package/models/components/budgetalert.d.ts +41 -0
  89. package/models/components/budgetalert.d.ts.map +1 -0
  90. package/models/components/budgetalert.js +76 -0
  91. package/models/components/budgetalert.js.map +1 -0
  92. package/models/components/budgetalertdimension.d.ts +13 -0
  93. package/models/components/budgetalertdimension.d.ts.map +1 -0
  94. package/models/components/budgetalertdimension.js +50 -0
  95. package/models/components/budgetalertdimension.js.map +1 -0
  96. package/models/components/codetoolinput.d.ts +38 -0
  97. package/models/components/codetoolinput.d.ts.map +1 -0
  98. package/models/components/{checkbudgetsrequest.js → codetoolinput.js} +12 -23
  99. package/models/components/codetoolinput.js.map +1 -0
  100. package/models/components/config.d.ts +14 -0
  101. package/models/components/config.d.ts.map +1 -0
  102. package/models/components/config.js +63 -0
  103. package/models/components/config.js.map +1 -0
  104. package/models/components/countwebhooksresponse.d.ts +16 -0
  105. package/models/components/countwebhooksresponse.d.ts.map +1 -0
  106. package/models/components/countwebhooksresponse.js +50 -0
  107. package/models/components/countwebhooksresponse.js.map +1 -0
  108. package/models/components/createbudgetrequest.d.ts +9 -0
  109. package/models/components/createbudgetrequest.d.ts.map +1 -1
  110. package/models/components/createbudgetrequest.js +2 -0
  111. package/models/components/createbudgetrequest.js.map +1 -1
  112. package/models/components/createwebhookrequest.d.ts +62 -0
  113. package/models/components/createwebhookrequest.d.ts.map +1 -0
  114. package/models/components/createwebhookrequest.js +71 -0
  115. package/models/components/createwebhookrequest.js.map +1 -0
  116. package/models/components/deletewebhookresponse.d.ts +13 -0
  117. package/models/components/deletewebhookresponse.d.ts.map +1 -0
  118. package/models/components/deletewebhookresponse.js +50 -0
  119. package/models/components/deletewebhookresponse.js.map +1 -0
  120. package/models/components/evaluatorresponsefunction.js +2 -2
  121. package/models/components/evaluatorresponsehttp.js +2 -2
  122. package/models/components/evaluatorresponsejsonschema.js +2 -2
  123. package/models/components/evaluatorresponsellm.js +2 -2
  124. package/models/components/evaluatorresponsepython.js +2 -2
  125. package/models/components/evaluatorresponseragas.js +2 -2
  126. package/models/components/evaluatorresponsetypescript.js +2 -2
  127. package/models/components/functiontoolinput.d.ts +33 -0
  128. package/models/components/functiontoolinput.d.ts.map +1 -0
  129. package/models/components/functiontoolinput.js +57 -0
  130. package/models/components/functiontoolinput.js.map +1 -0
  131. package/models/components/generatewebhooksecretresponse.d.ts +16 -0
  132. package/models/components/generatewebhooksecretresponse.d.ts.map +1 -0
  133. package/models/components/generatewebhooksecretresponse.js +50 -0
  134. package/models/components/generatewebhooksecretresponse.js.map +1 -0
  135. package/models/components/httptoolinput.d.ts +38 -0
  136. package/models/components/httptoolinput.d.ts.map +1 -0
  137. package/models/components/httptoolinput.js +58 -0
  138. package/models/components/httptoolinput.js.map +1 -0
  139. package/models/components/identity.d.ts +9 -4
  140. package/models/components/identity.d.ts.map +1 -1
  141. package/models/components/identity.js +8 -6
  142. package/models/components/identity.js.map +1 -1
  143. package/models/components/index.d.ts +29 -4
  144. package/models/components/index.d.ts.map +1 -1
  145. package/models/components/index.js +29 -4
  146. package/models/components/index.js.map +1 -1
  147. package/models/components/jsonschematoolinput.d.ts +33 -0
  148. package/models/components/jsonschematoolinput.d.ts.map +1 -0
  149. package/models/components/jsonschematoolinput.js +57 -0
  150. package/models/components/jsonschematoolinput.js.map +1 -0
  151. package/models/components/listwebhooksresponse.d.ts +25 -0
  152. package/models/components/listwebhooksresponse.d.ts.map +1 -0
  153. package/models/components/{budgetrejection.js → listwebhooksresponse.js} +11 -13
  154. package/models/components/listwebhooksresponse.js.map +1 -0
  155. package/models/components/mcptoolinput.d.ts +38 -0
  156. package/models/components/mcptoolinput.d.ts.map +1 -0
  157. package/models/components/mcptoolinput.js +59 -0
  158. package/models/components/mcptoolinput.js.map +1 -0
  159. package/models/components/modeldocument.d.ts +2 -0
  160. package/models/components/modeldocument.d.ts.map +1 -1
  161. package/models/components/modeldocument.js +2 -0
  162. package/models/components/modeldocument.js.map +1 -1
  163. package/models/components/modelsconfig.d.ts +1 -0
  164. package/models/components/modelsconfig.d.ts.map +1 -1
  165. package/models/components/modelsconfig.js +1 -0
  166. package/models/components/modelsconfig.js.map +1 -1
  167. package/models/components/providertoolinput.d.ts +47 -0
  168. package/models/components/providertoolinput.d.ts.map +1 -0
  169. package/models/components/providertoolinput.js +59 -0
  170. package/models/components/providertoolinput.js.map +1 -0
  171. package/models/components/queryparamspagination.d.ts +18 -0
  172. package/models/components/queryparamspagination.d.ts.map +1 -0
  173. package/models/components/queryparamspagination.js +52 -0
  174. package/models/components/queryparamspagination.js.map +1 -0
  175. package/models/components/queryparamssort.d.ts +14 -0
  176. package/models/components/queryparamssort.d.ts.map +1 -0
  177. package/models/components/queryparamssort.js +50 -0
  178. package/models/components/queryparamssort.js.map +1 -0
  179. package/models/components/querytelemetrymeta.d.ts +11 -0
  180. package/models/components/querytelemetrymeta.d.ts.map +1 -0
  181. package/models/components/{dimensioninfo.js → querytelemetrymeta.js} +9 -10
  182. package/models/components/querytelemetrymeta.js.map +1 -0
  183. package/models/components/querytelemetryrequest.d.ts +40 -0
  184. package/models/components/querytelemetryrequest.d.ts.map +1 -0
  185. package/models/components/querytelemetryrequest.js +69 -0
  186. package/models/components/querytelemetryrequest.js.map +1 -0
  187. package/models/components/querytelemetryresponse.d.ts +15 -0
  188. package/models/components/querytelemetryresponse.d.ts.map +1 -0
  189. package/models/components/{checkbudgetsresponse.js → querytelemetryresponse.js} +12 -13
  190. package/models/components/querytelemetryresponse.js.map +1 -0
  191. package/models/components/querywebhooksrequest.d.ts +38 -0
  192. package/models/components/querywebhooksrequest.d.ts.map +1 -0
  193. package/models/components/querywebhooksrequest.js +67 -0
  194. package/models/components/querywebhooksrequest.js.map +1 -0
  195. package/models/components/querywebhooksresponse.d.ts +12 -0
  196. package/models/components/querywebhooksresponse.d.ts.map +1 -0
  197. package/models/components/querywebhooksresponse.js +52 -0
  198. package/models/components/querywebhooksresponse.js.map +1 -0
  199. package/models/components/reasoningpart.js +1 -1
  200. package/models/components/responsecustomtoolcallinputdeltastreamevent.d.ts +35 -0
  201. package/models/components/responsecustomtoolcallinputdeltastreamevent.d.ts.map +1 -0
  202. package/models/components/responsecustomtoolcallinputdeltastreamevent.js +61 -0
  203. package/models/components/responsecustomtoolcallinputdeltastreamevent.js.map +1 -0
  204. package/models/components/responsecustomtoolcallinputdonestreamevent.d.ts +35 -0
  205. package/models/components/responsecustomtoolcallinputdonestreamevent.d.ts.map +1 -0
  206. package/models/components/responsecustomtoolcallinputdonestreamevent.js +61 -0
  207. package/models/components/responsecustomtoolcallinputdonestreamevent.js.map +1 -0
  208. package/models/components/responsemcplisttoolscompletedstreamevent.d.ts +31 -0
  209. package/models/components/responsemcplisttoolscompletedstreamevent.d.ts.map +1 -0
  210. package/models/components/responsemcplisttoolscompletedstreamevent.js +60 -0
  211. package/models/components/responsemcplisttoolscompletedstreamevent.js.map +1 -0
  212. package/models/components/responsemcplisttoolsfailedstreamevent.d.ts +31 -0
  213. package/models/components/responsemcplisttoolsfailedstreamevent.d.ts.map +1 -0
  214. package/models/components/responsemcplisttoolsfailedstreamevent.js +60 -0
  215. package/models/components/responsemcplisttoolsfailedstreamevent.js.map +1 -0
  216. package/models/components/responsemcplisttoolsinprogressstreamevent.d.ts +31 -0
  217. package/models/components/responsemcplisttoolsinprogressstreamevent.d.ts.map +1 -0
  218. package/models/components/responsemcplisttoolsinprogressstreamevent.js +60 -0
  219. package/models/components/responsemcplisttoolsinprogressstreamevent.js.map +1 -0
  220. package/models/components/responsestreamevent.d.ts +6 -1
  221. package/models/components/responsestreamevent.d.ts.map +1 -1
  222. package/models/components/responsestreamevent.js +10 -0
  223. package/models/components/responsestreamevent.js.map +1 -1
  224. package/models/components/telemetryrow.d.ts +22 -0
  225. package/models/components/telemetryrow.d.ts.map +1 -0
  226. package/models/components/telemetryrow.js +53 -0
  227. package/models/components/telemetryrow.js.map +1 -0
  228. package/models/components/thinkingconfigenabledschema.d.ts +1 -0
  229. package/models/components/thinkingconfigenabledschema.d.ts.map +1 -1
  230. package/models/components/thinkingconfigenabledschema.js +1 -0
  231. package/models/components/thinkingconfigenabledschema.js.map +1 -1
  232. package/models/components/updatebudgetrequest.d.ts +14 -0
  233. package/models/components/updatebudgetrequest.d.ts.map +1 -1
  234. package/models/components/updatebudgetrequest.js +4 -0
  235. package/models/components/updatebudgetrequest.js.map +1 -1
  236. package/models/components/webhook.d.ts +74 -0
  237. package/models/components/webhook.d.ts.map +1 -0
  238. package/models/components/webhook.js +81 -0
  239. package/models/components/webhook.js.map +1 -0
  240. package/models/operations/createagentrequest.d.ts +9 -660
  241. package/models/operations/createagentrequest.d.ts.map +1 -1
  242. package/models/operations/createagentrequest.js +12 -419
  243. package/models/operations/createagentrequest.js.map +1 -1
  244. package/models/operations/createchatcompletion.d.ts +1 -0
  245. package/models/operations/createchatcompletion.d.ts.map +1 -1
  246. package/models/operations/createchatcompletion.js +1 -0
  247. package/models/operations/createchatcompletion.js.map +1 -1
  248. package/models/operations/createdataset.js +1 -1
  249. package/models/operations/createdatasetitem.d.ts +121 -8
  250. package/models/operations/createdatasetitem.d.ts.map +1 -1
  251. package/models/operations/createdatasetitem.js +97 -12
  252. package/models/operations/createdatasetitem.js.map +1 -1
  253. package/models/operations/createdatasource.d.ts +42 -0
  254. package/models/operations/createdatasource.d.ts.map +1 -1
  255. package/models/operations/createdatasource.js +26 -2
  256. package/models/operations/createdatasource.js.map +1 -1
  257. package/models/operations/createeval.d.ts +88 -88
  258. package/models/operations/createeval.d.ts.map +1 -1
  259. package/models/operations/createeval.js +78 -78
  260. package/models/operations/createeval.js.map +1 -1
  261. package/models/operations/createknowledge.d.ts +6 -6
  262. package/models/operations/createknowledge.d.ts.map +1 -1
  263. package/models/operations/createknowledge.js +6 -6
  264. package/models/operations/createknowledge.js.map +1 -1
  265. package/models/operations/createprompt.d.ts +5 -0
  266. package/models/operations/createprompt.d.ts.map +1 -1
  267. package/models/operations/createprompt.js +5 -0
  268. package/models/operations/createprompt.js.map +1 -1
  269. package/models/operations/createrouterresponse.d.ts +84 -26
  270. package/models/operations/createrouterresponse.d.ts.map +1 -1
  271. package/models/operations/createrouterresponse.js +47 -17
  272. package/models/operations/createrouterresponse.js.map +1 -1
  273. package/models/operations/createtool.d.ts +27 -18
  274. package/models/operations/createtool.d.ts.map +1 -1
  275. package/models/operations/createtool.js +30 -28
  276. package/models/operations/createtool.js.map +1 -1
  277. package/models/operations/deploymentgetconfig.d.ts +1 -0
  278. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  279. package/models/operations/deploymentgetconfig.js +1 -0
  280. package/models/operations/deploymentgetconfig.js.map +1 -1
  281. package/models/operations/deploymentinvoke.d.ts +2 -0
  282. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  283. package/models/operations/deploymentinvoke.js +2 -0
  284. package/models/operations/deploymentinvoke.js.map +1 -1
  285. package/models/operations/deployments.d.ts +3 -0
  286. package/models/operations/deployments.d.ts.map +1 -1
  287. package/models/operations/deployments.js +3 -0
  288. package/models/operations/deployments.js.map +1 -1
  289. package/models/operations/deploymentstream.d.ts +2 -0
  290. package/models/operations/deploymentstream.d.ts.map +1 -1
  291. package/models/operations/deploymentstream.js +2 -0
  292. package/models/operations/deploymentstream.js.map +1 -1
  293. package/models/operations/filelist.d.ts +10 -0
  294. package/models/operations/filelist.d.ts.map +1 -1
  295. package/models/operations/filelist.js +1 -0
  296. package/models/operations/filelist.js.map +1 -1
  297. package/models/operations/getallmemories.d.ts +1 -1
  298. package/models/operations/getallmemorydocuments.d.ts +1 -1
  299. package/models/operations/getallmemorystores.d.ts +1 -1
  300. package/models/operations/getallprompts.d.ts +5 -1
  301. package/models/operations/getallprompts.d.ts.map +1 -1
  302. package/models/operations/getallprompts.js +4 -0
  303. package/models/operations/getallprompts.js.map +1 -1
  304. package/models/operations/getalltools.d.ts +4 -0
  305. package/models/operations/getalltools.d.ts.map +1 -1
  306. package/models/operations/getalltools.js +7 -6
  307. package/models/operations/getalltools.js.map +1 -1
  308. package/models/operations/getevals.d.ts +1 -1
  309. package/models/operations/getoneprompt.d.ts +4 -0
  310. package/models/operations/getoneprompt.d.ts.map +1 -1
  311. package/models/operations/getoneprompt.js +4 -0
  312. package/models/operations/getoneprompt.js.map +1 -1
  313. package/models/operations/getpromptversion.d.ts +4 -0
  314. package/models/operations/getpromptversion.d.ts.map +1 -1
  315. package/models/operations/getpromptversion.js +4 -0
  316. package/models/operations/getpromptversion.js.map +1 -1
  317. package/models/operations/getv2evaluatorsidversions.d.ts +1 -1
  318. package/models/operations/getv2humanevalsets.js +2 -2
  319. package/models/operations/getv2humanevalsetsid.js +2 -2
  320. package/models/operations/getv2toolstoolidversions.d.ts +1 -1
  321. package/models/operations/index.d.ts +4 -0
  322. package/models/operations/index.d.ts.map +1 -1
  323. package/models/operations/index.js +4 -0
  324. package/models/operations/index.js.map +1 -1
  325. package/models/operations/listagents.d.ts +5 -3
  326. package/models/operations/listagents.d.ts.map +1 -1
  327. package/models/operations/listagents.js +4 -2
  328. package/models/operations/listagents.js.map +1 -1
  329. package/models/operations/listchunks.d.ts +1 -1
  330. package/models/operations/listdatasetdatapoints.d.ts +150 -37
  331. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  332. package/models/operations/listdatasetdatapoints.js +119 -37
  333. package/models/operations/listdatasetdatapoints.js.map +1 -1
  334. package/models/operations/listdatasets.d.ts +1 -1
  335. package/models/operations/listdatasets.js +1 -1
  336. package/models/operations/listdatasources.d.ts +48 -0
  337. package/models/operations/listdatasources.d.ts.map +1 -1
  338. package/models/operations/listdatasources.js +33 -2
  339. package/models/operations/listdatasources.js.map +1 -1
  340. package/models/operations/listpromptversions.d.ts +5 -1
  341. package/models/operations/listpromptversions.d.ts.map +1 -1
  342. package/models/operations/listpromptversions.js +4 -0
  343. package/models/operations/listpromptversions.js.map +1 -1
  344. package/models/operations/modelcreate.d.ts +1 -0
  345. package/models/operations/modelcreate.d.ts.map +1 -1
  346. package/models/operations/modelcreate.js +1 -0
  347. package/models/operations/modelcreate.js.map +1 -1
  348. package/models/operations/modelcreateautorouter.d.ts +1 -0
  349. package/models/operations/modelcreateautorouter.d.ts.map +1 -1
  350. package/models/operations/modelcreateautorouter.js +1 -0
  351. package/models/operations/modelcreateautorouter.js.map +1 -1
  352. package/models/operations/modelcreateawsbedrock.d.ts +1 -0
  353. package/models/operations/modelcreateawsbedrock.d.ts.map +1 -1
  354. package/models/operations/modelcreateawsbedrock.js +1 -0
  355. package/models/operations/modelcreateawsbedrock.js.map +1 -1
  356. package/models/operations/modelcreateopenailike.d.ts +1 -0
  357. package/models/operations/modelcreateopenailike.d.ts.map +1 -1
  358. package/models/operations/modelcreateopenailike.js +1 -0
  359. package/models/operations/modelcreateopenailike.js.map +1 -1
  360. package/models/operations/modelcreatevertex.d.ts +1 -0
  361. package/models/operations/modelcreatevertex.d.ts.map +1 -1
  362. package/models/operations/modelcreatevertex.js +1 -0
  363. package/models/operations/modelcreatevertex.js.map +1 -1
  364. package/models/operations/modelupdate.d.ts +1 -0
  365. package/models/operations/modelupdate.d.ts.map +1 -1
  366. package/models/operations/modelupdate.js +1 -0
  367. package/models/operations/modelupdate.js.map +1 -1
  368. package/models/operations/modelupdateautorouter.d.ts +1 -0
  369. package/models/operations/modelupdateautorouter.d.ts.map +1 -1
  370. package/models/operations/modelupdateautorouter.js +1 -0
  371. package/models/operations/modelupdateautorouter.js.map +1 -1
  372. package/models/operations/modelupdateawsbedrock.d.ts +1 -0
  373. package/models/operations/modelupdateawsbedrock.d.ts.map +1 -1
  374. package/models/operations/modelupdateawsbedrock.js +1 -0
  375. package/models/operations/modelupdateawsbedrock.js.map +1 -1
  376. package/models/operations/modelupdateopenailike.d.ts +1 -0
  377. package/models/operations/modelupdateopenailike.d.ts.map +1 -1
  378. package/models/operations/modelupdateopenailike.js +1 -0
  379. package/models/operations/modelupdateopenailike.js.map +1 -1
  380. package/models/operations/notifierlist.d.ts +11 -0
  381. package/models/operations/notifierlist.d.ts.map +1 -1
  382. package/models/operations/notifierlist.js +3 -0
  383. package/models/operations/notifierlist.js.map +1 -1
  384. package/models/operations/patchv2humanevalsetsid.js +2 -2
  385. package/models/operations/postv2feedbackevaluation.d.ts +68 -6
  386. package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
  387. package/models/operations/postv2feedbackevaluation.js +46 -6
  388. package/models/operations/postv2feedbackevaluation.js.map +1 -1
  389. package/models/operations/postv2humanevalsets.js +2 -2
  390. package/models/operations/retrieveagentrequest.d.ts +5 -3
  391. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  392. package/models/operations/retrieveagentrequest.js +4 -2
  393. package/models/operations/retrieveagentrequest.js.map +1 -1
  394. package/models/operations/retrievedatapoint.d.ts +117 -4
  395. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  396. package/models/operations/retrievedatapoint.js +90 -8
  397. package/models/operations/retrievedatapoint.js.map +1 -1
  398. package/models/operations/retrievedataset.js +1 -1
  399. package/models/operations/retrievedatasource.d.ts +33 -0
  400. package/models/operations/retrievedatasource.d.ts.map +1 -1
  401. package/models/operations/retrievedatasource.js +25 -2
  402. package/models/operations/retrievedatasource.js.map +1 -1
  403. package/models/operations/retrieveresponse.d.ts +4 -4
  404. package/models/operations/retrieveresponse.d.ts.map +1 -1
  405. package/models/operations/retrieveresponse.js +4 -4
  406. package/models/operations/retrieveresponse.js.map +1 -1
  407. package/models/operations/retrievetool.d.ts +4 -0
  408. package/models/operations/retrievetool.d.ts.map +1 -1
  409. package/models/operations/retrievetool.js +7 -6
  410. package/models/operations/retrievetool.js.map +1 -1
  411. package/models/operations/runagent.d.ts +69 -52
  412. package/models/operations/runagent.d.ts.map +1 -1
  413. package/models/operations/runagent.js +80 -75
  414. package/models/operations/runagent.js.map +1 -1
  415. package/models/operations/streamrunagent.d.ts +69 -52
  416. package/models/operations/streamrunagent.d.ts.map +1 -1
  417. package/models/operations/streamrunagent.js +80 -78
  418. package/models/operations/streamrunagent.js.map +1 -1
  419. package/models/operations/updateagent.d.ts +9 -660
  420. package/models/operations/updateagent.d.ts.map +1 -1
  421. package/models/operations/updateagent.js +12 -419
  422. package/models/operations/updateagent.js.map +1 -1
  423. package/models/operations/updatedatapoint.d.ts +117 -4
  424. package/models/operations/updatedatapoint.d.ts.map +1 -1
  425. package/models/operations/updatedatapoint.js +92 -8
  426. package/models/operations/updatedatapoint.js.map +1 -1
  427. package/models/operations/updatedataset.js +1 -1
  428. package/models/operations/updatedatasource.d.ts +33 -0
  429. package/models/operations/updatedatasource.d.ts.map +1 -1
  430. package/models/operations/updatedatasource.js +25 -2
  431. package/models/operations/updatedatasource.js.map +1 -1
  432. package/models/operations/updateprompt.d.ts +5 -0
  433. package/models/operations/updateprompt.d.ts.map +1 -1
  434. package/models/operations/updateprompt.js +5 -0
  435. package/models/operations/updateprompt.js.map +1 -1
  436. package/models/operations/updatetool.d.ts +9 -0
  437. package/models/operations/updatetool.d.ts.map +1 -1
  438. package/models/operations/updatetool.js +9 -7
  439. package/models/operations/updatetool.js.map +1 -1
  440. package/models/operations/webhookdelete.d.ts +12 -0
  441. package/models/operations/webhookdelete.d.ts.map +1 -0
  442. package/models/operations/webhookdelete.js +49 -0
  443. package/models/operations/webhookdelete.js.map +1 -0
  444. package/models/operations/webhookget.d.ts +12 -0
  445. package/models/operations/webhookget.d.ts.map +1 -0
  446. package/models/operations/webhookget.js +49 -0
  447. package/models/operations/webhookget.js.map +1 -0
  448. package/models/operations/webhooklist.d.ts +70 -0
  449. package/models/operations/webhooklist.d.ts.map +1 -0
  450. package/models/operations/webhooklist.js +61 -0
  451. package/models/operations/webhooklist.js.map +1 -0
  452. package/models/operations/webhookupdate.d.ts +29 -0
  453. package/models/operations/webhookupdate.d.ts.map +1 -0
  454. package/models/operations/webhookupdate.js +68 -0
  455. package/models/operations/webhookupdate.js.map +1 -0
  456. package/package.json +4 -5
  457. package/packages/orq-rc/examples/evalsAll.example.ts +26 -0
  458. package/packages/orq-rc/src/core.ts +13 -0
  459. package/packages/orq-rc/src/funcs/agentsCreate.ts +163 -0
  460. package/packages/orq-rc/src/funcs/agentsDelete.ts +181 -0
  461. package/packages/orq-rc/src/funcs/agentsInvoke.ts +178 -0
  462. package/packages/orq-rc/src/funcs/agentsList.ts +186 -0
  463. package/packages/orq-rc/src/funcs/agentsRefreshKeyCard.ts +188 -0
  464. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +189 -0
  465. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +185 -0
  466. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +181 -0
  467. package/packages/orq-rc/src/funcs/agentsRun.ts +164 -0
  468. package/packages/orq-rc/src/funcs/agentsStream.ts +205 -0
  469. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +191 -0
  470. package/packages/orq-rc/src/funcs/agentsUpdate.ts +185 -0
  471. package/packages/orq-rc/src/funcs/annotationsCreate.ts +175 -0
  472. package/packages/orq-rc/src/funcs/annotationsDelete.ts +175 -0
  473. package/packages/orq-rc/src/funcs/apiKeysCreate.ts +162 -0
  474. package/packages/orq-rc/src/funcs/apiKeysDelete.ts +168 -0
  475. package/packages/orq-rc/src/funcs/apiKeysGet.ts +173 -0
  476. package/packages/orq-rc/src/funcs/apiKeysList.ts +176 -0
  477. package/packages/orq-rc/src/funcs/apiKeysListCapabilities.ts +144 -0
  478. package/packages/orq-rc/src/funcs/apiKeysUpdate.ts +171 -0
  479. package/packages/orq-rc/src/funcs/budgetsCreate.ts +162 -0
  480. package/packages/orq-rc/src/funcs/budgetsDelete.ts +168 -0
  481. package/packages/orq-rc/src/funcs/budgetsGet.ts +168 -0
  482. package/packages/orq-rc/src/funcs/budgetsGetConsumption.ts +169 -0
  483. package/packages/orq-rc/src/funcs/budgetsList.ts +176 -0
  484. package/packages/orq-rc/src/funcs/budgetsResetConsumption.ts +174 -0
  485. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +171 -0
  486. package/packages/orq-rc/src/funcs/chunkingParse.ts +162 -0
  487. package/packages/orq-rc/src/funcs/datasetsClear.ts +177 -0
  488. package/packages/orq-rc/src/funcs/datasetsCreate.ts +167 -0
  489. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +172 -0
  490. package/packages/orq-rc/src/funcs/datasetsDelete.ts +168 -0
  491. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +183 -0
  492. package/packages/orq-rc/src/funcs/datasetsList.ts +171 -0
  493. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +184 -0
  494. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +176 -0
  495. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +182 -0
  496. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +177 -0
  497. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +180 -0
  498. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +170 -0
  499. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +170 -0
  500. package/packages/orq-rc/src/funcs/deploymentsList.ts +178 -0
  501. package/packages/orq-rc/src/funcs/deploymentsStream.ts +180 -0
  502. package/packages/orq-rc/src/funcs/evalsAll.ts +178 -0
  503. package/packages/orq-rc/src/funcs/evalsCreate.ts +171 -0
  504. package/packages/orq-rc/src/funcs/evalsDelete.ts +174 -0
  505. package/packages/orq-rc/src/funcs/evalsInvoke.ts +182 -0
  506. package/packages/orq-rc/src/funcs/evalsListVersions.ts +184 -0
  507. package/packages/orq-rc/src/funcs/evalsUpdate.ts +174 -0
  508. package/packages/orq-rc/src/funcs/feedbackCreate.ts +174 -0
  509. package/packages/orq-rc/src/funcs/feedbackCreateEvaluation.ts +161 -0
  510. package/packages/orq-rc/src/funcs/feedbackRemove.ts +169 -0
  511. package/packages/orq-rc/src/funcs/feedbackRemoveEvaluation.ts +161 -0
  512. package/packages/orq-rc/src/funcs/filesCreate.ts +162 -0
  513. package/packages/orq-rc/src/funcs/filesDelete.ts +168 -0
  514. package/packages/orq-rc/src/funcs/filesGet.ts +168 -0
  515. package/packages/orq-rc/src/funcs/filesGetContent.ts +168 -0
  516. package/packages/orq-rc/src/funcs/filesList.ts +172 -0
  517. package/packages/orq-rc/src/funcs/filesUpdate.ts +169 -0
  518. package/packages/orq-rc/src/funcs/guardrailRulesCreate.ts +163 -0
  519. package/packages/orq-rc/src/funcs/guardrailRulesDelete.ts +172 -0
  520. package/packages/orq-rc/src/funcs/guardrailRulesList.ts +176 -0
  521. package/packages/orq-rc/src/funcs/guardrailRulesListUsedGuardrails.ts +147 -0
  522. package/packages/orq-rc/src/funcs/guardrailRulesRetrieve.ts +170 -0
  523. package/packages/orq-rc/src/funcs/guardrailRulesUpdate.ts +172 -0
  524. package/packages/orq-rc/src/funcs/humanReviewSetsCreate.ts +164 -0
  525. package/packages/orq-rc/src/funcs/humanReviewSetsDelete.ts +166 -0
  526. package/packages/orq-rc/src/funcs/humanReviewSetsGet.ts +165 -0
  527. package/packages/orq-rc/src/funcs/humanReviewSetsList.ts +170 -0
  528. package/packages/orq-rc/src/funcs/humanReviewSetsUpdate.ts +166 -0
  529. package/packages/orq-rc/src/funcs/identitiesCreate.ts +162 -0
  530. package/packages/orq-rc/src/funcs/identitiesDelete.ts +168 -0
  531. package/packages/orq-rc/src/funcs/identitiesList.ts +175 -0
  532. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +174 -0
  533. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +171 -0
  534. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +160 -0
  535. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +172 -0
  536. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +167 -0
  537. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +168 -0
  538. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +175 -0
  539. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +171 -0
  540. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +174 -0
  541. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +174 -0
  542. package/packages/orq-rc/src/funcs/knowledgeList.ts +175 -0
  543. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +179 -0
  544. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +172 -0
  545. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +176 -0
  546. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +167 -0
  547. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +174 -0
  548. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +170 -0
  549. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +168 -0
  550. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +165 -0
  551. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +175 -0
  552. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +171 -0
  553. package/packages/orq-rc/src/funcs/managementKeysCreate.ts +163 -0
  554. package/packages/orq-rc/src/funcs/managementKeysDelete.ts +172 -0
  555. package/packages/orq-rc/src/funcs/managementKeysGet.ts +171 -0
  556. package/packages/orq-rc/src/funcs/managementKeysList.ts +175 -0
  557. package/packages/orq-rc/src/funcs/managementKeysListCapabilities.ts +144 -0
  558. package/packages/orq-rc/src/funcs/managementKeysUpdate.ts +175 -0
  559. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +164 -0
  560. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +177 -0
  561. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +171 -0
  562. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +169 -0
  563. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +186 -0
  564. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +181 -0
  565. package/packages/orq-rc/src/funcs/memoryStoresList.ts +183 -0
  566. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +185 -0
  567. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +178 -0
  568. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +178 -0
  569. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +180 -0
  570. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +175 -0
  571. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +169 -0
  572. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +181 -0
  573. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +176 -0
  574. package/packages/orq-rc/src/funcs/modelsAzureFoundryDeployments.ts +168 -0
  575. package/packages/orq-rc/src/funcs/modelsCreate.ts +162 -0
  576. package/packages/orq-rc/src/funcs/modelsCreateAwsBedrock.ts +163 -0
  577. package/packages/orq-rc/src/funcs/modelsCreateOpenaiLike.ts +163 -0
  578. package/packages/orq-rc/src/funcs/modelsCreateVertex.ts +163 -0
  579. package/packages/orq-rc/src/funcs/modelsDelete.ts +168 -0
  580. package/packages/orq-rc/src/funcs/modelsDisable.ts +168 -0
  581. package/packages/orq-rc/src/funcs/modelsEnable.ts +163 -0
  582. package/packages/orq-rc/src/funcs/modelsImportLitellm.ts +166 -0
  583. package/packages/orq-rc/src/funcs/modelsList.ts +144 -0
  584. package/packages/orq-rc/src/funcs/modelsListLitellm.ts +144 -0
  585. package/packages/orq-rc/src/funcs/modelsUpdate.ts +168 -0
  586. package/packages/orq-rc/src/funcs/modelsUpdateAwsBedrock.ts +169 -0
  587. package/packages/orq-rc/src/funcs/modelsUpdateOpenaiLike.ts +169 -0
  588. package/packages/orq-rc/src/funcs/modelsValidate.ts +163 -0
  589. package/packages/orq-rc/src/funcs/modelsValidateAwsBedrock.ts +164 -0
  590. package/packages/orq-rc/src/funcs/notifiersCreate.ts +162 -0
  591. package/packages/orq-rc/src/funcs/notifiersDelete.ts +168 -0
  592. package/packages/orq-rc/src/funcs/notifiersGet.ts +168 -0
  593. package/packages/orq-rc/src/funcs/notifiersList.ts +173 -0
  594. package/packages/orq-rc/src/funcs/notifiersUpdate.ts +171 -0
  595. package/packages/orq-rc/src/funcs/piiDetect.ts +162 -0
  596. package/packages/orq-rc/src/funcs/piiRedact.ts +162 -0
  597. package/packages/orq-rc/src/funcs/piiRestore.ts +162 -0
  598. package/packages/orq-rc/src/funcs/policiesCreate.ts +162 -0
  599. package/packages/orq-rc/src/funcs/policiesDelete.ts +168 -0
  600. package/packages/orq-rc/src/funcs/policiesList.ts +170 -0
  601. package/packages/orq-rc/src/funcs/policiesRetrieve.ts +167 -0
  602. package/packages/orq-rc/src/funcs/policiesUpdate.ts +168 -0
  603. package/packages/orq-rc/src/funcs/projectsCreate.ts +162 -0
  604. package/packages/orq-rc/src/funcs/projectsDelete.ts +168 -0
  605. package/packages/orq-rc/src/funcs/projectsGet.ts +168 -0
  606. package/packages/orq-rc/src/funcs/projectsList.ts +170 -0
  607. package/packages/orq-rc/src/funcs/projectsUpdate.ts +171 -0
  608. package/packages/orq-rc/src/funcs/promptsCreate.ts +163 -0
  609. package/packages/orq-rc/src/funcs/promptsDelete.ts +174 -0
  610. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +182 -0
  611. package/packages/orq-rc/src/funcs/promptsList.ts +169 -0
  612. package/packages/orq-rc/src/funcs/promptsListVersions.ts +174 -0
  613. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +167 -0
  614. package/packages/orq-rc/src/funcs/promptsUpdate.ts +174 -0
  615. package/packages/orq-rc/src/funcs/reportingQuery.ts +164 -0
  616. package/packages/orq-rc/src/funcs/responsesCreate.ts +170 -0
  617. package/packages/orq-rc/src/funcs/responsesGet.ts +167 -0
  618. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +163 -0
  619. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +272 -0
  620. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +262 -0
  621. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +170 -0
  622. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +170 -0
  623. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +163 -0
  624. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +224 -0
  625. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +162 -0
  626. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +220 -0
  627. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +169 -0
  628. package/packages/orq-rc/src/funcs/routerOcr.ts +160 -0
  629. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +162 -0
  630. package/packages/orq-rc/src/funcs/routingRulesCreate.ts +163 -0
  631. package/packages/orq-rc/src/funcs/routingRulesDelete.ts +168 -0
  632. package/packages/orq-rc/src/funcs/routingRulesList.ts +173 -0
  633. package/packages/orq-rc/src/funcs/routingRulesListUsedModels.ts +144 -0
  634. package/packages/orq-rc/src/funcs/routingRulesRetrieve.ts +167 -0
  635. package/packages/orq-rc/src/funcs/routingRulesUpdate.ts +168 -0
  636. package/packages/orq-rc/src/funcs/schedulesCreate.ts +185 -0
  637. package/packages/orq-rc/src/funcs/schedulesDelete.ts +184 -0
  638. package/packages/orq-rc/src/funcs/schedulesList.ts +167 -0
  639. package/packages/orq-rc/src/funcs/schedulesRetrieve.ts +183 -0
  640. package/packages/orq-rc/src/funcs/schedulesTrigger.ts +190 -0
  641. package/packages/orq-rc/src/funcs/schedulesUpdate.ts +191 -0
  642. package/packages/orq-rc/src/funcs/skillsCreate.ts +162 -0
  643. package/packages/orq-rc/src/funcs/skillsDelete.ts +168 -0
  644. package/packages/orq-rc/src/funcs/skillsGet.ts +168 -0
  645. package/packages/orq-rc/src/funcs/skillsList.ts +170 -0
  646. package/packages/orq-rc/src/funcs/skillsUpdate.ts +171 -0
  647. package/packages/orq-rc/src/funcs/smartRoutersCreate.ts +162 -0
  648. package/packages/orq-rc/src/funcs/smartRoutersDelete.ts +168 -0
  649. package/packages/orq-rc/src/funcs/smartRoutersGet.ts +168 -0
  650. package/packages/orq-rc/src/funcs/smartRoutersList.ts +173 -0
  651. package/packages/orq-rc/src/funcs/smartRoutersSetEnabled.ts +174 -0
  652. package/packages/orq-rc/src/funcs/smartRoutersUpdate.ts +171 -0
  653. package/packages/orq-rc/src/funcs/telemetryQuery.ts +162 -0
  654. package/packages/orq-rc/src/funcs/toolsCreate.ts +165 -0
  655. package/packages/orq-rc/src/funcs/toolsDelete.ts +168 -0
  656. package/packages/orq-rc/src/funcs/toolsGetVersion.ts +191 -0
  657. package/packages/orq-rc/src/funcs/toolsList.ts +178 -0
  658. package/packages/orq-rc/src/funcs/toolsListVersions.ts +184 -0
  659. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +167 -0
  660. package/packages/orq-rc/src/funcs/toolsUpdate.ts +177 -0
  661. package/packages/orq-rc/src/funcs/tracesAggregate.ts +164 -0
  662. package/packages/orq-rc/src/funcs/tracesGet.ts +168 -0
  663. package/packages/orq-rc/src/funcs/tracesGetSpan.ts +172 -0
  664. package/packages/orq-rc/src/funcs/tracesListFacetValues.ts +177 -0
  665. package/packages/orq-rc/src/funcs/tracesListFacets.ts +144 -0
  666. package/packages/orq-rc/src/funcs/tracesListFields.ts +144 -0
  667. package/packages/orq-rc/src/funcs/tracesListSpans.ts +174 -0
  668. package/packages/orq-rc/src/funcs/tracesQuery.ts +162 -0
  669. package/{src/funcs/budgetsCheck.ts → packages/orq-rc/src/funcs/tracesSearch.ts} +12 -12
  670. package/packages/orq-rc/src/funcs/webhooksCount.ts +144 -0
  671. package/packages/orq-rc/src/funcs/webhooksCreate.ts +162 -0
  672. package/packages/orq-rc/src/funcs/webhooksDelete.ts +168 -0
  673. package/packages/orq-rc/src/funcs/webhooksGenerateSecret.ts +144 -0
  674. package/packages/orq-rc/src/funcs/webhooksGet.ts +168 -0
  675. package/packages/orq-rc/src/funcs/webhooksList.ts +175 -0
  676. package/packages/orq-rc/src/funcs/webhooksQuery.ts +164 -0
  677. package/packages/orq-rc/src/funcs/webhooksUpdate.ts +168 -0
  678. package/packages/orq-rc/src/hooks/global.ts +44 -0
  679. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  680. package/packages/orq-rc/src/hooks/index.ts +6 -0
  681. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  682. package/packages/orq-rc/src/hooks/types.ts +113 -0
  683. package/packages/orq-rc/src/index.ts +9 -0
  684. package/packages/orq-rc/src/lib/base64.ts +37 -0
  685. package/packages/orq-rc/src/lib/config.ts +64 -0
  686. package/packages/orq-rc/src/lib/encodings.ts +525 -0
  687. package/packages/orq-rc/src/lib/env.ts +61 -0
  688. package/packages/orq-rc/src/lib/event-streams.ts +191 -0
  689. package/packages/orq-rc/src/lib/files.ts +104 -0
  690. package/packages/orq-rc/src/lib/http.ts +325 -0
  691. package/packages/orq-rc/src/lib/logger.ts +9 -0
  692. package/packages/orq-rc/src/lib/matchers.ts +346 -0
  693. package/packages/orq-rc/src/lib/primitives.ts +166 -0
  694. package/packages/orq-rc/src/lib/retries.ts +226 -0
  695. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  696. package/packages/orq-rc/src/lib/sdks.ts +443 -0
  697. package/packages/orq-rc/src/lib/security.ts +280 -0
  698. package/packages/orq-rc/src/lib/url.ts +35 -0
  699. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +99 -0
  700. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +190 -0
  701. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +73 -0
  702. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +91 -0
  703. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +71 -0
  704. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +507 -0
  705. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +165 -0
  706. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +103 -0
  707. package/packages/orq-rc/src/models/components/agentresponserequest.ts +565 -0
  708. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +531 -0
  709. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +807 -0
  710. package/packages/orq-rc/src/models/components/agenttoolinputcrud.ts +747 -0
  711. package/packages/orq-rc/src/models/components/aggregatetracesrequest.ts +65 -0
  712. package/packages/orq-rc/src/models/components/aggregatetracesresponse.ts +37 -0
  713. package/packages/orq-rc/src/models/components/allprojects.ts +39 -0
  714. package/packages/orq-rc/src/models/components/apikey.ts +293 -0
  715. package/packages/orq-rc/src/models/components/apikeybudgetscope.ts +66 -0
  716. package/packages/orq-rc/src/models/components/apikeyowner.ts +82 -0
  717. package/packages/orq-rc/src/models/components/apikeystatus.ts +21 -0
  718. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +136 -0
  719. package/packages/orq-rc/src/models/components/autorouterconfig.ts +92 -0
  720. package/packages/orq-rc/src/models/components/autorouterv2config.ts +152 -0
  721. package/packages/orq-rc/src/models/components/autorouterv2creatorconfig.ts +59 -0
  722. package/packages/orq-rc/src/models/components/autorouterv2effortconfig.ts +66 -0
  723. package/packages/orq-rc/src/models/components/azurefoundrydeployment.ts +51 -0
  724. package/packages/orq-rc/src/models/components/azurefoundrydeploymentmasterdata.ts +60 -0
  725. package/packages/orq-rc/src/models/components/budget.ts +120 -0
  726. package/packages/orq-rc/src/models/components/budgetalert.ts +92 -0
  727. package/packages/orq-rc/src/models/components/budgetalertdimension.ts +22 -0
  728. package/packages/orq-rc/src/models/components/budgetlimit.ts +83 -0
  729. package/packages/orq-rc/src/models/components/budgetlimits.ts +84 -0
  730. package/packages/orq-rc/src/models/components/budgetmatch.ts +56 -0
  731. package/packages/orq-rc/src/models/components/budgetperiod.ts +23 -0
  732. package/packages/orq-rc/src/models/components/budgetscope.ts +150 -0
  733. package/packages/orq-rc/src/models/components/budgetscopekind.ts +22 -0
  734. package/packages/orq-rc/src/models/components/budgetsortfield.ts +19 -0
  735. package/packages/orq-rc/src/models/components/budgetusage.ts +54 -0
  736. package/packages/orq-rc/src/models/components/codetoolinput.ts +62 -0
  737. package/packages/orq-rc/src/models/components/config.ts +44 -0
  738. package/packages/orq-rc/src/models/components/conversationparam.ts +51 -0
  739. package/packages/orq-rc/src/models/components/countwebhooksresponse.ts +37 -0
  740. package/packages/orq-rc/src/models/components/createagentresponse.ts +305 -0
  741. package/packages/orq-rc/src/models/components/createapikeyrequest.ts +91 -0
  742. package/packages/orq-rc/src/models/components/createapikeyresponse.ts +49 -0
  743. package/packages/orq-rc/src/models/components/createbudgetrequest.ts +123 -0
  744. package/packages/orq-rc/src/models/components/createbudgetresponse.ts +35 -0
  745. package/packages/orq-rc/src/models/components/createfilerequest.ts +62 -0
  746. package/packages/orq-rc/src/models/components/createfileresponse.ts +35 -0
  747. package/packages/orq-rc/src/models/components/createidentityrequest.ts +100 -0
  748. package/packages/orq-rc/src/models/components/createidentityresponse.ts +35 -0
  749. package/packages/orq-rc/src/models/components/createmanagementkeyrequest.ts +69 -0
  750. package/packages/orq-rc/src/models/components/createmanagementkeyresponse.ts +48 -0
  751. package/packages/orq-rc/src/models/components/createmodelparameter.ts +54 -0
  752. package/packages/orq-rc/src/models/components/createnotifierrequest.ts +433 -0
  753. package/packages/orq-rc/src/models/components/createnotifierresponse.ts +35 -0
  754. package/packages/orq-rc/src/models/components/createprojectrequest.ts +46 -0
  755. package/packages/orq-rc/src/models/components/createprojectresponse.ts +35 -0
  756. package/packages/orq-rc/src/models/components/createskillrequest.ts +159 -0
  757. package/packages/orq-rc/src/models/components/createskillresponse.ts +35 -0
  758. package/packages/orq-rc/src/models/components/createsmartrouterrequest.ts +47 -0
  759. package/packages/orq-rc/src/models/components/createsmartrouterresponse.ts +37 -0
  760. package/packages/orq-rc/src/models/components/createwebhookrequest.ts +100 -0
  761. package/packages/orq-rc/src/models/components/datapart.ts +38 -0
  762. package/packages/orq-rc/src/models/components/datapoint.ts +60 -0
  763. package/packages/orq-rc/src/models/components/deleteapikeyresponse.ts +27 -0
  764. package/packages/orq-rc/src/models/components/deletebudgetresponse.ts +27 -0
  765. package/packages/orq-rc/src/models/components/deletefileresponse.ts +27 -0
  766. package/packages/orq-rc/src/models/components/deleteidentityresponse.ts +27 -0
  767. package/packages/orq-rc/src/models/components/deletemanagementkeyresponse.ts +27 -0
  768. package/packages/orq-rc/src/models/components/deletenotifierresponse.ts +27 -0
  769. package/packages/orq-rc/src/models/components/deleteprojectresponse.ts +27 -0
  770. package/packages/orq-rc/src/models/components/deleteskillresponse.ts +27 -0
  771. package/packages/orq-rc/src/models/components/deletesmartrouterresponse.ts +27 -0
  772. package/packages/orq-rc/src/models/components/deletewebhookresponse.ts +34 -0
  773. package/packages/orq-rc/src/models/components/detectrequest.ts +56 -0
  774. package/packages/orq-rc/src/models/components/detectresponse.ts +41 -0
  775. package/packages/orq-rc/src/models/components/domain.ts +66 -0
  776. package/packages/orq-rc/src/models/components/embeddingcacheconfig.ts +59 -0
  777. package/packages/orq-rc/src/models/components/embeddingcontactparams.ts +48 -0
  778. package/packages/orq-rc/src/models/components/embeddingloadbalancerconfig.ts +66 -0
  779. package/packages/orq-rc/src/models/components/embeddingloadbalancermodelconfig.ts +42 -0
  780. package/packages/orq-rc/src/models/components/embeddingorqparams.ts +101 -0
  781. package/packages/orq-rc/src/models/components/embeddingretryconfig.ts +45 -0
  782. package/packages/orq-rc/src/models/components/embeddingtimeoutconfig.ts +39 -0
  783. package/packages/orq-rc/src/models/components/errorpart.ts +58 -0
  784. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +66 -0
  785. package/packages/orq-rc/src/models/components/evaluatorref.ts +93 -0
  786. package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +916 -0
  787. package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +71 -0
  788. package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +54 -0
  789. package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +304 -0
  790. package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +54 -0
  791. package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +78 -0
  792. package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +54 -0
  793. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +71 -0
  794. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +61 -0
  795. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +67 -0
  796. package/packages/orq-rc/src/models/components/expression.ts +33 -0
  797. package/packages/orq-rc/src/models/components/expressioninput.ts +29 -0
  798. package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
  799. package/packages/orq-rc/src/models/components/fallbackconfig.ts +27 -0
  800. package/packages/orq-rc/src/models/components/file.ts +64 -0
  801. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +87 -0
  802. package/packages/orq-rc/src/models/components/filepart.ts +223 -0
  803. package/packages/orq-rc/src/models/components/filepurpose.ts +22 -0
  804. package/packages/orq-rc/src/models/components/filter.ts +137 -0
  805. package/packages/orq-rc/src/models/components/functiontoolinput.ts +60 -0
  806. package/packages/orq-rc/src/models/components/generatewebhooksecretresponse.ts +37 -0
  807. package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
  808. package/packages/orq-rc/src/models/components/getapikeyresponse.ts +40 -0
  809. package/packages/orq-rc/src/models/components/getbudgetconsumptionresponse.ts +71 -0
  810. package/packages/orq-rc/src/models/components/getbudgetresponse.ts +35 -0
  811. package/packages/orq-rc/src/models/components/getfilecontentresponse.ts +39 -0
  812. package/packages/orq-rc/src/models/components/getfileresponse.ts +35 -0
  813. package/packages/orq-rc/src/models/components/getmanagementkeyresponse.ts +40 -0
  814. package/packages/orq-rc/src/models/components/getnotifierresponse.ts +35 -0
  815. package/packages/orq-rc/src/models/components/getprojectresponse.ts +35 -0
  816. package/packages/orq-rc/src/models/components/getskillresponse.ts +35 -0
  817. package/packages/orq-rc/src/models/components/getsmartrouterresponse.ts +37 -0
  818. package/packages/orq-rc/src/models/components/gettraceresponse.ts +32 -0
  819. package/packages/orq-rc/src/models/components/gettracespanresponse.ts +32 -0
  820. package/packages/orq-rc/src/models/components/guardrailref.ts +91 -0
  821. package/packages/orq-rc/src/models/components/guardrailrule.ts +69 -0
  822. package/packages/orq-rc/src/models/components/httptoolinput.ts +62 -0
  823. package/packages/orq-rc/src/models/components/identity.ts +252 -0
  824. package/packages/orq-rc/src/models/components/identitybudgetscope.ts +66 -0
  825. package/packages/orq-rc/src/models/components/identitymetrics.ts +57 -0
  826. package/packages/orq-rc/src/models/components/identitysortfield.ts +18 -0
  827. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +268 -0
  828. package/packages/orq-rc/src/models/components/incompletedetails.ts +31 -0
  829. package/packages/orq-rc/src/models/components/index.ts +368 -0
  830. package/packages/orq-rc/src/models/components/inputtokensdetails.ts +45 -0
  831. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +3492 -0
  832. package/packages/orq-rc/src/models/components/jsonschematoolinput.ts +60 -0
  833. package/packages/orq-rc/src/models/components/legacytokenfamily.ts +19 -0
  834. package/packages/orq-rc/src/models/components/limits.ts +70 -0
  835. package/packages/orq-rc/src/models/components/listapikeysresponse.ts +56 -0
  836. package/packages/orq-rc/src/models/components/listbudgetsresponse.ts +53 -0
  837. package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +38 -0
  838. package/packages/orq-rc/src/models/components/listfilesresponse.ts +50 -0
  839. package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +53 -0
  840. package/packages/orq-rc/src/models/components/listmanagementcapabilitiesresponse.ts +36 -0
  841. package/packages/orq-rc/src/models/components/listmanagementkeysresponse.ts +56 -0
  842. package/packages/orq-rc/src/models/components/listnotifiersresponse.ts +50 -0
  843. package/packages/orq-rc/src/models/components/listprojectsresponse.ts +53 -0
  844. package/packages/orq-rc/src/models/components/listskillsresponse.ts +53 -0
  845. package/packages/orq-rc/src/models/components/listsmartroutersresponse.ts +41 -0
  846. package/packages/orq-rc/src/models/components/listtracefacetsresponse.ts +32 -0
  847. package/packages/orq-rc/src/models/components/listtracefacetvaluesresponse.ts +44 -0
  848. package/packages/orq-rc/src/models/components/listtracefieldsresponse.ts +32 -0
  849. package/packages/orq-rc/src/models/components/listtracespansresponse.ts +44 -0
  850. package/packages/orq-rc/src/models/components/listwebhooksresponse.ts +53 -0
  851. package/packages/orq-rc/src/models/components/litellmmodel.ts +50 -0
  852. package/packages/orq-rc/src/models/components/litellmmodelinfo.ts +97 -0
  853. package/packages/orq-rc/src/models/components/litellmparams.ts +43 -0
  854. package/packages/orq-rc/src/models/components/managementkey.ts +132 -0
  855. package/packages/orq-rc/src/models/components/managementkeystatus.ts +23 -0
  856. package/packages/orq-rc/src/models/components/managementpermissionmode.ts +25 -0
  857. package/packages/orq-rc/src/models/components/mcptoolinput.ts +63 -0
  858. package/packages/orq-rc/src/models/components/memoryparam.ts +56 -0
  859. package/packages/orq-rc/src/models/components/modelbudgetscope.ts +67 -0
  860. package/packages/orq-rc/src/models/components/modelconfigurationresponse.ts +82 -0
  861. package/packages/orq-rc/src/models/components/modeldocument.ts +115 -0
  862. package/packages/orq-rc/src/models/components/modelmetadata.ts +738 -0
  863. package/packages/orq-rc/src/models/components/modelparameterdocument.ts +53 -0
  864. package/packages/orq-rc/src/models/components/modelref.ts +70 -0
  865. package/packages/orq-rc/src/models/components/modelsconfig.ts +75 -0
  866. package/packages/orq-rc/src/models/components/notifier.ts +465 -0
  867. package/packages/orq-rc/src/models/components/notifiertype.ts +21 -0
  868. package/packages/orq-rc/src/models/components/outputtokensdetails.ts +36 -0
  869. package/packages/orq-rc/src/models/components/ownertype.ts +17 -0
  870. package/packages/orq-rc/src/models/components/partdelta.ts +39 -0
  871. package/packages/orq-rc/src/models/components/partdeltaevent.ts +73 -0
  872. package/packages/orq-rc/src/models/components/partdoneevent.ts +70 -0
  873. package/packages/orq-rc/src/models/components/permissionmode.ts +23 -0
  874. package/packages/orq-rc/src/models/components/piiredactionplugin.ts +44 -0
  875. package/packages/orq-rc/src/models/components/piiredactionpluginauto.ts +185 -0
  876. package/packages/orq-rc/src/models/components/piiredactionpluginen.ts +222 -0
  877. package/packages/orq-rc/src/models/components/piiredactionpluginnl.ts +218 -0
  878. package/packages/orq-rc/src/models/components/plugin.ts +37 -0
  879. package/packages/orq-rc/src/models/components/policy.ts +80 -0
  880. package/packages/orq-rc/src/models/components/policyretryconfig.ts +64 -0
  881. package/packages/orq-rc/src/models/components/price.ts +56 -0
  882. package/packages/orq-rc/src/models/components/pricing.ts +93 -0
  883. package/packages/orq-rc/src/models/components/pricingvariant.ts +90 -0
  884. package/packages/orq-rc/src/models/components/project.ts +108 -0
  885. package/packages/orq-rc/src/models/components/projectbudgetscope.ts +63 -0
  886. package/packages/orq-rc/src/models/components/projectscope.ts +70 -0
  887. package/packages/orq-rc/src/models/components/providerbudgetscope.ts +57 -0
  888. package/packages/orq-rc/src/models/components/providertoolinput.ts +72 -0
  889. package/packages/orq-rc/src/models/components/publiccontact.ts +71 -0
  890. package/packages/orq-rc/src/models/components/publicembeddingdata.ts +60 -0
  891. package/packages/orq-rc/src/models/components/publicembeddingusage.ts +45 -0
  892. package/packages/orq-rc/src/models/components/publicidentity.ts +69 -0
  893. package/packages/orq-rc/src/models/components/publicmodelentry.ts +71 -0
  894. package/packages/orq-rc/src/models/components/publicpiiredactionplugin.ts +127 -0
  895. package/packages/orq-rc/src/models/components/publicresponseresource.ts +196 -0
  896. package/packages/orq-rc/src/models/components/publicschedule.ts +118 -0
  897. package/packages/orq-rc/src/models/components/publicscheduleerrordetail.ts +39 -0
  898. package/packages/orq-rc/src/models/components/publicschedulepayload.ts +84 -0
  899. package/packages/orq-rc/src/models/components/publicusage.ts +77 -0
  900. package/packages/orq-rc/src/models/components/queryparamspagination.ts +40 -0
  901. package/packages/orq-rc/src/models/components/queryparamssort.ts +32 -0
  902. package/packages/orq-rc/src/models/components/queryreportrequest.ts +237 -0
  903. package/packages/orq-rc/src/models/components/queryreportresponse.ts +99 -0
  904. package/packages/orq-rc/src/models/components/querytelemetrymeta.ts +38 -0
  905. package/packages/orq-rc/src/models/components/querytelemetryrequest.ts +85 -0
  906. package/packages/orq-rc/src/models/components/querytelemetryresponse.ts +42 -0
  907. package/packages/orq-rc/src/models/components/querytracesrequest.ts +48 -0
  908. package/packages/orq-rc/src/models/components/querytracesresponse.ts +37 -0
  909. package/packages/orq-rc/src/models/components/querywebhooksrequest.ts +85 -0
  910. package/packages/orq-rc/src/models/components/querywebhooksresponse.ts +34 -0
  911. package/packages/orq-rc/src/models/components/ratelimit.ts +62 -0
  912. package/packages/orq-rc/src/models/components/reasoning.ts +79 -0
  913. package/packages/orq-rc/src/models/components/reasoningparam.ts +74 -0
  914. package/packages/orq-rc/src/models/components/reasoningpart.ts +62 -0
  915. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +71 -0
  916. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +66 -0
  917. package/packages/orq-rc/src/models/components/redactrequest.ts +33 -0
  918. package/packages/orq-rc/src/models/components/redactresponse.ts +41 -0
  919. package/packages/orq-rc/src/models/components/refusalpartschema.ts +64 -0
  920. package/packages/orq-rc/src/models/components/requestlimit.ts +69 -0
  921. package/packages/orq-rc/src/models/components/resetbudgetconsumptionrequest.ts +27 -0
  922. package/packages/orq-rc/src/models/components/resetbudgetconsumptionresponse.ts +38 -0
  923. package/packages/orq-rc/src/models/components/responsecodeinterpretercallcodedeltastreamevent.ts +79 -0
  924. package/packages/orq-rc/src/models/components/responsecodeinterpretercallcodedonestreamevent.ts +79 -0
  925. package/packages/orq-rc/src/models/components/responsecodeinterpretercallcompletedstreamevent.ts +74 -0
  926. package/packages/orq-rc/src/models/components/responsecodeinterpretercallinprogressstreamevent.ts +74 -0
  927. package/packages/orq-rc/src/models/components/responsecodeinterpretercallinterpretingstreamevent.ts +74 -0
  928. package/packages/orq-rc/src/models/components/responsecompletedstreamevent.ts +61 -0
  929. package/packages/orq-rc/src/models/components/responsecontentpartaddedstreamevent.ts +79 -0
  930. package/packages/orq-rc/src/models/components/responsecontentpartdonestreamevent.ts +79 -0
  931. package/packages/orq-rc/src/models/components/responsecreatedstreamevent.ts +61 -0
  932. package/packages/orq-rc/src/models/components/responsecustomtoolcallinputdeltastreamevent.ts +79 -0
  933. package/packages/orq-rc/src/models/components/responsecustomtoolcallinputdonestreamevent.ts +76 -0
  934. package/packages/orq-rc/src/models/components/responsedoneevent.ts +324 -0
  935. package/packages/orq-rc/src/models/components/responseerror.ts +33 -0
  936. package/packages/orq-rc/src/models/components/responseerrorstreamevent.ts +58 -0
  937. package/packages/orq-rc/src/models/components/responseexecutionlimits.ts +52 -0
  938. package/packages/orq-rc/src/models/components/responsefailedevent.ts +72 -0
  939. package/packages/orq-rc/src/models/components/responsefailedstreamevent.ts +61 -0
  940. package/packages/orq-rc/src/models/components/responsefilesearchcallcompletedstreamevent.ts +71 -0
  941. package/packages/orq-rc/src/models/components/responsefilesearchcallinprogressstreamevent.ts +74 -0
  942. package/packages/orq-rc/src/models/components/responsefilesearchcallsearchingstreamevent.ts +71 -0
  943. package/packages/orq-rc/src/models/components/responsefunctioncallargumentsdeltastreamevent.ts +84 -0
  944. package/packages/orq-rc/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +79 -0
  945. package/packages/orq-rc/src/models/components/responseidentity.ts +48 -0
  946. package/packages/orq-rc/src/models/components/responseimagegenerationcallcompletedstreamevent.ts +74 -0
  947. package/packages/orq-rc/src/models/components/responseimagegenerationcallgeneratingstreamevent.ts +74 -0
  948. package/packages/orq-rc/src/models/components/responseimagegenerationcallinprogressstreamevent.ts +74 -0
  949. package/packages/orq-rc/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +86 -0
  950. package/packages/orq-rc/src/models/components/responseincompletestreamevent.ts +61 -0
  951. package/packages/orq-rc/src/models/components/responseinprogressstreamevent.ts +61 -0
  952. package/packages/orq-rc/src/models/components/responsemcpcallargumentsdeltastreamevent.ts +78 -0
  953. package/packages/orq-rc/src/models/components/responsemcpcallargumentsdonestreamevent.ts +78 -0
  954. package/packages/orq-rc/src/models/components/responsemcpcallcompletedstreamevent.ts +68 -0
  955. package/packages/orq-rc/src/models/components/responsemcpcallfailedstreamevent.ts +67 -0
  956. package/packages/orq-rc/src/models/components/responsemcpcallinprogressstreamevent.ts +68 -0
  957. package/packages/orq-rc/src/models/components/responsemcplisttoolscompletedstreamevent.ts +73 -0
  958. package/packages/orq-rc/src/models/components/responsemcplisttoolsfailedstreamevent.ts +68 -0
  959. package/packages/orq-rc/src/models/components/responsemcplisttoolsinprogressstreamevent.ts +73 -0
  960. package/packages/orq-rc/src/models/components/responsemeta.ts +103 -0
  961. package/packages/orq-rc/src/models/components/responseoutputitemaddedstreamevent.ts +67 -0
  962. package/packages/orq-rc/src/models/components/responseoutputitemdonestreamevent.ts +66 -0
  963. package/packages/orq-rc/src/models/components/responseoutputtextannotationaddedstreamevent.ts +91 -0
  964. package/packages/orq-rc/src/models/components/responseoutputtextdeltastreamevent.ts +89 -0
  965. package/packages/orq-rc/src/models/components/responseoutputtextdonestreamevent.ts +83 -0
  966. package/packages/orq-rc/src/models/components/responsequeuedstreamevent.ts +61 -0
  967. package/packages/orq-rc/src/models/components/responsereasoningdeltastreamevent.ts +83 -0
  968. package/packages/orq-rc/src/models/components/responsereasoningdonestreamevent.ts +78 -0
  969. package/packages/orq-rc/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +85 -0
  970. package/packages/orq-rc/src/models/components/responsereasoningsummarypartdonestreamevent.ts +85 -0
  971. package/packages/orq-rc/src/models/components/responsereasoningsummarytextdeltastreamevent.ts +90 -0
  972. package/packages/orq-rc/src/models/components/responsereasoningsummarytextdonestreamevent.ts +85 -0
  973. package/packages/orq-rc/src/models/components/responsereasoningtextdeltastreamevent.ts +84 -0
  974. package/packages/orq-rc/src/models/components/responsereasoningtextdonestreamevent.ts +79 -0
  975. package/packages/orq-rc/src/models/components/responserefusaldeltastreamevent.ts +78 -0
  976. package/packages/orq-rc/src/models/components/responserefusaldonestreamevent.ts +78 -0
  977. package/packages/orq-rc/src/models/components/responseretryconfig.ts +45 -0
  978. package/packages/orq-rc/src/models/components/responsestartedevent.ts +97 -0
  979. package/packages/orq-rc/src/models/components/responsestreamevent.ts +337 -0
  980. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +85 -0
  981. package/packages/orq-rc/src/models/components/responsethread.ts +30 -0
  982. package/packages/orq-rc/src/models/components/responsewebsearchcallcompletedstreamevent.ts +73 -0
  983. package/packages/orq-rc/src/models/components/responsewebsearchcallinprogressstreamevent.ts +71 -0
  984. package/packages/orq-rc/src/models/components/responsewebsearchcallsearchingstreamevent.ts +73 -0
  985. package/packages/orq-rc/src/models/components/restorerequest.ts +38 -0
  986. package/packages/orq-rc/src/models/components/restoreresponse.ts +36 -0
  987. package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +35 -0
  988. package/packages/orq-rc/src/models/components/reviewoutcome.ts +23 -0
  989. package/packages/orq-rc/src/models/components/routingrule.ts +67 -0
  990. package/packages/orq-rc/src/models/components/searchtracesrequest.ts +68 -0
  991. package/packages/orq-rc/src/models/components/searchtracesresponse.ts +72 -0
  992. package/packages/orq-rc/src/models/components/security.ts +32 -0
  993. package/packages/orq-rc/src/models/components/serviceaccountowner.ts +43 -0
  994. package/packages/orq-rc/src/models/components/setsmartrouterenabledrequest.ts +33 -0
  995. package/packages/orq-rc/src/models/components/setsmartrouterenabledresponse.ts +37 -0
  996. package/packages/orq-rc/src/models/components/singleproject.ts +59 -0
  997. package/packages/orq-rc/src/models/components/skill.ts +109 -0
  998. package/packages/orq-rc/src/models/components/smartrouter.ts +72 -0
  999. package/packages/orq-rc/src/models/components/smartrouterprofile.ts +23 -0
  1000. package/packages/orq-rc/src/models/components/spandetail.ts +53 -0
  1001. package/packages/orq-rc/src/models/components/spansummary.ts +76 -0
  1002. package/packages/orq-rc/src/models/components/streamoptions.ts +32 -0
  1003. package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
  1004. package/packages/orq-rc/src/models/components/telemetryrow.ts +42 -0
  1005. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +211 -0
  1006. package/packages/orq-rc/src/models/components/textpart.ts +54 -0
  1007. package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +59 -0
  1008. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +59 -0
  1009. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +108 -0
  1010. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +64 -0
  1011. package/packages/orq-rc/src/models/components/tokenlimit.ts +69 -0
  1012. package/packages/orq-rc/src/models/components/toolcallpart.ts +51 -0
  1013. package/packages/orq-rc/src/models/components/tooldoneevent.ts +77 -0
  1014. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +235 -0
  1015. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +219 -0
  1016. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +215 -0
  1017. package/packages/orq-rc/src/models/components/toolfailedevent.ts +77 -0
  1018. package/packages/orq-rc/src/models/components/toolresultpart.ts +71 -0
  1019. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +78 -0
  1020. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +87 -0
  1021. package/packages/orq-rc/src/models/components/toolstartedevent.ts +82 -0
  1022. package/packages/orq-rc/src/models/components/totals.ts +34 -0
  1023. package/packages/orq-rc/src/models/components/traceagent.ts +33 -0
  1024. package/packages/orq-rc/src/models/components/traceaggregaterow.ts +33 -0
  1025. package/packages/orq-rc/src/models/components/tracecompute.ts +30 -0
  1026. package/packages/orq-rc/src/models/components/tracecontext.ts +39 -0
  1027. package/packages/orq-rc/src/models/components/tracecost.ts +77 -0
  1028. package/packages/orq-rc/src/models/components/tracefacet.ts +35 -0
  1029. package/packages/orq-rc/src/models/components/tracefacetvalue.ts +33 -0
  1030. package/packages/orq-rc/src/models/components/tracefield.ts +56 -0
  1031. package/packages/orq-rc/src/models/components/tracefilter.ts +33 -0
  1032. package/packages/orq-rc/src/models/components/tracesearchmeta.ts +45 -0
  1033. package/packages/orq-rc/src/models/components/tracesort.ts +30 -0
  1034. package/packages/orq-rc/src/models/components/tracesummary.ts +152 -0
  1035. package/packages/orq-rc/src/models/components/traceusage.ts +62 -0
  1036. package/packages/orq-rc/src/models/components/updateapikeyrequest.ts +92 -0
  1037. package/packages/orq-rc/src/models/components/updateapikeyresponse.ts +40 -0
  1038. package/packages/orq-rc/src/models/components/updatebudgetrequest.ts +115 -0
  1039. package/packages/orq-rc/src/models/components/updatebudgetresponse.ts +35 -0
  1040. package/packages/orq-rc/src/models/components/updatefilerequest.ts +39 -0
  1041. package/packages/orq-rc/src/models/components/updatefileresponse.ts +35 -0
  1042. package/packages/orq-rc/src/models/components/updateidentityrequest.ts +90 -0
  1043. package/packages/orq-rc/src/models/components/updateidentityresponse.ts +35 -0
  1044. package/packages/orq-rc/src/models/components/updatemanagementkeyrequest.ts +80 -0
  1045. package/packages/orq-rc/src/models/components/updatemanagementkeyresponse.ts +40 -0
  1046. package/packages/orq-rc/src/models/components/updatemodelparameter.ts +61 -0
  1047. package/packages/orq-rc/src/models/components/updatenotifierrequest.ts +130 -0
  1048. package/packages/orq-rc/src/models/components/updatenotifierresponse.ts +35 -0
  1049. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +49 -0
  1050. package/packages/orq-rc/src/models/components/updateprojectresponse.ts +35 -0
  1051. package/packages/orq-rc/src/models/components/updateskillrequest.ts +75 -0
  1052. package/packages/orq-rc/src/models/components/updateskillresponse.ts +35 -0
  1053. package/packages/orq-rc/src/models/components/updatesmartrouterrequest.ts +38 -0
  1054. package/packages/orq-rc/src/models/components/updatesmartrouterresponse.ts +37 -0
  1055. package/packages/orq-rc/src/models/components/userowner.ts +59 -0
  1056. package/packages/orq-rc/src/models/components/vertexcapabilities.ts +37 -0
  1057. package/packages/orq-rc/src/models/components/vertexconfiguration.ts +45 -0
  1058. package/packages/orq-rc/src/models/components/vertexmodelconfiguration.ts +53 -0
  1059. package/packages/orq-rc/src/models/components/vertexparameters.ts +47 -0
  1060. package/packages/orq-rc/src/models/components/vertexparamrange.ts +34 -0
  1061. package/packages/orq-rc/src/models/components/vertexparamrangeint.ts +34 -0
  1062. package/packages/orq-rc/src/models/components/webhook.ts +116 -0
  1063. package/packages/orq-rc/src/models/components/workspacebudgetscope.ts +46 -0
  1064. package/packages/orq-rc/src/models/errors/apierror.ts +40 -0
  1065. package/packages/orq-rc/src/models/errors/createagentschedule.ts +105 -0
  1066. package/packages/orq-rc/src/models/errors/createeval.ts +51 -0
  1067. package/packages/orq-rc/src/models/errors/createmoderation.ts +84 -0
  1068. package/packages/orq-rc/src/models/errors/createtranscription.ts +87 -0
  1069. package/packages/orq-rc/src/models/errors/createtranslation.ts +87 -0
  1070. package/packages/orq-rc/src/models/errors/deleteagent.ts +51 -0
  1071. package/packages/orq-rc/src/models/errors/deleteagentschedule.ts +56 -0
  1072. package/packages/orq-rc/src/models/errors/deleteeval.ts +51 -0
  1073. package/packages/orq-rc/src/models/errors/deleteprompt.ts +51 -0
  1074. package/packages/orq-rc/src/models/errors/getevals.ts +51 -0
  1075. package/packages/orq-rc/src/models/errors/getpromptversion.ts +51 -0
  1076. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +51 -0
  1077. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +51 -0
  1078. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +52 -0
  1079. package/packages/orq-rc/src/models/errors/honoapierror.ts +59 -0
  1080. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  1081. package/packages/orq-rc/src/models/errors/index.ts +38 -0
  1082. package/packages/orq-rc/src/models/errors/invokeeval.ts +141 -0
  1083. package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
  1084. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
  1085. package/packages/orq-rc/src/models/errors/postv2feedback.ts +96 -0
  1086. package/packages/orq-rc/src/models/errors/postv2feedbackremove.ts +51 -0
  1087. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
  1088. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +51 -0
  1089. package/packages/orq-rc/src/models/errors/retrieveagentschedule.ts +56 -0
  1090. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +109 -0
  1091. package/packages/orq-rc/src/models/errors/streamagent.ts +51 -0
  1092. package/packages/orq-rc/src/models/errors/streamrunagent.ts +51 -0
  1093. package/packages/orq-rc/src/models/errors/triggeragentschedule.ts +105 -0
  1094. package/packages/orq-rc/src/models/errors/updateagent.ts +51 -0
  1095. package/packages/orq-rc/src/models/errors/updateagentschedule.ts +105 -0
  1096. package/packages/orq-rc/src/models/errors/updateeval.ts +51 -0
  1097. package/packages/orq-rc/src/models/errors/updateprompt.ts +51 -0
  1098. package/packages/orq-rc/src/models/errors/updatetool.ts +62 -0
  1099. package/packages/orq-rc/src/models/operations/apikeydelete.ts +39 -0
  1100. package/packages/orq-rc/src/models/operations/apikeyget.ts +49 -0
  1101. package/packages/orq-rc/src/models/operations/apikeylist.ts +118 -0
  1102. package/packages/orq-rc/src/models/operations/apikeyupdate.ts +44 -0
  1103. package/packages/orq-rc/src/models/operations/budgetdelete.ts +39 -0
  1104. package/packages/orq-rc/src/models/operations/budgetget.ts +39 -0
  1105. package/packages/orq-rc/src/models/operations/budgetgetconsumption.ts +41 -0
  1106. package/packages/orq-rc/src/models/operations/budgetlist.ts +109 -0
  1107. package/packages/orq-rc/src/models/operations/budgetresetconsumption.ts +48 -0
  1108. package/packages/orq-rc/src/models/operations/budgetupdate.ts +44 -0
  1109. package/packages/orq-rc/src/models/operations/cleardataset.ts +39 -0
  1110. package/packages/orq-rc/src/models/operations/createagentrequest.ts +5878 -0
  1111. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +125 -0
  1112. package/packages/orq-rc/src/models/operations/createagentschedule.ts +227 -0
  1113. package/packages/orq-rc/src/models/operations/createannotation.ts +256 -0
  1114. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +6581 -0
  1115. package/packages/orq-rc/src/models/operations/createchunk.ts +222 -0
  1116. package/packages/orq-rc/src/models/operations/createcompletion.ts +3528 -0
  1117. package/packages/orq-rc/src/models/operations/createdataset.ts +162 -0
  1118. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +3105 -0
  1119. package/packages/orq-rc/src/models/operations/createdatasource.ts +522 -0
  1120. package/packages/orq-rc/src/models/operations/createembedding.ts +219 -0
  1121. package/packages/orq-rc/src/models/operations/createeval.ts +663 -0
  1122. package/packages/orq-rc/src/models/operations/createimage.ts +1088 -0
  1123. package/packages/orq-rc/src/models/operations/createimageedit.ts +1045 -0
  1124. package/packages/orq-rc/src/models/operations/createimagevariation.ts +1067 -0
  1125. package/packages/orq-rc/src/models/operations/createknowledge.ts +964 -0
  1126. package/packages/orq-rc/src/models/operations/creatememory.ts +142 -0
  1127. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +152 -0
  1128. package/packages/orq-rc/src/models/operations/creatememorystore.ts +199 -0
  1129. package/packages/orq-rc/src/models/operations/createmoderation.ts +664 -0
  1130. package/packages/orq-rc/src/models/operations/createprompt.ts +5842 -0
  1131. package/packages/orq-rc/src/models/operations/creatererank.ts +944 -0
  1132. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +2122 -0
  1133. package/packages/orq-rc/src/models/operations/createspeech.ts +700 -0
  1134. package/packages/orq-rc/src/models/operations/createtool.ts +2485 -0
  1135. package/packages/orq-rc/src/models/operations/createtranscription.ts +955 -0
  1136. package/packages/orq-rc/src/models/operations/createtranslation.ts +930 -0
  1137. package/packages/orq-rc/src/models/operations/deleteagent.ts +39 -0
  1138. package/packages/orq-rc/src/models/operations/deleteagentschedule.ts +46 -0
  1139. package/packages/orq-rc/src/models/operations/deleteannotation.ts +125 -0
  1140. package/packages/orq-rc/src/models/operations/deletechunk.ts +53 -0
  1141. package/packages/orq-rc/src/models/operations/deletechunks.ts +125 -0
  1142. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +46 -0
  1143. package/packages/orq-rc/src/models/operations/deletedataset.ts +39 -0
  1144. package/packages/orq-rc/src/models/operations/deletedatasource.ts +46 -0
  1145. package/packages/orq-rc/src/models/operations/deleteeval.ts +31 -0
  1146. package/packages/orq-rc/src/models/operations/deleteidentity.ts +34 -0
  1147. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +39 -0
  1148. package/packages/orq-rc/src/models/operations/deletememory.ts +46 -0
  1149. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +55 -0
  1150. package/packages/orq-rc/src/models/operations/deletememorystore.ts +39 -0
  1151. package/packages/orq-rc/src/models/operations/deleteprompt.ts +34 -0
  1152. package/packages/orq-rc/src/models/operations/deletetool.ts +36 -0
  1153. package/packages/orq-rc/src/models/operations/deletev2humanevalsetsid.ts +36 -0
  1154. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4614 -0
  1155. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +729 -0
  1156. package/packages/orq-rc/src/models/operations/deployments.ts +1378 -0
  1157. package/packages/orq-rc/src/models/operations/deploymentstream.ts +4661 -0
  1158. package/packages/orq-rc/src/models/operations/filecontent.ts +39 -0
  1159. package/packages/orq-rc/src/models/operations/filedelete.ts +39 -0
  1160. package/packages/orq-rc/src/models/operations/fileget.ts +35 -0
  1161. package/packages/orq-rc/src/models/operations/filelist.ts +71 -0
  1162. package/packages/orq-rc/src/models/operations/fileupdate.ts +44 -0
  1163. package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
  1164. package/packages/orq-rc/src/models/operations/getallmemories.ts +173 -0
  1165. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +188 -0
  1166. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +220 -0
  1167. package/packages/orq-rc/src/models/operations/getallprompts.ts +3427 -0
  1168. package/packages/orq-rc/src/models/operations/getalltools.ts +1388 -0
  1169. package/packages/orq-rc/src/models/operations/getchunkscount.ts +142 -0
  1170. package/packages/orq-rc/src/models/operations/getevals.ts +168 -0
  1171. package/packages/orq-rc/src/models/operations/getonechunk.ts +171 -0
  1172. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +652 -0
  1173. package/packages/orq-rc/src/models/operations/getoneprompt.ts +3350 -0
  1174. package/packages/orq-rc/src/models/operations/getpromptversion.ts +3399 -0
  1175. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +162 -0
  1176. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +234 -0
  1177. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +235 -0
  1178. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +163 -0
  1179. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +110 -0
  1180. package/packages/orq-rc/src/models/operations/guardrailrulecreate.ts +126 -0
  1181. package/packages/orq-rc/src/models/operations/guardrailruledelete.ts +39 -0
  1182. package/packages/orq-rc/src/models/operations/guardrailruleget.ts +104 -0
  1183. package/packages/orq-rc/src/models/operations/guardrailrulelist.ts +138 -0
  1184. package/packages/orq-rc/src/models/operations/guardrailrulelistusedguardrails.ts +48 -0
  1185. package/packages/orq-rc/src/models/operations/guardrailruleupdate.ts +155 -0
  1186. package/packages/orq-rc/src/models/operations/index.ts +196 -0
  1187. package/packages/orq-rc/src/models/operations/invokeagent.ts +775 -0
  1188. package/packages/orq-rc/src/models/operations/invokeeval.ts +1257 -0
  1189. package/packages/orq-rc/src/models/operations/listagents.ts +3020 -0
  1190. package/packages/orq-rc/src/models/operations/listagentschedules.ts +69 -0
  1191. package/packages/orq-rc/src/models/operations/listchunks.ts +289 -0
  1192. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +282 -0
  1193. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2086 -0
  1194. package/packages/orq-rc/src/models/operations/listdatasets.ts +218 -0
  1195. package/packages/orq-rc/src/models/operations/listdatasources.ts +338 -0
  1196. package/packages/orq-rc/src/models/operations/listidentities.ts +94 -0
  1197. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +687 -0
  1198. package/packages/orq-rc/src/models/operations/listmodels.ts +60 -0
  1199. package/packages/orq-rc/src/models/operations/listpromptversions.ts +3474 -0
  1200. package/packages/orq-rc/src/models/operations/managementkeydelete.ts +39 -0
  1201. package/packages/orq-rc/src/models/operations/managementkeyget.ts +39 -0
  1202. package/packages/orq-rc/src/models/operations/managementkeylist.ts +85 -0
  1203. package/packages/orq-rc/src/models/operations/managementkeyupdate.ts +45 -0
  1204. package/packages/orq-rc/src/models/operations/modelazurefoundrydeployments.ts +90 -0
  1205. package/packages/orq-rc/src/models/operations/modelcreate.ts +186 -0
  1206. package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +236 -0
  1207. package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +204 -0
  1208. package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +146 -0
  1209. package/packages/orq-rc/src/models/operations/modeldelete.ts +34 -0
  1210. package/packages/orq-rc/src/models/operations/modeldisable.ts +39 -0
  1211. package/packages/orq-rc/src/models/operations/modelenable.ts +36 -0
  1212. package/packages/orq-rc/src/models/operations/modelupdate.ts +200 -0
  1213. package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +262 -0
  1214. package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +238 -0
  1215. package/packages/orq-rc/src/models/operations/modelvalidate.ts +57 -0
  1216. package/packages/orq-rc/src/models/operations/modelvalidateawsbedrock.ts +61 -0
  1217. package/packages/orq-rc/src/models/operations/notifierdelete.ts +36 -0
  1218. package/packages/orq-rc/src/models/operations/notifierget.ts +36 -0
  1219. package/packages/orq-rc/src/models/operations/notifierlist.ts +72 -0
  1220. package/packages/orq-rc/src/models/operations/notifierupdate.ts +41 -0
  1221. package/packages/orq-rc/src/models/operations/parse.ts +784 -0
  1222. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +415 -0
  1223. package/packages/orq-rc/src/models/operations/policycreate.ts +138 -0
  1224. package/packages/orq-rc/src/models/operations/policydelete.ts +39 -0
  1225. package/packages/orq-rc/src/models/operations/policyget.ts +110 -0
  1226. package/packages/orq-rc/src/models/operations/policylist.ts +94 -0
  1227. package/packages/orq-rc/src/models/operations/policyupdate.ts +174 -0
  1228. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
  1229. package/packages/orq-rc/src/models/operations/postv2feedback.ts +214 -0
  1230. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +465 -0
  1231. package/packages/orq-rc/src/models/operations/postv2feedbackevaluationremove.ts +43 -0
  1232. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +135 -0
  1233. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +365 -0
  1234. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +478 -0
  1235. package/packages/orq-rc/src/models/operations/projectdelete.ts +39 -0
  1236. package/packages/orq-rc/src/models/operations/projectget.ts +39 -0
  1237. package/packages/orq-rc/src/models/operations/projectlist.ts +58 -0
  1238. package/packages/orq-rc/src/models/operations/projectupdate.ts +44 -0
  1239. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3082 -0
  1240. package/packages/orq-rc/src/models/operations/retrieveagentschedule.ts +162 -0
  1241. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +1971 -0
  1242. package/packages/orq-rc/src/models/operations/retrievedataset.ts +150 -0
  1243. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +222 -0
  1244. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +55 -0
  1245. package/packages/orq-rc/src/models/operations/retrievememory.ts +112 -0
  1246. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +118 -0
  1247. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +144 -0
  1248. package/packages/orq-rc/src/models/operations/retrieveresponse.ts +225 -0
  1249. package/packages/orq-rc/src/models/operations/retrievetool.ts +1375 -0
  1250. package/packages/orq-rc/src/models/operations/routingrulecreate.ts +124 -0
  1251. package/packages/orq-rc/src/models/operations/routingruledelete.ts +39 -0
  1252. package/packages/orq-rc/src/models/operations/routingruleget.ts +102 -0
  1253. package/packages/orq-rc/src/models/operations/routingrulelist.ts +112 -0
  1254. package/packages/orq-rc/src/models/operations/routingrulelistusedmodels.ts +37 -0
  1255. package/packages/orq-rc/src/models/operations/routingruleupdate.ts +154 -0
  1256. package/packages/orq-rc/src/models/operations/runagent.ts +5412 -0
  1257. package/packages/orq-rc/src/models/operations/searchknowledge.ts +1762 -0
  1258. package/packages/orq-rc/src/models/operations/skilldelete.ts +39 -0
  1259. package/packages/orq-rc/src/models/operations/skillget.ts +40 -0
  1260. package/packages/orq-rc/src/models/operations/skilllist.ts +61 -0
  1261. package/packages/orq-rc/src/models/operations/skillupdate.ts +44 -0
  1262. package/packages/orq-rc/src/models/operations/smartrouterdelete.ts +36 -0
  1263. package/packages/orq-rc/src/models/operations/smartrouterget.ts +36 -0
  1264. package/packages/orq-rc/src/models/operations/smartrouterlist.ts +53 -0
  1265. package/packages/orq-rc/src/models/operations/smartroutersetenabled.ts +45 -0
  1266. package/packages/orq-rc/src/models/operations/smartrouterupdate.ts +41 -0
  1267. package/packages/orq-rc/src/models/operations/streamagent.ts +698 -0
  1268. package/packages/orq-rc/src/models/operations/streamrunagent.ts +5579 -0
  1269. package/packages/orq-rc/src/models/operations/tracesget.ts +36 -0
  1270. package/packages/orq-rc/src/models/operations/tracesgetspan.ts +40 -0
  1271. package/packages/orq-rc/src/models/operations/traceslistfacetvalues.ts +50 -0
  1272. package/packages/orq-rc/src/models/operations/traceslistspans.ts +43 -0
  1273. package/packages/orq-rc/src/models/operations/triggeragentschedule.ts +86 -0
  1274. package/packages/orq-rc/src/models/operations/updateagent.ts +6150 -0
  1275. package/packages/orq-rc/src/models/operations/updateagentschedule.ts +241 -0
  1276. package/packages/orq-rc/src/models/operations/updatechunk.ts +236 -0
  1277. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +3143 -0
  1278. package/packages/orq-rc/src/models/operations/updatedataset.ts +206 -0
  1279. package/packages/orq-rc/src/models/operations/updatedatasource.ts +256 -0
  1280. package/packages/orq-rc/src/models/operations/updateeval.ts +446 -0
  1281. package/packages/orq-rc/src/models/operations/updateidentity.ts +43 -0
  1282. package/packages/orq-rc/src/models/operations/updateknowledge.ts +1231 -0
  1283. package/packages/orq-rc/src/models/operations/updatememory.ts +142 -0
  1284. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +159 -0
  1285. package/packages/orq-rc/src/models/operations/updatememorystore.ts +188 -0
  1286. package/packages/orq-rc/src/models/operations/updateprompt.ts +5929 -0
  1287. package/packages/orq-rc/src/models/operations/updatetool.ts +2812 -0
  1288. package/packages/orq-rc/src/models/operations/webhookdelete.ts +31 -0
  1289. package/packages/orq-rc/src/models/operations/webhookget.ts +31 -0
  1290. package/packages/orq-rc/src/models/operations/webhooklist.ts +101 -0
  1291. package/packages/orq-rc/src/models/operations/webhookupdate.ts +84 -0
  1292. package/packages/orq-rc/src/sdk/agents.ts +216 -0
  1293. package/packages/orq-rc/src/sdk/annotations.ts +45 -0
  1294. package/packages/orq-rc/src/sdk/apikeys.ts +116 -0
  1295. package/packages/orq-rc/src/sdk/audio.ts +25 -0
  1296. package/packages/orq-rc/src/sdk/budgets.ts +136 -0
  1297. package/packages/orq-rc/src/sdk/chat.ts +13 -0
  1298. package/packages/orq-rc/src/sdk/chunking.ts +27 -0
  1299. package/packages/orq-rc/src/sdk/completions.ts +32 -0
  1300. package/packages/orq-rc/src/sdk/datasets.ts +204 -0
  1301. package/packages/orq-rc/src/sdk/deployments.ts +83 -0
  1302. package/packages/orq-rc/src/sdk/edits.ts +27 -0
  1303. package/packages/orq-rc/src/sdk/embeddings.ts +27 -0
  1304. package/packages/orq-rc/src/sdk/evals.ts +102 -0
  1305. package/packages/orq-rc/src/sdk/feedback.ts +60 -0
  1306. package/packages/orq-rc/src/sdk/files.ts +118 -0
  1307. package/packages/orq-rc/src/sdk/generations.ts +27 -0
  1308. package/packages/orq-rc/src/sdk/guardrailrules.ts +115 -0
  1309. package/packages/orq-rc/src/sdk/humanreviewsets.ts +84 -0
  1310. package/packages/orq-rc/src/sdk/identities.ts +100 -0
  1311. package/packages/orq-rc/src/sdk/images.ts +25 -0
  1312. package/packages/orq-rc/src/sdk/index.ts +5 -0
  1313. package/packages/orq-rc/src/sdk/knowledge.ts +312 -0
  1314. package/packages/orq-rc/src/sdk/managementkeys.ts +116 -0
  1315. package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
  1316. package/packages/orq-rc/src/sdk/models.ts +294 -0
  1317. package/packages/orq-rc/src/sdk/moderations.ts +24 -0
  1318. package/packages/orq-rc/src/sdk/notifiers.ts +100 -0
  1319. package/packages/orq-rc/src/sdk/orqcompletions.ts +32 -0
  1320. package/packages/orq-rc/src/sdk/orqresponses.ts +57 -0
  1321. package/packages/orq-rc/src/sdk/pii.ts +63 -0
  1322. package/packages/orq-rc/src/sdk/policies.ts +99 -0
  1323. package/packages/orq-rc/src/sdk/projects.ts +100 -0
  1324. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  1325. package/packages/orq-rc/src/sdk/reporting.ts +29 -0
  1326. package/packages/orq-rc/src/sdk/rerank.ts +27 -0
  1327. package/packages/orq-rc/src/sdk/responses.ts +47 -0
  1328. package/packages/orq-rc/src/sdk/router.ts +66 -0
  1329. package/packages/orq-rc/src/sdk/routingrules.ts +115 -0
  1330. package/packages/orq-rc/src/sdk/schedules.ts +117 -0
  1331. package/packages/orq-rc/src/sdk/sdk.ts +205 -0
  1332. package/packages/orq-rc/src/sdk/skills.ts +100 -0
  1333. package/packages/orq-rc/src/sdk/smartrouters.ts +118 -0
  1334. package/packages/orq-rc/src/sdk/speech.ts +27 -0
  1335. package/packages/orq-rc/src/sdk/telemetry.ts +27 -0
  1336. package/packages/orq-rc/src/sdk/tools.ts +135 -0
  1337. package/packages/orq-rc/src/sdk/traces.ts +170 -0
  1338. package/packages/orq-rc/src/sdk/transcriptions.ts +24 -0
  1339. package/packages/orq-rc/src/sdk/translations.ts +24 -0
  1340. package/packages/orq-rc/src/sdk/variations.ts +27 -0
  1341. package/packages/orq-rc/src/sdk/webhooks.ts +152 -0
  1342. package/packages/orq-rc/src/types/async.ts +69 -0
  1343. package/packages/orq-rc/src/types/blobs.ts +32 -0
  1344. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  1345. package/packages/orq-rc/src/types/enums.ts +45 -0
  1346. package/packages/orq-rc/src/types/fp.ts +50 -0
  1347. package/packages/orq-rc/src/types/index.ts +11 -0
  1348. package/packages/orq-rc/src/types/operations.ts +105 -0
  1349. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  1350. package/packages/orq-rc/src/types/streams.ts +21 -0
  1351. package/packages/orq-rc/src/types/unrecognized.ts +35 -0
  1352. package/sdk/budgets.d.ts +0 -7
  1353. package/sdk/budgets.d.ts.map +1 -1
  1354. package/sdk/budgets.js +0 -10
  1355. package/sdk/budgets.js.map +1 -1
  1356. package/sdk/feedback.d.ts +4 -1
  1357. package/sdk/feedback.d.ts.map +1 -1
  1358. package/sdk/feedback.js +4 -1
  1359. package/sdk/feedback.js.map +1 -1
  1360. package/sdk/reporting.d.ts +3 -1
  1361. package/sdk/reporting.d.ts.map +1 -1
  1362. package/sdk/reporting.js +3 -1
  1363. package/sdk/reporting.js.map +1 -1
  1364. package/sdk/sdk.d.ts +6 -0
  1365. package/sdk/sdk.d.ts.map +1 -1
  1366. package/sdk/sdk.js +8 -0
  1367. package/sdk/sdk.js.map +1 -1
  1368. package/sdk/telemetry.d.ts +12 -0
  1369. package/sdk/telemetry.d.ts.map +1 -0
  1370. package/sdk/telemetry.js +22 -0
  1371. package/sdk/telemetry.js.map +1 -0
  1372. package/sdk/traces.d.ts +3 -1
  1373. package/sdk/traces.d.ts.map +1 -1
  1374. package/sdk/traces.js +3 -1
  1375. package/sdk/traces.js.map +1 -1
  1376. package/sdk/webhooks.d.ts +64 -0
  1377. package/sdk/webhooks.d.ts.map +1 -0
  1378. package/sdk/webhooks.js +94 -0
  1379. package/sdk/webhooks.js.map +1 -0
  1380. package/src/funcs/datasetsClear.ts +11 -2
  1381. package/src/funcs/filesList.ts +1 -0
  1382. package/src/funcs/knowledgeListDatasources.ts +1 -0
  1383. package/src/funcs/notifiersList.ts +2 -0
  1384. package/src/funcs/reportingQuery.ts +3 -1
  1385. package/src/funcs/telemetryQuery.ts +162 -0
  1386. package/src/funcs/tracesAggregate.ts +3 -1
  1387. package/src/funcs/webhooksCount.ts +144 -0
  1388. package/src/funcs/webhooksCreate.ts +162 -0
  1389. package/src/funcs/webhooksDelete.ts +168 -0
  1390. package/src/funcs/webhooksGenerateSecret.ts +144 -0
  1391. package/src/funcs/webhooksGet.ts +168 -0
  1392. package/src/funcs/webhooksList.ts +175 -0
  1393. package/src/funcs/webhooksQuery.ts +164 -0
  1394. package/src/funcs/webhooksUpdate.ts +168 -0
  1395. package/src/lib/config.ts +3 -3
  1396. package/src/lib/http.ts +3 -1
  1397. package/src/lib/security.ts +10 -5
  1398. package/src/models/components/actionreviewrequestedstreamingevent.ts +3 -3
  1399. package/src/models/components/agentstartedstreamingevent.ts +3 -3
  1400. package/src/models/components/agenttoolinputcrud.ts +747 -0
  1401. package/src/models/components/apikey.ts +6 -0
  1402. package/src/models/components/budget.ts +6 -0
  1403. package/src/models/components/budgetalert.ts +92 -0
  1404. package/src/models/components/budgetalertdimension.ts +22 -0
  1405. package/src/models/components/codetoolinput.ts +62 -0
  1406. package/src/models/components/config.ts +44 -0
  1407. package/src/models/components/countwebhooksresponse.ts +37 -0
  1408. package/src/models/components/createbudgetrequest.ts +14 -0
  1409. package/src/models/components/createwebhookrequest.ts +100 -0
  1410. package/src/models/components/deletewebhookresponse.ts +34 -0
  1411. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  1412. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  1413. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  1414. package/src/models/components/evaluatorresponsellm.ts +2 -2
  1415. package/src/models/components/evaluatorresponsepython.ts +2 -2
  1416. package/src/models/components/evaluatorresponseragas.ts +2 -2
  1417. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  1418. package/src/models/components/functiontoolinput.ts +60 -0
  1419. package/src/models/components/generatewebhooksecretresponse.ts +37 -0
  1420. package/src/models/components/httptoolinput.ts +62 -0
  1421. package/src/models/components/identity.ts +15 -9
  1422. package/src/models/components/index.ts +29 -4
  1423. package/src/models/components/jsonschematoolinput.ts +60 -0
  1424. package/src/models/components/listwebhooksresponse.ts +53 -0
  1425. package/src/models/components/mcptoolinput.ts +63 -0
  1426. package/src/models/components/modeldocument.ts +3 -0
  1427. package/src/models/components/modelsconfig.ts +1 -0
  1428. package/src/models/components/providertoolinput.ts +72 -0
  1429. package/src/models/components/queryparamspagination.ts +40 -0
  1430. package/src/models/components/queryparamssort.ts +32 -0
  1431. package/src/models/components/querytelemetrymeta.ts +38 -0
  1432. package/src/models/components/querytelemetryrequest.ts +85 -0
  1433. package/src/models/components/querytelemetryresponse.ts +42 -0
  1434. package/src/models/components/querywebhooksrequest.ts +85 -0
  1435. package/src/models/components/querywebhooksresponse.ts +34 -0
  1436. package/src/models/components/reasoningpart.ts +1 -1
  1437. package/src/models/components/responsecustomtoolcallinputdeltastreamevent.ts +79 -0
  1438. package/src/models/components/responsecustomtoolcallinputdonestreamevent.ts +76 -0
  1439. package/src/models/components/responsemcplisttoolscompletedstreamevent.ts +73 -0
  1440. package/src/models/components/responsemcplisttoolsfailedstreamevent.ts +68 -0
  1441. package/src/models/components/responsemcplisttoolsinprogressstreamevent.ts +73 -0
  1442. package/src/models/components/responsestreamevent.ts +30 -0
  1443. package/src/models/components/telemetryrow.ts +42 -0
  1444. package/src/models/components/thinkingconfigenabledschema.ts +1 -0
  1445. package/src/models/components/updatebudgetrequest.ts +21 -0
  1446. package/src/models/components/webhook.ts +116 -0
  1447. package/src/models/operations/createagentrequest.ts +998 -2311
  1448. package/src/models/operations/createchatcompletion.ts +1 -0
  1449. package/src/models/operations/createdataset.ts +1 -1
  1450. package/src/models/operations/createdatasetitem.ts +237 -19
  1451. package/src/models/operations/createdatasource.ts +78 -2
  1452. package/src/models/operations/createeval.ts +179 -175
  1453. package/src/models/operations/createknowledge.ts +18 -10
  1454. package/src/models/operations/createprompt.ts +5 -0
  1455. package/src/models/operations/createrouterresponse.ts +94 -44
  1456. package/src/models/operations/createtool.ts +58 -61
  1457. package/src/models/operations/deploymentgetconfig.ts +1 -0
  1458. package/src/models/operations/deploymentinvoke.ts +2 -0
  1459. package/src/models/operations/deployments.ts +3 -0
  1460. package/src/models/operations/deploymentstream.ts +2 -0
  1461. package/src/models/operations/filelist.ts +11 -0
  1462. package/src/models/operations/getallmemories.ts +1 -1
  1463. package/src/models/operations/getallmemorydocuments.ts +1 -1
  1464. package/src/models/operations/getallmemorystores.ts +1 -1
  1465. package/src/models/operations/getallprompts.ts +5 -1
  1466. package/src/models/operations/getalltools.ts +11 -6
  1467. package/src/models/operations/getevals.ts +1 -1
  1468. package/src/models/operations/getoneprompt.ts +4 -0
  1469. package/src/models/operations/getpromptversion.ts +4 -0
  1470. package/src/models/operations/getv2evaluatorsidversions.ts +1 -1
  1471. package/src/models/operations/getv2humanevalsets.ts +2 -2
  1472. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  1473. package/src/models/operations/getv2toolstoolidversions.ts +1 -1
  1474. package/src/models/operations/index.ts +4 -0
  1475. package/src/models/operations/listagents.ts +7 -5
  1476. package/src/models/operations/listchunks.ts +1 -1
  1477. package/src/models/operations/listdatasetdatapoints.ts +314 -85
  1478. package/src/models/operations/listdatasets.ts +2 -2
  1479. package/src/models/operations/listdatasources.ts +99 -2
  1480. package/src/models/operations/listpromptversions.ts +5 -1
  1481. package/src/models/operations/modelcreate.ts +2 -0
  1482. package/src/models/operations/modelcreateautorouter.ts +2 -0
  1483. package/src/models/operations/modelcreateawsbedrock.ts +2 -0
  1484. package/src/models/operations/modelcreateopenailike.ts +2 -0
  1485. package/src/models/operations/modelcreatevertex.ts +2 -0
  1486. package/src/models/operations/modelupdate.ts +2 -0
  1487. package/src/models/operations/modelupdateautorouter.ts +2 -0
  1488. package/src/models/operations/modelupdateawsbedrock.ts +2 -0
  1489. package/src/models/operations/modelupdateopenailike.ts +2 -0
  1490. package/src/models/operations/notifierlist.ts +13 -0
  1491. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  1492. package/src/models/operations/postv2feedbackevaluation.ts +119 -11
  1493. package/src/models/operations/postv2humanevalsets.ts +2 -2
  1494. package/src/models/operations/retrieveagentrequest.ts +7 -5
  1495. package/src/models/operations/retrievedatapoint.ts +234 -9
  1496. package/src/models/operations/retrievedataset.ts +1 -1
  1497. package/src/models/operations/retrievedatasource.ts +72 -2
  1498. package/src/models/operations/retrieveresponse.ts +8 -8
  1499. package/src/models/operations/retrievetool.ts +11 -6
  1500. package/src/models/operations/runagent.ts +215 -232
  1501. package/src/models/operations/streamrunagent.ts +293 -328
  1502. package/src/models/operations/updateagent.ts +823 -2199
  1503. package/src/models/operations/updatedatapoint.ts +229 -9
  1504. package/src/models/operations/updatedataset.ts +1 -1
  1505. package/src/models/operations/updatedatasource.ts +72 -2
  1506. package/src/models/operations/updateprompt.ts +5 -0
  1507. package/src/models/operations/updatetool.ts +18 -7
  1508. package/src/models/operations/webhookdelete.ts +31 -0
  1509. package/src/models/operations/webhookget.ts +31 -0
  1510. package/src/models/operations/webhooklist.ts +101 -0
  1511. package/src/models/operations/webhookupdate.ts +84 -0
  1512. package/src/sdk/budgets.ts +0 -18
  1513. package/src/sdk/feedback.ts +4 -1
  1514. package/src/sdk/reporting.ts +3 -1
  1515. package/src/sdk/sdk.ts +12 -0
  1516. package/src/sdk/telemetry.ts +27 -0
  1517. package/src/sdk/traces.ts +3 -1
  1518. package/src/sdk/webhooks.ts +152 -0
  1519. package/funcs/budgetsCheck.d.ts.map +0 -1
  1520. package/funcs/budgetsCheck.js.map +0 -1
  1521. package/models/components/budgetrejection.d.ts +0 -17
  1522. package/models/components/budgetrejection.d.ts.map +0 -1
  1523. package/models/components/budgetrejection.js.map +0 -1
  1524. package/models/components/checkbudgetsrequest.d.ts +0 -72
  1525. package/models/components/checkbudgetsrequest.d.ts.map +0 -1
  1526. package/models/components/checkbudgetsrequest.js.map +0 -1
  1527. package/models/components/checkbudgetsresponse.d.ts +0 -34
  1528. package/models/components/checkbudgetsresponse.d.ts.map +0 -1
  1529. package/models/components/checkbudgetsresponse.js.map +0 -1
  1530. package/models/components/dimensioninfo.d.ts +0 -15
  1531. package/models/components/dimensioninfo.d.ts.map +0 -1
  1532. package/models/components/dimensioninfo.js.map +0 -1
  1533. package/src/models/components/budgetrejection.ts +0 -48
  1534. package/src/models/components/checkbudgetsrequest.ts +0 -111
  1535. package/src/models/components/checkbudgetsresponse.ts +0 -62
  1536. package/src/models/components/dimensioninfo.ts +0 -43
@@ -0,0 +1,2485 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import {
8
+ collectExtraKeys as collectExtraKeys$,
9
+ safeParse,
10
+ } from "../../lib/schemas.js";
11
+ import { ClosedEnum } from "../../types/enums.js";
12
+ import { Result as SafeParseResult } from "../../types/fp.js";
13
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
14
+
15
+ /**
16
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
17
+ */
18
+ export const CreateToolRequestBodyToolsRequestStatus = {
19
+ Live: "live",
20
+ Draft: "draft",
21
+ Pending: "pending",
22
+ Published: "published",
23
+ } as const;
24
+ /**
25
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
26
+ */
27
+ export type CreateToolRequestBodyToolsRequestStatus = ClosedEnum<
28
+ typeof CreateToolRequestBodyToolsRequestStatus
29
+ >;
30
+
31
+ /**
32
+ * The type must be "object"
33
+ */
34
+ export const CreateToolRequestBodyToolsRequest5CodeToolType = {
35
+ Object: "object",
36
+ } as const;
37
+ /**
38
+ * The type must be "object"
39
+ */
40
+ export type CreateToolRequestBodyToolsRequest5CodeToolType = ClosedEnum<
41
+ typeof CreateToolRequestBodyToolsRequest5CodeToolType
42
+ >;
43
+
44
+ /**
45
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
46
+ */
47
+ export type CreateToolRequestBodyParameters = {
48
+ /**
49
+ * The type must be "object"
50
+ */
51
+ type: CreateToolRequestBodyToolsRequest5CodeToolType;
52
+ /**
53
+ * The properties of the function parameters
54
+ */
55
+ properties: { [k: string]: any };
56
+ /**
57
+ * Array of required parameter names
58
+ */
59
+ required: Array<string>;
60
+ additionalProperties?: { [k: string]: any } | undefined;
61
+ };
62
+
63
+ export const RequestBodyLanguage = {
64
+ Python: "python",
65
+ } as const;
66
+ export type RequestBodyLanguage = ClosedEnum<typeof RequestBodyLanguage>;
67
+
68
+ export type RequestBodyCodeTool = {
69
+ /**
70
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
71
+ */
72
+ parameters?: CreateToolRequestBodyParameters | undefined;
73
+ language: RequestBodyLanguage;
74
+ /**
75
+ * The code to execute.
76
+ */
77
+ code: string;
78
+ };
79
+
80
+ /**
81
+ * Executes code snippets in a sandboxed environment, currently supporting Python.
82
+ */
83
+ export type CodeExecutionTool = {
84
+ /**
85
+ * Entity storage path.
86
+ *
87
+ * @remarks
88
+ *
89
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
90
+ *
91
+ * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
92
+ */
93
+ path: string;
94
+ /**
95
+ * Unique key of the tool as it will be displayed in the UI
96
+ */
97
+ key: string;
98
+ /**
99
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
100
+ */
101
+ displayName?: string | undefined;
102
+ /**
103
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
104
+ */
105
+ description: string;
106
+ /**
107
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
108
+ */
109
+ status?: CreateToolRequestBodyToolsRequestStatus | undefined;
110
+ type: "code";
111
+ codeTool: RequestBodyCodeTool;
112
+ };
113
+
114
+ /**
115
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
116
+ */
117
+ export const CreateToolRequestBodyToolsStatus = {
118
+ Live: "live",
119
+ Draft: "draft",
120
+ Pending: "pending",
121
+ Published: "published",
122
+ } as const;
123
+ /**
124
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
125
+ */
126
+ export type CreateToolRequestBodyToolsStatus = ClosedEnum<
127
+ typeof CreateToolRequestBodyToolsStatus
128
+ >;
129
+
130
+ export type RequestBodyHeaders = {
131
+ value: string;
132
+ encrypted?: boolean | undefined;
133
+ };
134
+
135
+ /**
136
+ * The connection type used by the MCP server
137
+ */
138
+ export const RequestBodyConnectionType = {
139
+ Http: "http",
140
+ Sse: "sse",
141
+ } as const;
142
+ /**
143
+ * The connection type used by the MCP server
144
+ */
145
+ export type RequestBodyConnectionType = ClosedEnum<
146
+ typeof RequestBodyConnectionType
147
+ >;
148
+
149
+ export type RequestBodyMcp = {
150
+ /**
151
+ * The MCP server URL (cached for execution)
152
+ */
153
+ serverUrl: string;
154
+ /**
155
+ * HTTP headers for MCP server requests with encryption support
156
+ */
157
+ headers?: { [k: string]: RequestBodyHeaders } | undefined;
158
+ /**
159
+ * The connection type used by the MCP server
160
+ */
161
+ connectionType: RequestBodyConnectionType;
162
+ };
163
+
164
+ /**
165
+ * A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
166
+ */
167
+ export type RequestBodyMCPTool = {
168
+ /**
169
+ * Entity storage path.
170
+ *
171
+ * @remarks
172
+ *
173
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
174
+ *
175
+ * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
176
+ */
177
+ path: string;
178
+ /**
179
+ * Unique key of the tool as it will be displayed in the UI
180
+ */
181
+ key: string;
182
+ /**
183
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
184
+ */
185
+ displayName?: string | undefined;
186
+ /**
187
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
188
+ */
189
+ description: string;
190
+ /**
191
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
192
+ */
193
+ status?: CreateToolRequestBodyToolsStatus | undefined;
194
+ type: "mcp";
195
+ mcp: RequestBodyMcp;
196
+ discoveryVariables?: { [k: string]: string } | undefined;
197
+ };
198
+
199
+ /**
200
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
201
+ */
202
+ export const CreateToolRequestBodyStatus = {
203
+ Live: "live",
204
+ Draft: "draft",
205
+ Pending: "pending",
206
+ Published: "published",
207
+ } as const;
208
+ /**
209
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
210
+ */
211
+ export type CreateToolRequestBodyStatus = ClosedEnum<
212
+ typeof CreateToolRequestBodyStatus
213
+ >;
214
+
215
+ /**
216
+ * The HTTP method to use.
217
+ */
218
+ export const RequestBodyMethod = {
219
+ Get: "GET",
220
+ Post: "POST",
221
+ Put: "PUT",
222
+ Delete: "DELETE",
223
+ } as const;
224
+ /**
225
+ * The HTTP method to use.
226
+ */
227
+ export type RequestBodyMethod = ClosedEnum<typeof RequestBodyMethod>;
228
+
229
+ export type CreateToolHeaders2 = {
230
+ value: string;
231
+ encrypted?: boolean | undefined;
232
+ };
233
+
234
+ export type CreateToolRequestBodyHeaders = CreateToolHeaders2 | string;
235
+
236
+ /**
237
+ * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
238
+ */
239
+ export type RequestBodyBlueprint = {
240
+ /**
241
+ * The URL to send the request to.
242
+ */
243
+ url: string;
244
+ /**
245
+ * The HTTP method to use.
246
+ */
247
+ method: RequestBodyMethod;
248
+ /**
249
+ * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
250
+ */
251
+ headers?: { [k: string]: CreateToolHeaders2 | string } | undefined;
252
+ /**
253
+ * The body to send with the request.
254
+ */
255
+ body?: { [k: string]: any } | undefined;
256
+ /**
257
+ * The request timeout in seconds. Defaults to 60 seconds when not set. When used in an agent, tool executions are also bound by the agent run `limits.tool_timeout` (default 5 minutes), so raise that limit for longer-running tools.
258
+ */
259
+ timeout?: number | undefined;
260
+ };
261
+
262
+ /**
263
+ * The type of the argument.
264
+ */
265
+ export const CreateToolRequestBodyToolsRequest3Type = {
266
+ String: "string",
267
+ Number: "number",
268
+ Boolean: "boolean",
269
+ } as const;
270
+ /**
271
+ * The type of the argument.
272
+ */
273
+ export type CreateToolRequestBodyToolsRequest3Type = ClosedEnum<
274
+ typeof CreateToolRequestBodyToolsRequest3Type
275
+ >;
276
+
277
+ /**
278
+ * The default value of the argument.
279
+ */
280
+ export type RequestBodyDefaultValue = string | number | boolean;
281
+
282
+ export type RequestBodyArguments = {
283
+ /**
284
+ * The type of the argument.
285
+ */
286
+ type: CreateToolRequestBodyToolsRequest3Type;
287
+ /**
288
+ * A description of the argument.
289
+ */
290
+ description: string;
291
+ /**
292
+ * Whether to send the argument to the model. If set to false, the argument will not be sent to the model and needs to be provided by the user or it will be left blank.
293
+ */
294
+ sendToModel?: boolean | undefined;
295
+ /**
296
+ * The default value of the argument.
297
+ */
298
+ defaultValue?: string | number | boolean | undefined;
299
+ };
300
+
301
+ export type RequestBodyHttp = {
302
+ /**
303
+ * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
304
+ */
305
+ blueprint: RequestBodyBlueprint;
306
+ /**
307
+ * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
308
+ */
309
+ arguments?: { [k: string]: RequestBodyArguments } | undefined;
310
+ };
311
+
312
+ /**
313
+ * Executes HTTP requests to interact with external APIs and web services using customizable blueprints.
314
+ */
315
+ export type HTTPTool = {
316
+ /**
317
+ * Entity storage path.
318
+ *
319
+ * @remarks
320
+ *
321
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
322
+ *
323
+ * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
324
+ */
325
+ path: string;
326
+ /**
327
+ * Unique key of the tool as it will be displayed in the UI
328
+ */
329
+ key: string;
330
+ /**
331
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
332
+ */
333
+ displayName?: string | undefined;
334
+ /**
335
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
336
+ */
337
+ description: string;
338
+ /**
339
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
340
+ */
341
+ status?: CreateToolRequestBodyStatus | undefined;
342
+ type: "http";
343
+ http: RequestBodyHttp;
344
+ };
345
+
346
+ /**
347
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
348
+ */
349
+ export const RequestBodyStatus = {
350
+ Live: "live",
351
+ Draft: "draft",
352
+ Pending: "pending",
353
+ Published: "published",
354
+ } as const;
355
+ /**
356
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
357
+ */
358
+ export type RequestBodyStatus = ClosedEnum<typeof RequestBodyStatus>;
359
+
360
+ /**
361
+ * The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
362
+ */
363
+ export type RequestBodySchema = {
364
+ /**
365
+ * The JSON Schema type
366
+ */
367
+ type: string;
368
+ /**
369
+ * The properties of the JSON Schema object
370
+ */
371
+ properties: { [k: string]: any };
372
+ /**
373
+ * Array of required property names
374
+ */
375
+ required: Array<string>;
376
+ additionalProperties?: { [k: string]: any } | undefined;
377
+ };
378
+
379
+ export type RequestBodyJsonSchema = {
380
+ /**
381
+ * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
382
+ */
383
+ name: string;
384
+ /**
385
+ * A description of what the response format is for. This will be shown to the user.
386
+ */
387
+ description: string;
388
+ /**
389
+ * The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
390
+ */
391
+ schema: RequestBodySchema;
392
+ /**
393
+ * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. Only compatible with `OpenAI` models.
394
+ */
395
+ strict?: boolean | undefined;
396
+ };
397
+
398
+ /**
399
+ * A tool that enforces structured output format using JSON Schema for consistent response formatting.
400
+ */
401
+ export type JSONSchemaTool = {
402
+ /**
403
+ * Entity storage path.
404
+ *
405
+ * @remarks
406
+ *
407
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
408
+ *
409
+ * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
410
+ */
411
+ path: string;
412
+ /**
413
+ * Unique key of the tool as it will be displayed in the UI
414
+ */
415
+ key: string;
416
+ /**
417
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
418
+ */
419
+ displayName?: string | undefined;
420
+ /**
421
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
422
+ */
423
+ description: string;
424
+ /**
425
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
426
+ */
427
+ status?: RequestBodyStatus | undefined;
428
+ type: "json_schema";
429
+ jsonSchema: RequestBodyJsonSchema;
430
+ };
431
+
432
+ /**
433
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
434
+ */
435
+ export const CreateToolRequestBodyToolsRequest1Status = {
436
+ Live: "live",
437
+ Draft: "draft",
438
+ Pending: "pending",
439
+ Published: "published",
440
+ } as const;
441
+ /**
442
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
443
+ */
444
+ export type CreateToolRequestBodyToolsRequest1Status = ClosedEnum<
445
+ typeof CreateToolRequestBodyToolsRequest1Status
446
+ >;
447
+
448
+ /**
449
+ * The type must be "object"
450
+ */
451
+ export const CreateToolRequestBodyToolsRequest1Type = {
452
+ Object: "object",
453
+ } as const;
454
+ /**
455
+ * The type must be "object"
456
+ */
457
+ export type CreateToolRequestBodyToolsRequest1Type = ClosedEnum<
458
+ typeof CreateToolRequestBodyToolsRequest1Type
459
+ >;
460
+
461
+ /**
462
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
463
+ */
464
+ export type RequestBodyParameters = {
465
+ /**
466
+ * The type must be "object"
467
+ */
468
+ type: CreateToolRequestBodyToolsRequest1Type;
469
+ /**
470
+ * The properties of the function parameters
471
+ */
472
+ properties: { [k: string]: any };
473
+ /**
474
+ * Array of required parameter names
475
+ */
476
+ required: Array<string>;
477
+ additionalProperties?: { [k: string]: any } | undefined;
478
+ };
479
+
480
+ export type RequestBodyFunction = {
481
+ /**
482
+ * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
483
+ */
484
+ name: string;
485
+ /**
486
+ * A description of what the function does, used by the model to choose when and how to call the function.
487
+ */
488
+ description?: string | undefined;
489
+ /**
490
+ * Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
491
+ */
492
+ strict?: boolean | undefined;
493
+ /**
494
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
495
+ */
496
+ parameters?: RequestBodyParameters | undefined;
497
+ };
498
+
499
+ /**
500
+ * A custom function tool that allows the model to call predefined functions with structured parameters.
501
+ */
502
+ export type FunctionTool = {
503
+ /**
504
+ * Entity storage path.
505
+ *
506
+ * @remarks
507
+ *
508
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
509
+ *
510
+ * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
511
+ */
512
+ path: string;
513
+ /**
514
+ * Unique key of the tool as it will be displayed in the UI
515
+ */
516
+ key: string;
517
+ /**
518
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
519
+ */
520
+ displayName?: string | undefined;
521
+ /**
522
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
523
+ */
524
+ description: string;
525
+ /**
526
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
527
+ */
528
+ status?: CreateToolRequestBodyToolsRequest1Status | undefined;
529
+ type: "function";
530
+ function: RequestBodyFunction;
531
+ };
532
+
533
+ /**
534
+ * The tool to create
535
+ */
536
+ export type CreateToolRequestBody =
537
+ | FunctionTool
538
+ | JSONSchemaTool
539
+ | HTTPTool
540
+ | RequestBodyMCPTool
541
+ | CodeExecutionTool;
542
+
543
+ /**
544
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
545
+ */
546
+ export const CreateToolResponseBodyToolsResponse200Status = {
547
+ Live: "live",
548
+ Draft: "draft",
549
+ Pending: "pending",
550
+ Published: "published",
551
+ } as const;
552
+ /**
553
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
554
+ */
555
+ export type CreateToolResponseBodyToolsResponse200Status = ClosedEnum<
556
+ typeof CreateToolResponseBodyToolsResponse200Status
557
+ >;
558
+
559
+ /**
560
+ * The type must be "object"
561
+ */
562
+ export const CreateToolResponseBodyToolsResponse200ApplicationJson5Type = {
563
+ Object: "object",
564
+ } as const;
565
+ /**
566
+ * The type must be "object"
567
+ */
568
+ export type CreateToolResponseBodyToolsResponse200ApplicationJson5Type =
569
+ ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson5Type>;
570
+
571
+ /**
572
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
573
+ */
574
+ export type CreateToolResponseBodyParameters = {
575
+ /**
576
+ * The type must be "object"
577
+ */
578
+ type: CreateToolResponseBodyToolsResponse200ApplicationJson5Type;
579
+ /**
580
+ * The properties of the function parameters
581
+ */
582
+ properties: { [k: string]: any };
583
+ /**
584
+ * Array of required parameter names
585
+ */
586
+ required: Array<string>;
587
+ additionalProperties?: { [k: string]: any } | undefined;
588
+ };
589
+
590
+ export const ResponseBodyLanguage = {
591
+ Python: "python",
592
+ } as const;
593
+ export type ResponseBodyLanguage = ClosedEnum<typeof ResponseBodyLanguage>;
594
+
595
+ export type ResponseBodyCodeTool = {
596
+ /**
597
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
598
+ */
599
+ parameters?: CreateToolResponseBodyParameters | undefined;
600
+ language: ResponseBodyLanguage;
601
+ /**
602
+ * The code to execute.
603
+ */
604
+ code: string;
605
+ };
606
+
607
+ /**
608
+ * Executes code snippets in a sandboxed environment, currently supporting Python.
609
+ */
610
+ export type ResponseBodyCodeExecutionTool = {
611
+ id: string;
612
+ /**
613
+ * Entity storage path.
614
+ *
615
+ * @remarks
616
+ *
617
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
618
+ *
619
+ * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
620
+ */
621
+ path: string;
622
+ /**
623
+ * Unique key of the tool as it will be displayed in the UI
624
+ */
625
+ key: string;
626
+ /**
627
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
628
+ */
629
+ displayName?: string | undefined;
630
+ /**
631
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
632
+ */
633
+ description: string;
634
+ /**
635
+ * The id of the user that created the tool
636
+ */
637
+ createdById?: string | null | undefined;
638
+ /**
639
+ * The id of the user that last updated the tool
640
+ */
641
+ updatedById?: string | null | undefined;
642
+ projectId: string;
643
+ workspaceId: string;
644
+ created: string;
645
+ updated: string;
646
+ /**
647
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
648
+ */
649
+ status: CreateToolResponseBodyToolsResponse200Status;
650
+ type: "code";
651
+ codeTool: ResponseBodyCodeTool;
652
+ };
653
+
654
+ /**
655
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
656
+ */
657
+ export const CreateToolResponseBodyToolsResponseStatus = {
658
+ Live: "live",
659
+ Draft: "draft",
660
+ Pending: "pending",
661
+ Published: "published",
662
+ } as const;
663
+ /**
664
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
665
+ */
666
+ export type CreateToolResponseBodyToolsResponseStatus = ClosedEnum<
667
+ typeof CreateToolResponseBodyToolsResponseStatus
668
+ >;
669
+
670
+ export type ResponseBodyHeaders = {
671
+ value: string;
672
+ encrypted: boolean;
673
+ };
674
+
675
+ export const CreateToolResponseBodyToolsResponse200ApplicationJson4Type = {
676
+ Object: "object",
677
+ } as const;
678
+ export type CreateToolResponseBodyToolsResponse200ApplicationJson4Type =
679
+ ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson4Type>;
680
+
681
+ export type CreateToolResponseBodySchema = {
682
+ type: CreateToolResponseBodyToolsResponse200ApplicationJson4Type;
683
+ properties?: { [k: string]: any } | undefined;
684
+ required?: Array<string> | undefined;
685
+ };
686
+
687
+ export type ResponseBodyTools = {
688
+ id: string;
689
+ name: string;
690
+ description?: string | undefined;
691
+ schema: CreateToolResponseBodySchema;
692
+ };
693
+
694
+ /**
695
+ * The connection type used by the MCP server
696
+ */
697
+ export const ResponseBodyConnectionType = {
698
+ Http: "http",
699
+ Sse: "sse",
700
+ } as const;
701
+ /**
702
+ * The connection type used by the MCP server
703
+ */
704
+ export type ResponseBodyConnectionType = ClosedEnum<
705
+ typeof ResponseBodyConnectionType
706
+ >;
707
+
708
+ export type ResponseBodyMcp = {
709
+ /**
710
+ * The MCP server URL (cached for execution)
711
+ */
712
+ serverUrl: string;
713
+ /**
714
+ * HTTP headers for MCP server requests with encryption support
715
+ */
716
+ headers?: { [k: string]: ResponseBodyHeaders } | undefined;
717
+ /**
718
+ * Array of tools available from the MCP server
719
+ */
720
+ tools: Array<ResponseBodyTools>;
721
+ /**
722
+ * The connection type used by the MCP server
723
+ */
724
+ connectionType: ResponseBodyConnectionType;
725
+ /**
726
+ * Names of template variables detected in server_url and headers. Used by the FE to prompt for one-time values on sync/refresh.
727
+ */
728
+ templateVariables?: Array<string> | null | undefined;
729
+ };
730
+
731
+ /**
732
+ * A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
733
+ */
734
+ export type ResponseBodyMCPTool = {
735
+ id: string;
736
+ /**
737
+ * Entity storage path.
738
+ *
739
+ * @remarks
740
+ *
741
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
742
+ *
743
+ * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
744
+ */
745
+ path: string;
746
+ /**
747
+ * Unique key of the tool as it will be displayed in the UI
748
+ */
749
+ key: string;
750
+ /**
751
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
752
+ */
753
+ displayName?: string | undefined;
754
+ /**
755
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
756
+ */
757
+ description: string;
758
+ /**
759
+ * The id of the user that created the tool
760
+ */
761
+ createdById?: string | null | undefined;
762
+ /**
763
+ * The id of the user that last updated the tool
764
+ */
765
+ updatedById?: string | null | undefined;
766
+ projectId: string;
767
+ workspaceId: string;
768
+ created: string;
769
+ updated: string;
770
+ /**
771
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
772
+ */
773
+ status: CreateToolResponseBodyToolsResponseStatus;
774
+ type: "mcp";
775
+ mcp: ResponseBodyMcp;
776
+ };
777
+
778
+ /**
779
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
780
+ */
781
+ export const CreateToolResponseBodyToolsStatus = {
782
+ Live: "live",
783
+ Draft: "draft",
784
+ Pending: "pending",
785
+ Published: "published",
786
+ } as const;
787
+ /**
788
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
789
+ */
790
+ export type CreateToolResponseBodyToolsStatus = ClosedEnum<
791
+ typeof CreateToolResponseBodyToolsStatus
792
+ >;
793
+
794
+ /**
795
+ * The HTTP method to use.
796
+ */
797
+ export const ResponseBodyMethod = {
798
+ Get: "GET",
799
+ Post: "POST",
800
+ Put: "PUT",
801
+ Delete: "DELETE",
802
+ } as const;
803
+ /**
804
+ * The HTTP method to use.
805
+ */
806
+ export type ResponseBodyMethod = ClosedEnum<typeof ResponseBodyMethod>;
807
+
808
+ export type CreateToolHeadersTools2 = {
809
+ value: string;
810
+ encrypted: boolean;
811
+ };
812
+
813
+ export type CreateToolResponseBodyHeaders = CreateToolHeadersTools2 | string;
814
+
815
+ /**
816
+ * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
817
+ */
818
+ export type ResponseBodyBlueprint = {
819
+ /**
820
+ * The URL to send the request to.
821
+ */
822
+ url: string;
823
+ /**
824
+ * The HTTP method to use.
825
+ */
826
+ method: ResponseBodyMethod;
827
+ /**
828
+ * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
829
+ */
830
+ headers?: { [k: string]: CreateToolHeadersTools2 | string } | undefined;
831
+ /**
832
+ * The body to send with the request.
833
+ */
834
+ body?: { [k: string]: any } | undefined;
835
+ /**
836
+ * The request timeout in seconds. Defaults to 60 seconds when not set. When used in an agent, tool executions are also bound by the agent run `limits.tool_timeout` (default 5 minutes), so raise that limit for longer-running tools.
837
+ */
838
+ timeout?: number | undefined;
839
+ };
840
+
841
+ /**
842
+ * The type of the argument.
843
+ */
844
+ export const CreateToolResponseBodyToolsResponse200ApplicationJson3Type = {
845
+ String: "string",
846
+ Number: "number",
847
+ Boolean: "boolean",
848
+ } as const;
849
+ /**
850
+ * The type of the argument.
851
+ */
852
+ export type CreateToolResponseBodyToolsResponse200ApplicationJson3Type =
853
+ ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson3Type>;
854
+
855
+ /**
856
+ * The default value of the argument.
857
+ */
858
+ export type ResponseBodyDefaultValue = string | number | boolean;
859
+
860
+ export type ResponseBodyArguments = {
861
+ /**
862
+ * The type of the argument.
863
+ */
864
+ type: CreateToolResponseBodyToolsResponse200ApplicationJson3Type;
865
+ /**
866
+ * A description of the argument.
867
+ */
868
+ description: string;
869
+ /**
870
+ * Whether to send the argument to the model. If set to false, the argument will not be sent to the model and needs to be provided by the user or it will be left blank.
871
+ */
872
+ sendToModel: boolean;
873
+ /**
874
+ * The default value of the argument.
875
+ */
876
+ defaultValue?: string | number | boolean | undefined;
877
+ };
878
+
879
+ export type CreateToolResponseBodyHttp = {
880
+ /**
881
+ * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
882
+ */
883
+ blueprint: ResponseBodyBlueprint;
884
+ /**
885
+ * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
886
+ */
887
+ arguments?: { [k: string]: ResponseBodyArguments } | undefined;
888
+ };
889
+
890
+ /**
891
+ * Executes HTTP requests to interact with external APIs and web services using customizable blueprints.
892
+ */
893
+ export type ResponseBodyHTTPTool = {
894
+ id: string;
895
+ /**
896
+ * Entity storage path.
897
+ *
898
+ * @remarks
899
+ *
900
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
901
+ *
902
+ * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
903
+ */
904
+ path: string;
905
+ /**
906
+ * Unique key of the tool as it will be displayed in the UI
907
+ */
908
+ key: string;
909
+ /**
910
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
911
+ */
912
+ displayName?: string | undefined;
913
+ /**
914
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
915
+ */
916
+ description: string;
917
+ /**
918
+ * The id of the user that created the tool
919
+ */
920
+ createdById?: string | null | undefined;
921
+ /**
922
+ * The id of the user that last updated the tool
923
+ */
924
+ updatedById?: string | null | undefined;
925
+ projectId: string;
926
+ workspaceId: string;
927
+ created: string;
928
+ updated: string;
929
+ /**
930
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
931
+ */
932
+ status: CreateToolResponseBodyToolsStatus;
933
+ type: "http";
934
+ http: CreateToolResponseBodyHttp;
935
+ };
936
+
937
+ /**
938
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
939
+ */
940
+ export const CreateToolResponseBodyStatus = {
941
+ Live: "live",
942
+ Draft: "draft",
943
+ Pending: "pending",
944
+ Published: "published",
945
+ } as const;
946
+ /**
947
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
948
+ */
949
+ export type CreateToolResponseBodyStatus = ClosedEnum<
950
+ typeof CreateToolResponseBodyStatus
951
+ >;
952
+
953
+ /**
954
+ * The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
955
+ */
956
+ export type ResponseBodySchema = {
957
+ /**
958
+ * The JSON Schema type
959
+ */
960
+ type: string;
961
+ /**
962
+ * The properties of the JSON Schema object
963
+ */
964
+ properties: { [k: string]: any };
965
+ /**
966
+ * Array of required property names
967
+ */
968
+ required: Array<string>;
969
+ additionalProperties?: { [k: string]: any } | undefined;
970
+ };
971
+
972
+ export type ResponseBodyJsonSchema = {
973
+ /**
974
+ * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
975
+ */
976
+ name: string;
977
+ /**
978
+ * A description of what the response format is for. This will be shown to the user.
979
+ */
980
+ description: string;
981
+ /**
982
+ * The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
983
+ */
984
+ schema: ResponseBodySchema;
985
+ /**
986
+ * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. Only compatible with `OpenAI` models.
987
+ */
988
+ strict?: boolean | undefined;
989
+ };
990
+
991
+ /**
992
+ * A tool that enforces structured output format using JSON Schema for consistent response formatting.
993
+ */
994
+ export type ResponseBodyJSONSchemaTool = {
995
+ id: string;
996
+ /**
997
+ * Entity storage path.
998
+ *
999
+ * @remarks
1000
+ *
1001
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
1002
+ *
1003
+ * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
1004
+ */
1005
+ path: string;
1006
+ /**
1007
+ * Unique key of the tool as it will be displayed in the UI
1008
+ */
1009
+ key: string;
1010
+ /**
1011
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
1012
+ */
1013
+ displayName?: string | undefined;
1014
+ /**
1015
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
1016
+ */
1017
+ description: string;
1018
+ /**
1019
+ * The id of the user that created the tool
1020
+ */
1021
+ createdById?: string | null | undefined;
1022
+ /**
1023
+ * The id of the user that last updated the tool
1024
+ */
1025
+ updatedById?: string | null | undefined;
1026
+ projectId: string;
1027
+ workspaceId: string;
1028
+ created: string;
1029
+ updated: string;
1030
+ /**
1031
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1032
+ */
1033
+ status: CreateToolResponseBodyStatus;
1034
+ type: "json_schema";
1035
+ jsonSchema: ResponseBodyJsonSchema;
1036
+ };
1037
+
1038
+ /**
1039
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1040
+ */
1041
+ export const ResponseBodyStatus = {
1042
+ Live: "live",
1043
+ Draft: "draft",
1044
+ Pending: "pending",
1045
+ Published: "published",
1046
+ } as const;
1047
+ /**
1048
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1049
+ */
1050
+ export type ResponseBodyStatus = ClosedEnum<typeof ResponseBodyStatus>;
1051
+
1052
+ /**
1053
+ * The type must be "object"
1054
+ */
1055
+ export const CreateToolResponseBodyToolsResponse200ApplicationJson1Type = {
1056
+ Object: "object",
1057
+ } as const;
1058
+ /**
1059
+ * The type must be "object"
1060
+ */
1061
+ export type CreateToolResponseBodyToolsResponse200ApplicationJson1Type =
1062
+ ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson1Type>;
1063
+
1064
+ /**
1065
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
1066
+ */
1067
+ export type ResponseBodyParameters = {
1068
+ /**
1069
+ * The type must be "object"
1070
+ */
1071
+ type: CreateToolResponseBodyToolsResponse200ApplicationJson1Type;
1072
+ /**
1073
+ * The properties of the function parameters
1074
+ */
1075
+ properties: { [k: string]: any };
1076
+ /**
1077
+ * Array of required parameter names
1078
+ */
1079
+ required: Array<string>;
1080
+ additionalProperties?: { [k: string]: any } | undefined;
1081
+ };
1082
+
1083
+ export type ResponseBodyFunction = {
1084
+ /**
1085
+ * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
1086
+ */
1087
+ name: string;
1088
+ /**
1089
+ * A description of what the function does, used by the model to choose when and how to call the function.
1090
+ */
1091
+ description?: string | undefined;
1092
+ /**
1093
+ * Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
1094
+ */
1095
+ strict?: boolean | undefined;
1096
+ /**
1097
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
1098
+ */
1099
+ parameters?: ResponseBodyParameters | undefined;
1100
+ };
1101
+
1102
+ /**
1103
+ * A custom function tool that allows the model to call predefined functions with structured parameters.
1104
+ */
1105
+ export type ResponseBodyFunctionTool = {
1106
+ id: string;
1107
+ /**
1108
+ * Entity storage path.
1109
+ *
1110
+ * @remarks
1111
+ *
1112
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
1113
+ *
1114
+ * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
1115
+ */
1116
+ path: string;
1117
+ /**
1118
+ * Unique key of the tool as it will be displayed in the UI
1119
+ */
1120
+ key: string;
1121
+ /**
1122
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
1123
+ */
1124
+ displayName?: string | undefined;
1125
+ /**
1126
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
1127
+ */
1128
+ description: string;
1129
+ /**
1130
+ * The id of the user that created the tool
1131
+ */
1132
+ createdById?: string | null | undefined;
1133
+ /**
1134
+ * The id of the user that last updated the tool
1135
+ */
1136
+ updatedById?: string | null | undefined;
1137
+ projectId: string;
1138
+ workspaceId: string;
1139
+ created: string;
1140
+ updated: string;
1141
+ /**
1142
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1143
+ */
1144
+ status: ResponseBodyStatus;
1145
+ type: "function";
1146
+ function: ResponseBodyFunction;
1147
+ };
1148
+
1149
+ /**
1150
+ * Successfully created the tool.
1151
+ */
1152
+ export type CreateToolResponseBody =
1153
+ | ResponseBodyFunctionTool
1154
+ | ResponseBodyJSONSchemaTool
1155
+ | ResponseBodyHTTPTool
1156
+ | ResponseBodyMCPTool
1157
+ | ResponseBodyCodeExecutionTool;
1158
+
1159
+ /** @internal */
1160
+ export const CreateToolRequestBodyToolsRequestStatus$outboundSchema:
1161
+ z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequestStatus> = z
1162
+ .nativeEnum(CreateToolRequestBodyToolsRequestStatus);
1163
+
1164
+ /** @internal */
1165
+ export const CreateToolRequestBodyToolsRequest5CodeToolType$outboundSchema:
1166
+ z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest5CodeToolType> = z
1167
+ .nativeEnum(CreateToolRequestBodyToolsRequest5CodeToolType);
1168
+
1169
+ /** @internal */
1170
+ export type CreateToolRequestBodyParameters$Outbound = {
1171
+ type: string;
1172
+ properties: { [k: string]: any };
1173
+ required: Array<string>;
1174
+ [additionalProperties: string]: unknown;
1175
+ };
1176
+
1177
+ /** @internal */
1178
+ export const CreateToolRequestBodyParameters$outboundSchema: z.ZodType<
1179
+ CreateToolRequestBodyParameters$Outbound,
1180
+ z.ZodTypeDef,
1181
+ CreateToolRequestBodyParameters
1182
+ > = z.object({
1183
+ type: CreateToolRequestBodyToolsRequest5CodeToolType$outboundSchema,
1184
+ properties: z.record(z.any()),
1185
+ required: z.array(z.string()),
1186
+ additionalProperties: z.record(z.any()).optional(),
1187
+ }).transform((v) => {
1188
+ return {
1189
+ ...v.additionalProperties,
1190
+ ...remap$(v, {
1191
+ additionalProperties: null,
1192
+ }),
1193
+ };
1194
+ });
1195
+
1196
+ export function createToolRequestBodyParametersToJSON(
1197
+ createToolRequestBodyParameters: CreateToolRequestBodyParameters,
1198
+ ): string {
1199
+ return JSON.stringify(
1200
+ CreateToolRequestBodyParameters$outboundSchema.parse(
1201
+ createToolRequestBodyParameters,
1202
+ ),
1203
+ );
1204
+ }
1205
+
1206
+ /** @internal */
1207
+ export const RequestBodyLanguage$outboundSchema: z.ZodNativeEnum<
1208
+ typeof RequestBodyLanguage
1209
+ > = z.nativeEnum(RequestBodyLanguage);
1210
+
1211
+ /** @internal */
1212
+ export type RequestBodyCodeTool$Outbound = {
1213
+ parameters?: CreateToolRequestBodyParameters$Outbound | undefined;
1214
+ language: string;
1215
+ code: string;
1216
+ };
1217
+
1218
+ /** @internal */
1219
+ export const RequestBodyCodeTool$outboundSchema: z.ZodType<
1220
+ RequestBodyCodeTool$Outbound,
1221
+ z.ZodTypeDef,
1222
+ RequestBodyCodeTool
1223
+ > = z.object({
1224
+ parameters: z.lazy(() => CreateToolRequestBodyParameters$outboundSchema)
1225
+ .optional(),
1226
+ language: RequestBodyLanguage$outboundSchema,
1227
+ code: z.string(),
1228
+ });
1229
+
1230
+ export function requestBodyCodeToolToJSON(
1231
+ requestBodyCodeTool: RequestBodyCodeTool,
1232
+ ): string {
1233
+ return JSON.stringify(
1234
+ RequestBodyCodeTool$outboundSchema.parse(requestBodyCodeTool),
1235
+ );
1236
+ }
1237
+
1238
+ /** @internal */
1239
+ export type CodeExecutionTool$Outbound = {
1240
+ path: string;
1241
+ key: string;
1242
+ display_name?: string | undefined;
1243
+ description: string;
1244
+ status: string;
1245
+ type: "code";
1246
+ code_tool: RequestBodyCodeTool$Outbound;
1247
+ };
1248
+
1249
+ /** @internal */
1250
+ export const CodeExecutionTool$outboundSchema: z.ZodType<
1251
+ CodeExecutionTool$Outbound,
1252
+ z.ZodTypeDef,
1253
+ CodeExecutionTool
1254
+ > = z.object({
1255
+ path: z.string(),
1256
+ key: z.string(),
1257
+ displayName: z.string().optional(),
1258
+ description: z.string(),
1259
+ status: CreateToolRequestBodyToolsRequestStatus$outboundSchema.default(
1260
+ "live",
1261
+ ),
1262
+ type: z.literal("code"),
1263
+ codeTool: z.lazy(() => RequestBodyCodeTool$outboundSchema),
1264
+ }).transform((v) => {
1265
+ return remap$(v, {
1266
+ displayName: "display_name",
1267
+ codeTool: "code_tool",
1268
+ });
1269
+ });
1270
+
1271
+ export function codeExecutionToolToJSON(
1272
+ codeExecutionTool: CodeExecutionTool,
1273
+ ): string {
1274
+ return JSON.stringify(
1275
+ CodeExecutionTool$outboundSchema.parse(codeExecutionTool),
1276
+ );
1277
+ }
1278
+
1279
+ /** @internal */
1280
+ export const CreateToolRequestBodyToolsStatus$outboundSchema: z.ZodNativeEnum<
1281
+ typeof CreateToolRequestBodyToolsStatus
1282
+ > = z.nativeEnum(CreateToolRequestBodyToolsStatus);
1283
+
1284
+ /** @internal */
1285
+ export type RequestBodyHeaders$Outbound = {
1286
+ value: string;
1287
+ encrypted: boolean;
1288
+ };
1289
+
1290
+ /** @internal */
1291
+ export const RequestBodyHeaders$outboundSchema: z.ZodType<
1292
+ RequestBodyHeaders$Outbound,
1293
+ z.ZodTypeDef,
1294
+ RequestBodyHeaders
1295
+ > = z.object({
1296
+ value: z.string(),
1297
+ encrypted: z.boolean().default(false),
1298
+ });
1299
+
1300
+ export function requestBodyHeadersToJSON(
1301
+ requestBodyHeaders: RequestBodyHeaders,
1302
+ ): string {
1303
+ return JSON.stringify(
1304
+ RequestBodyHeaders$outboundSchema.parse(requestBodyHeaders),
1305
+ );
1306
+ }
1307
+
1308
+ /** @internal */
1309
+ export const RequestBodyConnectionType$outboundSchema: z.ZodNativeEnum<
1310
+ typeof RequestBodyConnectionType
1311
+ > = z.nativeEnum(RequestBodyConnectionType);
1312
+
1313
+ /** @internal */
1314
+ export type RequestBodyMcp$Outbound = {
1315
+ server_url: string;
1316
+ headers?: { [k: string]: RequestBodyHeaders$Outbound } | undefined;
1317
+ connection_type: string;
1318
+ };
1319
+
1320
+ /** @internal */
1321
+ export const RequestBodyMcp$outboundSchema: z.ZodType<
1322
+ RequestBodyMcp$Outbound,
1323
+ z.ZodTypeDef,
1324
+ RequestBodyMcp
1325
+ > = z.object({
1326
+ serverUrl: z.string(),
1327
+ headers: z.record(z.lazy(() => RequestBodyHeaders$outboundSchema)).optional(),
1328
+ connectionType: RequestBodyConnectionType$outboundSchema,
1329
+ }).transform((v) => {
1330
+ return remap$(v, {
1331
+ serverUrl: "server_url",
1332
+ connectionType: "connection_type",
1333
+ });
1334
+ });
1335
+
1336
+ export function requestBodyMcpToJSON(requestBodyMcp: RequestBodyMcp): string {
1337
+ return JSON.stringify(RequestBodyMcp$outboundSchema.parse(requestBodyMcp));
1338
+ }
1339
+
1340
+ /** @internal */
1341
+ export type RequestBodyMCPTool$Outbound = {
1342
+ path: string;
1343
+ key: string;
1344
+ display_name?: string | undefined;
1345
+ description: string;
1346
+ status: string;
1347
+ type: "mcp";
1348
+ mcp: RequestBodyMcp$Outbound;
1349
+ discovery_variables?: { [k: string]: string } | undefined;
1350
+ };
1351
+
1352
+ /** @internal */
1353
+ export const RequestBodyMCPTool$outboundSchema: z.ZodType<
1354
+ RequestBodyMCPTool$Outbound,
1355
+ z.ZodTypeDef,
1356
+ RequestBodyMCPTool
1357
+ > = z.object({
1358
+ path: z.string(),
1359
+ key: z.string(),
1360
+ displayName: z.string().optional(),
1361
+ description: z.string(),
1362
+ status: CreateToolRequestBodyToolsStatus$outboundSchema.default("live"),
1363
+ type: z.literal("mcp"),
1364
+ mcp: z.lazy(() => RequestBodyMcp$outboundSchema),
1365
+ discoveryVariables: z.record(z.string()).optional(),
1366
+ }).transform((v) => {
1367
+ return remap$(v, {
1368
+ displayName: "display_name",
1369
+ discoveryVariables: "discovery_variables",
1370
+ });
1371
+ });
1372
+
1373
+ export function requestBodyMCPToolToJSON(
1374
+ requestBodyMCPTool: RequestBodyMCPTool,
1375
+ ): string {
1376
+ return JSON.stringify(
1377
+ RequestBodyMCPTool$outboundSchema.parse(requestBodyMCPTool),
1378
+ );
1379
+ }
1380
+
1381
+ /** @internal */
1382
+ export const CreateToolRequestBodyStatus$outboundSchema: z.ZodNativeEnum<
1383
+ typeof CreateToolRequestBodyStatus
1384
+ > = z.nativeEnum(CreateToolRequestBodyStatus);
1385
+
1386
+ /** @internal */
1387
+ export const RequestBodyMethod$outboundSchema: z.ZodNativeEnum<
1388
+ typeof RequestBodyMethod
1389
+ > = z.nativeEnum(RequestBodyMethod);
1390
+
1391
+ /** @internal */
1392
+ export type CreateToolHeaders2$Outbound = {
1393
+ value: string;
1394
+ encrypted: boolean;
1395
+ };
1396
+
1397
+ /** @internal */
1398
+ export const CreateToolHeaders2$outboundSchema: z.ZodType<
1399
+ CreateToolHeaders2$Outbound,
1400
+ z.ZodTypeDef,
1401
+ CreateToolHeaders2
1402
+ > = z.object({
1403
+ value: z.string(),
1404
+ encrypted: z.boolean().default(false),
1405
+ });
1406
+
1407
+ export function createToolHeaders2ToJSON(
1408
+ createToolHeaders2: CreateToolHeaders2,
1409
+ ): string {
1410
+ return JSON.stringify(
1411
+ CreateToolHeaders2$outboundSchema.parse(createToolHeaders2),
1412
+ );
1413
+ }
1414
+
1415
+ /** @internal */
1416
+ export type CreateToolRequestBodyHeaders$Outbound =
1417
+ | CreateToolHeaders2$Outbound
1418
+ | string;
1419
+
1420
+ /** @internal */
1421
+ export const CreateToolRequestBodyHeaders$outboundSchema: z.ZodType<
1422
+ CreateToolRequestBodyHeaders$Outbound,
1423
+ z.ZodTypeDef,
1424
+ CreateToolRequestBodyHeaders
1425
+ > = z.union([z.lazy(() => CreateToolHeaders2$outboundSchema), z.string()]);
1426
+
1427
+ export function createToolRequestBodyHeadersToJSON(
1428
+ createToolRequestBodyHeaders: CreateToolRequestBodyHeaders,
1429
+ ): string {
1430
+ return JSON.stringify(
1431
+ CreateToolRequestBodyHeaders$outboundSchema.parse(
1432
+ createToolRequestBodyHeaders,
1433
+ ),
1434
+ );
1435
+ }
1436
+
1437
+ /** @internal */
1438
+ export type RequestBodyBlueprint$Outbound = {
1439
+ url: string;
1440
+ method: string;
1441
+ headers?: { [k: string]: CreateToolHeaders2$Outbound | string } | undefined;
1442
+ body?: { [k: string]: any } | undefined;
1443
+ timeout?: number | undefined;
1444
+ };
1445
+
1446
+ /** @internal */
1447
+ export const RequestBodyBlueprint$outboundSchema: z.ZodType<
1448
+ RequestBodyBlueprint$Outbound,
1449
+ z.ZodTypeDef,
1450
+ RequestBodyBlueprint
1451
+ > = z.object({
1452
+ url: z.string(),
1453
+ method: RequestBodyMethod$outboundSchema,
1454
+ headers: z.record(
1455
+ z.union([z.lazy(() => CreateToolHeaders2$outboundSchema), z.string()]),
1456
+ ).optional(),
1457
+ body: z.record(z.any()).optional(),
1458
+ timeout: z.number().optional(),
1459
+ });
1460
+
1461
+ export function requestBodyBlueprintToJSON(
1462
+ requestBodyBlueprint: RequestBodyBlueprint,
1463
+ ): string {
1464
+ return JSON.stringify(
1465
+ RequestBodyBlueprint$outboundSchema.parse(requestBodyBlueprint),
1466
+ );
1467
+ }
1468
+
1469
+ /** @internal */
1470
+ export const CreateToolRequestBodyToolsRequest3Type$outboundSchema:
1471
+ z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest3Type> = z.nativeEnum(
1472
+ CreateToolRequestBodyToolsRequest3Type,
1473
+ );
1474
+
1475
+ /** @internal */
1476
+ export type RequestBodyDefaultValue$Outbound = string | number | boolean;
1477
+
1478
+ /** @internal */
1479
+ export const RequestBodyDefaultValue$outboundSchema: z.ZodType<
1480
+ RequestBodyDefaultValue$Outbound,
1481
+ z.ZodTypeDef,
1482
+ RequestBodyDefaultValue
1483
+ > = z.union([z.string(), z.number(), z.boolean()]);
1484
+
1485
+ export function requestBodyDefaultValueToJSON(
1486
+ requestBodyDefaultValue: RequestBodyDefaultValue,
1487
+ ): string {
1488
+ return JSON.stringify(
1489
+ RequestBodyDefaultValue$outboundSchema.parse(requestBodyDefaultValue),
1490
+ );
1491
+ }
1492
+
1493
+ /** @internal */
1494
+ export type RequestBodyArguments$Outbound = {
1495
+ type: string;
1496
+ description: string;
1497
+ send_to_model: boolean;
1498
+ default_value?: string | number | boolean | undefined;
1499
+ };
1500
+
1501
+ /** @internal */
1502
+ export const RequestBodyArguments$outboundSchema: z.ZodType<
1503
+ RequestBodyArguments$Outbound,
1504
+ z.ZodTypeDef,
1505
+ RequestBodyArguments
1506
+ > = z.object({
1507
+ type: CreateToolRequestBodyToolsRequest3Type$outboundSchema,
1508
+ description: z.string(),
1509
+ sendToModel: z.boolean().default(true),
1510
+ defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
1511
+ }).transform((v) => {
1512
+ return remap$(v, {
1513
+ sendToModel: "send_to_model",
1514
+ defaultValue: "default_value",
1515
+ });
1516
+ });
1517
+
1518
+ export function requestBodyArgumentsToJSON(
1519
+ requestBodyArguments: RequestBodyArguments,
1520
+ ): string {
1521
+ return JSON.stringify(
1522
+ RequestBodyArguments$outboundSchema.parse(requestBodyArguments),
1523
+ );
1524
+ }
1525
+
1526
+ /** @internal */
1527
+ export type RequestBodyHttp$Outbound = {
1528
+ blueprint: RequestBodyBlueprint$Outbound;
1529
+ arguments?: { [k: string]: RequestBodyArguments$Outbound } | undefined;
1530
+ };
1531
+
1532
+ /** @internal */
1533
+ export const RequestBodyHttp$outboundSchema: z.ZodType<
1534
+ RequestBodyHttp$Outbound,
1535
+ z.ZodTypeDef,
1536
+ RequestBodyHttp
1537
+ > = z.object({
1538
+ blueprint: z.lazy(() => RequestBodyBlueprint$outboundSchema),
1539
+ arguments: z.record(z.lazy(() => RequestBodyArguments$outboundSchema))
1540
+ .optional(),
1541
+ });
1542
+
1543
+ export function requestBodyHttpToJSON(
1544
+ requestBodyHttp: RequestBodyHttp,
1545
+ ): string {
1546
+ return JSON.stringify(RequestBodyHttp$outboundSchema.parse(requestBodyHttp));
1547
+ }
1548
+
1549
+ /** @internal */
1550
+ export type HTTPTool$Outbound = {
1551
+ path: string;
1552
+ key: string;
1553
+ display_name?: string | undefined;
1554
+ description: string;
1555
+ status: string;
1556
+ type: "http";
1557
+ http: RequestBodyHttp$Outbound;
1558
+ };
1559
+
1560
+ /** @internal */
1561
+ export const HTTPTool$outboundSchema: z.ZodType<
1562
+ HTTPTool$Outbound,
1563
+ z.ZodTypeDef,
1564
+ HTTPTool
1565
+ > = z.object({
1566
+ path: z.string(),
1567
+ key: z.string(),
1568
+ displayName: z.string().optional(),
1569
+ description: z.string(),
1570
+ status: CreateToolRequestBodyStatus$outboundSchema.default("live"),
1571
+ type: z.literal("http"),
1572
+ http: z.lazy(() => RequestBodyHttp$outboundSchema),
1573
+ }).transform((v) => {
1574
+ return remap$(v, {
1575
+ displayName: "display_name",
1576
+ });
1577
+ });
1578
+
1579
+ export function httpToolToJSON(httpTool: HTTPTool): string {
1580
+ return JSON.stringify(HTTPTool$outboundSchema.parse(httpTool));
1581
+ }
1582
+
1583
+ /** @internal */
1584
+ export const RequestBodyStatus$outboundSchema: z.ZodNativeEnum<
1585
+ typeof RequestBodyStatus
1586
+ > = z.nativeEnum(RequestBodyStatus);
1587
+
1588
+ /** @internal */
1589
+ export type RequestBodySchema$Outbound = {
1590
+ type: string;
1591
+ properties: { [k: string]: any };
1592
+ required: Array<string>;
1593
+ [additionalProperties: string]: unknown;
1594
+ };
1595
+
1596
+ /** @internal */
1597
+ export const RequestBodySchema$outboundSchema: z.ZodType<
1598
+ RequestBodySchema$Outbound,
1599
+ z.ZodTypeDef,
1600
+ RequestBodySchema
1601
+ > = z.object({
1602
+ type: z.string(),
1603
+ properties: z.record(z.any()),
1604
+ required: z.array(z.string()),
1605
+ additionalProperties: z.record(z.any()).optional(),
1606
+ }).transform((v) => {
1607
+ return {
1608
+ ...v.additionalProperties,
1609
+ ...remap$(v, {
1610
+ additionalProperties: null,
1611
+ }),
1612
+ };
1613
+ });
1614
+
1615
+ export function requestBodySchemaToJSON(
1616
+ requestBodySchema: RequestBodySchema,
1617
+ ): string {
1618
+ return JSON.stringify(
1619
+ RequestBodySchema$outboundSchema.parse(requestBodySchema),
1620
+ );
1621
+ }
1622
+
1623
+ /** @internal */
1624
+ export type RequestBodyJsonSchema$Outbound = {
1625
+ name: string;
1626
+ description: string;
1627
+ schema: RequestBodySchema$Outbound;
1628
+ strict?: boolean | undefined;
1629
+ };
1630
+
1631
+ /** @internal */
1632
+ export const RequestBodyJsonSchema$outboundSchema: z.ZodType<
1633
+ RequestBodyJsonSchema$Outbound,
1634
+ z.ZodTypeDef,
1635
+ RequestBodyJsonSchema
1636
+ > = z.object({
1637
+ name: z.string(),
1638
+ description: z.string(),
1639
+ schema: z.lazy(() => RequestBodySchema$outboundSchema),
1640
+ strict: z.boolean().optional(),
1641
+ });
1642
+
1643
+ export function requestBodyJsonSchemaToJSON(
1644
+ requestBodyJsonSchema: RequestBodyJsonSchema,
1645
+ ): string {
1646
+ return JSON.stringify(
1647
+ RequestBodyJsonSchema$outboundSchema.parse(requestBodyJsonSchema),
1648
+ );
1649
+ }
1650
+
1651
+ /** @internal */
1652
+ export type JSONSchemaTool$Outbound = {
1653
+ path: string;
1654
+ key: string;
1655
+ display_name?: string | undefined;
1656
+ description: string;
1657
+ status: string;
1658
+ type: "json_schema";
1659
+ json_schema: RequestBodyJsonSchema$Outbound;
1660
+ };
1661
+
1662
+ /** @internal */
1663
+ export const JSONSchemaTool$outboundSchema: z.ZodType<
1664
+ JSONSchemaTool$Outbound,
1665
+ z.ZodTypeDef,
1666
+ JSONSchemaTool
1667
+ > = z.object({
1668
+ path: z.string(),
1669
+ key: z.string(),
1670
+ displayName: z.string().optional(),
1671
+ description: z.string(),
1672
+ status: RequestBodyStatus$outboundSchema.default("live"),
1673
+ type: z.literal("json_schema"),
1674
+ jsonSchema: z.lazy(() => RequestBodyJsonSchema$outboundSchema),
1675
+ }).transform((v) => {
1676
+ return remap$(v, {
1677
+ displayName: "display_name",
1678
+ jsonSchema: "json_schema",
1679
+ });
1680
+ });
1681
+
1682
+ export function jsonSchemaToolToJSON(jsonSchemaTool: JSONSchemaTool): string {
1683
+ return JSON.stringify(JSONSchemaTool$outboundSchema.parse(jsonSchemaTool));
1684
+ }
1685
+
1686
+ /** @internal */
1687
+ export const CreateToolRequestBodyToolsRequest1Status$outboundSchema:
1688
+ z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest1Status> = z
1689
+ .nativeEnum(CreateToolRequestBodyToolsRequest1Status);
1690
+
1691
+ /** @internal */
1692
+ export const CreateToolRequestBodyToolsRequest1Type$outboundSchema:
1693
+ z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest1Type> = z.nativeEnum(
1694
+ CreateToolRequestBodyToolsRequest1Type,
1695
+ );
1696
+
1697
+ /** @internal */
1698
+ export type RequestBodyParameters$Outbound = {
1699
+ type: string;
1700
+ properties: { [k: string]: any };
1701
+ required: Array<string>;
1702
+ [additionalProperties: string]: unknown;
1703
+ };
1704
+
1705
+ /** @internal */
1706
+ export const RequestBodyParameters$outboundSchema: z.ZodType<
1707
+ RequestBodyParameters$Outbound,
1708
+ z.ZodTypeDef,
1709
+ RequestBodyParameters
1710
+ > = z.object({
1711
+ type: CreateToolRequestBodyToolsRequest1Type$outboundSchema,
1712
+ properties: z.record(z.any()),
1713
+ required: z.array(z.string()),
1714
+ additionalProperties: z.record(z.any()).optional(),
1715
+ }).transform((v) => {
1716
+ return {
1717
+ ...v.additionalProperties,
1718
+ ...remap$(v, {
1719
+ additionalProperties: null,
1720
+ }),
1721
+ };
1722
+ });
1723
+
1724
+ export function requestBodyParametersToJSON(
1725
+ requestBodyParameters: RequestBodyParameters,
1726
+ ): string {
1727
+ return JSON.stringify(
1728
+ RequestBodyParameters$outboundSchema.parse(requestBodyParameters),
1729
+ );
1730
+ }
1731
+
1732
+ /** @internal */
1733
+ export type RequestBodyFunction$Outbound = {
1734
+ name: string;
1735
+ description?: string | undefined;
1736
+ strict?: boolean | undefined;
1737
+ parameters?: RequestBodyParameters$Outbound | undefined;
1738
+ };
1739
+
1740
+ /** @internal */
1741
+ export const RequestBodyFunction$outboundSchema: z.ZodType<
1742
+ RequestBodyFunction$Outbound,
1743
+ z.ZodTypeDef,
1744
+ RequestBodyFunction
1745
+ > = z.object({
1746
+ name: z.string(),
1747
+ description: z.string().optional(),
1748
+ strict: z.boolean().optional(),
1749
+ parameters: z.lazy(() => RequestBodyParameters$outboundSchema).optional(),
1750
+ });
1751
+
1752
+ export function requestBodyFunctionToJSON(
1753
+ requestBodyFunction: RequestBodyFunction,
1754
+ ): string {
1755
+ return JSON.stringify(
1756
+ RequestBodyFunction$outboundSchema.parse(requestBodyFunction),
1757
+ );
1758
+ }
1759
+
1760
+ /** @internal */
1761
+ export type FunctionTool$Outbound = {
1762
+ path: string;
1763
+ key: string;
1764
+ display_name?: string | undefined;
1765
+ description: string;
1766
+ status: string;
1767
+ type: "function";
1768
+ function: RequestBodyFunction$Outbound;
1769
+ };
1770
+
1771
+ /** @internal */
1772
+ export const FunctionTool$outboundSchema: z.ZodType<
1773
+ FunctionTool$Outbound,
1774
+ z.ZodTypeDef,
1775
+ FunctionTool
1776
+ > = z.object({
1777
+ path: z.string(),
1778
+ key: z.string(),
1779
+ displayName: z.string().optional(),
1780
+ description: z.string(),
1781
+ status: CreateToolRequestBodyToolsRequest1Status$outboundSchema.default(
1782
+ "live",
1783
+ ),
1784
+ type: z.literal("function"),
1785
+ function: z.lazy(() => RequestBodyFunction$outboundSchema),
1786
+ }).transform((v) => {
1787
+ return remap$(v, {
1788
+ displayName: "display_name",
1789
+ });
1790
+ });
1791
+
1792
+ export function functionToolToJSON(functionTool: FunctionTool): string {
1793
+ return JSON.stringify(FunctionTool$outboundSchema.parse(functionTool));
1794
+ }
1795
+
1796
+ /** @internal */
1797
+ export type CreateToolRequestBody$Outbound =
1798
+ | FunctionTool$Outbound
1799
+ | JSONSchemaTool$Outbound
1800
+ | HTTPTool$Outbound
1801
+ | RequestBodyMCPTool$Outbound
1802
+ | CodeExecutionTool$Outbound;
1803
+
1804
+ /** @internal */
1805
+ export const CreateToolRequestBody$outboundSchema: z.ZodType<
1806
+ CreateToolRequestBody$Outbound,
1807
+ z.ZodTypeDef,
1808
+ CreateToolRequestBody
1809
+ > = z.union([
1810
+ z.lazy(() => FunctionTool$outboundSchema),
1811
+ z.lazy(() => JSONSchemaTool$outboundSchema),
1812
+ z.lazy(() => HTTPTool$outboundSchema),
1813
+ z.lazy(() => RequestBodyMCPTool$outboundSchema),
1814
+ z.lazy(() => CodeExecutionTool$outboundSchema),
1815
+ ]);
1816
+
1817
+ export function createToolRequestBodyToJSON(
1818
+ createToolRequestBody: CreateToolRequestBody,
1819
+ ): string {
1820
+ return JSON.stringify(
1821
+ CreateToolRequestBody$outboundSchema.parse(createToolRequestBody),
1822
+ );
1823
+ }
1824
+
1825
+ /** @internal */
1826
+ export const CreateToolResponseBodyToolsResponse200Status$inboundSchema:
1827
+ z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200Status> = z
1828
+ .nativeEnum(CreateToolResponseBodyToolsResponse200Status);
1829
+
1830
+ /** @internal */
1831
+ export const CreateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema:
1832
+ z.ZodNativeEnum<
1833
+ typeof CreateToolResponseBodyToolsResponse200ApplicationJson5Type
1834
+ > = z.nativeEnum(CreateToolResponseBodyToolsResponse200ApplicationJson5Type);
1835
+
1836
+ /** @internal */
1837
+ export const CreateToolResponseBodyParameters$inboundSchema: z.ZodType<
1838
+ CreateToolResponseBodyParameters,
1839
+ z.ZodTypeDef,
1840
+ unknown
1841
+ > = collectExtraKeys$(
1842
+ z.object({
1843
+ type:
1844
+ CreateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema,
1845
+ properties: z.record(z.any()),
1846
+ required: z.array(z.string()),
1847
+ }).catchall(z.any()),
1848
+ "additionalProperties",
1849
+ true,
1850
+ );
1851
+
1852
+ export function createToolResponseBodyParametersFromJSON(
1853
+ jsonString: string,
1854
+ ): SafeParseResult<CreateToolResponseBodyParameters, SDKValidationError> {
1855
+ return safeParse(
1856
+ jsonString,
1857
+ (x) => CreateToolResponseBodyParameters$inboundSchema.parse(JSON.parse(x)),
1858
+ `Failed to parse 'CreateToolResponseBodyParameters' from JSON`,
1859
+ );
1860
+ }
1861
+
1862
+ /** @internal */
1863
+ export const ResponseBodyLanguage$inboundSchema: z.ZodNativeEnum<
1864
+ typeof ResponseBodyLanguage
1865
+ > = z.nativeEnum(ResponseBodyLanguage);
1866
+
1867
+ /** @internal */
1868
+ export const ResponseBodyCodeTool$inboundSchema: z.ZodType<
1869
+ ResponseBodyCodeTool,
1870
+ z.ZodTypeDef,
1871
+ unknown
1872
+ > = z.object({
1873
+ parameters: z.lazy(() => CreateToolResponseBodyParameters$inboundSchema)
1874
+ .optional(),
1875
+ language: ResponseBodyLanguage$inboundSchema,
1876
+ code: z.string(),
1877
+ });
1878
+
1879
+ export function responseBodyCodeToolFromJSON(
1880
+ jsonString: string,
1881
+ ): SafeParseResult<ResponseBodyCodeTool, SDKValidationError> {
1882
+ return safeParse(
1883
+ jsonString,
1884
+ (x) => ResponseBodyCodeTool$inboundSchema.parse(JSON.parse(x)),
1885
+ `Failed to parse 'ResponseBodyCodeTool' from JSON`,
1886
+ );
1887
+ }
1888
+
1889
+ /** @internal */
1890
+ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
1891
+ ResponseBodyCodeExecutionTool,
1892
+ z.ZodTypeDef,
1893
+ unknown
1894
+ > = z.object({
1895
+ _id: z.string().default("tool_01KY9CSMYZNFBW7VB6ZY51BWHW"),
1896
+ path: z.string(),
1897
+ key: z.string(),
1898
+ display_name: z.string().optional(),
1899
+ description: z.string(),
1900
+ created_by_id: z.nullable(z.string()).optional(),
1901
+ updated_by_id: z.nullable(z.string()).optional(),
1902
+ project_id: z.string(),
1903
+ workspace_id: z.string(),
1904
+ created: z.string(),
1905
+ updated: z.string(),
1906
+ status: CreateToolResponseBodyToolsResponse200Status$inboundSchema.default(
1907
+ "live",
1908
+ ),
1909
+ type: z.literal("code"),
1910
+ code_tool: z.lazy(() => ResponseBodyCodeTool$inboundSchema),
1911
+ }).transform((v) => {
1912
+ return remap$(v, {
1913
+ "_id": "id",
1914
+ "display_name": "displayName",
1915
+ "created_by_id": "createdById",
1916
+ "updated_by_id": "updatedById",
1917
+ "project_id": "projectId",
1918
+ "workspace_id": "workspaceId",
1919
+ "code_tool": "codeTool",
1920
+ });
1921
+ });
1922
+
1923
+ export function responseBodyCodeExecutionToolFromJSON(
1924
+ jsonString: string,
1925
+ ): SafeParseResult<ResponseBodyCodeExecutionTool, SDKValidationError> {
1926
+ return safeParse(
1927
+ jsonString,
1928
+ (x) => ResponseBodyCodeExecutionTool$inboundSchema.parse(JSON.parse(x)),
1929
+ `Failed to parse 'ResponseBodyCodeExecutionTool' from JSON`,
1930
+ );
1931
+ }
1932
+
1933
+ /** @internal */
1934
+ export const CreateToolResponseBodyToolsResponseStatus$inboundSchema:
1935
+ z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponseStatus> = z
1936
+ .nativeEnum(CreateToolResponseBodyToolsResponseStatus);
1937
+
1938
+ /** @internal */
1939
+ export const ResponseBodyHeaders$inboundSchema: z.ZodType<
1940
+ ResponseBodyHeaders,
1941
+ z.ZodTypeDef,
1942
+ unknown
1943
+ > = z.object({
1944
+ value: z.string(),
1945
+ encrypted: z.boolean().default(false),
1946
+ });
1947
+
1948
+ export function responseBodyHeadersFromJSON(
1949
+ jsonString: string,
1950
+ ): SafeParseResult<ResponseBodyHeaders, SDKValidationError> {
1951
+ return safeParse(
1952
+ jsonString,
1953
+ (x) => ResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)),
1954
+ `Failed to parse 'ResponseBodyHeaders' from JSON`,
1955
+ );
1956
+ }
1957
+
1958
+ /** @internal */
1959
+ export const CreateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema:
1960
+ z.ZodNativeEnum<
1961
+ typeof CreateToolResponseBodyToolsResponse200ApplicationJson4Type
1962
+ > = z.nativeEnum(CreateToolResponseBodyToolsResponse200ApplicationJson4Type);
1963
+
1964
+ /** @internal */
1965
+ export const CreateToolResponseBodySchema$inboundSchema: z.ZodType<
1966
+ CreateToolResponseBodySchema,
1967
+ z.ZodTypeDef,
1968
+ unknown
1969
+ > = z.object({
1970
+ type:
1971
+ CreateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema,
1972
+ properties: z.record(z.any()).optional(),
1973
+ required: z.array(z.string()).optional(),
1974
+ });
1975
+
1976
+ export function createToolResponseBodySchemaFromJSON(
1977
+ jsonString: string,
1978
+ ): SafeParseResult<CreateToolResponseBodySchema, SDKValidationError> {
1979
+ return safeParse(
1980
+ jsonString,
1981
+ (x) => CreateToolResponseBodySchema$inboundSchema.parse(JSON.parse(x)),
1982
+ `Failed to parse 'CreateToolResponseBodySchema' from JSON`,
1983
+ );
1984
+ }
1985
+
1986
+ /** @internal */
1987
+ export const ResponseBodyTools$inboundSchema: z.ZodType<
1988
+ ResponseBodyTools,
1989
+ z.ZodTypeDef,
1990
+ unknown
1991
+ > = z.object({
1992
+ id: z.string().default("01KY9CSMYY3BJ10TRE8D0SY7X9"),
1993
+ name: z.string(),
1994
+ description: z.string().optional(),
1995
+ schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
1996
+ });
1997
+
1998
+ export function responseBodyToolsFromJSON(
1999
+ jsonString: string,
2000
+ ): SafeParseResult<ResponseBodyTools, SDKValidationError> {
2001
+ return safeParse(
2002
+ jsonString,
2003
+ (x) => ResponseBodyTools$inboundSchema.parse(JSON.parse(x)),
2004
+ `Failed to parse 'ResponseBodyTools' from JSON`,
2005
+ );
2006
+ }
2007
+
2008
+ /** @internal */
2009
+ export const ResponseBodyConnectionType$inboundSchema: z.ZodNativeEnum<
2010
+ typeof ResponseBodyConnectionType
2011
+ > = z.nativeEnum(ResponseBodyConnectionType);
2012
+
2013
+ /** @internal */
2014
+ export const ResponseBodyMcp$inboundSchema: z.ZodType<
2015
+ ResponseBodyMcp,
2016
+ z.ZodTypeDef,
2017
+ unknown
2018
+ > = z.object({
2019
+ server_url: z.string(),
2020
+ headers: z.record(z.lazy(() => ResponseBodyHeaders$inboundSchema)).optional(),
2021
+ tools: z.array(z.lazy(() => ResponseBodyTools$inboundSchema)),
2022
+ connection_type: ResponseBodyConnectionType$inboundSchema,
2023
+ template_variables: z.nullable(z.array(z.string())).optional(),
2024
+ }).transform((v) => {
2025
+ return remap$(v, {
2026
+ "server_url": "serverUrl",
2027
+ "connection_type": "connectionType",
2028
+ "template_variables": "templateVariables",
2029
+ });
2030
+ });
2031
+
2032
+ export function responseBodyMcpFromJSON(
2033
+ jsonString: string,
2034
+ ): SafeParseResult<ResponseBodyMcp, SDKValidationError> {
2035
+ return safeParse(
2036
+ jsonString,
2037
+ (x) => ResponseBodyMcp$inboundSchema.parse(JSON.parse(x)),
2038
+ `Failed to parse 'ResponseBodyMcp' from JSON`,
2039
+ );
2040
+ }
2041
+
2042
+ /** @internal */
2043
+ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
2044
+ ResponseBodyMCPTool,
2045
+ z.ZodTypeDef,
2046
+ unknown
2047
+ > = z.object({
2048
+ _id: z.string().default("tool_01KY9CSMYWARD0GS5CFDWSEQ9T"),
2049
+ path: z.string(),
2050
+ key: z.string(),
2051
+ display_name: z.string().optional(),
2052
+ description: z.string(),
2053
+ created_by_id: z.nullable(z.string()).optional(),
2054
+ updated_by_id: z.nullable(z.string()).optional(),
2055
+ project_id: z.string(),
2056
+ workspace_id: z.string(),
2057
+ created: z.string(),
2058
+ updated: z.string(),
2059
+ status: CreateToolResponseBodyToolsResponseStatus$inboundSchema.default(
2060
+ "live",
2061
+ ),
2062
+ type: z.literal("mcp"),
2063
+ mcp: z.lazy(() => ResponseBodyMcp$inboundSchema),
2064
+ }).transform((v) => {
2065
+ return remap$(v, {
2066
+ "_id": "id",
2067
+ "display_name": "displayName",
2068
+ "created_by_id": "createdById",
2069
+ "updated_by_id": "updatedById",
2070
+ "project_id": "projectId",
2071
+ "workspace_id": "workspaceId",
2072
+ });
2073
+ });
2074
+
2075
+ export function responseBodyMCPToolFromJSON(
2076
+ jsonString: string,
2077
+ ): SafeParseResult<ResponseBodyMCPTool, SDKValidationError> {
2078
+ return safeParse(
2079
+ jsonString,
2080
+ (x) => ResponseBodyMCPTool$inboundSchema.parse(JSON.parse(x)),
2081
+ `Failed to parse 'ResponseBodyMCPTool' from JSON`,
2082
+ );
2083
+ }
2084
+
2085
+ /** @internal */
2086
+ export const CreateToolResponseBodyToolsStatus$inboundSchema: z.ZodNativeEnum<
2087
+ typeof CreateToolResponseBodyToolsStatus
2088
+ > = z.nativeEnum(CreateToolResponseBodyToolsStatus);
2089
+
2090
+ /** @internal */
2091
+ export const ResponseBodyMethod$inboundSchema: z.ZodNativeEnum<
2092
+ typeof ResponseBodyMethod
2093
+ > = z.nativeEnum(ResponseBodyMethod);
2094
+
2095
+ /** @internal */
2096
+ export const CreateToolHeadersTools2$inboundSchema: z.ZodType<
2097
+ CreateToolHeadersTools2,
2098
+ z.ZodTypeDef,
2099
+ unknown
2100
+ > = z.object({
2101
+ value: z.string(),
2102
+ encrypted: z.boolean().default(false),
2103
+ });
2104
+
2105
+ export function createToolHeadersTools2FromJSON(
2106
+ jsonString: string,
2107
+ ): SafeParseResult<CreateToolHeadersTools2, SDKValidationError> {
2108
+ return safeParse(
2109
+ jsonString,
2110
+ (x) => CreateToolHeadersTools2$inboundSchema.parse(JSON.parse(x)),
2111
+ `Failed to parse 'CreateToolHeadersTools2' from JSON`,
2112
+ );
2113
+ }
2114
+
2115
+ /** @internal */
2116
+ export const CreateToolResponseBodyHeaders$inboundSchema: z.ZodType<
2117
+ CreateToolResponseBodyHeaders,
2118
+ z.ZodTypeDef,
2119
+ unknown
2120
+ > = z.union([z.lazy(() => CreateToolHeadersTools2$inboundSchema), z.string()]);
2121
+
2122
+ export function createToolResponseBodyHeadersFromJSON(
2123
+ jsonString: string,
2124
+ ): SafeParseResult<CreateToolResponseBodyHeaders, SDKValidationError> {
2125
+ return safeParse(
2126
+ jsonString,
2127
+ (x) => CreateToolResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)),
2128
+ `Failed to parse 'CreateToolResponseBodyHeaders' from JSON`,
2129
+ );
2130
+ }
2131
+
2132
+ /** @internal */
2133
+ export const ResponseBodyBlueprint$inboundSchema: z.ZodType<
2134
+ ResponseBodyBlueprint,
2135
+ z.ZodTypeDef,
2136
+ unknown
2137
+ > = z.object({
2138
+ url: z.string(),
2139
+ method: ResponseBodyMethod$inboundSchema,
2140
+ headers: z.record(
2141
+ z.union([z.lazy(() => CreateToolHeadersTools2$inboundSchema), z.string()]),
2142
+ ).optional(),
2143
+ body: z.record(z.any()).optional(),
2144
+ timeout: z.number().optional(),
2145
+ });
2146
+
2147
+ export function responseBodyBlueprintFromJSON(
2148
+ jsonString: string,
2149
+ ): SafeParseResult<ResponseBodyBlueprint, SDKValidationError> {
2150
+ return safeParse(
2151
+ jsonString,
2152
+ (x) => ResponseBodyBlueprint$inboundSchema.parse(JSON.parse(x)),
2153
+ `Failed to parse 'ResponseBodyBlueprint' from JSON`,
2154
+ );
2155
+ }
2156
+
2157
+ /** @internal */
2158
+ export const CreateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema:
2159
+ z.ZodNativeEnum<
2160
+ typeof CreateToolResponseBodyToolsResponse200ApplicationJson3Type
2161
+ > = z.nativeEnum(CreateToolResponseBodyToolsResponse200ApplicationJson3Type);
2162
+
2163
+ /** @internal */
2164
+ export const ResponseBodyDefaultValue$inboundSchema: z.ZodType<
2165
+ ResponseBodyDefaultValue,
2166
+ z.ZodTypeDef,
2167
+ unknown
2168
+ > = z.union([z.string(), z.number(), z.boolean()]);
2169
+
2170
+ export function responseBodyDefaultValueFromJSON(
2171
+ jsonString: string,
2172
+ ): SafeParseResult<ResponseBodyDefaultValue, SDKValidationError> {
2173
+ return safeParse(
2174
+ jsonString,
2175
+ (x) => ResponseBodyDefaultValue$inboundSchema.parse(JSON.parse(x)),
2176
+ `Failed to parse 'ResponseBodyDefaultValue' from JSON`,
2177
+ );
2178
+ }
2179
+
2180
+ /** @internal */
2181
+ export const ResponseBodyArguments$inboundSchema: z.ZodType<
2182
+ ResponseBodyArguments,
2183
+ z.ZodTypeDef,
2184
+ unknown
2185
+ > = z.object({
2186
+ type:
2187
+ CreateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema,
2188
+ description: z.string(),
2189
+ send_to_model: z.boolean().default(true),
2190
+ default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
2191
+ }).transform((v) => {
2192
+ return remap$(v, {
2193
+ "send_to_model": "sendToModel",
2194
+ "default_value": "defaultValue",
2195
+ });
2196
+ });
2197
+
2198
+ export function responseBodyArgumentsFromJSON(
2199
+ jsonString: string,
2200
+ ): SafeParseResult<ResponseBodyArguments, SDKValidationError> {
2201
+ return safeParse(
2202
+ jsonString,
2203
+ (x) => ResponseBodyArguments$inboundSchema.parse(JSON.parse(x)),
2204
+ `Failed to parse 'ResponseBodyArguments' from JSON`,
2205
+ );
2206
+ }
2207
+
2208
+ /** @internal */
2209
+ export const CreateToolResponseBodyHttp$inboundSchema: z.ZodType<
2210
+ CreateToolResponseBodyHttp,
2211
+ z.ZodTypeDef,
2212
+ unknown
2213
+ > = z.object({
2214
+ blueprint: z.lazy(() => ResponseBodyBlueprint$inboundSchema),
2215
+ arguments: z.record(z.lazy(() => ResponseBodyArguments$inboundSchema))
2216
+ .optional(),
2217
+ });
2218
+
2219
+ export function createToolResponseBodyHttpFromJSON(
2220
+ jsonString: string,
2221
+ ): SafeParseResult<CreateToolResponseBodyHttp, SDKValidationError> {
2222
+ return safeParse(
2223
+ jsonString,
2224
+ (x) => CreateToolResponseBodyHttp$inboundSchema.parse(JSON.parse(x)),
2225
+ `Failed to parse 'CreateToolResponseBodyHttp' from JSON`,
2226
+ );
2227
+ }
2228
+
2229
+ /** @internal */
2230
+ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
2231
+ ResponseBodyHTTPTool,
2232
+ z.ZodTypeDef,
2233
+ unknown
2234
+ > = z.object({
2235
+ _id: z.string().default("tool_01KY9CSMYTDWB110C4VYC5FCP4"),
2236
+ path: z.string(),
2237
+ key: z.string(),
2238
+ display_name: z.string().optional(),
2239
+ description: z.string(),
2240
+ created_by_id: z.nullable(z.string()).optional(),
2241
+ updated_by_id: z.nullable(z.string()).optional(),
2242
+ project_id: z.string(),
2243
+ workspace_id: z.string(),
2244
+ created: z.string(),
2245
+ updated: z.string(),
2246
+ status: CreateToolResponseBodyToolsStatus$inboundSchema.default("live"),
2247
+ type: z.literal("http"),
2248
+ http: z.lazy(() => CreateToolResponseBodyHttp$inboundSchema),
2249
+ }).transform((v) => {
2250
+ return remap$(v, {
2251
+ "_id": "id",
2252
+ "display_name": "displayName",
2253
+ "created_by_id": "createdById",
2254
+ "updated_by_id": "updatedById",
2255
+ "project_id": "projectId",
2256
+ "workspace_id": "workspaceId",
2257
+ });
2258
+ });
2259
+
2260
+ export function responseBodyHTTPToolFromJSON(
2261
+ jsonString: string,
2262
+ ): SafeParseResult<ResponseBodyHTTPTool, SDKValidationError> {
2263
+ return safeParse(
2264
+ jsonString,
2265
+ (x) => ResponseBodyHTTPTool$inboundSchema.parse(JSON.parse(x)),
2266
+ `Failed to parse 'ResponseBodyHTTPTool' from JSON`,
2267
+ );
2268
+ }
2269
+
2270
+ /** @internal */
2271
+ export const CreateToolResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
2272
+ typeof CreateToolResponseBodyStatus
2273
+ > = z.nativeEnum(CreateToolResponseBodyStatus);
2274
+
2275
+ /** @internal */
2276
+ export const ResponseBodySchema$inboundSchema: z.ZodType<
2277
+ ResponseBodySchema,
2278
+ z.ZodTypeDef,
2279
+ unknown
2280
+ > = collectExtraKeys$(
2281
+ z.object({
2282
+ type: z.string(),
2283
+ properties: z.record(z.any()),
2284
+ required: z.array(z.string()),
2285
+ }).catchall(z.any()),
2286
+ "additionalProperties",
2287
+ true,
2288
+ );
2289
+
2290
+ export function responseBodySchemaFromJSON(
2291
+ jsonString: string,
2292
+ ): SafeParseResult<ResponseBodySchema, SDKValidationError> {
2293
+ return safeParse(
2294
+ jsonString,
2295
+ (x) => ResponseBodySchema$inboundSchema.parse(JSON.parse(x)),
2296
+ `Failed to parse 'ResponseBodySchema' from JSON`,
2297
+ );
2298
+ }
2299
+
2300
+ /** @internal */
2301
+ export const ResponseBodyJsonSchema$inboundSchema: z.ZodType<
2302
+ ResponseBodyJsonSchema,
2303
+ z.ZodTypeDef,
2304
+ unknown
2305
+ > = z.object({
2306
+ name: z.string(),
2307
+ description: z.string(),
2308
+ schema: z.lazy(() => ResponseBodySchema$inboundSchema),
2309
+ strict: z.boolean().optional(),
2310
+ });
2311
+
2312
+ export function responseBodyJsonSchemaFromJSON(
2313
+ jsonString: string,
2314
+ ): SafeParseResult<ResponseBodyJsonSchema, SDKValidationError> {
2315
+ return safeParse(
2316
+ jsonString,
2317
+ (x) => ResponseBodyJsonSchema$inboundSchema.parse(JSON.parse(x)),
2318
+ `Failed to parse 'ResponseBodyJsonSchema' from JSON`,
2319
+ );
2320
+ }
2321
+
2322
+ /** @internal */
2323
+ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
2324
+ ResponseBodyJSONSchemaTool,
2325
+ z.ZodTypeDef,
2326
+ unknown
2327
+ > = z.object({
2328
+ _id: z.string().default("tool_01KY9CSMYRA1MQ793VD3RNESNT"),
2329
+ path: z.string(),
2330
+ key: z.string(),
2331
+ display_name: z.string().optional(),
2332
+ description: z.string(),
2333
+ created_by_id: z.nullable(z.string()).optional(),
2334
+ updated_by_id: z.nullable(z.string()).optional(),
2335
+ project_id: z.string(),
2336
+ workspace_id: z.string(),
2337
+ created: z.string(),
2338
+ updated: z.string(),
2339
+ status: CreateToolResponseBodyStatus$inboundSchema.default("live"),
2340
+ type: z.literal("json_schema"),
2341
+ json_schema: z.lazy(() => ResponseBodyJsonSchema$inboundSchema),
2342
+ }).transform((v) => {
2343
+ return remap$(v, {
2344
+ "_id": "id",
2345
+ "display_name": "displayName",
2346
+ "created_by_id": "createdById",
2347
+ "updated_by_id": "updatedById",
2348
+ "project_id": "projectId",
2349
+ "workspace_id": "workspaceId",
2350
+ "json_schema": "jsonSchema",
2351
+ });
2352
+ });
2353
+
2354
+ export function responseBodyJSONSchemaToolFromJSON(
2355
+ jsonString: string,
2356
+ ): SafeParseResult<ResponseBodyJSONSchemaTool, SDKValidationError> {
2357
+ return safeParse(
2358
+ jsonString,
2359
+ (x) => ResponseBodyJSONSchemaTool$inboundSchema.parse(JSON.parse(x)),
2360
+ `Failed to parse 'ResponseBodyJSONSchemaTool' from JSON`,
2361
+ );
2362
+ }
2363
+
2364
+ /** @internal */
2365
+ export const ResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
2366
+ typeof ResponseBodyStatus
2367
+ > = z.nativeEnum(ResponseBodyStatus);
2368
+
2369
+ /** @internal */
2370
+ export const CreateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema:
2371
+ z.ZodNativeEnum<
2372
+ typeof CreateToolResponseBodyToolsResponse200ApplicationJson1Type
2373
+ > = z.nativeEnum(CreateToolResponseBodyToolsResponse200ApplicationJson1Type);
2374
+
2375
+ /** @internal */
2376
+ export const ResponseBodyParameters$inboundSchema: z.ZodType<
2377
+ ResponseBodyParameters,
2378
+ z.ZodTypeDef,
2379
+ unknown
2380
+ > = collectExtraKeys$(
2381
+ z.object({
2382
+ type:
2383
+ CreateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema,
2384
+ properties: z.record(z.any()),
2385
+ required: z.array(z.string()),
2386
+ }).catchall(z.any()),
2387
+ "additionalProperties",
2388
+ true,
2389
+ );
2390
+
2391
+ export function responseBodyParametersFromJSON(
2392
+ jsonString: string,
2393
+ ): SafeParseResult<ResponseBodyParameters, SDKValidationError> {
2394
+ return safeParse(
2395
+ jsonString,
2396
+ (x) => ResponseBodyParameters$inboundSchema.parse(JSON.parse(x)),
2397
+ `Failed to parse 'ResponseBodyParameters' from JSON`,
2398
+ );
2399
+ }
2400
+
2401
+ /** @internal */
2402
+ export const ResponseBodyFunction$inboundSchema: z.ZodType<
2403
+ ResponseBodyFunction,
2404
+ z.ZodTypeDef,
2405
+ unknown
2406
+ > = z.object({
2407
+ name: z.string(),
2408
+ description: z.string().optional(),
2409
+ strict: z.boolean().optional(),
2410
+ parameters: z.lazy(() => ResponseBodyParameters$inboundSchema).optional(),
2411
+ });
2412
+
2413
+ export function responseBodyFunctionFromJSON(
2414
+ jsonString: string,
2415
+ ): SafeParseResult<ResponseBodyFunction, SDKValidationError> {
2416
+ return safeParse(
2417
+ jsonString,
2418
+ (x) => ResponseBodyFunction$inboundSchema.parse(JSON.parse(x)),
2419
+ `Failed to parse 'ResponseBodyFunction' from JSON`,
2420
+ );
2421
+ }
2422
+
2423
+ /** @internal */
2424
+ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
2425
+ ResponseBodyFunctionTool,
2426
+ z.ZodTypeDef,
2427
+ unknown
2428
+ > = z.object({
2429
+ _id: z.string().default("tool_01KY9CSMYNEY3VRQ7E7VM43Y5M"),
2430
+ path: z.string(),
2431
+ key: z.string(),
2432
+ display_name: z.string().optional(),
2433
+ description: z.string(),
2434
+ created_by_id: z.nullable(z.string()).optional(),
2435
+ updated_by_id: z.nullable(z.string()).optional(),
2436
+ project_id: z.string(),
2437
+ workspace_id: z.string(),
2438
+ created: z.string(),
2439
+ updated: z.string(),
2440
+ status: ResponseBodyStatus$inboundSchema.default("live"),
2441
+ type: z.literal("function"),
2442
+ function: z.lazy(() => ResponseBodyFunction$inboundSchema),
2443
+ }).transform((v) => {
2444
+ return remap$(v, {
2445
+ "_id": "id",
2446
+ "display_name": "displayName",
2447
+ "created_by_id": "createdById",
2448
+ "updated_by_id": "updatedById",
2449
+ "project_id": "projectId",
2450
+ "workspace_id": "workspaceId",
2451
+ });
2452
+ });
2453
+
2454
+ export function responseBodyFunctionToolFromJSON(
2455
+ jsonString: string,
2456
+ ): SafeParseResult<ResponseBodyFunctionTool, SDKValidationError> {
2457
+ return safeParse(
2458
+ jsonString,
2459
+ (x) => ResponseBodyFunctionTool$inboundSchema.parse(JSON.parse(x)),
2460
+ `Failed to parse 'ResponseBodyFunctionTool' from JSON`,
2461
+ );
2462
+ }
2463
+
2464
+ /** @internal */
2465
+ export const CreateToolResponseBody$inboundSchema: z.ZodType<
2466
+ CreateToolResponseBody,
2467
+ z.ZodTypeDef,
2468
+ unknown
2469
+ > = z.union([
2470
+ z.lazy(() => ResponseBodyFunctionTool$inboundSchema),
2471
+ z.lazy(() => ResponseBodyJSONSchemaTool$inboundSchema),
2472
+ z.lazy(() => ResponseBodyHTTPTool$inboundSchema),
2473
+ z.lazy(() => ResponseBodyMCPTool$inboundSchema),
2474
+ z.lazy(() => ResponseBodyCodeExecutionTool$inboundSchema),
2475
+ ]);
2476
+
2477
+ export function createToolResponseBodyFromJSON(
2478
+ jsonString: string,
2479
+ ): SafeParseResult<CreateToolResponseBody, SDKValidationError> {
2480
+ return safeParse(
2481
+ jsonString,
2482
+ (x) => CreateToolResponseBody$inboundSchema.parse(JSON.parse(x)),
2483
+ `Failed to parse 'CreateToolResponseBody' from JSON`,
2484
+ );
2485
+ }