@orq-ai/node 4.11.0-rc.51 → 4.11.0-rc.53

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 (337) hide show
  1. package/README.md +51 -36
  2. package/funcs/knowledgeList.js +1 -0
  3. package/funcs/knowledgeList.js.map +1 -1
  4. package/funcs/managementKeysCreate.d.ts +17 -0
  5. package/funcs/managementKeysCreate.d.ts.map +1 -0
  6. package/funcs/managementKeysCreate.js +115 -0
  7. package/funcs/managementKeysCreate.js.map +1 -0
  8. package/funcs/managementKeysDelete.d.ts +18 -0
  9. package/funcs/managementKeysDelete.d.ts.map +1 -0
  10. package/funcs/managementKeysDelete.js +118 -0
  11. package/funcs/managementKeysDelete.js.map +1 -0
  12. package/funcs/managementKeysGet.d.ts +18 -0
  13. package/funcs/managementKeysGet.d.ts.map +1 -0
  14. package/funcs/managementKeysGet.js +118 -0
  15. package/funcs/managementKeysGet.js.map +1 -0
  16. package/funcs/managementKeysList.d.ts +18 -0
  17. package/funcs/managementKeysList.d.ts.map +1 -0
  18. package/funcs/managementKeysList.js +124 -0
  19. package/funcs/managementKeysList.js.map +1 -0
  20. package/funcs/managementKeysListCapabilities.d.ts +17 -0
  21. package/funcs/managementKeysListCapabilities.d.ts.map +1 -0
  22. package/funcs/managementKeysListCapabilities.js +105 -0
  23. package/funcs/managementKeysListCapabilities.js.map +1 -0
  24. package/funcs/managementKeysUpdate.d.ts +18 -0
  25. package/funcs/managementKeysUpdate.d.ts.map +1 -0
  26. package/funcs/managementKeysUpdate.js +121 -0
  27. package/funcs/managementKeysUpdate.js.map +1 -0
  28. package/funcs/memoryStoresList.js +1 -0
  29. package/funcs/memoryStoresList.js.map +1 -1
  30. package/jsr.json +1 -1
  31. package/lib/config.d.ts +3 -3
  32. package/lib/config.js +3 -3
  33. package/models/components/createmanagementkeyrequest.d.ts +42 -0
  34. package/models/components/createmanagementkeyrequest.d.ts.map +1 -0
  35. package/models/components/createmanagementkeyrequest.js +59 -0
  36. package/models/components/createmanagementkeyrequest.js.map +1 -0
  37. package/models/components/createmanagementkeyresponse.d.ts +21 -0
  38. package/models/components/createmanagementkeyresponse.d.ts.map +1 -0
  39. package/models/components/createmanagementkeyresponse.js +57 -0
  40. package/models/components/createmanagementkeyresponse.js.map +1 -0
  41. package/models/components/deletemanagementkeyresponse.d.ts +8 -0
  42. package/models/components/deletemanagementkeyresponse.d.ts.map +1 -0
  43. package/models/components/deletemanagementkeyresponse.js +48 -0
  44. package/models/components/deletemanagementkeyresponse.js.map +1 -0
  45. package/models/components/domain.d.ts +5 -12
  46. package/models/components/domain.d.ts.map +1 -1
  47. package/models/components/domain.js +0 -2
  48. package/models/components/domain.js.map +1 -1
  49. package/models/components/getmanagementkeyresponse.d.ts +14 -0
  50. package/models/components/getmanagementkeyresponse.d.ts.map +1 -0
  51. package/models/components/getmanagementkeyresponse.js +56 -0
  52. package/models/components/getmanagementkeyresponse.js.map +1 -0
  53. package/models/components/guardrailrule.d.ts +2 -0
  54. package/models/components/guardrailrule.d.ts.map +1 -1
  55. package/models/components/guardrailrule.js +2 -0
  56. package/models/components/guardrailrule.js.map +1 -1
  57. package/models/components/index.d.ts +16 -0
  58. package/models/components/index.d.ts.map +1 -1
  59. package/models/components/index.js +16 -0
  60. package/models/components/index.js.map +1 -1
  61. package/models/components/listmanagementcapabilitiesresponse.d.ts +14 -0
  62. package/models/components/listmanagementcapabilitiesresponse.d.ts.map +1 -0
  63. package/models/components/listmanagementcapabilitiesresponse.js +51 -0
  64. package/models/components/listmanagementcapabilitiesresponse.js.map +1 -0
  65. package/models/components/listmanagementkeysresponse.d.ts +28 -0
  66. package/models/components/listmanagementkeysresponse.d.ts.map +1 -0
  67. package/models/components/listmanagementkeysresponse.js +58 -0
  68. package/models/components/listmanagementkeysresponse.js.map +1 -0
  69. package/models/components/managementkey.d.ts +80 -0
  70. package/models/components/managementkey.d.ts.map +1 -0
  71. package/models/components/managementkey.js +77 -0
  72. package/models/components/managementkey.js.map +1 -0
  73. package/models/components/managementkeystatus.d.ts +14 -0
  74. package/models/components/managementkeystatus.d.ts.map +1 -0
  75. package/models/components/managementkeystatus.js +51 -0
  76. package/models/components/managementkeystatus.js.map +1 -0
  77. package/models/components/managementpermissionmode.d.ts +14 -0
  78. package/models/components/managementpermissionmode.d.ts.map +1 -0
  79. package/models/components/managementpermissionmode.js +51 -0
  80. package/models/components/managementpermissionmode.js.map +1 -0
  81. package/models/components/piiredactionplugin.d.ts +14 -0
  82. package/models/components/piiredactionplugin.d.ts.map +1 -0
  83. package/models/components/piiredactionplugin.js +59 -0
  84. package/models/components/piiredactionplugin.js.map +1 -0
  85. package/models/components/piiredactionpluginen.d.ts +132 -0
  86. package/models/components/piiredactionpluginen.d.ts.map +1 -0
  87. package/models/components/piiredactionpluginen.js +159 -0
  88. package/models/components/piiredactionpluginen.js.map +1 -0
  89. package/models/components/piiredactionpluginnl.d.ts +124 -0
  90. package/models/components/piiredactionpluginnl.d.ts.map +1 -0
  91. package/models/components/piiredactionpluginnl.js +149 -0
  92. package/models/components/piiredactionpluginnl.js.map +1 -0
  93. package/models/components/plugin.d.ts +11 -0
  94. package/models/components/plugin.d.ts.map +1 -0
  95. package/models/components/plugin.js +57 -0
  96. package/models/components/plugin.js.map +1 -0
  97. package/models/components/publicpiiredactionplugin.d.ts +79 -0
  98. package/models/components/publicpiiredactionplugin.d.ts.map +1 -0
  99. package/models/components/publicpiiredactionplugin.js +86 -0
  100. package/models/components/publicpiiredactionplugin.js.map +1 -0
  101. package/models/components/reasoningpart.js +1 -1
  102. package/models/components/updatemanagementkeyrequest.d.ts +47 -0
  103. package/models/components/updatemanagementkeyrequest.d.ts.map +1 -0
  104. package/models/components/updatemanagementkeyrequest.js +63 -0
  105. package/models/components/updatemanagementkeyrequest.js.map +1 -0
  106. package/models/components/updatemanagementkeyresponse.d.ts +14 -0
  107. package/models/components/updatemanagementkeyresponse.d.ts.map +1 -0
  108. package/models/components/updatemanagementkeyresponse.js +56 -0
  109. package/models/components/updatemanagementkeyresponse.js.map +1 -0
  110. package/models/operations/createagentrequest.d.ts +38 -0
  111. package/models/operations/createagentrequest.d.ts.map +1 -1
  112. package/models/operations/createagentrequest.js +57 -5
  113. package/models/operations/createagentrequest.js.map +1 -1
  114. package/models/operations/createchatcompletion.d.ts +11 -0
  115. package/models/operations/createchatcompletion.d.ts.map +1 -1
  116. package/models/operations/createchatcompletion.js +16 -3
  117. package/models/operations/createchatcompletion.js.map +1 -1
  118. package/models/operations/createcompletion.d.ts +11 -0
  119. package/models/operations/createcompletion.d.ts.map +1 -1
  120. package/models/operations/createcompletion.js +16 -3
  121. package/models/operations/createcompletion.js.map +1 -1
  122. package/models/operations/createdataset.js +1 -1
  123. package/models/operations/createdatasetitem.js +4 -4
  124. package/models/operations/createdatasource.js +1 -1
  125. package/models/operations/createeval.js +16 -16
  126. package/models/operations/createimage.d.ts +11 -0
  127. package/models/operations/createimage.d.ts.map +1 -1
  128. package/models/operations/createimage.js +14 -1
  129. package/models/operations/createimage.js.map +1 -1
  130. package/models/operations/createprompt.d.ts +19 -0
  131. package/models/operations/createprompt.d.ts.map +1 -1
  132. package/models/operations/createprompt.js +29 -3
  133. package/models/operations/createprompt.js.map +1 -1
  134. package/models/operations/creatererank.d.ts +11 -0
  135. package/models/operations/creatererank.d.ts.map +1 -1
  136. package/models/operations/creatererank.js +14 -1
  137. package/models/operations/creatererank.js.map +1 -1
  138. package/models/operations/createrouterresponse.d.ts +5 -0
  139. package/models/operations/createrouterresponse.d.ts.map +1 -1
  140. package/models/operations/createrouterresponse.js +1 -0
  141. package/models/operations/createrouterresponse.js.map +1 -1
  142. package/models/operations/createtool.js +6 -6
  143. package/models/operations/getallmemorystores.d.ts +5 -0
  144. package/models/operations/getallmemorystores.d.ts.map +1 -1
  145. package/models/operations/getallmemorystores.js +2 -0
  146. package/models/operations/getallmemorystores.js.map +1 -1
  147. package/models/operations/getallprompts.d.ts +8 -0
  148. package/models/operations/getallprompts.d.ts.map +1 -1
  149. package/models/operations/getallprompts.js +14 -1
  150. package/models/operations/getallprompts.js.map +1 -1
  151. package/models/operations/getalltools.js +6 -6
  152. package/models/operations/getevals.js +16 -16
  153. package/models/operations/getoneprompt.d.ts +8 -0
  154. package/models/operations/getoneprompt.d.ts.map +1 -1
  155. package/models/operations/getoneprompt.js +15 -2
  156. package/models/operations/getoneprompt.js.map +1 -1
  157. package/models/operations/getpromptversion.d.ts +8 -0
  158. package/models/operations/getpromptversion.d.ts.map +1 -1
  159. package/models/operations/getpromptversion.js +15 -2
  160. package/models/operations/getpromptversion.js.map +1 -1
  161. package/models/operations/getv2humanevalsets.js +2 -2
  162. package/models/operations/getv2humanevalsetsid.js +2 -2
  163. package/models/operations/guardrailrulecreate.d.ts +1 -0
  164. package/models/operations/guardrailrulecreate.d.ts.map +1 -1
  165. package/models/operations/guardrailrulecreate.js +1 -0
  166. package/models/operations/guardrailrulecreate.js.map +1 -1
  167. package/models/operations/guardrailruleget.d.ts +1 -0
  168. package/models/operations/guardrailruleget.d.ts.map +1 -1
  169. package/models/operations/guardrailruleget.js +1 -0
  170. package/models/operations/guardrailruleget.js.map +1 -1
  171. package/models/operations/guardrailruleupdate.d.ts +1 -0
  172. package/models/operations/guardrailruleupdate.d.ts.map +1 -1
  173. package/models/operations/guardrailruleupdate.js +1 -0
  174. package/models/operations/guardrailruleupdate.js.map +1 -1
  175. package/models/operations/index.d.ts +4 -0
  176. package/models/operations/index.d.ts.map +1 -1
  177. package/models/operations/index.js +4 -0
  178. package/models/operations/index.js.map +1 -1
  179. package/models/operations/listagents.d.ts +16 -0
  180. package/models/operations/listagents.d.ts.map +1 -1
  181. package/models/operations/listagents.js +28 -2
  182. package/models/operations/listagents.js.map +1 -1
  183. package/models/operations/listdatasetdatapoints.js +4 -4
  184. package/models/operations/listdatasets.js +1 -1
  185. package/models/operations/listdatasources.js +1 -1
  186. package/models/operations/listknowledgebases.d.ts +5 -0
  187. package/models/operations/listknowledgebases.d.ts.map +1 -1
  188. package/models/operations/listknowledgebases.js +2 -0
  189. package/models/operations/listknowledgebases.js.map +1 -1
  190. package/models/operations/listpromptversions.d.ts +8 -0
  191. package/models/operations/listpromptversions.d.ts.map +1 -1
  192. package/models/operations/listpromptversions.js +15 -2
  193. package/models/operations/listpromptversions.js.map +1 -1
  194. package/models/operations/managementkeydelete.d.ts +15 -0
  195. package/models/operations/managementkeydelete.d.ts.map +1 -0
  196. package/models/operations/managementkeydelete.js +54 -0
  197. package/models/operations/managementkeydelete.js.map +1 -0
  198. package/models/operations/managementkeyget.d.ts +15 -0
  199. package/models/operations/managementkeyget.d.ts.map +1 -0
  200. package/models/operations/managementkeyget.js +54 -0
  201. package/models/operations/managementkeyget.js.map +1 -0
  202. package/models/operations/managementkeylist.d.ts +53 -0
  203. package/models/operations/managementkeylist.d.ts.map +1 -0
  204. package/models/operations/managementkeylist.js +63 -0
  205. package/models/operations/managementkeylist.js.map +1 -0
  206. package/models/operations/managementkeyupdate.d.ts +18 -0
  207. package/models/operations/managementkeyupdate.d.ts.map +1 -0
  208. package/models/operations/managementkeyupdate.js +57 -0
  209. package/models/operations/managementkeyupdate.js.map +1 -0
  210. package/models/operations/patchv2humanevalsetsid.js +2 -2
  211. package/models/operations/postv2feedbackevaluation.js +3 -3
  212. package/models/operations/postv2humanevalsets.js +2 -2
  213. package/models/operations/retrieveagentrequest.d.ts +16 -0
  214. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  215. package/models/operations/retrieveagentrequest.js +28 -2
  216. package/models/operations/retrieveagentrequest.js.map +1 -1
  217. package/models/operations/retrievedatapoint.js +4 -4
  218. package/models/operations/retrievedataset.js +1 -1
  219. package/models/operations/retrievedatasource.js +1 -1
  220. package/models/operations/retrievetool.js +6 -6
  221. package/models/operations/runagent.d.ts +22 -0
  222. package/models/operations/runagent.d.ts.map +1 -1
  223. package/models/operations/runagent.js +30 -4
  224. package/models/operations/runagent.js.map +1 -1
  225. package/models/operations/streamrunagent.d.ts +22 -0
  226. package/models/operations/streamrunagent.d.ts.map +1 -1
  227. package/models/operations/streamrunagent.js +30 -4
  228. package/models/operations/streamrunagent.js.map +1 -1
  229. package/models/operations/updateagent.d.ts +38 -0
  230. package/models/operations/updateagent.d.ts.map +1 -1
  231. package/models/operations/updateagent.js +57 -5
  232. package/models/operations/updateagent.js.map +1 -1
  233. package/models/operations/updatedatapoint.js +4 -4
  234. package/models/operations/updatedataset.js +1 -1
  235. package/models/operations/updatedatasource.js +1 -1
  236. package/models/operations/updateeval.js +16 -16
  237. package/models/operations/updateprompt.d.ts +19 -0
  238. package/models/operations/updateprompt.d.ts.map +1 -1
  239. package/models/operations/updateprompt.js +29 -3
  240. package/models/operations/updateprompt.js.map +1 -1
  241. package/models/operations/updatetool.js +7 -7
  242. package/package.json +5 -5
  243. package/sdk/feedback.d.ts +4 -1
  244. package/sdk/feedback.d.ts.map +1 -1
  245. package/sdk/feedback.js +4 -1
  246. package/sdk/feedback.js.map +1 -1
  247. package/sdk/managementkeys.d.ts +48 -0
  248. package/sdk/managementkeys.d.ts.map +1 -0
  249. package/sdk/managementkeys.js +72 -0
  250. package/sdk/managementkeys.js.map +1 -0
  251. package/sdk/sdk.d.ts +3 -0
  252. package/sdk/sdk.d.ts.map +1 -1
  253. package/sdk/sdk.js +4 -0
  254. package/sdk/sdk.js.map +1 -1
  255. package/src/funcs/knowledgeList.ts +1 -0
  256. package/src/funcs/managementKeysCreate.ts +163 -0
  257. package/src/funcs/managementKeysDelete.ts +172 -0
  258. package/src/funcs/managementKeysGet.ts +171 -0
  259. package/src/funcs/managementKeysList.ts +175 -0
  260. package/src/funcs/managementKeysListCapabilities.ts +144 -0
  261. package/src/funcs/managementKeysUpdate.ts +175 -0
  262. package/src/funcs/memoryStoresList.ts +1 -0
  263. package/src/lib/config.ts +3 -3
  264. package/src/models/components/createmanagementkeyrequest.ts +69 -0
  265. package/src/models/components/createmanagementkeyresponse.ts +48 -0
  266. package/src/models/components/deletemanagementkeyresponse.ts +27 -0
  267. package/src/models/components/domain.ts +5 -14
  268. package/src/models/components/getmanagementkeyresponse.ts +40 -0
  269. package/src/models/components/guardrailrule.ts +3 -0
  270. package/src/models/components/index.ts +16 -0
  271. package/src/models/components/listmanagementcapabilitiesresponse.ts +36 -0
  272. package/src/models/components/listmanagementkeysresponse.ts +56 -0
  273. package/src/models/components/managementkey.ts +132 -0
  274. package/src/models/components/managementkeystatus.ts +23 -0
  275. package/src/models/components/managementpermissionmode.ts +25 -0
  276. package/src/models/components/piiredactionplugin.ts +44 -0
  277. package/src/models/components/piiredactionpluginen.ts +193 -0
  278. package/src/models/components/piiredactionpluginnl.ts +197 -0
  279. package/src/models/components/plugin.ts +37 -0
  280. package/src/models/components/publicpiiredactionplugin.ts +127 -0
  281. package/src/models/components/reasoningpart.ts +1 -1
  282. package/src/models/components/updatemanagementkeyrequest.ts +80 -0
  283. package/src/models/components/updatemanagementkeyresponse.ts +40 -0
  284. package/src/models/operations/createagentrequest.ts +167 -0
  285. package/src/models/operations/createchatcompletion.ts +47 -0
  286. package/src/models/operations/createcompletion.ts +45 -0
  287. package/src/models/operations/createdataset.ts +1 -1
  288. package/src/models/operations/createdatasetitem.ts +4 -4
  289. package/src/models/operations/createdatasource.ts +1 -1
  290. package/src/models/operations/createeval.ts +16 -16
  291. package/src/models/operations/createimage.ts +45 -0
  292. package/src/models/operations/createprompt.ts +81 -0
  293. package/src/models/operations/creatererank.ts +45 -0
  294. package/src/models/operations/createrouterresponse.ts +11 -0
  295. package/src/models/operations/createtool.ts +6 -6
  296. package/src/models/operations/getallmemorystores.ts +7 -0
  297. package/src/models/operations/getallprompts.ts +36 -0
  298. package/src/models/operations/getalltools.ts +6 -6
  299. package/src/models/operations/getevals.ts +16 -16
  300. package/src/models/operations/getoneprompt.ts +36 -0
  301. package/src/models/operations/getpromptversion.ts +36 -0
  302. package/src/models/operations/getv2humanevalsets.ts +2 -2
  303. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  304. package/src/models/operations/guardrailrulecreate.ts +2 -0
  305. package/src/models/operations/guardrailruleget.ts +2 -0
  306. package/src/models/operations/guardrailruleupdate.ts +2 -0
  307. package/src/models/operations/index.ts +4 -0
  308. package/src/models/operations/listagents.ts +79 -0
  309. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  310. package/src/models/operations/listdatasets.ts +1 -1
  311. package/src/models/operations/listdatasources.ts +1 -1
  312. package/src/models/operations/listknowledgebases.ts +7 -0
  313. package/src/models/operations/listpromptversions.ts +36 -0
  314. package/src/models/operations/managementkeydelete.ts +39 -0
  315. package/src/models/operations/managementkeyget.ts +39 -0
  316. package/src/models/operations/managementkeylist.ts +85 -0
  317. package/src/models/operations/managementkeyupdate.ts +45 -0
  318. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  319. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  320. package/src/models/operations/postv2humanevalsets.ts +2 -2
  321. package/src/models/operations/retrieveagentrequest.ts +79 -0
  322. package/src/models/operations/retrievedatapoint.ts +4 -4
  323. package/src/models/operations/retrievedataset.ts +1 -1
  324. package/src/models/operations/retrievedatasource.ts +1 -1
  325. package/src/models/operations/retrievetool.ts +6 -6
  326. package/src/models/operations/runagent.ts +97 -1
  327. package/src/models/operations/streamrunagent.ts +98 -1
  328. package/src/models/operations/updateagent.ts +173 -0
  329. package/src/models/operations/updatedatapoint.ts +4 -4
  330. package/src/models/operations/updatedataset.ts +1 -1
  331. package/src/models/operations/updatedatasource.ts +1 -1
  332. package/src/models/operations/updateeval.ts +16 -16
  333. package/src/models/operations/updateprompt.ts +81 -0
  334. package/src/models/operations/updatetool.ts +7 -7
  335. package/src/sdk/feedback.ts +4 -1
  336. package/src/sdk/managementkeys.ts +116 -0
  337. package/src/sdk/sdk.ts +6 -0
