@orq-ai/node 4.11.0-rc.52 → 4.11.0-rc.54

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 (294) hide show
  1. package/funcs/knowledgeList.js +1 -0
  2. package/funcs/knowledgeList.js.map +1 -1
  3. package/funcs/memoryStoresList.js +1 -0
  4. package/funcs/memoryStoresList.js.map +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +2 -2
  7. package/lib/config.js +2 -2
  8. package/models/components/createskillrequest.d.ts +6 -6
  9. package/models/components/createskillrequest.d.ts.map +1 -1
  10. package/models/components/createskillrequest.js +6 -7
  11. package/models/components/createskillrequest.js.map +1 -1
  12. package/models/components/evaluatorresponsefunction.d.ts +270 -0
  13. package/models/components/evaluatorresponsefunction.d.ts.map +1 -0
  14. package/models/components/evaluatorresponsefunction.js +491 -0
  15. package/models/components/evaluatorresponsefunction.js.map +1 -0
  16. package/models/components/evaluatorresponsehttp.d.ts +76 -0
  17. package/models/components/evaluatorresponsehttp.d.ts.map +1 -0
  18. package/models/components/evaluatorresponsehttp.js +146 -0
  19. package/models/components/evaluatorresponsehttp.js.map +1 -0
  20. package/models/components/evaluatorresponsejsonschema.d.ts +62 -0
  21. package/models/components/evaluatorresponsejsonschema.d.ts.map +1 -0
  22. package/models/components/evaluatorresponsejsonschema.js +135 -0
  23. package/models/components/evaluatorresponsejsonschema.js.map +1 -0
  24. package/models/components/evaluatorresponsellm.d.ts +140 -0
  25. package/models/components/evaluatorresponsellm.d.ts.map +1 -0
  26. package/models/components/evaluatorresponsellm.js +250 -0
  27. package/models/components/evaluatorresponsellm.js.map +1 -0
  28. package/models/components/evaluatorresponsepython.d.ts +62 -0
  29. package/models/components/evaluatorresponsepython.d.ts.map +1 -0
  30. package/models/components/evaluatorresponsepython.js +136 -0
  31. package/models/components/evaluatorresponsepython.js.map +1 -0
  32. package/models/components/evaluatorresponseragas.d.ts +80 -0
  33. package/models/components/evaluatorresponseragas.d.ts.map +1 -0
  34. package/models/components/evaluatorresponseragas.js +155 -0
  35. package/models/components/evaluatorresponseragas.js.map +1 -0
  36. package/models/components/evaluatorresponsetypescript.d.ts +62 -0
  37. package/models/components/evaluatorresponsetypescript.d.ts.map +1 -0
  38. package/models/components/evaluatorresponsetypescript.js +136 -0
  39. package/models/components/evaluatorresponsetypescript.js.map +1 -0
  40. package/models/components/guardrailrule.d.ts +2 -0
  41. package/models/components/guardrailrule.d.ts.map +1 -1
  42. package/models/components/guardrailrule.js +2 -0
  43. package/models/components/guardrailrule.js.map +1 -1
  44. package/models/components/index.d.ts +13 -0
  45. package/models/components/index.d.ts.map +1 -1
  46. package/models/components/index.js +13 -0
  47. package/models/components/index.js.map +1 -1
  48. package/models/components/invokedeploymentrequest.d.ts +36 -36
  49. package/models/components/invokedeploymentrequest.d.ts.map +1 -1
  50. package/models/components/invokedeploymentrequest.js +33 -34
  51. package/models/components/invokedeploymentrequest.js.map +1 -1
  52. package/models/components/modelsconfig.d.ts +5 -5
  53. package/models/components/modelsconfig.d.ts.map +1 -1
  54. package/models/components/modelsconfig.js +6 -6
  55. package/models/components/modelsconfig.js.map +1 -1
  56. package/models/components/piiredactionplugin.d.ts +14 -0
  57. package/models/components/piiredactionplugin.d.ts.map +1 -0
  58. package/models/components/piiredactionplugin.js +59 -0
  59. package/models/components/piiredactionplugin.js.map +1 -0
  60. package/models/components/piiredactionpluginauto.d.ts +127 -0
  61. package/models/components/piiredactionpluginauto.d.ts.map +1 -0
  62. package/models/components/piiredactionpluginauto.js +157 -0
  63. package/models/components/piiredactionpluginauto.js.map +1 -0
  64. package/models/components/piiredactionpluginen.d.ts +146 -0
  65. package/models/components/piiredactionpluginen.d.ts.map +1 -0
  66. package/models/components/piiredactionpluginen.js +168 -0
  67. package/models/components/piiredactionpluginen.js.map +1 -0
  68. package/models/components/piiredactionpluginnl.d.ts +138 -0
  69. package/models/components/piiredactionpluginnl.d.ts.map +1 -0
  70. package/models/components/piiredactionpluginnl.js +159 -0
  71. package/models/components/piiredactionpluginnl.js.map +1 -0
  72. package/models/components/plugin.d.ts +11 -0
  73. package/models/components/plugin.d.ts.map +1 -0
  74. package/models/components/plugin.js +57 -0
  75. package/models/components/plugin.js.map +1 -0
  76. package/models/components/publicpiiredactionplugin.d.ts +79 -0
  77. package/models/components/publicpiiredactionplugin.d.ts.map +1 -0
  78. package/models/components/publicpiiredactionplugin.js +86 -0
  79. package/models/components/publicpiiredactionplugin.js.map +1 -0
  80. package/models/components/reasoningpart.js +1 -1
  81. package/models/components/textcontentpartschema.d.ts +10 -10
  82. package/models/components/textcontentpartschema.d.ts.map +1 -1
  83. package/models/components/textcontentpartschema.js +11 -11
  84. package/models/components/textcontentpartschema.js.map +1 -1
  85. package/models/operations/createagentrequest.d.ts +38 -0
  86. package/models/operations/createagentrequest.d.ts.map +1 -1
  87. package/models/operations/createagentrequest.js +65 -5
  88. package/models/operations/createagentrequest.js.map +1 -1
  89. package/models/operations/createchatcompletion.d.ts +11 -0
  90. package/models/operations/createchatcompletion.d.ts.map +1 -1
  91. package/models/operations/createchatcompletion.js +18 -3
  92. package/models/operations/createchatcompletion.js.map +1 -1
  93. package/models/operations/createcompletion.d.ts +11 -0
  94. package/models/operations/createcompletion.d.ts.map +1 -1
  95. package/models/operations/createcompletion.js +18 -3
  96. package/models/operations/createcompletion.js.map +1 -1
  97. package/models/operations/createdataset.js +1 -1
  98. package/models/operations/createdatasetitem.js +4 -4
  99. package/models/operations/createdatasource.js +1 -1
  100. package/models/operations/createeval.d.ts +22 -852
  101. package/models/operations/createeval.d.ts.map +1 -1
  102. package/models/operations/createeval.js +30 -1341
  103. package/models/operations/createeval.js.map +1 -1
  104. package/models/operations/createimage.d.ts +11 -0
  105. package/models/operations/createimage.d.ts.map +1 -1
  106. package/models/operations/createimage.js +16 -1
  107. package/models/operations/createimage.js.map +1 -1
  108. package/models/operations/createprompt.d.ts +27 -8
  109. package/models/operations/createprompt.d.ts.map +1 -1
  110. package/models/operations/createprompt.js +42 -12
  111. package/models/operations/createprompt.js.map +1 -1
  112. package/models/operations/creatererank.d.ts +11 -0
  113. package/models/operations/creatererank.d.ts.map +1 -1
  114. package/models/operations/creatererank.js +16 -1
  115. package/models/operations/creatererank.js.map +1 -1
  116. package/models/operations/createrouterresponse.d.ts +5 -0
  117. package/models/operations/createrouterresponse.d.ts.map +1 -1
  118. package/models/operations/createrouterresponse.js +1 -0
  119. package/models/operations/createrouterresponse.js.map +1 -1
  120. package/models/operations/createtool.d.ts +8 -8
  121. package/models/operations/createtool.d.ts.map +1 -1
  122. package/models/operations/createtool.js +16 -16
  123. package/models/operations/createtool.js.map +1 -1
  124. package/models/operations/deploymentgetconfig.d.ts +8 -8
  125. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  126. package/models/operations/deploymentgetconfig.js +10 -10
  127. package/models/operations/deploymentgetconfig.js.map +1 -1
  128. package/models/operations/getallmemorystores.d.ts +5 -0
  129. package/models/operations/getallmemorystores.d.ts.map +1 -1
  130. package/models/operations/getallmemorystores.js +2 -0
  131. package/models/operations/getallmemorystores.js.map +1 -1
  132. package/models/operations/getallprompts.d.ts +8 -0
  133. package/models/operations/getallprompts.d.ts.map +1 -1
  134. package/models/operations/getallprompts.js +16 -1
  135. package/models/operations/getallprompts.js.map +1 -1
  136. package/models/operations/getalltools.d.ts +20 -20
  137. package/models/operations/getalltools.d.ts.map +1 -1
  138. package/models/operations/getalltools.js +28 -26
  139. package/models/operations/getalltools.js.map +1 -1
  140. package/models/operations/getevals.d.ts +3 -833
  141. package/models/operations/getevals.d.ts.map +1 -1
  142. package/models/operations/getevals.js +16 -1314
  143. package/models/operations/getevals.js.map +1 -1
  144. package/models/operations/getoneprompt.d.ts +8 -0
  145. package/models/operations/getoneprompt.d.ts.map +1 -1
  146. package/models/operations/getoneprompt.js +17 -2
  147. package/models/operations/getoneprompt.js.map +1 -1
  148. package/models/operations/getpromptversion.d.ts +8 -0
  149. package/models/operations/getpromptversion.d.ts.map +1 -1
  150. package/models/operations/getpromptversion.js +17 -2
  151. package/models/operations/getpromptversion.js.map +1 -1
  152. package/models/operations/getv2humanevalsets.js +2 -2
  153. package/models/operations/getv2humanevalsetsid.js +2 -2
  154. package/models/operations/guardrailrulecreate.d.ts +1 -0
  155. package/models/operations/guardrailrulecreate.d.ts.map +1 -1
  156. package/models/operations/guardrailrulecreate.js +1 -0
  157. package/models/operations/guardrailrulecreate.js.map +1 -1
  158. package/models/operations/guardrailruleget.d.ts +1 -0
  159. package/models/operations/guardrailruleget.d.ts.map +1 -1
  160. package/models/operations/guardrailruleget.js +1 -0
  161. package/models/operations/guardrailruleget.js.map +1 -1
  162. package/models/operations/guardrailruleupdate.d.ts +1 -0
  163. package/models/operations/guardrailruleupdate.d.ts.map +1 -1
  164. package/models/operations/guardrailruleupdate.js +1 -0
  165. package/models/operations/guardrailruleupdate.js.map +1 -1
  166. package/models/operations/invokeeval.d.ts +7 -7
  167. package/models/operations/invokeeval.d.ts.map +1 -1
  168. package/models/operations/invokeeval.js +11 -11
  169. package/models/operations/invokeeval.js.map +1 -1
  170. package/models/operations/listagents.d.ts +16 -0
  171. package/models/operations/listagents.d.ts.map +1 -1
  172. package/models/operations/listagents.js +32 -2
  173. package/models/operations/listagents.js.map +1 -1
  174. package/models/operations/listdatasetdatapoints.js +4 -4
  175. package/models/operations/listdatasets.js +1 -1
  176. package/models/operations/listdatasources.js +1 -1
  177. package/models/operations/listknowledgebases.d.ts +5 -0
  178. package/models/operations/listknowledgebases.d.ts.map +1 -1
  179. package/models/operations/listknowledgebases.js +2 -0
  180. package/models/operations/listknowledgebases.js.map +1 -1
  181. package/models/operations/listpromptversions.d.ts +8 -0
  182. package/models/operations/listpromptversions.d.ts.map +1 -1
  183. package/models/operations/listpromptversions.js +17 -2
  184. package/models/operations/listpromptversions.js.map +1 -1
  185. package/models/operations/patchv2humanevalsetsid.js +2 -2
  186. package/models/operations/postv2feedbackevaluation.js +3 -3
  187. package/models/operations/postv2humanevalsets.js +2 -2
  188. package/models/operations/retrieveagentrequest.d.ts +16 -0
  189. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  190. package/models/operations/retrieveagentrequest.js +32 -2
  191. package/models/operations/retrieveagentrequest.js.map +1 -1
  192. package/models/operations/retrievedatapoint.js +4 -4
  193. package/models/operations/retrievedataset.js +1 -1
  194. package/models/operations/retrievedatasource.js +1 -1
  195. package/models/operations/retrievetool.js +6 -6
  196. package/models/operations/runagent.d.ts +22 -0
  197. package/models/operations/runagent.d.ts.map +1 -1
  198. package/models/operations/runagent.js +34 -4
  199. package/models/operations/runagent.js.map +1 -1
  200. package/models/operations/streamrunagent.d.ts +22 -0
  201. package/models/operations/streamrunagent.d.ts.map +1 -1
  202. package/models/operations/streamrunagent.js +34 -4
  203. package/models/operations/streamrunagent.js.map +1 -1
  204. package/models/operations/updateagent.d.ts +38 -0
  205. package/models/operations/updateagent.d.ts.map +1 -1
  206. package/models/operations/updateagent.js +65 -5
  207. package/models/operations/updateagent.js.map +1 -1
  208. package/models/operations/updatedatapoint.js +4 -4
  209. package/models/operations/updatedataset.js +1 -1
  210. package/models/operations/updatedatasource.js +1 -1
  211. package/models/operations/updateeval.d.ts +2 -832
  212. package/models/operations/updateeval.d.ts.map +1 -1
  213. package/models/operations/updateeval.js +9 -1304
  214. package/models/operations/updateeval.js.map +1 -1
  215. package/models/operations/updateprompt.d.ts +19 -0
  216. package/models/operations/updateprompt.d.ts.map +1 -1
  217. package/models/operations/updateprompt.js +33 -3
  218. package/models/operations/updateprompt.js.map +1 -1
  219. package/models/operations/updatetool.js +7 -7
  220. package/package.json +7 -7
  221. package/sdk/feedback.d.ts +2 -2
  222. package/sdk/feedback.js +2 -2
  223. package/src/funcs/knowledgeList.ts +1 -0
  224. package/src/funcs/memoryStoresList.ts +1 -0
  225. package/src/lib/config.ts +2 -2
  226. package/src/models/components/createskillrequest.ts +27 -20
  227. package/src/models/components/evaluatorresponsefunction.ts +1107 -0
  228. package/src/models/components/evaluatorresponsehttp.ts +247 -0
  229. package/src/models/components/evaluatorresponsejsonschema.ts +214 -0
  230. package/src/models/components/evaluatorresponsellm.ts +442 -0
  231. package/src/models/components/evaluatorresponsepython.ts +234 -0
  232. package/src/models/components/evaluatorresponseragas.ts +257 -0
  233. package/src/models/components/evaluatorresponsetypescript.ts +247 -0
  234. package/src/models/components/guardrailrule.ts +3 -0
  235. package/src/models/components/index.ts +13 -0
  236. package/src/models/components/invokedeploymentrequest.ts +119 -95
  237. package/src/models/components/modelsconfig.ts +11 -10
  238. package/src/models/components/piiredactionplugin.ts +44 -0
  239. package/src/models/components/piiredactionpluginauto.ts +186 -0
  240. package/src/models/components/piiredactionpluginen.ts +223 -0
  241. package/src/models/components/piiredactionpluginnl.ts +219 -0
  242. package/src/models/components/plugin.ts +37 -0
  243. package/src/models/components/publicpiiredactionplugin.ts +127 -0
  244. package/src/models/components/reasoningpart.ts +1 -1
  245. package/src/models/components/textcontentpartschema.ts +23 -19
  246. package/src/models/operations/createagentrequest.ts +199 -0
  247. package/src/models/operations/createchatcompletion.ts +56 -0
  248. package/src/models/operations/createcompletion.ts +54 -0
  249. package/src/models/operations/createdataset.ts +1 -1
  250. package/src/models/operations/createdatasetitem.ts +4 -4
  251. package/src/models/operations/createdatasource.ts +1 -1
  252. package/src/models/operations/createeval.ts +673 -3909
  253. package/src/models/operations/createimage.ts +54 -0
  254. package/src/models/operations/createprompt.ts +115 -22
  255. package/src/models/operations/creatererank.ts +54 -0
  256. package/src/models/operations/createrouterresponse.ts +11 -0
  257. package/src/models/operations/createtool.ts +22 -24
  258. package/src/models/operations/deploymentgetconfig.ts +16 -18
  259. package/src/models/operations/getallmemorystores.ts +7 -0
  260. package/src/models/operations/getallprompts.ts +43 -0
  261. package/src/models/operations/getalltools.ts +47 -53
  262. package/src/models/operations/getevals.ts +29 -3214
  263. package/src/models/operations/getoneprompt.ts +43 -0
  264. package/src/models/operations/getpromptversion.ts +43 -0
  265. package/src/models/operations/getv2humanevalsets.ts +2 -2
  266. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  267. package/src/models/operations/guardrailrulecreate.ts +2 -0
  268. package/src/models/operations/guardrailruleget.ts +2 -0
  269. package/src/models/operations/guardrailruleupdate.ts +2 -0
  270. package/src/models/operations/invokeeval.ts +18 -18
  271. package/src/models/operations/listagents.ts +93 -0
  272. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  273. package/src/models/operations/listdatasets.ts +1 -1
  274. package/src/models/operations/listdatasources.ts +1 -1
  275. package/src/models/operations/listknowledgebases.ts +7 -0
  276. package/src/models/operations/listpromptversions.ts +43 -0
  277. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  278. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  279. package/src/models/operations/postv2humanevalsets.ts +2 -2
  280. package/src/models/operations/retrieveagentrequest.ts +93 -0
  281. package/src/models/operations/retrievedatapoint.ts +4 -4
  282. package/src/models/operations/retrievedataset.ts +1 -1
  283. package/src/models/operations/retrievedatasource.ts +1 -1
  284. package/src/models/operations/retrievetool.ts +6 -6
  285. package/src/models/operations/runagent.ts +115 -1
  286. package/src/models/operations/streamrunagent.ts +116 -1
  287. package/src/models/operations/updateagent.ts +205 -0
  288. package/src/models/operations/updatedatapoint.ts +4 -4
  289. package/src/models/operations/updatedataset.ts +1 -1
  290. package/src/models/operations/updatedatasource.ts +1 -1
  291. package/src/models/operations/updateeval.ts +306 -3524
  292. package/src/models/operations/updateprompt.ts +97 -0
  293. package/src/models/operations/updatetool.ts +7 -7
  294. package/src/sdk/feedback.ts +2 -2
