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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +8 -9
  457. package/packages/orq-rc/examples/evalsAll.example.ts +26 -0
  458. package/packages/orq-rc/src/core.ts +13 -0
  459. package/packages/orq-rc/src/funcs/agentsCreate.ts +163 -0
  460. package/packages/orq-rc/src/funcs/agentsDelete.ts +181 -0
  461. package/packages/orq-rc/src/funcs/agentsInvoke.ts +178 -0
  462. package/packages/orq-rc/src/funcs/agentsList.ts +186 -0
  463. package/packages/orq-rc/src/funcs/agentsRefreshKeyCard.ts +188 -0
  464. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +189 -0
  465. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +185 -0
  466. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +181 -0
  467. package/packages/orq-rc/src/funcs/agentsRun.ts +164 -0
  468. package/packages/orq-rc/src/funcs/agentsStream.ts +205 -0
  469. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +191 -0
  470. package/packages/orq-rc/src/funcs/agentsUpdate.ts +185 -0
  471. package/packages/orq-rc/src/funcs/annotationsCreate.ts +175 -0
  472. package/packages/orq-rc/src/funcs/annotationsDelete.ts +175 -0
  473. package/packages/orq-rc/src/funcs/apiKeysCreate.ts +162 -0
  474. package/packages/orq-rc/src/funcs/apiKeysDelete.ts +168 -0
  475. package/packages/orq-rc/src/funcs/apiKeysGet.ts +173 -0
  476. package/packages/orq-rc/src/funcs/apiKeysList.ts +176 -0
  477. package/packages/orq-rc/src/funcs/apiKeysListCapabilities.ts +144 -0
  478. package/packages/orq-rc/src/funcs/apiKeysUpdate.ts +171 -0
  479. package/packages/orq-rc/src/funcs/budgetsCreate.ts +162 -0
  480. package/packages/orq-rc/src/funcs/budgetsDelete.ts +168 -0
  481. package/packages/orq-rc/src/funcs/budgetsGet.ts +168 -0
  482. package/packages/orq-rc/src/funcs/budgetsGetConsumption.ts +169 -0
  483. package/packages/orq-rc/src/funcs/budgetsList.ts +176 -0
  484. package/packages/orq-rc/src/funcs/budgetsResetConsumption.ts +174 -0
  485. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +171 -0
  486. package/packages/orq-rc/src/funcs/chunkingParse.ts +162 -0
  487. package/packages/orq-rc/src/funcs/datasetsClear.ts +177 -0
  488. package/packages/orq-rc/src/funcs/datasetsCreate.ts +167 -0
  489. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +172 -0
  490. package/packages/orq-rc/src/funcs/datasetsDelete.ts +168 -0
  491. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +183 -0
  492. package/packages/orq-rc/src/funcs/datasetsList.ts +171 -0
  493. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +184 -0
  494. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +176 -0
  495. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +182 -0
  496. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +177 -0
  497. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +180 -0
  498. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +170 -0
  499. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +170 -0
  500. package/packages/orq-rc/src/funcs/deploymentsList.ts +178 -0
  501. package/packages/orq-rc/src/funcs/deploymentsStream.ts +180 -0
  502. package/packages/orq-rc/src/funcs/evalsAll.ts +178 -0
  503. package/packages/orq-rc/src/funcs/evalsCreate.ts +171 -0
  504. package/packages/orq-rc/src/funcs/evalsDelete.ts +174 -0
  505. package/packages/orq-rc/src/funcs/evalsInvoke.ts +182 -0
  506. package/packages/orq-rc/src/funcs/evalsListVersions.ts +184 -0
  507. package/packages/orq-rc/src/funcs/evalsUpdate.ts +174 -0
  508. package/packages/orq-rc/src/funcs/feedbackCreate.ts +174 -0
  509. package/packages/orq-rc/src/funcs/feedbackCreateEvaluation.ts +161 -0
  510. package/packages/orq-rc/src/funcs/feedbackRemove.ts +169 -0
  511. package/packages/orq-rc/src/funcs/feedbackRemoveEvaluation.ts +161 -0
  512. package/packages/orq-rc/src/funcs/filesCreate.ts +162 -0
  513. package/packages/orq-rc/src/funcs/filesDelete.ts +168 -0
  514. package/packages/orq-rc/src/funcs/filesGet.ts +168 -0
  515. package/packages/orq-rc/src/funcs/filesGetContent.ts +168 -0
  516. package/packages/orq-rc/src/funcs/filesList.ts +172 -0
  517. package/packages/orq-rc/src/funcs/filesUpdate.ts +169 -0
  518. package/packages/orq-rc/src/funcs/guardrailRulesCreate.ts +163 -0
  519. package/packages/orq-rc/src/funcs/guardrailRulesDelete.ts +172 -0
  520. package/packages/orq-rc/src/funcs/guardrailRulesList.ts +176 -0
  521. package/packages/orq-rc/src/funcs/guardrailRulesListUsedGuardrails.ts +147 -0
  522. package/packages/orq-rc/src/funcs/guardrailRulesRetrieve.ts +170 -0
  523. package/packages/orq-rc/src/funcs/guardrailRulesUpdate.ts +172 -0
  524. package/packages/orq-rc/src/funcs/humanReviewSetsCreate.ts +164 -0
  525. package/packages/orq-rc/src/funcs/humanReviewSetsDelete.ts +166 -0
  526. package/packages/orq-rc/src/funcs/humanReviewSetsGet.ts +165 -0
  527. package/packages/orq-rc/src/funcs/humanReviewSetsList.ts +170 -0
  528. package/packages/orq-rc/src/funcs/humanReviewSetsUpdate.ts +166 -0
  529. package/packages/orq-rc/src/funcs/identitiesCreate.ts +162 -0
  530. package/packages/orq-rc/src/funcs/identitiesDelete.ts +168 -0
  531. package/packages/orq-rc/src/funcs/identitiesList.ts +175 -0
  532. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +174 -0
  533. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +171 -0
  534. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +160 -0
  535. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +172 -0
  536. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +167 -0
  537. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +168 -0
  538. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +175 -0
  539. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +171 -0
  540. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +174 -0
  541. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +174 -0
  542. package/packages/orq-rc/src/funcs/knowledgeList.ts +175 -0
  543. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +179 -0
  544. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +172 -0
  545. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +176 -0
  546. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +167 -0
  547. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +174 -0
  548. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +170 -0
  549. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +168 -0
  550. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +165 -0
  551. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +175 -0
  552. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +171 -0
  553. package/packages/orq-rc/src/funcs/managementKeysCreate.ts +163 -0
  554. package/packages/orq-rc/src/funcs/managementKeysDelete.ts +172 -0
  555. package/packages/orq-rc/src/funcs/managementKeysGet.ts +171 -0
  556. package/packages/orq-rc/src/funcs/managementKeysList.ts +175 -0
  557. package/packages/orq-rc/src/funcs/managementKeysListCapabilities.ts +144 -0
  558. package/packages/orq-rc/src/funcs/managementKeysUpdate.ts +175 -0
  559. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +164 -0
  560. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +177 -0
  561. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +171 -0
  562. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +169 -0
  563. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +186 -0
  564. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +181 -0
  565. package/packages/orq-rc/src/funcs/memoryStoresList.ts +183 -0
  566. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +185 -0
  567. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +178 -0
  568. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +178 -0
  569. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +180 -0
  570. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +175 -0
  571. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +169 -0
  572. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +181 -0
  573. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +176 -0
  574. package/packages/orq-rc/src/funcs/modelsAzureFoundryDeployments.ts +168 -0
  575. package/packages/orq-rc/src/funcs/modelsCreate.ts +162 -0
  576. package/packages/orq-rc/src/funcs/modelsCreateAwsBedrock.ts +163 -0
  577. package/packages/orq-rc/src/funcs/modelsCreateOpenaiLike.ts +163 -0
  578. package/packages/orq-rc/src/funcs/modelsCreateVertex.ts +163 -0
  579. package/packages/orq-rc/src/funcs/modelsDelete.ts +168 -0
  580. package/packages/orq-rc/src/funcs/modelsDisable.ts +168 -0
  581. package/packages/orq-rc/src/funcs/modelsEnable.ts +163 -0
  582. package/packages/orq-rc/src/funcs/modelsImportLitellm.ts +166 -0
  583. package/packages/orq-rc/src/funcs/modelsList.ts +144 -0
  584. package/packages/orq-rc/src/funcs/modelsListLitellm.ts +144 -0
  585. package/packages/orq-rc/src/funcs/modelsUpdate.ts +168 -0
  586. package/packages/orq-rc/src/funcs/modelsUpdateAwsBedrock.ts +169 -0
  587. package/packages/orq-rc/src/funcs/modelsUpdateOpenaiLike.ts +169 -0
  588. package/packages/orq-rc/src/funcs/modelsValidate.ts +163 -0
  589. package/packages/orq-rc/src/funcs/modelsValidateAwsBedrock.ts +164 -0
  590. package/packages/orq-rc/src/funcs/notifiersCreate.ts +162 -0
  591. package/packages/orq-rc/src/funcs/notifiersDelete.ts +168 -0
  592. package/packages/orq-rc/src/funcs/notifiersGet.ts +168 -0
  593. package/packages/orq-rc/src/funcs/notifiersList.ts +173 -0
  594. package/packages/orq-rc/src/funcs/notifiersUpdate.ts +171 -0
  595. package/packages/orq-rc/src/funcs/piiDetect.ts +162 -0
  596. package/packages/orq-rc/src/funcs/piiRedact.ts +162 -0
  597. package/packages/orq-rc/src/funcs/piiRestore.ts +162 -0
  598. package/packages/orq-rc/src/funcs/policiesCreate.ts +162 -0
  599. package/packages/orq-rc/src/funcs/policiesDelete.ts +168 -0
  600. package/packages/orq-rc/src/funcs/policiesList.ts +170 -0
  601. package/packages/orq-rc/src/funcs/policiesRetrieve.ts +167 -0
  602. package/packages/orq-rc/src/funcs/policiesUpdate.ts +168 -0
  603. package/packages/orq-rc/src/funcs/projectsCreate.ts +162 -0
  604. package/packages/orq-rc/src/funcs/projectsDelete.ts +168 -0
  605. package/packages/orq-rc/src/funcs/projectsGet.ts +168 -0
  606. package/packages/orq-rc/src/funcs/projectsList.ts +170 -0
  607. package/packages/orq-rc/src/funcs/projectsUpdate.ts +171 -0
  608. package/packages/orq-rc/src/funcs/promptsCreate.ts +163 -0
  609. package/packages/orq-rc/src/funcs/promptsDelete.ts +174 -0
  610. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +182 -0
  611. package/packages/orq-rc/src/funcs/promptsList.ts +169 -0
  612. package/packages/orq-rc/src/funcs/promptsListVersions.ts +174 -0
  613. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +167 -0
  614. package/packages/orq-rc/src/funcs/promptsUpdate.ts +174 -0
  615. package/packages/orq-rc/src/funcs/reportingQuery.ts +164 -0
  616. package/packages/orq-rc/src/funcs/responsesCreate.ts +170 -0
  617. package/packages/orq-rc/src/funcs/responsesGet.ts +167 -0
  618. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +163 -0
  619. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +272 -0
  620. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +262 -0
  621. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +170 -0
  622. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +170 -0
  623. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +163 -0
  624. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +224 -0
  625. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +162 -0
  626. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +220 -0
  627. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +169 -0
  628. package/packages/orq-rc/src/funcs/routerOcr.ts +160 -0
  629. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +162 -0
  630. package/packages/orq-rc/src/funcs/routingRulesCreate.ts +163 -0
  631. package/packages/orq-rc/src/funcs/routingRulesDelete.ts +168 -0
  632. package/packages/orq-rc/src/funcs/routingRulesList.ts +173 -0
  633. package/packages/orq-rc/src/funcs/routingRulesListUsedModels.ts +144 -0
  634. package/packages/orq-rc/src/funcs/routingRulesRetrieve.ts +167 -0
  635. package/packages/orq-rc/src/funcs/routingRulesUpdate.ts +168 -0
  636. package/packages/orq-rc/src/funcs/schedulesCreate.ts +185 -0
  637. package/packages/orq-rc/src/funcs/schedulesDelete.ts +184 -0
  638. package/packages/orq-rc/src/funcs/schedulesList.ts +167 -0
  639. package/packages/orq-rc/src/funcs/schedulesRetrieve.ts +183 -0
  640. package/packages/orq-rc/src/funcs/schedulesTrigger.ts +190 -0
  641. package/packages/orq-rc/src/funcs/schedulesUpdate.ts +191 -0
  642. package/packages/orq-rc/src/funcs/skillsCreate.ts +162 -0
  643. package/packages/orq-rc/src/funcs/skillsDelete.ts +168 -0
  644. package/packages/orq-rc/src/funcs/skillsGet.ts +168 -0
  645. package/packages/orq-rc/src/funcs/skillsList.ts +170 -0
  646. package/packages/orq-rc/src/funcs/skillsUpdate.ts +171 -0
  647. package/packages/orq-rc/src/funcs/smartRoutersCreate.ts +162 -0
  648. package/packages/orq-rc/src/funcs/smartRoutersDelete.ts +168 -0
  649. package/packages/orq-rc/src/funcs/smartRoutersGet.ts +168 -0
  650. package/packages/orq-rc/src/funcs/smartRoutersList.ts +173 -0
  651. package/packages/orq-rc/src/funcs/smartRoutersSetEnabled.ts +174 -0
  652. package/packages/orq-rc/src/funcs/smartRoutersUpdate.ts +171 -0
  653. package/packages/orq-rc/src/funcs/telemetryQuery.ts +162 -0
  654. package/packages/orq-rc/src/funcs/toolsCreate.ts +165 -0
  655. package/packages/orq-rc/src/funcs/toolsDelete.ts +168 -0
  656. package/packages/orq-rc/src/funcs/toolsGetVersion.ts +191 -0
  657. package/packages/orq-rc/src/funcs/toolsList.ts +178 -0
  658. package/packages/orq-rc/src/funcs/toolsListVersions.ts +184 -0
  659. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +167 -0
  660. package/packages/orq-rc/src/funcs/toolsUpdate.ts +177 -0
  661. package/packages/orq-rc/src/funcs/tracesAggregate.ts +164 -0
  662. package/packages/orq-rc/src/funcs/tracesGet.ts +168 -0
  663. package/packages/orq-rc/src/funcs/tracesGetSpan.ts +172 -0
  664. package/packages/orq-rc/src/funcs/tracesListFacetValues.ts +177 -0
  665. package/packages/orq-rc/src/funcs/tracesListFacets.ts +144 -0
  666. package/packages/orq-rc/src/funcs/tracesListFields.ts +144 -0
  667. package/packages/orq-rc/src/funcs/tracesListSpans.ts +174 -0
  668. package/packages/orq-rc/src/funcs/tracesQuery.ts +162 -0
  669. package/{src/funcs/budgetsCheck.ts → packages/orq-rc/src/funcs/tracesSearch.ts} +12 -12
  670. package/packages/orq-rc/src/funcs/webhooksCount.ts +144 -0
  671. package/packages/orq-rc/src/funcs/webhooksCreate.ts +162 -0
  672. package/packages/orq-rc/src/funcs/webhooksDelete.ts +168 -0
  673. package/packages/orq-rc/src/funcs/webhooksGenerateSecret.ts +144 -0
  674. package/packages/orq-rc/src/funcs/webhooksGet.ts +168 -0
  675. package/packages/orq-rc/src/funcs/webhooksList.ts +175 -0
  676. package/packages/orq-rc/src/funcs/webhooksQuery.ts +164 -0
  677. package/packages/orq-rc/src/funcs/webhooksUpdate.ts +168 -0
  678. package/packages/orq-rc/src/hooks/global.ts +44 -0
  679. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  680. package/packages/orq-rc/src/hooks/index.ts +6 -0
  681. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  682. package/packages/orq-rc/src/hooks/types.ts +113 -0
  683. package/packages/orq-rc/src/index.ts +9 -0
  684. package/packages/orq-rc/src/lib/base64.ts +37 -0
  685. package/packages/orq-rc/src/lib/config.ts +64 -0
  686. package/packages/orq-rc/src/lib/encodings.ts +525 -0
  687. package/packages/orq-rc/src/lib/env.ts +61 -0
  688. package/packages/orq-rc/src/lib/event-streams.ts +191 -0
  689. package/packages/orq-rc/src/lib/files.ts +104 -0
  690. package/packages/orq-rc/src/lib/http.ts +325 -0
  691. package/packages/orq-rc/src/lib/logger.ts +9 -0
  692. package/packages/orq-rc/src/lib/matchers.ts +346 -0
  693. package/packages/orq-rc/src/lib/primitives.ts +166 -0
  694. package/packages/orq-rc/src/lib/retries.ts +226 -0
  695. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  696. package/packages/orq-rc/src/lib/sdks.ts +443 -0
  697. package/packages/orq-rc/src/lib/security.ts +280 -0
  698. package/packages/orq-rc/src/lib/url.ts +35 -0
  699. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +99 -0
  700. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +190 -0
  701. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +73 -0
  702. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +91 -0
  703. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +71 -0
  704. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +507 -0
  705. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +165 -0
  706. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +103 -0
  707. package/packages/orq-rc/src/models/components/agentresponserequest.ts +565 -0
  708. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +531 -0
  709. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +807 -0
  710. package/packages/orq-rc/src/models/components/agenttoolinputcrud.ts +747 -0
  711. package/packages/orq-rc/src/models/components/aggregatetracesrequest.ts +65 -0
  712. package/packages/orq-rc/src/models/components/aggregatetracesresponse.ts +37 -0
  713. package/packages/orq-rc/src/models/components/allprojects.ts +39 -0
  714. package/packages/orq-rc/src/models/components/apikey.ts +293 -0
  715. package/packages/orq-rc/src/models/components/apikeybudgetscope.ts +66 -0
  716. package/packages/orq-rc/src/models/components/apikeyowner.ts +82 -0
  717. package/packages/orq-rc/src/models/components/apikeystatus.ts +21 -0
  718. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +136 -0
  719. package/packages/orq-rc/src/models/components/autorouterconfig.ts +92 -0
  720. package/packages/orq-rc/src/models/components/autorouterv2config.ts +152 -0
  721. package/packages/orq-rc/src/models/components/autorouterv2creatorconfig.ts +59 -0
  722. package/packages/orq-rc/src/models/components/autorouterv2effortconfig.ts +66 -0
  723. package/packages/orq-rc/src/models/components/azurefoundrydeployment.ts +51 -0
  724. package/packages/orq-rc/src/models/components/azurefoundrydeploymentmasterdata.ts +60 -0
  725. package/packages/orq-rc/src/models/components/budget.ts +120 -0
  726. package/packages/orq-rc/src/models/components/budgetalert.ts +92 -0
  727. package/packages/orq-rc/src/models/components/budgetalertdimension.ts +22 -0
  728. package/packages/orq-rc/src/models/components/budgetlimit.ts +83 -0
  729. package/packages/orq-rc/src/models/components/budgetlimits.ts +84 -0
  730. package/packages/orq-rc/src/models/components/budgetmatch.ts +56 -0
  731. package/packages/orq-rc/src/models/components/budgetperiod.ts +23 -0
  732. package/packages/orq-rc/src/models/components/budgetscope.ts +150 -0
  733. package/packages/orq-rc/src/models/components/budgetscopekind.ts +22 -0
  734. package/packages/orq-rc/src/models/components/budgetsortfield.ts +19 -0
  735. package/packages/orq-rc/src/models/components/budgetusage.ts +54 -0
  736. package/packages/orq-rc/src/models/components/codetoolinput.ts +62 -0
  737. package/packages/orq-rc/src/models/components/config.ts +44 -0
  738. package/packages/orq-rc/src/models/components/conversationparam.ts +51 -0
  739. package/packages/orq-rc/src/models/components/countwebhooksresponse.ts +37 -0
  740. package/packages/orq-rc/src/models/components/createagentresponse.ts +305 -0
  741. package/packages/orq-rc/src/models/components/createapikeyrequest.ts +91 -0
  742. package/packages/orq-rc/src/models/components/createapikeyresponse.ts +49 -0
  743. package/packages/orq-rc/src/models/components/createbudgetrequest.ts +123 -0
  744. package/packages/orq-rc/src/models/components/createbudgetresponse.ts +35 -0
  745. package/packages/orq-rc/src/models/components/createfilerequest.ts +62 -0
  746. package/packages/orq-rc/src/models/components/createfileresponse.ts +35 -0
  747. package/packages/orq-rc/src/models/components/createidentityrequest.ts +100 -0
  748. package/packages/orq-rc/src/models/components/createidentityresponse.ts +35 -0
  749. package/packages/orq-rc/src/models/components/createmanagementkeyrequest.ts +69 -0
  750. package/packages/orq-rc/src/models/components/createmanagementkeyresponse.ts +48 -0
  751. package/packages/orq-rc/src/models/components/createmodelparameter.ts +54 -0
  752. package/packages/orq-rc/src/models/components/createnotifierrequest.ts +433 -0
  753. package/packages/orq-rc/src/models/components/createnotifierresponse.ts +35 -0
  754. package/packages/orq-rc/src/models/components/createprojectrequest.ts +46 -0
  755. package/packages/orq-rc/src/models/components/createprojectresponse.ts +35 -0
  756. package/packages/orq-rc/src/models/components/createskillrequest.ts +159 -0
  757. package/packages/orq-rc/src/models/components/createskillresponse.ts +35 -0
  758. package/packages/orq-rc/src/models/components/createsmartrouterrequest.ts +47 -0
  759. package/packages/orq-rc/src/models/components/createsmartrouterresponse.ts +37 -0
  760. package/packages/orq-rc/src/models/components/createwebhookrequest.ts +100 -0
  761. package/packages/orq-rc/src/models/components/datapart.ts +38 -0
  762. package/packages/orq-rc/src/models/components/datapoint.ts +60 -0
  763. package/packages/orq-rc/src/models/components/deleteapikeyresponse.ts +27 -0
  764. package/packages/orq-rc/src/models/components/deletebudgetresponse.ts +27 -0
  765. package/packages/orq-rc/src/models/components/deletefileresponse.ts +27 -0
  766. package/packages/orq-rc/src/models/components/deleteidentityresponse.ts +27 -0
  767. package/packages/orq-rc/src/models/components/deletemanagementkeyresponse.ts +27 -0
  768. package/packages/orq-rc/src/models/components/deletenotifierresponse.ts +27 -0
  769. package/packages/orq-rc/src/models/components/deleteprojectresponse.ts +27 -0
  770. package/packages/orq-rc/src/models/components/deleteskillresponse.ts +27 -0
  771. package/packages/orq-rc/src/models/components/deletesmartrouterresponse.ts +27 -0
  772. package/packages/orq-rc/src/models/components/deletewebhookresponse.ts +34 -0
  773. package/packages/orq-rc/src/models/components/detectrequest.ts +56 -0
  774. package/packages/orq-rc/src/models/components/detectresponse.ts +41 -0
  775. package/packages/orq-rc/src/models/components/domain.ts +66 -0
  776. package/packages/orq-rc/src/models/components/embeddingcacheconfig.ts +59 -0
  777. package/packages/orq-rc/src/models/components/embeddingcontactparams.ts +48 -0
  778. package/packages/orq-rc/src/models/components/embeddingloadbalancerconfig.ts +66 -0
  779. package/packages/orq-rc/src/models/components/embeddingloadbalancermodelconfig.ts +42 -0
  780. package/packages/orq-rc/src/models/components/embeddingorqparams.ts +101 -0
  781. package/packages/orq-rc/src/models/components/embeddingretryconfig.ts +45 -0
  782. package/packages/orq-rc/src/models/components/embeddingtimeoutconfig.ts +39 -0
  783. package/packages/orq-rc/src/models/components/errorpart.ts +58 -0
  784. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +66 -0
  785. package/packages/orq-rc/src/models/components/evaluatorref.ts +93 -0
  786. package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +916 -0
  787. package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +71 -0
  788. package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +54 -0
  789. package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +304 -0
  790. package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +54 -0
  791. package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +78 -0
  792. package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +54 -0
  793. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +71 -0
  794. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +61 -0
  795. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +67 -0
  796. package/packages/orq-rc/src/models/components/expression.ts +33 -0
  797. package/packages/orq-rc/src/models/components/expressioninput.ts +29 -0
  798. package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
  799. package/packages/orq-rc/src/models/components/fallbackconfig.ts +27 -0
  800. package/packages/orq-rc/src/models/components/file.ts +64 -0
  801. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +87 -0
  802. package/packages/orq-rc/src/models/components/filepart.ts +223 -0
  803. package/packages/orq-rc/src/models/components/filepurpose.ts +22 -0
  804. package/packages/orq-rc/src/models/components/filter.ts +137 -0
  805. package/packages/orq-rc/src/models/components/functiontoolinput.ts +60 -0
  806. package/packages/orq-rc/src/models/components/generatewebhooksecretresponse.ts +37 -0
  807. package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
  808. package/packages/orq-rc/src/models/components/getapikeyresponse.ts +40 -0
  809. package/packages/orq-rc/src/models/components/getbudgetconsumptionresponse.ts +71 -0
  810. package/packages/orq-rc/src/models/components/getbudgetresponse.ts +35 -0
  811. package/packages/orq-rc/src/models/components/getfilecontentresponse.ts +39 -0
  812. package/packages/orq-rc/src/models/components/getfileresponse.ts +35 -0
  813. package/packages/orq-rc/src/models/components/getmanagementkeyresponse.ts +40 -0
  814. package/packages/orq-rc/src/models/components/getnotifierresponse.ts +35 -0
  815. package/packages/orq-rc/src/models/components/getprojectresponse.ts +35 -0
  816. package/packages/orq-rc/src/models/components/getskillresponse.ts +35 -0
  817. package/packages/orq-rc/src/models/components/getsmartrouterresponse.ts +37 -0
  818. package/packages/orq-rc/src/models/components/gettraceresponse.ts +32 -0
  819. package/packages/orq-rc/src/models/components/gettracespanresponse.ts +32 -0
  820. package/packages/orq-rc/src/models/components/guardrailref.ts +91 -0
  821. package/packages/orq-rc/src/models/components/guardrailrule.ts +69 -0
  822. package/packages/orq-rc/src/models/components/httptoolinput.ts +62 -0
  823. package/packages/orq-rc/src/models/components/identity.ts +252 -0
  824. package/packages/orq-rc/src/models/components/identitybudgetscope.ts +66 -0
  825. package/packages/orq-rc/src/models/components/identitymetrics.ts +57 -0
  826. package/packages/orq-rc/src/models/components/identitysortfield.ts +18 -0
  827. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +268 -0
  828. package/packages/orq-rc/src/models/components/incompletedetails.ts +31 -0
  829. package/packages/orq-rc/src/models/components/index.ts +368 -0
  830. package/packages/orq-rc/src/models/components/inputtokensdetails.ts +45 -0
  831. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +3492 -0
  832. package/packages/orq-rc/src/models/components/jsonschematoolinput.ts +60 -0
  833. package/packages/orq-rc/src/models/components/legacytokenfamily.ts +19 -0
  834. package/packages/orq-rc/src/models/components/limits.ts +70 -0
  835. package/packages/orq-rc/src/models/components/listapikeysresponse.ts +56 -0
  836. package/packages/orq-rc/src/models/components/listbudgetsresponse.ts +53 -0
  837. package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +38 -0
  838. package/packages/orq-rc/src/models/components/listfilesresponse.ts +50 -0
  839. package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +53 -0
  840. package/packages/orq-rc/src/models/components/listmanagementcapabilitiesresponse.ts +36 -0
  841. package/packages/orq-rc/src/models/components/listmanagementkeysresponse.ts +56 -0
  842. package/packages/orq-rc/src/models/components/listnotifiersresponse.ts +50 -0
  843. package/packages/orq-rc/src/models/components/listprojectsresponse.ts +53 -0
  844. package/packages/orq-rc/src/models/components/listskillsresponse.ts +53 -0
  845. package/packages/orq-rc/src/models/components/listsmartroutersresponse.ts +41 -0
  846. package/packages/orq-rc/src/models/components/listtracefacetsresponse.ts +32 -0
  847. package/packages/orq-rc/src/models/components/listtracefacetvaluesresponse.ts +44 -0
  848. package/packages/orq-rc/src/models/components/listtracefieldsresponse.ts +32 -0
  849. package/packages/orq-rc/src/models/components/listtracespansresponse.ts +44 -0
  850. package/packages/orq-rc/src/models/components/listwebhooksresponse.ts +53 -0
  851. package/packages/orq-rc/src/models/components/litellmmodel.ts +50 -0
  852. package/packages/orq-rc/src/models/components/litellmmodelinfo.ts +97 -0
  853. package/packages/orq-rc/src/models/components/litellmparams.ts +43 -0
  854. package/packages/orq-rc/src/models/components/managementkey.ts +132 -0
  855. package/packages/orq-rc/src/models/components/managementkeystatus.ts +23 -0
  856. package/packages/orq-rc/src/models/components/managementpermissionmode.ts +25 -0
  857. package/packages/orq-rc/src/models/components/mcptoolinput.ts +63 -0
  858. package/packages/orq-rc/src/models/components/memoryparam.ts +56 -0
  859. package/packages/orq-rc/src/models/components/modelbudgetscope.ts +67 -0
  860. package/packages/orq-rc/src/models/components/modelconfigurationresponse.ts +82 -0
  861. package/packages/orq-rc/src/models/components/modeldocument.ts +115 -0
  862. package/packages/orq-rc/src/models/components/modelmetadata.ts +738 -0
  863. package/packages/orq-rc/src/models/components/modelparameterdocument.ts +53 -0
  864. package/packages/orq-rc/src/models/components/modelref.ts +70 -0
  865. package/packages/orq-rc/src/models/components/modelsconfig.ts +75 -0
  866. package/packages/orq-rc/src/models/components/notifier.ts +465 -0
  867. package/packages/orq-rc/src/models/components/notifiertype.ts +21 -0
  868. package/packages/orq-rc/src/models/components/outputtokensdetails.ts +36 -0
  869. package/packages/orq-rc/src/models/components/ownertype.ts +17 -0
  870. package/packages/orq-rc/src/models/components/partdelta.ts +39 -0
  871. package/packages/orq-rc/src/models/components/partdeltaevent.ts +73 -0
  872. package/packages/orq-rc/src/models/components/partdoneevent.ts +70 -0
  873. package/packages/orq-rc/src/models/components/permissionmode.ts +23 -0
  874. package/packages/orq-rc/src/models/components/piiredactionplugin.ts +44 -0
  875. package/packages/orq-rc/src/models/components/piiredactionpluginauto.ts +185 -0
  876. package/packages/orq-rc/src/models/components/piiredactionpluginen.ts +222 -0
  877. package/packages/orq-rc/src/models/components/piiredactionpluginnl.ts +218 -0
  878. package/packages/orq-rc/src/models/components/plugin.ts +37 -0
  879. package/packages/orq-rc/src/models/components/policy.ts +80 -0
  880. package/packages/orq-rc/src/models/components/policyretryconfig.ts +64 -0
  881. package/packages/orq-rc/src/models/components/price.ts +56 -0
  882. package/packages/orq-rc/src/models/components/pricing.ts +93 -0
  883. package/packages/orq-rc/src/models/components/pricingvariant.ts +90 -0
  884. package/packages/orq-rc/src/models/components/project.ts +108 -0
  885. package/packages/orq-rc/src/models/components/projectbudgetscope.ts +63 -0
  886. package/packages/orq-rc/src/models/components/projectscope.ts +70 -0
  887. package/packages/orq-rc/src/models/components/providerbudgetscope.ts +57 -0
  888. package/packages/orq-rc/src/models/components/providertoolinput.ts +72 -0
  889. package/packages/orq-rc/src/models/components/publiccontact.ts +71 -0
  890. package/packages/orq-rc/src/models/components/publicembeddingdata.ts +60 -0
  891. package/packages/orq-rc/src/models/components/publicembeddingusage.ts +45 -0
  892. package/packages/orq-rc/src/models/components/publicidentity.ts +69 -0
  893. package/packages/orq-rc/src/models/components/publicmodelentry.ts +71 -0
  894. package/packages/orq-rc/src/models/components/publicpiiredactionplugin.ts +127 -0
  895. package/packages/orq-rc/src/models/components/publicresponseresource.ts +196 -0
  896. package/packages/orq-rc/src/models/components/publicschedule.ts +118 -0
  897. package/packages/orq-rc/src/models/components/publicscheduleerrordetail.ts +39 -0
  898. package/packages/orq-rc/src/models/components/publicschedulepayload.ts +84 -0
  899. package/packages/orq-rc/src/models/components/publicusage.ts +77 -0
  900. package/packages/orq-rc/src/models/components/queryparamspagination.ts +40 -0
  901. package/packages/orq-rc/src/models/components/queryparamssort.ts +32 -0
  902. package/packages/orq-rc/src/models/components/queryreportrequest.ts +237 -0
  903. package/packages/orq-rc/src/models/components/queryreportresponse.ts +99 -0
  904. package/packages/orq-rc/src/models/components/querytelemetrymeta.ts +38 -0
  905. package/packages/orq-rc/src/models/components/querytelemetryrequest.ts +85 -0
  906. package/packages/orq-rc/src/models/components/querytelemetryresponse.ts +42 -0
  907. package/packages/orq-rc/src/models/components/querytracesrequest.ts +48 -0
  908. package/packages/orq-rc/src/models/components/querytracesresponse.ts +37 -0
  909. package/packages/orq-rc/src/models/components/querywebhooksrequest.ts +85 -0
  910. package/packages/orq-rc/src/models/components/querywebhooksresponse.ts +34 -0
  911. package/packages/orq-rc/src/models/components/ratelimit.ts +62 -0
  912. package/packages/orq-rc/src/models/components/reasoning.ts +79 -0
  913. package/packages/orq-rc/src/models/components/reasoningparam.ts +74 -0
  914. package/packages/orq-rc/src/models/components/reasoningpart.ts +62 -0
  915. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +71 -0
  916. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +66 -0
  917. package/packages/orq-rc/src/models/components/redactrequest.ts +33 -0
  918. package/packages/orq-rc/src/models/components/redactresponse.ts +41 -0
  919. package/packages/orq-rc/src/models/components/refusalpartschema.ts +64 -0
  920. package/packages/orq-rc/src/models/components/requestlimit.ts +69 -0
  921. package/packages/orq-rc/src/models/components/resetbudgetconsumptionrequest.ts +27 -0
  922. package/packages/orq-rc/src/models/components/resetbudgetconsumptionresponse.ts +38 -0
  923. package/packages/orq-rc/src/models/components/responsecodeinterpretercallcodedeltastreamevent.ts +79 -0
  924. package/packages/orq-rc/src/models/components/responsecodeinterpretercallcodedonestreamevent.ts +79 -0
  925. package/packages/orq-rc/src/models/components/responsecodeinterpretercallcompletedstreamevent.ts +74 -0
  926. package/packages/orq-rc/src/models/components/responsecodeinterpretercallinprogressstreamevent.ts +74 -0
  927. package/packages/orq-rc/src/models/components/responsecodeinterpretercallinterpretingstreamevent.ts +74 -0
  928. package/packages/orq-rc/src/models/components/responsecompletedstreamevent.ts +61 -0
  929. package/packages/orq-rc/src/models/components/responsecontentpartaddedstreamevent.ts +79 -0
  930. package/packages/orq-rc/src/models/components/responsecontentpartdonestreamevent.ts +79 -0
  931. package/packages/orq-rc/src/models/components/responsecreatedstreamevent.ts +61 -0
  932. package/packages/orq-rc/src/models/components/responsecustomtoolcallinputdeltastreamevent.ts +79 -0
  933. package/packages/orq-rc/src/models/components/responsecustomtoolcallinputdonestreamevent.ts +76 -0
  934. package/packages/orq-rc/src/models/components/responsedoneevent.ts +324 -0
  935. package/packages/orq-rc/src/models/components/responseerror.ts +33 -0
  936. package/packages/orq-rc/src/models/components/responseerrorstreamevent.ts +58 -0
  937. package/packages/orq-rc/src/models/components/responseexecutionlimits.ts +52 -0
  938. package/packages/orq-rc/src/models/components/responsefailedevent.ts +72 -0
  939. package/packages/orq-rc/src/models/components/responsefailedstreamevent.ts +61 -0
  940. package/packages/orq-rc/src/models/components/responsefilesearchcallcompletedstreamevent.ts +71 -0
  941. package/packages/orq-rc/src/models/components/responsefilesearchcallinprogressstreamevent.ts +74 -0
  942. package/packages/orq-rc/src/models/components/responsefilesearchcallsearchingstreamevent.ts +71 -0
  943. package/packages/orq-rc/src/models/components/responsefunctioncallargumentsdeltastreamevent.ts +84 -0
  944. package/packages/orq-rc/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +79 -0
  945. package/packages/orq-rc/src/models/components/responseidentity.ts +48 -0
  946. package/packages/orq-rc/src/models/components/responseimagegenerationcallcompletedstreamevent.ts +74 -0
  947. package/packages/orq-rc/src/models/components/responseimagegenerationcallgeneratingstreamevent.ts +74 -0
  948. package/packages/orq-rc/src/models/components/responseimagegenerationcallinprogressstreamevent.ts +74 -0
  949. package/packages/orq-rc/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +86 -0
  950. package/packages/orq-rc/src/models/components/responseincompletestreamevent.ts +61 -0
  951. package/packages/orq-rc/src/models/components/responseinprogressstreamevent.ts +61 -0
  952. package/packages/orq-rc/src/models/components/responsemcpcallargumentsdeltastreamevent.ts +78 -0
  953. package/packages/orq-rc/src/models/components/responsemcpcallargumentsdonestreamevent.ts +78 -0
  954. package/packages/orq-rc/src/models/components/responsemcpcallcompletedstreamevent.ts +68 -0
  955. package/packages/orq-rc/src/models/components/responsemcpcallfailedstreamevent.ts +67 -0
  956. package/packages/orq-rc/src/models/components/responsemcpcallinprogressstreamevent.ts +68 -0
  957. package/packages/orq-rc/src/models/components/responsemcplisttoolscompletedstreamevent.ts +73 -0
  958. package/packages/orq-rc/src/models/components/responsemcplisttoolsfailedstreamevent.ts +68 -0
  959. package/packages/orq-rc/src/models/components/responsemcplisttoolsinprogressstreamevent.ts +73 -0
  960. package/packages/orq-rc/src/models/components/responsemeta.ts +103 -0
  961. package/packages/orq-rc/src/models/components/responseoutputitemaddedstreamevent.ts +67 -0
  962. package/packages/orq-rc/src/models/components/responseoutputitemdonestreamevent.ts +66 -0
  963. package/packages/orq-rc/src/models/components/responseoutputtextannotationaddedstreamevent.ts +91 -0
  964. package/packages/orq-rc/src/models/components/responseoutputtextdeltastreamevent.ts +89 -0
  965. package/packages/orq-rc/src/models/components/responseoutputtextdonestreamevent.ts +83 -0
  966. package/packages/orq-rc/src/models/components/responsequeuedstreamevent.ts +61 -0
  967. package/packages/orq-rc/src/models/components/responsereasoningdeltastreamevent.ts +83 -0
  968. package/packages/orq-rc/src/models/components/responsereasoningdonestreamevent.ts +78 -0
  969. package/packages/orq-rc/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +85 -0
  970. package/packages/orq-rc/src/models/components/responsereasoningsummarypartdonestreamevent.ts +85 -0
  971. package/packages/orq-rc/src/models/components/responsereasoningsummarytextdeltastreamevent.ts +90 -0
  972. package/packages/orq-rc/src/models/components/responsereasoningsummarytextdonestreamevent.ts +85 -0
  973. package/packages/orq-rc/src/models/components/responsereasoningtextdeltastreamevent.ts +84 -0
  974. package/packages/orq-rc/src/models/components/responsereasoningtextdonestreamevent.ts +79 -0
  975. package/packages/orq-rc/src/models/components/responserefusaldeltastreamevent.ts +78 -0
  976. package/packages/orq-rc/src/models/components/responserefusaldonestreamevent.ts +78 -0
  977. package/packages/orq-rc/src/models/components/responseretryconfig.ts +45 -0
  978. package/packages/orq-rc/src/models/components/responsestartedevent.ts +97 -0
  979. package/packages/orq-rc/src/models/components/responsestreamevent.ts +337 -0
  980. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +85 -0
  981. package/packages/orq-rc/src/models/components/responsethread.ts +30 -0
  982. package/packages/orq-rc/src/models/components/responsewebsearchcallcompletedstreamevent.ts +73 -0
  983. package/packages/orq-rc/src/models/components/responsewebsearchcallinprogressstreamevent.ts +71 -0
  984. package/packages/orq-rc/src/models/components/responsewebsearchcallsearchingstreamevent.ts +73 -0
  985. package/packages/orq-rc/src/models/components/restorerequest.ts +38 -0
  986. package/packages/orq-rc/src/models/components/restoreresponse.ts +36 -0
  987. package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +35 -0
  988. package/packages/orq-rc/src/models/components/reviewoutcome.ts +23 -0
  989. package/packages/orq-rc/src/models/components/routingrule.ts +67 -0
  990. package/packages/orq-rc/src/models/components/searchtracesrequest.ts +68 -0
  991. package/packages/orq-rc/src/models/components/searchtracesresponse.ts +72 -0
  992. package/packages/orq-rc/src/models/components/security.ts +32 -0
  993. package/packages/orq-rc/src/models/components/serviceaccountowner.ts +43 -0
  994. package/packages/orq-rc/src/models/components/setsmartrouterenabledrequest.ts +33 -0
  995. package/packages/orq-rc/src/models/components/setsmartrouterenabledresponse.ts +37 -0
  996. package/packages/orq-rc/src/models/components/singleproject.ts +59 -0
  997. package/packages/orq-rc/src/models/components/skill.ts +109 -0
  998. package/packages/orq-rc/src/models/components/smartrouter.ts +72 -0
  999. package/packages/orq-rc/src/models/components/smartrouterprofile.ts +23 -0
  1000. package/packages/orq-rc/src/models/components/spandetail.ts +53 -0
  1001. package/packages/orq-rc/src/models/components/spansummary.ts +76 -0
  1002. package/packages/orq-rc/src/models/components/streamoptions.ts +32 -0
  1003. package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
  1004. package/packages/orq-rc/src/models/components/telemetryrow.ts +42 -0
  1005. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +211 -0
  1006. package/packages/orq-rc/src/models/components/textpart.ts +54 -0
  1007. package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +59 -0
  1008. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +59 -0
  1009. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +108 -0
  1010. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +64 -0
  1011. package/packages/orq-rc/src/models/components/tokenlimit.ts +69 -0
  1012. package/packages/orq-rc/src/models/components/toolcallpart.ts +51 -0
  1013. package/packages/orq-rc/src/models/components/tooldoneevent.ts +77 -0
  1014. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +235 -0
  1015. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +219 -0
  1016. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +215 -0
  1017. package/packages/orq-rc/src/models/components/toolfailedevent.ts +77 -0
  1018. package/packages/orq-rc/src/models/components/toolresultpart.ts +71 -0
  1019. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +78 -0
  1020. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +87 -0
  1021. package/packages/orq-rc/src/models/components/toolstartedevent.ts +82 -0
  1022. package/packages/orq-rc/src/models/components/totals.ts +34 -0
  1023. package/packages/orq-rc/src/models/components/traceagent.ts +33 -0
  1024. package/packages/orq-rc/src/models/components/traceaggregaterow.ts +33 -0
  1025. package/packages/orq-rc/src/models/components/tracecompute.ts +30 -0
  1026. package/packages/orq-rc/src/models/components/tracecontext.ts +39 -0
  1027. package/packages/orq-rc/src/models/components/tracecost.ts +77 -0
  1028. package/packages/orq-rc/src/models/components/tracefacet.ts +35 -0
  1029. package/packages/orq-rc/src/models/components/tracefacetvalue.ts +33 -0
  1030. package/packages/orq-rc/src/models/components/tracefield.ts +56 -0
  1031. package/packages/orq-rc/src/models/components/tracefilter.ts +33 -0
  1032. package/packages/orq-rc/src/models/components/tracesearchmeta.ts +45 -0
  1033. package/packages/orq-rc/src/models/components/tracesort.ts +30 -0
  1034. package/packages/orq-rc/src/models/components/tracesummary.ts +152 -0
  1035. package/packages/orq-rc/src/models/components/traceusage.ts +62 -0
  1036. package/packages/orq-rc/src/models/components/updateapikeyrequest.ts +92 -0
  1037. package/packages/orq-rc/src/models/components/updateapikeyresponse.ts +40 -0
  1038. package/packages/orq-rc/src/models/components/updatebudgetrequest.ts +115 -0
  1039. package/packages/orq-rc/src/models/components/updatebudgetresponse.ts +35 -0
  1040. package/packages/orq-rc/src/models/components/updatefilerequest.ts +39 -0
  1041. package/packages/orq-rc/src/models/components/updatefileresponse.ts +35 -0
  1042. package/packages/orq-rc/src/models/components/updateidentityrequest.ts +90 -0
  1043. package/packages/orq-rc/src/models/components/updateidentityresponse.ts +35 -0
  1044. package/packages/orq-rc/src/models/components/updatemanagementkeyrequest.ts +80 -0
  1045. package/packages/orq-rc/src/models/components/updatemanagementkeyresponse.ts +40 -0
  1046. package/packages/orq-rc/src/models/components/updatemodelparameter.ts +61 -0
  1047. package/packages/orq-rc/src/models/components/updatenotifierrequest.ts +130 -0
  1048. package/packages/orq-rc/src/models/components/updatenotifierresponse.ts +35 -0
  1049. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +49 -0
  1050. package/packages/orq-rc/src/models/components/updateprojectresponse.ts +35 -0
  1051. package/packages/orq-rc/src/models/components/updateskillrequest.ts +75 -0
  1052. package/packages/orq-rc/src/models/components/updateskillresponse.ts +35 -0
  1053. package/packages/orq-rc/src/models/components/updatesmartrouterrequest.ts +38 -0
  1054. package/packages/orq-rc/src/models/components/updatesmartrouterresponse.ts +37 -0
  1055. package/packages/orq-rc/src/models/components/userowner.ts +59 -0
  1056. package/packages/orq-rc/src/models/components/vertexcapabilities.ts +37 -0
  1057. package/packages/orq-rc/src/models/components/vertexconfiguration.ts +45 -0
  1058. package/packages/orq-rc/src/models/components/vertexmodelconfiguration.ts +53 -0
  1059. package/packages/orq-rc/src/models/components/vertexparameters.ts +47 -0
  1060. package/packages/orq-rc/src/models/components/vertexparamrange.ts +34 -0
  1061. package/packages/orq-rc/src/models/components/vertexparamrangeint.ts +34 -0
  1062. package/packages/orq-rc/src/models/components/webhook.ts +116 -0
  1063. package/packages/orq-rc/src/models/components/workspacebudgetscope.ts +46 -0
  1064. package/packages/orq-rc/src/models/errors/apierror.ts +40 -0
  1065. package/packages/orq-rc/src/models/errors/createagentschedule.ts +105 -0
  1066. package/packages/orq-rc/src/models/errors/createeval.ts +51 -0
  1067. package/packages/orq-rc/src/models/errors/createmoderation.ts +84 -0
  1068. package/packages/orq-rc/src/models/errors/createtranscription.ts +87 -0
  1069. package/packages/orq-rc/src/models/errors/createtranslation.ts +87 -0
  1070. package/packages/orq-rc/src/models/errors/deleteagent.ts +51 -0
  1071. package/packages/orq-rc/src/models/errors/deleteagentschedule.ts +56 -0
  1072. package/packages/orq-rc/src/models/errors/deleteeval.ts +51 -0
  1073. package/packages/orq-rc/src/models/errors/deleteprompt.ts +51 -0
  1074. package/packages/orq-rc/src/models/errors/getevals.ts +51 -0
  1075. package/packages/orq-rc/src/models/errors/getpromptversion.ts +51 -0
  1076. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +51 -0
  1077. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +51 -0
  1078. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +52 -0
  1079. package/packages/orq-rc/src/models/errors/honoapierror.ts +59 -0
  1080. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  1081. package/packages/orq-rc/src/models/errors/index.ts +38 -0
  1082. package/packages/orq-rc/src/models/errors/invokeeval.ts +141 -0
  1083. package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
  1084. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
  1085. package/packages/orq-rc/src/models/errors/postv2feedback.ts +96 -0
  1086. package/packages/orq-rc/src/models/errors/postv2feedbackremove.ts +51 -0
  1087. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
  1088. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +51 -0
  1089. package/packages/orq-rc/src/models/errors/retrieveagentschedule.ts +56 -0
  1090. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +109 -0
  1091. package/packages/orq-rc/src/models/errors/streamagent.ts +51 -0
  1092. package/packages/orq-rc/src/models/errors/streamrunagent.ts +51 -0
  1093. package/packages/orq-rc/src/models/errors/triggeragentschedule.ts +105 -0
  1094. package/packages/orq-rc/src/models/errors/updateagent.ts +51 -0
  1095. package/packages/orq-rc/src/models/errors/updateagentschedule.ts +105 -0
  1096. package/packages/orq-rc/src/models/errors/updateeval.ts +51 -0
  1097. package/packages/orq-rc/src/models/errors/updateprompt.ts +51 -0
  1098. package/packages/orq-rc/src/models/errors/updatetool.ts +62 -0
  1099. package/packages/orq-rc/src/models/operations/apikeydelete.ts +39 -0
  1100. package/packages/orq-rc/src/models/operations/apikeyget.ts +49 -0
  1101. package/packages/orq-rc/src/models/operations/apikeylist.ts +118 -0
  1102. package/packages/orq-rc/src/models/operations/apikeyupdate.ts +44 -0
  1103. package/packages/orq-rc/src/models/operations/budgetdelete.ts +39 -0
  1104. package/packages/orq-rc/src/models/operations/budgetget.ts +39 -0
  1105. package/packages/orq-rc/src/models/operations/budgetgetconsumption.ts +41 -0
  1106. package/packages/orq-rc/src/models/operations/budgetlist.ts +109 -0
  1107. package/packages/orq-rc/src/models/operations/budgetresetconsumption.ts +48 -0
  1108. package/packages/orq-rc/src/models/operations/budgetupdate.ts +44 -0
  1109. package/packages/orq-rc/src/models/operations/cleardataset.ts +39 -0
  1110. package/packages/orq-rc/src/models/operations/createagentrequest.ts +5878 -0
  1111. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +125 -0
  1112. package/packages/orq-rc/src/models/operations/createagentschedule.ts +227 -0
  1113. package/packages/orq-rc/src/models/operations/createannotation.ts +256 -0
  1114. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +6581 -0
  1115. package/packages/orq-rc/src/models/operations/createchunk.ts +222 -0
  1116. package/packages/orq-rc/src/models/operations/createcompletion.ts +3528 -0
  1117. package/packages/orq-rc/src/models/operations/createdataset.ts +162 -0
  1118. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +3105 -0
  1119. package/packages/orq-rc/src/models/operations/createdatasource.ts +522 -0
  1120. package/packages/orq-rc/src/models/operations/createembedding.ts +219 -0
  1121. package/packages/orq-rc/src/models/operations/createeval.ts +663 -0
  1122. package/packages/orq-rc/src/models/operations/createimage.ts +1088 -0
  1123. package/packages/orq-rc/src/models/operations/createimageedit.ts +1045 -0
  1124. package/packages/orq-rc/src/models/operations/createimagevariation.ts +1067 -0
  1125. package/packages/orq-rc/src/models/operations/createknowledge.ts +964 -0
  1126. package/packages/orq-rc/src/models/operations/creatememory.ts +142 -0
  1127. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +152 -0
  1128. package/packages/orq-rc/src/models/operations/creatememorystore.ts +199 -0
  1129. package/packages/orq-rc/src/models/operations/createmoderation.ts +664 -0
  1130. package/packages/orq-rc/src/models/operations/createprompt.ts +5842 -0
  1131. package/packages/orq-rc/src/models/operations/creatererank.ts +944 -0
  1132. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +2122 -0
  1133. package/packages/orq-rc/src/models/operations/createspeech.ts +700 -0
  1134. package/packages/orq-rc/src/models/operations/createtool.ts +2485 -0
  1135. package/packages/orq-rc/src/models/operations/createtranscription.ts +955 -0
  1136. package/packages/orq-rc/src/models/operations/createtranslation.ts +930 -0
  1137. package/packages/orq-rc/src/models/operations/deleteagent.ts +39 -0
  1138. package/packages/orq-rc/src/models/operations/deleteagentschedule.ts +46 -0
  1139. package/packages/orq-rc/src/models/operations/deleteannotation.ts +125 -0
  1140. package/packages/orq-rc/src/models/operations/deletechunk.ts +53 -0
  1141. package/packages/orq-rc/src/models/operations/deletechunks.ts +125 -0
  1142. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +46 -0
  1143. package/packages/orq-rc/src/models/operations/deletedataset.ts +39 -0
  1144. package/packages/orq-rc/src/models/operations/deletedatasource.ts +46 -0
  1145. package/packages/orq-rc/src/models/operations/deleteeval.ts +31 -0
  1146. package/packages/orq-rc/src/models/operations/deleteidentity.ts +34 -0
  1147. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +39 -0
  1148. package/packages/orq-rc/src/models/operations/deletememory.ts +46 -0
  1149. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +55 -0
  1150. package/packages/orq-rc/src/models/operations/deletememorystore.ts +39 -0
  1151. package/packages/orq-rc/src/models/operations/deleteprompt.ts +34 -0
  1152. package/packages/orq-rc/src/models/operations/deletetool.ts +36 -0
  1153. package/packages/orq-rc/src/models/operations/deletev2humanevalsetsid.ts +36 -0
  1154. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4614 -0
  1155. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +729 -0
  1156. package/packages/orq-rc/src/models/operations/deployments.ts +1378 -0
  1157. package/packages/orq-rc/src/models/operations/deploymentstream.ts +4661 -0
  1158. package/packages/orq-rc/src/models/operations/filecontent.ts +39 -0
  1159. package/packages/orq-rc/src/models/operations/filedelete.ts +39 -0
  1160. package/packages/orq-rc/src/models/operations/fileget.ts +35 -0
  1161. package/packages/orq-rc/src/models/operations/filelist.ts +71 -0
  1162. package/packages/orq-rc/src/models/operations/fileupdate.ts +44 -0
  1163. package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
  1164. package/packages/orq-rc/src/models/operations/getallmemories.ts +173 -0
  1165. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +188 -0
  1166. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +220 -0
  1167. package/packages/orq-rc/src/models/operations/getallprompts.ts +3427 -0
  1168. package/packages/orq-rc/src/models/operations/getalltools.ts +1388 -0
  1169. package/packages/orq-rc/src/models/operations/getchunkscount.ts +142 -0
  1170. package/packages/orq-rc/src/models/operations/getevals.ts +168 -0
  1171. package/packages/orq-rc/src/models/operations/getonechunk.ts +171 -0
  1172. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +652 -0
  1173. package/packages/orq-rc/src/models/operations/getoneprompt.ts +3350 -0
  1174. package/packages/orq-rc/src/models/operations/getpromptversion.ts +3399 -0
  1175. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +162 -0
  1176. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +234 -0
  1177. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +235 -0
  1178. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +163 -0
  1179. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +110 -0
  1180. package/packages/orq-rc/src/models/operations/guardrailrulecreate.ts +126 -0
  1181. package/packages/orq-rc/src/models/operations/guardrailruledelete.ts +39 -0
  1182. package/packages/orq-rc/src/models/operations/guardrailruleget.ts +104 -0
  1183. package/packages/orq-rc/src/models/operations/guardrailrulelist.ts +138 -0
  1184. package/packages/orq-rc/src/models/operations/guardrailrulelistusedguardrails.ts +48 -0
  1185. package/packages/orq-rc/src/models/operations/guardrailruleupdate.ts +155 -0
  1186. package/packages/orq-rc/src/models/operations/index.ts +196 -0
  1187. package/packages/orq-rc/src/models/operations/invokeagent.ts +775 -0
  1188. package/packages/orq-rc/src/models/operations/invokeeval.ts +1257 -0
  1189. package/packages/orq-rc/src/models/operations/listagents.ts +3020 -0
  1190. package/packages/orq-rc/src/models/operations/listagentschedules.ts +69 -0
  1191. package/packages/orq-rc/src/models/operations/listchunks.ts +289 -0
  1192. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +282 -0
  1193. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2086 -0
  1194. package/packages/orq-rc/src/models/operations/listdatasets.ts +218 -0
  1195. package/packages/orq-rc/src/models/operations/listdatasources.ts +338 -0
  1196. package/packages/orq-rc/src/models/operations/listidentities.ts +94 -0
  1197. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +687 -0
  1198. package/packages/orq-rc/src/models/operations/listmodels.ts +60 -0
  1199. package/packages/orq-rc/src/models/operations/listpromptversions.ts +3474 -0
  1200. package/packages/orq-rc/src/models/operations/managementkeydelete.ts +39 -0
  1201. package/packages/orq-rc/src/models/operations/managementkeyget.ts +39 -0
  1202. package/packages/orq-rc/src/models/operations/managementkeylist.ts +85 -0
  1203. package/packages/orq-rc/src/models/operations/managementkeyupdate.ts +45 -0
  1204. package/packages/orq-rc/src/models/operations/modelazurefoundrydeployments.ts +90 -0
  1205. package/packages/orq-rc/src/models/operations/modelcreate.ts +186 -0
  1206. package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +236 -0
  1207. package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +204 -0
  1208. package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +146 -0
  1209. package/packages/orq-rc/src/models/operations/modeldelete.ts +34 -0
  1210. package/packages/orq-rc/src/models/operations/modeldisable.ts +39 -0
  1211. package/packages/orq-rc/src/models/operations/modelenable.ts +36 -0
  1212. package/packages/orq-rc/src/models/operations/modelupdate.ts +200 -0
  1213. package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +262 -0
  1214. package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +238 -0
  1215. package/packages/orq-rc/src/models/operations/modelvalidate.ts +57 -0
  1216. package/packages/orq-rc/src/models/operations/modelvalidateawsbedrock.ts +61 -0
  1217. package/packages/orq-rc/src/models/operations/notifierdelete.ts +36 -0
  1218. package/packages/orq-rc/src/models/operations/notifierget.ts +36 -0
  1219. package/packages/orq-rc/src/models/operations/notifierlist.ts +72 -0
  1220. package/packages/orq-rc/src/models/operations/notifierupdate.ts +41 -0
  1221. package/packages/orq-rc/src/models/operations/parse.ts +784 -0
  1222. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +415 -0
  1223. package/packages/orq-rc/src/models/operations/policycreate.ts +138 -0
  1224. package/packages/orq-rc/src/models/operations/policydelete.ts +39 -0
  1225. package/packages/orq-rc/src/models/operations/policyget.ts +110 -0
  1226. package/packages/orq-rc/src/models/operations/policylist.ts +94 -0
  1227. package/packages/orq-rc/src/models/operations/policyupdate.ts +174 -0
  1228. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
  1229. package/packages/orq-rc/src/models/operations/postv2feedback.ts +214 -0
  1230. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +465 -0
  1231. package/packages/orq-rc/src/models/operations/postv2feedbackevaluationremove.ts +43 -0
  1232. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +135 -0
  1233. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +365 -0
  1234. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +478 -0
  1235. package/packages/orq-rc/src/models/operations/projectdelete.ts +39 -0
  1236. package/packages/orq-rc/src/models/operations/projectget.ts +39 -0
  1237. package/packages/orq-rc/src/models/operations/projectlist.ts +58 -0
  1238. package/packages/orq-rc/src/models/operations/projectupdate.ts +44 -0
  1239. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3082 -0
  1240. package/packages/orq-rc/src/models/operations/retrieveagentschedule.ts +162 -0
  1241. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +1971 -0
  1242. package/packages/orq-rc/src/models/operations/retrievedataset.ts +150 -0
  1243. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +222 -0
  1244. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +55 -0
  1245. package/packages/orq-rc/src/models/operations/retrievememory.ts +112 -0
  1246. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +118 -0
  1247. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +144 -0
  1248. package/packages/orq-rc/src/models/operations/retrieveresponse.ts +225 -0
  1249. package/packages/orq-rc/src/models/operations/retrievetool.ts +1375 -0
  1250. package/packages/orq-rc/src/models/operations/routingrulecreate.ts +124 -0
  1251. package/packages/orq-rc/src/models/operations/routingruledelete.ts +39 -0
  1252. package/packages/orq-rc/src/models/operations/routingruleget.ts +102 -0
  1253. package/packages/orq-rc/src/models/operations/routingrulelist.ts +112 -0
  1254. package/packages/orq-rc/src/models/operations/routingrulelistusedmodels.ts +37 -0
  1255. package/packages/orq-rc/src/models/operations/routingruleupdate.ts +154 -0
  1256. package/packages/orq-rc/src/models/operations/runagent.ts +5412 -0
  1257. package/packages/orq-rc/src/models/operations/searchknowledge.ts +1762 -0
  1258. package/packages/orq-rc/src/models/operations/skilldelete.ts +39 -0
  1259. package/packages/orq-rc/src/models/operations/skillget.ts +40 -0
  1260. package/packages/orq-rc/src/models/operations/skilllist.ts +61 -0
  1261. package/packages/orq-rc/src/models/operations/skillupdate.ts +44 -0
  1262. package/packages/orq-rc/src/models/operations/smartrouterdelete.ts +36 -0
  1263. package/packages/orq-rc/src/models/operations/smartrouterget.ts +36 -0
  1264. package/packages/orq-rc/src/models/operations/smartrouterlist.ts +53 -0
  1265. package/packages/orq-rc/src/models/operations/smartroutersetenabled.ts +45 -0
  1266. package/packages/orq-rc/src/models/operations/smartrouterupdate.ts +41 -0
  1267. package/packages/orq-rc/src/models/operations/streamagent.ts +698 -0
  1268. package/packages/orq-rc/src/models/operations/streamrunagent.ts +5579 -0
  1269. package/packages/orq-rc/src/models/operations/tracesget.ts +36 -0
  1270. package/packages/orq-rc/src/models/operations/tracesgetspan.ts +40 -0
  1271. package/packages/orq-rc/src/models/operations/traceslistfacetvalues.ts +50 -0
  1272. package/packages/orq-rc/src/models/operations/traceslistspans.ts +43 -0
  1273. package/packages/orq-rc/src/models/operations/triggeragentschedule.ts +86 -0
  1274. package/packages/orq-rc/src/models/operations/updateagent.ts +6150 -0
  1275. package/packages/orq-rc/src/models/operations/updateagentschedule.ts +241 -0
  1276. package/packages/orq-rc/src/models/operations/updatechunk.ts +236 -0
  1277. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +3143 -0
  1278. package/packages/orq-rc/src/models/operations/updatedataset.ts +206 -0
  1279. package/packages/orq-rc/src/models/operations/updatedatasource.ts +256 -0
  1280. package/packages/orq-rc/src/models/operations/updateeval.ts +446 -0
  1281. package/packages/orq-rc/src/models/operations/updateidentity.ts +43 -0
  1282. package/packages/orq-rc/src/models/operations/updateknowledge.ts +1231 -0
  1283. package/packages/orq-rc/src/models/operations/updatememory.ts +142 -0
  1284. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +159 -0
  1285. package/packages/orq-rc/src/models/operations/updatememorystore.ts +188 -0
  1286. package/packages/orq-rc/src/models/operations/updateprompt.ts +5929 -0
  1287. package/packages/orq-rc/src/models/operations/updatetool.ts +2812 -0
  1288. package/packages/orq-rc/src/models/operations/webhookdelete.ts +31 -0
  1289. package/packages/orq-rc/src/models/operations/webhookget.ts +31 -0
  1290. package/packages/orq-rc/src/models/operations/webhooklist.ts +101 -0
  1291. package/packages/orq-rc/src/models/operations/webhookupdate.ts +84 -0
  1292. package/packages/orq-rc/src/sdk/agents.ts +216 -0
  1293. package/packages/orq-rc/src/sdk/annotations.ts +45 -0
  1294. package/packages/orq-rc/src/sdk/apikeys.ts +116 -0
  1295. package/packages/orq-rc/src/sdk/audio.ts +25 -0
  1296. package/packages/orq-rc/src/sdk/budgets.ts +136 -0
  1297. package/packages/orq-rc/src/sdk/chat.ts +13 -0
  1298. package/packages/orq-rc/src/sdk/chunking.ts +27 -0
  1299. package/packages/orq-rc/src/sdk/completions.ts +32 -0
  1300. package/packages/orq-rc/src/sdk/datasets.ts +204 -0
  1301. package/packages/orq-rc/src/sdk/deployments.ts +83 -0
  1302. package/packages/orq-rc/src/sdk/edits.ts +27 -0
  1303. package/packages/orq-rc/src/sdk/embeddings.ts +27 -0
  1304. package/packages/orq-rc/src/sdk/evals.ts +102 -0
  1305. package/packages/orq-rc/src/sdk/feedback.ts +63 -0
  1306. package/packages/orq-rc/src/sdk/files.ts +118 -0
  1307. package/packages/orq-rc/src/sdk/generations.ts +27 -0
  1308. package/packages/orq-rc/src/sdk/guardrailrules.ts +115 -0
  1309. package/packages/orq-rc/src/sdk/humanreviewsets.ts +84 -0
  1310. package/packages/orq-rc/src/sdk/identities.ts +100 -0
  1311. package/packages/orq-rc/src/sdk/images.ts +25 -0
  1312. package/packages/orq-rc/src/sdk/index.ts +5 -0
  1313. package/packages/orq-rc/src/sdk/knowledge.ts +312 -0
  1314. package/packages/orq-rc/src/sdk/managementkeys.ts +116 -0
  1315. package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
  1316. package/packages/orq-rc/src/sdk/models.ts +294 -0
  1317. package/packages/orq-rc/src/sdk/moderations.ts +24 -0
  1318. package/packages/orq-rc/src/sdk/notifiers.ts +100 -0
  1319. package/packages/orq-rc/src/sdk/orqcompletions.ts +32 -0
  1320. package/packages/orq-rc/src/sdk/orqresponses.ts +57 -0
  1321. package/packages/orq-rc/src/sdk/pii.ts +63 -0
  1322. package/packages/orq-rc/src/sdk/policies.ts +99 -0
  1323. package/packages/orq-rc/src/sdk/projects.ts +100 -0
  1324. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  1325. package/packages/orq-rc/src/sdk/reporting.ts +29 -0
  1326. package/packages/orq-rc/src/sdk/rerank.ts +27 -0
  1327. package/packages/orq-rc/src/sdk/responses.ts +47 -0
  1328. package/packages/orq-rc/src/sdk/router.ts +66 -0
  1329. package/packages/orq-rc/src/sdk/routingrules.ts +115 -0
  1330. package/packages/orq-rc/src/sdk/schedules.ts +117 -0
  1331. package/packages/orq-rc/src/sdk/sdk.ts +205 -0
  1332. package/packages/orq-rc/src/sdk/skills.ts +100 -0
  1333. package/packages/orq-rc/src/sdk/smartrouters.ts +118 -0
  1334. package/packages/orq-rc/src/sdk/speech.ts +27 -0
  1335. package/packages/orq-rc/src/sdk/telemetry.ts +27 -0
  1336. package/packages/orq-rc/src/sdk/tools.ts +135 -0
  1337. package/packages/orq-rc/src/sdk/traces.ts +170 -0
  1338. package/packages/orq-rc/src/sdk/transcriptions.ts +24 -0
  1339. package/packages/orq-rc/src/sdk/translations.ts +24 -0
  1340. package/packages/orq-rc/src/sdk/variations.ts +27 -0
  1341. package/packages/orq-rc/src/sdk/webhooks.ts +152 -0
  1342. package/packages/orq-rc/src/types/async.ts +69 -0
  1343. package/packages/orq-rc/src/types/blobs.ts +32 -0
  1344. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  1345. package/packages/orq-rc/src/types/enums.ts +45 -0
  1346. package/packages/orq-rc/src/types/fp.ts +50 -0
  1347. package/packages/orq-rc/src/types/index.ts +11 -0
  1348. package/packages/orq-rc/src/types/operations.ts +105 -0
  1349. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  1350. package/packages/orq-rc/src/types/streams.ts +21 -0
  1351. package/packages/orq-rc/src/types/unrecognized.ts +35 -0
  1352. package/sdk/budgets.d.ts +0 -7
  1353. package/sdk/budgets.d.ts.map +1 -1
  1354. package/sdk/budgets.js +0 -10
  1355. package/sdk/budgets.js.map +1 -1
  1356. package/sdk/feedback.d.ts +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,4614 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import * as components from "../components/index.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+
