@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
|
@@ -1553,8 +1553,8 @@ export const ResponseBodyTypescript$inboundSchema: z.ZodType<
|
|
|
1553
1553
|
> = z.object({
|
|
1554
1554
|
_id: z.string(),
|
|
1555
1555
|
description: z.string(),
|
|
1556
|
-
created: z.string().default("2026-06-
|
|
1557
|
-
updated: z.string().default("2026-06-
|
|
1556
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
1557
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
1558
1558
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1559
1559
|
guardrail_config: z.nullable(
|
|
1560
1560
|
z.union([
|
|
@@ -1749,8 +1749,8 @@ export const ResponseBodyRagas$inboundSchema: z.ZodType<
|
|
|
1749
1749
|
> = z.object({
|
|
1750
1750
|
_id: z.string(),
|
|
1751
1751
|
description: z.string(),
|
|
1752
|
-
created: z.string().default("2026-06-
|
|
1753
|
-
updated: z.string().default("2026-06-
|
|
1752
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
1753
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
1754
1754
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1755
1755
|
guardrail_config: z.nullable(
|
|
1756
1756
|
z.union([
|
|
@@ -2608,8 +2608,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
2608
2608
|
> = z.object({
|
|
2609
2609
|
_id: z.string(),
|
|
2610
2610
|
description: z.string(),
|
|
2611
|
-
created: z.string().default("2026-06-
|
|
2612
|
-
updated: z.string().default("2026-06-
|
|
2611
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
2612
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
2613
2613
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2614
2614
|
guardrail_config: z.nullable(
|
|
2615
2615
|
z.union([
|
|
@@ -2827,8 +2827,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
2827
2827
|
> = z.object({
|
|
2828
2828
|
_id: z.string(),
|
|
2829
2829
|
description: z.string(),
|
|
2830
|
-
created: z.string().default("2026-06-
|
|
2831
|
-
updated: z.string().default("2026-06-
|
|
2830
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
2831
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
2832
2832
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2833
2833
|
guardrail_config: z.nullable(
|
|
2834
2834
|
z.union([
|
|
@@ -2996,8 +2996,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
2996
2996
|
> = z.object({
|
|
2997
2997
|
_id: z.string(),
|
|
2998
2998
|
description: z.string(),
|
|
2999
|
-
created: z.string().default("2026-06-
|
|
3000
|
-
updated: z.string().default("2026-06-
|
|
2999
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3000
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3001
3001
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3002
3002
|
guardrail_config: z.nullable(
|
|
3003
3003
|
z.union([
|
|
@@ -3150,8 +3150,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3150
3150
|
> = z.object({
|
|
3151
3151
|
_id: z.string(),
|
|
3152
3152
|
description: z.string(),
|
|
3153
|
-
created: z.string().default("2026-06-
|
|
3154
|
-
updated: z.string().default("2026-06-
|
|
3153
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3154
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3155
3155
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3156
3156
|
guardrail_config: z.nullable(
|
|
3157
3157
|
z.union([
|
|
@@ -3513,8 +3513,8 @@ export const UpdateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
3513
3513
|
> = z.object({
|
|
3514
3514
|
_id: z.string(),
|
|
3515
3515
|
description: z.string(),
|
|
3516
|
-
created: z.string().default("2026-06-
|
|
3517
|
-
updated: z.string().default("2026-06-
|
|
3516
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3517
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3518
3518
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3519
3519
|
guardrail_config: z.nullable(
|
|
3520
3520
|
z.union([
|
|
@@ -3726,8 +3726,8 @@ export const UpdateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
3726
3726
|
> = z.object({
|
|
3727
3727
|
_id: z.string(),
|
|
3728
3728
|
description: z.string(),
|
|
3729
|
-
created: z.string().default("2026-06-
|
|
3730
|
-
updated: z.string().default("2026-06-
|
|
3729
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3730
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3731
3731
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3732
3732
|
guardrail_config: z.nullable(
|
|
3733
3733
|
z.union([
|
|
@@ -580,6 +580,10 @@ export type UpdatePromptGuardrails = {
|
|
|
580
580
|
executeOn: UpdatePromptExecuteOn;
|
|
581
581
|
};
|
|
582
582
|
|
|
583
|
+
export type UpdatePromptPlugins =
|
|
584
|
+
| components.PIIRedactionPluginEn
|
|
585
|
+
| components.PIIRedactionPluginNl;
|
|
586
|
+
|
|
583
587
|
export type UpdatePromptFallbacks = {
|
|
584
588
|
/**
|
|
585
589
|
* Fallback model identifier
|
|
@@ -844,6 +848,12 @@ export type UpdatePromptPromptInput = {
|
|
|
844
848
|
* A list of guardrails to apply to the request.
|
|
845
849
|
*/
|
|
846
850
|
guardrails?: Array<UpdatePromptGuardrails> | undefined;
|
|
851
|
+
/**
|
|
852
|
+
* 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.
|
|
853
|
+
*/
|
|
854
|
+
plugins?:
|
|
855
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
856
|
+
| undefined;
|
|
847
857
|
/**
|
|
848
858
|
* Array of fallback models to use if primary model fails
|
|
849
859
|
*/
|
|
@@ -1799,6 +1809,10 @@ export type UpdatePromptPromptsGuardrails = {
|
|
|
1799
1809
|
executeOn: UpdatePromptPromptsExecuteOn;
|
|
1800
1810
|
};
|
|
1801
1811
|
|
|
1812
|
+
export type UpdatePromptPromptsPlugins =
|
|
1813
|
+
| components.PIIRedactionPluginEn
|
|
1814
|
+
| components.PIIRedactionPluginNl;
|
|
1815
|
+
|
|
1802
1816
|
export type UpdatePromptPromptsFallbacks = {
|
|
1803
1817
|
/**
|
|
1804
1818
|
* Fallback model identifier
|
|
@@ -2386,6 +2400,12 @@ export type UpdatePromptPromptField = {
|
|
|
2386
2400
|
* A list of guardrails to apply to the request.
|
|
2387
2401
|
*/
|
|
2388
2402
|
guardrails?: Array<UpdatePromptPromptsGuardrails> | undefined;
|
|
2403
|
+
/**
|
|
2404
|
+
* 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.
|
|
2405
|
+
*/
|
|
2406
|
+
plugins?:
|
|
2407
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
2408
|
+
| undefined;
|
|
2389
2409
|
/**
|
|
2390
2410
|
* Array of fallback models to use if primary model fails
|
|
2391
2411
|
*/
|
|
@@ -3508,6 +3528,29 @@ export function updatePromptGuardrailsToJSON(
|
|
|
3508
3528
|
);
|
|
3509
3529
|
}
|
|
3510
3530
|
|
|
3531
|
+
/** @internal */
|
|
3532
|
+
export type UpdatePromptPlugins$Outbound =
|
|
3533
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3534
|
+
| components.PIIRedactionPluginNl$Outbound;
|
|
3535
|
+
|
|
3536
|
+
/** @internal */
|
|
3537
|
+
export const UpdatePromptPlugins$outboundSchema: z.ZodType<
|
|
3538
|
+
UpdatePromptPlugins$Outbound,
|
|
3539
|
+
z.ZodTypeDef,
|
|
3540
|
+
UpdatePromptPlugins
|
|
3541
|
+
> = z.union([
|
|
3542
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3543
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3544
|
+
]);
|
|
3545
|
+
|
|
3546
|
+
export function updatePromptPluginsToJSON(
|
|
3547
|
+
updatePromptPlugins: UpdatePromptPlugins,
|
|
3548
|
+
): string {
|
|
3549
|
+
return JSON.stringify(
|
|
3550
|
+
UpdatePromptPlugins$outboundSchema.parse(updatePromptPlugins),
|
|
3551
|
+
);
|
|
3552
|
+
}
|
|
3553
|
+
|
|
3511
3554
|
/** @internal */
|
|
3512
3555
|
export type UpdatePromptFallbacks$Outbound = {
|
|
3513
3556
|
model: string;
|
|
@@ -3763,6 +3806,12 @@ export type UpdatePromptPromptInput$Outbound = {
|
|
|
3763
3806
|
parallel_tool_calls?: boolean | undefined;
|
|
3764
3807
|
modalities?: Array<string> | null | undefined;
|
|
3765
3808
|
guardrails?: Array<UpdatePromptGuardrails$Outbound> | undefined;
|
|
3809
|
+
plugins?:
|
|
3810
|
+
| Array<
|
|
3811
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3812
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
3813
|
+
>
|
|
3814
|
+
| undefined;
|
|
3766
3815
|
fallbacks?: Array<UpdatePromptFallbacks$Outbound> | undefined;
|
|
3767
3816
|
retry?: UpdatePromptRetry$Outbound | undefined;
|
|
3768
3817
|
cache?: UpdatePromptCache$Outbound | undefined;
|
|
@@ -3825,6 +3874,12 @@ export const UpdatePromptPromptInput$outboundSchema: z.ZodType<
|
|
|
3825
3874
|
.optional(),
|
|
3826
3875
|
guardrails: z.array(z.lazy(() => UpdatePromptGuardrails$outboundSchema))
|
|
3827
3876
|
.optional(),
|
|
3877
|
+
plugins: z.array(
|
|
3878
|
+
z.union([
|
|
3879
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3880
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3881
|
+
]),
|
|
3882
|
+
).optional(),
|
|
3828
3883
|
fallbacks: z.array(z.lazy(() => UpdatePromptFallbacks$outboundSchema))
|
|
3829
3884
|
.optional(),
|
|
3830
3885
|
retry: z.lazy(() => UpdatePromptRetry$outboundSchema).optional(),
|
|
@@ -4924,6 +4979,26 @@ export function updatePromptPromptsGuardrailsFromJSON(
|
|
|
4924
4979
|
);
|
|
4925
4980
|
}
|
|
4926
4981
|
|
|
4982
|
+
/** @internal */
|
|
4983
|
+
export const UpdatePromptPromptsPlugins$inboundSchema: z.ZodType<
|
|
4984
|
+
UpdatePromptPromptsPlugins,
|
|
4985
|
+
z.ZodTypeDef,
|
|
4986
|
+
unknown
|
|
4987
|
+
> = z.union([
|
|
4988
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
4989
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
4990
|
+
]);
|
|
4991
|
+
|
|
4992
|
+
export function updatePromptPromptsPluginsFromJSON(
|
|
4993
|
+
jsonString: string,
|
|
4994
|
+
): SafeParseResult<UpdatePromptPromptsPlugins, SDKValidationError> {
|
|
4995
|
+
return safeParse(
|
|
4996
|
+
jsonString,
|
|
4997
|
+
(x) => UpdatePromptPromptsPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
4998
|
+
`Failed to parse 'UpdatePromptPromptsPlugins' from JSON`,
|
|
4999
|
+
);
|
|
5000
|
+
}
|
|
5001
|
+
|
|
4927
5002
|
/** @internal */
|
|
4928
5003
|
export const UpdatePromptPromptsFallbacks$inboundSchema: z.ZodType<
|
|
4929
5004
|
UpdatePromptPromptsFallbacks,
|
|
@@ -5698,6 +5773,12 @@ export const UpdatePromptPromptField$inboundSchema: z.ZodType<
|
|
|
5698
5773
|
.optional(),
|
|
5699
5774
|
guardrails: z.array(z.lazy(() => UpdatePromptPromptsGuardrails$inboundSchema))
|
|
5700
5775
|
.optional(),
|
|
5776
|
+
plugins: z.array(
|
|
5777
|
+
z.union([
|
|
5778
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
5779
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
5780
|
+
]),
|
|
5781
|
+
).optional(),
|
|
5701
5782
|
fallbacks: z.array(z.lazy(() => UpdatePromptPromptsFallbacks$inboundSchema))
|
|
5702
5783
|
.optional(),
|
|
5703
5784
|
retry: z.lazy(() => UpdatePromptPromptsRetry$inboundSchema).optional(),
|
|
@@ -1472,7 +1472,7 @@ export const RequestBodyTools$outboundSchema: z.ZodType<
|
|
|
1472
1472
|
z.ZodTypeDef,
|
|
1473
1473
|
RequestBodyTools
|
|
1474
1474
|
> = z.object({
|
|
1475
|
-
id: z.string().default("
|
|
1475
|
+
id: z.string().default("01KW90VP38QKY3V9P18HCSRQEN"),
|
|
1476
1476
|
name: z.string(),
|
|
1477
1477
|
description: z.string().optional(),
|
|
1478
1478
|
schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
@@ -2193,7 +2193,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
2193
2193
|
z.ZodTypeDef,
|
|
2194
2194
|
unknown
|
|
2195
2195
|
> = z.object({
|
|
2196
|
-
_id: z.string().default("
|
|
2196
|
+
_id: z.string().default("tool_01KW90VP2Z5REZBM660ZFR2Q1M"),
|
|
2197
2197
|
path: z.string(),
|
|
2198
2198
|
key: z.string(),
|
|
2199
2199
|
display_name: z.string().optional(),
|
|
@@ -2296,7 +2296,7 @@ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
2296
2296
|
z.ZodTypeDef,
|
|
2297
2297
|
unknown
|
|
2298
2298
|
> = z.object({
|
|
2299
|
-
id: z.string().default("
|
|
2299
|
+
id: z.string().default("01KW90VP2YDBWFYWVPRJJEQYDH"),
|
|
2300
2300
|
name: z.string(),
|
|
2301
2301
|
description: z.string().optional(),
|
|
2302
2302
|
schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -2354,7 +2354,7 @@ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2354
2354
|
z.ZodTypeDef,
|
|
2355
2355
|
unknown
|
|
2356
2356
|
> = z.object({
|
|
2357
|
-
_id: z.string().default("
|
|
2357
|
+
_id: z.string().default("tool_01KW90VP2X6624V5EK5DDGF16K"),
|
|
2358
2358
|
path: z.string(),
|
|
2359
2359
|
key: z.string(),
|
|
2360
2360
|
display_name: z.string().optional(),
|
|
@@ -2543,7 +2543,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2543
2543
|
z.ZodTypeDef,
|
|
2544
2544
|
unknown
|
|
2545
2545
|
> = z.object({
|
|
2546
|
-
_id: z.string().default("
|
|
2546
|
+
_id: z.string().default("tool_01KW90VP2T7F5245V41EF67YQN"),
|
|
2547
2547
|
path: z.string(),
|
|
2548
2548
|
key: z.string(),
|
|
2549
2549
|
display_name: z.string().optional(),
|
|
@@ -2638,7 +2638,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2638
2638
|
z.ZodTypeDef,
|
|
2639
2639
|
unknown
|
|
2640
2640
|
> = z.object({
|
|
2641
|
-
_id: z.string().default("
|
|
2641
|
+
_id: z.string().default("tool_01KW90VP2RW92409RNSQ1AS3E1"),
|
|
2642
2642
|
path: z.string(),
|
|
2643
2643
|
key: z.string(),
|
|
2644
2644
|
display_name: z.string().optional(),
|
|
@@ -2741,7 +2741,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2741
2741
|
z.ZodTypeDef,
|
|
2742
2742
|
unknown
|
|
2743
2743
|
> = z.object({
|
|
2744
|
-
_id: z.string().default("
|
|
2744
|
+
_id: z.string().default("tool_01KW90VP2PD6B8YQKCEABAMHQ6"),
|
|
2745
2745
|
path: z.string(),
|
|
2746
2746
|
key: z.string(),
|
|
2747
2747
|
display_name: z.string().optional(),
|
package/src/sdk/feedback.ts
CHANGED
|
@@ -45,10 +45,10 @@ export class Feedback extends ClientSDK {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* Create a new
|
|
48
|
+
* Create a new API key
|
|
49
49
|
*
|
|
50
50
|
* @remarks
|
|
51
|
-
*
|
|
51
|
+
* Mints a new opaque API key (`sk-orq-<key_id>-<secret>`) in the workspace. The raw secret is returned ONCE in the response and is never retrievable afterwards. The stored record retains only `token_prefix` and a SHA-256 `token_hash`.
|
|
52
52
|
*/
|
|
53
53
|
async create(
|
|
54
54
|
request?: operations.PostV2FeedbackRequestBody | undefined,
|