@@ -0,0 +1,127 @@
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 { ClosedEnum } from "../../types/enums.js";
8
+
9
+ /**
10
+ * Plugin discriminator. Must be pii_redaction.
11
+ */
12
+ export const PublicPIIRedactionPluginId = {
13
+ PiiRedaction: "pii_redaction",
14
+ } as const;
15
+ /**
16
+ * Plugin discriminator. Must be pii_redaction.
17
+ */
18
+ export type PublicPIIRedactionPluginId = ClosedEnum<
19
+ typeof PublicPIIRedactionPluginId
20
+ >;
21
+
22
+ /**
23
+ * Detector language. Defaults to en.
24
+ */
25
+ export const PublicPIIRedactionPluginLanguage = {
26
+ En: "en",
27
+ Nl: "nl",
28
+ } as const;
29
+ /**
30
+ * Detector language. Defaults to en.
31
+ */
32
+ export type PublicPIIRedactionPluginLanguage = ClosedEnum<
33
+ typeof PublicPIIRedactionPluginLanguage
34
+ >;
35
+
36
+ /**
37
+ * Behavior when redaction is unavailable. block (default) fails the request; passthrough sends the original text.
38
+ */
39
+ export const PublicPIIRedactionPluginOnFailure = {
40
+ Block: "block",
41
+ Passthrough: "passthrough",
42
+ } as const;
43
+ /**
44
+ * Behavior when redaction is unavailable. block (default) fails the request; passthrough sends the original text.
45
+ */
46
+ export type PublicPIIRedactionPluginOnFailure = ClosedEnum<
47
+ typeof PublicPIIRedactionPluginOnFailure
48
+ >;
49
+
50
+ export type PublicPIIRedactionPlugin = {
51
+ /**
52
+ * Entity types to redact (e.g. EMAIL_ADDRESS, BSN). Omit to redact every type detected for the language.
53
+ */
54
+ entities?: Array<string> | null | undefined;
55
+ /**
56
+ * Plugin discriminator. Must be pii_redaction.
57
+ */
58
+ id: PublicPIIRedactionPluginId;
59
+ /**
60
+ * Detector language. Defaults to en.
61
+ */
62
+ language?: PublicPIIRedactionPluginLanguage | undefined;
63
+ /**
64
+ * Behavior when redaction is unavailable. block (default) fails the request; passthrough sends the original text.
65
+ */
66
+ onFailure?: PublicPIIRedactionPluginOnFailure | undefined;
67
+ /**
68
+ * Store the redacted (placeholder) form in traces rather than the restored original. Defaults to true.
69
+ */
70
+ persistRedactedToTraces?: boolean | undefined;
71
+ /**
72
+ * Detector confidence cutoff in [0,1].
73
+ */
74
+ threshold?: number | undefined;
75
+ };
76
+
77
+ /** @internal */
78
+ export const PublicPIIRedactionPluginId$outboundSchema: z.ZodNativeEnum<
79
+ typeof PublicPIIRedactionPluginId
80
+ > = z.nativeEnum(PublicPIIRedactionPluginId);
81
+
82
+ /** @internal */
83
+ export const PublicPIIRedactionPluginLanguage$outboundSchema: z.ZodNativeEnum<
84
+ typeof PublicPIIRedactionPluginLanguage
85
+ > = z.nativeEnum(PublicPIIRedactionPluginLanguage);
86
+
87
+ /** @internal */
88
+ export const PublicPIIRedactionPluginOnFailure$outboundSchema: z.ZodNativeEnum<
89
+ typeof PublicPIIRedactionPluginOnFailure
90
+ > = z.nativeEnum(PublicPIIRedactionPluginOnFailure);
91
+
92
+ /** @internal */
93
+ export type PublicPIIRedactionPlugin$Outbound = {
94
+ entities?: Array<string> | null | undefined;
95
+ id: string;
96
+ language?: string | undefined;
97
+ on_failure?: string | undefined;
98
+ persist_redacted_to_traces?: boolean | undefined;
99
+ threshold?: number | undefined;
100
+ };
101
+
102
+ /** @internal */
103
+ export const PublicPIIRedactionPlugin$outboundSchema: z.ZodType<
104
+ PublicPIIRedactionPlugin$Outbound,
105
+ z.ZodTypeDef,
106
+ PublicPIIRedactionPlugin
107
+ > = z.object({
108
+ entities: z.nullable(z.array(z.string())).optional(),
109
+ id: PublicPIIRedactionPluginId$outboundSchema,
110
+ language: PublicPIIRedactionPluginLanguage$outboundSchema.optional(),
111
+ onFailure: PublicPIIRedactionPluginOnFailure$outboundSchema.optional(),
112
+ persistRedactedToTraces: z.boolean().optional(),
113
+ threshold: z.number().optional(),
114
+ }).transform((v) => {
115
+ return remap$(v, {
116
+ onFailure: "on_failure",
117
+ persistRedactedToTraces: "persist_redacted_to_traces",
118
+ });
119
+ });
120
+
121
+ export function publicPIIRedactionPluginToJSON(
122
+ publicPIIRedactionPlugin: PublicPIIRedactionPlugin,
123
+ ): string {
124
+ return JSON.stringify(
125
+ PublicPIIRedactionPlugin$outboundSchema.parse(publicPIIRedactionPlugin),
126
+ );
127
+ }
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
40
40
  z.ZodTypeDef,
