@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
@@ -165,6 +165,11 @@ export type CreateImageTimeout = {
165
165
  callTimeout: number;
166
166
  };
167
167
 
168
+ export type CreateImagePlugins =
169
+ | components.PIIRedactionPluginEn
170
+ | components.PIIRedactionPluginNl
171
+ | components.PIIRedactionPluginAuto;
172
+
168
173
  /**
169
174
  * Retry configuration for the request
170
175
  */
@@ -356,6 +361,16 @@ export type CreateImageRequestBody = {
356
361
  * 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
362
  */
358
363
  timeout?: CreateImageTimeout | undefined;
364
+ /**
365
+ * Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
366
+ */
367
+ plugins?:
368
+ | Array<
369
+ | components.PIIRedactionPluginEn
370
+ | components.PIIRedactionPluginNl
371
+ | components.PIIRedactionPluginAuto
372
+ >
373
+ | undefined;
359
374
  orq?: CreateImageOrq | undefined;
360
375
  };
361
376
 
@@ -606,6 +621,31 @@ export function createImageTimeoutToJSON(
606
621
  );
607
622
  }
608
623
 
624
+ /** @internal */
625
+ export type CreateImagePlugins$Outbound =
626
+ | components.PIIRedactionPluginEn$Outbound
627
+ | components.PIIRedactionPluginNl$Outbound
628
+ | components.PIIRedactionPluginAuto$Outbound;
629
+
630
+ /** @internal */
631
+ export const CreateImagePlugins$outboundSchema: z.ZodType<
632
+ CreateImagePlugins$Outbound,
633
+ z.ZodTypeDef,
634
+ CreateImagePlugins
635
+ > = z.union([
636
+ components.PIIRedactionPluginEn$outboundSchema,
637
+ components.PIIRedactionPluginNl$outboundSchema,
638
+ components.PIIRedactionPluginAuto$outboundSchema,
639
+ ]);
640
+
641
+ export function createImagePluginsToJSON(
642
+ createImagePlugins: CreateImagePlugins,
643
+ ): string {
644
+ return JSON.stringify(
645
+ CreateImagePlugins$outboundSchema.parse(createImagePlugins),
646
+ );
647
+ }
648
+
609
649
  /** @internal */
