@orq-ai/node 4.11.0-rc.52 → 4.11.0-rc.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/createskillrequest.d.ts +6 -6
- package/models/components/createskillrequest.d.ts.map +1 -1
- package/models/components/createskillrequest.js +6 -7
- package/models/components/createskillrequest.js.map +1 -1
- package/models/components/evaluatorresponsefunction.d.ts +270 -0
- package/models/components/evaluatorresponsefunction.d.ts.map +1 -0
- package/models/components/evaluatorresponsefunction.js +491 -0
- package/models/components/evaluatorresponsefunction.js.map +1 -0
- package/models/components/evaluatorresponsehttp.d.ts +76 -0
- package/models/components/evaluatorresponsehttp.d.ts.map +1 -0
- package/models/components/evaluatorresponsehttp.js +146 -0
- package/models/components/evaluatorresponsehttp.js.map +1 -0
- package/models/components/evaluatorresponsejsonschema.d.ts +62 -0
- package/models/components/evaluatorresponsejsonschema.d.ts.map +1 -0
- package/models/components/evaluatorresponsejsonschema.js +135 -0
- package/models/components/evaluatorresponsejsonschema.js.map +1 -0
- package/models/components/evaluatorresponsellm.d.ts +140 -0
- package/models/components/evaluatorresponsellm.d.ts.map +1 -0
- package/models/components/evaluatorresponsellm.js +250 -0
- package/models/components/evaluatorresponsellm.js.map +1 -0
- package/models/components/evaluatorresponsepython.d.ts +62 -0
- package/models/components/evaluatorresponsepython.d.ts.map +1 -0
- package/models/components/evaluatorresponsepython.js +136 -0
- package/models/components/evaluatorresponsepython.js.map +1 -0
- package/models/components/evaluatorresponseragas.d.ts +80 -0
- package/models/components/evaluatorresponseragas.d.ts.map +1 -0
- package/models/components/evaluatorresponseragas.js +155 -0
- package/models/components/evaluatorresponseragas.js.map +1 -0
- package/models/components/evaluatorresponsetypescript.d.ts +62 -0
- package/models/components/evaluatorresponsetypescript.d.ts.map +1 -0
- package/models/components/evaluatorresponsetypescript.js +136 -0
- package/models/components/evaluatorresponsetypescript.js.map +1 -0
- 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 +13 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +13 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +36 -36
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +33 -34
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/modelsconfig.d.ts +5 -5
- package/models/components/modelsconfig.d.ts.map +1 -1
- package/models/components/modelsconfig.js +6 -6
- package/models/components/modelsconfig.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/piiredactionpluginauto.d.ts +127 -0
- package/models/components/piiredactionpluginauto.d.ts.map +1 -0
- package/models/components/piiredactionpluginauto.js +157 -0
- package/models/components/piiredactionpluginauto.js.map +1 -0
- package/models/components/piiredactionpluginen.d.ts +146 -0
- package/models/components/piiredactionpluginen.d.ts.map +1 -0
- package/models/components/piiredactionpluginen.js +168 -0
- package/models/components/piiredactionpluginen.js.map +1 -0
- package/models/components/piiredactionpluginnl.d.ts +138 -0
- package/models/components/piiredactionpluginnl.d.ts.map +1 -0
- package/models/components/piiredactionpluginnl.js +159 -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/components/textcontentpartschema.d.ts +10 -10
- package/models/components/textcontentpartschema.d.ts.map +1 -1
- package/models/components/textcontentpartschema.js +11 -11
- package/models/components/textcontentpartschema.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +38 -0
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +65 -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 +18 -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 +18 -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.d.ts +22 -852
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +30 -1341
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createimage.d.ts +11 -0
- package/models/operations/createimage.d.ts.map +1 -1
- package/models/operations/createimage.js +16 -1
- package/models/operations/createimage.js.map +1 -1
- package/models/operations/createprompt.d.ts +27 -8
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +42 -12
- 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 +16 -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.d.ts +8 -8
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +16 -16
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +8 -8
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +10 -10
- package/models/operations/deploymentgetconfig.js.map +1 -1
- 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 +16 -1
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.d.ts +20 -20
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +28 -26
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getevals.d.ts +3 -833
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +16 -1314
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +8 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +17 -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 +17 -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/invokeeval.d.ts +7 -7
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +11 -11
- package/models/operations/invokeeval.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 +32 -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 +17 -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 +32 -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 +34 -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 +34 -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 +65 -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.d.ts +2 -832
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +9 -1304
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updateprompt.d.ts +19 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +33 -3
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +7 -7
- 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/createskillrequest.ts +27 -20
- package/src/models/components/evaluatorresponsefunction.ts +1107 -0
- package/src/models/components/evaluatorresponsehttp.ts +247 -0
- package/src/models/components/evaluatorresponsejsonschema.ts +214 -0
- package/src/models/components/evaluatorresponsellm.ts +442 -0
- package/src/models/components/evaluatorresponsepython.ts +234 -0
- package/src/models/components/evaluatorresponseragas.ts +257 -0
- package/src/models/components/evaluatorresponsetypescript.ts +247 -0
- package/src/models/components/guardrailrule.ts +3 -0
- package/src/models/components/index.ts +13 -0
- package/src/models/components/invokedeploymentrequest.ts +119 -95
- package/src/models/components/modelsconfig.ts +11 -10
- package/src/models/components/piiredactionplugin.ts +44 -0
- package/src/models/components/piiredactionpluginauto.ts +186 -0
- package/src/models/components/piiredactionpluginen.ts +223 -0
- package/src/models/components/piiredactionpluginnl.ts +219 -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/components/textcontentpartschema.ts +23 -19
- package/src/models/operations/createagentrequest.ts +199 -0
- package/src/models/operations/createchatcompletion.ts +56 -0
- package/src/models/operations/createcompletion.ts +54 -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 +673 -3909
- package/src/models/operations/createimage.ts +54 -0
- package/src/models/operations/createprompt.ts +115 -22
- package/src/models/operations/creatererank.ts +54 -0
- package/src/models/operations/createrouterresponse.ts +11 -0
- package/src/models/operations/createtool.ts +22 -24
- package/src/models/operations/deploymentgetconfig.ts +16 -18
- package/src/models/operations/getallmemorystores.ts +7 -0
- package/src/models/operations/getallprompts.ts +43 -0
- package/src/models/operations/getalltools.ts +47 -53
- package/src/models/operations/getevals.ts +29 -3214
- package/src/models/operations/getoneprompt.ts +43 -0
- package/src/models/operations/getpromptversion.ts +43 -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/invokeeval.ts +18 -18
- package/src/models/operations/listagents.ts +93 -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 +43 -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 +93 -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 +115 -1
- package/src/models/operations/streamrunagent.ts +116 -1
- package/src/models/operations/updateagent.ts +205 -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 +306 -3524
- package/src/models/operations/updateprompt.ts +97 -0
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +2 -2
|
@@ -1283,20 +1283,20 @@ export type DeploymentGetConfigFormat = ClosedEnum<
|
|
|
1283
1283
|
typeof DeploymentGetConfigFormat
|
|
1284
1284
|
>;
|
|
1285
1285
|
|
|
1286
|
-
export const
|
|
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
|
|
1293
|
+
export type Six = ClosedEnum<typeof Six>;
|
|
1294
1294
|
|
|
1295
|
-
export const
|
|
1295
|
+
export const Five = {
|
|
1296
1296
|
Url: "url",
|
|
1297
1297
|
Base64Json: "base64_json",
|
|
1298
1298
|
} as const;
|
|
1299
|
-
export type
|
|
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
|
-
|
|
|
1369
|
-
|
|
|
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
|
-
|
|
|
1572
|
-
|
|
|
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
|
|
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
|
|
4290
|
-
|
|
4291
|
-
|
|
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
|
-
|
|
4421
|
-
|
|
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
|
-
|
|
4514
|
-
|
|
4511
|
+
Five$inboundSchema,
|
|
4512
|
+
Six$inboundSchema,
|
|
4515
4513
|
]),
|
|
4516
4514
|
).optional(),
|
|
4517
4515
|
cacheControl: z.nullable(
|
|
@@ -30,6 +30,10 @@ export type GetAllMemoryStoresRequest = {
|
|
|
30
30
|
* Filter by the users who last updated the memory store. Accepts a comma-separated list of user IDs
|
|
31
31
|
*/
|
|
32
32
|
updatedBy?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Filter memory stores by project ID
|
|
35
|
+
*/
|
|
36
|
+
projectId?: string | undefined;
|
|
33
37
|
};
|
|
34
38
|
|
|
35
39
|
export const GetAllMemoryStoresObject = {
|
|
@@ -98,6 +102,7 @@ export type GetAllMemoryStoresRequest$Outbound = {
|
|
|
98
102
|
ending_before?: string | undefined;
|
|
99
103
|
search?: string | undefined;
|
|
100
104
|
updated_by?: string | undefined;
|
|
105
|
+
project_id?: string | undefined;
|
|
101
106
|
};
|
|
102
107
|
|
|
103
108
|
/** @internal */
|
|
@@ -111,11 +116,13 @@ export const GetAllMemoryStoresRequest$outboundSchema: z.ZodType<
|
|
|
111
116
|
endingBefore: z.string().optional(),
|
|
112
117
|
search: z.string().optional(),
|
|
113
118
|
updatedBy: z.string().optional(),
|
|
119
|
+
projectId: z.string().optional(),
|
|
114
120
|
}).transform((v) => {
|
|
115
121
|
return remap$(v, {
|
|
116
122
|
startingAfter: "starting_after",
|
|
117
123
|
endingBefore: "ending_before",
|
|
118
124
|
updatedBy: "updated_by",
|
|
125
|
+
projectId: "project_id",
|
|
119
126
|
});
|
|
120
127
|
});
|
|
121
128
|
|
|
@@ -842,6 +842,11 @@ export type GetAllPromptsGuardrails = {
|
|
|
842
842
|
executeOn: GetAllPromptsExecuteOn;
|
|
843
843
|
};
|
|
844
844
|
|
|
845
|
+
export type GetAllPromptsPlugins =
|
|
846
|
+
| components.PIIRedactionPluginEn
|
|
847
|
+
| components.PIIRedactionPluginNl
|
|
848
|
+
| components.PIIRedactionPluginAuto;
|
|
849
|
+
|
|
845
850
|
export type GetAllPromptsFallbacks = {
|
|
846
851
|
/**
|
|
847
852
|
* Fallback model identifier
|
|
@@ -1422,6 +1427,16 @@ export type GetAllPromptsPromptField = {
|
|
|
1422
1427
|
* A list of guardrails to apply to the request.
|
|
1423
1428
|
*/
|
|
1424
1429
|
guardrails?: Array<GetAllPromptsGuardrails> | undefined;
|
|
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.
|
|
1432
|
+
*/
|
|
1433
|
+
plugins?:
|
|
1434
|
+
| Array<
|
|
1435
|
+
| components.PIIRedactionPluginEn
|
|
1436
|
+
| components.PIIRedactionPluginNl
|
|
1437
|
+
| components.PIIRedactionPluginAuto
|
|
1438
|
+
>
|
|
1439
|
+
| undefined;
|
|
1425
1440
|
/**
|
|
1426
1441
|
* Array of fallback models to use if primary model fails
|
|
1427
1442
|
*/
|
|
@@ -2501,6 +2516,27 @@ export function getAllPromptsGuardrailsFromJSON(
|
|
|
2501
2516
|
);
|
|
2502
2517
|
}
|
|
2503
2518
|
|
|
2519
|
+
/** @internal */
|
|
2520
|
+
export const GetAllPromptsPlugins$inboundSchema: z.ZodType<
|
|
2521
|
+
GetAllPromptsPlugins,
|
|
2522
|
+
z.ZodTypeDef,
|
|
2523
|
+
unknown
|
|
2524
|
+
> = z.union([
|
|
2525
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
2526
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
2527
|
+
components.PIIRedactionPluginAuto$inboundSchema,
|
|
2528
|
+
]);
|
|
2529
|
+
|
|
2530
|
+
export function getAllPromptsPluginsFromJSON(
|
|
2531
|
+
jsonString: string,
|
|
2532
|
+
): SafeParseResult<GetAllPromptsPlugins, SDKValidationError> {
|
|
2533
|
+
return safeParse(
|
|
2534
|
+
jsonString,
|
|
2535
|
+
(x) => GetAllPromptsPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
2536
|
+
`Failed to parse 'GetAllPromptsPlugins' from JSON`,
|
|
2537
|
+
);
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2504
2540
|
/** @internal */
|
|
2505
2541
|
export const GetAllPromptsFallbacks$inboundSchema: z.ZodType<
|
|
2506
2542
|
GetAllPromptsFallbacks,
|
|
@@ -3226,6 +3262,13 @@ export const GetAllPromptsPromptField$inboundSchema: z.ZodType<
|
|
|
3226
3262
|
.optional(),
|
|
3227
3263
|
guardrails: z.array(z.lazy(() => GetAllPromptsGuardrails$inboundSchema))
|
|
3228
3264
|
.optional(),
|
|
3265
|
+
plugins: z.array(
|
|
3266
|
+
z.union([
|
|
3267
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
3268
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
3269
|
+
components.PIIRedactionPluginAuto$inboundSchema,
|
|
3270
|
+
]),
|
|
3271
|
+
).optional(),
|
|
3229
3272
|
fallbacks: z.array(z.lazy(() => GetAllPromptsFallbacks$inboundSchema))
|
|
3230
3273
|
.optional(),
|
|
3231
3274
|
retry: z.lazy(() => GetAllPromptsRetry$inboundSchema).optional(),
|
|
@@ -288,7 +288,7 @@ export type GetAllToolsDataToolsStatus = ClosedEnum<
|
|
|
288
288
|
/**
|
|
289
289
|
* The HTTP method to use.
|
|
290
290
|
*/
|
|
291
|
-
export const
|
|
291
|
+
export const DataMethod = {
|
|
292
292
|
Get: "GET",
|
|
293
293
|
Post: "POST",
|
|
294
294
|
Put: "PUT",
|
|
@@ -297,7 +297,7 @@ export const GetAllToolsDataMethod = {
|
|
|
297
297
|
/**
|
|
298
298
|
* The HTTP method to use.
|
|
299
299
|
*/
|
|
300
|
-
export type
|
|
300
|
+
export type DataMethod = ClosedEnum<typeof DataMethod>;
|
|
301
301
|
|
|
302
302
|
export type GetAllToolsHeaders2 = {
|
|
303
303
|
value: string;
|
|
@@ -317,7 +317,7 @@ export type DataBlueprint = {
|
|
|
317
317
|
/**
|
|
318
318
|
* The HTTP method to use.
|
|
319
319
|
*/
|
|
320
|
-
method:
|
|
320
|
+
method: DataMethod;
|
|
321
321
|
/**
|
|
322
322
|
* The headers to send with the request. Can be a string value or an object with value and encrypted properties.
|
|
323
323
|
*/
|
|
@@ -331,7 +331,7 @@ export type DataBlueprint = {
|
|
|
331
331
|
/**
|
|
332
332
|
* The type of the argument.
|
|
333
333
|
*/
|
|
334
|
-
export const
|
|
334
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType = {
|
|
335
335
|
String: "string",
|
|
336
336
|
Number: "number",
|
|
337
337
|
Boolean: "boolean",
|
|
@@ -339,9 +339,9 @@ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type = {
|
|
|
339
339
|
/**
|
|
340
340
|
* The type of the argument.
|
|
341
341
|
*/
|
|
342
|
-
export type
|
|
342
|
+
export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType =
|
|
343
343
|
ClosedEnum<
|
|
344
|
-
typeof
|
|
344
|
+
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
|
|
345
345
|
>;
|
|
346
346
|
|
|
347
347
|
/**
|
|
@@ -353,7 +353,7 @@ export type DataArguments = {
|
|
|
353
353
|
/**
|
|
354
354
|
* The type of the argument.
|
|
355
355
|
*/
|
|
356
|
-
type:
|
|
356
|
+
type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType;
|
|
357
357
|
/**
|
|
358
358
|
* A description of the argument.
|
|
359
359
|
*/
|
|
@@ -368,7 +368,7 @@ export type DataArguments = {
|
|
|
368
368
|
defaultValue?: string | number | boolean | undefined;
|
|
369
369
|
};
|
|
370
370
|
|
|
371
|
-
export type
|
|
371
|
+
export type DataHttp = {
|
|
372
372
|
/**
|
|
373
373
|
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
374
374
|
*/
|
|
@@ -423,7 +423,7 @@ export type DataHTTPTool = {
|
|
|
423
423
|
*/
|
|
424
424
|
status: GetAllToolsDataToolsStatus;
|
|
425
425
|
type: "http";
|
|
426
|
-
http:
|
|
426
|
+
http: DataHttp;
|
|
427
427
|
};
|
|
428
428
|
|
|
429
429
|
/**
|
|
@@ -542,16 +542,15 @@ export type DataStatus = ClosedEnum<typeof DataStatus>;
|
|
|
542
542
|
/**
|
|
543
543
|
* The type must be "object"
|
|
544
544
|
*/
|
|
545
|
-
export const
|
|
545
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONType = {
|
|
546
546
|
Object: "object",
|
|
547
547
|
} as const;
|
|
548
548
|
/**
|
|
549
549
|
* The type must be "object"
|
|
550
550
|
*/
|
|
551
|
-
export type
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
>;
|
|
551
|
+
export type GetAllToolsDataToolsResponse200ApplicationJSONType = ClosedEnum<
|
|
552
|
+
typeof GetAllToolsDataToolsResponse200ApplicationJSONType
|
|
553
|
+
>;
|
|
555
554
|
|
|
556
555
|
/**
|
|
557
556
|
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
@@ -560,7 +559,7 @@ export type DataParameters = {
|
|
|
560
559
|
/**
|
|
561
560
|
* The type must be "object"
|
|
562
561
|
*/
|
|
563
|
-
type:
|
|
562
|
+
type: GetAllToolsDataToolsResponse200ApplicationJSONType;
|
|
564
563
|
/**
|
|
565
564
|
* The properties of the function parameters
|
|
566
565
|
*/
|
|
@@ -572,7 +571,7 @@ export type DataParameters = {
|
|
|
572
571
|
additionalProperties?: { [k: string]: any } | undefined;
|
|
573
572
|
};
|
|
574
573
|
|
|
575
|
-
export type
|
|
574
|
+
export type DataFunction = {
|
|
576
575
|
/**
|
|
577
576
|
* 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.
|
|
578
577
|
*/
|
|
@@ -635,7 +634,7 @@ export type DataFunctionTool = {
|
|
|
635
634
|
*/
|
|
636
635
|
status: DataStatus;
|
|
637
636
|
type: "function";
|
|
638
|
-
function:
|
|
637
|
+
function: DataFunction;
|
|
639
638
|
};
|
|
640
639
|
|
|
641
640
|
export type GetAllToolsData =
|
|
@@ -767,7 +766,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
767
766
|
z.ZodTypeDef,
|
|
768
767
|
unknown
|
|
769
768
|
> = z.object({
|
|
770
|
-
_id: z.string().default("
|
|
769
|
+
_id: z.string().default("tool_01KW9AEEFC5X438E45ZDJ6JH2H"),
|
|
771
770
|
path: z.string(),
|
|
772
771
|
key: z.string(),
|
|
773
772
|
display_name: z.string().optional(),
|
|
@@ -864,7 +863,7 @@ export const DataTools$inboundSchema: z.ZodType<
|
|
|
864
863
|
z.ZodTypeDef,
|
|
865
864
|
unknown
|
|
866
865
|
> = z.object({
|
|
867
|
-
id: z.string().default("
|
|
866
|
+
id: z.string().default("01KW9AEEFBB1RM3ATHHGEK7HSK"),
|
|
868
867
|
name: z.string(),
|
|
869
868
|
description: z.string().optional(),
|
|
870
869
|
schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
|
|
@@ -917,7 +916,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
|
|
|
917
916
|
z.ZodTypeDef,
|
|
918
917
|
unknown
|
|
919
918
|
> = z.object({
|
|
920
|
-
_id: z.string().default("
|
|
919
|
+
_id: z.string().default("tool_01KW9AEEF930F4AK08SCY18RWG"),
|
|
921
920
|
path: z.string(),
|
|
922
921
|
key: z.string(),
|
|
923
922
|
display_name: z.string().optional(),
|
|
@@ -958,9 +957,8 @@ export const GetAllToolsDataToolsStatus$inboundSchema: z.ZodNativeEnum<
|
|
|
958
957
|
> = z.nativeEnum(GetAllToolsDataToolsStatus);
|
|
959
958
|
|
|
960
959
|
/** @internal */
|
|
961
|
-
export const
|
|
962
|
-
|
|
963
|
-
> = z.nativeEnum(GetAllToolsDataMethod);
|
|
960
|
+
export const DataMethod$inboundSchema: z.ZodNativeEnum<typeof DataMethod> = z
|
|
961
|
+
.nativeEnum(DataMethod);
|
|
964
962
|
|
|
965
963
|
/** @internal */
|
|
966
964
|
export const GetAllToolsHeaders2$inboundSchema: z.ZodType<
|
|
@@ -1006,7 +1004,7 @@ export const DataBlueprint$inboundSchema: z.ZodType<
|
|
|
1006
1004
|
unknown
|
|
1007
1005
|
> = z.object({
|
|
1008
1006
|
url: z.string(),
|
|
1009
|
-
method:
|
|
1007
|
+
method: DataMethod$inboundSchema,
|
|
1010
1008
|
headers: z.record(
|
|
1011
1009
|
z.union([z.lazy(() => GetAllToolsHeaders2$inboundSchema), z.string()]),
|
|
1012
1010
|
).optional(),
|
|
@@ -1024,11 +1022,11 @@ export function dataBlueprintFromJSON(
|
|
|
1024
1022
|
}
|
|
1025
1023
|
|
|
1026
1024
|
/** @internal */
|
|
1027
|
-
export const
|
|
1025
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema:
|
|
1028
1026
|
z.ZodNativeEnum<
|
|
1029
|
-
typeof
|
|
1027
|
+
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
|
|
1030
1028
|
> = z.nativeEnum(
|
|
1031
|
-
|
|
1029
|
+
GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType,
|
|
1032
1030
|
);
|
|
1033
1031
|
|
|
1034
1032
|
/** @internal */
|
|
@@ -1055,7 +1053,7 @@ export const DataArguments$inboundSchema: z.ZodType<
|
|
|
1055
1053
|
unknown
|
|
1056
1054
|
> = z.object({
|
|
1057
1055
|
type:
|
|
1058
|
-
|
|
1056
|
+
GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema,
|
|
1059
1057
|
description: z.string(),
|
|
1060
1058
|
send_to_model: z.boolean().default(true),
|
|
1061
1059
|
default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -1077,8 +1075,8 @@ export function dataArgumentsFromJSON(
|
|
|
1077
1075
|
}
|
|
1078
1076
|
|
|
1079
1077
|
/** @internal */
|
|
1080
|
-
export const
|
|
1081
|
-
|
|
1078
|
+
export const DataHttp$inboundSchema: z.ZodType<
|
|
1079
|
+
DataHttp,
|
|
1082
1080
|
z.ZodTypeDef,
|
|
1083
1081
|
unknown
|
|
1084
1082
|
> = z.object({
|
|
@@ -1086,13 +1084,13 @@ export const GetAllToolsDataHttp$inboundSchema: z.ZodType<
|
|
|
1086
1084
|
arguments: z.record(z.lazy(() => DataArguments$inboundSchema)).optional(),
|
|
1087
1085
|
});
|
|
1088
1086
|
|
|
1089
|
-
export function
|
|
1087
|
+
export function dataHttpFromJSON(
|
|
1090
1088
|
jsonString: string,
|
|
1091
|
-
): SafeParseResult<
|
|
1089
|
+
): SafeParseResult<DataHttp, SDKValidationError> {
|
|
1092
1090
|
return safeParse(
|
|
1093
1091
|
jsonString,
|
|
1094
|
-
(x) =>
|
|
1095
|
-
`Failed to parse '
|
|
1092
|
+
(x) => DataHttp$inboundSchema.parse(JSON.parse(x)),
|
|
1093
|
+
`Failed to parse 'DataHttp' from JSON`,
|
|
1096
1094
|
);
|
|
1097
1095
|
}
|
|
1098
1096
|
|
|
@@ -1102,7 +1100,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
1102
1100
|
z.ZodTypeDef,
|
|
1103
1101
|
unknown
|
|
1104
1102
|
> = z.object({
|
|
1105
|
-
_id: z.string().default("
|
|
1103
|
+
_id: z.string().default("tool_01KW9AEEF5V7TKEYHK85Z6FS6D"),
|
|
1106
1104
|
path: z.string(),
|
|
1107
1105
|
key: z.string(),
|
|
1108
1106
|
display_name: z.string().optional(),
|
|
@@ -1115,7 +1113,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
1115
1113
|
updated: z.string(),
|
|
1116
1114
|
status: GetAllToolsDataToolsStatus$inboundSchema.default("live"),
|
|
1117
1115
|
type: z.literal("http"),
|
|
1118
|
-
http: z.lazy(() =>
|
|
1116
|
+
http: z.lazy(() => DataHttp$inboundSchema),
|
|
1119
1117
|
}).transform((v) => {
|
|
1120
1118
|
return remap$(v, {
|
|
1121
1119
|
"_id": "id",
|
|
@@ -1195,7 +1193,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1195
1193
|
z.ZodTypeDef,
|
|
1196
1194
|
unknown
|
|
1197
1195
|
> = z.object({
|
|
1198
|
-
_id: z.string().default("
|
|
1196
|
+
_id: z.string().default("tool_01KW9AEEF3A385FRAK5EHJG23V"),
|
|
1199
1197
|
path: z.string(),
|
|
1200
1198
|
key: z.string(),
|
|
1201
1199
|
display_name: z.string().optional(),
|
|
@@ -1236,12 +1234,9 @@ export const DataStatus$inboundSchema: z.ZodNativeEnum<typeof DataStatus> = z
|
|
|
1236
1234
|
.nativeEnum(DataStatus);
|
|
1237
1235
|
|
|
1238
1236
|
/** @internal */
|
|
1239
|
-
export const
|
|
1240
|
-
z.ZodNativeEnum<
|
|
1241
|
-
|
|
1242
|
-
> = z.nativeEnum(
|
|
1243
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType,
|
|
1244
|
-
);
|
|
1237
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema:
|
|
1238
|
+
z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200ApplicationJSONType> = z
|
|
1239
|
+
.nativeEnum(GetAllToolsDataToolsResponse200ApplicationJSONType);
|
|
1245
1240
|
|
|
1246
1241
|
/** @internal */
|
|
1247
1242
|
export const DataParameters$inboundSchema: z.ZodType<
|
|
@@ -1250,8 +1245,7 @@ export const DataParameters$inboundSchema: z.ZodType<
|
|
|
1250
1245
|
unknown
|
|
1251
1246
|
> = collectExtraKeys$(
|
|
1252
1247
|
z.object({
|
|
1253
|
-
type:
|
|
1254
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema,
|
|
1248
|
+
type: GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema,
|
|
1255
1249
|
properties: z.record(z.any()),
|
|
1256
1250
|
required: z.array(z.string()),
|
|
1257
1251
|
}).catchall(z.any()),
|
|
@@ -1270,8 +1264,8 @@ export function dataParametersFromJSON(
|
|
|
1270
1264
|
}
|
|
1271
1265
|
|
|
1272
1266
|
/** @internal */
|
|
1273
|
-
export const
|
|
1274
|
-
|
|
1267
|
+
export const DataFunction$inboundSchema: z.ZodType<
|
|
1268
|
+
DataFunction,
|
|
1275
1269
|
z.ZodTypeDef,
|
|
1276
1270
|
unknown
|
|
1277
1271
|
> = z.object({
|
|
@@ -1281,13 +1275,13 @@ export const GetAllToolsDataFunction$inboundSchema: z.ZodType<
|
|
|
1281
1275
|
parameters: z.lazy(() => DataParameters$inboundSchema).optional(),
|
|
1282
1276
|
});
|
|
1283
1277
|
|
|
1284
|
-
export function
|
|
1278
|
+
export function dataFunctionFromJSON(
|
|
1285
1279
|
jsonString: string,
|
|
1286
|
-
): SafeParseResult<
|
|
1280
|
+
): SafeParseResult<DataFunction, SDKValidationError> {
|
|
1287
1281
|
return safeParse(
|
|
1288
1282
|
jsonString,
|
|
1289
|
-
(x) =>
|
|
1290
|
-
`Failed to parse '
|
|
1283
|
+
(x) => DataFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1284
|
+
`Failed to parse 'DataFunction' from JSON`,
|
|
1291
1285
|
);
|
|
1292
1286
|
}
|
|
1293
1287
|
|
|
@@ -1297,7 +1291,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1297
1291
|
z.ZodTypeDef,
|
|
1298
1292
|
unknown
|
|
1299
1293
|
> = z.object({
|
|
1300
|
-
_id: z.string().default("
|
|
1294
|
+
_id: z.string().default("tool_01KW9AEEF25RPTN3CGD98860JR"),
|
|
1301
1295
|
path: z.string(),
|
|
1302
1296
|
key: z.string(),
|
|
1303
1297
|
display_name: z.string().optional(),
|
|
@@ -1310,7 +1304,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1310
1304
|
updated: z.string(),
|
|
1311
1305
|
status: DataStatus$inboundSchema.default("live"),
|
|
1312
1306
|
type: z.literal("function"),
|
|
1313
|
-
function: z.lazy(() =>
|
|
1307
|
+
function: z.lazy(() => DataFunction$inboundSchema),
|
|
1314
1308
|
}).transform((v) => {
|
|
1315
1309
|
return remap$(v, {
|
|
1316
1310
|
"_id": "id",
|