@orq-ai/node 4.11.0-rc.53 → 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 (238) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/components/createskillrequest.d.ts +6 -6
  5. package/models/components/createskillrequest.d.ts.map +1 -1
  6. package/models/components/createskillrequest.js +6 -7
  7. package/models/components/createskillrequest.js.map +1 -1
  8. package/models/components/evaluatorresponsefunction.d.ts +270 -0
  9. package/models/components/evaluatorresponsefunction.d.ts.map +1 -0
  10. package/models/components/evaluatorresponsefunction.js +491 -0
  11. package/models/components/evaluatorresponsefunction.js.map +1 -0
  12. package/models/components/evaluatorresponsehttp.d.ts +76 -0
  13. package/models/components/evaluatorresponsehttp.d.ts.map +1 -0
  14. package/models/components/evaluatorresponsehttp.js +146 -0
  15. package/models/components/evaluatorresponsehttp.js.map +1 -0
  16. package/models/components/evaluatorresponsejsonschema.d.ts +62 -0
  17. package/models/components/evaluatorresponsejsonschema.d.ts.map +1 -0
  18. package/models/components/evaluatorresponsejsonschema.js +135 -0
  19. package/models/components/evaluatorresponsejsonschema.js.map +1 -0
  20. package/models/components/evaluatorresponsellm.d.ts +140 -0
  21. package/models/components/evaluatorresponsellm.d.ts.map +1 -0
  22. package/models/components/evaluatorresponsellm.js +250 -0
  23. package/models/components/evaluatorresponsellm.js.map +1 -0
  24. package/models/components/evaluatorresponsepython.d.ts +62 -0
  25. package/models/components/evaluatorresponsepython.d.ts.map +1 -0
  26. package/models/components/evaluatorresponsepython.js +136 -0
  27. package/models/components/evaluatorresponsepython.js.map +1 -0
  28. package/models/components/evaluatorresponseragas.d.ts +80 -0
  29. package/models/components/evaluatorresponseragas.d.ts.map +1 -0
  30. package/models/components/evaluatorresponseragas.js +155 -0
  31. package/models/components/evaluatorresponseragas.js.map +1 -0
  32. package/models/components/evaluatorresponsetypescript.d.ts +62 -0
  33. package/models/components/evaluatorresponsetypescript.d.ts.map +1 -0
  34. package/models/components/evaluatorresponsetypescript.js +136 -0
  35. package/models/components/evaluatorresponsetypescript.js.map +1 -0
  36. package/models/components/index.d.ts +8 -0
  37. package/models/components/index.d.ts.map +1 -1
  38. package/models/components/index.js +8 -0
  39. package/models/components/index.js.map +1 -1
  40. package/models/components/invokedeploymentrequest.d.ts +36 -36
  41. package/models/components/invokedeploymentrequest.d.ts.map +1 -1
  42. package/models/components/invokedeploymentrequest.js +33 -34
  43. package/models/components/invokedeploymentrequest.js.map +1 -1
  44. package/models/components/modelsconfig.d.ts +5 -5
  45. package/models/components/modelsconfig.d.ts.map +1 -1
  46. package/models/components/modelsconfig.js +6 -6
  47. package/models/components/modelsconfig.js.map +1 -1
  48. package/models/components/piiredactionpluginauto.d.ts +127 -0
  49. package/models/components/piiredactionpluginauto.d.ts.map +1 -0
  50. package/models/components/piiredactionpluginauto.js +157 -0
  51. package/models/components/piiredactionpluginauto.js.map +1 -0
  52. package/models/components/piiredactionpluginen.d.ts +31 -17
  53. package/models/components/piiredactionpluginen.d.ts.map +1 -1
  54. package/models/components/piiredactionpluginen.js +29 -20
  55. package/models/components/piiredactionpluginen.js.map +1 -1
  56. package/models/components/piiredactionpluginnl.d.ts +16 -2
  57. package/models/components/piiredactionpluginnl.d.ts.map +1 -1
  58. package/models/components/piiredactionpluginnl.js +13 -3
  59. package/models/components/piiredactionpluginnl.js.map +1 -1
  60. package/models/components/reasoningpart.js +1 -1
  61. package/models/components/textcontentpartschema.d.ts +10 -10
  62. package/models/components/textcontentpartschema.d.ts.map +1 -1
  63. package/models/components/textcontentpartschema.js +11 -11
  64. package/models/components/textcontentpartschema.js.map +1 -1
  65. package/models/operations/createagentrequest.d.ts +12 -12
  66. package/models/operations/createagentrequest.d.ts.map +1 -1
  67. package/models/operations/createagentrequest.js +8 -0
  68. package/models/operations/createagentrequest.js.map +1 -1
  69. package/models/operations/createchatcompletion.d.ts +4 -4
  70. package/models/operations/createchatcompletion.d.ts.map +1 -1
  71. package/models/operations/createchatcompletion.js +2 -0
  72. package/models/operations/createchatcompletion.js.map +1 -1
  73. package/models/operations/createcompletion.d.ts +4 -4
  74. package/models/operations/createcompletion.d.ts.map +1 -1
  75. package/models/operations/createcompletion.js +2 -0
  76. package/models/operations/createcompletion.js.map +1 -1
  77. package/models/operations/createdataset.js +1 -1
  78. package/models/operations/createdatasetitem.js +4 -4
  79. package/models/operations/createdatasource.js +1 -1
  80. package/models/operations/createeval.d.ts +22 -852
  81. package/models/operations/createeval.d.ts.map +1 -1
  82. package/models/operations/createeval.js +30 -1341
  83. package/models/operations/createeval.js.map +1 -1
  84. package/models/operations/createimage.d.ts +4 -4
  85. package/models/operations/createimage.d.ts.map +1 -1
  86. package/models/operations/createimage.js +2 -0
  87. package/models/operations/createimage.js.map +1 -1
  88. package/models/operations/createprompt.d.ts +14 -14
  89. package/models/operations/createprompt.d.ts.map +1 -1
  90. package/models/operations/createprompt.js +14 -10
  91. package/models/operations/createprompt.js.map +1 -1
  92. package/models/operations/creatererank.d.ts +4 -4
  93. package/models/operations/creatererank.d.ts.map +1 -1
  94. package/models/operations/creatererank.js +2 -0
  95. package/models/operations/creatererank.js.map +1 -1
  96. package/models/operations/createtool.d.ts +8 -8
  97. package/models/operations/createtool.d.ts.map +1 -1
  98. package/models/operations/createtool.js +16 -16
  99. package/models/operations/createtool.js.map +1 -1
  100. package/models/operations/deploymentgetconfig.d.ts +8 -8
  101. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  102. package/models/operations/deploymentgetconfig.js +10 -10
  103. package/models/operations/deploymentgetconfig.js.map +1 -1
  104. package/models/operations/getallprompts.d.ts +2 -2
  105. package/models/operations/getallprompts.d.ts.map +1 -1
  106. package/models/operations/getallprompts.js +2 -0
  107. package/models/operations/getallprompts.js.map +1 -1
  108. package/models/operations/getalltools.d.ts +20 -20
  109. package/models/operations/getalltools.d.ts.map +1 -1
  110. package/models/operations/getalltools.js +28 -26
  111. package/models/operations/getalltools.js.map +1 -1
  112. package/models/operations/getevals.d.ts +3 -833
  113. package/models/operations/getevals.d.ts.map +1 -1
  114. package/models/operations/getevals.js +16 -1314
  115. package/models/operations/getevals.js.map +1 -1
  116. package/models/operations/getoneprompt.d.ts +2 -2
  117. package/models/operations/getoneprompt.d.ts.map +1 -1
  118. package/models/operations/getoneprompt.js +2 -0
  119. package/models/operations/getoneprompt.js.map +1 -1
  120. package/models/operations/getpromptversion.d.ts +2 -2
  121. package/models/operations/getpromptversion.d.ts.map +1 -1
  122. package/models/operations/getpromptversion.js +2 -0
  123. package/models/operations/getpromptversion.js.map +1 -1
  124. package/models/operations/getv2humanevalsets.js +2 -2
  125. package/models/operations/getv2humanevalsetsid.js +2 -2
  126. package/models/operations/invokeeval.d.ts +7 -7
  127. package/models/operations/invokeeval.d.ts.map +1 -1
  128. package/models/operations/invokeeval.js +11 -11
  129. package/models/operations/invokeeval.js.map +1 -1
  130. package/models/operations/listagents.d.ts +4 -4
  131. package/models/operations/listagents.d.ts.map +1 -1
  132. package/models/operations/listagents.js +4 -0
  133. package/models/operations/listagents.js.map +1 -1
  134. package/models/operations/listdatasetdatapoints.js +4 -4
  135. package/models/operations/listdatasets.js +1 -1
  136. package/models/operations/listdatasources.js +1 -1
  137. package/models/operations/listpromptversions.d.ts +2 -2
  138. package/models/operations/listpromptversions.d.ts.map +1 -1
  139. package/models/operations/listpromptversions.js +2 -0
  140. package/models/operations/listpromptversions.js.map +1 -1
  141. package/models/operations/patchv2humanevalsetsid.js +2 -2
  142. package/models/operations/postv2feedbackevaluation.js +3 -3
  143. package/models/operations/postv2humanevalsets.js +2 -2
  144. package/models/operations/retrieveagentrequest.d.ts +4 -4
  145. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  146. package/models/operations/retrieveagentrequest.js +4 -0
  147. package/models/operations/retrieveagentrequest.js.map +1 -1
  148. package/models/operations/retrievedatapoint.js +4 -4
  149. package/models/operations/retrievedataset.js +1 -1
  150. package/models/operations/retrievedatasource.js +1 -1
  151. package/models/operations/retrievetool.js +6 -6
  152. package/models/operations/runagent.d.ts +8 -8
  153. package/models/operations/runagent.d.ts.map +1 -1
  154. package/models/operations/runagent.js +5 -1
  155. package/models/operations/runagent.js.map +1 -1
  156. package/models/operations/streamrunagent.d.ts +8 -8
  157. package/models/operations/streamrunagent.d.ts.map +1 -1
  158. package/models/operations/streamrunagent.js +5 -1
  159. package/models/operations/streamrunagent.js.map +1 -1
  160. package/models/operations/updateagent.d.ts +12 -12
  161. package/models/operations/updateagent.d.ts.map +1 -1
  162. package/models/operations/updateagent.js +8 -0
  163. package/models/operations/updateagent.js.map +1 -1
  164. package/models/operations/updatedatapoint.js +4 -4
  165. package/models/operations/updatedataset.js +1 -1
  166. package/models/operations/updatedatasource.js +1 -1
  167. package/models/operations/updateeval.d.ts +2 -832
  168. package/models/operations/updateeval.d.ts.map +1 -1
  169. package/models/operations/updateeval.js +9 -1304
  170. package/models/operations/updateeval.js.map +1 -1
  171. package/models/operations/updateprompt.d.ts +6 -6
  172. package/models/operations/updateprompt.d.ts.map +1 -1
  173. package/models/operations/updateprompt.js +4 -0
  174. package/models/operations/updateprompt.js.map +1 -1
  175. package/models/operations/updatetool.js +7 -7
  176. package/package.json +3 -3
  177. package/sdk/feedback.d.ts +2 -2
  178. package/sdk/feedback.js +2 -2
  179. package/src/lib/config.ts +2 -2
  180. package/src/models/components/createskillrequest.ts +27 -20
  181. package/src/models/components/evaluatorresponsefunction.ts +1107 -0
  182. package/src/models/components/evaluatorresponsehttp.ts +247 -0
  183. package/src/models/components/evaluatorresponsejsonschema.ts +214 -0
  184. package/src/models/components/evaluatorresponsellm.ts +442 -0
  185. package/src/models/components/evaluatorresponsepython.ts +234 -0
  186. package/src/models/components/evaluatorresponseragas.ts +257 -0
  187. package/src/models/components/evaluatorresponsetypescript.ts +247 -0
  188. package/src/models/components/index.ts +8 -0
  189. package/src/models/components/invokedeploymentrequest.ts +119 -95
  190. package/src/models/components/modelsconfig.ts +11 -10
  191. package/src/models/components/piiredactionpluginauto.ts +186 -0
  192. package/src/models/components/piiredactionpluginen.ts +59 -29
  193. package/src/models/components/piiredactionpluginnl.ts +26 -4
  194. package/src/models/components/reasoningpart.ts +1 -1
  195. package/src/models/components/textcontentpartschema.ts +23 -19
  196. package/src/models/operations/createagentrequest.ts +42 -10
  197. package/src/models/operations/createchatcompletion.ts +12 -3
  198. package/src/models/operations/createcompletion.ts +12 -3
  199. package/src/models/operations/createdataset.ts +1 -1
  200. package/src/models/operations/createdatasetitem.ts +4 -4
  201. package/src/models/operations/createdatasource.ts +1 -1
  202. package/src/models/operations/createeval.ts +673 -3909
  203. package/src/models/operations/createimage.ts +12 -3
  204. package/src/models/operations/createprompt.ts +39 -27
  205. package/src/models/operations/creatererank.ts +12 -3
  206. package/src/models/operations/createtool.ts +22 -24
  207. package/src/models/operations/deploymentgetconfig.ts +16 -18
  208. package/src/models/operations/getallprompts.ts +9 -2
  209. package/src/models/operations/getalltools.ts +47 -53
  210. package/src/models/operations/getevals.ts +29 -3214
  211. package/src/models/operations/getoneprompt.ts +9 -2
  212. package/src/models/operations/getpromptversion.ts +9 -2
  213. package/src/models/operations/getv2humanevalsets.ts +2 -2
  214. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  215. package/src/models/operations/invokeeval.ts +18 -18
  216. package/src/models/operations/listagents.ts +18 -4
  217. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  218. package/src/models/operations/listdatasets.ts +1 -1
  219. package/src/models/operations/listdatasources.ts +1 -1
  220. package/src/models/operations/listpromptversions.ts +9 -2
  221. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  222. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  223. package/src/models/operations/postv2humanevalsets.ts +2 -2
  224. package/src/models/operations/retrieveagentrequest.ts +18 -4
  225. package/src/models/operations/retrievedatapoint.ts +4 -4
  226. package/src/models/operations/retrievedataset.ts +1 -1
  227. package/src/models/operations/retrievedatasource.ts +1 -1
  228. package/src/models/operations/retrievetool.ts +6 -6
  229. package/src/models/operations/runagent.ts +25 -7
  230. package/src/models/operations/streamrunagent.ts +25 -7
  231. package/src/models/operations/updateagent.ts +42 -10
  232. package/src/models/operations/updatedatapoint.ts +4 -4
  233. package/src/models/operations/updatedataset.ts +1 -1
  234. package/src/models/operations/updatedatasource.ts +1 -1
  235. package/src/models/operations/updateeval.ts +306 -3524
  236. package/src/models/operations/updateprompt.ts +21 -5
  237. package/src/models/operations/updatetool.ts +7 -7
  238. package/src/sdk/feedback.ts +2 -2