610
650
  export type CreateImageRouterImagesGenerationsRetry$Outbound = {
611
651
  count: number;
@@ -884,6 +924,13 @@ export type CreateImageRequestBody$Outbound = {
884
924
  cache?: CreateImageCache$Outbound | undefined;
885
925
  load_balancer?: CreateImageLoadBalancer1$Outbound | undefined;
886
926
  timeout?: CreateImageTimeout$Outbound | undefined;
927
+ plugins?:
928
+ | Array<
929
+ | components.PIIRedactionPluginEn$Outbound
930
+ | components.PIIRedactionPluginNl$Outbound
931
+ | components.PIIRedactionPluginAuto$Outbound
932
+ >
933
+ | undefined;
887
934
  orq?: CreateImageOrq$Outbound | undefined;
888
935
  };
889
936
 
@@ -914,6 +961,13 @@ export const CreateImageRequestBody$outboundSchema: z.ZodType<
914
961
  loadBalancer: z.lazy(() => CreateImageLoadBalancer1$outboundSchema)
915
962
  .optional(),
916
963
  timeout: z.lazy(() => CreateImageTimeout$outboundSchema).optional(),
964
+ plugins: z.array(
965
+ z.union([
966
+ components.PIIRedactionPluginEn$outboundSchema,
967
+ components.PIIRedactionPluginNl$outboundSchema,
968
+ components.PIIRedactionPluginAuto$outboundSchema,
969
+ ]),
970
+ ).optional(),
917
971
  orq: z.lazy(() => CreateImageOrq$outboundSchema).optional(),
918
972
  }).transform((v) => {
919
973
  return remap$(v, {
@@ -632,6 +632,11 @@ export type CreatePromptGuardrails = {
632
632
  executeOn: CreatePromptExecuteOn;
633
633
  };
634
634
 
635
+ export type CreatePromptPlugins =
636
+ | components.PIIRedactionPluginEn
637
+ | components.PIIRedactionPluginNl
638
+ | components.PIIRedactionPluginAuto;
639
+
635
640
  export type CreatePromptFallbacks = {
636
641
  /**
637
642
  * Fallback model identifier
@@ -894,6 +899,16 @@ export type PromptInput = {
894
899
  * A list of guardrails to apply to the request.
895
900
  */
896
901
  guardrails?: Array<CreatePromptGuardrails> | undefined;
902
+ /**
903
+ * 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.
904
+ */
905
+ plugins?:
906
+ | Array<
907
+ | components.PIIRedactionPluginEn
908
+ | components.PIIRedactionPluginNl
909
+ | components.PIIRedactionPluginAuto
910
+ >
911
+ | undefined;
897
912
  /**
898
913
  * Array of fallback models to use if primary model fails
899
914
  */
@@ -994,24 +1009,20 @@ export const CreatePromptFormat = {
994
1009
  */
995
1010
  export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
996
1011
 
997
- export const CreatePromptResponseFormat6 = {
1012
+ export const ResponseFormat6 = {
998
1013
  Json: "json",
999
1014
  Text: "text",
1000
1015
  Srt: "srt",
1001
1016
  VerboseJson: "verbose_json",
1002
1017
  Vtt: "vtt",
1003
1018
  } as const;
1004
- export type CreatePromptResponseFormat6 = ClosedEnum<
1005
- typeof CreatePromptResponseFormat6
1006
- >;
1019
+ export type ResponseFormat6 = ClosedEnum<typeof ResponseFormat6>;
1007
1020
 
1008
- export const CreatePromptResponseFormat5 = {
1021
+ export const ResponseFormat5 = {
1009
1022
  Url: "url",
1010
1023
  Base64Json: "base64_json",
1011
1024
  } as const;
1012
- export type CreatePromptResponseFormat5 = ClosedEnum<
1013
- typeof CreatePromptResponseFormat5
1014
- >;
1025
+ export type ResponseFormat5 = ClosedEnum<typeof ResponseFormat5>;
1015
1026
 
1016
1027
  export const CreatePromptResponseFormat4 = {
1017
1028
  Mp3: "mp3",
@@ -1094,8 +1105,8 @@ export type CreatePromptPromptsResponseResponseFormat =
1094
1105
  | CreatePromptResponseFormat2
1095
1106
  | CreatePromptResponseFormat3
1096
1107
  | CreatePromptResponseFormat4
1097
- | CreatePromptResponseFormat5
1098
- | CreatePromptResponseFormat6;
1108
+ | ResponseFormat5
1109
+ | ResponseFormat6;
1099
1110
 
1100
1111
  /**
1101
1112
  * Create a cache control breakpoint. Accepts only the value "ephemeral".
@@ -1302,8 +1313,8 @@ export type ModelParameters = {
1302
1313
  | CreatePromptResponseFormat2
1303
1314
  | CreatePromptResponseFormat3
1304
1315
  | CreatePromptResponseFormat4
1305
- | CreatePromptResponseFormat5
1306
- | CreatePromptResponseFormat6
1316
+ | ResponseFormat5
1317
+ | ResponseFormat6
1307
1318
  | null
1308
1319
  | undefined;
1309
1320
  /**
@@ -1779,6 +1790,11 @@ export type CreatePromptPromptsGuardrails = {
1779
1790
  executeOn: CreatePromptPromptsExecuteOn;
1780
1791
  };
1781
1792
 
1793
+ export type CreatePromptPromptsPlugins =
1794
+ | components.PIIRedactionPluginEn
1795
+ | components.PIIRedactionPluginNl
1796
+ | components.PIIRedactionPluginAuto;
1797
+
1782
1798
  export type CreatePromptPromptsFallbacks = {
1783
1799
  /**
1784
1800
  * Fallback model identifier
@@ -2366,6 +2382,16 @@ export type PromptField = {
2366
2382
  * A list of guardrails to apply to the request.
2367
2383
  */
2368
2384
  guardrails?: Array<CreatePromptPromptsGuardrails> | undefined;
2385
+ /**
2386
+ * 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.
2387
+ */
2388
+ plugins?:
2389
+ | Array<
2390
+ | components.PIIRedactionPluginEn
2391
+ | components.PIIRedactionPluginNl
2392
+ | components.PIIRedactionPluginAuto
2393
+ >
2394
+ | undefined;
2369
2395
  /**
2370
2396
  * Array of fallback models to use if primary model fails
2371
2397
  */
@@ -3518,6 +3544,31 @@ export function createPromptGuardrailsToJSON(
3518
3544
  );
3519
3545
  }
3520
3546
 
3547
+ /** @internal */
3548
+ export type CreatePromptPlugins$Outbound =
3549
+ | components.PIIRedactionPluginEn$Outbound
3550
+ | components.PIIRedactionPluginNl$Outbound
3551
+ | components.PIIRedactionPluginAuto$Outbound;
3552
+
3553
+ /** @internal */
3554
+ export const CreatePromptPlugins$outboundSchema: z.ZodType<
3555
+ CreatePromptPlugins$Outbound,
3556
+ z.ZodTypeDef,
3557
+ CreatePromptPlugins
3558
+ > = z.union([
3559
+ components.PIIRedactionPluginEn$outboundSchema,
3560
+ components.PIIRedactionPluginNl$outboundSchema,
3561
+ components.PIIRedactionPluginAuto$outboundSchema,
3562
+ ]);
3563
+
3564
+ export function createPromptPluginsToJSON(
3565
+ createPromptPlugins: CreatePromptPlugins,
3566
+ ): string {
3567
+ return JSON.stringify(
3568
+ CreatePromptPlugins$outboundSchema.parse(createPromptPlugins),
3569
+ );
3570
+ }
3571
+
3521
3572
  /** @internal */
3522
3573
  export type CreatePromptFallbacks$Outbound = {
3523
3574
  model: string;
@@ -3771,6 +3822,13 @@ export type PromptInput$Outbound = {
3771
3822
  parallel_tool_calls?: boolean | undefined;
3772
3823
  modalities?: Array<string> | null | undefined;
3773
3824
  guardrails?: Array<CreatePromptGuardrails$Outbound> | undefined;
3825
+ plugins?:
3826
+ | Array<
3827
+ | components.PIIRedactionPluginEn$Outbound
3828
+ | components.PIIRedactionPluginNl$Outbound
3829
+ | components.PIIRedactionPluginAuto$Outbound
3830
+ >
3831
+ | undefined;
3774
3832
  fallbacks?: Array<CreatePromptFallbacks$Outbound> | undefined;
3775
3833
  retry?: CreatePromptRetry$Outbound | undefined;
3776
3834
  cache?: CreatePromptCache$Outbound | undefined;
@@ -3832,6 +3890,13 @@ export const PromptInput$outboundSchema: z.ZodType<
3832
3890
  .optional(),
3833
3891
  guardrails: z.array(z.lazy(() => CreatePromptGuardrails$outboundSchema))
3834
3892
  .optional(),
3893
+ plugins: z.array(
3894
+ z.union([
3895
+ components.PIIRedactionPluginEn$outboundSchema,
3896
+ components.PIIRedactionPluginNl$outboundSchema,
3897
+ components.PIIRedactionPluginAuto$outboundSchema,
3898
+ ]),
3899
+ ).optional(),
3835
3900
  fallbacks: z.array(z.lazy(() => CreatePromptFallbacks$outboundSchema))
3836
3901
  .optional(),
3837
3902
  retry: z.lazy(() => CreatePromptRetry$outboundSchema).optional(),
@@ -3917,14 +3982,14 @@ export const CreatePromptFormat$inboundSchema: z.ZodNativeEnum<
3917
3982
  > = z.nativeEnum(CreatePromptFormat);
3918
3983
 
3919
3984
  /** @internal */
3920
- export const CreatePromptResponseFormat6$inboundSchema: z.ZodNativeEnum<
3921
- typeof CreatePromptResponseFormat6
3922
- > = z.nativeEnum(CreatePromptResponseFormat6);
3985
+ export const ResponseFormat6$inboundSchema: z.ZodNativeEnum<
3986
+ typeof ResponseFormat6
3987
+ > = z.nativeEnum(ResponseFormat6);
3923
3988
 
3924
3989
  /** @internal */
3925
- export const CreatePromptResponseFormat5$inboundSchema: z.ZodNativeEnum<
3926
- typeof CreatePromptResponseFormat5
3927
- > = z.nativeEnum(CreatePromptResponseFormat5);
3990
+ export const ResponseFormat5$inboundSchema: z.ZodNativeEnum<
3991
+ typeof ResponseFormat5
3992
+ > = z.nativeEnum(ResponseFormat5);
3928
3993
 
3929
3994
  /** @internal */
3930
3995
  export const CreatePromptResponseFormat4$inboundSchema: z.ZodNativeEnum<
@@ -4062,8 +4127,8 @@ export const CreatePromptPromptsResponseResponseFormat$inboundSchema: z.ZodType<
4062
4127
  z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
4063
4128
  z.lazy(() => CreatePromptResponseFormat3$inboundSchema),
4064
4129
  CreatePromptResponseFormat4$inboundSchema,
4065
- CreatePromptResponseFormat5$inboundSchema,
4066
- CreatePromptResponseFormat6$inboundSchema,
4130
+ ResponseFormat5$inboundSchema,
4131
+ ResponseFormat6$inboundSchema,
4067
4132
  ]);
4068
4133
 
4069
4134
  export function createPromptPromptsResponseResponseFormatFromJSON(
@@ -4171,8 +4236,8 @@ export const ModelParameters$inboundSchema: z.ZodType<
4171
4236
  z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
4172
4237
  z.lazy(() => CreatePromptResponseFormat3$inboundSchema),
4173
4238
  CreatePromptResponseFormat4$inboundSchema,
4174
- CreatePromptResponseFormat5$inboundSchema,
4175
- CreatePromptResponseFormat6$inboundSchema,
4239
+ ResponseFormat5$inboundSchema,
4240
+ ResponseFormat6$inboundSchema,
4176
4241
  ]),
4177
4242
  ).optional(),
4178
4243
  cacheControl: z.nullable(
@@ -4842,6 +4907,27 @@ export function createPromptPromptsGuardrailsFromJSON(
4842
4907
  );
4843
4908
  }
4844
4909
 
4910
+ /** @internal */
4911
+ export const CreatePromptPromptsPlugins$inboundSchema: z.ZodType<
4912
+ CreatePromptPromptsPlugins,
4913
+ z.ZodTypeDef,
4914
+ unknown
4915
+ > = z.union([
4916
+ components.PIIRedactionPluginEn$inboundSchema,
4917
+ components.PIIRedactionPluginNl$inboundSchema,
4918
+ components.PIIRedactionPluginAuto$inboundSchema,
4919
+ ]);
4920
+
4921
+ export function createPromptPromptsPluginsFromJSON(
4922
+ jsonString: string,
4923
+ ): SafeParseResult<CreatePromptPromptsPlugins, SDKValidationError> {
4924
+ return safeParse(
4925
+ jsonString,
4926
+ (x) => CreatePromptPromptsPlugins$inboundSchema.parse(JSON.parse(x)),
4927
+ `Failed to parse 'CreatePromptPromptsPlugins' from JSON`,
4928
+ );
4929
+ }
4930
+
4845
4931
  /** @internal */
4846
4932
  export const CreatePromptPromptsFallbacks$inboundSchema: z.ZodType<
4847
4933
  CreatePromptPromptsFallbacks,
@@ -5616,6 +5702,13 @@ export const PromptField$inboundSchema: z.ZodType<
5616
5702
  .optional(),
5617
5703
  guardrails: z.array(z.lazy(() => CreatePromptPromptsGuardrails$inboundSchema))
5618
5704
  .optional(),
5705
+ plugins: z.array(
5706
+ z.union([
5707
+ components.PIIRedactionPluginEn$inboundSchema,
5708
+ components.PIIRedactionPluginNl$inboundSchema,
5709
+ components.PIIRedactionPluginAuto$inboundSchema,
5710
+ ]),
5711
+ ).optional(),
5619
5712
  fallbacks: z.array(z.lazy(() => CreatePromptPromptsFallbacks$inboundSchema))
5620
5713
  .optional(),
5621
5714
  retry: z.lazy(() => CreatePromptPromptsRetry$inboundSchema).optional(),
@@ -85,6 +85,11 @@ export type CreateRerankTimeout = {
85
85
  callTimeout: number;
86
86
  };
87
87
 
88
+ export type CreateRerankPlugins =
89
+ | components.PIIRedactionPluginEn
90
+ | components.PIIRedactionPluginNl
91
+ | components.PIIRedactionPluginAuto;
92
+
88
93
  export type CreateRerankRouterRerankFallbacks = {
89
94
  /**
90
95
  * Fallback model identifier
@@ -248,6 +253,16 @@ export type CreateRerankRequestBody = {
248
253
  * 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.
249
254
  */
250
255
  timeout?: CreateRerankTimeout | undefined;
256
+ /**
257
+ * 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.
258
+ */
259
+ plugins?:
260
+ | Array<
261
+ | components.PIIRedactionPluginEn
262
+ | components.PIIRedactionPluginNl
263
+ | components.PIIRedactionPluginAuto
264
+ >
265
+ | undefined;
251
266
  orq?: CreateRerankOrq | undefined;
252
267
  };
253
268
 
@@ -500,6 +515,31 @@ export function createRerankTimeoutToJSON(
500
515
  );
501
516
  }
502
517
 
518
+ /** @internal */
519
+ export type CreateRerankPlugins$Outbound =
520
+ | components.PIIRedactionPluginEn$Outbound
521
+ | components.PIIRedactionPluginNl$Outbound
522
+ | components.PIIRedactionPluginAuto$Outbound;
523
+
524
+ /** @internal */
525
+ export const CreateRerankPlugins$outboundSchema: z.ZodType<
526
+ CreateRerankPlugins$Outbound,
527
+ z.ZodTypeDef,
528
+ CreateRerankPlugins
529
+ > = z.union([
530
+ components.PIIRedactionPluginEn$outboundSchema,
531
+ components.PIIRedactionPluginNl$outboundSchema,
532
+ components.PIIRedactionPluginAuto$outboundSchema,
533
+ ]);
534
+
535
+ export function createRerankPluginsToJSON(
536
+ createRerankPlugins: CreateRerankPlugins,
537
+ ): string {
538
+ return JSON.stringify(
539
+ CreateRerankPlugins$outboundSchema.parse(createRerankPlugins),
540
+ );
541
+ }
542
+
503
543
  /** @internal */
504
544
  export type CreateRerankRouterRerankFallbacks$Outbound = {
505
545
  model: string;
@@ -751,6 +791,13 @@ export type CreateRerankRequestBody$Outbound = {
751
791
  cache?: CreateRerankCache$Outbound | undefined;
752
792
  load_balancer?: CreateRerankLoadBalancer1$Outbound | undefined;
753
793
  timeout?: CreateRerankTimeout$Outbound | undefined;
794
+ plugins?:
795
+ | Array<
796
+ | components.PIIRedactionPluginEn$Outbound
797
+ | components.PIIRedactionPluginNl$Outbound
798
+ | components.PIIRedactionPluginAuto$Outbound
799
+ >
800
+ | undefined;
754
801
  orq?: CreateRerankOrq$Outbound | undefined;
755
802
  };
756
803
 
@@ -773,6 +820,13 @@ export const CreateRerankRequestBody$outboundSchema: z.ZodType<
773
820
  loadBalancer: z.lazy(() => CreateRerankLoadBalancer1$outboundSchema)
774
821
  .optional(),
775
822
  timeout: z.lazy(() => CreateRerankTimeout$outboundSchema).optional(),
823
+ plugins: z.array(
824
+ z.union([
825
+ components.PIIRedactionPluginEn$outboundSchema,
826
+ components.PIIRedactionPluginNl$outboundSchema,
827
+ components.PIIRedactionPluginAuto$outboundSchema,
828
+ ]),
829
+ ).optional(),
776
830
  orq: z.lazy(() => CreateRerankOrq$outboundSchema).optional(),
777
831
  }).transform((v) => {
778
832
  return remap$(v, {
@@ -711,6 +711,10 @@ export type CreateRouterResponseRequestBody = {
711
711
  * Whether to allow parallel tool calls.
712
712
  */
713
713
  parallelToolCalls?: boolean | undefined;
714
+ /**
715
+ * 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.
716
+ */
717
+ plugins?: Array<components.PublicPIIRedactionPlugin> | null | undefined;
714
718
  /**
715
719
  * Penalize new tokens based on their presence in the text so far. Between -2.0 and 2.0.
716
720
  */
@@ -1670,6 +1674,10 @@ export type CreateRouterResponseRequestBody$Outbound = {
1670
1674
  metadata?: { [k: string]: string } | undefined;
1671
1675
  model?: string | undefined;
1672
1676
  parallel_tool_calls?: boolean | undefined;
1677
+ plugins?:
1678
+ | Array<components.PublicPIIRedactionPlugin$Outbound>
1679
+ | null
1680
+ | undefined;
1673
1681
  presence_penalty?: number | undefined;
1674
1682
  previous_response_id?: string | undefined;
1675
1683
  prompt_cache_key?: string | undefined;
@@ -1727,6 +1735,9 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
1727
1735
  metadata: z.record(z.string()).optional(),
1728
1736
  model: z.string().optional(),
1729
1737
  parallelToolCalls: z.boolean().optional(),
1738
+ plugins: z.nullable(
1739
+ z.array(components.PublicPIIRedactionPlugin$outboundSchema),
1740
+ ).optional(),
1730
1741
  presencePenalty: z.number().optional(),
1731
1742
  previousResponseId: z.string().optional(),
1732
1743
  promptCacheKey: z.string().optional(),
@@ -790,7 +790,7 @@ export type CreateToolResponseBodyToolsStatus = ClosedEnum<
790
790
  /**
791
791
  * The HTTP method to use.
792
792
  */
793
- export const CreateToolResponseBodyMethod = {
793
+ export const ResponseBodyMethod = {
794
794
  Get: "GET",
795
795
  Post: "POST",
796
796
  Put: "PUT",
@@ -799,9 +799,7 @@ export const CreateToolResponseBodyMethod = {
799
799
  /**
800
800
  * The HTTP method to use.
801
801
  */
802
- export type CreateToolResponseBodyMethod = ClosedEnum<
803
- typeof CreateToolResponseBodyMethod
804
- >;
802
+ export type ResponseBodyMethod = ClosedEnum<typeof ResponseBodyMethod>;
805
803
 
806
804
  export type CreateToolHeadersTools2 = {
807
805
  value: string;
@@ -821,7 +819,7 @@ export type ResponseBodyBlueprint = {
821
819
  /**
822
820
  * The HTTP method to use.
823
821
  */
824
- method: CreateToolResponseBodyMethod;
822
+ method: ResponseBodyMethod;
825
823
  /**
826
824
  * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
827
825
  */
@@ -1074,7 +1072,7 @@ export type ResponseBodyParameters = {
1074
1072
  additionalProperties?: { [k: string]: any } | undefined;
1075
1073
  };
1076
1074
 
1077
- export type CreateToolResponseBodyFunction = {
1075
+ export type ResponseBodyFunction = {
1078
1076
  /**
1079
1077
  * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
1080
1078
  */
@@ -1137,7 +1135,7 @@ export type ResponseBodyFunctionTool = {
1137
1135
  */
1138
1136
  status: ResponseBodyStatus;
1139
1137
  type: "function";
1140
- function: CreateToolResponseBodyFunction;
1138
+ function: ResponseBodyFunction;
1141
1139
  };
1142
1140
 
1143
1141
  /**
@@ -1898,7 +1896,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
1898
1896
  z.ZodTypeDef,
1899
1897
  unknown
1900
1898
  > = z.object({
1901
- _id: z.string().default("tool_01KW2P036A18DQ9A7P31481R60"),
1899
+ _id: z.string().default("tool_01KW9AEEG48VAT1RRQ91HMGAJJ"),
1902
1900
  path: z.string(),
1903
1901
  key: z.string(),
1904
1902
  display_name: z.string().optional(),
@@ -1995,7 +1993,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
1995
1993
  z.ZodTypeDef,
1996
1994
  unknown
1997
1995
  > = z.object({
1998
- id: z.string().default("01KW2P03689PQEHC7G2S54HWZH"),
1996
+ id: z.string().default("01KW9AEEG3ERWKW7B8Y3ZKSXG3"),
1999
1997
  name: z.string(),
2000
1998
  description: z.string().optional(),
2001
1999
  schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
@@ -2051,7 +2049,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
2051
2049
  z.ZodTypeDef,
2052
2050
  unknown
2053
2051
  > = z.object({
2054
- _id: z.string().default("tool_01KW2P0366B44C80D925KH4MSG"),
2052
+ _id: z.string().default("tool_01KW9AEEG29W4Z9XFZ5N4YK642"),
2055
2053
  path: z.string(),
2056
2054
  key: z.string(),
2057
2055
  display_name: z.string().optional(),
@@ -2094,9 +2092,9 @@ export const CreateToolResponseBodyToolsStatus$inboundSchema: z.ZodNativeEnum<
2094
2092
  > = z.nativeEnum(CreateToolResponseBodyToolsStatus);
2095
2093
 
2096
2094
  /** @internal */
2097
- export const CreateToolResponseBodyMethod$inboundSchema: z.ZodNativeEnum<
2098
- typeof CreateToolResponseBodyMethod
2099
- > = z.nativeEnum(CreateToolResponseBodyMethod);
2095
+ export const ResponseBodyMethod$inboundSchema: z.ZodNativeEnum<
2096
+ typeof ResponseBodyMethod
2097
+ > = z.nativeEnum(ResponseBodyMethod);
2100
2098
 
2101
2099
  /** @internal */
2102
2100
  export const CreateToolHeadersTools2$inboundSchema: z.ZodType<
@@ -2142,7 +2140,7 @@ export const ResponseBodyBlueprint$inboundSchema: z.ZodType<
2142
2140
  unknown
2143
2141
  > = z.object({
2144
2142
  url: z.string(),
2145
- method: CreateToolResponseBodyMethod$inboundSchema,
2143
+ method: ResponseBodyMethod$inboundSchema,
2146
2144
  headers: z.record(
2147
2145
  z.union([z.lazy(() => CreateToolHeadersTools2$inboundSchema), z.string()]),
2148
2146
  ).optional(),
@@ -2237,7 +2235,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
2237
2235
  z.ZodTypeDef,
2238
2236
  unknown
2239
2237
  > = z.object({
2240
- _id: z.string().default("tool_01KW2P03618PWAMS50ZZKCB5HW"),
2238
+ _id: z.string().default("tool_01KW9AEEG0PME7PH3TQ7ABD64F"),
2241
2239
  path: z.string(),
2242
2240
  key: z.string(),
2243
2241
  display_name: z.string().optional(),
@@ -2330,7 +2328,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
2330
2328
  z.ZodTypeDef,
2331
2329
  unknown
2332
2330
  > = z.object({
2333
- _id: z.string().default("tool_01KW2P035YQH64FCY3MNR9463B"),
2331
+ _id: z.string().default("tool_01KW9AEEFZ7QVNXHBZNTXEQQYC"),
2334
2332
  path: z.string(),
2335
2333
  key: z.string(),
2336
2334
  display_name: z.string().optional(),
@@ -2404,8 +2402,8 @@ export function responseBodyParametersFromJSON(
2404
2402
  }
2405
2403
 
2406
2404
  /** @internal */
2407
- export const CreateToolResponseBodyFunction$inboundSchema: z.ZodType<
2408
- CreateToolResponseBodyFunction,
2405
+ export const ResponseBodyFunction$inboundSchema: z.ZodType<
2406
+ ResponseBodyFunction,
2409
2407
  z.ZodTypeDef,
2410
2408
  unknown
2411
2409
  > = z.object({
@@ -2415,13 +2413,13 @@ export const CreateToolResponseBodyFunction$inboundSchema: z.ZodType<
2415
2413
  parameters: z.lazy(() => ResponseBodyParameters$inboundSchema).optional(),
2416
2414
  });
2417
2415
 
2418
- export function createToolResponseBodyFunctionFromJSON(
2416
+ export function responseBodyFunctionFromJSON(
2419
2417
  jsonString: string,
2420
- ): SafeParseResult<CreateToolResponseBodyFunction, SDKValidationError> {
2418
+ ): SafeParseResult<ResponseBodyFunction, SDKValidationError> {
2421
2419
  return safeParse(
2422
2420
  jsonString,
2423
- (x) => CreateToolResponseBodyFunction$inboundSchema.parse(JSON.parse(x)),
2424
- `Failed to parse 'CreateToolResponseBodyFunction' from JSON`,
2421
+ (x) => ResponseBodyFunction$inboundSchema.parse(JSON.parse(x)),
2422
+ `Failed to parse 'ResponseBodyFunction' from JSON`,
2425
2423
  );
2426
2424
  }
2427
2425
 
@@ -2431,7 +2429,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
2431
2429
  z.ZodTypeDef,
2432
2430
  unknown
2433
2431
  > = z.object({
2434
- _id: z.string().default("tool_01KW2P035TED7APGSGNFFWVDV1"),
2432
+ _id: z.string().default("tool_01KW9AEEFXVCCK7RQVSKDRKW9S"),
2435
2433
  path: z.string(),
2436
2434
  key: z.string(),
2437
2435
  display_name: z.string().optional(),
@@ -2444,7 +2442,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
2444
2442
  updated: z.string(),
2445
2443
  status: ResponseBodyStatus$inboundSchema.default("live"),
2446
2444
  type: z.literal("function"),
2447
- function: z.lazy(() => CreateToolResponseBodyFunction$inboundSchema),
2445
+ function: z.lazy(() => ResponseBodyFunction$inboundSchema),
2448
2446
  }).transform((v) => {
2449
2447
  return remap$(v, {
2450
2448
  "_id": "id",