@orq-ai/node 4.11.0-rc.52 → 4.11.0-rc.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/funcs/knowledgeList.js +1 -0
- package/funcs/knowledgeList.js.map +1 -1
- package/funcs/memoryStoresList.js +1 -0
- package/funcs/memoryStoresList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/guardrailrule.d.ts +2 -0
- package/models/components/guardrailrule.d.ts.map +1 -1
- package/models/components/guardrailrule.js +2 -0
- package/models/components/guardrailrule.js.map +1 -1
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/components/piiredactionplugin.d.ts +14 -0
- package/models/components/piiredactionplugin.d.ts.map +1 -0
- package/models/components/piiredactionplugin.js +59 -0
- package/models/components/piiredactionplugin.js.map +1 -0
- package/models/components/piiredactionpluginen.d.ts +132 -0
- package/models/components/piiredactionpluginen.d.ts.map +1 -0
- package/models/components/piiredactionpluginen.js +159 -0
- package/models/components/piiredactionpluginen.js.map +1 -0
- package/models/components/piiredactionpluginnl.d.ts +124 -0
- package/models/components/piiredactionpluginnl.d.ts.map +1 -0
- package/models/components/piiredactionpluginnl.js +149 -0
- package/models/components/piiredactionpluginnl.js.map +1 -0
- package/models/components/plugin.d.ts +11 -0
- package/models/components/plugin.d.ts.map +1 -0
- package/models/components/plugin.js +57 -0
- package/models/components/plugin.js.map +1 -0
- package/models/components/publicpiiredactionplugin.d.ts +79 -0
- package/models/components/publicpiiredactionplugin.d.ts.map +1 -0
- package/models/components/publicpiiredactionplugin.js +86 -0
- package/models/components/publicpiiredactionplugin.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentrequest.d.ts +38 -0
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +57 -5
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +11 -0
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +16 -3
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +11 -0
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +16 -3
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createimage.d.ts +11 -0
- package/models/operations/createimage.d.ts.map +1 -1
- package/models/operations/createimage.js +14 -1
- package/models/operations/createimage.js.map +1 -1
- package/models/operations/createprompt.d.ts +19 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +29 -3
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/creatererank.d.ts +11 -0
- package/models/operations/creatererank.d.ts.map +1 -1
- package/models/operations/creatererank.js +14 -1
- package/models/operations/creatererank.js.map +1 -1
- package/models/operations/createrouterresponse.d.ts +5 -0
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +1 -0
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getallmemorystores.d.ts +5 -0
- package/models/operations/getallmemorystores.d.ts.map +1 -1
- package/models/operations/getallmemorystores.js +2 -0
- package/models/operations/getallmemorystores.js.map +1 -1
- package/models/operations/getallprompts.d.ts +8 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +14 -1
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getoneprompt.d.ts +8 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +15 -2
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +8 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +15 -2
- 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/guardrailrulecreate.d.ts +1 -0
- package/models/operations/guardrailrulecreate.d.ts.map +1 -1
- package/models/operations/guardrailrulecreate.js +1 -0
- package/models/operations/guardrailrulecreate.js.map +1 -1
- package/models/operations/guardrailruleget.d.ts +1 -0
- package/models/operations/guardrailruleget.d.ts.map +1 -1
- package/models/operations/guardrailruleget.js +1 -0
- package/models/operations/guardrailruleget.js.map +1 -1
- package/models/operations/guardrailruleupdate.d.ts +1 -0
- package/models/operations/guardrailruleupdate.d.ts.map +1 -1
- package/models/operations/guardrailruleupdate.js +1 -0
- package/models/operations/guardrailruleupdate.js.map +1 -1
- package/models/operations/listagents.d.ts +16 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +28 -2
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listknowledgebases.d.ts +5 -0
- package/models/operations/listknowledgebases.d.ts.map +1 -1
- package/models/operations/listknowledgebases.js +2 -0
- package/models/operations/listknowledgebases.js.map +1 -1
- package/models/operations/listpromptversions.d.ts +8 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +15 -2
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +16 -0
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +28 -2
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +22 -0
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +30 -4
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +22 -0
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +30 -4
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +38 -0
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +57 -5
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateprompt.d.ts +19 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +29 -3
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +6 -6
- package/sdk/feedback.d.ts +2 -2
- package/sdk/feedback.js +2 -2
- package/src/funcs/knowledgeList.ts +1 -0
- package/src/funcs/memoryStoresList.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/guardrailrule.ts +3 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/piiredactionplugin.ts +44 -0
- package/src/models/components/piiredactionpluginen.ts +193 -0
- package/src/models/components/piiredactionpluginnl.ts +197 -0
- package/src/models/components/plugin.ts +37 -0
- package/src/models/components/publicpiiredactionplugin.ts +127 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentrequest.ts +167 -0
- package/src/models/operations/createchatcompletion.ts +47 -0
- package/src/models/operations/createcompletion.ts +45 -0
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createimage.ts +45 -0
- package/src/models/operations/createprompt.ts +81 -0
- package/src/models/operations/creatererank.ts +45 -0
- package/src/models/operations/createrouterresponse.ts +11 -0
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getallmemorystores.ts +7 -0
- package/src/models/operations/getallprompts.ts +36 -0
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getoneprompt.ts +36 -0
- package/src/models/operations/getpromptversion.ts +36 -0
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/guardrailrulecreate.ts +2 -0
- package/src/models/operations/guardrailruleget.ts +2 -0
- package/src/models/operations/guardrailruleupdate.ts +2 -0
- package/src/models/operations/listagents.ts +79 -0
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listknowledgebases.ts +7 -0
- package/src/models/operations/listpromptversions.ts +36 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +79 -0
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +97 -1
- package/src/models/operations/streamrunagent.ts +98 -1
- package/src/models/operations/updateagent.ts +173 -0
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateprompt.ts +81 -0
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +2 -2
|
@@ -185,6 +185,10 @@ export type Guardrails = {
|
|
|
185
185
|
executeOn: ExecuteOn;
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
+
export type Plugins =
|
|
189
|
+
| components.PIIRedactionPluginEn
|
|
190
|
+
| components.PIIRedactionPluginNl;
|
|
191
|
+
|
|
188
192
|
export type ModelConfigurationFallbacks = {
|
|
189
193
|
/**
|
|
190
194
|
* Fallback model identifier
|
|
@@ -394,6 +398,12 @@ export type ParametersT = {
|
|
|
394
398
|
* A list of guardrails to apply to the request.
|
|
395
399
|
*/
|
|
396
400
|
guardrails?: Array<Guardrails> | undefined;
|
|
401
|
+
/**
|
|
402
|
+
* Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
|
|
403
|
+
*/
|
|
404
|
+
plugins?:
|
|
405
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
406
|
+
| undefined;
|
|
397
407
|
/**
|
|
398
408
|
* Array of fallback models to use if primary model fails
|
|
399
409
|
*/
|
|
@@ -649,6 +659,10 @@ export type FallbackModelConfigurationGuardrails = {
|
|
|
649
659
|
executeOn: FallbackModelConfigurationExecuteOn;
|
|
650
660
|
};
|
|
651
661
|
|
|
662
|
+
export type FallbackModelConfigurationPlugins =
|
|
663
|
+
| components.PIIRedactionPluginEn
|
|
664
|
+
| components.PIIRedactionPluginNl;
|
|
665
|
+
|
|
652
666
|
export type FallbackModelConfigurationFallbacks = {
|
|
653
667
|
/**
|
|
654
668
|
* Fallback model identifier
|
|
@@ -872,6 +886,12 @@ export type FallbackModelConfigurationParameters = {
|
|
|
872
886
|
* A list of guardrails to apply to the request.
|
|
873
887
|
*/
|
|
874
888
|
guardrails?: Array<FallbackModelConfigurationGuardrails> | undefined;
|
|
889
|
+
/**
|
|
890
|
+
* Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
|
|
891
|
+
*/
|
|
892
|
+
plugins?:
|
|
893
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
894
|
+
| undefined;
|
|
875
895
|
/**
|
|
876
896
|
* Array of fallback models to use if primary model fails
|
|
877
897
|
*/
|
|
@@ -2013,6 +2033,10 @@ export type CreateAgentRequestAgentsResponseGuardrails = {
|
|
|
2013
2033
|
executeOn: CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn;
|
|
2014
2034
|
};
|
|
2015
2035
|
|
|
2036
|
+
export type CreateAgentRequestPlugins =
|
|
2037
|
+
| components.PIIRedactionPluginEn
|
|
2038
|
+
| components.PIIRedactionPluginNl;
|
|
2039
|
+
|
|
2016
2040
|
export type CreateAgentRequestFallbacks = {
|
|
2017
2041
|
/**
|
|
2018
2042
|
* Fallback model identifier
|
|
@@ -2234,6 +2258,12 @@ export type CreateAgentRequestParameters = {
|
|
|
2234
2258
|
* A list of guardrails to apply to the request.
|
|
2235
2259
|
*/
|
|
2236
2260
|
guardrails?: Array<CreateAgentRequestAgentsResponseGuardrails> | undefined;
|
|
2261
|
+
/**
|
|
2262
|
+
* Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
|
|
2263
|
+
*/
|
|
2264
|
+
plugins?:
|
|
2265
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
2266
|
+
| undefined;
|
|
2237
2267
|
/**
|
|
2238
2268
|
* Array of fallback models to use if primary model fails
|
|
2239
2269
|
*/
|
|
@@ -2474,6 +2504,10 @@ export type CreateAgentRequestFallbackModelConfigurationGuardrails = {
|
|
|
2474
2504
|
executeOn: CreateAgentRequestFallbackModelConfigurationExecuteOn;
|
|
2475
2505
|
};
|
|
2476
2506
|
|
|
2507
|
+
export type CreateAgentRequestFallbackModelConfigurationPlugins =
|
|
2508
|
+
| components.PIIRedactionPluginEn
|
|
2509
|
+
| components.PIIRedactionPluginNl;
|
|
2510
|
+
|
|
2477
2511
|
export type CreateAgentRequestFallbackModelConfigurationFallbacks = {
|
|
2478
2512
|
/**
|
|
2479
2513
|
* Fallback model identifier
|
|
@@ -2705,6 +2739,12 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
2705
2739
|
guardrails?:
|
|
2706
2740
|
| Array<CreateAgentRequestFallbackModelConfigurationGuardrails>
|
|
2707
2741
|
| undefined;
|
|
2742
|
+
/**
|
|
2743
|
+
* Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
|
|
2744
|
+
*/
|
|
2745
|
+
plugins?:
|
|
2746
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
2747
|
+
| undefined;
|
|
2708
2748
|
/**
|
|
2709
2749
|
* Array of fallback models to use if primary model fails
|
|
2710
2750
|
*/
|
|
@@ -3129,6 +3169,25 @@ export function guardrailsToJSON(guardrails: Guardrails): string {
|
|
|
3129
3169
|
return JSON.stringify(Guardrails$outboundSchema.parse(guardrails));
|
|
3130
3170
|
}
|
|
3131
3171
|
|
|
3172
|
+
/** @internal */
|
|
3173
|
+
export type Plugins$Outbound =
|
|
3174
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3175
|
+
| components.PIIRedactionPluginNl$Outbound;
|
|
3176
|
+
|
|
3177
|
+
/** @internal */
|
|
3178
|
+
export const Plugins$outboundSchema: z.ZodType<
|
|
3179
|
+
Plugins$Outbound,
|
|
3180
|
+
z.ZodTypeDef,
|
|
3181
|
+
Plugins
|
|
3182
|
+
> = z.union([
|
|
3183
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3184
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3185
|
+
]);
|
|
3186
|
+
|
|
3187
|
+
export function pluginsToJSON(plugins: Plugins): string {
|
|
3188
|
+
return JSON.stringify(Plugins$outboundSchema.parse(plugins));
|
|
3189
|
+
}
|
|
3190
|
+
|
|
3132
3191
|
/** @internal */
|
|
3133
3192
|
export type ModelConfigurationFallbacks$Outbound = {
|
|
3134
3193
|
model: string;
|
|
@@ -3323,6 +3382,12 @@ export type ParametersT$Outbound = {
|
|
|
3323
3382
|
parallel_tool_calls?: boolean | undefined;
|
|
3324
3383
|
modalities?: Array<string> | null | undefined;
|
|
3325
3384
|
guardrails?: Array<Guardrails$Outbound> | undefined;
|
|
3385
|
+
plugins?:
|
|
3386
|
+
| Array<
|
|
3387
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3388
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
3389
|
+
>
|
|
3390
|
+
| undefined;
|
|
3326
3391
|
fallbacks?: Array<ModelConfigurationFallbacks$Outbound> | undefined;
|
|
3327
3392
|
cache?: Cache$Outbound | undefined;
|
|
3328
3393
|
load_balancer?: LoadBalancer1$Outbound | undefined;
|
|
@@ -3366,6 +3431,12 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
3366
3431
|
parallelToolCalls: z.boolean().optional(),
|
|
3367
3432
|
modalities: z.nullable(z.array(Modalities$outboundSchema)).optional(),
|
|
3368
3433
|
guardrails: z.array(z.lazy(() => Guardrails$outboundSchema)).optional(),
|
|
3434
|
+
plugins: z.array(
|
|
3435
|
+
z.union([
|
|
3436
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3437
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3438
|
+
]),
|
|
3439
|
+
).optional(),
|
|
3369
3440
|
fallbacks: z.array(z.lazy(() => ModelConfigurationFallbacks$outboundSchema))
|
|
3370
3441
|
.optional(),
|
|
3371
3442
|
cache: z.lazy(() => Cache$outboundSchema).optional(),
|
|
@@ -3810,6 +3881,31 @@ export function fallbackModelConfigurationGuardrailsToJSON(
|
|
|
3810
3881
|
);
|
|
3811
3882
|
}
|
|
3812
3883
|
|
|
3884
|
+
/** @internal */
|
|
3885
|
+
export type FallbackModelConfigurationPlugins$Outbound =
|
|
3886
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3887
|
+
| components.PIIRedactionPluginNl$Outbound;
|
|
3888
|
+
|
|
3889
|
+
/** @internal */
|
|
3890
|
+
export const FallbackModelConfigurationPlugins$outboundSchema: z.ZodType<
|
|
3891
|
+
FallbackModelConfigurationPlugins$Outbound,
|
|
3892
|
+
z.ZodTypeDef,
|
|
3893
|
+
FallbackModelConfigurationPlugins
|
|
3894
|
+
> = z.union([
|
|
3895
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3896
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3897
|
+
]);
|
|
3898
|
+
|
|
3899
|
+
export function fallbackModelConfigurationPluginsToJSON(
|
|
3900
|
+
fallbackModelConfigurationPlugins: FallbackModelConfigurationPlugins,
|
|
3901
|
+
): string {
|
|
3902
|
+
return JSON.stringify(
|
|
3903
|
+
FallbackModelConfigurationPlugins$outboundSchema.parse(
|
|
3904
|
+
fallbackModelConfigurationPlugins,
|
|
3905
|
+
),
|
|
3906
|
+
);
|
|
3907
|
+
}
|
|
3908
|
+
|
|
3813
3909
|
/** @internal */
|
|
3814
3910
|
export type FallbackModelConfigurationFallbacks$Outbound = {
|
|
3815
3911
|
model: string;
|
|
@@ -4035,6 +4131,12 @@ export type FallbackModelConfigurationParameters$Outbound = {
|
|
|
4035
4131
|
parallel_tool_calls?: boolean | undefined;
|
|
4036
4132
|
modalities?: Array<string> | null | undefined;
|
|
4037
4133
|
guardrails?: Array<FallbackModelConfigurationGuardrails$Outbound> | undefined;
|
|
4134
|
+
plugins?:
|
|
4135
|
+
| Array<
|
|
4136
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
4137
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
4138
|
+
>
|
|
4139
|
+
| undefined;
|
|
4038
4140
|
fallbacks?: Array<FallbackModelConfigurationFallbacks$Outbound> | undefined;
|
|
4039
4141
|
cache?: FallbackModelConfigurationCache$Outbound | undefined;
|
|
4040
4142
|
load_balancer?: CreateAgentRequestLoadBalancer1$Outbound | undefined;
|
|
@@ -4083,6 +4185,12 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
4083
4185
|
guardrails: z.array(
|
|
4084
4186
|
z.lazy(() => FallbackModelConfigurationGuardrails$outboundSchema),
|
|
4085
4187
|
).optional(),
|
|
4188
|
+
plugins: z.array(
|
|
4189
|
+
z.union([
|
|
4190
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
4191
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
4192
|
+
]),
|
|
4193
|
+
).optional(),
|
|
4086
4194
|
fallbacks: z.array(
|
|
4087
4195
|
z.lazy(() => FallbackModelConfigurationFallbacks$outboundSchema),
|
|
4088
4196
|
).optional(),
|
|
@@ -5704,6 +5812,26 @@ export function createAgentRequestAgentsResponseGuardrailsFromJSON(
|
|
|
5704
5812
|
);
|
|
5705
5813
|
}
|
|
5706
5814
|
|
|
5815
|
+
/** @internal */
|
|
5816
|
+
export const CreateAgentRequestPlugins$inboundSchema: z.ZodType<
|
|
5817
|
+
CreateAgentRequestPlugins,
|
|
5818
|
+
z.ZodTypeDef,
|
|
5819
|
+
unknown
|
|
5820
|
+
> = z.union([
|
|
5821
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
5822
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
5823
|
+
]);
|
|
5824
|
+
|
|
5825
|
+
export function createAgentRequestPluginsFromJSON(
|
|
5826
|
+
jsonString: string,
|
|
5827
|
+
): SafeParseResult<CreateAgentRequestPlugins, SDKValidationError> {
|
|
5828
|
+
return safeParse(
|
|
5829
|
+
jsonString,
|
|
5830
|
+
(x) => CreateAgentRequestPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
5831
|
+
`Failed to parse 'CreateAgentRequestPlugins' from JSON`,
|
|
5832
|
+
);
|
|
5833
|
+
}
|
|
5834
|
+
|
|
5707
5835
|
/** @internal */
|
|
5708
5836
|
export const CreateAgentRequestFallbacks$inboundSchema: z.ZodType<
|
|
5709
5837
|
CreateAgentRequestFallbacks,
|
|
@@ -5908,6 +6036,12 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
5908
6036
|
guardrails: z.array(
|
|
5909
6037
|
z.lazy(() => CreateAgentRequestAgentsResponseGuardrails$inboundSchema),
|
|
5910
6038
|
).optional(),
|
|
6039
|
+
plugins: z.array(
|
|
6040
|
+
z.union([
|
|
6041
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
6042
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
6043
|
+
]),
|
|
6044
|
+
).optional(),
|
|
5911
6045
|
fallbacks: z.array(z.lazy(() => CreateAgentRequestFallbacks$inboundSchema))
|
|
5912
6046
|
.optional(),
|
|
5913
6047
|
cache: z.lazy(() => CreateAgentRequestCache$inboundSchema).optional(),
|
|
@@ -6335,6 +6469,33 @@ export function createAgentRequestFallbackModelConfigurationGuardrailsFromJSON(
|
|
|
6335
6469
|
);
|
|
6336
6470
|
}
|
|
6337
6471
|
|
|
6472
|
+
/** @internal */
|
|
6473
|
+
export const CreateAgentRequestFallbackModelConfigurationPlugins$inboundSchema:
|
|
6474
|
+
z.ZodType<
|
|
6475
|
+
CreateAgentRequestFallbackModelConfigurationPlugins,
|
|
6476
|
+
z.ZodTypeDef,
|
|
6477
|
+
unknown
|
|
6478
|
+
> = z.union([
|
|
6479
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
6480
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
6481
|
+
]);
|
|
6482
|
+
|
|
6483
|
+
export function createAgentRequestFallbackModelConfigurationPluginsFromJSON(
|
|
6484
|
+
jsonString: string,
|
|
6485
|
+
): SafeParseResult<
|
|
6486
|
+
CreateAgentRequestFallbackModelConfigurationPlugins,
|
|
6487
|
+
SDKValidationError
|
|
6488
|
+
> {
|
|
6489
|
+
return safeParse(
|
|
6490
|
+
jsonString,
|
|
6491
|
+
(x) =>
|
|
6492
|
+
CreateAgentRequestFallbackModelConfigurationPlugins$inboundSchema.parse(
|
|
6493
|
+
JSON.parse(x),
|
|
6494
|
+
),
|
|
6495
|
+
`Failed to parse 'CreateAgentRequestFallbackModelConfigurationPlugins' from JSON`,
|
|
6496
|
+
);
|
|
6497
|
+
}
|
|
6498
|
+
|
|
6338
6499
|
/** @internal */
|
|
6339
6500
|
export const CreateAgentRequestFallbackModelConfigurationFallbacks$inboundSchema:
|
|
6340
6501
|
z.ZodType<
|
|
@@ -6597,6 +6758,12 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
6597
6758
|
CreateAgentRequestFallbackModelConfigurationGuardrails$inboundSchema
|
|
6598
6759
|
),
|
|
6599
6760
|
).optional(),
|
|
6761
|
+
plugins: z.array(
|
|
6762
|
+
z.union([
|
|
6763
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
6764
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
6765
|
+
]),
|
|
6766
|
+
).optional(),
|
|
6600
6767
|
fallbacks: z.array(
|
|
6601
6768
|
z.lazy(() =>
|
|
6602
6769
|
CreateAgentRequestFallbackModelConfigurationFallbacks$inboundSchema
|
|
@@ -674,6 +674,10 @@ export type CreateChatCompletionGuardrails = {
|
|
|
674
674
|
executeOn: CreateChatCompletionExecuteOn;
|
|
675
675
|
};
|
|
676
676
|
|
|
677
|
+
export type CreateChatCompletionPlugins =
|
|
678
|
+
| components.PIIRedactionPluginEn
|
|
679
|
+
| components.PIIRedactionPluginNl;
|
|
680
|
+
|
|
677
681
|
export type CreateChatCompletionFallbacks = {
|
|
678
682
|
/**
|
|
679
683
|
* Fallback model identifier
|
|
@@ -1599,6 +1603,12 @@ export type CreateChatCompletionRequestBody = {
|
|
|
1599
1603
|
* A list of guardrails to apply to the request.
|
|
1600
1604
|
*/
|
|
1601
1605
|
guardrails?: Array<CreateChatCompletionGuardrails> | undefined;
|
|
1606
|
+
/**
|
|
1607
|
+
* Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
|
|
1608
|
+
*/
|
|
1609
|
+
plugins?:
|
|
1610
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
1611
|
+
| undefined;
|
|
1602
1612
|
/**
|
|
1603
1613
|
* Array of fallback models to use if primary model fails
|
|
1604
1614
|
*/
|
|
@@ -3422,6 +3432,31 @@ export function createChatCompletionGuardrailsToJSON(
|
|
|
3422
3432
|
);
|
|
3423
3433
|
}
|
|
3424
3434
|
|
|
3435
|
+
/** @internal */
|
|
3436
|
+
export type CreateChatCompletionPlugins$Outbound =
|
|
3437
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3438
|
+
| components.PIIRedactionPluginNl$Outbound;
|
|
3439
|
+
|
|
3440
|
+
/** @internal */
|
|
3441
|
+
export const CreateChatCompletionPlugins$outboundSchema: z.ZodType<
|
|
3442
|
+
CreateChatCompletionPlugins$Outbound,
|
|
3443
|
+
z.ZodTypeDef,
|
|
3444
|
+
CreateChatCompletionPlugins
|
|
3445
|
+
> = z.union([
|
|
3446
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3447
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3448
|
+
]);
|
|
3449
|
+
|
|
3450
|
+
export function createChatCompletionPluginsToJSON(
|
|
3451
|
+
createChatCompletionPlugins: CreateChatCompletionPlugins,
|
|
3452
|
+
): string {
|
|
3453
|
+
return JSON.stringify(
|
|
3454
|
+
CreateChatCompletionPlugins$outboundSchema.parse(
|
|
3455
|
+
createChatCompletionPlugins,
|
|
3456
|
+
),
|
|
3457
|
+
);
|
|
3458
|
+
}
|
|
3459
|
+
|
|
3425
3460
|
/** @internal */
|
|
3426
3461
|
export type CreateChatCompletionFallbacks$Outbound = {
|
|
3427
3462
|
model: string;
|
|
@@ -5434,6 +5469,12 @@ export type CreateChatCompletionRequestBody$Outbound = {
|
|
|
5434
5469
|
parallel_tool_calls?: boolean | undefined;
|
|
5435
5470
|
modalities?: Array<string> | null | undefined;
|
|
5436
5471
|
guardrails?: Array<CreateChatCompletionGuardrails$Outbound> | undefined;
|
|
5472
|
+
plugins?:
|
|
5473
|
+
| Array<
|
|
5474
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
5475
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
5476
|
+
>
|
|
5477
|
+
| undefined;
|
|
5437
5478
|
fallbacks?: Array<CreateChatCompletionFallbacks$Outbound> | undefined;
|
|
5438
5479
|
retry?: CreateChatCompletionRetry$Outbound | undefined;
|
|
5439
5480
|
cache?: CreateChatCompletionCache$Outbound | undefined;
|
|
@@ -5508,6 +5549,12 @@ export const CreateChatCompletionRequestBody$outboundSchema: z.ZodType<
|
|
|
5508
5549
|
guardrails: z.array(
|
|
5509
5550
|
z.lazy(() => CreateChatCompletionGuardrails$outboundSchema),
|
|
5510
5551
|
).optional(),
|
|
5552
|
+
plugins: z.array(
|
|
5553
|
+
z.union([
|
|
5554
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
5555
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
5556
|
+
]),
|
|
5557
|
+
).optional(),
|
|
5511
5558
|
fallbacks: z.array(z.lazy(() => CreateChatCompletionFallbacks$outboundSchema))
|
|
5512
5559
|
.optional(),
|
|
5513
5560
|
retry: z.lazy(() => CreateChatCompletionRetry$outboundSchema).optional(),
|
|
@@ -99,6 +99,10 @@ export type CreateCompletionThinking =
|
|
|
99
99
|
| components.ThinkingConfigEnabledSchema
|
|
100
100
|
| components.ThinkingConfigAdaptiveSchema;
|
|
101
101
|
|
|
102
|
+
export type CreateCompletionPlugins =
|
|
103
|
+
| components.PIIRedactionPluginEn
|
|
104
|
+
| components.PIIRedactionPluginNl;
|
|
105
|
+
|
|
102
106
|
/**
|
|
103
107
|
* Retry configuration for the request
|
|
104
108
|
*/
|
|
@@ -788,6 +792,12 @@ export type CreateCompletionRequestBody = {
|
|
|
788
792
|
| components.ThinkingConfigAdaptiveSchema
|
|
789
793
|
| null
|
|
790
794
|
| undefined;
|
|
795
|
+
/**
|
|
796
|
+
* Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
|
|
797
|
+
*/
|
|
798
|
+
plugins?:
|
|
799
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
800
|
+
| undefined;
|
|
791
801
|
/**
|
|
792
802
|
* Leverage Orq's intelligent routing capabilities to enhance your AI application with enterprise-grade reliability and observability. Orq provides automatic request management including retries on failures, model fallbacks for high availability, identity-level analytics tracking, conversation threading, and dynamic prompt templating with variable substitution.
|
|
793
803
|
*
|
|
@@ -1254,6 +1264,29 @@ export function createCompletionThinkingToJSON(
|
|
|
1254
1264
|
);
|
|
1255
1265
|
}
|
|
1256
1266
|
|
|
1267
|
+
/** @internal */
|
|
1268
|
+
export type CreateCompletionPlugins$Outbound =
|
|
1269
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
1270
|
+
| components.PIIRedactionPluginNl$Outbound;
|
|
1271
|
+
|
|
1272
|
+
/** @internal */
|
|
1273
|
+
export const CreateCompletionPlugins$outboundSchema: z.ZodType<
|
|
1274
|
+
CreateCompletionPlugins$Outbound,
|
|
1275
|
+
z.ZodTypeDef,
|
|
1276
|
+
CreateCompletionPlugins
|
|
1277
|
+
> = z.union([
|
|
1278
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
1279
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
1280
|
+
]);
|
|
1281
|
+
|
|
1282
|
+
export function createCompletionPluginsToJSON(
|
|
1283
|
+
createCompletionPlugins: CreateCompletionPlugins,
|
|
1284
|
+
): string {
|
|
1285
|
+
return JSON.stringify(
|
|
1286
|
+
CreateCompletionPlugins$outboundSchema.parse(createCompletionPlugins),
|
|
1287
|
+
);
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1257
1290
|
/** @internal */
|
|
1258
1291
|
export type CreateCompletionRouterCompletionsRetry$Outbound = {
|
|
1259
1292
|
count: number;
|
|
@@ -2983,6 +3016,12 @@ export type CreateCompletionRequestBody$Outbound = {
|
|
|
2983
3016
|
| components.ThinkingConfigAdaptiveSchema$Outbound
|
|
2984
3017
|
| null
|
|
2985
3018
|
| undefined;
|
|
3019
|
+
plugins?:
|
|
3020
|
+
| Array<
|
|
3021
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3022
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
3023
|
+
>
|
|
3024
|
+
| undefined;
|
|
2986
3025
|
orq?: CreateCompletionOrq$Outbound | undefined;
|
|
2987
3026
|
stream: boolean;
|
|
2988
3027
|
};
|
|
@@ -3020,6 +3059,12 @@ export const CreateCompletionRequestBody$outboundSchema: z.ZodType<
|
|
|
3020
3059
|
components.ThinkingConfigAdaptiveSchema$outboundSchema,
|
|
3021
3060
|
]),
|
|
3022
3061
|
).optional(),
|
|
3062
|
+
plugins: z.array(
|
|
3063
|
+
z.union([
|
|
3064
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3065
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3066
|
+
]),
|
|
3067
|
+
).optional(),
|
|
3023
3068
|
orq: z.lazy(() => CreateCompletionOrq$outboundSchema).optional(),
|
|
3024
3069
|
stream: z.boolean().default(false),
|
|
3025
3070
|
}).transform((v) => {
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-06-
|
|
141
|
+
"2026-06-29T06:24:56.736Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2607,7 +2607,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
2607
2607
|
explanation: z.string().optional(),
|
|
2608
2608
|
reviewed_by_id: z.string(),
|
|
2609
2609
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2610
|
-
"2026-06-
|
|
2610
|
+
"2026-06-29T06:25:25.322Z",
|
|
2611
2611
|
).transform(v => new Date(v)),
|
|
2612
2612
|
type: z.literal("string_array"),
|
|
2613
2613
|
values: z.array(z.string()),
|
|
@@ -2692,7 +2692,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2692
2692
|
explanation: z.string().optional(),
|
|
2693
2693
|
reviewed_by_id: z.string(),
|
|
2694
2694
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2695
|
-
"2026-06-
|
|
2695
|
+
"2026-06-29T06:25:25.322Z",
|
|
2696
2696
|
).transform(v => new Date(v)),
|
|
2697
2697
|
type: z.literal("number"),
|
|
2698
2698
|
value: z.number(),
|
|
@@ -2777,7 +2777,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2777
2777
|
explanation: z.string().optional(),
|
|
2778
2778
|
reviewed_by_id: z.string(),
|
|
2779
2779
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2780
|
-
"2026-06-
|
|
2780
|
+
"2026-06-29T06:25:25.321Z",
|
|
2781
2781
|
).transform(v => new Date(v)),
|
|
2782
2782
|
type: z.literal("string"),
|
|
2783
2783
|
value: z.string(),
|
|
@@ -2862,7 +2862,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
2862
2862
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2863
2863
|
.optional(),
|
|
2864
2864
|
updated: z.string().datetime({ offset: true }).default(
|
|
2865
|
-
"2026-06-
|
|
2865
|
+
"2026-06-29T06:24:56.736Z",
|
|
2866
2866
|
).transform(v => new Date(v)),
|
|
2867
2867
|
}).transform((v) => {
|
|
2868
2868
|
return remap$(v, {
|
|
@@ -412,7 +412,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
412
412
|
z.ZodTypeDef,
|
|
413
413
|
unknown
|
|
414
414
|
> = z.object({
|
|
415
|
-
_id: z.string().default("
|
|
415
|
+
_id: z.string().default("01KW90VP6YTX4QST7TTHXV4E5Z"),
|
|
416
416
|
display_name: z.string(),
|
|
417
417
|
description: z.nullable(z.string()).optional(),
|
|
418
418
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -2193,8 +2193,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
2193
2193
|
> = z.object({
|
|
2194
2194
|
_id: z.string(),
|
|
2195
2195
|
description: z.string(),
|
|
2196
|
-
created: z.string().default("2026-06-
|
|
2197
|
-
updated: z.string().default("2026-06-
|
|
2196
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
2197
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
2198
2198
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2199
2199
|
guardrail_config: z.nullable(
|
|
2200
2200
|
z.union([
|
|
@@ -2384,8 +2384,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
2384
2384
|
.object({
|
|
2385
2385
|
_id: z.string(),
|
|
2386
2386
|
description: z.string(),
|
|
2387
|
-
created: z.string().default("2026-06-
|
|
2388
|
-
updated: z.string().default("2026-06-
|
|
2387
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
2388
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
2389
2389
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2390
2390
|
guardrail_config: z.nullable(
|
|
2391
2391
|
z.union([
|
|
@@ -3210,8 +3210,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3210
3210
|
> = z.object({
|
|
3211
3211
|
_id: z.string(),
|
|
3212
3212
|
description: z.string(),
|
|
3213
|
-
created: z.string().default("2026-06-
|
|
3214
|
-
updated: z.string().default("2026-06-
|
|
3213
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3214
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3215
3215
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3216
3216
|
guardrail_config: z.nullable(
|
|
3217
3217
|
z.union([
|
|
@@ -3430,8 +3430,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
3430
3430
|
> = z.object({
|
|
3431
3431
|
_id: z.string(),
|
|
3432
3432
|
description: z.string(),
|
|
3433
|
-
created: z.string().default("2026-06-
|
|
3434
|
-
updated: z.string().default("2026-06-
|
|
3433
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3434
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3435
3435
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3436
3436
|
guardrail_config: z.nullable(
|
|
3437
3437
|
z.union([
|
|
@@ -3612,8 +3612,8 @@ export const CreateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
3612
3612
|
> = z.object({
|
|
3613
3613
|
_id: z.string(),
|
|
3614
3614
|
description: z.string(),
|
|
3615
|
-
created: z.string().default("2026-06-
|
|
3616
|
-
updated: z.string().default("2026-06-
|
|
3615
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3616
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3617
3617
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3618
3618
|
guardrail_config: z.nullable(
|
|
3619
3619
|
z.union([
|
|
@@ -3772,8 +3772,8 @@ export const Json$inboundSchema: z.ZodType<Json, z.ZodTypeDef, unknown> = z
|
|
|
3772
3772
|
.object({
|
|
3773
3773
|
_id: z.string(),
|
|
3774
3774
|
description: z.string(),
|
|
3775
|
-
created: z.string().default("2026-06-
|
|
3776
|
-
updated: z.string().default("2026-06-
|
|
3775
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3776
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3777
3777
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3778
3778
|
guardrail_config: z.nullable(
|
|
3779
3779
|
z.union([
|
|
@@ -4143,8 +4143,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
4143
4143
|
> = z.object({
|
|
4144
4144
|
_id: z.string(),
|
|
4145
4145
|
description: z.string(),
|
|
4146
|
-
created: z.string().default("2026-06-
|
|
4147
|
-
updated: z.string().default("2026-06-
|
|
4146
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
4147
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
4148
4148
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
4149
4149
|
guardrail_config: z.nullable(
|
|
4150
4150
|
z.union([
|
|
@@ -4363,8 +4363,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
4363
4363
|
> = z.object({
|
|
4364
4364
|
_id: z.string(),
|
|
4365
4365
|
description: z.string(),
|
|
4366
|
-
created: z.string().default("2026-06-
|
|
4367
|
-
updated: z.string().default("2026-06-
|
|
4366
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
4367
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
4368
4368
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
4369
4369
|
guardrail_config: z.nullable(
|
|
4370
4370
|
z.union([
|
|
@@ -165,6 +165,10 @@ export type CreateImageTimeout = {
|
|
|
165
165
|
callTimeout: number;
|
|
166
166
|
};
|
|
167
167
|
|
|
168
|
+
export type CreateImagePlugins =
|
|
169
|
+
| components.PIIRedactionPluginEn
|
|
170
|
+
| components.PIIRedactionPluginNl;
|
|
171
|
+
|
|
168
172
|
/**
|
|
169
173
|
* Retry configuration for the request
|
|
170
174
|
*/
|
|
@@ -356,6 +360,12 @@ export type CreateImageRequestBody = {
|
|
|
356
360
|
* Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
|
|
357
361
|
*/
|
|
358
362
|
timeout?: CreateImageTimeout | undefined;
|
|
363
|
+
/**
|
|
364
|
+
* Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
|
|
365
|
+
*/
|
|
366
|
+
plugins?:
|
|
367
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
368
|
+
| undefined;
|
|
359
369
|
orq?: CreateImageOrq | undefined;
|
|
360
370
|
};
|
|
361
371
|
|
|
@@ -606,6 +616,29 @@ export function createImageTimeoutToJSON(
|
|
|
606
616
|
);
|
|
607
617
|
}
|
|
608
618
|
|
|
619
|
+
/** @internal */
|
|
620
|
+
export type CreateImagePlugins$Outbound =
|
|
621
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
622
|
+
| components.PIIRedactionPluginNl$Outbound;
|
|
623
|
+
|
|
624
|
+
/** @internal */
|
|
625
|
+
export const CreateImagePlugins$outboundSchema: z.ZodType<
|
|
626
|
+
CreateImagePlugins$Outbound,
|
|
627
|
+
z.ZodTypeDef,
|
|
628
|
+
CreateImagePlugins
|
|
629
|
+
> = z.union([
|
|
630
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
631
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
632
|
+
]);
|
|
633
|
+
|
|
634
|
+
export function createImagePluginsToJSON(
|
|
635
|
+
createImagePlugins: CreateImagePlugins,
|
|
636
|
+
): string {
|
|
637
|
+
return JSON.stringify(
|
|
638
|
+
CreateImagePlugins$outboundSchema.parse(createImagePlugins),
|
|
639
|
+
);
|
|
640
|
+
}
|
|
641
|
+
|
|
609
642
|
/** @internal */
|
|
610
643
|
export type CreateImageRouterImagesGenerationsRetry$Outbound = {
|
|
611
644
|
count: number;
|
|
@@ -884,6 +917,12 @@ export type CreateImageRequestBody$Outbound = {
|
|
|
884
917
|
cache?: CreateImageCache$Outbound | undefined;
|
|
885
918
|
load_balancer?: CreateImageLoadBalancer1$Outbound | undefined;
|
|
886
919
|
timeout?: CreateImageTimeout$Outbound | undefined;
|
|
920
|
+
plugins?:
|
|
921
|
+
| Array<
|
|
922
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
923
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
924
|
+
>
|
|
925
|
+
| undefined;
|
|
887
926
|
orq?: CreateImageOrq$Outbound | undefined;
|
|
888
927
|
};
|
|
889
928
|
|
|
@@ -914,6 +953,12 @@ export const CreateImageRequestBody$outboundSchema: z.ZodType<
|
|
|
914
953
|
loadBalancer: z.lazy(() => CreateImageLoadBalancer1$outboundSchema)
|
|
915
954
|
.optional(),
|
|
916
955
|
timeout: z.lazy(() => CreateImageTimeout$outboundSchema).optional(),
|
|
956
|
+
plugins: z.array(
|
|
957
|
+
z.union([
|
|
958
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
959
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
960
|
+
]),
|
|
961
|
+
).optional(),
|
|
917
962
|
orq: z.lazy(() => CreateImageOrq$outboundSchema).optional(),
|
|
918
963
|
}).transform((v) => {
|
|
919
964
|
return remap$(v, {
|