13
+ export type DeploymentGetConfigContentDeployments2 =
14
+ components.TextContentPartSchema;
15
+
16
+ /**
17
+ * The contents of the tool message.
18
+ */
19
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent =
20
+ | string
21
+ | Array<components.TextContentPartSchema>;
22
+
23
+ /**
24
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
25
+ */
26
+ export const DeploymentGetConfigPrefixMessagesType = {
27
+ Ephemeral: "ephemeral",
28
+ } as const;
29
+ /**
30
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
31
+ */
32
+ export type DeploymentGetConfigPrefixMessagesType = ClosedEnum<
33
+ typeof DeploymentGetConfigPrefixMessagesType
34
+ >;
35
+
36
+ /**
37
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
38
+ *
39
+ * @remarks
40
+ *
41
+ * - `5m`: 5 minutes
42
+ * - `1h`: 1 hour
43
+ *
44
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
45
+ */
46
+ export const PrefixMessagesTtl = {
47
+ Fivem: "5m",
48
+ Oneh: "1h",
49
+ } as const;
50
+ /**
51
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
52
+ *
53
+ * @remarks
54
+ *
55
+ * - `5m`: 5 minutes
56
+ * - `1h`: 1 hour
57
+ *
58
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
59
+ */
60
+ export type PrefixMessagesTtl = ClosedEnum<typeof PrefixMessagesTtl>;
61
+
62
+ export type PrefixMessagesCacheControl = {
63
+ /**
64
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
65
+ */
66
+ type: DeploymentGetConfigPrefixMessagesType;
67
+ /**
68
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
69
+ *
70
+ * @remarks
71
+ *
72
+ * - `5m`: 5 minutes
73
+ * - `1h`: 1 hour
74
+ *
75
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
76
+ */
77
+ ttl?: PrefixMessagesTtl | undefined;
78
+ };
79
+
80
+ export type ToolMessage = {
81
+ /**
82
+ * The role of the messages author, in this case tool.
83
+ */
84
+ role: "tool";
85
+ /**
86
+ * The contents of the tool message.
87
+ */
88
+ content: string | Array<components.TextContentPartSchema>;
89
+ /**
90
+ * Tool call that this message is responding to.
91
+ */
92
+ toolCallId: string | null;
93
+ cacheControl?: PrefixMessagesCacheControl | undefined;
94
+ };
95
+
96
+ export type DeploymentGetConfigContent2 =
97
+ | (components.TextContentPartSchema & { type: "text" })
98
+ | components.RefusalPartSchema
99
+ | components.ReasoningPartSchema
100
+ | components.RedactedReasoningPartSchema;
101
+
102
+ /**
103
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
104
+ */
105
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent =
106
+ | string
107
+ | Array<
108
+ | (components.TextContentPartSchema & { type: "text" })
109
+ | components.RefusalPartSchema
110
+ | components.ReasoningPartSchema
111
+ | components.RedactedReasoningPartSchema
112
+ >;
113
+
114
+ /**
115
+ * Data about a previous audio response from the model.
116
+ */
117
+ export type Audio = {
118
+ /**
119
+ * Unique identifier for a previous audio response from the model.
120
+ */
121
+ id: string;
122
+ };
123
+
124
+ /**
125
+ * The type of the tool. Currently, only `function` is supported.
126
+ */
127
+ export const PrefixMessagesType = {
128
+ Function: "function",
129
+ } as const;
130
+ /**
131
+ * The type of the tool. Currently, only `function` is supported.
132
+ */
133
+ export type PrefixMessagesType = ClosedEnum<typeof PrefixMessagesType>;
134
+
135
+ export type PrefixMessagesFunction = {
136
+ /**
137
+ * The name of the function to call.
138
+ */
139
+ name?: string | undefined;
140
+ /**
141
+ * The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
142
+ */
143
+ arguments?: string | undefined;
144
+ };
145
+
146
+ export type PrefixMessagesToolCalls = {
147
+ /**
148
+ * The ID of the tool call.
149
+ */
150
+ id: string;
151
+ /**
152
+ * The type of the tool. Currently, only `function` is supported.
153
+ */
154
+ type: PrefixMessagesType;
155
+ function: PrefixMessagesFunction;
156
+ /**
157
+ * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
158
+ */
159
+ thoughtSignature?: string | undefined;
160
+ };
161
+
162
+ export type AssistantMessage = {
163
+ /**
164
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
165
+ */
166
+ content?:
167
+ | string
168
+ | Array<
169
+ | (components.TextContentPartSchema & { type: "text" })
170
+ | components.RefusalPartSchema
171
+ | components.ReasoningPartSchema
172
+ | components.RedactedReasoningPartSchema
173
+ >
174
+ | null
175
+ | undefined;
176
+ /**
177
+ * The refusal message by the assistant.
178
+ */
179
+ refusal?: string | null | undefined;
180
+ /**
181
+ * The role of the messages author, in this case `assistant`.
182
+ */
183
+ role: "assistant";
184
+ /**
185
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
186
+ */
187
+ name?: string | undefined;
188
+ /**
189
+ * Data about a previous audio response from the model.
190
+ */
191
+ audio?: Audio | null | undefined;
192
+ /**
193
+ * The tool calls generated by the model, such as function calls.
194
+ */
195
+ toolCalls?: Array<PrefixMessagesToolCalls> | undefined;
196
+ };
197
+
198
+ /**
199
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
200
+ */
201
+ export const DeploymentGetConfig2DeploymentsType = {
202
+ Ephemeral: "ephemeral",
203
+ } as const;
204
+ /**
205
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
206
+ */
207
+ export type DeploymentGetConfig2DeploymentsType = ClosedEnum<
208
+ typeof DeploymentGetConfig2DeploymentsType
209
+ >;
210
+
211
+ /**
212
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
213
+ *
214
+ * @remarks
215
+ *
216
+ * - `5m`: 5 minutes
217
+ * - `1h`: 1 hour
218
+ *
219
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
220
+ */
221
+ export const Ttl = {
222
+ Fivem: "5m",
223
+ Oneh: "1h",
224
+ } as const;
225
+ /**
226
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
227
+ *
228
+ * @remarks
229
+ *
230
+ * - `5m`: 5 minutes
231
+ * - `1h`: 1 hour
232
+ *
233
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
234
+ */
235
+ export type Ttl = ClosedEnum<typeof Ttl>;
236
+
237
+ export type CacheControl = {
238
+ /**
239
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
240
+ */
241
+ type: DeploymentGetConfig2DeploymentsType;
242
+ /**
243
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
244
+ *
245
+ * @remarks
246
+ *
247
+ * - `5m`: 5 minutes
248
+ * - `1h`: 1 hour
249
+ *
250
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
251
+ */
252
+ ttl?: Ttl | undefined;
253
+ };
254
+
255
+ export type Four = {
256
+ /**
257
+ * The type of the content part. Always `file`.
258
+ */
259
+ type: "file";
260
+ cacheControl?: CacheControl | undefined;
261
+ /**
262
+ * File data for the content part. Must contain either file_data or uri, but not both.
263
+ */
264
+ file: components.FileContentPartSchema;
265
+ };
266
+
267
+ export type Content2 =
268
+ | (components.TextContentPartSchema & { type: "text" })
269
+ | components.ImageContentPartSchema
270
+ | components.AudioContentPartSchema
271
+ | Four;
272
+
273
+ /**
274
+ * The contents of the user message.
275
+ */
276
+ export type DeploymentGetConfigPrefixMessagesDeploymentsContent =
277
+ | string
278
+ | Array<
279
+ | (components.TextContentPartSchema & { type: "text" })
280
+ | components.ImageContentPartSchema
281
+ | components.AudioContentPartSchema
282
+ | Four
283
+ >;
284
+
285
+ export type UserMessage = {
286
+ /**
287
+ * The role of the messages author, in this case `user`.
288
+ */
289
+ role: "user";
290
+ /**
291
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
292
+ */
293
+ name?: string | undefined;
294
+ /**
295
+ * The contents of the user message.
296
+ */
297
+ content:
298
+ | string
299
+ | Array<
300
+ | (components.TextContentPartSchema & { type: "text" })
301
+ | components.ImageContentPartSchema
302
+ | components.AudioContentPartSchema
303
+ | Four
304
+ >;
305
+ };
306
+
307
+ /**
308
+ * The contents of the developer message.
309
+ */
310
+ export type DeploymentGetConfigPrefixMessagesContent =
311
+ | string
312
+ | Array<components.TextContentPartSchema>;
313
+
314
+ export type DeveloperMessage = {
315
+ /**
316
+ * The role of the messages author, in this case `developer`.
317
+ */
318
+ role: "developer";
319
+ /**
320
+ * The contents of the developer message.
321
+ */
322
+ content: string | Array<components.TextContentPartSchema>;
323
+ /**
324
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
325
+ */
326
+ name?: string | undefined;
327
+ };
328
+
329
+ /**
330
+ * The contents of the system message.
331
+ */
332
+ export type PrefixMessagesContent =
333
+ | string
334
+ | Array<components.TextContentPartSchema>;
335
+
336
+ /**
337
+ * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
338
+ */
339
+ export type SystemMessage = {
340
+ /**
341
+ * The role of the messages author, in this case `system`.
342
+ */
343
+ role: "system";
344
+ /**
345
+ * The contents of the system message.
346
+ */
347
+ content: string | Array<components.TextContentPartSchema>;
348
+ /**
349
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
350
+ */
351
+ name?: string | undefined;
352
+ };
353
+
354
+ export type PrefixMessages =
355
+ | SystemMessage
356
+ | DeveloperMessage
357
+ | UserMessage
358
+ | AssistantMessage
359
+ | ToolMessage;
360
+
361
+ export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2 =
362
+ components.TextContentPartSchema;
363
+
364
+ /**
365
+ * The contents of the tool message.
366
+ */
367
+ export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent =
368
+ | string
369
+ | Array<components.TextContentPartSchema>;
370
+
371
+ /**
372
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
373
+ */
374
+ export const DeploymentGetConfigMessagesType = {
375
+ Ephemeral: "ephemeral",
376
+ } as const;
377
+ /**
378
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
379
+ */
380
+ export type DeploymentGetConfigMessagesType = ClosedEnum<
381
+ typeof DeploymentGetConfigMessagesType
382
+ >;
383
+
384
+ /**
385
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
386
+ *
387
+ * @remarks
388
+ *
389
+ * - `5m`: 5 minutes
390
+ * - `1h`: 1 hour
391
+ *
392
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
393
+ */
394
+ export const MessagesTtl = {
395
+ Fivem: "5m",
396
+ Oneh: "1h",
397
+ } as const;
398
+ /**
399
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
400
+ *
401
+ * @remarks
402
+ *
403
+ * - `5m`: 5 minutes
404
+ * - `1h`: 1 hour
405
+ *
406
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
407
+ */
408
+ export type MessagesTtl = ClosedEnum<typeof MessagesTtl>;
409
+
410
+ export type MessagesCacheControl = {
411
+ /**
412
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
413
+ */
414
+ type: DeploymentGetConfigMessagesType;
415
+ /**
416
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
417
+ *
418
+ * @remarks
419
+ *
420
+ * - `5m`: 5 minutes
421
+ * - `1h`: 1 hour
422
+ *
423
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
424
+ */
425
+ ttl?: MessagesTtl | undefined;
426
+ };
427
+
428
+ export type MessagesToolMessage = {
429
+ /**
430
+ * The role of the messages author, in this case tool.
431
+ */
432
+ role: "tool";
433
+ /**
434
+ * The contents of the tool message.
435
+ */
436
+ content: string | Array<components.TextContentPartSchema>;
437
+ /**
438
+ * Tool call that this message is responding to.
439
+ */
440
+ toolCallId: string | null;
441
+ cacheControl?: MessagesCacheControl | undefined;
442
+ };
443
+
444
+ export type DeploymentGetConfigContentDeploymentsRequestRequestBody2 =
445
+ | (components.TextContentPartSchema & { type: "text" })
446
+ | components.RefusalPartSchema
447
+ | components.ReasoningPartSchema
448
+ | components.RedactedReasoningPartSchema;
449
+
450
+ /**
451
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
452
+ */
453
+ export type DeploymentGetConfigMessagesDeploymentsRequestContent =
454
+ | string
455
+ | Array<
456
+ | (components.TextContentPartSchema & { type: "text" })
457
+ | components.RefusalPartSchema
458
+ | components.ReasoningPartSchema
459
+ | components.RedactedReasoningPartSchema
460
+ >;
461
+
462
+ /**
463
+ * Data about a previous audio response from the model.
464
+ */
465
+ export type MessagesAudio = {
466
+ /**
467
+ * Unique identifier for a previous audio response from the model.
468
+ */
469
+ id: string;
470
+ };
471
+
472
+ /**
473
+ * The type of the tool. Currently, only `function` is supported.
474
+ */
475
+ export const MessagesType = {
476
+ Function: "function",
477
+ } as const;
478
+ /**
479
+ * The type of the tool. Currently, only `function` is supported.
480
+ */
481
+ export type MessagesType = ClosedEnum<typeof MessagesType>;
482
+
483
+ export type MessagesFunction = {
484
+ /**
485
+ * The name of the function to call.
486
+ */
487
+ name?: string | undefined;
488
+ /**
489
+ * The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
490
+ */
491
+ arguments?: string | undefined;
492
+ };
493
+
494
+ export type MessagesToolCalls = {
495
+ /**
496
+ * The ID of the tool call.
497
+ */
498
+ id: string;
499
+ /**
500
+ * The type of the tool. Currently, only `function` is supported.
501
+ */
502
+ type: MessagesType;
503
+ function: MessagesFunction;
504
+ /**
505
+ * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
506
+ */
507
+ thoughtSignature?: string | undefined;
508
+ };
509
+
510
+ export type MessagesAssistantMessage = {
511
+ /**
512
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
513
+ */
514
+ content?:
515
+ | string
516
+ | Array<
517
+ | (components.TextContentPartSchema & { type: "text" })
518
+ | components.RefusalPartSchema
519
+ | components.ReasoningPartSchema
520
+ | components.RedactedReasoningPartSchema
521
+ >
522
+ | null
523
+ | undefined;
524
+ /**
525
+ * The refusal message by the assistant.
526
+ */
527
+ refusal?: string | null | undefined;
528
+ /**
529
+ * The role of the messages author, in this case `assistant`.
530
+ */
531
+ role: "assistant";
532
+ /**
533
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
534
+ */
535
+ name?: string | undefined;
536
+ /**
537
+ * Data about a previous audio response from the model.
538
+ */
539
+ audio?: MessagesAudio | null | undefined;
540
+ /**
541
+ * The tool calls generated by the model, such as function calls.
542
+ */
543
+ toolCalls?: Array<MessagesToolCalls> | undefined;
544
+ };
545
+
546
+ /**
547
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
548
+ */
549
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyType = {
550
+ Ephemeral: "ephemeral",
551
+ } as const;
552
+ /**
553
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
554
+ */
555
+ export type DeploymentGetConfig2DeploymentsRequestRequestBodyType = ClosedEnum<
556
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
557
+ >;
558
+
559
+ /**
560
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
561
+ *
562
+ * @remarks
563
+ *
564
+ * - `5m`: 5 minutes
565
+ * - `1h`: 1 hour
566
+ *
567
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
568
+ */
569
+ export const TwoTtl = {
570
+ Fivem: "5m",
571
+ Oneh: "1h",
572
+ } as const;
573
+ /**
574
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
575
+ *
576
+ * @remarks
577
+ *
578
+ * - `5m`: 5 minutes
579
+ * - `1h`: 1 hour
580
+ *
581
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
582
+ */
583
+ export type TwoTtl = ClosedEnum<typeof TwoTtl>;
584
+
585
+ export type TwoCacheControl = {
586
+ /**
587
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
588
+ */
589
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyType;
590
+ /**
591
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
592
+ *
593
+ * @remarks
594
+ *
595
+ * - `5m`: 5 minutes
596
+ * - `1h`: 1 hour
597
+ *
598
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
599
+ */
600
+ ttl?: TwoTtl | undefined;
601
+ };
602
+
603
+ export type Two4 = {
604
+ /**
605
+ * The type of the content part. Always `file`.
606
+ */
607
+ type: "file";
608
+ cacheControl?: TwoCacheControl | undefined;
609
+ /**
610
+ * File data for the content part. Must contain either file_data or uri, but not both.
611
+ */
612
+ file: components.FileContentPartSchema;
613
+ };
614
+
615
+ export type DeploymentGetConfigContentDeploymentsRequest2 =
616
+ | (components.TextContentPartSchema & { type: "text" })
617
+ | components.ImageContentPartSchema
618
+ | components.AudioContentPartSchema
619
+ | Two4;
620
+
621
+ /**
622
+ * The contents of the user message.
623
+ */
624
+ export type DeploymentGetConfigMessagesDeploymentsContent =
625
+ | string
626
+ | Array<
627
+ | (components.TextContentPartSchema & { type: "text" })
628
+ | components.ImageContentPartSchema
629
+ | components.AudioContentPartSchema
630
+ | Two4
631
+ >;
632
+
633
+ export type MessagesUserMessage = {
634
+ /**
635
+ * The role of the messages author, in this case `user`.
636
+ */
637
+ role: "user";
638
+ /**
639
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
640
+ */
641
+ name?: string | undefined;
642
+ /**
643
+ * The contents of the user message.
644
+ */
645
+ content:
646
+ | string
647
+ | Array<
648
+ | (components.TextContentPartSchema & { type: "text" })
649
+ | components.ImageContentPartSchema
650
+ | components.AudioContentPartSchema
651
+ | Two4
652
+ >;
653
+ };
654
+
655
+ /**
656
+ * The contents of the developer message.
657
+ */
658
+ export type DeploymentGetConfigMessagesContent =
659
+ | string
660
+ | Array<components.TextContentPartSchema>;
661
+
662
+ export type MessagesDeveloperMessage = {
663
+ /**
664
+ * The role of the messages author, in this case `developer`.
665
+ */
666
+ role: "developer";
667
+ /**
668
+ * The contents of the developer message.
669
+ */
670
+ content: string | Array<components.TextContentPartSchema>;
671
+ /**
672
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
673
+ */
674
+ name?: string | undefined;
675
+ };
676
+
677
+ /**
678
+ * The contents of the system message.
679
+ */
680
+ export type MessagesContent = string | Array<components.TextContentPartSchema>;
681
+
682
+ /**
683
+ * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
684
+ */
685
+ export type MessagesSystemMessage = {
686
+ /**
687
+ * The role of the messages author, in this case `system`.
688
+ */
689
+ role: "system";
690
+ /**
691
+ * The contents of the system message.
692
+ */
693
+ content: string | Array<components.TextContentPartSchema>;
694
+ /**
695
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
696
+ */
697
+ name?: string | undefined;
698
+ };
699
+
700
+ export type DeploymentGetConfigMessages =
701
+ | MessagesSystemMessage
702
+ | MessagesDeveloperMessage
703
+ | MessagesUserMessage
704
+ | MessagesAssistantMessage
705
+ | MessagesToolMessage;
706
+
707
+ /**
708
+ * Metadata about the document
709
+ */
710
+ export type Metadata = {
711
+ /**
712
+ * Name of the file the text is from.
713
+ */
714
+ fileName?: string | undefined;
715
+ /**
716
+ * Content type of the file the text is from.
717
+ */
718
+ fileType?: string | undefined;
719
+ /**
720
+ * The page number the text is from.
721
+ */
722
+ pageNumber?: number | undefined;
723
+ };
724
+
725
+ export type Documents = {
726
+ /**
727
+ * The text content of the document
728
+ */
729
+ text: string;
730
+ /**
731
+ * Metadata about the document
732
+ */
733
+ metadata?: Metadata | undefined;
734
+ };
735
+
736
+ export type InvokeOptions = {
737
+ /**
738
+ * Whether to include the retrieved knowledge chunks in the response.
739
+ */
740
+ includeRetrievals?: boolean | undefined;
741
+ /**
742
+ * Whether to include the usage metrics in the response.
743
+ */
744
+ includeUsage?: boolean | undefined;
745
+ /**
746
+ * A mock response to use instead of calling the LLM API. This is useful for testing purposes. When provided, the system will return a response object with this content as the completion, without making an actual API call to the LLM provider. This works for both streaming and non-streaming requests. Mock responses will not generate logs, traces or be counted for your plan usage.
747
+ */
748
+ mockResponse?: string | undefined;
749
+ };
750
+
751
+ export type Thread = {
752
+ /**
753
+ * Unique thread identifier to group related invocations.
754
+ */
755
+ id: string;
756
+ /**
757
+ * Optional tags to differentiate or categorize threads
758
+ */
759
+ tags?: Array<string> | undefined;
760
+ };
761
+
762
+ /**
763
+ * Exists
764
+ */
765
+ export type OrExists = {
766
+ exists: boolean;
767
+ };
768
+
769
+ export type DeploymentGetConfigOrNin = string | number | boolean;
770
+
771
+ /**
772
+ * Not in
773
+ */
774
+ export type OrNin = {
775
+ nin: Array<string | number | boolean>;
776
+ };
777
+
778
+ export type DeploymentGetConfigOrIn = string | number | boolean;
779
+
780
+ /**
781
+ * In
782
+ */
783
+ export type OrIn = {
784
+ in: Array<string | number | boolean>;
785
+ };
786
+
787
+ /**
788
+ * Less than or equal to
789
+ */
790
+ export type OrLte = {
791
+ lte: number;
792
+ };
793
+
794
+ /**
795
+ * Less than
796
+ */
797
+ export type OrLt = {
798
+ lt: number;
799
+ };
800
+
801
+ /**
802
+ * Greater than or equal to
803
+ */
804
+ export type OrGte = {
805
+ gte: number;
806
+ };
807
+
808
+ /**
809
+ * Greater than
810
+ */
811
+ export type OrGt = {
812
+ gt: number;
813
+ };
814
+
815
+ export type DeploymentGetConfigOrNe = string | number | boolean;
816
+
817
+ /**
818
+ * Not equal to
819
+ */
820
+ export type OrNe = {
821
+ ne: string | number | boolean;
822
+ };
823
+
824
+ export type DeploymentGetConfigOrEq = string | number | boolean;
825
+
826
+ /**
827
+ * Equal to
828
+ */
829
+ export type OrEq = {
830
+ eq: string | number | boolean;
831
+ };
832
+
833
+ export type KnowledgeFilterOr =
834
+ | OrEq
835
+ | OrNe
836
+ | OrGt
837
+ | OrGte
838
+ | OrLt
839
+ | OrLte
840
+ | OrIn
841
+ | OrNin
842
+ | OrExists;
843
+
844
+ /**
845
+ * Or
846
+ */
847
+ export type Or = {
848
+ or: Array<
849
+ {
850
+ [k: string]:
851
+ | OrEq
852
+ | OrNe
853
+ | OrGt
854
+ | OrGte
855
+ | OrLt
856
+ | OrLte
857
+ | OrIn
858
+ | OrNin
859
+ | OrExists;
860
+ }
861
+ >;
862
+ };
863
+
864
+ /**
865
+ * Exists
866
+ */
867
+ export type AndExists = {
868
+ exists: boolean;
869
+ };
870
+
871
+ export type DeploymentGetConfigAndNin = string | number | boolean;
872
+
873
+ /**
874
+ * Not in
875
+ */
876
+ export type AndNin = {
877
+ nin: Array<string | number | boolean>;
878
+ };
879
+
880
+ export type DeploymentGetConfigAndIn = string | number | boolean;
881
+
882
+ /**
883
+ * In
884
+ */
885
+ export type AndIn = {
886
+ in: Array<string | number | boolean>;
887
+ };
888
+
889
+ /**
890
+ * Less than or equal to
891
+ */
892
+ export type AndLte = {
893
+ lte: number;
894
+ };
895
+
896
+ /**
897
+ * Less than
898
+ */
899
+ export type AndLt = {
900
+ lt: number;
901
+ };
902
+
903
+ /**
904
+ * Greater than or equal to
905
+ */
906
+ export type AndGte = {
907
+ gte: number;
908
+ };
909
+
910
+ /**
911
+ * Greater than
912
+ */
913
+ export type AndGt = {
914
+ gt: number;
915
+ };
916
+
917
+ export type DeploymentGetConfigAndNe = string | number | boolean;
918
+
919
+ /**
920
+ * Not equal to
921
+ */
922
+ export type AndNe = {
923
+ ne: string | number | boolean;
924
+ };
925
+
926
+ export type DeploymentGetConfigAndEq = string | number | boolean;
927
+
928
+ /**
929
+ * Equal to
930
+ */
931
+ export type AndEq = {
932
+ eq: string | number | boolean;
933
+ };
934
+
935
+ export type KnowledgeFilterAnd =
936
+ | AndEq
937
+ | AndNe
938
+ | AndGt
939
+ | AndGte
940
+ | AndLt
941
+ | AndLte
942
+ | AndIn
943
+ | AndNin
944
+ | AndExists;
945
+
946
+ /**
947
+ * And
948
+ */
949
+ export type And = {
950
+ and: Array<
951
+ {
952
+ [k: string]:
953
+ | AndEq
954
+ | AndNe
955
+ | AndGt
956
+ | AndGte
957
+ | AndLt
958
+ | AndLte
959
+ | AndIn
960
+ | AndNin
961
+ | AndExists;
962
+ }
963
+ >;
964
+ };
965
+
966
+ /**
967
+ * Exists
968
+ */
969
+ export type Exists = {
970
+ exists: boolean;
971
+ };
972
+
973
+ export type OneNin = string | number | boolean;
974
+
975
+ /**
976
+ * Not in
977
+ */
978
+ export type Nin = {
979
+ nin: Array<string | number | boolean>;
980
+ };
981
+
982
+ export type OneIn = string | number | boolean;
983
+
984
+ /**
985
+ * In
986
+ */
987
+ export type In = {
988
+ in: Array<string | number | boolean>;
989
+ };
990
+
991
+ /**
992
+ * Less than or equal to
993
+ */
994
+ export type Lte = {
995
+ lte: number;
996
+ };
997
+
998
+ /**
999
+ * Less than
1000
+ */
1001
+ export type Lt = {
1002
+ lt: number;
1003
+ };
1004
+
1005
+ /**
1006
+ * Greater than or equal to
1007
+ */
1008
+ export type Gte = {
1009
+ gte: number;
1010
+ };
1011
+
1012
+ /**
1013
+ * Greater than
1014
+ */
1015
+ export type Gt = {
1016
+ gt: number;
1017
+ };
1018
+
1019
+ export type OneNe = string | number | boolean;
1020
+
1021
+ /**
1022
+ * Not equal to
1023
+ */
1024
+ export type Ne = {
1025
+ ne: string | number | boolean;
1026
+ };
1027
+
1028
+ export type OneEq = string | number | boolean;
1029
+
1030
+ /**
1031
+ * Equal to
1032
+ */
1033
+ export type Eq = {
1034
+ eq: string | number | boolean;
1035
+ };
1036
+
1037
+ export type KnowledgeFilter1 =
1038
+ | Eq
1039
+ | Ne
1040
+ | Gt
1041
+ | Gte
1042
+ | Lt
1043
+ | Lte
1044
+ | In
1045
+ | Nin
1046
+ | Exists;
1047
+
1048
+ /**
1049
+ * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1050
+ */
1051
+ export type KnowledgeFilter = And | Or | {
1052
+ [k: string]: Eq | Ne | Gt | Gte | Lt | Lte | In | Nin | Exists;
1053
+ };
1054
+
1055
+ export type DeploymentGetConfigRequestBody = {
1056
+ /**
1057
+ * The deployment key to invoke
1058
+ */
1059
+ key: string;
1060
+ /**
1061
+ * Key-value pairs variables to replace in your prompts. If a variable is not provided that is defined in the prompt, the default variables are used.
1062
+ */
1063
+ inputs?: { [k: string]: any } | undefined;
1064
+ /**
1065
+ * Key-value pairs that match your data model and fields declared in your deployment routing configuration
1066
+ */
1067
+ context?: { [k: string]: any } | undefined;
1068
+ /**
1069
+ * A list of messages to include after the `System` message, but before the `User` and `Assistant` pairs configured in your deployment.
1070
+ */
1071
+ prefixMessages?:
1072
+ | Array<
1073
+ | SystemMessage
1074
+ | DeveloperMessage
1075
+ | UserMessage
1076
+ | AssistantMessage
1077
+ | ToolMessage
1078
+ >
1079
+ | undefined;
1080
+ /**
1081
+ * A list of messages to send to the deployment.
1082
+ */
1083
+ messages?:
1084
+ | Array<
1085
+ | MessagesSystemMessage
1086
+ | MessagesDeveloperMessage
1087
+ | MessagesUserMessage
1088
+ | MessagesAssistantMessage
1089
+ | MessagesToolMessage
1090
+ >
1091
+ | undefined;
1092
+ /**
1093
+ * Information about the identity making the request. If the identity does not exist, it will be created automatically.
1094
+ */
1095
+ identity?: components.PublicIdentity | undefined;
1096
+ /**
1097
+ * A list of file IDs that are associated with the deployment request.
1098
+ */
1099
+ fileIds?: Array<string> | undefined;
1100
+ /**
1101
+ * Key-value pairs that you want to attach to the log generated by this request.
1102
+ */
1103
+ metadata?: { [k: string]: any } | undefined;
1104
+ /**
1105
+ * Utilized for passing additional parameters to the model provider. Exercise caution when using this feature, as the included parameters will overwrite any parameters specified in the deployment prompt configuration.
1106
+ */
1107
+ extraParams?: { [k: string]: any } | undefined;
1108
+ /**
1109
+ * A list of documents from your external knowledge base (e.g., chunks retrieved from your own vector database or RAG pipeline) that provide context for the model response. These documents can be used by evaluators and guardrails to assess the relevance and accuracy of the model output against the provided context.
1110
+ */
1111
+ documents?: Array<Documents> | undefined;
1112
+ invokeOptions?: InvokeOptions | undefined;
1113
+ thread?: Thread | undefined;
1114
+ /**
1115
+ * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1116
+ */
1117
+ knowledgeFilter?: And | Or | {
1118
+ [k: string]: Eq | Ne | Gt | Gte | Lt | Lte | In | Nin | Exists;
1119
+ } | undefined;
1120
+ };
1121
+
1122
+ /**
1123
+ * The type of the model. Current `chat`,`completion` and `image` are supported
1124
+ */
1125
+ export const DeploymentGetConfigType = {
1126
+ Chat: "chat",
1127
+ Completion: "completion",
1128
+ Embedding: "embedding",
1129
+ Image: "image",
1130
+ Tts: "tts",
1131
+ Stt: "stt",
1132
+ Rerank: "rerank",
1133
+ Ocr: "ocr",
1134
+ Moderation: "moderation",
1135
+ Vision: "vision",
1136
+ } as const;
1137
+ /**
1138
+ * The type of the model. Current `chat`,`completion` and `image` are supported
1139
+ */
1140
+ export type DeploymentGetConfigType = ClosedEnum<
1141
+ typeof DeploymentGetConfigType
1142
+ >;
1143
+
1144
+ /**
1145
+ * The role of the prompt message
1146
+ */
1147
+ export const DeploymentGetConfigRole = {
1148
+ System: "system",
1149
+ Developer: "developer",
1150
+ Assistant: "assistant",
1151
+ User: "user",
1152
+ Exception: "exception",
1153
+ Tool: "tool",
1154
+ Prompt: "prompt",
1155
+ Correction: "correction",
1156
+ ExpectedOutput: "expected_output",
1157
+ } as const;
1158
+ /**
1159
+ * The role of the prompt message
1160
+ */
1161
+ export type DeploymentGetConfigRole = ClosedEnum<
1162
+ typeof DeploymentGetConfigRole
1163
+ >;
1164
+
1165
+ export type DeploymentGetConfig2File = {
1166
+ /**
1167
+ * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
1168
+ */
1169
+ fileData?: string | undefined;
1170
+ /**
1171
+ * URL to the file. Only supported by Anthropic Claude models for PDF files.
1172
+ */
1173
+ uri?: string | undefined;
1174
+ /**
1175
+ * MIME type of the file (e.g., application/pdf, image/png)
1176
+ */
1177
+ mimeType?: string | undefined;
1178
+ /**
1179
+ * The name of the file, used when passing the file to the model as a string.
1180
+ */
1181
+ filename?: string | undefined;
1182
+ };
1183
+
1184
+ export type Two3 = {
1185
+ /**
1186
+ * The type of the content part. Always `file`.
1187
+ */
1188
+ type: "file";
1189
+ file: DeploymentGetConfig2File;
1190
+ };
1191
+
1192
+ export type TwoImageUrl = {
1193
+ /**
1194
+ * The orq.ai id of the image
1195
+ */
1196
+ id?: string | undefined;
1197
+ /**
1198
+ * Either a URL of the image or the base64 encoded data URI.
1199
+ */
1200
+ url: string;
1201
+ /**
1202
+ * Specifies the detail level of the image. Currently only supported with OpenAI models
1203
+ */
1204
+ detail?: string | undefined;
1205
+ };
1206
+
1207
+ /**
1208
+ * The image part of the prompt message. Only supported with vision models.
1209
+ */
1210
+ export type DeploymentGetConfig22 = {
1211
+ type: "image_url";
1212
+ imageUrl: TwoImageUrl;
1213
+ };
1214
+
1215
+ /**
1216
+ * Text content part of a prompt message
1217
+ */
1218
+ export type Two1 = {
1219
+ type: "text";
1220
+ text: string;
1221
+ };
1222
+
1223
+ export type DeploymentGetConfigContentDeploymentsResponse2 =
1224
+ | Two1
1225
+ | DeploymentGetConfig22
1226
+ | Two3;
1227
+
1228
+ /**
1229
+ * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
1230
+ */
1231
+ export type DeploymentGetConfigContent =
1232
+ | string
1233
+ | Array<Two1 | DeploymentGetConfig22 | Two3>;
1234
+
1235
+ export const DeploymentGetConfigDeploymentsResponse200Type = {
1236
+ Function: "function",
1237
+ } as const;
1238
+ export type DeploymentGetConfigDeploymentsResponse200Type = ClosedEnum<
1239
+ typeof DeploymentGetConfigDeploymentsResponse200Type
1240
+ >;
1241
+
1242
+ export type DeploymentGetConfigDeploymentsFunction = {
1243
+ name: string;
1244
+ /**
1245
+ * JSON string arguments for the functions
1246
+ */
1247
+ arguments: string;
1248
+ };
1249
+
1250
+ export type DeploymentGetConfigToolCalls = {
1251
+ id?: string | undefined;
1252
+ index?: number | undefined;
1253
+ type: DeploymentGetConfigDeploymentsResponse200Type;
1254
+ function: DeploymentGetConfigDeploymentsFunction;
1255
+ };
1256
+
1257
+ export type DeploymentGetConfigDeploymentsMessages = {
1258
+ /**
1259
+ * The role of the prompt message
1260
+ */
1261
+ role: DeploymentGetConfigRole;
1262
+ /**
1263
+ * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
1264
+ */
1265
+ content: string | Array<Two1 | DeploymentGetConfig22 | Two3> | null;
1266
+ toolCalls?: Array<DeploymentGetConfigToolCalls> | undefined;
1267
+ toolCallId?: string | null | undefined;
1268
+ };
1269
+
1270
+ /**
1271
+ * Only supported on `image` models.
1272
+ */
1273
+ export const DeploymentGetConfigFormat = {
1274
+ Url: "url",
1275
+ B64Json: "b64_json",
1276
+ Text: "text",
1277
+ JsonObject: "json_object",
1278
+ } as const;
1279
+ /**
1280
+ * Only supported on `image` models.
1281
+ */
1282
+ export type DeploymentGetConfigFormat = ClosedEnum<
1283
+ typeof DeploymentGetConfigFormat
1284
+ >;
1285
+
1286
+ export const Six = {
1287
+ Json: "json",
1288
+ Text: "text",
1289
+ Srt: "srt",
1290
+ VerboseJson: "verbose_json",
1291
+ Vtt: "vtt",
1292
+ } as const;
1293
+ export type Six = ClosedEnum<typeof Six>;
1294
+
1295
+ export const Five = {
1296
+ Url: "url",
1297
+ Base64Json: "base64_json",
1298
+ } as const;
1299
+ export type Five = ClosedEnum<typeof Five>;
1300
+
1301
+ export const ResponseFormat4 = {
1302
+ Mp3: "mp3",
1303
+ Opus: "opus",
1304
+ Aac: "aac",
1305
+ Flac: "flac",
1306
+ Wav: "wav",
1307
+ Pcm: "pcm",
1308
+ } as const;
1309
+ export type ResponseFormat4 = ClosedEnum<typeof ResponseFormat4>;
1310
+
1311
+ export const DeploymentGetConfigResponseFormatDeploymentsType = {
1312
+ Text: "text",
1313
+ } as const;
1314
+ export type DeploymentGetConfigResponseFormatDeploymentsType = ClosedEnum<
1315
+ typeof DeploymentGetConfigResponseFormatDeploymentsType
1316
+ >;
1317
+
1318
+ export type ResponseFormat3 = {
1319
+ type: DeploymentGetConfigResponseFormatDeploymentsType;
1320
+ };
1321
+
1322
+ export const DeploymentGetConfigResponseFormatType = {
1323
+ JsonObject: "json_object",
1324
+ } as const;
1325
+ export type DeploymentGetConfigResponseFormatType = ClosedEnum<
1326
+ typeof DeploymentGetConfigResponseFormatType
1327
+ >;
1328
+
1329
+ export type ResponseFormat2 = {
1330
+ type: DeploymentGetConfigResponseFormatType;
1331
+ };
1332
+
1333
+ export const DeploymentGetConfigResponseFormatDeploymentsResponseType = {
1334
+ JsonSchema: "json_schema",
1335
+ } as const;
1336
+ export type DeploymentGetConfigResponseFormatDeploymentsResponseType =
1337
+ ClosedEnum<typeof DeploymentGetConfigResponseFormatDeploymentsResponseType>;
1338
+
1339
+ export type DeploymentGetConfigResponseFormatJsonSchema = {
1340
+ name: string;
1341
+ description?: string | null | undefined;
1342
+ strict?: boolean | undefined;
1343
+ schema: { [k: string]: any };
1344
+ };
1345
+
1346
+ export type ResponseFormat1 = {
1347
+ type: DeploymentGetConfigResponseFormatDeploymentsResponseType;
1348
+ displayName?: string | undefined;
1349
+ jsonSchema: DeploymentGetConfigResponseFormatJsonSchema;
1350
+ };
1351
+
1352
+ /**
1353
+ * An object specifying the format that the model must output.
1354
+ *
1355
+ * @remarks
1356
+ *
1357
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
1358
+ *
1359
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
1360
+ *
1361
+ * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
1362
+ */
1363
+ export type DeploymentGetConfigResponseFormat =
1364
+ | ResponseFormat1
1365
+ | ResponseFormat2
1366
+ | ResponseFormat3
1367
+ | ResponseFormat4
1368
+ | Five
1369
+ | Six;
1370
+
1371
+ /**
1372
+ * Create a cache control breakpoint. Accepts only the value "ephemeral".
1373
+ */
1374
+ export const DeploymentGetConfigDeploymentsResponseType = {
1375
+ Ephemeral: "ephemeral",
1376
+ } as const;
1377
+ /**
1378
+ * Create a cache control breakpoint. Accepts only the value "ephemeral".
1379
+ */
1380
+ export type DeploymentGetConfigDeploymentsResponseType = ClosedEnum<
1381
+ typeof DeploymentGetConfigDeploymentsResponseType
1382
+ >;
1383
+
1384
+ /**
1385
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1386
+ *
1387
+ * @remarks
1388
+ *
1389
+ * - `5m`: 5 minutes
1390
+ * - `1h`: 1 hour
1391
+ *
1392
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1393
+ */
1394
+ export const DeploymentGetConfigTtl = {
1395
+ Fivem: "5m",
1396
+ Oneh: "1h",
1397
+ } as const;
1398
+ /**
1399
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1400
+ *
1401
+ * @remarks
1402
+ *
1403
+ * - `5m`: 5 minutes
1404
+ * - `1h`: 1 hour
1405
+ *
1406
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1407
+ */
1408
+ export type DeploymentGetConfigTtl = ClosedEnum<typeof DeploymentGetConfigTtl>;
1409
+
1410
+ /**
1411
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
1412
+ */
1413
+ export type DeploymentGetConfigCacheControl = {
1414
+ /**
1415
+ * Create a cache control breakpoint. Accepts only the value "ephemeral".
1416
+ */
1417
+ type: DeploymentGetConfigDeploymentsResponseType;
1418
+ /**
1419
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1420
+ *
1421
+ * @remarks
1422
+ *
1423
+ * - `5m`: 5 minutes
1424
+ * - `1h`: 1 hour
1425
+ *
1426
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1427
+ */
1428
+ ttl: DeploymentGetConfigTtl;
1429
+ };
1430
+
1431
+ /**
1432
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
1433
+ */
1434
+ export const PhotoRealVersion = {
1435
+ V1: "v1",
1436
+ V2: "v2",
1437
+ } as const;
1438
+ /**
1439
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
1440
+ */
1441
+ export type PhotoRealVersion = ClosedEnum<typeof PhotoRealVersion>;
1442
+
1443
+ /**
1444
+ * The format to return the embeddings
1445
+ */
1446
+ export const DeploymentGetConfigEncodingFormat = {
1447
+ Float: "float",
1448
+ Base64: "base64",
1449
+ } as const;
1450
+ /**
1451
+ * The format to return the embeddings
1452
+ */
1453
+ export type DeploymentGetConfigEncodingFormat = ClosedEnum<
1454
+ typeof DeploymentGetConfigEncodingFormat
1455
+ >;
1456
+
1457
+ /**
1458
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1459
+ */
1460
+ export const DeploymentGetConfigReasoningEffort = {
1461
+ None: "none",
1462
+ Disable: "disable",
1463
+ Minimal: "minimal",
1464
+ Low: "low",
1465
+ Medium: "medium",
1466
+ High: "high",
1467
+ } as const;
1468
+ /**
1469
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1470
+ */
1471
+ export type DeploymentGetConfigReasoningEffort = ClosedEnum<
1472
+ typeof DeploymentGetConfigReasoningEffort
1473
+ >;
1474
+
1475
+ /**
1476
+ * Controls the verbosity of the model output.
1477
+ */
1478
+ export const DeploymentGetConfigVerbosity = {
1479
+ Low: "low",
1480
+ Medium: "medium",
1481
+ High: "high",
1482
+ } as const;
1483
+ /**
1484
+ * Controls the verbosity of the model output.
1485
+ */
1486
+ export type DeploymentGetConfigVerbosity = ClosedEnum<
1487
+ typeof DeploymentGetConfigVerbosity
1488
+ >;
1489
+
1490
+ /**
1491
+ * The level of thinking to use for the model. Only supported by `Google AI`
1492
+ */
1493
+ export const ThinkingLevel = {
1494
+ Minimal: "minimal",
1495
+ Low: "low",
1496
+ Medium: "medium",
1497
+ High: "high",
1498
+ } as const;
1499
+ /**
1500
+ * The level of thinking to use for the model. Only supported by `Google AI`
1501
+ */
1502
+ export type ThinkingLevel = ClosedEnum<typeof ThinkingLevel>;
1503
+
1504
+ /**
1505
+ * Model Parameters: Not all parameters apply to every model
1506
+ */
1507
+ export type DeploymentGetConfigParameters = {
1508
+ /**
1509
+ * Only supported on `chat` and `completion` models.
1510
+ */
1511
+ temperature?: number | undefined;
1512
+ /**
1513
+ * Only supported on `chat` and `completion` models.
1514
+ */
1515
+ maxTokens?: number | undefined;
1516
+ /**
1517
+ * Only supported on `chat` and `completion` models.
1518
+ */
1519
+ topK?: number | undefined;
1520
+ /**
1521
+ * Only supported on `chat` and `completion` models.
1522
+ */
1523
+ topP?: number | undefined;
1524
+ /**
1525
+ * Only supported on `chat` and `completion` models.
1526
+ */
1527
+ frequencyPenalty?: number | undefined;
1528
+ /**
1529
+ * Only supported on `chat` and `completion` models.
1530
+ */
1531
+ presencePenalty?: number | undefined;
1532
+ /**
1533
+ * Only supported on `image` models.
1534
+ */
1535
+ numImages?: number | undefined;
1536
+ /**
1537
+ * Best effort deterministic seed for the model. Currently only OpenAI models support these
1538
+ */
1539
+ seed?: number | undefined;
1540
+ /**
1541
+ * Only supported on `image` models.
1542
+ */
1543
+ format?: DeploymentGetConfigFormat | undefined;
1544
+ /**
1545
+ * Only supported on `image` models.
1546
+ */
1547
+ dimensions?: string | undefined;
1548
+ /**
1549
+ * Only supported on `image` models.
1550
+ */
1551
+ quality?: string | undefined;
1552
+ /**
1553
+ * Only supported on `image` models.
1554
+ */
1555
+ style?: string | undefined;
1556
+ /**
1557
+ * An object specifying the format that the model must output.
1558
+ *
1559
+ * @remarks
1560
+ *
1561
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
1562
+ *
1563
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
1564
+ *
1565
+ * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
1566
+ */
1567
+ responseFormat?:
1568
+ | ResponseFormat1
1569
+ | ResponseFormat2
1570
+ | ResponseFormat3
1571
+ | ResponseFormat4
1572
+ | Five
1573
+ | Six
1574
+ | null
1575
+ | undefined;
1576
+ /**
1577
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
1578
+ */
1579
+ cacheControl?: DeploymentGetConfigCacheControl | null | undefined;
1580
+ /**
1581
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
1582
+ */
1583
+ photoRealVersion?: PhotoRealVersion | undefined;
1584
+ /**
1585
+ * The format to return the embeddings
1586
+ */
1587
+ encodingFormat?: DeploymentGetConfigEncodingFormat | undefined;
1588
+ /**
1589
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1590
+ */
1591
+ reasoningEffort?: DeploymentGetConfigReasoningEffort | undefined;
1592
+ /**
1593
+ * Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
1594
+ */
1595
+ budgetTokens?: number | undefined;
1596
+ /**
1597
+ * Controls the verbosity of the model output.
1598
+ */
1599
+ verbosity?: DeploymentGetConfigVerbosity | undefined;
1600
+ /**
1601
+ * The level of thinking to use for the model. Only supported by `Google AI`
1602
+ */
1603
+ thinkingLevel?: ThinkingLevel | undefined;
1604
+ };
1605
+
1606
+ /**
1607
+ * The type of the tool. Currently, only `function` is supported.
1608
+ */
1609
+ export const DeploymentGetConfigDeploymentsType = {
1610
+ Function: "function",
1611
+ } as const;
1612
+ /**
1613
+ * The type of the tool. Currently, only `function` is supported.
1614
+ */
1615
+ export type DeploymentGetConfigDeploymentsType = ClosedEnum<
1616
+ typeof DeploymentGetConfigDeploymentsType
1617
+ >;
1618
+
1619
+ export type DeploymentGetConfigFunction = {
1620
+ /**
1621
+ * 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.
1622
+ */
1623
+ name: string;
1624
+ /**
1625
+ * A description of what the function does, used by the model to choose when and how to call the function.
1626
+ */
1627
+ description?: string | undefined;
1628
+ /**
1629
+ * The parameters the functions accepts, described as a JSON Schema object.
1630
+ *
1631
+ * @remarks
1632
+ *
1633
+ * Omitting `parameters` defines a function with an empty parameter list.
1634
+ */
1635
+ parameters?: { [k: string]: any } | undefined;
1636
+ };
1637
+
1638
+ export type DeploymentGetConfigTools = {
1639
+ /**
1640
+ * The type of the tool. Currently, only `function` is supported.
1641
+ */
1642
+ type: DeploymentGetConfigDeploymentsType;
1643
+ function: DeploymentGetConfigFunction;
1644
+ };
1645
+
1646
+ /**
1647
+ * The deployment configuration
1648
+ */
1649
+ export type DeploymentGetConfigResponseBody = {
1650
+ /**
1651
+ * A unique identifier for the response. Can be used to add metrics to the transaction.
1652
+ */
1653
+ id: string;
1654
+ /**
1655
+ * The provider of the model
1656
+ */
1657
+ provider: string;
1658
+ /**
1659
+ * The model of the configuration
1660
+ */
1661
+ model: string;
1662
+ /**
1663
+ * The type of the model. Current `chat`,`completion` and `image` are supported
1664
+ */
1665
+ type?: DeploymentGetConfigType | undefined;
1666
+ /**
1667
+ * The current version of the deployment
1668
+ */
1669
+ version: string;
1670
+ messages: Array<DeploymentGetConfigDeploymentsMessages>;
1671
+ /**
1672
+ * Model Parameters: Not all parameters apply to every model
1673
+ */
1674
+ parameters: DeploymentGetConfigParameters;
1675
+ /**
1676
+ * A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for.
1677
+ */
1678
+ tools?: Array<DeploymentGetConfigTools> | undefined;
1679
+ };
1680
+
1681
+ /** @internal */
1682
+ export type DeploymentGetConfigContentDeployments2$Outbound =
1683
+ components.TextContentPartSchema$Outbound;
1684
+
1685
+ /** @internal */
1686
+ export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
1687
+ DeploymentGetConfigContentDeployments2$Outbound,
1688
+ z.ZodTypeDef,
1689
+ DeploymentGetConfigContentDeployments2
1690
+ > = components.TextContentPartSchema$outboundSchema;
1691
+
1692
+ export function deploymentGetConfigContentDeployments2ToJSON(
1693
+ deploymentGetConfigContentDeployments2:
1694
+ DeploymentGetConfigContentDeployments2,
1695
+ ): string {
1696
+ return JSON.stringify(
1697
+ DeploymentGetConfigContentDeployments2$outboundSchema.parse(
1698
+ deploymentGetConfigContentDeployments2,
1699
+ ),
1700
+ );
1701
+ }
1702
+
1703
+ /** @internal */
1704
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound =
1705
+ | string
1706
+ | Array<components.TextContentPartSchema$Outbound>;
1707
+
1708
+ /** @internal */
1709
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
1710
+ z.ZodType<
1711
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound,
1712
+ z.ZodTypeDef,
1713
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent
1714
+ > = z.union([
1715
+ z.string(),
1716
+ z.array(components.TextContentPartSchema$outboundSchema),
1717
+ ]);
1718
+
1719
+ export function deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContentToJSON(
1720
+ deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent:
1721
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
1722
+ ): string {
1723
+ return JSON.stringify(
1724
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema
1725
+ .parse(
1726
+ deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
1727
+ ),
1728
+ );
1729
+ }
1730
+
1731
+ /** @internal */
1732
+ export const DeploymentGetConfigPrefixMessagesType$outboundSchema:
1733
+ z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesType> = z.nativeEnum(
1734
+ DeploymentGetConfigPrefixMessagesType,
1735
+ );
1736
+
1737
+ /** @internal */
1738
+ export const PrefixMessagesTtl$outboundSchema: z.ZodNativeEnum<
1739
+ typeof PrefixMessagesTtl
1740
+ > = z.nativeEnum(PrefixMessagesTtl);
1741
+
1742
+ /** @internal */
1743
+ export type PrefixMessagesCacheControl$Outbound = {
1744
+ type: string;
1745
+ ttl: string;
1746
+ };
1747
+
1748
+ /** @internal */
1749
+ export const PrefixMessagesCacheControl$outboundSchema: z.ZodType<
1750
+ PrefixMessagesCacheControl$Outbound,
1751
+ z.ZodTypeDef,
1752
+ PrefixMessagesCacheControl
1753
+ > = z.object({
1754
+ type: DeploymentGetConfigPrefixMessagesType$outboundSchema,
1755
+ ttl: PrefixMessagesTtl$outboundSchema.default("5m"),
1756
+ });
1757
+
1758
+ export function prefixMessagesCacheControlToJSON(
1759
+ prefixMessagesCacheControl: PrefixMessagesCacheControl,
1760
+ ): string {
1761
+ return JSON.stringify(
1762
+ PrefixMessagesCacheControl$outboundSchema.parse(prefixMessagesCacheControl),
1763
+ );
1764
+ }
1765
+
1766
+ /** @internal */
1767
+ export type ToolMessage$Outbound = {
1768
+ role: "tool";
1769
+ content: string | Array<components.TextContentPartSchema$Outbound>;
1770
+ tool_call_id: string | null;
1771
+ cache_control?: PrefixMessagesCacheControl$Outbound | undefined;
1772
+ };
1773
+
1774
+ /** @internal */
1775
+ export const ToolMessage$outboundSchema: z.ZodType<
1776
+ ToolMessage$Outbound,
1777
+ z.ZodTypeDef,
1778
+ ToolMessage
1779
+ > = z.object({
1780
+ role: z.literal("tool"),
1781
+ content: z.union([
1782
+ z.string(),
1783
+ z.array(components.TextContentPartSchema$outboundSchema),
1784
+ ]),
1785
+ toolCallId: z.nullable(z.string()),
1786
+ cacheControl: z.lazy(() => PrefixMessagesCacheControl$outboundSchema)
1787
+ .optional(),
1788
+ }).transform((v) => {
1789
+ return remap$(v, {
1790
+ toolCallId: "tool_call_id",
1791
+ cacheControl: "cache_control",
1792
+ });
1793
+ });
1794
+
1795
+ export function toolMessageToJSON(toolMessage: ToolMessage): string {
1796
+ return JSON.stringify(ToolMessage$outboundSchema.parse(toolMessage));
1797
+ }
1798
+
1799
+ /** @internal */
1800
+ export type DeploymentGetConfigContent2$Outbound =
1801
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
1802
+ | components.RefusalPartSchema$Outbound
1803
+ | components.ReasoningPartSchema$Outbound
1804
+ | components.RedactedReasoningPartSchema$Outbound;
1805
+
1806
+ /** @internal */
1807
+ export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
1808
+ DeploymentGetConfigContent2$Outbound,
1809
+ z.ZodTypeDef,
1810
+ DeploymentGetConfigContent2
1811
+ > = z.union([
1812
+ components.TextContentPartSchema$outboundSchema.and(
1813
+ z.object({ type: z.literal("text") }),
1814
+ ),
1815
+ components.RefusalPartSchema$outboundSchema,
1816
+ components.ReasoningPartSchema$outboundSchema,
1817
+ components.RedactedReasoningPartSchema$outboundSchema,
1818
+ ]);
1819
+
1820
+ export function deploymentGetConfigContent2ToJSON(
1821
+ deploymentGetConfigContent2: DeploymentGetConfigContent2,
1822
+ ): string {
1823
+ return JSON.stringify(
1824
+ DeploymentGetConfigContent2$outboundSchema.parse(
1825
+ deploymentGetConfigContent2,
1826
+ ),
1827
+ );
1828
+ }
1829
+
1830
+ /** @internal */
1831
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound =
1832
+ | string
1833
+ | Array<
1834
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
1835
+ | components.RefusalPartSchema$Outbound
1836
+ | components.ReasoningPartSchema$Outbound
1837
+ | components.RedactedReasoningPartSchema$Outbound
1838
+ >;
1839
+
1840
+ /** @internal */
1841
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema:
1842
+ z.ZodType<
1843
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound,
1844
+ z.ZodTypeDef,
1845
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent
1846
+ > = z.union([
1847
+ z.string(),
1848
+ z.array(
1849
+ z.union([
1850
+ components.TextContentPartSchema$outboundSchema.and(
1851
+ z.object({ type: z.literal("text") }),
1852
+ ),
1853
+ components.RefusalPartSchema$outboundSchema,
1854
+ components.ReasoningPartSchema$outboundSchema,
1855
+ components.RedactedReasoningPartSchema$outboundSchema,
1856
+ ]),
1857
+ ),
1858
+ ]);
1859
+
1860
+ export function deploymentGetConfigPrefixMessagesDeploymentsRequestContentToJSON(
1861
+ deploymentGetConfigPrefixMessagesDeploymentsRequestContent:
1862
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent,
1863
+ ): string {
1864
+ return JSON.stringify(
1865
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema
1866
+ .parse(deploymentGetConfigPrefixMessagesDeploymentsRequestContent),
1867
+ );
1868
+ }
1869
+
1870
+ /** @internal */
1871
+ export type Audio$Outbound = {
1872
+ id: string;
1873
+ };
1874
+
1875
+ /** @internal */
1876
+ export const Audio$outboundSchema: z.ZodType<
1877
+ Audio$Outbound,
1878
+ z.ZodTypeDef,
1879
+ Audio
1880
+ > = z.object({
1881
+ id: z.string(),
1882
+ });
1883
+
1884
+ export function audioToJSON(audio: Audio): string {
1885
+ return JSON.stringify(Audio$outboundSchema.parse(audio));
1886
+ }
1887
+
1888
+ /** @internal */
1889
+ export const PrefixMessagesType$outboundSchema: z.ZodNativeEnum<
1890
+ typeof PrefixMessagesType
1891
+ > = z.nativeEnum(PrefixMessagesType);
1892
+
1893
+ /** @internal */
1894
+ export type PrefixMessagesFunction$Outbound = {
1895
+ name?: string | undefined;
1896
+ arguments?: string | undefined;
1897
+ };
1898
+
1899
+ /** @internal */
1900
+ export const PrefixMessagesFunction$outboundSchema: z.ZodType<
1901
+ PrefixMessagesFunction$Outbound,
1902
+ z.ZodTypeDef,
1903
+ PrefixMessagesFunction
1904
+ > = z.object({
1905
+ name: z.string().optional(),
1906
+ arguments: z.string().optional(),
1907
+ });
1908
+
1909
+ export function prefixMessagesFunctionToJSON(
1910
+ prefixMessagesFunction: PrefixMessagesFunction,
1911
+ ): string {
1912
+ return JSON.stringify(
1913
+ PrefixMessagesFunction$outboundSchema.parse(prefixMessagesFunction),
1914
+ );
1915
+ }
1916
+
1917
+ /** @internal */
1918
+ export type PrefixMessagesToolCalls$Outbound = {
1919
+ id: string;
1920
+ type: string;
1921
+ function: PrefixMessagesFunction$Outbound;
1922
+ thought_signature?: string | undefined;
1923
+ };
1924
+
1925
+ /** @internal */
1926
+ export const PrefixMessagesToolCalls$outboundSchema: z.ZodType<
1927
+ PrefixMessagesToolCalls$Outbound,
1928
+ z.ZodTypeDef,
1929
+ PrefixMessagesToolCalls
1930
+ > = z.object({
1931
+ id: z.string(),
1932
+ type: PrefixMessagesType$outboundSchema,
1933
+ function: z.lazy(() => PrefixMessagesFunction$outboundSchema),
1934
+ thoughtSignature: z.string().optional(),
1935
+ }).transform((v) => {
1936
+ return remap$(v, {
1937
+ thoughtSignature: "thought_signature",
1938
+ });
1939
+ });
1940
+
1941
+ export function prefixMessagesToolCallsToJSON(
1942
+ prefixMessagesToolCalls: PrefixMessagesToolCalls,
1943
+ ): string {
1944
+ return JSON.stringify(
1945
+ PrefixMessagesToolCalls$outboundSchema.parse(prefixMessagesToolCalls),
1946
+ );
1947
+ }
1948
+
1949
+ /** @internal */
1950
+ export type AssistantMessage$Outbound = {
1951
+ content?:
1952
+ | string
1953
+ | Array<
1954
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
1955
+ | components.RefusalPartSchema$Outbound
1956
+ | components.ReasoningPartSchema$Outbound
1957
+ | components.RedactedReasoningPartSchema$Outbound
1958
+ >
1959
+ | null
1960
+ | undefined;
1961
+ refusal?: string | null | undefined;
1962
+ role: "assistant";
1963
+ name?: string | undefined;
1964
+ audio?: Audio$Outbound | null | undefined;
1965
+ tool_calls?: Array<PrefixMessagesToolCalls$Outbound> | undefined;
1966
+ };
1967
+
1968
+ /** @internal */
1969
+ export const AssistantMessage$outboundSchema: z.ZodType<
1970
+ AssistantMessage$Outbound,
1971
+ z.ZodTypeDef,
1972
+ AssistantMessage
1973
+ > = z.object({
1974
+ content: z.nullable(
1975
+ z.union([
1976
+ z.string(),
1977
+ z.array(
1978
+ z.union([
1979
+ components.TextContentPartSchema$outboundSchema.and(
1980
+ z.object({ type: z.literal("text") }),
1981
+ ),
1982
+ components.RefusalPartSchema$outboundSchema,
1983
+ components.ReasoningPartSchema$outboundSchema,
1984
+ components.RedactedReasoningPartSchema$outboundSchema,
1985
+ ]),
1986
+ ),
1987
+ ]),
1988
+ ).optional(),
1989
+ refusal: z.nullable(z.string()).optional(),
1990
+ role: z.literal("assistant"),
1991
+ name: z.string().optional(),
1992
+ audio: z.nullable(z.lazy(() => Audio$outboundSchema)).optional(),
1993
+ toolCalls: z.array(z.lazy(() => PrefixMessagesToolCalls$outboundSchema))
1994
+ .optional(),
1995
+ }).transform((v) => {
1996
+ return remap$(v, {
1997
+ toolCalls: "tool_calls",
1998
+ });
1999
+ });
2000
+
2001
+ export function assistantMessageToJSON(
2002
+ assistantMessage: AssistantMessage,
2003
+ ): string {
2004
+ return JSON.stringify(
2005
+ AssistantMessage$outboundSchema.parse(assistantMessage),
2006
+ );
2007
+ }
2008
+
2009
+ /** @internal */
2010
+ export const DeploymentGetConfig2DeploymentsType$outboundSchema:
2011
+ z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsType> = z.nativeEnum(
2012
+ DeploymentGetConfig2DeploymentsType,
2013
+ );
2014
+
2015
+ /** @internal */
2016
+ export const Ttl$outboundSchema: z.ZodNativeEnum<typeof Ttl> = z.nativeEnum(
2017
+ Ttl,
2018
+ );
2019
+
2020
+ /** @internal */
2021
+ export type CacheControl$Outbound = {
2022
+ type: string;
2023
+ ttl: string;
2024
+ };
2025
+
2026
+ /** @internal */
2027
+ export const CacheControl$outboundSchema: z.ZodType<
2028
+ CacheControl$Outbound,
2029
+ z.ZodTypeDef,
2030
+ CacheControl
2031
+ > = z.object({
2032
+ type: DeploymentGetConfig2DeploymentsType$outboundSchema,
2033
+ ttl: Ttl$outboundSchema.default("5m"),
2034
+ });
2035
+
2036
+ export function cacheControlToJSON(cacheControl: CacheControl): string {
2037
+ return JSON.stringify(CacheControl$outboundSchema.parse(cacheControl));
2038
+ }
2039
+
2040
+ /** @internal */
2041
+ export type Four$Outbound = {
2042
+ type: "file";
2043
+ cache_control?: CacheControl$Outbound | undefined;
2044
+ file: components.FileContentPartSchema$Outbound;
2045
+ };
2046
+
2047
+ /** @internal */
2048
+ export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
2049
+ z.object({
2050
+ type: z.literal("file"),
2051
+ cacheControl: z.lazy(() => CacheControl$outboundSchema).optional(),
2052
+ file: components.FileContentPartSchema$outboundSchema,
2053
+ }).transform((v) => {
2054
+ return remap$(v, {
2055
+ cacheControl: "cache_control",
2056
+ });
2057
+ });
2058
+
2059
+ export function fourToJSON(four: Four): string {
2060
+ return JSON.stringify(Four$outboundSchema.parse(four));
2061
+ }
2062
+
2063
+ /** @internal */
2064
+ export type Content2$Outbound =
2065
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2066
+ | components.ImageContentPartSchema$Outbound
2067
+ | components.AudioContentPartSchema$Outbound
2068
+ | Four$Outbound;
2069
+
2070
+ /** @internal */
2071
+ export const Content2$outboundSchema: z.ZodType<
2072
+ Content2$Outbound,
2073
+ z.ZodTypeDef,
2074
+ Content2
2075
+ > = z.union([
2076
+ components.TextContentPartSchema$outboundSchema.and(
2077
+ z.object({ type: z.literal("text") }),
2078
+ ),
2079
+ components.ImageContentPartSchema$outboundSchema,
2080
+ components.AudioContentPartSchema$outboundSchema,
2081
+ z.lazy(() => Four$outboundSchema),
2082
+ ]);
2083
+
2084
+ export function content2ToJSON(content2: Content2): string {
2085
+ return JSON.stringify(Content2$outboundSchema.parse(content2));
2086
+ }
2087
+
2088
+ /** @internal */
2089
+ export type DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound =
2090
+ | string
2091
+ | Array<
2092
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2093
+ | components.ImageContentPartSchema$Outbound
2094
+ | components.AudioContentPartSchema$Outbound
2095
+ | Four$Outbound
2096
+ >;
2097
+
2098
+ /** @internal */
2099
+ export const DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema:
2100
+ z.ZodType<
2101
+ DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound,
2102
+ z.ZodTypeDef,
2103
+ DeploymentGetConfigPrefixMessagesDeploymentsContent
2104
+ > = z.union([
2105
+ z.string(),
2106
+ z.array(
2107
+ z.union([
2108
+ components.TextContentPartSchema$outboundSchema.and(
2109
+ z.object({ type: z.literal("text") }),
2110
+ ),
2111
+ components.ImageContentPartSchema$outboundSchema,
2112
+ components.AudioContentPartSchema$outboundSchema,
2113
+ z.lazy(() => Four$outboundSchema),
2114
+ ]),
2115
+ ),
2116
+ ]);
2117
+
2118
+ export function deploymentGetConfigPrefixMessagesDeploymentsContentToJSON(
2119
+ deploymentGetConfigPrefixMessagesDeploymentsContent:
2120
+ DeploymentGetConfigPrefixMessagesDeploymentsContent,
2121
+ ): string {
2122
+ return JSON.stringify(
2123
+ DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema.parse(
2124
+ deploymentGetConfigPrefixMessagesDeploymentsContent,
2125
+ ),
2126
+ );
2127
+ }
2128
+
2129
+ /** @internal */
2130
+ export type UserMessage$Outbound = {
2131
+ role: "user";
2132
+ name?: string | undefined;
2133
+ content:
2134
+ | string
2135
+ | Array<
2136
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2137
+ | components.ImageContentPartSchema$Outbound
2138
+ | components.AudioContentPartSchema$Outbound
2139
+ | Four$Outbound
2140
+ >;
2141
+ };
2142
+
2143
+ /** @internal */
2144
+ export const UserMessage$outboundSchema: z.ZodType<
2145
+ UserMessage$Outbound,
2146
+ z.ZodTypeDef,
2147
+ UserMessage
2148
+ > = z.object({
2149
+ role: z.literal("user"),
2150
+ name: z.string().optional(),
2151
+ content: z.union([
2152
+ z.string(),
2153
+ z.array(
2154
+ z.union([
2155
+ components.TextContentPartSchema$outboundSchema.and(
2156
+ z.object({ type: z.literal("text") }),
2157
+ ),
2158
+ components.ImageContentPartSchema$outboundSchema,
2159
+ components.AudioContentPartSchema$outboundSchema,
2160
+ z.lazy(() => Four$outboundSchema),
2161
+ ]),
2162
+ ),
2163
+ ]),
2164
+ });
2165
+
2166
+ export function userMessageToJSON(userMessage: UserMessage): string {
2167
+ return JSON.stringify(UserMessage$outboundSchema.parse(userMessage));
2168
+ }
2169
+
2170
+ /** @internal */
2171
+ export type DeploymentGetConfigPrefixMessagesContent$Outbound =
2172
+ | string
2173
+ | Array<components.TextContentPartSchema$Outbound>;
2174
+
2175
+ /** @internal */
2176
+ export const DeploymentGetConfigPrefixMessagesContent$outboundSchema: z.ZodType<
2177
+ DeploymentGetConfigPrefixMessagesContent$Outbound,
2178
+ z.ZodTypeDef,
2179
+ DeploymentGetConfigPrefixMessagesContent
2180
+ > = z.union([
2181
+ z.string(),
2182
+ z.array(components.TextContentPartSchema$outboundSchema),
2183
+ ]);
2184
+
2185
+ export function deploymentGetConfigPrefixMessagesContentToJSON(
2186
+ deploymentGetConfigPrefixMessagesContent:
2187
+ DeploymentGetConfigPrefixMessagesContent,
2188
+ ): string {
2189
+ return JSON.stringify(
2190
+ DeploymentGetConfigPrefixMessagesContent$outboundSchema.parse(
2191
+ deploymentGetConfigPrefixMessagesContent,
2192
+ ),
2193
+ );
2194
+ }
2195
+
2196
+ /** @internal */
2197
+ export type DeveloperMessage$Outbound = {
2198
+ role: "developer";
2199
+ content: string | Array<components.TextContentPartSchema$Outbound>;
2200
+ name?: string | undefined;
2201
+ };
2202
+
2203
+ /** @internal */
2204
+ export const DeveloperMessage$outboundSchema: z.ZodType<
2205
+ DeveloperMessage$Outbound,
2206
+ z.ZodTypeDef,
2207
+ DeveloperMessage
2208
+ > = z.object({
2209
+ role: z.literal("developer"),
2210
+ content: z.union([
2211
+ z.string(),
2212
+ z.array(components.TextContentPartSchema$outboundSchema),
2213
+ ]),
2214
+ name: z.string().optional(),
2215
+ });
2216
+
2217
+ export function developerMessageToJSON(
2218
+ developerMessage: DeveloperMessage,
2219
+ ): string {
2220
+ return JSON.stringify(
2221
+ DeveloperMessage$outboundSchema.parse(developerMessage),
2222
+ );
2223
+ }
2224
+
2225
+ /** @internal */
2226
+ export type PrefixMessagesContent$Outbound =
2227
+ | string
2228
+ | Array<components.TextContentPartSchema$Outbound>;
2229
+
2230
+ /** @internal */
2231
+ export const PrefixMessagesContent$outboundSchema: z.ZodType<
2232
+ PrefixMessagesContent$Outbound,
2233
+ z.ZodTypeDef,
2234
+ PrefixMessagesContent
2235
+ > = z.union([
2236
+ z.string(),
2237
+ z.array(components.TextContentPartSchema$outboundSchema),
2238
+ ]);
2239
+
2240
+ export function prefixMessagesContentToJSON(
2241
+ prefixMessagesContent: PrefixMessagesContent,
2242
+ ): string {
2243
+ return JSON.stringify(
2244
+ PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent),
2245
+ );
2246
+ }
2247
+
2248
+ /** @internal */
2249
+ export type SystemMessage$Outbound = {
2250
+ role: "system";
2251
+ content: string | Array<components.TextContentPartSchema$Outbound>;
2252
+ name?: string | undefined;
2253
+ };
2254
+
2255
+ /** @internal */
2256
+ export const SystemMessage$outboundSchema: z.ZodType<
2257
+ SystemMessage$Outbound,
2258
+ z.ZodTypeDef,
2259
+ SystemMessage
2260
+ > = z.object({
2261
+ role: z.literal("system"),
2262
+ content: z.union([
2263
+ z.string(),
2264
+ z.array(components.TextContentPartSchema$outboundSchema),
2265
+ ]),
2266
+ name: z.string().optional(),
2267
+ });
2268
+
2269
+ export function systemMessageToJSON(systemMessage: SystemMessage): string {
2270
+ return JSON.stringify(SystemMessage$outboundSchema.parse(systemMessage));
2271
+ }
2272
+
2273
+ /** @internal */
2274
+ export type PrefixMessages$Outbound =
2275
+ | SystemMessage$Outbound
2276
+ | DeveloperMessage$Outbound
2277
+ | UserMessage$Outbound
2278
+ | AssistantMessage$Outbound
2279
+ | ToolMessage$Outbound;
2280
+
2281
+ /** @internal */
2282
+ export const PrefixMessages$outboundSchema: z.ZodType<
2283
+ PrefixMessages$Outbound,
2284
+ z.ZodTypeDef,
2285
+ PrefixMessages
2286
+ > = z.union([
2287
+ z.lazy(() => SystemMessage$outboundSchema),
2288
+ z.lazy(() => DeveloperMessage$outboundSchema),
2289
+ z.lazy(() => UserMessage$outboundSchema),
2290
+ z.lazy(() => AssistantMessage$outboundSchema),
2291
+ z.lazy(() => ToolMessage$outboundSchema),
2292
+ ]);
2293
+
2294
+ export function prefixMessagesToJSON(prefixMessages: PrefixMessages): string {
2295
+ return JSON.stringify(PrefixMessages$outboundSchema.parse(prefixMessages));
2296
+ }
2297
+
2298
+ /** @internal */
2299
+ export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound =
2300
+ components.TextContentPartSchema$Outbound;
2301
+
2302
+ /** @internal */
2303
+ export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema:
2304
+ z.ZodType<
2305
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound,
2306
+ z.ZodTypeDef,
2307
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2
2308
+ > = components.TextContentPartSchema$outboundSchema;
2309
+
2310
+ export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2ToJSON(
2311
+ deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2:
2312
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2,
2313
+ ): string {
2314
+ return JSON.stringify(
2315
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema
2316
+ .parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2),
2317
+ );
2318
+ }
2319
+
2320
+ /** @internal */
2321
+ export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound =
2322
+ | string
2323
+ | Array<components.TextContentPartSchema$Outbound>;
2324
+
2325
+ /** @internal */
2326
+ export const DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
2327
+ z.ZodType<
2328
+ DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound,
2329
+ z.ZodTypeDef,
2330
+ DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent
2331
+ > = z.union([
2332
+ z.string(),
2333
+ z.array(components.TextContentPartSchema$outboundSchema),
2334
+ ]);
2335
+
2336
+ export function deploymentGetConfigMessagesDeploymentsRequestRequestBodyContentToJSON(
2337
+ deploymentGetConfigMessagesDeploymentsRequestRequestBodyContent:
2338
+ DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent,
2339
+ ): string {
2340
+ return JSON.stringify(
2341
+ DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema
2342
+ .parse(deploymentGetConfigMessagesDeploymentsRequestRequestBodyContent),
2343
+ );
2344
+ }
2345
+
2346
+ /** @internal */
2347
+ export const DeploymentGetConfigMessagesType$outboundSchema: z.ZodNativeEnum<
2348
+ typeof DeploymentGetConfigMessagesType
2349
+ > = z.nativeEnum(DeploymentGetConfigMessagesType);
2350
+
2351
+ /** @internal */
2352
+ export const MessagesTtl$outboundSchema: z.ZodNativeEnum<typeof MessagesTtl> = z
2353
+ .nativeEnum(MessagesTtl);
2354
+
2355
+ /** @internal */
2356
+ export type MessagesCacheControl$Outbound = {
2357
+ type: string;
2358
+ ttl: string;
2359
+ };
2360
+
2361
+ /** @internal */
2362
+ export const MessagesCacheControl$outboundSchema: z.ZodType<
2363
+ MessagesCacheControl$Outbound,
2364
+ z.ZodTypeDef,
2365
+ MessagesCacheControl
2366
+ > = z.object({
2367
+ type: DeploymentGetConfigMessagesType$outboundSchema,
2368
+ ttl: MessagesTtl$outboundSchema.default("5m"),
2369
+ });
2370
+
2371
+ export function messagesCacheControlToJSON(
2372
+ messagesCacheControl: MessagesCacheControl,
2373
+ ): string {
2374
+ return JSON.stringify(
2375
+ MessagesCacheControl$outboundSchema.parse(messagesCacheControl),
2376
+ );
2377
+ }
2378
+
2379
+ /** @internal */
2380
+ export type MessagesToolMessage$Outbound = {
2381
+ role: "tool";
2382
+ content: string | Array<components.TextContentPartSchema$Outbound>;
2383
+ tool_call_id: string | null;
2384
+ cache_control?: MessagesCacheControl$Outbound | undefined;
2385
+ };
2386
+
2387
+ /** @internal */
2388
+ export const MessagesToolMessage$outboundSchema: z.ZodType<
2389
+ MessagesToolMessage$Outbound,
2390
+ z.ZodTypeDef,
2391
+ MessagesToolMessage
2392
+ > = z.object({
2393
+ role: z.literal("tool"),
2394
+ content: z.union([
2395
+ z.string(),
2396
+ z.array(components.TextContentPartSchema$outboundSchema),
2397
+ ]),
2398
+ toolCallId: z.nullable(z.string()),
2399
+ cacheControl: z.lazy(() => MessagesCacheControl$outboundSchema).optional(),
2400
+ }).transform((v) => {
2401
+ return remap$(v, {
2402
+ toolCallId: "tool_call_id",
2403
+ cacheControl: "cache_control",
2404
+ });
2405
+ });
2406
+
2407
+ export function messagesToolMessageToJSON(
2408
+ messagesToolMessage: MessagesToolMessage,
2409
+ ): string {
2410
+ return JSON.stringify(
2411
+ MessagesToolMessage$outboundSchema.parse(messagesToolMessage),
2412
+ );
2413
+ }
2414
+
2415
+ /** @internal */
2416
+ export type DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound =
2417
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2418
+ | components.RefusalPartSchema$Outbound
2419
+ | components.ReasoningPartSchema$Outbound
2420
+ | components.RedactedReasoningPartSchema$Outbound;
2421
+
2422
+ /** @internal */
2423
+ export const DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema:
2424
+ z.ZodType<
2425
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound,
2426
+ z.ZodTypeDef,
2427
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2
2428
+ > = z.union([
2429
+ components.TextContentPartSchema$outboundSchema.and(
2430
+ z.object({ type: z.literal("text") }),
2431
+ ),
2432
+ components.RefusalPartSchema$outboundSchema,
2433
+ components.ReasoningPartSchema$outboundSchema,
2434
+ components.RedactedReasoningPartSchema$outboundSchema,
2435
+ ]);
2436
+
2437
+ export function deploymentGetConfigContentDeploymentsRequestRequestBody2ToJSON(
2438
+ deploymentGetConfigContentDeploymentsRequestRequestBody2:
2439
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2,
2440
+ ): string {
2441
+ return JSON.stringify(
2442
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema
2443
+ .parse(deploymentGetConfigContentDeploymentsRequestRequestBody2),
2444
+ );
2445
+ }
2446
+
2447
+ /** @internal */
2448
+ export type DeploymentGetConfigMessagesDeploymentsRequestContent$Outbound =
2449
+ | string
2450
+ | Array<
2451
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2452
+ | components.RefusalPartSchema$Outbound
2453
+ | components.ReasoningPartSchema$Outbound
2454
+ | components.RedactedReasoningPartSchema$Outbound
2455
+ >;
2456
+
2457
+ /** @internal */
2458
+ export const DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema:
2459
+ z.ZodType<
2460
+ DeploymentGetConfigMessagesDeploymentsRequestContent$Outbound,
2461
+ z.ZodTypeDef,
2462
+ DeploymentGetConfigMessagesDeploymentsRequestContent
2463
+ > = z.union([
2464
+ z.string(),
2465
+ z.array(
2466
+ z.union([
2467
+ components.TextContentPartSchema$outboundSchema.and(
2468
+ z.object({ type: z.literal("text") }),
2469
+ ),
2470
+ components.RefusalPartSchema$outboundSchema,
2471
+ components.ReasoningPartSchema$outboundSchema,
2472
+ components.RedactedReasoningPartSchema$outboundSchema,
2473
+ ]),
2474
+ ),
2475
+ ]);
2476
+
2477
+ export function deploymentGetConfigMessagesDeploymentsRequestContentToJSON(
2478
+ deploymentGetConfigMessagesDeploymentsRequestContent:
2479
+ DeploymentGetConfigMessagesDeploymentsRequestContent,
2480
+ ): string {
2481
+ return JSON.stringify(
2482
+ DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema.parse(
2483
+ deploymentGetConfigMessagesDeploymentsRequestContent,
2484
+ ),
2485
+ );
2486
+ }
2487
+
2488
+ /** @internal */
2489
+ export type MessagesAudio$Outbound = {
2490
+ id: string;
2491
+ };
2492
+
2493
+ /** @internal */
2494
+ export const MessagesAudio$outboundSchema: z.ZodType<
2495
+ MessagesAudio$Outbound,
2496
+ z.ZodTypeDef,
2497
+ MessagesAudio
2498
+ > = z.object({
2499
+ id: z.string(),
2500
+ });
2501
+
2502
+ export function messagesAudioToJSON(messagesAudio: MessagesAudio): string {
2503
+ return JSON.stringify(MessagesAudio$outboundSchema.parse(messagesAudio));
2504
+ }
2505
+
2506
+ /** @internal */
2507
+ export const MessagesType$outboundSchema: z.ZodNativeEnum<typeof MessagesType> =
2508
+ z.nativeEnum(MessagesType);
2509
+
2510
+ /** @internal */
2511
+ export type MessagesFunction$Outbound = {
2512
+ name?: string | undefined;
2513
+ arguments?: string | undefined;
2514
+ };
2515
+
2516
+ /** @internal */
2517
+ export const MessagesFunction$outboundSchema: z.ZodType<
2518
+ MessagesFunction$Outbound,
2519
+ z.ZodTypeDef,
2520
+ MessagesFunction
2521
+ > = z.object({
2522
+ name: z.string().optional(),
2523
+ arguments: z.string().optional(),
2524
+ });
2525
+
2526
+ export function messagesFunctionToJSON(
2527
+ messagesFunction: MessagesFunction,
2528
+ ): string {
2529
+ return JSON.stringify(
2530
+ MessagesFunction$outboundSchema.parse(messagesFunction),
2531
+ );
2532
+ }
2533
+
2534
+ /** @internal */
2535
+ export type MessagesToolCalls$Outbound = {
2536
+ id: string;
2537
+ type: string;
2538
+ function: MessagesFunction$Outbound;
2539
+ thought_signature?: string | undefined;
2540
+ };
2541
+
2542
+ /** @internal */
2543
+ export const MessagesToolCalls$outboundSchema: z.ZodType<
2544
+ MessagesToolCalls$Outbound,
2545
+ z.ZodTypeDef,
2546
+ MessagesToolCalls
2547
+ > = z.object({
2548
+ id: z.string(),
2549
+ type: MessagesType$outboundSchema,
2550
+ function: z.lazy(() => MessagesFunction$outboundSchema),
2551
+ thoughtSignature: z.string().optional(),
2552
+ }).transform((v) => {
2553
+ return remap$(v, {
2554
+ thoughtSignature: "thought_signature",
2555
+ });
2556
+ });
2557
+
2558
+ export function messagesToolCallsToJSON(
2559
+ messagesToolCalls: MessagesToolCalls,
2560
+ ): string {
2561
+ return JSON.stringify(
2562
+ MessagesToolCalls$outboundSchema.parse(messagesToolCalls),
2563
+ );
2564
+ }
2565
+
2566
+ /** @internal */
2567
+ export type MessagesAssistantMessage$Outbound = {
2568
+ content?:
2569
+ | string
2570
+ | Array<
2571
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2572
+ | components.RefusalPartSchema$Outbound
2573
+ | components.ReasoningPartSchema$Outbound
2574
+ | components.RedactedReasoningPartSchema$Outbound
2575
+ >
2576
+ | null
2577
+ | undefined;
2578
+ refusal?: string | null | undefined;
2579
+ role: "assistant";
2580
+ name?: string | undefined;
2581
+ audio?: MessagesAudio$Outbound | null | undefined;
2582
+ tool_calls?: Array<MessagesToolCalls$Outbound> | undefined;
2583
+ };
2584
+
2585
+ /** @internal */
2586
+ export const MessagesAssistantMessage$outboundSchema: z.ZodType<
2587
+ MessagesAssistantMessage$Outbound,
2588
+ z.ZodTypeDef,
2589
+ MessagesAssistantMessage
2590
+ > = z.object({
2591
+ content: z.nullable(
2592
+ z.union([
2593
+ z.string(),
2594
+ z.array(
2595
+ z.union([
2596
+ components.TextContentPartSchema$outboundSchema.and(
2597
+ z.object({ type: z.literal("text") }),
2598
+ ),
2599
+ components.RefusalPartSchema$outboundSchema,
2600
+ components.ReasoningPartSchema$outboundSchema,
2601
+ components.RedactedReasoningPartSchema$outboundSchema,
2602
+ ]),
2603
+ ),
2604
+ ]),
2605
+ ).optional(),
2606
+ refusal: z.nullable(z.string()).optional(),
2607
+ role: z.literal("assistant"),
2608
+ name: z.string().optional(),
2609
+ audio: z.nullable(z.lazy(() => MessagesAudio$outboundSchema)).optional(),
2610
+ toolCalls: z.array(z.lazy(() => MessagesToolCalls$outboundSchema)).optional(),
2611
+ }).transform((v) => {
2612
+ return remap$(v, {
2613
+ toolCalls: "tool_calls",
2614
+ });
2615
+ });
2616
+
2617
+ export function messagesAssistantMessageToJSON(
2618
+ messagesAssistantMessage: MessagesAssistantMessage,
2619
+ ): string {
2620
+ return JSON.stringify(
2621
+ MessagesAssistantMessage$outboundSchema.parse(messagesAssistantMessage),
2622
+ );
2623
+ }
2624
+
2625
+ /** @internal */
2626
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema:
2627
+ z.ZodNativeEnum<
2628
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
2629
+ > = z.nativeEnum(DeploymentGetConfig2DeploymentsRequestRequestBodyType);
2630
+
2631
+ /** @internal */
2632
+ export const TwoTtl$outboundSchema: z.ZodNativeEnum<typeof TwoTtl> = z
2633
+ .nativeEnum(TwoTtl);
2634
+
2635
+ /** @internal */
2636
+ export type TwoCacheControl$Outbound = {
2637
+ type: string;
2638
+ ttl: string;
2639
+ };
2640
+
2641
+ /** @internal */
2642
+ export const TwoCacheControl$outboundSchema: z.ZodType<
2643
+ TwoCacheControl$Outbound,
2644
+ z.ZodTypeDef,
2645
+ TwoCacheControl
2646
+ > = z.object({
2647
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema,
2648
+ ttl: TwoTtl$outboundSchema.default("5m"),
2649
+ });
2650
+
2651
+ export function twoCacheControlToJSON(
2652
+ twoCacheControl: TwoCacheControl,
2653
+ ): string {
2654
+ return JSON.stringify(TwoCacheControl$outboundSchema.parse(twoCacheControl));
2655
+ }
2656
+
2657
+ /** @internal */
2658
+ export type Two4$Outbound = {
2659
+ type: "file";
2660
+ cache_control?: TwoCacheControl$Outbound | undefined;
2661
+ file: components.FileContentPartSchema$Outbound;
2662
+ };
2663
+
2664
+ /** @internal */
2665
+ export const Two4$outboundSchema: z.ZodType<Two4$Outbound, z.ZodTypeDef, Two4> =
2666
+ z.object({
2667
+ type: z.literal("file"),
2668
+ cacheControl: z.lazy(() => TwoCacheControl$outboundSchema).optional(),
2669
+ file: components.FileContentPartSchema$outboundSchema,
2670
+ }).transform((v) => {
2671
+ return remap$(v, {
2672
+ cacheControl: "cache_control",
2673
+ });
2674
+ });
2675
+
2676
+ export function two4ToJSON(two4: Two4): string {
2677
+ return JSON.stringify(Two4$outboundSchema.parse(two4));
2678
+ }
2679
+
2680
+ /** @internal */
2681
+ export type DeploymentGetConfigContentDeploymentsRequest2$Outbound =
2682
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2683
+ | components.ImageContentPartSchema$Outbound
2684
+ | components.AudioContentPartSchema$Outbound
2685
+ | Two4$Outbound;
2686
+
2687
+ /** @internal */
2688
+ export const DeploymentGetConfigContentDeploymentsRequest2$outboundSchema:
2689
+ z.ZodType<
2690
+ DeploymentGetConfigContentDeploymentsRequest2$Outbound,
2691
+ z.ZodTypeDef,
2692
+ DeploymentGetConfigContentDeploymentsRequest2
2693
+ > = z.union([
2694
+ components.TextContentPartSchema$outboundSchema.and(
2695
+ z.object({ type: z.literal("text") }),
2696
+ ),
2697
+ components.ImageContentPartSchema$outboundSchema,
2698
+ components.AudioContentPartSchema$outboundSchema,
2699
+ z.lazy(() => Two4$outboundSchema),
2700
+ ]);
2701
+
2702
+ export function deploymentGetConfigContentDeploymentsRequest2ToJSON(
2703
+ deploymentGetConfigContentDeploymentsRequest2:
2704
+ DeploymentGetConfigContentDeploymentsRequest2,
2705
+ ): string {
2706
+ return JSON.stringify(
2707
+ DeploymentGetConfigContentDeploymentsRequest2$outboundSchema.parse(
2708
+ deploymentGetConfigContentDeploymentsRequest2,
2709
+ ),
2710
+ );
2711
+ }
2712
+
2713
+ /** @internal */
2714
+ export type DeploymentGetConfigMessagesDeploymentsContent$Outbound =
2715
+ | string
2716
+ | Array<
2717
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2718
+ | components.ImageContentPartSchema$Outbound
2719
+ | components.AudioContentPartSchema$Outbound
2720
+ | Two4$Outbound
2721
+ >;
2722
+
2723
+ /** @internal */
2724
+ export const DeploymentGetConfigMessagesDeploymentsContent$outboundSchema:
2725
+ z.ZodType<
2726
+ DeploymentGetConfigMessagesDeploymentsContent$Outbound,
2727
+ z.ZodTypeDef,
2728
+ DeploymentGetConfigMessagesDeploymentsContent
2729
+ > = z.union([
2730
+ z.string(),
2731
+ z.array(
2732
+ z.union([
2733
+ components.TextContentPartSchema$outboundSchema.and(
2734
+ z.object({ type: z.literal("text") }),
2735
+ ),
2736
+ components.ImageContentPartSchema$outboundSchema,
2737
+ components.AudioContentPartSchema$outboundSchema,
2738
+ z.lazy(() => Two4$outboundSchema),
2739
+ ]),
2740
+ ),
2741
+ ]);
2742
+
2743
+ export function deploymentGetConfigMessagesDeploymentsContentToJSON(
2744
+ deploymentGetConfigMessagesDeploymentsContent:
2745
+ DeploymentGetConfigMessagesDeploymentsContent,
2746
+ ): string {
2747
+ return JSON.stringify(
2748
+ DeploymentGetConfigMessagesDeploymentsContent$outboundSchema.parse(
2749
+ deploymentGetConfigMessagesDeploymentsContent,
2750
+ ),
2751
+ );
2752
+ }
2753
+
2754
+ /** @internal */
2755
+ export type MessagesUserMessage$Outbound = {
2756
+ role: "user";
2757
+ name?: string | undefined;
2758
+ content:
2759
+ | string
2760
+ | Array<
2761
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2762
+ | components.ImageContentPartSchema$Outbound
2763
+ | components.AudioContentPartSchema$Outbound
2764
+ | Two4$Outbound
2765
+ >;
2766
+ };
2767
+
2768
+ /** @internal */
2769
+ export const MessagesUserMessage$outboundSchema: z.ZodType<
2770
+ MessagesUserMessage$Outbound,
2771
+ z.ZodTypeDef,
2772
+ MessagesUserMessage
2773
+ > = z.object({
2774
+ role: z.literal("user"),
2775
+ name: z.string().optional(),
2776
+ content: z.union([
2777
+ z.string(),
2778
+ z.array(
2779
+ z.union([
2780
+ components.TextContentPartSchema$outboundSchema.and(
2781
+ z.object({ type: z.literal("text") }),
2782
+ ),
2783
+ components.ImageContentPartSchema$outboundSchema,
2784
+ components.AudioContentPartSchema$outboundSchema,
2785
+ z.lazy(() => Two4$outboundSchema),
2786
+ ]),
2787
+ ),
2788
+ ]),
2789
+ });
2790
+
2791
+ export function messagesUserMessageToJSON(
2792
+ messagesUserMessage: MessagesUserMessage,
2793
+ ): string {
2794
+ return JSON.stringify(
2795
+ MessagesUserMessage$outboundSchema.parse(messagesUserMessage),
2796
+ );
2797
+ }
2798
+
2799
+ /** @internal */
2800
+ export type DeploymentGetConfigMessagesContent$Outbound =
2801
+ | string
2802
+ | Array<components.TextContentPartSchema$Outbound>;
2803
+
2804
+ /** @internal */
2805
+ export const DeploymentGetConfigMessagesContent$outboundSchema: z.ZodType<
2806
+ DeploymentGetConfigMessagesContent$Outbound,
2807
+ z.ZodTypeDef,
2808
+ DeploymentGetConfigMessagesContent
2809
+ > = z.union([
2810
+ z.string(),
2811
+ z.array(components.TextContentPartSchema$outboundSchema),
2812
+ ]);
2813
+
2814
+ export function deploymentGetConfigMessagesContentToJSON(
2815
+ deploymentGetConfigMessagesContent: DeploymentGetConfigMessagesContent,
2816
+ ): string {
2817
+ return JSON.stringify(
2818
+ DeploymentGetConfigMessagesContent$outboundSchema.parse(
2819
+ deploymentGetConfigMessagesContent,
2820
+ ),
2821
+ );
2822
+ }
2823
+
2824
+ /** @internal */
2825
+ export type MessagesDeveloperMessage$Outbound = {
2826
+ role: "developer";
2827
+ content: string | Array<components.TextContentPartSchema$Outbound>;
2828
+ name?: string | undefined;
2829
+ };
2830
+
2831
+ /** @internal */
2832
+ export const MessagesDeveloperMessage$outboundSchema: z.ZodType<
2833
+ MessagesDeveloperMessage$Outbound,
2834
+ z.ZodTypeDef,
2835
+ MessagesDeveloperMessage
2836
+ > = z.object({
2837
+ role: z.literal("developer"),
2838
+ content: z.union([
2839
+ z.string(),
2840
+ z.array(components.TextContentPartSchema$outboundSchema),
2841
+ ]),
2842
+ name: z.string().optional(),
2843
+ });
2844
+
2845
+ export function messagesDeveloperMessageToJSON(
2846
+ messagesDeveloperMessage: MessagesDeveloperMessage,
2847
+ ): string {
2848
+ return JSON.stringify(
2849
+ MessagesDeveloperMessage$outboundSchema.parse(messagesDeveloperMessage),
2850
+ );
2851
+ }
2852
+
2853
+ /** @internal */
2854
+ export type MessagesContent$Outbound =
2855
+ | string
2856
+ | Array<components.TextContentPartSchema$Outbound>;
2857
+
2858
+ /** @internal */
2859
+ export const MessagesContent$outboundSchema: z.ZodType<
2860
+ MessagesContent$Outbound,
2861
+ z.ZodTypeDef,
2862
+ MessagesContent
2863
+ > = z.union([
2864
+ z.string(),
2865
+ z.array(components.TextContentPartSchema$outboundSchema),
2866
+ ]);
2867
+
2868
+ export function messagesContentToJSON(
2869
+ messagesContent: MessagesContent,
2870
+ ): string {
2871
+ return JSON.stringify(MessagesContent$outboundSchema.parse(messagesContent));
2872
+ }
2873
+
2874
+ /** @internal */
2875
+ export type MessagesSystemMessage$Outbound = {
2876
+ role: "system";
2877
+ content: string | Array<components.TextContentPartSchema$Outbound>;
2878
+ name?: string | undefined;
2879
+ };
2880
+
2881
+ /** @internal */
2882
+ export const MessagesSystemMessage$outboundSchema: z.ZodType<
2883
+ MessagesSystemMessage$Outbound,
2884
+ z.ZodTypeDef,
2885
+ MessagesSystemMessage
2886
+ > = z.object({
2887
+ role: z.literal("system"),
2888
+ content: z.union([
2889
+ z.string(),
2890
+ z.array(components.TextContentPartSchema$outboundSchema),
2891
+ ]),
2892
+ name: z.string().optional(),
2893
+ });
2894
+
2895
+ export function messagesSystemMessageToJSON(
2896
+ messagesSystemMessage: MessagesSystemMessage,
2897
+ ): string {
2898
+ return JSON.stringify(
2899
+ MessagesSystemMessage$outboundSchema.parse(messagesSystemMessage),
2900
+ );
2901
+ }
2902
+
2903
+ /** @internal */
2904
+ export type DeploymentGetConfigMessages$Outbound =
2905
+ | MessagesSystemMessage$Outbound
2906
+ | MessagesDeveloperMessage$Outbound
2907
+ | MessagesUserMessage$Outbound
2908
+ | MessagesAssistantMessage$Outbound
2909
+ | MessagesToolMessage$Outbound;
2910
+
2911
+ /** @internal */
2912
+ export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
2913
+ DeploymentGetConfigMessages$Outbound,
2914
+ z.ZodTypeDef,
2915
+ DeploymentGetConfigMessages
2916
+ > = z.union([
2917
+ z.lazy(() => MessagesSystemMessage$outboundSchema),
2918
+ z.lazy(() => MessagesDeveloperMessage$outboundSchema),
2919
+ z.lazy(() => MessagesUserMessage$outboundSchema),
2920
+ z.lazy(() => MessagesAssistantMessage$outboundSchema),
2921
+ z.lazy(() => MessagesToolMessage$outboundSchema),
2922
+ ]);
2923
+
2924
+ export function deploymentGetConfigMessagesToJSON(
2925
+ deploymentGetConfigMessages: DeploymentGetConfigMessages,
2926
+ ): string {
2927
+ return JSON.stringify(
2928
+ DeploymentGetConfigMessages$outboundSchema.parse(
2929
+ deploymentGetConfigMessages,
2930
+ ),
2931
+ );
2932
+ }
2933
+
2934
+ /** @internal */
2935
+ export type Metadata$Outbound = {
2936
+ file_name?: string | undefined;
2937
+ file_type?: string | undefined;
2938
+ page_number?: number | undefined;
2939
+ };
2940
+
2941
+ /** @internal */
2942
+ export const Metadata$outboundSchema: z.ZodType<
2943
+ Metadata$Outbound,
2944
+ z.ZodTypeDef,
2945
+ Metadata
2946
+ > = z.object({
2947
+ fileName: z.string().optional(),
2948
+ fileType: z.string().optional(),
2949
+ pageNumber: z.number().optional(),
2950
+ }).transform((v) => {
2951
+ return remap$(v, {
2952
+ fileName: "file_name",
2953
+ fileType: "file_type",
2954
+ pageNumber: "page_number",
2955
+ });
2956
+ });
2957
+
2958
+ export function metadataToJSON(metadata: Metadata): string {
2959
+ return JSON.stringify(Metadata$outboundSchema.parse(metadata));
2960
+ }
2961
+
2962
+ /** @internal */
2963
+ export type Documents$Outbound = {
2964
+ text: string;
2965
+ metadata?: Metadata$Outbound | undefined;
2966
+ };
2967
+
2968
+ /** @internal */
2969
+ export const Documents$outboundSchema: z.ZodType<
2970
+ Documents$Outbound,
2971
+ z.ZodTypeDef,
2972
+ Documents
2973
+ > = z.object({
2974
+ text: z.string(),
2975
+ metadata: z.lazy(() => Metadata$outboundSchema).optional(),
2976
+ });
2977
+
2978
+ export function documentsToJSON(documents: Documents): string {
2979
+ return JSON.stringify(Documents$outboundSchema.parse(documents));
2980
+ }
2981
+
2982
+ /** @internal */
2983
+ export type InvokeOptions$Outbound = {
2984
+ include_retrievals: boolean;
2985
+ include_usage: boolean;
2986
+ mock_response?: string | undefined;
2987
+ };
2988
+
2989
+ /** @internal */
2990
+ export const InvokeOptions$outboundSchema: z.ZodType<
2991
+ InvokeOptions$Outbound,
2992
+ z.ZodTypeDef,
2993
+ InvokeOptions
2994
+ > = z.object({
2995
+ includeRetrievals: z.boolean().default(false),
2996
+ includeUsage: z.boolean().default(false),
2997
+ mockResponse: z.string().optional(),
2998
+ }).transform((v) => {
2999
+ return remap$(v, {
3000
+ includeRetrievals: "include_retrievals",
3001
+ includeUsage: "include_usage",
3002
+ mockResponse: "mock_response",
3003
+ });
3004
+ });
3005
+
3006
+ export function invokeOptionsToJSON(invokeOptions: InvokeOptions): string {
3007
+ return JSON.stringify(InvokeOptions$outboundSchema.parse(invokeOptions));
3008
+ }
3009
+
3010
+ /** @internal */
3011
+ export type Thread$Outbound = {
3012
+ id: string;
3013
+ tags?: Array<string> | undefined;
3014
+ };
3015
+
3016
+ /** @internal */
3017
+ export const Thread$outboundSchema: z.ZodType<
3018
+ Thread$Outbound,
3019
+ z.ZodTypeDef,
3020
+ Thread
3021
+ > = z.object({
3022
+ id: z.string(),
3023
+ tags: z.array(z.string()).optional(),
3024
+ });
3025
+
3026
+ export function threadToJSON(thread: Thread): string {
3027
+ return JSON.stringify(Thread$outboundSchema.parse(thread));
3028
+ }
3029
+
3030
+ /** @internal */
3031
+ export type OrExists$Outbound = {
3032
+ exists: boolean;
3033
+ };
3034
+
3035
+ /** @internal */
3036
+ export const OrExists$outboundSchema: z.ZodType<
3037
+ OrExists$Outbound,
3038
+ z.ZodTypeDef,
3039
+ OrExists
3040
+ > = z.object({
3041
+ exists: z.boolean(),
3042
+ });
3043
+
3044
+ export function orExistsToJSON(orExists: OrExists): string {
3045
+ return JSON.stringify(OrExists$outboundSchema.parse(orExists));
3046
+ }
3047
+
3048
+ /** @internal */
3049
+ export type DeploymentGetConfigOrNin$Outbound = string | number | boolean;
3050
+
3051
+ /** @internal */
3052
+ export const DeploymentGetConfigOrNin$outboundSchema: z.ZodType<
3053
+ DeploymentGetConfigOrNin$Outbound,
3054
+ z.ZodTypeDef,
3055
+ DeploymentGetConfigOrNin
3056
+ > = z.union([z.string(), z.number(), z.boolean()]);
3057
+
3058
+ export function deploymentGetConfigOrNinToJSON(
3059
+ deploymentGetConfigOrNin: DeploymentGetConfigOrNin,
3060
+ ): string {
3061
+ return JSON.stringify(
3062
+ DeploymentGetConfigOrNin$outboundSchema.parse(deploymentGetConfigOrNin),
3063
+ );
3064
+ }
3065
+
3066
+ /** @internal */
3067
+ export type OrNin$Outbound = {
3068
+ nin: Array<string | number | boolean>;
3069
+ };
3070
+
3071
+ /** @internal */
3072
+ export const OrNin$outboundSchema: z.ZodType<
3073
+ OrNin$Outbound,
3074
+ z.ZodTypeDef,
3075
+ OrNin
3076
+ > = z.object({
3077
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3078
+ });
3079
+
3080
+ export function orNinToJSON(orNin: OrNin): string {
3081
+ return JSON.stringify(OrNin$outboundSchema.parse(orNin));
3082
+ }
3083
+
3084
+ /** @internal */
3085
+ export type DeploymentGetConfigOrIn$Outbound = string | number | boolean;
3086
+
3087
+ /** @internal */
3088
+ export const DeploymentGetConfigOrIn$outboundSchema: z.ZodType<
3089
+ DeploymentGetConfigOrIn$Outbound,
3090
+ z.ZodTypeDef,
3091
+ DeploymentGetConfigOrIn
3092
+ > = z.union([z.string(), z.number(), z.boolean()]);
3093
+
3094
+ export function deploymentGetConfigOrInToJSON(
3095
+ deploymentGetConfigOrIn: DeploymentGetConfigOrIn,
3096
+ ): string {
3097
+ return JSON.stringify(
3098
+ DeploymentGetConfigOrIn$outboundSchema.parse(deploymentGetConfigOrIn),
3099
+ );
3100
+ }
3101
+
3102
+ /** @internal */
3103
+ export type OrIn$Outbound = {
3104
+ in: Array<string | number | boolean>;
3105
+ };
3106
+
3107
+ /** @internal */
3108
+ export const OrIn$outboundSchema: z.ZodType<OrIn$Outbound, z.ZodTypeDef, OrIn> =
3109
+ z.object({
3110
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3111
+ });
3112
+
3113
+ export function orInToJSON(orIn: OrIn): string {
3114
+ return JSON.stringify(OrIn$outboundSchema.parse(orIn));
3115
+ }
3116
+
3117
+ /** @internal */
3118
+ export type OrLte$Outbound = {
3119
+ lte: number;
3120
+ };
3121
+
3122
+ /** @internal */
3123
+ export const OrLte$outboundSchema: z.ZodType<
3124
+ OrLte$Outbound,
3125
+ z.ZodTypeDef,
3126
+ OrLte
3127
+ > = z.object({
3128
+ lte: z.number(),
3129
+ });
3130
+
3131
+ export function orLteToJSON(orLte: OrLte): string {
3132
+ return JSON.stringify(OrLte$outboundSchema.parse(orLte));
3133
+ }
3134
+
3135
+ /** @internal */
3136
+ export type OrLt$Outbound = {
3137
+ lt: number;
3138
+ };
3139
+
3140
+ /** @internal */
3141
+ export const OrLt$outboundSchema: z.ZodType<OrLt$Outbound, z.ZodTypeDef, OrLt> =
3142
+ z.object({
3143
+ lt: z.number(),
3144
+ });
3145
+
3146
+ export function orLtToJSON(orLt: OrLt): string {
3147
+ return JSON.stringify(OrLt$outboundSchema.parse(orLt));
3148
+ }
3149
+
3150
+ /** @internal */
3151
+ export type OrGte$Outbound = {
3152
+ gte: number;
3153
+ };
3154
+
3155
+ /** @internal */
3156
+ export const OrGte$outboundSchema: z.ZodType<
3157
+ OrGte$Outbound,
3158
+ z.ZodTypeDef,
3159
+ OrGte
3160
+ > = z.object({
3161
+ gte: z.number(),
3162
+ });
3163
+
3164
+ export function orGteToJSON(orGte: OrGte): string {
3165
+ return JSON.stringify(OrGte$outboundSchema.parse(orGte));
3166
+ }
3167
+
3168
+ /** @internal */
3169
+ export type OrGt$Outbound = {
3170
+ gt: number;
3171
+ };
3172
+
3173
+ /** @internal */
3174
+ export const OrGt$outboundSchema: z.ZodType<OrGt$Outbound, z.ZodTypeDef, OrGt> =
3175
+ z.object({
3176
+ gt: z.number(),
3177
+ });
3178
+
3179
+ export function orGtToJSON(orGt: OrGt): string {
3180
+ return JSON.stringify(OrGt$outboundSchema.parse(orGt));
3181
+ }
3182
+
3183
+ /** @internal */
3184
+ export type DeploymentGetConfigOrNe$Outbound = string | number | boolean;
3185
+
3186
+ /** @internal */
3187
+ export const DeploymentGetConfigOrNe$outboundSchema: z.ZodType<
3188
+ DeploymentGetConfigOrNe$Outbound,
3189
+ z.ZodTypeDef,
3190
+ DeploymentGetConfigOrNe
3191
+ > = z.union([z.string(), z.number(), z.boolean()]);
3192
+
3193
+ export function deploymentGetConfigOrNeToJSON(
3194
+ deploymentGetConfigOrNe: DeploymentGetConfigOrNe,
3195
+ ): string {
3196
+ return JSON.stringify(
3197
+ DeploymentGetConfigOrNe$outboundSchema.parse(deploymentGetConfigOrNe),
3198
+ );
3199
+ }
3200
+
3201
+ /** @internal */
3202
+ export type OrNe$Outbound = {
3203
+ ne: string | number | boolean;
3204
+ };
3205
+
3206
+ /** @internal */
3207
+ export const OrNe$outboundSchema: z.ZodType<OrNe$Outbound, z.ZodTypeDef, OrNe> =
3208
+ z.object({
3209
+ ne: z.union([z.string(), z.number(), z.boolean()]),
3210
+ });
3211
+
3212
+ export function orNeToJSON(orNe: OrNe): string {
3213
+ return JSON.stringify(OrNe$outboundSchema.parse(orNe));
3214
+ }
3215
+
3216
+ /** @internal */
3217
+ export type DeploymentGetConfigOrEq$Outbound = string | number | boolean;
3218
+
3219
+ /** @internal */
3220
+ export const DeploymentGetConfigOrEq$outboundSchema: z.ZodType<
3221
+ DeploymentGetConfigOrEq$Outbound,
3222
+ z.ZodTypeDef,
3223
+ DeploymentGetConfigOrEq
3224
+ > = z.union([z.string(), z.number(), z.boolean()]);
3225
+
3226
+ export function deploymentGetConfigOrEqToJSON(
3227
+ deploymentGetConfigOrEq: DeploymentGetConfigOrEq,
3228
+ ): string {
3229
+ return JSON.stringify(
3230
+ DeploymentGetConfigOrEq$outboundSchema.parse(deploymentGetConfigOrEq),
3231
+ );
3232
+ }
3233
+
3234
+ /** @internal */
3235
+ export type OrEq$Outbound = {
3236
+ eq: string | number | boolean;
3237
+ };
3238
+
3239
+ /** @internal */
3240
+ export const OrEq$outboundSchema: z.ZodType<OrEq$Outbound, z.ZodTypeDef, OrEq> =
3241
+ z.object({
3242
+ eq: z.union([z.string(), z.number(), z.boolean()]),
3243
+ });
3244
+
3245
+ export function orEqToJSON(orEq: OrEq): string {
3246
+ return JSON.stringify(OrEq$outboundSchema.parse(orEq));
3247
+ }
3248
+
3249
+ /** @internal */
3250
+ export type KnowledgeFilterOr$Outbound =
3251
+ | OrEq$Outbound
3252
+ | OrNe$Outbound
3253
+ | OrGt$Outbound
3254
+ | OrGte$Outbound
3255
+ | OrLt$Outbound
3256
+ | OrLte$Outbound
3257
+ | OrIn$Outbound
3258
+ | OrNin$Outbound
3259
+ | OrExists$Outbound;
3260
+
3261
+ /** @internal */
3262
+ export const KnowledgeFilterOr$outboundSchema: z.ZodType<
3263
+ KnowledgeFilterOr$Outbound,
3264
+ z.ZodTypeDef,
3265
+ KnowledgeFilterOr
3266
+ > = z.union([
3267
+ z.lazy(() => OrEq$outboundSchema),
3268
+ z.lazy(() => OrNe$outboundSchema),
3269
+ z.lazy(() => OrGt$outboundSchema),
3270
+ z.lazy(() => OrGte$outboundSchema),
3271
+ z.lazy(() => OrLt$outboundSchema),
3272
+ z.lazy(() => OrLte$outboundSchema),
3273
+ z.lazy(() => OrIn$outboundSchema),
3274
+ z.lazy(() => OrNin$outboundSchema),
3275
+ z.lazy(() => OrExists$outboundSchema),
3276
+ ]);
3277
+
3278
+ export function knowledgeFilterOrToJSON(
3279
+ knowledgeFilterOr: KnowledgeFilterOr,
3280
+ ): string {
3281
+ return JSON.stringify(
3282
+ KnowledgeFilterOr$outboundSchema.parse(knowledgeFilterOr),
3283
+ );
3284
+ }
3285
+
3286
+ /** @internal */
3287
+ export type Or$Outbound = {
3288
+ or: Array<
3289
+ {
3290
+ [k: string]:
3291
+ | OrEq$Outbound
3292
+ | OrNe$Outbound
3293
+ | OrGt$Outbound
3294
+ | OrGte$Outbound
3295
+ | OrLt$Outbound
3296
+ | OrLte$Outbound
3297
+ | OrIn$Outbound
3298
+ | OrNin$Outbound
3299
+ | OrExists$Outbound;
3300
+ }
3301
+ >;
3302
+ };
3303
+
3304
+ /** @internal */
3305
+ export const Or$outboundSchema: z.ZodType<Or$Outbound, z.ZodTypeDef, Or> = z
3306
+ .object({
3307
+ or: z.array(
3308
+ z.record(z.union([
3309
+ z.lazy(() => OrEq$outboundSchema),
3310
+ z.lazy(() =>
3311
+ OrNe$outboundSchema
3312
+ ),
3313
+ z.lazy(() => OrGt$outboundSchema),
3314
+ z.lazy(() => OrGte$outboundSchema),
3315
+ z.lazy(() => OrLt$outboundSchema),
3316
+ z.lazy(() => OrLte$outboundSchema),
3317
+ z.lazy(() => OrIn$outboundSchema),
3318
+ z.lazy(() => OrNin$outboundSchema),
3319
+ z.lazy(() => OrExists$outboundSchema),
3320
+ ])),
3321
+ ),
3322
+ });
3323
+
3324
+ export function orToJSON(or: Or): string {
3325
+ return JSON.stringify(Or$outboundSchema.parse(or));
3326
+ }
3327
+
3328
+ /** @internal */
3329
+ export type AndExists$Outbound = {
3330
+ exists: boolean;
3331
+ };
3332
+
3333
+ /** @internal */
3334
+ export const AndExists$outboundSchema: z.ZodType<
3335
+ AndExists$Outbound,
3336
+ z.ZodTypeDef,
3337
+ AndExists
3338
+ > = z.object({
3339
+ exists: z.boolean(),
3340
+ });
3341
+
3342
+ export function andExistsToJSON(andExists: AndExists): string {
3343
+ return JSON.stringify(AndExists$outboundSchema.parse(andExists));
3344
+ }
3345
+
3346
+ /** @internal */
3347
+ export type DeploymentGetConfigAndNin$Outbound = string | number | boolean;
3348
+
3349
+ /** @internal */
3350
+ export const DeploymentGetConfigAndNin$outboundSchema: z.ZodType<
3351
+ DeploymentGetConfigAndNin$Outbound,
3352
+ z.ZodTypeDef,
3353
+ DeploymentGetConfigAndNin
3354
+ > = z.union([z.string(), z.number(), z.boolean()]);
3355
+
3356
+ export function deploymentGetConfigAndNinToJSON(
3357
+ deploymentGetConfigAndNin: DeploymentGetConfigAndNin,
3358
+ ): string {
3359
+ return JSON.stringify(
3360
+ DeploymentGetConfigAndNin$outboundSchema.parse(deploymentGetConfigAndNin),
3361
+ );
3362
+ }
3363
+
3364
+ /** @internal */
3365
+ export type AndNin$Outbound = {
3366
+ nin: Array<string | number | boolean>;
3367
+ };
3368
+
3369
+ /** @internal */
3370
+ export const AndNin$outboundSchema: z.ZodType<
3371
+ AndNin$Outbound,
3372
+ z.ZodTypeDef,
3373
+ AndNin
3374
+ > = z.object({
3375
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3376
+ });
3377
+
3378
+ export function andNinToJSON(andNin: AndNin): string {
3379
+ return JSON.stringify(AndNin$outboundSchema.parse(andNin));
3380
+ }
3381
+
3382
+ /** @internal */
3383
+ export type DeploymentGetConfigAndIn$Outbound = string | number | boolean;
3384
+
3385
+ /** @internal */
3386
+ export const DeploymentGetConfigAndIn$outboundSchema: z.ZodType<
3387
+ DeploymentGetConfigAndIn$Outbound,
3388
+ z.ZodTypeDef,
3389
+ DeploymentGetConfigAndIn
3390
+ > = z.union([z.string(), z.number(), z.boolean()]);
3391
+
3392
+ export function deploymentGetConfigAndInToJSON(
3393
+ deploymentGetConfigAndIn: DeploymentGetConfigAndIn,
3394
+ ): string {
3395
+ return JSON.stringify(
3396
+ DeploymentGetConfigAndIn$outboundSchema.parse(deploymentGetConfigAndIn),
3397
+ );
3398
+ }
3399
+
3400
+ /** @internal */
3401
+ export type AndIn$Outbound = {
3402
+ in: Array<string | number | boolean>;
3403
+ };
3404
+
3405
+ /** @internal */
3406
+ export const AndIn$outboundSchema: z.ZodType<
3407
+ AndIn$Outbound,
3408
+ z.ZodTypeDef,
3409
+ AndIn
3410
+ > = z.object({
3411
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3412
+ });
3413
+
3414
+ export function andInToJSON(andIn: AndIn): string {
3415
+ return JSON.stringify(AndIn$outboundSchema.parse(andIn));
3416
+ }
3417
+
3418
+ /** @internal */
3419
+ export type AndLte$Outbound = {
3420
+ lte: number;
3421
+ };
3422
+
3423
+ /** @internal */
3424
+ export const AndLte$outboundSchema: z.ZodType<
3425
+ AndLte$Outbound,
3426
+ z.ZodTypeDef,
3427
+ AndLte
3428
+ > = z.object({
3429
+ lte: z.number(),
3430
+ });
3431
+
3432
+ export function andLteToJSON(andLte: AndLte): string {
3433
+ return JSON.stringify(AndLte$outboundSchema.parse(andLte));
3434
+ }
3435
+
3436
+ /** @internal */
3437
+ export type AndLt$Outbound = {
3438
+ lt: number;
3439
+ };
3440
+
3441
+ /** @internal */
3442
+ export const AndLt$outboundSchema: z.ZodType<
3443
+ AndLt$Outbound,
3444
+ z.ZodTypeDef,
3445
+ AndLt
3446
+ > = z.object({
3447
+ lt: z.number(),
3448
+ });
3449
+
3450
+ export function andLtToJSON(andLt: AndLt): string {
3451
+ return JSON.stringify(AndLt$outboundSchema.parse(andLt));
3452
+ }
3453
+
3454
+ /** @internal */
3455
+ export type AndGte$Outbound = {
3456
+ gte: number;
3457
+ };
3458
+
3459
+ /** @internal */
3460
+ export const AndGte$outboundSchema: z.ZodType<
3461
+ AndGte$Outbound,
3462
+ z.ZodTypeDef,
3463
+ AndGte
3464
+ > = z.object({
3465
+ gte: z.number(),
3466
+ });
3467
+
3468
+ export function andGteToJSON(andGte: AndGte): string {
3469
+ return JSON.stringify(AndGte$outboundSchema.parse(andGte));
3470
+ }
3471
+
3472
+ /** @internal */
3473
+ export type AndGt$Outbound = {
3474
+ gt: number;
3475
+ };
3476
+
3477
+ /** @internal */
3478
+ export const AndGt$outboundSchema: z.ZodType<
3479
+ AndGt$Outbound,
3480
+ z.ZodTypeDef,
3481
+ AndGt
3482
+ > = z.object({
3483
+ gt: z.number(),
3484
+ });
3485
+
3486
+ export function andGtToJSON(andGt: AndGt): string {
3487
+ return JSON.stringify(AndGt$outboundSchema.parse(andGt));
3488
+ }
3489
+
3490
+ /** @internal */
3491
+ export type DeploymentGetConfigAndNe$Outbound = string | number | boolean;
3492
+
3493
+ /** @internal */
3494
+ export const DeploymentGetConfigAndNe$outboundSchema: z.ZodType<
3495
+ DeploymentGetConfigAndNe$Outbound,
3496
+ z.ZodTypeDef,
3497
+ DeploymentGetConfigAndNe
3498
+ > = z.union([z.string(), z.number(), z.boolean()]);
3499
+
3500
+ export function deploymentGetConfigAndNeToJSON(
3501
+ deploymentGetConfigAndNe: DeploymentGetConfigAndNe,
3502
+ ): string {
3503
+ return JSON.stringify(
3504
+ DeploymentGetConfigAndNe$outboundSchema.parse(deploymentGetConfigAndNe),
3505
+ );
3506
+ }
3507
+
3508
+ /** @internal */
3509
+ export type AndNe$Outbound = {
3510
+ ne: string | number | boolean;
3511
+ };
3512
+
3513
+ /** @internal */
3514
+ export const AndNe$outboundSchema: z.ZodType<
3515
+ AndNe$Outbound,
3516
+ z.ZodTypeDef,
3517
+ AndNe
3518
+ > = z.object({
3519
+ ne: z.union([z.string(), z.number(), z.boolean()]),
3520
+ });
3521
+
3522
+ export function andNeToJSON(andNe: AndNe): string {
3523
+ return JSON.stringify(AndNe$outboundSchema.parse(andNe));
3524
+ }
3525
+
3526
+ /** @internal */
3527
+ export type DeploymentGetConfigAndEq$Outbound = string | number | boolean;
3528
+
3529
+ /** @internal */
3530
+ export const DeploymentGetConfigAndEq$outboundSchema: z.ZodType<
3531
+ DeploymentGetConfigAndEq$Outbound,
3532
+ z.ZodTypeDef,
3533
+ DeploymentGetConfigAndEq
3534
+ > = z.union([z.string(), z.number(), z.boolean()]);
3535
+
3536
+ export function deploymentGetConfigAndEqToJSON(
3537
+ deploymentGetConfigAndEq: DeploymentGetConfigAndEq,
3538
+ ): string {
3539
+ return JSON.stringify(
3540
+ DeploymentGetConfigAndEq$outboundSchema.parse(deploymentGetConfigAndEq),
3541
+ );
3542
+ }
3543
+
3544
+ /** @internal */
3545
+ export type AndEq$Outbound = {
3546
+ eq: string | number | boolean;
3547
+ };
3548
+
3549
+ /** @internal */
3550
+ export const AndEq$outboundSchema: z.ZodType<
3551
+ AndEq$Outbound,
3552
+ z.ZodTypeDef,
3553
+ AndEq
3554
+ > = z.object({
3555
+ eq: z.union([z.string(), z.number(), z.boolean()]),
3556
+ });
3557
+
3558
+ export function andEqToJSON(andEq: AndEq): string {
3559
+ return JSON.stringify(AndEq$outboundSchema.parse(andEq));
3560
+ }
3561
+
3562
+ /** @internal */
3563
+ export type KnowledgeFilterAnd$Outbound =
3564
+ | AndEq$Outbound
3565
+ | AndNe$Outbound
3566
+ | AndGt$Outbound
3567
+ | AndGte$Outbound
3568
+ | AndLt$Outbound
3569
+ | AndLte$Outbound
3570
+ | AndIn$Outbound
3571
+ | AndNin$Outbound
3572
+ | AndExists$Outbound;
3573
+
3574
+ /** @internal */
3575
+ export const KnowledgeFilterAnd$outboundSchema: z.ZodType<
3576
+ KnowledgeFilterAnd$Outbound,
3577
+ z.ZodTypeDef,
3578
+ KnowledgeFilterAnd
3579
+ > = z.union([
3580
+ z.lazy(() => AndEq$outboundSchema),
3581
+ z.lazy(() => AndNe$outboundSchema),
3582
+ z.lazy(() => AndGt$outboundSchema),
3583
+ z.lazy(() => AndGte$outboundSchema),
3584
+ z.lazy(() => AndLt$outboundSchema),
3585
+ z.lazy(() => AndLte$outboundSchema),
3586
+ z.lazy(() => AndIn$outboundSchema),
3587
+ z.lazy(() => AndNin$outboundSchema),
3588
+ z.lazy(() => AndExists$outboundSchema),
3589
+ ]);
3590
+
3591
+ export function knowledgeFilterAndToJSON(
3592
+ knowledgeFilterAnd: KnowledgeFilterAnd,
3593
+ ): string {
3594
+ return JSON.stringify(
3595
+ KnowledgeFilterAnd$outboundSchema.parse(knowledgeFilterAnd),
3596
+ );
3597
+ }
3598
+
3599
+ /** @internal */
3600
+ export type And$Outbound = {
3601
+ and: Array<
3602
+ {
3603
+ [k: string]:
3604
+ | AndEq$Outbound
3605
+ | AndNe$Outbound
3606
+ | AndGt$Outbound
3607
+ | AndGte$Outbound
3608
+ | AndLt$Outbound
3609
+ | AndLte$Outbound
3610
+ | AndIn$Outbound
3611
+ | AndNin$Outbound
3612
+ | AndExists$Outbound;
3613
+ }
3614
+ >;
3615
+ };
3616
+
3617
+ /** @internal */
3618
+ export const And$outboundSchema: z.ZodType<And$Outbound, z.ZodTypeDef, And> = z
3619
+ .object({
3620
+ and: z.array(
3621
+ z.record(z.union([
3622
+ z.lazy(() => AndEq$outboundSchema),
3623
+ z.lazy(() =>
3624
+ AndNe$outboundSchema
3625
+ ),
3626
+ z.lazy(() => AndGt$outboundSchema),
3627
+ z.lazy(() => AndGte$outboundSchema),
3628
+ z.lazy(() => AndLt$outboundSchema),
3629
+ z.lazy(() => AndLte$outboundSchema),
3630
+ z.lazy(() => AndIn$outboundSchema),
3631
+ z.lazy(() => AndNin$outboundSchema),
3632
+ z.lazy(() => AndExists$outboundSchema),
3633
+ ])),
3634
+ ),
3635
+ });
3636
+
3637
+ export function andToJSON(and: And): string {
3638
+ return JSON.stringify(And$outboundSchema.parse(and));
3639
+ }
3640
+
3641
+ /** @internal */
3642
+ export type Exists$Outbound = {
3643
+ exists: boolean;
3644
+ };
3645
+
3646
+ /** @internal */
3647
+ export const Exists$outboundSchema: z.ZodType<
3648
+ Exists$Outbound,
3649
+ z.ZodTypeDef,
3650
+ Exists
3651
+ > = z.object({
3652
+ exists: z.boolean(),
3653
+ });
3654
+
3655
+ export function existsToJSON(exists: Exists): string {
3656
+ return JSON.stringify(Exists$outboundSchema.parse(exists));
3657
+ }
3658
+
3659
+ /** @internal */
3660
+ export type OneNin$Outbound = string | number | boolean;
3661
+
3662
+ /** @internal */
3663
+ export const OneNin$outboundSchema: z.ZodType<
3664
+ OneNin$Outbound,
3665
+ z.ZodTypeDef,
3666
+ OneNin
3667
+ > = z.union([z.string(), z.number(), z.boolean()]);
3668
+
3669
+ export function oneNinToJSON(oneNin: OneNin): string {
3670
+ return JSON.stringify(OneNin$outboundSchema.parse(oneNin));
3671
+ }
3672
+
3673
+ /** @internal */
3674
+ export type Nin$Outbound = {
3675
+ nin: Array<string | number | boolean>;
3676
+ };
3677
+
3678
+ /** @internal */
3679
+ export const Nin$outboundSchema: z.ZodType<Nin$Outbound, z.ZodTypeDef, Nin> = z
3680
+ .object({
3681
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3682
+ });
3683
+
3684
+ export function ninToJSON(nin: Nin): string {
3685
+ return JSON.stringify(Nin$outboundSchema.parse(nin));
3686
+ }
3687
+
3688
+ /** @internal */
3689
+ export type OneIn$Outbound = string | number | boolean;
3690
+
3691
+ /** @internal */
3692
+ export const OneIn$outboundSchema: z.ZodType<
3693
+ OneIn$Outbound,
3694
+ z.ZodTypeDef,
3695
+ OneIn
3696
+ > = z.union([z.string(), z.number(), z.boolean()]);
3697
+
3698
+ export function oneInToJSON(oneIn: OneIn): string {
3699
+ return JSON.stringify(OneIn$outboundSchema.parse(oneIn));
3700
+ }
3701
+
3702
+ /** @internal */
3703
+ export type In$Outbound = {
3704
+ in: Array<string | number | boolean>;
3705
+ };
3706
+
3707
+ /** @internal */
3708
+ export const In$outboundSchema: z.ZodType<In$Outbound, z.ZodTypeDef, In> = z
3709
+ .object({
3710
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3711
+ });
3712
+
3713
+ export function inToJSON(value: In): string {
3714
+ return JSON.stringify(In$outboundSchema.parse(value));
3715
+ }
3716
+
3717
+ /** @internal */
3718
+ export type Lte$Outbound = {
3719
+ lte: number;
3720
+ };
3721
+
3722
+ /** @internal */
3723
+ export const Lte$outboundSchema: z.ZodType<Lte$Outbound, z.ZodTypeDef, Lte> = z
3724
+ .object({
3725
+ lte: z.number(),
3726
+ });
3727
+
3728
+ export function lteToJSON(lte: Lte): string {
3729
+ return JSON.stringify(Lte$outboundSchema.parse(lte));
3730
+ }
3731
+
3732
+ /** @internal */
3733
+ export type Lt$Outbound = {
3734
+ lt: number;
3735
+ };
3736
+
3737
+ /** @internal */
3738
+ export const Lt$outboundSchema: z.ZodType<Lt$Outbound, z.ZodTypeDef, Lt> = z
3739
+ .object({
3740
+ lt: z.number(),
3741
+ });
3742
+
3743
+ export function ltToJSON(lt: Lt): string {
3744
+ return JSON.stringify(Lt$outboundSchema.parse(lt));
3745
+ }
3746
+
3747
+ /** @internal */
3748
+ export type Gte$Outbound = {
3749
+ gte: number;
3750
+ };
3751
+
3752
+ /** @internal */
3753
+ export const Gte$outboundSchema: z.ZodType<Gte$Outbound, z.ZodTypeDef, Gte> = z
3754
+ .object({
3755
+ gte: z.number(),
3756
+ });
3757
+
3758
+ export function gteToJSON(gte: Gte): string {
3759
+ return JSON.stringify(Gte$outboundSchema.parse(gte));
3760
+ }
3761
+
3762
+ /** @internal */
3763
+ export type Gt$Outbound = {
3764
+ gt: number;
3765
+ };
3766
+
3767
+ /** @internal */
3768
+ export const Gt$outboundSchema: z.ZodType<Gt$Outbound, z.ZodTypeDef, Gt> = z
3769
+ .object({
3770
+ gt: z.number(),
3771
+ });
3772
+
3773
+ export function gtToJSON(gt: Gt): string {
3774
+ return JSON.stringify(Gt$outboundSchema.parse(gt));
3775
+ }
3776
+
3777
+ /** @internal */
3778
+ export type OneNe$Outbound = string | number | boolean;
3779
+
3780
+ /** @internal */
3781
+ export const OneNe$outboundSchema: z.ZodType<
3782
+ OneNe$Outbound,
3783
+ z.ZodTypeDef,
3784
+ OneNe
3785
+ > = z.union([z.string(), z.number(), z.boolean()]);
3786
+
3787
+ export function oneNeToJSON(oneNe: OneNe): string {
3788
+ return JSON.stringify(OneNe$outboundSchema.parse(oneNe));
3789
+ }
3790
+
3791
+ /** @internal */
3792
+ export type Ne$Outbound = {
3793
+ ne: string | number | boolean;
3794
+ };
3795
+
3796
+ /** @internal */
3797
+ export const Ne$outboundSchema: z.ZodType<Ne$Outbound, z.ZodTypeDef, Ne> = z
3798
+ .object({
3799
+ ne: z.union([z.string(), z.number(), z.boolean()]),
3800
+ });
3801
+
3802
+ export function neToJSON(ne: Ne): string {
3803
+ return JSON.stringify(Ne$outboundSchema.parse(ne));
3804
+ }
3805
+
3806
+ /** @internal */
3807
+ export type OneEq$Outbound = string | number | boolean;
3808
+
3809
+ /** @internal */
3810
+ export const OneEq$outboundSchema: z.ZodType<
3811
+ OneEq$Outbound,
3812
+ z.ZodTypeDef,
3813
+ OneEq
3814
+ > = z.union([z.string(), z.number(), z.boolean()]);
3815
+
3816
+ export function oneEqToJSON(oneEq: OneEq): string {
3817
+ return JSON.stringify(OneEq$outboundSchema.parse(oneEq));
3818
+ }
3819
+
3820
+ /** @internal */
3821
+ export type Eq$Outbound = {
3822
+ eq: string | number | boolean;
3823
+ };
3824
+
3825
+ /** @internal */
3826
+ export const Eq$outboundSchema: z.ZodType<Eq$Outbound, z.ZodTypeDef, Eq> = z
3827
+ .object({
3828
+ eq: z.union([z.string(), z.number(), z.boolean()]),
3829
+ });
3830
+
3831
+ export function eqToJSON(eq: Eq): string {
3832
+ return JSON.stringify(Eq$outboundSchema.parse(eq));
3833
+ }
3834
+
3835
+ /** @internal */
3836
+ export type KnowledgeFilter1$Outbound =
3837
+ | Eq$Outbound
3838
+ | Ne$Outbound
3839
+ | Gt$Outbound
3840
+ | Gte$Outbound
3841
+ | Lt$Outbound
3842
+ | Lte$Outbound
3843
+ | In$Outbound
3844
+ | Nin$Outbound
3845
+ | Exists$Outbound;
3846
+
3847
+ /** @internal */
3848
+ export const KnowledgeFilter1$outboundSchema: z.ZodType<
3849
+ KnowledgeFilter1$Outbound,
3850
+ z.ZodTypeDef,
3851
+ KnowledgeFilter1
3852
+ > = z.union([
3853
+ z.lazy(() => Eq$outboundSchema),
3854
+ z.lazy(() => Ne$outboundSchema),
3855
+ z.lazy(() => Gt$outboundSchema),
3856
+ z.lazy(() => Gte$outboundSchema),
3857
+ z.lazy(() => Lt$outboundSchema),
3858
+ z.lazy(() => Lte$outboundSchema),
3859
+ z.lazy(() => In$outboundSchema),
3860
+ z.lazy(() => Nin$outboundSchema),
3861
+ z.lazy(() => Exists$outboundSchema),
3862
+ ]);
3863
+
3864
+ export function knowledgeFilter1ToJSON(
3865
+ knowledgeFilter1: KnowledgeFilter1,
3866
+ ): string {
3867
+ return JSON.stringify(
3868
+ KnowledgeFilter1$outboundSchema.parse(knowledgeFilter1),
3869
+ );
3870
+ }
3871
+
3872
+ /** @internal */
3873
+ export type KnowledgeFilter$Outbound = And$Outbound | Or$Outbound | {
3874
+ [k: string]:
3875
+ | Eq$Outbound
3876
+ | Ne$Outbound
3877
+ | Gt$Outbound
3878
+ | Gte$Outbound
3879
+ | Lt$Outbound
3880
+ | Lte$Outbound
3881
+ | In$Outbound
3882
+ | Nin$Outbound
3883
+ | Exists$Outbound;
3884
+ };
3885
+
3886
+ /** @internal */
3887
+ export const KnowledgeFilter$outboundSchema: z.ZodType<
3888
+ KnowledgeFilter$Outbound,
3889
+ z.ZodTypeDef,
3890
+ KnowledgeFilter
3891
+ > = z.union([
3892
+ z.lazy(() => And$outboundSchema),
3893
+ z.lazy(() => Or$outboundSchema),
3894
+ z.record(z.union([
3895
+ z.lazy(() => Eq$outboundSchema),
3896
+ z.lazy(() => Ne$outboundSchema),
3897
+ z.lazy(() => Gt$outboundSchema),
3898
+ z.lazy(() => Gte$outboundSchema),
3899
+ z.lazy(() => Lt$outboundSchema),
3900
+ z.lazy(() => Lte$outboundSchema),
3901
+ z.lazy(() => In$outboundSchema),
3902
+ z.lazy(() => Nin$outboundSchema),
3903
+ z.lazy(() => Exists$outboundSchema),
3904
+ ])),
3905
+ ]);
3906
+
3907
+ export function knowledgeFilterToJSON(
3908
+ knowledgeFilter: KnowledgeFilter,
3909
+ ): string {
3910
+ return JSON.stringify(KnowledgeFilter$outboundSchema.parse(knowledgeFilter));
3911
+ }
3912
+
3913
+ /** @internal */
3914
+ export type DeploymentGetConfigRequestBody$Outbound = {
3915
+ key: string;
3916
+ inputs?: { [k: string]: any } | undefined;
3917
+ context?: { [k: string]: any } | undefined;
3918
+ prefix_messages?:
3919
+ | Array<
3920
+ | SystemMessage$Outbound
3921
+ | DeveloperMessage$Outbound
3922
+ | UserMessage$Outbound
3923
+ | AssistantMessage$Outbound
3924
+ | ToolMessage$Outbound
3925
+ >
3926
+ | undefined;
3927
+ messages?:
3928
+ | Array<
3929
+ | MessagesSystemMessage$Outbound
3930
+ | MessagesDeveloperMessage$Outbound
3931
+ | MessagesUserMessage$Outbound
3932
+ | MessagesAssistantMessage$Outbound
3933
+ | MessagesToolMessage$Outbound
3934
+ >
3935
+ | undefined;
3936
+ identity?: components.PublicIdentity$Outbound | undefined;
3937
+ file_ids?: Array<string> | undefined;
3938
+ metadata?: { [k: string]: any } | undefined;
3939
+ extra_params?: { [k: string]: any } | undefined;
3940
+ documents?: Array<Documents$Outbound> | undefined;
3941
+ invoke_options?: InvokeOptions$Outbound | undefined;
3942
+ thread?: Thread$Outbound | undefined;
3943
+ knowledge_filter?: And$Outbound | Or$Outbound | {
3944
+ [k: string]:
3945
+ | Eq$Outbound
3946
+ | Ne$Outbound
3947
+ | Gt$Outbound
3948
+ | Gte$Outbound
3949
+ | Lt$Outbound
3950
+ | Lte$Outbound
3951
+ | In$Outbound
3952
+ | Nin$Outbound
3953
+ | Exists$Outbound;
3954
+ } | undefined;
3955
+ };
3956
+
3957
+ /** @internal */
3958
+ export const DeploymentGetConfigRequestBody$outboundSchema: z.ZodType<
3959
+ DeploymentGetConfigRequestBody$Outbound,
3960
+ z.ZodTypeDef,
3961
+ DeploymentGetConfigRequestBody
3962
+ > = z.object({
3963
+ key: z.string(),
3964
+ inputs: z.record(z.any()).optional(),
3965
+ context: z.record(z.any()).optional(),
3966
+ prefixMessages: z.array(
3967
+ z.union([
3968
+ z.lazy(() => SystemMessage$outboundSchema),
3969
+ z.lazy(() => DeveloperMessage$outboundSchema),
3970
+ z.lazy(() => UserMessage$outboundSchema),
3971
+ z.lazy(() => AssistantMessage$outboundSchema),
3972
+ z.lazy(() => ToolMessage$outboundSchema),
3973
+ ]),
3974
+ ).optional(),
3975
+ messages: z.array(
3976
+ z.union([
3977
+ z.lazy(() => MessagesSystemMessage$outboundSchema),
3978
+ z.lazy(() => MessagesDeveloperMessage$outboundSchema),
3979
+ z.lazy(() => MessagesUserMessage$outboundSchema),
3980
+ z.lazy(() => MessagesAssistantMessage$outboundSchema),
3981
+ z.lazy(() => MessagesToolMessage$outboundSchema),
3982
+ ]),
3983
+ ).optional(),
3984
+ identity: components.PublicIdentity$outboundSchema.optional(),
3985
+ fileIds: z.array(z.string()).optional(),
3986
+ metadata: z.record(z.any()).optional(),
3987
+ extraParams: z.record(z.any()).optional(),
3988
+ documents: z.array(z.lazy(() => Documents$outboundSchema)).optional(),
3989
+ invokeOptions: z.lazy(() => InvokeOptions$outboundSchema).optional(),
3990
+ thread: z.lazy(() => Thread$outboundSchema).optional(),
3991
+ knowledgeFilter: z.union([
3992
+ z.lazy(() => And$outboundSchema),
3993
+ z.lazy(() => Or$outboundSchema),
3994
+ z.record(z.union([
3995
+ z.lazy(() => Eq$outboundSchema),
3996
+ z.lazy(() => Ne$outboundSchema),
3997
+ z.lazy(() => Gt$outboundSchema),
3998
+ z.lazy(() => Gte$outboundSchema),
3999
+ z.lazy(() => Lt$outboundSchema),
4000
+ z.lazy(() => Lte$outboundSchema),
4001
+ z.lazy(() => In$outboundSchema),
4002
+ z.lazy(() => Nin$outboundSchema),
4003
+ z.lazy(() => Exists$outboundSchema),
4004
+ ])),
4005
+ ]).optional(),
4006
+ }).transform((v) => {
4007
+ return remap$(v, {
4008
+ prefixMessages: "prefix_messages",
4009
+ fileIds: "file_ids",
4010
+ extraParams: "extra_params",
4011
+ invokeOptions: "invoke_options",
4012
+ knowledgeFilter: "knowledge_filter",
4013
+ });
4014
+ });
4015
+
4016
+ export function deploymentGetConfigRequestBodyToJSON(
4017
+ deploymentGetConfigRequestBody: DeploymentGetConfigRequestBody,
4018
+ ): string {
4019
+ return JSON.stringify(
4020
+ DeploymentGetConfigRequestBody$outboundSchema.parse(
4021
+ deploymentGetConfigRequestBody,
4022
+ ),
4023
+ );
4024
+ }
4025
+
4026
+ /** @internal */
4027
+ export const DeploymentGetConfigType$inboundSchema: z.ZodNativeEnum<
4028
+ typeof DeploymentGetConfigType
4029
+ > = z.nativeEnum(DeploymentGetConfigType);
4030
+
4031
+ /** @internal */
4032
+ export const DeploymentGetConfigRole$inboundSchema: z.ZodNativeEnum<
4033
+ typeof DeploymentGetConfigRole
4034
+ > = z.nativeEnum(DeploymentGetConfigRole);
4035
+
4036
+ /** @internal */
4037
+ export const DeploymentGetConfig2File$inboundSchema: z.ZodType<
4038
+ DeploymentGetConfig2File,
4039
+ z.ZodTypeDef,
4040
+ unknown
4041
+ > = z.object({
4042
+ file_data: z.string().optional(),
4043
+ uri: z.string().optional(),
4044
+ mimeType: z.string().optional(),
4045
+ filename: z.string().optional(),
4046
+ }).transform((v) => {
4047
+ return remap$(v, {
4048
+ "file_data": "fileData",
4049
+ });
4050
+ });
4051
+
4052
+ export function deploymentGetConfig2FileFromJSON(
4053
+ jsonString: string,
4054
+ ): SafeParseResult<DeploymentGetConfig2File, SDKValidationError> {
4055
+ return safeParse(
4056
+ jsonString,
4057
+ (x) => DeploymentGetConfig2File$inboundSchema.parse(JSON.parse(x)),
4058
+ `Failed to parse 'DeploymentGetConfig2File' from JSON`,
4059
+ );
4060
+ }
4061
+
4062
+ /** @internal */
4063
+ export const Two3$inboundSchema: z.ZodType<Two3, z.ZodTypeDef, unknown> = z
4064
+ .object({
4065
+ type: z.literal("file"),
4066
+ file: z.lazy(() => DeploymentGetConfig2File$inboundSchema),
4067
+ });
4068
+
4069
+ export function two3FromJSON(
4070
+ jsonString: string,
4071
+ ): SafeParseResult<Two3, SDKValidationError> {
4072
+ return safeParse(
4073
+ jsonString,
4074
+ (x) => Two3$inboundSchema.parse(JSON.parse(x)),
4075
+ `Failed to parse 'Two3' from JSON`,
4076
+ );
4077
+ }
4078
+
4079
+ /** @internal */
4080
+ export const TwoImageUrl$inboundSchema: z.ZodType<
4081
+ TwoImageUrl,
4082
+ z.ZodTypeDef,
4083
+ unknown
4084
+ > = z.object({
4085
+ id: z.string().optional(),
4086
+ url: z.string(),
4087
+ detail: z.string().optional(),
4088
+ });
4089
+
4090
+ export function twoImageUrlFromJSON(
4091
+ jsonString: string,
4092
+ ): SafeParseResult<TwoImageUrl, SDKValidationError> {
4093
+ return safeParse(
4094
+ jsonString,
4095
+ (x) => TwoImageUrl$inboundSchema.parse(JSON.parse(x)),
4096
+ `Failed to parse 'TwoImageUrl' from JSON`,
4097
+ );
4098
+ }
4099
+
4100
+ /** @internal */
4101
+ export const DeploymentGetConfig22$inboundSchema: z.ZodType<
4102
+ DeploymentGetConfig22,
4103
+ z.ZodTypeDef,
4104
+ unknown
4105
+ > = z.object({
4106
+ type: z.literal("image_url"),
4107
+ image_url: z.lazy(() => TwoImageUrl$inboundSchema),
4108
+ }).transform((v) => {
4109
+ return remap$(v, {
4110
+ "image_url": "imageUrl",
4111
+ });
4112
+ });
4113
+
4114
+ export function deploymentGetConfig22FromJSON(
4115
+ jsonString: string,
4116
+ ): SafeParseResult<DeploymentGetConfig22, SDKValidationError> {
4117
+ return safeParse(
4118
+ jsonString,
4119
+ (x) => DeploymentGetConfig22$inboundSchema.parse(JSON.parse(x)),
4120
+ `Failed to parse 'DeploymentGetConfig22' from JSON`,
4121
+ );
4122
+ }
4123
+
4124
+ /** @internal */
4125
+ export const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown> = z
4126
+ .object({
4127
+ type: z.literal("text"),
4128
+ text: z.string(),
4129
+ });
4130
+
4131
+ export function two1FromJSON(
4132
+ jsonString: string,
4133
+ ): SafeParseResult<Two1, SDKValidationError> {
4134
+ return safeParse(
4135
+ jsonString,
4136
+ (x) => Two1$inboundSchema.parse(JSON.parse(x)),
4137
+ `Failed to parse 'Two1' from JSON`,
4138
+ );
4139
+ }
4140
+
4141
+ /** @internal */
4142
+ export const DeploymentGetConfigContentDeploymentsResponse2$inboundSchema:
4143
+ z.ZodType<
4144
+ DeploymentGetConfigContentDeploymentsResponse2,
4145
+ z.ZodTypeDef,
4146
+ unknown
4147
+ > = z.union([
4148
+ z.lazy(() => Two1$inboundSchema),
4149
+ z.lazy(() => DeploymentGetConfig22$inboundSchema),
4150
+ z.lazy(() => Two3$inboundSchema),
4151
+ ]);
4152
+
4153
+ export function deploymentGetConfigContentDeploymentsResponse2FromJSON(
4154
+ jsonString: string,
4155
+ ): SafeParseResult<
4156
+ DeploymentGetConfigContentDeploymentsResponse2,
4157
+ SDKValidationError
4158
+ > {
4159
+ return safeParse(
4160
+ jsonString,
4161
+ (x) =>
4162
+ DeploymentGetConfigContentDeploymentsResponse2$inboundSchema.parse(
4163
+ JSON.parse(x),
4164
+ ),
4165
+ `Failed to parse 'DeploymentGetConfigContentDeploymentsResponse2' from JSON`,
4166
+ );
4167
+ }
4168
+
4169
+ /** @internal */
4170
+ export const DeploymentGetConfigContent$inboundSchema: z.ZodType<
4171
+ DeploymentGetConfigContent,
4172
+ z.ZodTypeDef,
4173
+ unknown
4174
+ > = z.union([
4175
+ z.string(),
4176
+ z.array(z.union([
4177
+ z.lazy(() => Two1$inboundSchema),
4178
+ z.lazy(() => DeploymentGetConfig22$inboundSchema),
4179
+ z.lazy(() => Two3$inboundSchema),
4180
+ ])),
4181
+ ]);
4182
+
4183
+ export function deploymentGetConfigContentFromJSON(
4184
+ jsonString: string,
4185
+ ): SafeParseResult<DeploymentGetConfigContent, SDKValidationError> {
4186
+ return safeParse(
4187
+ jsonString,
4188
+ (x) => DeploymentGetConfigContent$inboundSchema.parse(JSON.parse(x)),
4189
+ `Failed to parse 'DeploymentGetConfigContent' from JSON`,
4190
+ );
4191
+ }
4192
+
4193
+ /** @internal */
4194
+ export const DeploymentGetConfigDeploymentsResponse200Type$inboundSchema:
4195
+ z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsResponse200Type> = z
4196
+ .nativeEnum(DeploymentGetConfigDeploymentsResponse200Type);
4197
+
4198
+ /** @internal */
4199
+ export const DeploymentGetConfigDeploymentsFunction$inboundSchema: z.ZodType<
4200
+ DeploymentGetConfigDeploymentsFunction,
4201
+ z.ZodTypeDef,
4202
+ unknown
4203
+ > = z.object({
4204
+ name: z.string(),
4205
+ arguments: z.string(),
4206
+ });
4207
+
4208
+ export function deploymentGetConfigDeploymentsFunctionFromJSON(
4209
+ jsonString: string,
4210
+ ): SafeParseResult<DeploymentGetConfigDeploymentsFunction, SDKValidationError> {
4211
+ return safeParse(
4212
+ jsonString,
4213
+ (x) =>
4214
+ DeploymentGetConfigDeploymentsFunction$inboundSchema.parse(JSON.parse(x)),
4215
+ `Failed to parse 'DeploymentGetConfigDeploymentsFunction' from JSON`,
4216
+ );
4217
+ }
4218
+
4219
+ /** @internal */
4220
+ export const DeploymentGetConfigToolCalls$inboundSchema: z.ZodType<
4221
+ DeploymentGetConfigToolCalls,
4222
+ z.ZodTypeDef,
4223
+ unknown
4224
+ > = z.object({
4225
+ id: z.string().optional(),
4226
+ index: z.number().optional(),
4227
+ type: DeploymentGetConfigDeploymentsResponse200Type$inboundSchema,
4228
+ function: z.lazy(() => DeploymentGetConfigDeploymentsFunction$inboundSchema),
4229
+ });
4230
+
4231
+ export function deploymentGetConfigToolCallsFromJSON(
4232
+ jsonString: string,
4233
+ ): SafeParseResult<DeploymentGetConfigToolCalls, SDKValidationError> {
4234
+ return safeParse(
4235
+ jsonString,
4236
+ (x) => DeploymentGetConfigToolCalls$inboundSchema.parse(JSON.parse(x)),
4237
+ `Failed to parse 'DeploymentGetConfigToolCalls' from JSON`,
4238
+ );
4239
+ }
4240
+
4241
+ /** @internal */
4242
+ export const DeploymentGetConfigDeploymentsMessages$inboundSchema: z.ZodType<
4243
+ DeploymentGetConfigDeploymentsMessages,
4244
+ z.ZodTypeDef,
4245
+ unknown
4246
+ > = z.object({
4247
+ role: DeploymentGetConfigRole$inboundSchema,
4248
+ content: z.nullable(
4249
+ z.union([
4250
+ z.string(),
4251
+ z.array(z.union([
4252
+ z.lazy(() => Two1$inboundSchema),
4253
+ z.lazy(() => DeploymentGetConfig22$inboundSchema),
4254
+ z.lazy(() => Two3$inboundSchema),
4255
+ ])),
4256
+ ]),
4257
+ ),
4258
+ tool_calls: z.array(z.lazy(() => DeploymentGetConfigToolCalls$inboundSchema))
4259
+ .optional(),
4260
+ tool_call_id: z.nullable(z.string()).optional(),
4261
+ }).transform((v) => {
4262
+ return remap$(v, {
4263
+ "tool_calls": "toolCalls",
4264
+ "tool_call_id": "toolCallId",
4265
+ });
4266
+ });
4267
+
4268
+ export function deploymentGetConfigDeploymentsMessagesFromJSON(
4269
+ jsonString: string,
4270
+ ): SafeParseResult<DeploymentGetConfigDeploymentsMessages, SDKValidationError> {
4271
+ return safeParse(
4272
+ jsonString,
4273
+ (x) =>
4274
+ DeploymentGetConfigDeploymentsMessages$inboundSchema.parse(JSON.parse(x)),
4275
+ `Failed to parse 'DeploymentGetConfigDeploymentsMessages' from JSON`,
4276
+ );
4277
+ }
4278
+
4279
+ /** @internal */
4280
+ export const DeploymentGetConfigFormat$inboundSchema: z.ZodNativeEnum<
4281
+ typeof DeploymentGetConfigFormat
4282
+ > = z.nativeEnum(DeploymentGetConfigFormat);
4283
+
4284
+ /** @internal */
4285
+ export const Six$inboundSchema: z.ZodNativeEnum<typeof Six> = z.nativeEnum(Six);
4286
+
4287
+ /** @internal */
4288
+ export const Five$inboundSchema: z.ZodNativeEnum<typeof Five> = z.nativeEnum(
4289
+ Five,
4290
+ );
4291
+
4292
+ /** @internal */
4293
+ export const ResponseFormat4$inboundSchema: z.ZodNativeEnum<
4294
+ typeof ResponseFormat4
4295
+ > = z.nativeEnum(ResponseFormat4);
4296
+
4297
+ /** @internal */
4298
+ export const DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema:
4299
+ z.ZodNativeEnum<typeof DeploymentGetConfigResponseFormatDeploymentsType> = z
4300
+ .nativeEnum(DeploymentGetConfigResponseFormatDeploymentsType);
4301
+
4302
+ /** @internal */
4303
+ export const ResponseFormat3$inboundSchema: z.ZodType<
4304
+ ResponseFormat3,
4305
+ z.ZodTypeDef,
4306
+ unknown
4307
+ > = z.object({
4308
+ type: DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema,
4309
+ });
4310
+
4311
+ export function responseFormat3FromJSON(
4312
+ jsonString: string,
4313
+ ): SafeParseResult<ResponseFormat3, SDKValidationError> {
4314
+ return safeParse(
4315
+ jsonString,
4316
+ (x) => ResponseFormat3$inboundSchema.parse(JSON.parse(x)),
4317
+ `Failed to parse 'ResponseFormat3' from JSON`,
4318
+ );
4319
+ }
4320
+
4321
+ /** @internal */
4322
+ export const DeploymentGetConfigResponseFormatType$inboundSchema:
4323
+ z.ZodNativeEnum<typeof DeploymentGetConfigResponseFormatType> = z.nativeEnum(
4324
+ DeploymentGetConfigResponseFormatType,
4325
+ );
4326
+
4327
+ /** @internal */
4328
+ export const ResponseFormat2$inboundSchema: z.ZodType<
4329
+ ResponseFormat2,
4330
+ z.ZodTypeDef,
4331
+ unknown
4332
+ > = z.object({
4333
+ type: DeploymentGetConfigResponseFormatType$inboundSchema,
4334
+ });
4335
+
4336
+ export function responseFormat2FromJSON(
4337
+ jsonString: string,
4338
+ ): SafeParseResult<ResponseFormat2, SDKValidationError> {
4339
+ return safeParse(
4340
+ jsonString,
4341
+ (x) => ResponseFormat2$inboundSchema.parse(JSON.parse(x)),
4342
+ `Failed to parse 'ResponseFormat2' from JSON`,
4343
+ );
4344
+ }
4345
+
4346
+ /** @internal */
4347
+ export const DeploymentGetConfigResponseFormatDeploymentsResponseType$inboundSchema:
4348
+ z.ZodNativeEnum<
4349
+ typeof DeploymentGetConfigResponseFormatDeploymentsResponseType
4350
+ > = z.nativeEnum(DeploymentGetConfigResponseFormatDeploymentsResponseType);
4351
+
4352
+ /** @internal */
4353
+ export const DeploymentGetConfigResponseFormatJsonSchema$inboundSchema:
4354
+ z.ZodType<
4355
+ DeploymentGetConfigResponseFormatJsonSchema,
4356
+ z.ZodTypeDef,
4357
+ unknown
4358
+ > = z.object({
4359
+ name: z.string(),
4360
+ description: z.nullable(z.string()).optional(),
4361
+ strict: z.boolean().optional(),
4362
+ schema: z.record(z.any()),
4363
+ });
4364
+
4365
+ export function deploymentGetConfigResponseFormatJsonSchemaFromJSON(
4366
+ jsonString: string,
4367
+ ): SafeParseResult<
4368
+ DeploymentGetConfigResponseFormatJsonSchema,
4369
+ SDKValidationError
4370
+ > {
4371
+ return safeParse(
4372
+ jsonString,
4373
+ (x) =>
4374
+ DeploymentGetConfigResponseFormatJsonSchema$inboundSchema.parse(
4375
+ JSON.parse(x),
4376
+ ),
4377
+ `Failed to parse 'DeploymentGetConfigResponseFormatJsonSchema' from JSON`,
4378
+ );
4379
+ }
4380
+
4381
+ /** @internal */
4382
+ export const ResponseFormat1$inboundSchema: z.ZodType<
4383
+ ResponseFormat1,
4384
+ z.ZodTypeDef,
4385
+ unknown
4386
+ > = z.object({
4387
+ type: DeploymentGetConfigResponseFormatDeploymentsResponseType$inboundSchema,
4388
+ display_name: z.string().optional(),
4389
+ json_schema: z.lazy(() =>
4390
+ DeploymentGetConfigResponseFormatJsonSchema$inboundSchema
4391
+ ),
4392
+ }).transform((v) => {
4393
+ return remap$(v, {
4394
+ "display_name": "displayName",
4395
+ "json_schema": "jsonSchema",
4396
+ });
4397
+ });
4398
+
4399
+ export function responseFormat1FromJSON(
4400
+ jsonString: string,
4401
+ ): SafeParseResult<ResponseFormat1, SDKValidationError> {
4402
+ return safeParse(
4403
+ jsonString,
4404
+ (x) => ResponseFormat1$inboundSchema.parse(JSON.parse(x)),
4405
+ `Failed to parse 'ResponseFormat1' from JSON`,
4406
+ );
4407
+ }
4408
+
4409
+ /** @internal */
4410
+ export const DeploymentGetConfigResponseFormat$inboundSchema: z.ZodType<
4411
+ DeploymentGetConfigResponseFormat,
4412
+ z.ZodTypeDef,
4413
+ unknown
4414
+ > = z.union([
4415
+ z.lazy(() => ResponseFormat1$inboundSchema),
4416
+ z.lazy(() => ResponseFormat2$inboundSchema),
4417
+ z.lazy(() => ResponseFormat3$inboundSchema),
4418
+ ResponseFormat4$inboundSchema,
4419
+ Five$inboundSchema,
4420
+ Six$inboundSchema,
4421
+ ]);
4422
+
4423
+ export function deploymentGetConfigResponseFormatFromJSON(
4424
+ jsonString: string,
4425
+ ): SafeParseResult<DeploymentGetConfigResponseFormat, SDKValidationError> {
4426
+ return safeParse(
4427
+ jsonString,
4428
+ (x) => DeploymentGetConfigResponseFormat$inboundSchema.parse(JSON.parse(x)),
4429
+ `Failed to parse 'DeploymentGetConfigResponseFormat' from JSON`,
4430
+ );
4431
+ }
4432
+
4433
+ /** @internal */
4434
+ export const DeploymentGetConfigDeploymentsResponseType$inboundSchema:
4435
+ z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsResponseType> = z
4436
+ .nativeEnum(DeploymentGetConfigDeploymentsResponseType);
4437
+
4438
+ /** @internal */
4439
+ export const DeploymentGetConfigTtl$inboundSchema: z.ZodNativeEnum<
4440
+ typeof DeploymentGetConfigTtl
4441
+ > = z.nativeEnum(DeploymentGetConfigTtl);
4442
+
4443
+ /** @internal */
4444
+ export const DeploymentGetConfigCacheControl$inboundSchema: z.ZodType<
4445
+ DeploymentGetConfigCacheControl,
4446
+ z.ZodTypeDef,
4447
+ unknown
4448
+ > = z.object({
4449
+ type: DeploymentGetConfigDeploymentsResponseType$inboundSchema,
4450
+ ttl: DeploymentGetConfigTtl$inboundSchema.default("5m"),
4451
+ });
4452
+
4453
+ export function deploymentGetConfigCacheControlFromJSON(
4454
+ jsonString: string,
4455
+ ): SafeParseResult<DeploymentGetConfigCacheControl, SDKValidationError> {
4456
+ return safeParse(
4457
+ jsonString,
4458
+ (x) => DeploymentGetConfigCacheControl$inboundSchema.parse(JSON.parse(x)),
4459
+ `Failed to parse 'DeploymentGetConfigCacheControl' from JSON`,
4460
+ );
4461
+ }
4462
+
4463
+ /** @internal */
4464
+ export const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<
4465
+ typeof PhotoRealVersion
4466
+ > = z.nativeEnum(PhotoRealVersion);
4467
+
4468
+ /** @internal */
4469
+ export const DeploymentGetConfigEncodingFormat$inboundSchema: z.ZodNativeEnum<
4470
+ typeof DeploymentGetConfigEncodingFormat
4471
+ > = z.nativeEnum(DeploymentGetConfigEncodingFormat);
4472
+
4473
+ /** @internal */
4474
+ export const DeploymentGetConfigReasoningEffort$inboundSchema: z.ZodNativeEnum<
4475
+ typeof DeploymentGetConfigReasoningEffort
4476
+ > = z.nativeEnum(DeploymentGetConfigReasoningEffort);
4477
+
4478
+ /** @internal */
4479
+ export const DeploymentGetConfigVerbosity$inboundSchema: z.ZodNativeEnum<
4480
+ typeof DeploymentGetConfigVerbosity
4481
+ > = z.nativeEnum(DeploymentGetConfigVerbosity);
4482
+
4483
+ /** @internal */
4484
+ export const ThinkingLevel$inboundSchema: z.ZodNativeEnum<
4485
+ typeof ThinkingLevel
4486
+ > = z.nativeEnum(ThinkingLevel);
4487
+
4488
+ /** @internal */
4489
+ export const DeploymentGetConfigParameters$inboundSchema: z.ZodType<
4490
+ DeploymentGetConfigParameters,
4491
+ z.ZodTypeDef,
4492
+ unknown
4493
+ > = z.object({
4494
+ temperature: z.number().optional(),
4495
+ maxTokens: z.number().optional(),
4496
+ topK: z.number().optional(),
4497
+ topP: z.number().optional(),
4498
+ frequencyPenalty: z.number().optional(),
4499
+ presencePenalty: z.number().optional(),
4500
+ numImages: z.number().optional(),
4501
+ seed: z.number().optional(),
4502
+ format: DeploymentGetConfigFormat$inboundSchema.optional(),
4503
+ dimensions: z.string().optional(),
4504
+ quality: z.string().optional(),
4505
+ style: z.string().optional(),
4506
+ responseFormat: z.nullable(
4507
+ z.union([
4508
+ z.lazy(() => ResponseFormat1$inboundSchema),
4509
+ z.lazy(() => ResponseFormat2$inboundSchema),
4510
+ z.lazy(() => ResponseFormat3$inboundSchema),
4511
+ ResponseFormat4$inboundSchema,
4512
+ Five$inboundSchema,
4513
+ Six$inboundSchema,
4514
+ ]),
4515
+ ).optional(),
4516
+ cacheControl: z.nullable(
4517
+ z.lazy(() => DeploymentGetConfigCacheControl$inboundSchema),
4518
+ ).optional(),
4519
+ photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
4520
+ encoding_format: DeploymentGetConfigEncodingFormat$inboundSchema.optional(),
4521
+ reasoningEffort: DeploymentGetConfigReasoningEffort$inboundSchema.optional(),
4522
+ budgetTokens: z.number().optional(),
4523
+ verbosity: DeploymentGetConfigVerbosity$inboundSchema.optional(),
4524
+ thinkingLevel: ThinkingLevel$inboundSchema.optional(),
4525
+ }).transform((v) => {
4526
+ return remap$(v, {
4527
+ "encoding_format": "encodingFormat",
4528
+ });
4529
+ });
4530
+
4531
+ export function deploymentGetConfigParametersFromJSON(
4532
+ jsonString: string,
4533
+ ): SafeParseResult<DeploymentGetConfigParameters, SDKValidationError> {
4534
+ return safeParse(
4535
+ jsonString,
4536
+ (x) => DeploymentGetConfigParameters$inboundSchema.parse(JSON.parse(x)),
4537
+ `Failed to parse 'DeploymentGetConfigParameters' from JSON`,
4538
+ );
4539
+ }
4540
+
4541
+ /** @internal */
4542
+ export const DeploymentGetConfigDeploymentsType$inboundSchema: z.ZodNativeEnum<
4543
+ typeof DeploymentGetConfigDeploymentsType
4544
+ > = z.nativeEnum(DeploymentGetConfigDeploymentsType);
4545
+
4546
+ /** @internal */
4547
+ export const DeploymentGetConfigFunction$inboundSchema: z.ZodType<
4548
+ DeploymentGetConfigFunction,
4549
+ z.ZodTypeDef,
4550
+ unknown
4551
+ > = z.object({
4552
+ name: z.string(),
4553
+ description: z.string().optional(),
4554
+ parameters: z.record(z.any()).optional(),
4555
+ });
4556
+
4557
+ export function deploymentGetConfigFunctionFromJSON(
4558
+ jsonString: string,
4559
+ ): SafeParseResult<DeploymentGetConfigFunction, SDKValidationError> {
4560
+ return safeParse(
4561
+ jsonString,
4562
+ (x) => DeploymentGetConfigFunction$inboundSchema.parse(JSON.parse(x)),
4563
+ `Failed to parse 'DeploymentGetConfigFunction' from JSON`,
4564
+ );
4565
+ }
4566
+
4567
+ /** @internal */
4568
+ export const DeploymentGetConfigTools$inboundSchema: z.ZodType<
4569
+ DeploymentGetConfigTools,
4570
+ z.ZodTypeDef,
4571
+ unknown
4572
+ > = z.object({
4573
+ type: DeploymentGetConfigDeploymentsType$inboundSchema,
4574
+ function: z.lazy(() => DeploymentGetConfigFunction$inboundSchema),
4575
+ });
4576
+
4577
+ export function deploymentGetConfigToolsFromJSON(
4578
+ jsonString: string,
4579
+ ): SafeParseResult<DeploymentGetConfigTools, SDKValidationError> {
4580
+ return safeParse(
4581
+ jsonString,
4582
+ (x) => DeploymentGetConfigTools$inboundSchema.parse(JSON.parse(x)),
4583
+ `Failed to parse 'DeploymentGetConfigTools' from JSON`,
4584
+ );
4585
+ }
4586
+
4587
+ /** @internal */
4588
+ export const DeploymentGetConfigResponseBody$inboundSchema: z.ZodType<
4589
+ DeploymentGetConfigResponseBody,
4590
+ z.ZodTypeDef,
4591
+ unknown
4592
+ > = z.object({
4593
+ id: z.string(),
4594
+ provider: z.string(),
4595
+ model: z.string(),
4596
+ type: DeploymentGetConfigType$inboundSchema.optional(),
4597
+ version: z.string(),
4598
+ messages: z.array(
4599
+ z.lazy(() => DeploymentGetConfigDeploymentsMessages$inboundSchema),
4600
+ ),
4601
+ parameters: z.lazy(() => DeploymentGetConfigParameters$inboundSchema),
4602
+ tools: z.array(z.lazy(() => DeploymentGetConfigTools$inboundSchema))
4603
+ .optional(),
4604
+ });
4605
+
4606
+ export function deploymentGetConfigResponseBodyFromJSON(
4607
+ jsonString: string,
4608
+ ): SafeParseResult<DeploymentGetConfigResponseBody, SDKValidationError> {
4609
+ return safeParse(
4610
+ jsonString,
4611
+ (x) => DeploymentGetConfigResponseBody$inboundSchema.parse(JSON.parse(x)),
4612
+ `Failed to parse 'DeploymentGetConfigResponseBody' from JSON`,
4613
+ );
4614
+ }