41
41
  unknown
42
42
  > = z.object({
43
- _id: z.string().default("reasoning_01kw2p02kse04p6jb3vbe3t921"),
43
+ _id: z.string().default("reasoning_01kw9aee4jja5cqkd97cyj8xhq"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -12,25 +12,27 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  /**
13
13
  * The type of the content part.
14
14
  */
15
- export const Type = {
15
+ export const TextContentPartSchemaType = {
16
16
  Text: "text",
17
17
  } as const;
18
18
  /**
19
19
  * The type of the content part.
20
20
  */
21
- export type Type = ClosedEnum<typeof Type>;
21
+ export type TextContentPartSchemaType = ClosedEnum<
22
+ typeof TextContentPartSchemaType
23
+ >;
22
24
 
23
25
  /**
24
26
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
25
27
  */
26
- export const TextContentPartSchemaType = {
28
+ export const TextContentPartSchemaCacheControlType = {
27
29
  Ephemeral: "ephemeral",
28
30
  } as const;
29
31
  /**
30
32
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
31
33
  */
32
- export type TextContentPartSchemaType = ClosedEnum<
33
- typeof TextContentPartSchemaType
34
+ export type TextContentPartSchemaCacheControlType = ClosedEnum<
35
+ typeof TextContentPartSchemaCacheControlType
34
36
  >;
35
37
 
36
38
  /**
@@ -63,7 +65,7 @@ export type CacheControl = {
63
65
  /**
64
66
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
65
67
  */
66
- type: TextContentPartSchemaType;
68
+ type: TextContentPartSchemaCacheControlType;
67
69
  /**
68
70
  * The time-to-live for the cache control breakpoint. This may be one of the following values:
69
71
  *
@@ -84,7 +86,7 @@ export type TextContentPartSchema = {
84
86
  /**
85
87
  * The type of the content part.
86
88
  */
87
- type: Type;
89
+ type: TextContentPartSchemaType;
88
90
  /**
89
91
  * The text content.
90
92
  */
@@ -92,14 +94,6 @@ export type TextContentPartSchema = {
92
94
  cacheControl?: CacheControl | undefined;
93
95
  };
94
96
 
95
- /** @internal */
96
- export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
97
- Type,
98
- );
99
- /** @internal */
100
- export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
101
- Type$inboundSchema;
102
-
103
97
  /** @internal */
104
98
  export const TextContentPartSchemaType$inboundSchema: z.ZodNativeEnum<
105
99
  typeof TextContentPartSchemaType
@@ -109,6 +103,16 @@ export const TextContentPartSchemaType$outboundSchema: z.ZodNativeEnum<
109
103
  typeof TextContentPartSchemaType
110
104
  > = TextContentPartSchemaType$inboundSchema;
111
105
 
106
+ /** @internal */
107
+ export const TextContentPartSchemaCacheControlType$inboundSchema:
108
+ z.ZodNativeEnum<typeof TextContentPartSchemaCacheControlType> = z.nativeEnum(
109
+ TextContentPartSchemaCacheControlType,
110
+ );
111
+ /** @internal */
112
+ export const TextContentPartSchemaCacheControlType$outboundSchema:
113
+ z.ZodNativeEnum<typeof TextContentPartSchemaCacheControlType> =
114
+ TextContentPartSchemaCacheControlType$inboundSchema;
115
+
112
116
  /** @internal */
113
117
  export const Ttl$inboundSchema: z.ZodNativeEnum<typeof Ttl> = z.nativeEnum(Ttl);
114
118
  /** @internal */
@@ -121,7 +125,7 @@ export const CacheControl$inboundSchema: z.ZodType<
121
125
  z.ZodTypeDef,
122
126
  unknown
123
127
  > = z.object({
124
- type: TextContentPartSchemaType$inboundSchema,
128
+ type: TextContentPartSchemaCacheControlType$inboundSchema,
125
129
  ttl: Ttl$inboundSchema.default("5m"),
126
130
  });
127
131
  /** @internal */
@@ -136,7 +140,7 @@ export const CacheControl$outboundSchema: z.ZodType<
136
140
  z.ZodTypeDef,
137
141
  CacheControl
138
142
  > = z.object({
139
- type: TextContentPartSchemaType$outboundSchema,
143
+ type: TextContentPartSchemaCacheControlType$outboundSchema,
140
144
  ttl: Ttl$outboundSchema.default("5m"),
141
145
  });
142
146
 
@@ -159,7 +163,7 @@ export const TextContentPartSchema$inboundSchema: z.ZodType<
159
163
  z.ZodTypeDef,
160
164
  unknown
161
165
  > = z.object({
162
- type: Type$inboundSchema,
166
+ type: TextContentPartSchemaType$inboundSchema,
163
167
  text: z.string(),
164
168
  cache_control: z.lazy(() => CacheControl$inboundSchema).optional(),
165
169
  }).transform((v) => {
@@ -180,7 +184,7 @@ export const TextContentPartSchema$outboundSchema: z.ZodType<
180
184
  z.ZodTypeDef,
181
185
  TextContentPartSchema
182
186
  > = z.object({
183
- type: Type$outboundSchema,
187
+ type: TextContentPartSchemaType$outboundSchema,
184
188
  text: z.string(),
185
189
  cacheControl: z.lazy(() => CacheControl$outboundSchema).optional(),
186
190
  }).transform((v) => {
@@ -185,6 +185,11 @@ export type Guardrails = {
185
185
  executeOn: ExecuteOn;
186
186
  };
187
187
 
188
+ export type Plugins =
189
+ | components.PIIRedactionPluginEn
190
+ | components.PIIRedactionPluginNl
191
+ | components.PIIRedactionPluginAuto;
192
+
188
193
  export type ModelConfigurationFallbacks = {
189
194
  /**
190
195
  * Fallback model identifier
@@ -394,6 +399,16 @@ export type ParametersT = {
394
399
  * A list of guardrails to apply to the request.
395
400
  */
396
401
  guardrails?: Array<Guardrails> | undefined;
402
+ /**
403
+ * 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.
404
+ */
405
+ plugins?:
406
+ | Array<
407
+ | components.PIIRedactionPluginEn
408
+ | components.PIIRedactionPluginNl
409
+ | components.PIIRedactionPluginAuto
410
+ >
411
+ | undefined;
397
412
  /**
398
413
  * Array of fallback models to use if primary model fails
399
414
  */
@@ -649,6 +664,11 @@ export type FallbackModelConfigurationGuardrails = {
649
664
  executeOn: FallbackModelConfigurationExecuteOn;
650
665
  };
651
666
 
667
+ export type FallbackModelConfigurationPlugins =
668
+ | components.PIIRedactionPluginEn
669
+ | components.PIIRedactionPluginNl
670
+ | components.PIIRedactionPluginAuto;
671
+
652
672
  export type FallbackModelConfigurationFallbacks = {
653
673
  /**
654
674
  * Fallback model identifier
@@ -872,6 +892,16 @@ export type FallbackModelConfigurationParameters = {
872
892
  * A list of guardrails to apply to the request.
873
893
  */
874
894
  guardrails?: Array<FallbackModelConfigurationGuardrails> | undefined;
895
+ /**
896
+ * 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.
897
+ */
898
+ plugins?:
899
+ | Array<
900
+ | components.PIIRedactionPluginEn
901
+ | components.PIIRedactionPluginNl
902
+ | components.PIIRedactionPluginAuto
903
+ >
904
+ | undefined;
875
905
  /**
876
906
  * Array of fallback models to use if primary model fails
877
907
  */
@@ -2013,6 +2043,11 @@ export type CreateAgentRequestAgentsResponseGuardrails = {
2013
2043
  executeOn: CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn;
2014
2044
  };
2015
2045
 
2046
+ export type CreateAgentRequestPlugins =
2047
+ | components.PIIRedactionPluginEn
2048
+ | components.PIIRedactionPluginNl
2049
+ | components.PIIRedactionPluginAuto;
2050
+
2016
2051
  export type CreateAgentRequestFallbacks = {
2017
2052
  /**
2018
2053
  * Fallback model identifier
@@ -2234,6 +2269,16 @@ export type CreateAgentRequestParameters = {
2234
2269
  * A list of guardrails to apply to the request.
2235
2270
  */
2236
2271
  guardrails?: Array<CreateAgentRequestAgentsResponseGuardrails> | undefined;
2272
+ /**
2273
+ * 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.
2274
+ */
2275
+ plugins?:
2276
+ | Array<
2277
+ | components.PIIRedactionPluginEn
2278
+ | components.PIIRedactionPluginNl
2279
+ | components.PIIRedactionPluginAuto
2280
+ >
2281
+ | undefined;
2237
2282
  /**
2238
2283
  * Array of fallback models to use if primary model fails
2239
2284
  */
@@ -2474,6 +2519,11 @@ export type CreateAgentRequestFallbackModelConfigurationGuardrails = {
2474
2519
  executeOn: CreateAgentRequestFallbackModelConfigurationExecuteOn;
2475
2520
  };
2476
2521
 
2522
+ export type CreateAgentRequestFallbackModelConfigurationPlugins =
2523
+ | components.PIIRedactionPluginEn
2524
+ | components.PIIRedactionPluginNl
2525
+ | components.PIIRedactionPluginAuto;
2526
+
2477
2527
  export type CreateAgentRequestFallbackModelConfigurationFallbacks = {
2478
2528
  /**
2479
2529
  * Fallback model identifier
@@ -2705,6 +2755,16 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
2705
2755
  guardrails?:
2706
2756
  | Array<CreateAgentRequestFallbackModelConfigurationGuardrails>
2707
2757
  | undefined;
2758
+ /**
2759
+ * 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.
2760
+ */
2761
+ plugins?:
2762
+ | Array<
2763
+ | components.PIIRedactionPluginEn
2764
+ | components.PIIRedactionPluginNl
2765
+ | components.PIIRedactionPluginAuto
2766
+ >
2767
+ | undefined;
2708
2768
  /**
2709
2769
  * Array of fallback models to use if primary model fails
2710
2770
  */
@@ -3129,6 +3189,27 @@ export function guardrailsToJSON(guardrails: Guardrails): string {
3129
3189
  return JSON.stringify(Guardrails$outboundSchema.parse(guardrails));
3130
3190
  }
3131
3191
 
3192
+ /** @internal */
3193
+ export type Plugins$Outbound =
3194
+ | components.PIIRedactionPluginEn$Outbound
3195
+ | components.PIIRedactionPluginNl$Outbound
3196
+ | components.PIIRedactionPluginAuto$Outbound;
3197
+
3198
+ /** @internal */
3199
+ export const Plugins$outboundSchema: z.ZodType<
3200
+ Plugins$Outbound,
3201
+ z.ZodTypeDef,
3202
+ Plugins
3203
+ > = z.union([
3204
+ components.PIIRedactionPluginEn$outboundSchema,
3205
+ components.PIIRedactionPluginNl$outboundSchema,
3206
+ components.PIIRedactionPluginAuto$outboundSchema,
3207
+ ]);
3208
+
3209
+ export function pluginsToJSON(plugins: Plugins): string {
3210
+ return JSON.stringify(Plugins$outboundSchema.parse(plugins));
3211
+ }
3212
+
3132
3213
  /** @internal */
3133
3214
  export type ModelConfigurationFallbacks$Outbound = {
3134
3215
  model: string;
@@ -3323,6 +3404,13 @@ export type ParametersT$Outbound = {
3323
3404
  parallel_tool_calls?: boolean | undefined;
3324
3405
  modalities?: Array<string> | null | undefined;
3325
3406
  guardrails?: Array<Guardrails$Outbound> | undefined;
3407
+ plugins?:
3408
+ | Array<
3409
+ | components.PIIRedactionPluginEn$Outbound
3410
+ | components.PIIRedactionPluginNl$Outbound
3411
+ | components.PIIRedactionPluginAuto$Outbound
3412
+ >
3413
+ | undefined;
3326
3414
  fallbacks?: Array<ModelConfigurationFallbacks$Outbound> | undefined;
3327
3415
  cache?: Cache$Outbound | undefined;
3328
3416
  load_balancer?: LoadBalancer1$Outbound | undefined;
@@ -3366,6 +3454,13 @@ export const ParametersT$outboundSchema: z.ZodType<
3366
3454
  parallelToolCalls: z.boolean().optional(),
3367
3455
  modalities: z.nullable(z.array(Modalities$outboundSchema)).optional(),
3368
3456
  guardrails: z.array(z.lazy(() => Guardrails$outboundSchema)).optional(),
3457
+ plugins: z.array(
3458
+ z.union([
3459
+ components.PIIRedactionPluginEn$outboundSchema,
3460
+ components.PIIRedactionPluginNl$outboundSchema,
3461
+ components.PIIRedactionPluginAuto$outboundSchema,
3462
+ ]),
3463
+ ).optional(),
3369
3464
  fallbacks: z.array(z.lazy(() => ModelConfigurationFallbacks$outboundSchema))
3370
3465
  .optional(),
3371
3466
  cache: z.lazy(() => Cache$outboundSchema).optional(),
@@ -3810,6 +3905,33 @@ export function fallbackModelConfigurationGuardrailsToJSON(
3810
3905
  );
3811
3906
  }
3812
3907
 
3908
+ /** @internal */
3909
+ export type FallbackModelConfigurationPlugins$Outbound =
3910
+ | components.PIIRedactionPluginEn$Outbound
3911
+ | components.PIIRedactionPluginNl$Outbound
3912
+ | components.PIIRedactionPluginAuto$Outbound;
3913
+
3914
+ /** @internal */
3915
+ export const FallbackModelConfigurationPlugins$outboundSchema: z.ZodType<
3916
+ FallbackModelConfigurationPlugins$Outbound,
3917
+ z.ZodTypeDef,
3918
+ FallbackModelConfigurationPlugins
3919
+ > = z.union([
3920
+ components.PIIRedactionPluginEn$outboundSchema,
3921
+ components.PIIRedactionPluginNl$outboundSchema,
3922
+ components.PIIRedactionPluginAuto$outboundSchema,
3923
+ ]);
3924
+
3925
+ export function fallbackModelConfigurationPluginsToJSON(
3926
+ fallbackModelConfigurationPlugins: FallbackModelConfigurationPlugins,
3927
+ ): string {
3928
+ return JSON.stringify(
3929
+ FallbackModelConfigurationPlugins$outboundSchema.parse(
3930
+ fallbackModelConfigurationPlugins,
3931
+ ),
3932
+ );
3933
+ }
3934
+
3813
3935
  /** @internal */
3814
3936
  export type FallbackModelConfigurationFallbacks$Outbound = {
3815
3937
  model: string;
@@ -4035,6 +4157,13 @@ export type FallbackModelConfigurationParameters$Outbound = {
4035
4157
  parallel_tool_calls?: boolean | undefined;
4036
4158
  modalities?: Array<string> | null | undefined;
4037
4159
  guardrails?: Array<FallbackModelConfigurationGuardrails$Outbound> | undefined;
4160
+ plugins?:
4161
+ | Array<
4162
+ | components.PIIRedactionPluginEn$Outbound
4163
+ | components.PIIRedactionPluginNl$Outbound
4164
+ | components.PIIRedactionPluginAuto$Outbound
4165
+ >
4166
+ | undefined;
4038
4167
  fallbacks?: Array<FallbackModelConfigurationFallbacks$Outbound> | undefined;
4039
4168
  cache?: FallbackModelConfigurationCache$Outbound | undefined;
4040
4169
  load_balancer?: CreateAgentRequestLoadBalancer1$Outbound | undefined;
@@ -4083,6 +4212,13 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
4083
4212
  guardrails: z.array(
4084
4213
  z.lazy(() => FallbackModelConfigurationGuardrails$outboundSchema),
4085
4214
  ).optional(),
4215
+ plugins: z.array(
4216
+ z.union([
4217
+ components.PIIRedactionPluginEn$outboundSchema,
4218
+ components.PIIRedactionPluginNl$outboundSchema,
4219
+ components.PIIRedactionPluginAuto$outboundSchema,
4220
+ ]),
4221
+ ).optional(),
4086
4222
  fallbacks: z.array(
4087
4223
  z.lazy(() => FallbackModelConfigurationFallbacks$outboundSchema),
4088
4224
  ).optional(),
@@ -5704,6 +5840,27 @@ export function createAgentRequestAgentsResponseGuardrailsFromJSON(
5704
5840
  );
5705
5841
  }
5706
5842
 
5843
+ /** @internal */
5844
+ export const CreateAgentRequestPlugins$inboundSchema: z.ZodType<
5845
+ CreateAgentRequestPlugins,
5846
+ z.ZodTypeDef,
5847
+ unknown
5848
+ > = z.union([
5849
+ components.PIIRedactionPluginEn$inboundSchema,
5850
+ components.PIIRedactionPluginNl$inboundSchema,
5851
+ components.PIIRedactionPluginAuto$inboundSchema,
5852
+ ]);
5853
+
5854
+ export function createAgentRequestPluginsFromJSON(
5855
+ jsonString: string,
5856
+ ): SafeParseResult<CreateAgentRequestPlugins, SDKValidationError> {
5857
+ return safeParse(
5858
+ jsonString,
5859
+ (x) => CreateAgentRequestPlugins$inboundSchema.parse(JSON.parse(x)),
5860
+ `Failed to parse 'CreateAgentRequestPlugins' from JSON`,
5861
+ );
5862
+ }
5863
+
5707
5864
  /** @internal */
5708
5865
  export const CreateAgentRequestFallbacks$inboundSchema: z.ZodType<
5709
5866
  CreateAgentRequestFallbacks,
@@ -5908,6 +6065,13 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
5908
6065
  guardrails: z.array(
5909
6066
  z.lazy(() => CreateAgentRequestAgentsResponseGuardrails$inboundSchema),
5910
6067
  ).optional(),
6068
+ plugins: z.array(
6069
+ z.union([
6070
+ components.PIIRedactionPluginEn$inboundSchema,
6071
+ components.PIIRedactionPluginNl$inboundSchema,
6072
+ components.PIIRedactionPluginAuto$inboundSchema,
6073
+ ]),
6074
+ ).optional(),
5911
6075
  fallbacks: z.array(z.lazy(() => CreateAgentRequestFallbacks$inboundSchema))
5912
6076
  .optional(),
5913
6077
  cache: z.lazy(() => CreateAgentRequestCache$inboundSchema).optional(),
@@ -6335,6 +6499,34 @@ export function createAgentRequestFallbackModelConfigurationGuardrailsFromJSON(
6335
6499
  );
6336
6500
  }
6337
6501
 
6502
+ /** @internal */
6503
+ export const CreateAgentRequestFallbackModelConfigurationPlugins$inboundSchema:
6504
+ z.ZodType<
6505
+ CreateAgentRequestFallbackModelConfigurationPlugins,
6506
+ z.ZodTypeDef,
6507
+ unknown
6508
+ > = z.union([
6509
+ components.PIIRedactionPluginEn$inboundSchema,
6510
+ components.PIIRedactionPluginNl$inboundSchema,
6511
+ components.PIIRedactionPluginAuto$inboundSchema,
6512
+ ]);
6513
+
6514
+ export function createAgentRequestFallbackModelConfigurationPluginsFromJSON(
6515
+ jsonString: string,
6516
+ ): SafeParseResult<
6517
+ CreateAgentRequestFallbackModelConfigurationPlugins,
6518
+ SDKValidationError
6519
+ > {
6520
+ return safeParse(
6521
+ jsonString,
6522
+ (x) =>
6523
+ CreateAgentRequestFallbackModelConfigurationPlugins$inboundSchema.parse(
6524
+ JSON.parse(x),
6525
+ ),
6526
+ `Failed to parse 'CreateAgentRequestFallbackModelConfigurationPlugins' from JSON`,
6527
+ );
6528
+ }
6529
+
6338
6530
  /** @internal */
6339
6531
  export const CreateAgentRequestFallbackModelConfigurationFallbacks$inboundSchema:
6340
6532
  z.ZodType<
@@ -6597,6 +6789,13 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
6597
6789
  CreateAgentRequestFallbackModelConfigurationGuardrails$inboundSchema
6598
6790
  ),
6599
6791
  ).optional(),
6792
+ plugins: z.array(
6793
+ z.union([
6794
+ components.PIIRedactionPluginEn$inboundSchema,
6795
+ components.PIIRedactionPluginNl$inboundSchema,
6796
+ components.PIIRedactionPluginAuto$inboundSchema,
6797
+ ]),
6798
+ ).optional(),
6600
6799
  fallbacks: z.array(
6601
6800
  z.lazy(() =>
6602
6801
  CreateAgentRequestFallbackModelConfigurationFallbacks$inboundSchema
@@ -674,6 +674,11 @@ export type CreateChatCompletionGuardrails = {
674
674
  executeOn: CreateChatCompletionExecuteOn;
675
675
  };
676
676
 
677
+ export type CreateChatCompletionPlugins =
678
+ | components.PIIRedactionPluginEn
679
+ | components.PIIRedactionPluginNl
680
+ | components.PIIRedactionPluginAuto;
681
+
677
682
  export type CreateChatCompletionFallbacks = {
678
683
  /**
679
684
  * Fallback model identifier
@@ -1599,6 +1604,16 @@ export type CreateChatCompletionRequestBody = {
1599
1604
  * A list of guardrails to apply to the request.
1600
1605
  */
1601
1606
  guardrails?: Array<CreateChatCompletionGuardrails> | undefined;
1607
+ /**
1608
+ * 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.
1609
+ */
1610
+ plugins?:
1611
+ | Array<
1612
+ | components.PIIRedactionPluginEn
1613
+ | components.PIIRedactionPluginNl
1614
+ | components.PIIRedactionPluginAuto
1615
+ >
1616
+ | undefined;
1602
1617
  /**
1603
1618
  * Array of fallback models to use if primary model fails
1604
1619
  */
@@ -3422,6 +3437,33 @@ export function createChatCompletionGuardrailsToJSON(
3422
3437
  );
3423
3438
  }
3424
3439
 
3440
+ /** @internal */
3441
+ export type CreateChatCompletionPlugins$Outbound =
3442
+ | components.PIIRedactionPluginEn$Outbound
3443
+ | components.PIIRedactionPluginNl$Outbound
3444
+ | components.PIIRedactionPluginAuto$Outbound;
3445
+
3446
+ /** @internal */
3447
+ export const CreateChatCompletionPlugins$outboundSchema: z.ZodType<
3448
+ CreateChatCompletionPlugins$Outbound,
3449
+ z.ZodTypeDef,
3450
+ CreateChatCompletionPlugins
3451
+ > = z.union([
3452
+ components.PIIRedactionPluginEn$outboundSchema,
3453
+ components.PIIRedactionPluginNl$outboundSchema,
3454
+ components.PIIRedactionPluginAuto$outboundSchema,
3455
+ ]);
3456
+
3457
+ export function createChatCompletionPluginsToJSON(
3458
+ createChatCompletionPlugins: CreateChatCompletionPlugins,
3459
+ ): string {
3460
+ return JSON.stringify(
3461
+ CreateChatCompletionPlugins$outboundSchema.parse(
3462
+ createChatCompletionPlugins,
3463
+ ),
3464
+ );
3465
+ }
3466
+
3425
3467
  /** @internal */
3426
3468
  export type CreateChatCompletionFallbacks$Outbound = {
3427
3469
  model: string;
@@ -5434,6 +5476,13 @@ export type CreateChatCompletionRequestBody$Outbound = {
5434
5476
  parallel_tool_calls?: boolean | undefined;
5435
5477
  modalities?: Array<string> | null | undefined;
5436
5478
  guardrails?: Array<CreateChatCompletionGuardrails$Outbound> | undefined;
5479
+ plugins?:
5480
+ | Array<
5481
+ | components.PIIRedactionPluginEn$Outbound
5482
+ | components.PIIRedactionPluginNl$Outbound
5483
+ | components.PIIRedactionPluginAuto$Outbound
5484
+ >
5485
+ | undefined;
5437
5486
  fallbacks?: Array<CreateChatCompletionFallbacks$Outbound> | undefined;
5438
5487
  retry?: CreateChatCompletionRetry$Outbound | undefined;
5439
5488
  cache?: CreateChatCompletionCache$Outbound | undefined;
@@ -5508,6 +5557,13 @@ export const CreateChatCompletionRequestBody$outboundSchema: z.ZodType<
5508
5557
  guardrails: z.array(
5509
5558
  z.lazy(() => CreateChatCompletionGuardrails$outboundSchema),
5510
5559
  ).optional(),
5560
+ plugins: z.array(
5561
+ z.union([
5562
+ components.PIIRedactionPluginEn$outboundSchema,
5563
+ components.PIIRedactionPluginNl$outboundSchema,
5564
+ components.PIIRedactionPluginAuto$outboundSchema,
5565
+ ]),
5566
+ ).optional(),
5511
5567
  fallbacks: z.array(z.lazy(() => CreateChatCompletionFallbacks$outboundSchema))
5512
5568
  .optional(),
5513
5569
  retry: z.lazy(() => CreateChatCompletionRetry$outboundSchema).optional(),