@@ -167,7 +167,8 @@ export type CreateImageTimeout = {
167
167
 
168
168
  export type CreateImagePlugins =
169
169
  | components.PIIRedactionPluginEn
170
- | components.PIIRedactionPluginNl;
170
+ | components.PIIRedactionPluginNl
171
+ | components.PIIRedactionPluginAuto;
171
172
 
172
173
  /**
173
174
  * Retry configuration for the request
@@ -364,7 +365,11 @@ export type CreateImageRequestBody = {
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.
365
366
  */
366
367
  plugins?:
367
- | Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
368
+ | Array<
369
+ | components.PIIRedactionPluginEn
370
+ | components.PIIRedactionPluginNl
371
+ | components.PIIRedactionPluginAuto
372
+ >
368
373
  | undefined;
369
374
  orq?: CreateImageOrq | undefined;
370
375
  };
@@ -619,7 +624,8 @@ export function createImageTimeoutToJSON(
619
624
  /** @internal */
620
625
  export type CreateImagePlugins$Outbound =
621
626
  | components.PIIRedactionPluginEn$Outbound
622
- | components.PIIRedactionPluginNl$Outbound;
627
+ | components.PIIRedactionPluginNl$Outbound
628
+ | components.PIIRedactionPluginAuto$Outbound;
623
629
 
624
630
  /** @internal */
625
631
  export const CreateImagePlugins$outboundSchema: z.ZodType<
@@ -629,6 +635,7 @@ export const CreateImagePlugins$outboundSchema: z.ZodType<
629
635
  > = z.union([
630
636
  components.PIIRedactionPluginEn$outboundSchema,
631
637
  components.PIIRedactionPluginNl$outboundSchema,
638
+ components.PIIRedactionPluginAuto$outboundSchema,
632
639
  ]);
633
640
 
634
641
  export function createImagePluginsToJSON(
@@ -921,6 +928,7 @@ export type CreateImageRequestBody$Outbound = {
921
928
  | Array<
922
929
  | components.PIIRedactionPluginEn$Outbound
923
930
  | components.PIIRedactionPluginNl$Outbound
931
+ | components.PIIRedactionPluginAuto$Outbound
924
932
  >
925
933
  | undefined;
926
934
  orq?: CreateImageOrq$Outbound | undefined;
@@ -957,6 +965,7 @@ export const CreateImageRequestBody$outboundSchema: z.ZodType<
957
965
  z.union([
958
966
  components.PIIRedactionPluginEn$outboundSchema,
959
967
  components.PIIRedactionPluginNl$outboundSchema,
968
+ components.PIIRedactionPluginAuto$outboundSchema,
960
969
  ]),
961
970
  ).optional(),
962
971
  orq: z.lazy(() => CreateImageOrq$outboundSchema).optional(),
@@ -634,7 +634,8 @@ export type CreatePromptGuardrails = {
634
634
 
635
635
  export type CreatePromptPlugins =
636
636
  | components.PIIRedactionPluginEn
637
- | components.PIIRedactionPluginNl;
637
+ | components.PIIRedactionPluginNl
638
+ | components.PIIRedactionPluginAuto;
638
639
 
639
640
  export type CreatePromptFallbacks = {
640
641
  /**
@@ -902,7 +903,11 @@ export type PromptInput = {
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.
903
904
  */
904
905
  plugins?:
905
- | Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
906
+ | Array<
907
+ | components.PIIRedactionPluginEn
908
+ | components.PIIRedactionPluginNl
909
+ | components.PIIRedactionPluginAuto
910
+ >
906
911
  | undefined;
907
912
  /**
908
913
  * Array of fallback models to use if primary model fails
@@ -1004,24 +1009,20 @@ export const CreatePromptFormat = {
1004
1009
  */
1005
1010
  export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
1006
1011
 
1007
- export const CreatePromptResponseFormat6 = {
1012
+ export const ResponseFormat6 = {
1008
1013
  Json: "json",
1009
1014
  Text: "text",
1010
1015
  Srt: "srt",
1011
1016
  VerboseJson: "verbose_json",
1012
1017
  Vtt: "vtt",
1013
1018
  } as const;
1014
- export type CreatePromptResponseFormat6 = ClosedEnum<
1015
- typeof CreatePromptResponseFormat6
1016
- >;
1019
+ export type ResponseFormat6 = ClosedEnum<typeof ResponseFormat6>;
1017
1020
 
1018
- export const CreatePromptResponseFormat5 = {
1021
+ export const ResponseFormat5 = {
1019
1022
  Url: "url",
1020
1023
  Base64Json: "base64_json",
1021
1024
  } as const;
1022
- export type CreatePromptResponseFormat5 = ClosedEnum<
1023
- typeof CreatePromptResponseFormat5
1024
- >;
1025
+ export type ResponseFormat5 = ClosedEnum<typeof ResponseFormat5>;
1025
1026
 
1026
1027
  export const CreatePromptResponseFormat4 = {
1027
1028
  Mp3: "mp3",
@@ -1104,8 +1105,8 @@ export type CreatePromptPromptsResponseResponseFormat =
1104
1105
  | CreatePromptResponseFormat2
1105
1106
  | CreatePromptResponseFormat3
1106
1107
  | CreatePromptResponseFormat4
1107
- | CreatePromptResponseFormat5
1108
- | CreatePromptResponseFormat6;
1108
+ | ResponseFormat5
1109
+ | ResponseFormat6;
1109
1110
 
1110
1111
  /**
1111
1112
  * Create a cache control breakpoint. Accepts only the value "ephemeral".
@@ -1312,8 +1313,8 @@ export type ModelParameters = {
1312
1313
  | CreatePromptResponseFormat2
1313
1314
  | CreatePromptResponseFormat3
1314
1315
  | CreatePromptResponseFormat4
1315
- | CreatePromptResponseFormat5
1316
- | CreatePromptResponseFormat6
1316
+ | ResponseFormat5
1317
+ | ResponseFormat6
1317
1318
  | null
1318
1319
  | undefined;
1319
1320
  /**
@@ -1791,7 +1792,8 @@ export type CreatePromptPromptsGuardrails = {
1791
1792
 
1792
1793
  export type CreatePromptPromptsPlugins =
1793
1794
  | components.PIIRedactionPluginEn
1794
- | components.PIIRedactionPluginNl;
1795
+ | components.PIIRedactionPluginNl
1796
+ | components.PIIRedactionPluginAuto;
1795
1797
 
1796
1798
  export type CreatePromptPromptsFallbacks = {
1797
1799
  /**
@@ -2384,7 +2386,11 @@ export type PromptField = {
2384
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.
2385
2387
  */
2386
2388
  plugins?:
2387
- | Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
2389
+ | Array<
2390
+ | components.PIIRedactionPluginEn
2391
+ | components.PIIRedactionPluginNl
2392
+ | components.PIIRedactionPluginAuto
2393
+ >
2388
2394
  | undefined;
2389
2395
  /**
2390
2396
  * Array of fallback models to use if primary model fails
@@ -3541,7 +3547,8 @@ export function createPromptGuardrailsToJSON(
3541
3547
  /** @internal */
3542
3548
  export type CreatePromptPlugins$Outbound =
3543
3549
  | components.PIIRedactionPluginEn$Outbound
3544
- | components.PIIRedactionPluginNl$Outbound;
3550
+ | components.PIIRedactionPluginNl$Outbound
3551
+ | components.PIIRedactionPluginAuto$Outbound;
3545
3552
 
3546
3553
  /** @internal */
3547
3554
  export const CreatePromptPlugins$outboundSchema: z.ZodType<
@@ -3551,6 +3558,7 @@ export const CreatePromptPlugins$outboundSchema: z.ZodType<
3551
3558
  > = z.union([
3552
3559
  components.PIIRedactionPluginEn$outboundSchema,
3553
3560
  components.PIIRedactionPluginNl$outboundSchema,
3561
+ components.PIIRedactionPluginAuto$outboundSchema,
3554
3562
  ]);
3555
3563
 
3556
3564
  export function createPromptPluginsToJSON(
@@ -3818,6 +3826,7 @@ export type PromptInput$Outbound = {
3818
3826
  | Array<
3819
3827
  | components.PIIRedactionPluginEn$Outbound
3820
3828
  | components.PIIRedactionPluginNl$Outbound
3829
+ | components.PIIRedactionPluginAuto$Outbound
3821
3830
  >
3822
3831
  | undefined;
3823
3832
  fallbacks?: Array<CreatePromptFallbacks$Outbound> | undefined;
@@ -3885,6 +3894,7 @@ export const PromptInput$outboundSchema: z.ZodType<
3885
3894
  z.union([
3886
3895
  components.PIIRedactionPluginEn$outboundSchema,
3887
3896
  components.PIIRedactionPluginNl$outboundSchema,
3897
+ components.PIIRedactionPluginAuto$outboundSchema,
3888
3898
  ]),
3889
3899
  ).optional(),
3890
3900
  fallbacks: z.array(z.lazy(() => CreatePromptFallbacks$outboundSchema))
@@ -3972,14 +3982,14 @@ export const CreatePromptFormat$inboundSchema: z.ZodNativeEnum<
3972
3982
  > = z.nativeEnum(CreatePromptFormat);
3973
3983
 
3974
3984
  /** @internal */
3975
- export const CreatePromptResponseFormat6$inboundSchema: z.ZodNativeEnum<
3976
- typeof CreatePromptResponseFormat6
3977
- > = z.nativeEnum(CreatePromptResponseFormat6);
3985
+ export const ResponseFormat6$inboundSchema: z.ZodNativeEnum<
3986
+ typeof ResponseFormat6
3987
+ > = z.nativeEnum(ResponseFormat6);
3978
3988
 
3979
3989
  /** @internal */
3980
- export const CreatePromptResponseFormat5$inboundSchema: z.ZodNativeEnum<
3981
- typeof CreatePromptResponseFormat5
3982
- > = z.nativeEnum(CreatePromptResponseFormat5);
3990
+ export const ResponseFormat5$inboundSchema: z.ZodNativeEnum<
3991
+ typeof ResponseFormat5
3992
+ > = z.nativeEnum(ResponseFormat5);
3983
3993
 
3984
3994
  /** @internal */
3985
3995
  export const CreatePromptResponseFormat4$inboundSchema: z.ZodNativeEnum<
@@ -4117,8 +4127,8 @@ export const CreatePromptPromptsResponseResponseFormat$inboundSchema: z.ZodType<
4117
4127
  z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
4118
4128
  z.lazy(() => CreatePromptResponseFormat3$inboundSchema),
4119
4129
  CreatePromptResponseFormat4$inboundSchema,
4120
- CreatePromptResponseFormat5$inboundSchema,
4121
- CreatePromptResponseFormat6$inboundSchema,
4130
+ ResponseFormat5$inboundSchema,
4131
+ ResponseFormat6$inboundSchema,
4122
4132
  ]);
4123
4133
 
4124
4134
  export function createPromptPromptsResponseResponseFormatFromJSON(
@@ -4226,8 +4236,8 @@ export const ModelParameters$inboundSchema: z.ZodType<
4226
4236
  z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
4227
4237
  z.lazy(() => CreatePromptResponseFormat3$inboundSchema),
4228
4238
  CreatePromptResponseFormat4$inboundSchema,
4229
- CreatePromptResponseFormat5$inboundSchema,
4230
- CreatePromptResponseFormat6$inboundSchema,
4239
+ ResponseFormat5$inboundSchema,
4240
+ ResponseFormat6$inboundSchema,
4231
4241
  ]),
4232
4242
  ).optional(),
4233
4243
  cacheControl: z.nullable(
@@ -4905,6 +4915,7 @@ export const CreatePromptPromptsPlugins$inboundSchema: z.ZodType<
4905
4915
  > = z.union([
4906
4916
  components.PIIRedactionPluginEn$inboundSchema,
4907
4917
  components.PIIRedactionPluginNl$inboundSchema,
4918
+ components.PIIRedactionPluginAuto$inboundSchema,
4908
4919
  ]);
4909
4920
 
4910
4921
  export function createPromptPromptsPluginsFromJSON(
@@ -5695,6 +5706,7 @@ export const PromptField$inboundSchema: z.ZodType<
5695
5706
  z.union([
5696
5707
  components.PIIRedactionPluginEn$inboundSchema,
5697
5708
  components.PIIRedactionPluginNl$inboundSchema,
5709
+ components.PIIRedactionPluginAuto$inboundSchema,
5698
5710
  ]),
5699
5711
  ).optional(),
5700
5712
  fallbacks: z.array(z.lazy(() => CreatePromptPromptsFallbacks$inboundSchema))
@@ -87,7 +87,8 @@ export type CreateRerankTimeout = {
87
87
 
88
88
  export type CreateRerankPlugins =
89
89
  | components.PIIRedactionPluginEn
90
- | components.PIIRedactionPluginNl;
90
+ | components.PIIRedactionPluginNl
91
+ | components.PIIRedactionPluginAuto;
91
92
 
92
93
  export type CreateRerankRouterRerankFallbacks = {
93
94
  /**
@@ -256,7 +257,11 @@ export type CreateRerankRequestBody = {
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.
257
258
  */
258
259
  plugins?:
259
- | Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
260
+ | Array<
261
+ | components.PIIRedactionPluginEn
262
+ | components.PIIRedactionPluginNl
263
+ | components.PIIRedactionPluginAuto
264
+ >
260
265
  | undefined;
261
266
  orq?: CreateRerankOrq | undefined;
262
267
  };
@@ -513,7 +518,8 @@ export function createRerankTimeoutToJSON(
513
518
  /** @internal */
514
519
  export type CreateRerankPlugins$Outbound =
515
520
  | components.PIIRedactionPluginEn$Outbound
516
- | components.PIIRedactionPluginNl$Outbound;
521
+ | components.PIIRedactionPluginNl$Outbound
522
+ | components.PIIRedactionPluginAuto$Outbound;
517
523
 
518
524
  /** @internal */
519
525
  export const CreateRerankPlugins$outboundSchema: z.ZodType<
@@ -523,6 +529,7 @@ export const CreateRerankPlugins$outboundSchema: z.ZodType<
523
529
  > = z.union([
524
530
  components.PIIRedactionPluginEn$outboundSchema,
525
531
  components.PIIRedactionPluginNl$outboundSchema,
532
+ components.PIIRedactionPluginAuto$outboundSchema,
526
533
  ]);
527
534
 
528
535
  export function createRerankPluginsToJSON(
@@ -788,6 +795,7 @@ export type CreateRerankRequestBody$Outbound = {
788
795
  | Array<
789
796
  | components.PIIRedactionPluginEn$Outbound
790
797
  | components.PIIRedactionPluginNl$Outbound
798
+ | components.PIIRedactionPluginAuto$Outbound
791
799
  >
792
800
  | undefined;
793
801
  orq?: CreateRerankOrq$Outbound | undefined;
@@ -816,6 +824,7 @@ export const CreateRerankRequestBody$outboundSchema: z.ZodType<
816
824
  z.union([
817
825
  components.PIIRedactionPluginEn$outboundSchema,
818
826
  components.PIIRedactionPluginNl$outboundSchema,
827
+ components.PIIRedactionPluginAuto$outboundSchema,
819
828
  ]),
820
829
  ).optional(),
821
830
  orq: z.lazy(() => CreateRerankOrq$outboundSchema).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_01KW90VP2147CAZ78XNVW6AGAS"),
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("01KW90VP20FTBYVQEA7N821FR6"),
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_01KW90VP1YSBJDEHZ3NZDRFB2Y"),
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_01KW90VP1WHKJKB0S9W46ANM7G"),
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_01KW90VP1TT2Y8Z8GH12J76WX8"),
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_01KW90VP1R9ZRFCWKRK2VYC6RE"),
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",
@@ -1283,20 +1283,20 @@ export type DeploymentGetConfigFormat = ClosedEnum<
1283
1283
  typeof DeploymentGetConfigFormat
1284
1284
  >;
1285
1285
 
1286
- export const ResponseFormat6 = {
1286
+ export const Six = {
1287
1287
  Json: "json",
1288
1288
  Text: "text",
1289
1289
  Srt: "srt",
1290
1290
  VerboseJson: "verbose_json",
1291
1291
  Vtt: "vtt",
1292
1292
  } as const;
1293
- export type ResponseFormat6 = ClosedEnum<typeof ResponseFormat6>;
1293
+ export type Six = ClosedEnum<typeof Six>;
1294
1294
 
1295
- export const ResponseFormat5 = {
1295
+ export const Five = {
1296
1296
  Url: "url",
1297
1297
  Base64Json: "base64_json",
1298
1298
  } as const;
1299
- export type ResponseFormat5 = ClosedEnum<typeof ResponseFormat5>;
1299
+ export type Five = ClosedEnum<typeof Five>;
1300
1300
 
1301
1301
  export const ResponseFormat4 = {
1302
1302
  Mp3: "mp3",
@@ -1365,8 +1365,8 @@ export type DeploymentGetConfigResponseFormat =
1365
1365
  | ResponseFormat2
1366
1366
  | ResponseFormat3
1367
1367
  | ResponseFormat4
1368
- | ResponseFormat5
1369
- | ResponseFormat6;
1368
+ | Five
1369
+ | Six;
1370
1370
 
1371
1371
  /**
1372
1372
  * Create a cache control breakpoint. Accepts only the value "ephemeral".
@@ -1568,8 +1568,8 @@ export type DeploymentGetConfigParameters = {
1568
1568
  | ResponseFormat2
1569
1569
  | ResponseFormat3
1570
1570
  | ResponseFormat4
1571
- | ResponseFormat5
1572
- | ResponseFormat6
1571
+ | Five
1572
+ | Six
1573
1573
  | null
1574
1574
  | undefined;
1575
1575
  /**
@@ -4281,14 +4281,12 @@ export const DeploymentGetConfigFormat$inboundSchema: z.ZodNativeEnum<
4281
4281
  > = z.nativeEnum(DeploymentGetConfigFormat);
4282
4282
 
4283
4283
  /** @internal */
4284
- export const ResponseFormat6$inboundSchema: z.ZodNativeEnum<
4285
- typeof ResponseFormat6
4286
- > = z.nativeEnum(ResponseFormat6);
4284
+ export const Six$inboundSchema: z.ZodNativeEnum<typeof Six> = z.nativeEnum(Six);
4287
4285
 
4288
4286
  /** @internal */
4289
- export const ResponseFormat5$inboundSchema: z.ZodNativeEnum<
4290
- typeof ResponseFormat5
4291
- > = z.nativeEnum(ResponseFormat5);
4287
+ export const Five$inboundSchema: z.ZodNativeEnum<typeof Five> = z.nativeEnum(
4288
+ Five,
4289
+ );
4292
4290
 
4293
4291
  /** @internal */
4294
4292
  export const ResponseFormat4$inboundSchema: z.ZodNativeEnum<
@@ -4417,8 +4415,8 @@ export const DeploymentGetConfigResponseFormat$inboundSchema: z.ZodType<
4417
4415
  z.lazy(() => ResponseFormat2$inboundSchema),
4418
4416
  z.lazy(() => ResponseFormat3$inboundSchema),
4419
4417
  ResponseFormat4$inboundSchema,
4420
- ResponseFormat5$inboundSchema,
4421
- ResponseFormat6$inboundSchema,
4418
+ Five$inboundSchema,
4419
+ Six$inboundSchema,
4422
4420
  ]);
4423
4421
 
4424
4422
  export function deploymentGetConfigResponseFormatFromJSON(
@@ -4510,8 +4508,8 @@ export const DeploymentGetConfigParameters$inboundSchema: z.ZodType<
4510
4508
  z.lazy(() => ResponseFormat2$inboundSchema),
4511
4509
  z.lazy(() => ResponseFormat3$inboundSchema),
4512
4510
  ResponseFormat4$inboundSchema,
4513
- ResponseFormat5$inboundSchema,
4514
- ResponseFormat6$inboundSchema,
4511
+ Five$inboundSchema,
4512
+ Six$inboundSchema,
4515
4513
  ]),
4516
4514
  ).optional(),
4517
4515
  cacheControl: z.nullable(
@@ -844,7 +844,8 @@ export type GetAllPromptsGuardrails = {
844
844
 
845
845
  export type GetAllPromptsPlugins =
846
846
  | components.PIIRedactionPluginEn
847
- | components.PIIRedactionPluginNl;
847
+ | components.PIIRedactionPluginNl
848
+ | components.PIIRedactionPluginAuto;
848
849
 
849
850
  export type GetAllPromptsFallbacks = {
850
851
  /**
@@ -1430,7 +1431,11 @@ export type GetAllPromptsPromptField = {
1430
1431
  * 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.
1431
1432
  */
1432
1433
  plugins?:
1433
- | Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
1434
+ | Array<
1435
+ | components.PIIRedactionPluginEn
1436
+ | components.PIIRedactionPluginNl
1437
+ | components.PIIRedactionPluginAuto
1438
+ >
1434
1439
  | undefined;
1435
1440
  /**
1436
1441
  * Array of fallback models to use if primary model fails
@@ -2519,6 +2524,7 @@ export const GetAllPromptsPlugins$inboundSchema: z.ZodType<
2519
2524
  > = z.union([
2520
2525
  components.PIIRedactionPluginEn$inboundSchema,
2521
2526
  components.PIIRedactionPluginNl$inboundSchema,
2527
+ components.PIIRedactionPluginAuto$inboundSchema,
2522
2528
  ]);
2523
2529
 
2524
2530
  export function getAllPromptsPluginsFromJSON(
@@ -3260,6 +3266,7 @@ export const GetAllPromptsPromptField$inboundSchema: z.ZodType<
3260
3266
  z.union([
3261
3267
  components.PIIRedactionPluginEn$inboundSchema,
3262
3268
  components.PIIRedactionPluginNl$inboundSchema,
3269
+ components.PIIRedactionPluginAuto$inboundSchema,
3263
3270
  ]),
3264
3271
  ).optional(),
3265
3272
  fallbacks: z.array(z.lazy(() => GetAllPromptsFallbacks$inboundSchema))