@orq-ai/node 4.15.0-rc.21 → 4.15.0-rc.22
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.
- package/README.md +30 -28
- package/funcs/piiCapabilities.d.ts +17 -0
- package/funcs/piiCapabilities.d.ts.map +1 -0
- package/funcs/piiCapabilities.js +105 -0
- package/funcs/piiCapabilities.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agentstartedstreamingevent.d.ts +13 -1
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentstartedstreamingevent.js +2 -0
- package/models/components/agentstartedstreamingevent.js.map +1 -1
- package/models/components/capabilitiesresponse.d.ts +62 -0
- package/models/components/capabilitiesresponse.d.ts.map +1 -0
- package/models/components/capabilitiesresponse.js +68 -0
- package/models/components/capabilitiesresponse.js.map +1 -0
- package/models/components/detectrequest.d.ts +48 -0
- package/models/components/detectrequest.d.ts.map +1 -1
- package/models/components/detectrequest.js +4 -0
- package/models/components/detectrequest.js.map +1 -1
- package/models/components/entitylist.d.ts +16 -0
- package/models/components/entitylist.d.ts.map +1 -0
- package/models/components/entitylist.js +50 -0
- package/models/components/entitylist.js.map +1 -0
- package/models/components/guardrailruleplugin.d.ts +25 -0
- package/models/components/guardrailruleplugin.d.ts.map +1 -1
- package/models/components/guardrailruleplugin.js +6 -0
- package/models/components/guardrailruleplugin.js.map +1 -1
- package/models/components/index.d.ts +3 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -3
- package/models/components/index.js.map +1 -1
- package/models/components/piiredactionplugin.d.ts +84 -0
- package/models/components/piiredactionplugin.d.ts.map +1 -0
- package/models/components/piiredactionplugin.js +103 -0
- package/models/components/piiredactionplugin.js.map +1 -0
- package/models/components/publicplugin.d.ts +17 -16
- package/models/components/publicplugin.d.ts.map +1 -1
- package/models/components/publicplugin.js +5 -11
- package/models/components/publicplugin.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/redactrequest.d.ts +48 -0
- package/models/components/redactrequest.d.ts.map +1 -1
- package/models/components/redactrequest.js +8 -0
- package/models/components/redactrequest.js.map +1 -1
- package/models/components/responsehealingplugin.d.ts +2 -17
- package/models/components/responsehealingplugin.d.ts.map +1 -1
- package/models/components/responsehealingplugin.js +3 -13
- package/models/components/responsehealingplugin.js.map +1 -1
- package/models/components/routingruleplugin.d.ts +25 -0
- package/models/components/routingruleplugin.d.ts.map +1 -1
- package/models/components/routingruleplugin.js +6 -0
- package/models/components/routingruleplugin.js.map +1 -1
- package/models/components/tracescrubbingplugin.d.ts +2 -16
- package/models/components/tracescrubbingplugin.d.ts.map +1 -1
- package/models/components/tracescrubbingplugin.js +3 -13
- package/models/components/tracescrubbingplugin.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +67 -13
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +20 -32
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +12 -4
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +4 -8
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +2 -8
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +3 -17
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createimage.d.ts +2 -8
- package/models/operations/createimage.d.ts.map +1 -1
- package/models/operations/createimage.js +2 -16
- package/models/operations/createimage.js.map +1 -1
- package/models/operations/createprompt.d.ts +18 -6
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +8 -16
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/creatererank.d.ts +2 -8
- package/models/operations/creatererank.d.ts.map +1 -1
- package/models/operations/creatererank.js +2 -16
- package/models/operations/creatererank.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getallprompts.d.ts +6 -2
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +4 -8
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getoneprompt.d.ts +6 -2
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +4 -8
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +6 -2
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +4 -8
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listagents.d.ts +25 -5
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +10 -16
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listpromptversions.d.ts +6 -2
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +4 -8
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +25 -5
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +10 -16
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.d.ts +42 -8
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +11 -17
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +42 -8
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +11 -17
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +67 -13
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +20 -32
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updateprompt.d.ts +18 -6
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +8 -16
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/sdk/pii.d.ts +7 -0
- package/sdk/pii.d.ts.map +1 -1
- package/sdk/pii.js +10 -0
- package/sdk/pii.js.map +1 -1
- package/src/funcs/piiCapabilities.ts +144 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentstartedstreamingevent.ts +11 -1
- package/src/models/components/capabilitiesresponse.ts +96 -0
- package/src/models/components/detectrequest.ts +48 -0
- package/src/models/components/entitylist.ts +37 -0
- package/src/models/components/guardrailruleplugin.ts +27 -0
- package/src/models/components/index.ts +3 -3
- package/src/models/components/piiredactionplugin.ts +143 -0
- package/src/models/components/publicplugin.ts +17 -21
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/redactrequest.ts +52 -0
- package/src/models/components/responsehealingplugin.ts +4 -27
- package/src/models/components/routingruleplugin.ts +27 -0
- package/src/models/components/tracescrubbingplugin.ts +4 -24
- package/src/models/operations/createagentrequest.ts +85 -87
- package/src/models/operations/createchatcompletion.ts +18 -26
- package/src/models/operations/createcompletion.ts +3 -51
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createimage.ts +3 -51
- package/src/models/operations/createprompt.ts +31 -43
- package/src/models/operations/creatererank.ts +3 -51
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getallprompts.ts +13 -17
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getoneprompt.ts +13 -17
- package/src/models/operations/getpromptversion.ts +13 -17
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listagents.ts +37 -35
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listpromptversions.ts +13 -17
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +37 -35
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +49 -53
- package/src/models/operations/streamrunagent.ts +49 -53
- package/src/models/operations/updateagent.ts +85 -87
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updateprompt.ts +31 -43
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/pii.ts +16 -0
- package/models/components/piiredactionpluginauto.d.ts +0 -126
- package/models/components/piiredactionpluginauto.d.ts.map +0 -1
- package/models/components/piiredactionpluginauto.js +0 -156
- package/models/components/piiredactionpluginauto.js.map +0 -1
- package/models/components/piiredactionpluginen.d.ts +0 -145
- package/models/components/piiredactionpluginen.d.ts.map +0 -1
- package/models/components/piiredactionpluginen.js +0 -167
- package/models/components/piiredactionpluginen.js.map +0 -1
- package/models/components/piiredactionpluginnl.d.ts +0 -137
- package/models/components/piiredactionpluginnl.d.ts.map +0 -1
- package/models/components/piiredactionpluginnl.js +0 -158
- package/models/components/piiredactionpluginnl.js.map +0 -1
- package/src/models/components/piiredactionpluginauto.ts +0 -185
- package/src/models/components/piiredactionpluginen.ts +0 -222
- package/src/models/components/piiredactionpluginnl.ts +0 -218
|
@@ -99,11 +99,6 @@ export type CreateCompletionThinking =
|
|
|
99
99
|
| components.ThinkingConfigEnabledSchema
|
|
100
100
|
| components.ThinkingConfigAdaptiveSchema;
|
|
101
101
|
|
|
102
|
-
export type CreateCompletionPlugins =
|
|
103
|
-
| components.PIIRedactionPluginEn
|
|
104
|
-
| components.PIIRedactionPluginNl
|
|
105
|
-
| components.PIIRedactionPluginAuto;
|
|
106
|
-
|
|
107
102
|
/**
|
|
108
103
|
* Retry configuration for the request
|
|
109
104
|
*/
|
|
@@ -768,13 +763,7 @@ export type CreateCompletionRequestBody = {
|
|
|
768
763
|
/**
|
|
769
764
|
* 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.
|
|
770
765
|
*/
|
|
771
|
-
plugins?:
|
|
772
|
-
| Array<
|
|
773
|
-
| components.PIIRedactionPluginEn
|
|
774
|
-
| components.PIIRedactionPluginNl
|
|
775
|
-
| components.PIIRedactionPluginAuto
|
|
776
|
-
>
|
|
777
|
-
| undefined;
|
|
766
|
+
plugins?: Array<components.PIIRedactionPlugin> | undefined;
|
|
778
767
|
/**
|
|
779
768
|
* Leverage Orq's intelligent routing capabilities to enhance your AI application with enterprise-grade reliability and observability. Orq provides automatic request management including retries on failures, model fallbacks for high availability, identity-level analytics tracking, conversation threading, and dynamic prompt templating with variable substitution.
|
|
780
769
|
*
|
|
@@ -1241,31 +1230,6 @@ export function createCompletionThinkingToJSON(
|
|
|
1241
1230
|
);
|
|
1242
1231
|
}
|
|
1243
1232
|
|
|
1244
|
-
/** @internal */
|
|
1245
|
-
export type CreateCompletionPlugins$Outbound =
|
|
1246
|
-
| components.PIIRedactionPluginEn$Outbound
|
|
1247
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
1248
|
-
| components.PIIRedactionPluginAuto$Outbound;
|
|
1249
|
-
|
|
1250
|
-
/** @internal */
|
|
1251
|
-
export const CreateCompletionPlugins$outboundSchema: z.ZodType<
|
|
1252
|
-
CreateCompletionPlugins$Outbound,
|
|
1253
|
-
z.ZodTypeDef,
|
|
1254
|
-
CreateCompletionPlugins
|
|
1255
|
-
> = z.union([
|
|
1256
|
-
components.PIIRedactionPluginEn$outboundSchema,
|
|
1257
|
-
components.PIIRedactionPluginNl$outboundSchema,
|
|
1258
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
1259
|
-
]);
|
|
1260
|
-
|
|
1261
|
-
export function createCompletionPluginsToJSON(
|
|
1262
|
-
createCompletionPlugins: CreateCompletionPlugins,
|
|
1263
|
-
): string {
|
|
1264
|
-
return JSON.stringify(
|
|
1265
|
-
CreateCompletionPlugins$outboundSchema.parse(createCompletionPlugins),
|
|
1266
|
-
);
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
1233
|
/** @internal */
|
|
1270
1234
|
export type CreateCompletionRouterCompletionsRetry$Outbound = {
|
|
1271
1235
|
count: number;
|
|
@@ -2913,13 +2877,7 @@ export type CreateCompletionRequestBody$Outbound = {
|
|
|
2913
2877
|
| components.ThinkingConfigAdaptiveSchema$Outbound
|
|
2914
2878
|
| null
|
|
2915
2879
|
| undefined;
|
|
2916
|
-
plugins?:
|
|
2917
|
-
| Array<
|
|
2918
|
-
| components.PIIRedactionPluginEn$Outbound
|
|
2919
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
2920
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
2921
|
-
>
|
|
2922
|
-
| undefined;
|
|
2880
|
+
plugins?: Array<components.PIIRedactionPlugin$Outbound> | undefined;
|
|
2923
2881
|
orq?: CreateCompletionOrq$Outbound | undefined;
|
|
2924
2882
|
stream: boolean;
|
|
2925
2883
|
};
|
|
@@ -2957,13 +2915,7 @@ export const CreateCompletionRequestBody$outboundSchema: z.ZodType<
|
|
|
2957
2915
|
components.ThinkingConfigAdaptiveSchema$outboundSchema,
|
|
2958
2916
|
]),
|
|
2959
2917
|
).optional(),
|
|
2960
|
-
plugins: z.array(
|
|
2961
|
-
z.union([
|
|
2962
|
-
components.PIIRedactionPluginEn$outboundSchema,
|
|
2963
|
-
components.PIIRedactionPluginNl$outboundSchema,
|
|
2964
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
2965
|
-
]),
|
|
2966
|
-
).optional(),
|
|
2918
|
+
plugins: z.array(components.PIIRedactionPlugin$outboundSchema).optional(),
|
|
2967
2919
|
orq: z.lazy(() => CreateCompletionOrq$outboundSchema).optional(),
|
|
2968
2920
|
stream: z.boolean().default(false),
|
|
2969
2921
|
}).transform((v) => {
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-09-
|
|
141
|
+
"2026-09-04T10:08:50.814Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2739,7 +2739,7 @@ export const Evaluations4$inboundSchema: z.ZodType<
|
|
|
2739
2739
|
explanation: z.string().optional(),
|
|
2740
2740
|
reviewed_by_id: z.string(),
|
|
2741
2741
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2742
|
-
"2026-09-
|
|
2742
|
+
"2026-09-04T10:08:59.607Z",
|
|
2743
2743
|
).transform(v => new Date(v)),
|
|
2744
2744
|
type: z.literal("string_array"),
|
|
2745
2745
|
values: z.array(z.string()),
|
|
@@ -2829,7 +2829,7 @@ export const CreateDatasetItemEvaluations3$inboundSchema: z.ZodType<
|
|
|
2829
2829
|
explanation: z.string().optional(),
|
|
2830
2830
|
reviewed_by_id: z.string(),
|
|
2831
2831
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2832
|
-
"2026-09-
|
|
2832
|
+
"2026-09-04T10:08:59.607Z",
|
|
2833
2833
|
).transform(v => new Date(v)),
|
|
2834
2834
|
type: z.literal("boolean"),
|
|
2835
2835
|
value: z.boolean(),
|
|
@@ -2914,7 +2914,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2914
2914
|
explanation: z.string().optional(),
|
|
2915
2915
|
reviewed_by_id: z.string(),
|
|
2916
2916
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2917
|
-
"2026-09-
|
|
2917
|
+
"2026-09-04T10:08:59.607Z",
|
|
2918
2918
|
).transform(v => new Date(v)),
|
|
2919
2919
|
type: z.literal("number"),
|
|
2920
2920
|
value: z.number(),
|
|
@@ -3000,7 +3000,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
3000
3000
|
explanation: z.string().optional(),
|
|
3001
3001
|
reviewed_by_id: z.string(),
|
|
3002
3002
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3003
|
-
"2026-09-
|
|
3003
|
+
"2026-09-04T10:08:59.606Z",
|
|
3004
3004
|
).transform(v => new Date(v)),
|
|
3005
3005
|
type: z.literal("string"),
|
|
3006
3006
|
value: z.string(),
|
|
@@ -3087,7 +3087,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
3087
3087
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3088
3088
|
.optional(),
|
|
3089
3089
|
updated: z.string().datetime({ offset: true }).default(
|
|
3090
|
-
"2026-09-
|
|
3090
|
+
"2026-09-04T10:08:50.814Z",
|
|
3091
3091
|
).transform(v => new Date(v)),
|
|
3092
3092
|
}).transform((v) => {
|
|
3093
3093
|
return remap$(v, {
|
|
@@ -165,11 +165,6 @@ 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
|
-
|
|
173
168
|
/**
|
|
174
169
|
* Retry configuration for the request
|
|
175
170
|
*/
|
|
@@ -364,13 +359,7 @@ export type CreateImageRequestBody = {
|
|
|
364
359
|
/**
|
|
365
360
|
* 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
361
|
*/
|
|
367
|
-
plugins?:
|
|
368
|
-
| Array<
|
|
369
|
-
| components.PIIRedactionPluginEn
|
|
370
|
-
| components.PIIRedactionPluginNl
|
|
371
|
-
| components.PIIRedactionPluginAuto
|
|
372
|
-
>
|
|
373
|
-
| undefined;
|
|
362
|
+
plugins?: Array<components.PIIRedactionPlugin> | undefined;
|
|
374
363
|
orq?: CreateImageOrq | undefined;
|
|
375
364
|
};
|
|
376
365
|
|
|
@@ -621,31 +610,6 @@ export function createImageTimeoutToJSON(
|
|
|
621
610
|
);
|
|
622
611
|
}
|
|
623
612
|
|
|
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
|
-
|
|
649
613
|
/** @internal */
|
|
650
614
|
export type CreateImageRouterImagesGenerationsRetry$Outbound = {
|
|
651
615
|
count: number;
|
|
@@ -924,13 +888,7 @@ export type CreateImageRequestBody$Outbound = {
|
|
|
924
888
|
cache?: CreateImageCache$Outbound | undefined;
|
|
925
889
|
load_balancer?: CreateImageLoadBalancer1$Outbound | undefined;
|
|
926
890
|
timeout?: CreateImageTimeout$Outbound | undefined;
|
|
927
|
-
plugins?:
|
|
928
|
-
| Array<
|
|
929
|
-
| components.PIIRedactionPluginEn$Outbound
|
|
930
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
931
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
932
|
-
>
|
|
933
|
-
| undefined;
|
|
891
|
+
plugins?: Array<components.PIIRedactionPlugin$Outbound> | undefined;
|
|
934
892
|
orq?: CreateImageOrq$Outbound | undefined;
|
|
935
893
|
};
|
|
936
894
|
|
|
@@ -961,13 +919,7 @@ export const CreateImageRequestBody$outboundSchema: z.ZodType<
|
|
|
961
919
|
loadBalancer: z.lazy(() => CreateImageLoadBalancer1$outboundSchema)
|
|
962
920
|
.optional(),
|
|
963
921
|
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(),
|
|
922
|
+
plugins: z.array(components.PIIRedactionPlugin$outboundSchema).optional(),
|
|
971
923
|
orq: z.lazy(() => CreateImageOrq$outboundSchema).optional(),
|
|
972
924
|
}).transform((v) => {
|
|
973
925
|
return remap$(v, {
|
|
@@ -639,11 +639,9 @@ export type CreatePromptGuardrails = {
|
|
|
639
639
|
};
|
|
640
640
|
|
|
641
641
|
export type CreatePromptPlugins =
|
|
642
|
-
| components.
|
|
643
|
-
| components.
|
|
644
|
-
| components.TraceScrubbingPlugin
|
|
645
|
-
| components.PIIRedactionPluginAuto
|
|
646
|
-
| components.ResponseHealingPlugin;
|
|
642
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
643
|
+
| components.ResponseHealingPlugin
|
|
644
|
+
| components.TraceScrubbingPlugin;
|
|
647
645
|
|
|
648
646
|
export type CreatePromptFallbacks = {
|
|
649
647
|
/**
|
|
@@ -912,11 +910,9 @@ export type PromptInput = {
|
|
|
912
910
|
*/
|
|
913
911
|
plugins?:
|
|
914
912
|
| Array<
|
|
915
|
-
| components.
|
|
916
|
-
| components.PIIRedactionPluginNl
|
|
917
|
-
| components.TraceScrubbingPlugin
|
|
918
|
-
| components.PIIRedactionPluginAuto
|
|
913
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
919
914
|
| components.ResponseHealingPlugin
|
|
915
|
+
| components.TraceScrubbingPlugin
|
|
920
916
|
>
|
|
921
917
|
| undefined;
|
|
922
918
|
/**
|
|
@@ -1812,11 +1808,9 @@ export type CreatePromptPromptsGuardrails = {
|
|
|
1812
1808
|
};
|
|
1813
1809
|
|
|
1814
1810
|
export type CreatePromptPromptsPlugins =
|
|
1815
|
-
| components.
|
|
1816
|
-
| components.
|
|
1817
|
-
| components.TraceScrubbingPlugin
|
|
1818
|
-
| components.PIIRedactionPluginAuto
|
|
1819
|
-
| components.ResponseHealingPlugin;
|
|
1811
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
1812
|
+
| components.ResponseHealingPlugin
|
|
1813
|
+
| components.TraceScrubbingPlugin;
|
|
1820
1814
|
|
|
1821
1815
|
export type CreatePromptPromptsFallbacks = {
|
|
1822
1816
|
/**
|
|
@@ -2414,11 +2408,9 @@ export type PromptField = {
|
|
|
2414
2408
|
*/
|
|
2415
2409
|
plugins?:
|
|
2416
2410
|
| Array<
|
|
2417
|
-
| components.
|
|
2418
|
-
| components.PIIRedactionPluginNl
|
|
2419
|
-
| components.TraceScrubbingPlugin
|
|
2420
|
-
| components.PIIRedactionPluginAuto
|
|
2411
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
2421
2412
|
| components.ResponseHealingPlugin
|
|
2413
|
+
| components.TraceScrubbingPlugin
|
|
2422
2414
|
>
|
|
2423
2415
|
| undefined;
|
|
2424
2416
|
/**
|
|
@@ -3578,11 +3570,9 @@ export function createPromptGuardrailsToJSON(
|
|
|
3578
3570
|
|
|
3579
3571
|
/** @internal */
|
|
3580
3572
|
export type CreatePromptPlugins$Outbound =
|
|
3581
|
-
| components.
|
|
3582
|
-
| components.
|
|
3583
|
-
| components.TraceScrubbingPlugin$Outbound
|
|
3584
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
3585
|
-
| components.ResponseHealingPlugin$Outbound;
|
|
3573
|
+
| (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
|
|
3574
|
+
| components.ResponseHealingPlugin$Outbound
|
|
3575
|
+
| components.TraceScrubbingPlugin$Outbound;
|
|
3586
3576
|
|
|
3587
3577
|
/** @internal */
|
|
3588
3578
|
export const CreatePromptPlugins$outboundSchema: z.ZodType<
|
|
@@ -3590,11 +3580,11 @@ export const CreatePromptPlugins$outboundSchema: z.ZodType<
|
|
|
3590
3580
|
z.ZodTypeDef,
|
|
3591
3581
|
CreatePromptPlugins
|
|
3592
3582
|
> = z.union([
|
|
3593
|
-
components.
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3583
|
+
components.PIIRedactionPlugin$outboundSchema.and(
|
|
3584
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
3585
|
+
),
|
|
3597
3586
|
components.ResponseHealingPlugin$outboundSchema,
|
|
3587
|
+
components.TraceScrubbingPlugin$outboundSchema,
|
|
3598
3588
|
]);
|
|
3599
3589
|
|
|
3600
3590
|
export function createPromptPluginsToJSON(
|
|
@@ -3860,11 +3850,9 @@ export type PromptInput$Outbound = {
|
|
|
3860
3850
|
guardrails?: Array<CreatePromptGuardrails$Outbound> | undefined;
|
|
3861
3851
|
plugins?:
|
|
3862
3852
|
| Array<
|
|
3863
|
-
| components.
|
|
3864
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
3865
|
-
| components.TraceScrubbingPlugin$Outbound
|
|
3866
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
3853
|
+
| (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
|
|
3867
3854
|
| components.ResponseHealingPlugin$Outbound
|
|
3855
|
+
| components.TraceScrubbingPlugin$Outbound
|
|
3868
3856
|
>
|
|
3869
3857
|
| undefined;
|
|
3870
3858
|
fallbacks?: Array<CreatePromptFallbacks$Outbound> | undefined;
|
|
@@ -3930,11 +3918,11 @@ export const PromptInput$outboundSchema: z.ZodType<
|
|
|
3930
3918
|
.optional(),
|
|
3931
3919
|
plugins: z.array(
|
|
3932
3920
|
z.union([
|
|
3933
|
-
components.
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3921
|
+
components.PIIRedactionPlugin$outboundSchema.and(
|
|
3922
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
3923
|
+
),
|
|
3937
3924
|
components.ResponseHealingPlugin$outboundSchema,
|
|
3925
|
+
components.TraceScrubbingPlugin$outboundSchema,
|
|
3938
3926
|
]),
|
|
3939
3927
|
).optional(),
|
|
3940
3928
|
fallbacks: z.array(z.lazy(() => CreatePromptFallbacks$outboundSchema))
|
|
@@ -4952,11 +4940,11 @@ export const CreatePromptPromptsPlugins$inboundSchema: z.ZodType<
|
|
|
4952
4940
|
z.ZodTypeDef,
|
|
4953
4941
|
unknown
|
|
4954
4942
|
> = z.union([
|
|
4955
|
-
components.
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
4943
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
4944
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
4945
|
+
),
|
|
4959
4946
|
components.ResponseHealingPlugin$inboundSchema,
|
|
4947
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
4960
4948
|
]);
|
|
4961
4949
|
|
|
4962
4950
|
export function createPromptPromptsPluginsFromJSON(
|
|
@@ -5747,11 +5735,11 @@ export const PromptField$inboundSchema: z.ZodType<
|
|
|
5747
5735
|
.optional(),
|
|
5748
5736
|
plugins: z.array(
|
|
5749
5737
|
z.union([
|
|
5750
|
-
components.
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
5738
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
5739
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
5740
|
+
),
|
|
5754
5741
|
components.ResponseHealingPlugin$inboundSchema,
|
|
5742
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
5755
5743
|
]),
|
|
5756
5744
|
).optional(),
|
|
5757
5745
|
fallbacks: z.array(z.lazy(() => CreatePromptPromptsFallbacks$inboundSchema))
|
|
@@ -85,11 +85,6 @@ 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
|
-
|
|
93
88
|
export type CreateRerankRouterRerankFallbacks = {
|
|
94
89
|
/**
|
|
95
90
|
* Fallback model identifier
|
|
@@ -260,13 +255,7 @@ export type CreateRerankRequestBody = {
|
|
|
260
255
|
/**
|
|
261
256
|
* 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.
|
|
262
257
|
*/
|
|
263
|
-
plugins?:
|
|
264
|
-
| Array<
|
|
265
|
-
| components.PIIRedactionPluginEn
|
|
266
|
-
| components.PIIRedactionPluginNl
|
|
267
|
-
| components.PIIRedactionPluginAuto
|
|
268
|
-
>
|
|
269
|
-
| undefined;
|
|
258
|
+
plugins?: Array<components.PIIRedactionPlugin> | undefined;
|
|
270
259
|
orq?: CreateRerankOrq | undefined;
|
|
271
260
|
};
|
|
272
261
|
|
|
@@ -519,31 +508,6 @@ export function createRerankTimeoutToJSON(
|
|
|
519
508
|
);
|
|
520
509
|
}
|
|
521
510
|
|
|
522
|
-
/** @internal */
|
|
523
|
-
export type CreateRerankPlugins$Outbound =
|
|
524
|
-
| components.PIIRedactionPluginEn$Outbound
|
|
525
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
526
|
-
| components.PIIRedactionPluginAuto$Outbound;
|
|
527
|
-
|
|
528
|
-
/** @internal */
|
|
529
|
-
export const CreateRerankPlugins$outboundSchema: z.ZodType<
|
|
530
|
-
CreateRerankPlugins$Outbound,
|
|
531
|
-
z.ZodTypeDef,
|
|
532
|
-
CreateRerankPlugins
|
|
533
|
-
> = z.union([
|
|
534
|
-
components.PIIRedactionPluginEn$outboundSchema,
|
|
535
|
-
components.PIIRedactionPluginNl$outboundSchema,
|
|
536
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
537
|
-
]);
|
|
538
|
-
|
|
539
|
-
export function createRerankPluginsToJSON(
|
|
540
|
-
createRerankPlugins: CreateRerankPlugins,
|
|
541
|
-
): string {
|
|
542
|
-
return JSON.stringify(
|
|
543
|
-
CreateRerankPlugins$outboundSchema.parse(createRerankPlugins),
|
|
544
|
-
);
|
|
545
|
-
}
|
|
546
|
-
|
|
547
511
|
/** @internal */
|
|
548
512
|
export type CreateRerankRouterRerankFallbacks$Outbound = {
|
|
549
513
|
model: string;
|
|
@@ -796,13 +760,7 @@ export type CreateRerankRequestBody$Outbound = {
|
|
|
796
760
|
cache?: CreateRerankCache$Outbound | undefined;
|
|
797
761
|
load_balancer?: CreateRerankLoadBalancer1$Outbound | undefined;
|
|
798
762
|
timeout?: CreateRerankTimeout$Outbound | undefined;
|
|
799
|
-
plugins?:
|
|
800
|
-
| Array<
|
|
801
|
-
| components.PIIRedactionPluginEn$Outbound
|
|
802
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
803
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
804
|
-
>
|
|
805
|
-
| undefined;
|
|
763
|
+
plugins?: Array<components.PIIRedactionPlugin$Outbound> | undefined;
|
|
806
764
|
orq?: CreateRerankOrq$Outbound | undefined;
|
|
807
765
|
};
|
|
808
766
|
|
|
@@ -826,13 +784,7 @@ export const CreateRerankRequestBody$outboundSchema: z.ZodType<
|
|
|
826
784
|
loadBalancer: z.lazy(() => CreateRerankLoadBalancer1$outboundSchema)
|
|
827
785
|
.optional(),
|
|
828
786
|
timeout: z.lazy(() => CreateRerankTimeout$outboundSchema).optional(),
|
|
829
|
-
plugins: z.array(
|
|
830
|
-
z.union([
|
|
831
|
-
components.PIIRedactionPluginEn$outboundSchema,
|
|
832
|
-
components.PIIRedactionPluginNl$outboundSchema,
|
|
833
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
834
|
-
]),
|
|
835
|
-
).optional(),
|
|
787
|
+
plugins: z.array(components.PIIRedactionPlugin$outboundSchema).optional(),
|
|
836
788
|
orq: z.lazy(() => CreateRerankOrq$outboundSchema).optional(),
|
|
837
789
|
}).transform((v) => {
|
|
838
790
|
return remap$(v, {
|
|
@@ -1573,7 +1573,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1573
1573
|
z.ZodTypeDef,
|
|
1574
1574
|
unknown
|
|
1575
1575
|
> = z.object({
|
|
1576
|
-
_id: z.string().default("
|
|
1576
|
+
_id: z.string().default("tool_01M1NY975J01TPN71QTA1SWNX1"),
|
|
1577
1577
|
path: z.string(),
|
|
1578
1578
|
key: z.string(),
|
|
1579
1579
|
display_name: z.string().optional(),
|
|
@@ -1759,7 +1759,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1759
1759
|
z.ZodTypeDef,
|
|
1760
1760
|
unknown
|
|
1761
1761
|
> = z.object({
|
|
1762
|
-
_id: z.string().default("
|
|
1762
|
+
_id: z.string().default("tool_01M1NY975HYT4FK7NBZ17XWY1A"),
|
|
1763
1763
|
path: z.string(),
|
|
1764
1764
|
key: z.string(),
|
|
1765
1765
|
display_name: z.string().optional(),
|
|
@@ -1852,7 +1852,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1852
1852
|
z.ZodTypeDef,
|
|
1853
1853
|
unknown
|
|
1854
1854
|
> = z.object({
|
|
1855
|
-
_id: z.string().default("
|
|
1855
|
+
_id: z.string().default("tool_01M1NY975GKSDCCJ081QBBTD0G"),
|
|
1856
1856
|
path: z.string(),
|
|
1857
1857
|
key: z.string(),
|
|
1858
1858
|
display_name: z.string().optional(),
|
|
@@ -1953,7 +1953,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1953
1953
|
z.ZodTypeDef,
|
|
1954
1954
|
unknown
|
|
1955
1955
|
> = z.object({
|
|
1956
|
-
_id: z.string().default("
|
|
1956
|
+
_id: z.string().default("tool_01M1NY975FYM0MSG7CQC3BMFJX"),
|
|
1957
1957
|
path: z.string(),
|
|
1958
1958
|
key: z.string(),
|
|
1959
1959
|
display_name: z.string().optional(),
|
|
@@ -854,11 +854,9 @@ export type GetAllPromptsGuardrails = {
|
|
|
854
854
|
};
|
|
855
855
|
|
|
856
856
|
export type GetAllPromptsPlugins =
|
|
857
|
-
| components.
|
|
858
|
-
| components.
|
|
859
|
-
| components.TraceScrubbingPlugin
|
|
860
|
-
| components.PIIRedactionPluginAuto
|
|
861
|
-
| components.ResponseHealingPlugin;
|
|
857
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
858
|
+
| components.ResponseHealingPlugin
|
|
859
|
+
| components.TraceScrubbingPlugin;
|
|
862
860
|
|
|
863
861
|
export type GetAllPromptsFallbacks = {
|
|
864
862
|
/**
|
|
@@ -1449,11 +1447,9 @@ export type GetAllPromptsPromptField = {
|
|
|
1449
1447
|
*/
|
|
1450
1448
|
plugins?:
|
|
1451
1449
|
| Array<
|
|
1452
|
-
| components.
|
|
1453
|
-
| components.PIIRedactionPluginNl
|
|
1454
|
-
| components.TraceScrubbingPlugin
|
|
1455
|
-
| components.PIIRedactionPluginAuto
|
|
1450
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
1456
1451
|
| components.ResponseHealingPlugin
|
|
1452
|
+
| components.TraceScrubbingPlugin
|
|
1457
1453
|
>
|
|
1458
1454
|
| undefined;
|
|
1459
1455
|
/**
|
|
@@ -2541,11 +2537,11 @@ export const GetAllPromptsPlugins$inboundSchema: z.ZodType<
|
|
|
2541
2537
|
z.ZodTypeDef,
|
|
2542
2538
|
unknown
|
|
2543
2539
|
> = z.union([
|
|
2544
|
-
components.
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2540
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
2541
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
2542
|
+
),
|
|
2548
2543
|
components.ResponseHealingPlugin$inboundSchema,
|
|
2544
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
2549
2545
|
]);
|
|
2550
2546
|
|
|
2551
2547
|
export function getAllPromptsPluginsFromJSON(
|
|
@@ -3287,11 +3283,11 @@ export const GetAllPromptsPromptField$inboundSchema: z.ZodType<
|
|
|
3287
3283
|
.optional(),
|
|
3288
3284
|
plugins: z.array(
|
|
3289
3285
|
z.union([
|
|
3290
|
-
components.
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
3286
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
3287
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
3288
|
+
),
|
|
3294
3289
|
components.ResponseHealingPlugin$inboundSchema,
|
|
3290
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
3295
3291
|
]),
|
|
3296
3292
|
).optional(),
|
|
3297
3293
|
fallbacks: z.array(z.lazy(() => GetAllPromptsFallbacks$inboundSchema))
|
|
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
639
639
|
z.ZodTypeDef,
|
|
640
640
|
unknown
|
|
641
641
|
> = z.object({
|
|
642
|
-
_id: z.string().default("
|
|
642
|
+
_id: z.string().default("tool_01M1NY975BG38P9H71PQTCXESX"),
|
|
643
643
|
path: z.string(),
|
|
644
644
|
key: z.string(),
|
|
645
645
|
display_name: z.string().optional(),
|
|
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
821
821
|
z.ZodTypeDef,
|
|
822
822
|
unknown
|
|
823
823
|
> = z.object({
|
|
824
|
-
_id: z.string().default("
|
|
824
|
+
_id: z.string().default("tool_01M1NY975AJSWXYESXNFA8Q3VJ"),
|
|
825
825
|
path: z.string(),
|
|
826
826
|
key: z.string(),
|
|
827
827
|
display_name: z.string().optional(),
|
|
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
914
914
|
z.ZodTypeDef,
|
|
915
915
|
unknown
|
|
916
916
|
> = z.object({
|
|
917
|
-
_id: z.string().default("
|
|
917
|
+
_id: z.string().default("tool_01M1NY9759D1TF59H7Z0FD1STZ"),
|
|
918
918
|
path: z.string(),
|
|
919
919
|
key: z.string(),
|
|
920
920
|
display_name: z.string().optional(),
|
|
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1012
1012
|
z.ZodTypeDef,
|
|
1013
1013
|
unknown
|
|
1014
1014
|
> = z.object({
|
|
1015
|
-
_id: z.string().default("
|
|
1015
|
+
_id: z.string().default("tool_01M1NY9757E9JK46SEHYTAPT0A"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -836,11 +836,9 @@ export type GetOnePromptGuardrails = {
|
|
|
836
836
|
};
|
|
837
837
|
|
|
838
838
|
export type GetOnePromptPlugins =
|
|
839
|
-
| components.
|
|
840
|
-
| components.
|
|
841
|
-
| components.TraceScrubbingPlugin
|
|
842
|
-
| components.PIIRedactionPluginAuto
|
|
843
|
-
| components.ResponseHealingPlugin;
|
|
839
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
840
|
+
| components.ResponseHealingPlugin
|
|
841
|
+
| components.TraceScrubbingPlugin;
|
|
844
842
|
|
|
845
843
|
export type GetOnePromptFallbacks = {
|
|
846
844
|
/**
|
|
@@ -1431,11 +1429,9 @@ export type GetOnePromptPromptField = {
|
|
|
1431
1429
|
*/
|
|
1432
1430
|
plugins?:
|
|
1433
1431
|
| Array<
|
|
1434
|
-
| components.
|
|
1435
|
-
| components.PIIRedactionPluginNl
|
|
1436
|
-
| components.TraceScrubbingPlugin
|
|
1437
|
-
| components.PIIRedactionPluginAuto
|
|
1432
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
1438
1433
|
| components.ResponseHealingPlugin
|
|
1434
|
+
| components.TraceScrubbingPlugin
|
|
1439
1435
|
>
|
|
1440
1436
|
| undefined;
|
|
1441
1437
|
/**
|
|
@@ -2499,11 +2495,11 @@ export const GetOnePromptPlugins$inboundSchema: z.ZodType<
|
|
|
2499
2495
|
z.ZodTypeDef,
|
|
2500
2496
|
unknown
|
|
2501
2497
|
> = z.union([
|
|
2502
|
-
components.
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2498
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
2499
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
2500
|
+
),
|
|
2506
2501
|
components.ResponseHealingPlugin$inboundSchema,
|
|
2502
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
2507
2503
|
]);
|
|
2508
2504
|
|
|
2509
2505
|
export function getOnePromptPluginsFromJSON(
|
|
@@ -3235,11 +3231,11 @@ export const GetOnePromptPromptField$inboundSchema: z.ZodType<
|
|
|
3235
3231
|
.optional(),
|
|
3236
3232
|
plugins: z.array(
|
|
3237
3233
|
z.union([
|
|
3238
|
-
components.
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
3234
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
3235
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
3236
|
+
),
|
|
3242
3237
|
components.ResponseHealingPlugin$inboundSchema,
|
|
3238
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
3243
3239
|
]),
|
|
3244
3240
|
).optional(),
|
|
3245
3241
|
fallbacks: z.array(z.lazy(() => GetOnePromptFallbacks$inboundSchema))
|