@@ -185,6 +185,10 @@ export type Guardrails = {
185
185
  executeOn: ExecuteOn;
186
186
  };
187
187
 
188
+ export type Plugins =
189
+ | components.PIIRedactionPluginEn
190
+ | components.PIIRedactionPluginNl;
191
+
188
192
  export type ModelConfigurationFallbacks = {
189
193
  /**
190
194
  * Fallback model identifier
@@ -394,6 +398,12 @@ export type ParametersT = {
394
398
  * A list of guardrails to apply to the request.
395
399
  */
396
400
  guardrails?: Array<Guardrails> | undefined;
401
+ /**
402
+ * Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
403
+ */
404
+ plugins?:
405
+ | Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
406
+ | undefined;
397
407
  /**
398
408
  * Array of fallback models to use if primary model fails
399
409
  */
@@ -649,6 +659,10 @@ export type FallbackModelConfigurationGuardrails = {
649
659
  executeOn: FallbackModelConfigurationExecuteOn;
650
660
  };
651
661
 
662
+ export type FallbackModelConfigurationPlugins =
663
+ | components.PIIRedactionPluginEn
664
+ | components.PIIRedactionPluginNl;
665
+
652
666
  export type FallbackModelConfigurationFallbacks = {
653
667
  /**
654
668
  * Fallback model identifier
@@ -872,6 +886,12 @@ export type FallbackModelConfigurationParameters = {
872
886
  * A list of guardrails to apply to the request.
873
887
  */
874
888
  guardrails?: Array<FallbackModelConfigurationGuardrails> | undefined;
889
+ /**
890
+ * Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
891
+ */
892
+ plugins?:
893
+ | Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
894
+ | undefined;
875
895
  /**
876
896
  * Array of fallback models to use if primary model fails
877
897
  */
@@ -2013,6 +2033,10 @@ export type CreateAgentRequestAgentsResponseGuardrails = {
2013
2033
  executeOn: CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn;
2014
2034
  };
2015
2035
 
2036
+ export type CreateAgentRequestPlugins =
2037
+ | components.PIIRedactionPluginEn
2038
+ | components.PIIRedactionPluginNl;
2039
+
2016
2040
  export type CreateAgentRequestFallbacks = {
2017
2041
  /**
2018
2042
  * Fallback model identifier
@@ -2234,6 +2258,12 @@ export type CreateAgentRequestParameters = {
2234
2258
  * A list of guardrails to apply to the request.
2235
2259
  */
2236
2260
  guardrails?: Array<CreateAgentRequestAgentsResponseGuardrails> | undefined;
2261
+ /**
2262
+ * Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
2263
+ */
2264
+ plugins?:
2265
+ | Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
2266
+ | undefined;
2237
2267
  /**
2238
2268
  * Array of fallback models to use if primary model fails
2239
2269
  */
@@ -2474,6 +2504,10 @@ export type CreateAgentRequestFallbackModelConfigurationGuardrails = {
2474
2504
  executeOn: CreateAgentRequestFallbackModelConfigurationExecuteOn;
2475
2505
  };
2476
2506
 
2507
+ export type CreateAgentRequestFallbackModelConfigurationPlugins =
2508
+ | components.PIIRedactionPluginEn
2509
+ | components.PIIRedactionPluginNl;
2510
+
2477
2511
  export type CreateAgentRequestFallbackModelConfigurationFallbacks = {
2478
2512
  /**
2479
2513
  * Fallback model identifier
@@ -2705,6 +2739,12 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
2705
2739
  guardrails?:
2706
2740
  | Array<CreateAgentRequestFallbackModelConfigurationGuardrails>
2707
2741
  | undefined;
2742
+ /**
2743
+ * Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
2744
+ */
2745
+ plugins?:
2746
+ | Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
2747
+ | undefined;
2708
2748
  /**
2709
2749
  * Array of fallback models to use if primary model fails
2710
2750
  */
@@ -3129,6 +3169,25 @@ export function guardrailsToJSON(guardrails: Guardrails): string {
3129
3169
  return JSON.stringify(Guardrails$outboundSchema.parse(guardrails));
3130
3170
  }
3131
3171
 
3172
+ /** @internal */
3173
+ export type Plugins$Outbound =
3174
+ | components.PIIRedactionPluginEn$Outbound
3175
+ | components.PIIRedactionPluginNl$Outbound;
3176
+
3177
+ /** @internal */
3178
+ export const Plugins$outboundSchema: z.ZodType<
3179
+ Plugins$Outbound,
3180
+ z.ZodTypeDef,
3181
+ Plugins
3182
+ > = z.union([
3183
+ components.PIIRedactionPluginEn$outboundSchema,
3184
+ components.PIIRedactionPluginNl$outboundSchema,
3185
+ ]);
3186
+
3187
+ export function pluginsToJSON(plugins: Plugins): string {
3188
+ return JSON.stringify(Plugins$outboundSchema.parse(plugins));
3189
+ }
3190
+
3132
3191
  /** @internal */
3133
3192
  export type ModelConfigurationFallbacks$Outbound = {
3134
3193
  model: string;
@@ -3323,6 +3382,12 @@ export type ParametersT$Outbound = {
3323
3382
  parallel_tool_calls?: boolean | undefined;
3324
3383
  modalities?: Array<string> | null | undefined;
3325
3384
  guardrails?: Array<Guardrails$Outbound> | undefined;
3385
+ plugins?:
3386
+ | Array<
3387
+ | components.PIIRedactionPluginEn$Outbound
3388
+ | components.PIIRedactionPluginNl$Outbound
3389
+ >
3390
+ | undefined;
3326
3391
  fallbacks?: Array<ModelConfigurationFallbacks$Outbound> | undefined;
3327
3392
  cache?: Cache$Outbound | undefined;
3328
3393
  load_balancer?: LoadBalancer1$Outbound | undefined;
@@ -3366,6 +3431,12 @@ export const ParametersT$outboundSchema: z.ZodType<
3366
3431
  parallelToolCalls: z.boolean().optional(),
3367
3432
  modalities: z.nullable(z.array(Modalities$outboundSchema)).optional(),
3368
3433
  guardrails: z.array(z.lazy(() => Guardrails$outboundSchema)).optional(),
3434
+ plugins: z.array(
3435
+ z.union([
3436
+ components.PIIRedactionPluginEn$outboundSchema,
3437
+ components.PIIRedactionPluginNl$outboundSchema,
3438
+ ]),
3439
+ ).optional(),
3369
3440
  fallbacks: z.array(z.lazy(() => ModelConfigurationFallbacks$outboundSchema))
3370
3441
  .optional(),
3371
3442
  cache: z.lazy(() => Cache$outboundSchema).optional(),
@@ -3810,6 +3881,31 @@ export function fallbackModelConfigurationGuardrailsToJSON(
3810
3881
  );
3811
3882
  }
3812
3883
 
3884
+ /** @internal */
3885
+ export type FallbackModelConfigurationPlugins$Outbound =
3886
+ | components.PIIRedactionPluginEn$Outbound
3887
+ | components.PIIRedactionPluginNl$Outbound;
3888
+
3889
+ /** @internal */
3890
+ export const FallbackModelConfigurationPlugins$outboundSchema: z.ZodType<
3891
+ FallbackModelConfigurationPlugins$Outbound,
3892
+ z.ZodTypeDef,
3893
+ FallbackModelConfigurationPlugins
3894
+ > = z.union([
3895
+ components.PIIRedactionPluginEn$outboundSchema,
3896
+ components.PIIRedactionPluginNl$outboundSchema,
3897
+ ]);
3898
+
3899
+ export function fallbackModelConfigurationPluginsToJSON(
3900
+ fallbackModelConfigurationPlugins: FallbackModelConfigurationPlugins,
3901
+ ): string {
3902
+ return JSON.stringify(
3903
+ FallbackModelConfigurationPlugins$outboundSchema.parse(
3904
+ fallbackModelConfigurationPlugins,
3905
+ ),
3906
+ );
3907
+ }
3908
+
3813
3909
  /** @internal */
3814
3910
  export type FallbackModelConfigurationFallbacks$Outbound = {
3815
3911
  model: string;
@@ -4035,6 +4131,12 @@ export type FallbackModelConfigurationParameters$Outbound = {
4035
4131
  parallel_tool_calls?: boolean | undefined;
4036
4132
  modalities?: Array<string> | null | undefined;
4037
4133
  guardrails?: Array<FallbackModelConfigurationGuardrails$Outbound> | undefined;
4134
+ plugins?:
4135
+ | Array<
4136
+ | components.PIIRedactionPluginEn$Outbound
4137
+ | components.PIIRedactionPluginNl$Outbound
4138
+ >
4139
+ | undefined;
4038
4140
  fallbacks?: Array<FallbackModelConfigurationFallbacks$Outbound> | undefined;
4039
4141
  cache?: FallbackModelConfigurationCache$Outbound | undefined;
4040
4142
  load_balancer?: CreateAgentRequestLoadBalancer1$Outbound | undefined;
@@ -4083,6 +4185,12 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
4083
4185
  guardrails: z.array(
4084
4186
  z.lazy(() => FallbackModelConfigurationGuardrails$outboundSchema),
4085
4187
  ).optional(),
4188
+ plugins: z.array(
4189
+ z.union([
4190
+ components.PIIRedactionPluginEn$outboundSchema,
4191
+ components.PIIRedactionPluginNl$outboundSchema,
4192
+ ]),
4193
+ ).optional(),
4086
4194
  fallbacks: z.array(
4087
4195
  z.lazy(() => FallbackModelConfigurationFallbacks$outboundSchema),
4088
4196
  ).optional(),
@@ -5704,6 +5812,26 @@ export function createAgentRequestAgentsResponseGuardrailsFromJSON(
5704
5812
  );
5705
5813
  }
5706
5814
 
5815
+ /** @internal */
5816
+ export const CreateAgentRequestPlugins$inboundSchema: z.ZodType<
5817
+ CreateAgentRequestPlugins,
5818
+ z.ZodTypeDef,
5819
+ unknown
5820
+ > = z.union([
5821
+ components.PIIRedactionPluginEn$inboundSchema,
5822
+ components.PIIRedactionPluginNl$inboundSchema,
5823
+ ]);
5824
+
5825
+ export function createAgentRequestPluginsFromJSON(
5826
+ jsonString: string,
5827
+ ): SafeParseResult<CreateAgentRequestPlugins, SDKValidationError> {
5828
+ return safeParse(
5829
+ jsonString,
5830
+ (x) => CreateAgentRequestPlugins$inboundSchema.parse(JSON.parse(x)),
5831
+ `Failed to parse 'CreateAgentRequestPlugins' from JSON`,
5832
+ );
5833
+ }
5834
+
5707
5835
  /** @internal */
5708
5836
  export const CreateAgentRequestFallbacks$inboundSchema: z.ZodType<
5709
5837
  CreateAgentRequestFallbacks,
@@ -5908,6 +6036,12 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
5908
6036
  guardrails: z.array(
5909
6037
  z.lazy(() => CreateAgentRequestAgentsResponseGuardrails$inboundSchema),
5910
6038
  ).optional(),
6039
+ plugins: z.array(
6040
+ z.union([
6041
+ components.PIIRedactionPluginEn$inboundSchema,
6042
+ components.PIIRedactionPluginNl$inboundSchema,
6043
+ ]),
6044
+ ).optional(),
5911
6045
  fallbacks: z.array(z.lazy(() => CreateAgentRequestFallbacks$inboundSchema))
5912
6046
  .optional(),
5913
6047
  cache: z.lazy(() => CreateAgentRequestCache$inboundSchema).optional(),
@@ -6335,6 +6469,33 @@ export function createAgentRequestFallbackModelConfigurationGuardrailsFromJSON(
6335
6469
  );
6336
6470
  }
6337
6471
 
6472
+ /** @internal */
6473
+ export const CreateAgentRequestFallbackModelConfigurationPlugins$inboundSchema:
6474
+ z.ZodType<
6475
+ CreateAgentRequestFallbackModelConfigurationPlugins,
6476
+ z.ZodTypeDef,
6477
+ unknown
6478
+ > = z.union([
6479
+ components.PIIRedactionPluginEn$inboundSchema,
6480
+ components.PIIRedactionPluginNl$inboundSchema,
6481
+ ]);
6482
+
6483
+ export function createAgentRequestFallbackModelConfigurationPluginsFromJSON(
6484
+ jsonString: string,
6485
+ ): SafeParseResult<
6486
+ CreateAgentRequestFallbackModelConfigurationPlugins,
6487
+ SDKValidationError
6488
+ > {
6489
+ return safeParse(
6490
+ jsonString,
6491
+ (x) =>
6492
+ CreateAgentRequestFallbackModelConfigurationPlugins$inboundSchema.parse(
6493
+ JSON.parse(x),
6494
+ ),
6495
+ `Failed to parse 'CreateAgentRequestFallbackModelConfigurationPlugins' from JSON`,
6496
+ );
6497
+ }
6498
+
6338
6499
  /** @internal */
6339
6500
  export const CreateAgentRequestFallbackModelConfigurationFallbacks$inboundSchema:
6340
6501
  z.ZodType<
@@ -6597,6 +6758,12 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
6597
6758
  CreateAgentRequestFallbackModelConfigurationGuardrails$inboundSchema
6598
6759
  ),
6599
6760
  ).optional(),
6761
+ plugins: z.array(
6762
+ z.union([
6763
+ components.PIIRedactionPluginEn$inboundSchema,
6764
+ components.PIIRedactionPluginNl$inboundSchema,
6765
+ ]),
6766
+ ).optional(),
6600
6767
  fallbacks: z.array(
6601
6768
  z.lazy(() =>
6602
6769
  CreateAgentRequestFallbackModelConfigurationFallbacks$inboundSchema
@@ -674,6 +674,10 @@ export type CreateChatCompletionGuardrails = {
674
674
  executeOn: CreateChatCompletionExecuteOn;
675
675
  };
676
676
 
677
+ export type CreateChatCompletionPlugins =
678
+ | components.PIIRedactionPluginEn
679
+ | components.PIIRedactionPluginNl;
680
+
677
681
  export type CreateChatCompletionFallbacks = {
678
682
  /**
679
683
  * Fallback model identifier
@@ -1599,6 +1603,12 @@ export type CreateChatCompletionRequestBody = {
1599
1603
  * A list of guardrails to apply to the request.
1600
1604
  */
1601
1605
  guardrails?: Array<CreateChatCompletionGuardrails> | undefined;
1606
+ /**
1607
+ * Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
1608
+ */
1609
+ plugins?:
1610
+ | Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
1611
+ | undefined;
1602
1612
  /**
1603
1613
  * Array of fallback models to use if primary model fails
1604
1614
  */
@@ -3422,6 +3432,31 @@ export function createChatCompletionGuardrailsToJSON(
3422
3432
  );
3423
3433
  }
3424
3434
 
3435
+ /** @internal */
3436
+ export type CreateChatCompletionPlugins$Outbound =
3437
+ | components.PIIRedactionPluginEn$Outbound
3438
+ | components.PIIRedactionPluginNl$Outbound;
3439
+
3440
+ /** @internal */
3441
+ export const CreateChatCompletionPlugins$outboundSchema: z.ZodType<
3442
+ CreateChatCompletionPlugins$Outbound,
3443
+ z.ZodTypeDef,
3444
+ CreateChatCompletionPlugins
3445
+ > = z.union([
3446
+ components.PIIRedactionPluginEn$outboundSchema,
3447
+ components.PIIRedactionPluginNl$outboundSchema,
3448
+ ]);
3449
+
3450
+ export function createChatCompletionPluginsToJSON(
3451
+ createChatCompletionPlugins: CreateChatCompletionPlugins,
3452
+ ): string {
3453
+ return JSON.stringify(
3454
+ CreateChatCompletionPlugins$outboundSchema.parse(
3455
+ createChatCompletionPlugins,
3456
+ ),
3457
+ );
3458
+ }
3459
+
3425
3460
  /** @internal */
3426
3461
  export type CreateChatCompletionFallbacks$Outbound = {
3427
3462
  model: string;
@@ -5434,6 +5469,12 @@ export type CreateChatCompletionRequestBody$Outbound = {
5434
5469
  parallel_tool_calls?: boolean | undefined;
5435
5470
  modalities?: Array<string> | null | undefined;
5436
5471
  guardrails?: Array<CreateChatCompletionGuardrails$Outbound> | undefined;
5472
+ plugins?:
5473
+ | Array<
5474
+ | components.PIIRedactionPluginEn$Outbound
5475
+ | components.PIIRedactionPluginNl$Outbound
5476
+ >
5477
+ | undefined;
5437
5478
  fallbacks?: Array<CreateChatCompletionFallbacks$Outbound> | undefined;
5438
5479
  retry?: CreateChatCompletionRetry$Outbound | undefined;
5439
5480
  cache?: CreateChatCompletionCache$Outbound | undefined;
@@ -5508,6 +5549,12 @@ export const CreateChatCompletionRequestBody$outboundSchema: z.ZodType<
5508
5549
  guardrails: z.array(
5509
5550
  z.lazy(() => CreateChatCompletionGuardrails$outboundSchema),
5510
5551
  ).optional(),
5552
+ plugins: z.array(
5553
+ z.union([
5554
+ components.PIIRedactionPluginEn$outboundSchema,
5555
+ components.PIIRedactionPluginNl$outboundSchema,
5556
+ ]),
5557
+ ).optional(),
5511
5558
  fallbacks: z.array(z.lazy(() => CreateChatCompletionFallbacks$outboundSchema))
5512
5559
  .optional(),
5513
5560
  retry: z.lazy(() => CreateChatCompletionRetry$outboundSchema).optional(),
@@ -99,6 +99,10 @@ export type CreateCompletionThinking =
99
99
  | components.ThinkingConfigEnabledSchema
100
100
  | components.ThinkingConfigAdaptiveSchema;
101
101
 
102
+ export type CreateCompletionPlugins =
103
+ | components.PIIRedactionPluginEn
104
+ | components.PIIRedactionPluginNl;
105
+
102
106
  /**
103
107
  * Retry configuration for the request
104
108
  */
@@ -788,6 +792,12 @@ export type CreateCompletionRequestBody = {
788
792
  | components.ThinkingConfigAdaptiveSchema
789
793
  | null
790
794
  | undefined;
795
+ /**
796
+ * Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
797
+ */
798
+ plugins?:
799
+ | Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
800
+ | undefined;
791
801
  /**
792
802
  * Leverage Orq's intelligent routing capabilities to enhance your AI application with enterprise-grade reliability and observability. Orq provides automatic request management including retries on failures, model fallbacks for high availability, identity-level analytics tracking, conversation threading, and dynamic prompt templating with variable substitution.
793
803
  *
@@ -1254,6 +1264,29 @@ export function createCompletionThinkingToJSON(
1254
1264
  );
1255
1265
  }
1256
1266
 
1267
+ /** @internal */
1268
+ export type CreateCompletionPlugins$Outbound =
1269
+ | components.PIIRedactionPluginEn$Outbound
1270
+ | components.PIIRedactionPluginNl$Outbound;
1271
+
1272
+ /** @internal */
1273
+ export const CreateCompletionPlugins$outboundSchema: z.ZodType<
1274
+ CreateCompletionPlugins$Outbound,
1275
+ z.ZodTypeDef,
1276
+ CreateCompletionPlugins
1277
+ > = z.union([
1278
+ components.PIIRedactionPluginEn$outboundSchema,
1279
+ components.PIIRedactionPluginNl$outboundSchema,
1280
+ ]);
1281
+
1282
+ export function createCompletionPluginsToJSON(
1283
+ createCompletionPlugins: CreateCompletionPlugins,
1284
+ ): string {
1285
+ return JSON.stringify(
1286
+ CreateCompletionPlugins$outboundSchema.parse(createCompletionPlugins),
1287
+ );
1288
+ }
1289
+
1257
1290
  /** @internal */
1258
1291
  export type CreateCompletionRouterCompletionsRetry$Outbound = {
1259
1292
  count: number;
@@ -2983,6 +3016,12 @@ export type CreateCompletionRequestBody$Outbound = {
2983
3016
  | components.ThinkingConfigAdaptiveSchema$Outbound
2984
3017
  | null
2985
3018
  | undefined;
3019
+ plugins?:
3020
+ | Array<
3021
+ | components.PIIRedactionPluginEn$Outbound
3022
+ | components.PIIRedactionPluginNl$Outbound
3023
+ >
3024
+ | undefined;
2986
3025
  orq?: CreateCompletionOrq$Outbound | undefined;
2987
3026
  stream: boolean;
2988
3027
  };
@@ -3020,6 +3059,12 @@ export const CreateCompletionRequestBody$outboundSchema: z.ZodType<
3020
3059
  components.ThinkingConfigAdaptiveSchema$outboundSchema,
3021
3060
  ]),
3022
3061
  ).optional(),
3062
+ plugins: z.array(
3063
+ z.union([
3064
+ components.PIIRedactionPluginEn$outboundSchema,
3065
+ components.PIIRedactionPluginNl$outboundSchema,
3066
+ ]),
3067
+ ).optional(),
3023
3068
  orq: z.lazy(() => CreateCompletionOrq$outboundSchema).optional(),
3024
3069
  stream: z.boolean().default(false),
3025
3070
  }).transform((v) => {
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
138
138
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
139
139
  .optional(),
140
140
  updated: z.string().datetime({ offset: true }).default(
141
- "2026-06-26T14:07:38.161Z",
141
+ "2026-06-29T06:24:56.736Z",
142
142
  ).transform(v => new Date(v)),
143
143
  }).transform((v) => {
144
144
  return remap$(v, {
@@ -2607,7 +2607,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
2607
2607
  explanation: z.string().optional(),
2608
2608
  reviewed_by_id: z.string(),
2609
2609
  reviewed_at: z.string().datetime({ offset: true }).default(
2610
- "2026-06-26T14:08:00.232Z",
2610
+ "2026-06-29T06:25:25.322Z",
2611
2611
  ).transform(v => new Date(v)),
2612
2612
  type: z.literal("string_array"),
2613
2613
  values: z.array(z.string()),
@@ -2692,7 +2692,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
2692
2692
  explanation: z.string().optional(),
2693
2693
  reviewed_by_id: z.string(),
2694
2694
  reviewed_at: z.string().datetime({ offset: true }).default(
2695
- "2026-06-26T14:08:00.231Z",
2695
+ "2026-06-29T06:25:25.322Z",
2696
2696
  ).transform(v => new Date(v)),
2697
2697
  type: z.literal("number"),
2698
2698
  value: z.number(),
@@ -2777,7 +2777,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
2777
2777
  explanation: z.string().optional(),
2778
2778
  reviewed_by_id: z.string(),
2779
2779
  reviewed_at: z.string().datetime({ offset: true }).default(
2780
- "2026-06-26T14:08:00.230Z",
2780
+ "2026-06-29T06:25:25.321Z",
2781
2781
  ).transform(v => new Date(v)),
2782
2782
  type: z.literal("string"),
2783
2783
  value: z.string(),
@@ -2862,7 +2862,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
2862
2862
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2863
2863
  .optional(),
2864
2864
  updated: z.string().datetime({ offset: true }).default(
2865
- "2026-06-26T14:07:38.161Z",
2865
+ "2026-06-29T06:24:56.736Z",
2866
2866
  ).transform(v => new Date(v)),
2867
2867
  }).transform((v) => {
2868
2868
  return remap$(v, {
@@ -412,7 +412,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
412
412
  z.ZodTypeDef,
413
413
  unknown
414
414
  > = z.object({
415
- _id: z.string().default("01KW244HK2WKZSBJJ3N0WK450T"),
415
+ _id: z.string().default("01KW90VP6YTX4QST7TTHXV4E5Z"),
416
416
  display_name: z.string(),
417
417
  description: z.nullable(z.string()).optional(),
418
418
  status: CreateDatasourceStatus$inboundSchema,
@@ -2193,8 +2193,8 @@ export const Typescript$inboundSchema: z.ZodType<
2193
2193
  > = z.object({
2194
2194
  _id: z.string(),
2195
2195
  description: z.string(),
2196
- created: z.string().default("2026-06-26T14:07:39.466Z"),
2197
- updated: z.string().default("2026-06-26T14:07:39.466Z"),
2196
+ created: z.string().default("2026-06-29T06:24:58.448Z"),
2197
+ updated: z.string().default("2026-06-29T06:24:58.448Z"),
2198
2198
  updated_by_id: z.nullable(z.string()).optional(),
2199
2199
  guardrail_config: z.nullable(
2200
2200
  z.union([
@@ -2384,8 +2384,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
2384
2384
  .object({
2385
2385
  _id: z.string(),
2386
2386
  description: z.string(),
2387
- created: z.string().default("2026-06-26T14:07:39.466Z"),
2388
- updated: z.string().default("2026-06-26T14:07:39.466Z"),
2387
+ created: z.string().default("2026-06-29T06:24:58.448Z"),
2388
+ updated: z.string().default("2026-06-29T06:24:58.448Z"),
2389
2389
  updated_by_id: z.nullable(z.string()).optional(),
2390
2390
  guardrail_config: z.nullable(
2391
2391
  z.union([
@@ -3210,8 +3210,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
3210
3210
  > = z.object({
3211
3211
  _id: z.string(),
3212
3212
  description: z.string(),
3213
- created: z.string().default("2026-06-26T14:07:39.466Z"),
3214
- updated: z.string().default("2026-06-26T14:07:39.466Z"),
3213
+ created: z.string().default("2026-06-29T06:24:58.448Z"),
3214
+ updated: z.string().default("2026-06-29T06:24:58.448Z"),
3215
3215
  updated_by_id: z.nullable(z.string()).optional(),
3216
3216
  guardrail_config: z.nullable(
3217
3217
  z.union([
@@ -3430,8 +3430,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
3430
3430
  > = z.object({
3431
3431
  _id: z.string(),
3432
3432
  description: z.string(),
3433
- created: z.string().default("2026-06-26T14:07:39.466Z"),
3434
- updated: z.string().default("2026-06-26T14:07:39.466Z"),
3433
+ created: z.string().default("2026-06-29T06:24:58.448Z"),
3434
+ updated: z.string().default("2026-06-29T06:24:58.448Z"),
3435
3435
  updated_by_id: z.nullable(z.string()).optional(),
3436
3436
  guardrail_config: z.nullable(
3437
3437
  z.union([
@@ -3612,8 +3612,8 @@ export const CreateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
3612
3612
  > = z.object({
3613
3613
  _id: z.string(),
3614
3614
  description: z.string(),
3615
- created: z.string().default("2026-06-26T14:07:39.466Z"),
3616
- updated: z.string().default("2026-06-26T14:07:39.466Z"),
3615
+ created: z.string().default("2026-06-29T06:24:58.448Z"),
3616
+ updated: z.string().default("2026-06-29T06:24:58.448Z"),
3617
3617
  updated_by_id: z.nullable(z.string()).optional(),
3618
3618
  guardrail_config: z.nullable(
3619
3619
  z.union([
@@ -3772,8 +3772,8 @@ export const Json$inboundSchema: z.ZodType<Json, z.ZodTypeDef, unknown> = z
3772
3772
  .object({
3773
3773
  _id: z.string(),
3774
3774
  description: z.string(),
3775
- created: z.string().default("2026-06-26T14:07:39.466Z"),
3776
- updated: z.string().default("2026-06-26T14:07:39.466Z"),
3775
+ created: z.string().default("2026-06-29T06:24:58.448Z"),
3776
+ updated: z.string().default("2026-06-29T06:24:58.448Z"),
3777
3777
  updated_by_id: z.nullable(z.string()).optional(),
3778
3778
  guardrail_config: z.nullable(
3779
3779
  z.union([
@@ -4143,8 +4143,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
4143
4143
  > = z.object({
4144
4144
  _id: z.string(),
4145
4145
  description: z.string(),
4146
- created: z.string().default("2026-06-26T14:07:39.466Z"),
4147
- updated: z.string().default("2026-06-26T14:07:39.466Z"),
4146
+ created: z.string().default("2026-06-29T06:24:58.448Z"),
4147
+ updated: z.string().default("2026-06-29T06:24:58.448Z"),
4148
4148
  updated_by_id: z.nullable(z.string()).optional(),
4149
4149
  guardrail_config: z.nullable(
4150
4150
  z.union([
@@ -4363,8 +4363,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
4363
4363
  > = z.object({
4364
4364
  _id: z.string(),
4365
4365
  description: z.string(),
4366
- created: z.string().default("2026-06-26T14:07:39.466Z"),
4367
- updated: z.string().default("2026-06-26T14:07:39.466Z"),
4366
+ created: z.string().default("2026-06-29T06:24:58.448Z"),
4367
+ updated: z.string().default("2026-06-29T06:24:58.448Z"),
4368
4368
  updated_by_id: z.nullable(z.string()).optional(),
4369
4369
  guardrail_config: z.nullable(
4370
4370
  z.union([
@@ -165,6 +165,10 @@ export type CreateImageTimeout = {
165
165
  callTimeout: number;
166
166
  };
167
167
 
168
+ export type CreateImagePlugins =
169
+ | components.PIIRedactionPluginEn
170
+ | components.PIIRedactionPluginNl;
171
+
168
172
  /**
169
173
  * Retry configuration for the request
170
174
  */
@@ -356,6 +360,12 @@ export type CreateImageRequestBody = {
356
360
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
357
361
  */
358
362
  timeout?: CreateImageTimeout | undefined;
363
+ /**
364
+ * Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
365
+ */
366
+ plugins?:
367
+ | Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
368
+ | undefined;
359
369
  orq?: CreateImageOrq | undefined;
360
370
  };
361
371
 
@@ -606,6 +616,29 @@ export function createImageTimeoutToJSON(
606
616
  );
607
617
  }
608
618
 
619
+ /** @internal */
620
+ export type CreateImagePlugins$Outbound =
621
+ | components.PIIRedactionPluginEn$Outbound
622
+ | components.PIIRedactionPluginNl$Outbound;
623
+
624
+ /** @internal */
625
+ export const CreateImagePlugins$outboundSchema: z.ZodType<
626
+ CreateImagePlugins$Outbound,
627
+ z.ZodTypeDef,
628
+ CreateImagePlugins
629
+ > = z.union([
630
+ components.PIIRedactionPluginEn$outboundSchema,
631
+ components.PIIRedactionPluginNl$outboundSchema,
632
+ ]);
633
+
634
+ export function createImagePluginsToJSON(
635
+ createImagePlugins: CreateImagePlugins,
636
+ ): string {
637
+ return JSON.stringify(
638
+ CreateImagePlugins$outboundSchema.parse(createImagePlugins),
639
+ );
640
+ }
641
+
609
642
  /** @internal */
610
643
  export type CreateImageRouterImagesGenerationsRetry$Outbound = {
611
644
  count: number;
@@ -884,6 +917,12 @@ export type CreateImageRequestBody$Outbound = {
884
917
  cache?: CreateImageCache$Outbound | undefined;
885
918
  load_balancer?: CreateImageLoadBalancer1$Outbound | undefined;
886
919
  timeout?: CreateImageTimeout$Outbound | undefined;
920
+ plugins?:
921
+ | Array<
922
+ | components.PIIRedactionPluginEn$Outbound
923
+ | components.PIIRedactionPluginNl$Outbound
924
+ >
925
+ | undefined;
887
926
  orq?: CreateImageOrq$Outbound | undefined;
888
927
  };
889
928
 
@@ -914,6 +953,12 @@ export const CreateImageRequestBody$outboundSchema: z.ZodType<
914
953
  loadBalancer: z.lazy(() => CreateImageLoadBalancer1$outboundSchema)
915
954
  .optional(),
916
955
  timeout: z.lazy(() => CreateImageTimeout$outboundSchema).optional(),
956
+ plugins: z.array(
957
+ z.union([
958
+ components.PIIRedactionPluginEn$outboundSchema,
959
+ components.PIIRedactionPluginNl$outboundSchema,
960
+ ]),
961
+ ).optional(),
917
962
  orq: z.lazy(() => CreateImageOrq$outboundSchema).optional(),
918
963
  }).transform((v) => {
919
964
  return remap$(v, {