@orq-ai/node 4.11.0-rc.51 → 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/README.md +51 -36
- package/funcs/knowledgeList.js +1 -0
- package/funcs/knowledgeList.js.map +1 -1
- package/funcs/managementKeysCreate.d.ts +17 -0
- package/funcs/managementKeysCreate.d.ts.map +1 -0
- package/funcs/managementKeysCreate.js +115 -0
- package/funcs/managementKeysCreate.js.map +1 -0
- package/funcs/managementKeysDelete.d.ts +18 -0
- package/funcs/managementKeysDelete.d.ts.map +1 -0
- package/funcs/managementKeysDelete.js +118 -0
- package/funcs/managementKeysDelete.js.map +1 -0
- package/funcs/managementKeysGet.d.ts +18 -0
- package/funcs/managementKeysGet.d.ts.map +1 -0
- package/funcs/managementKeysGet.js +118 -0
- package/funcs/managementKeysGet.js.map +1 -0
- package/funcs/managementKeysList.d.ts +18 -0
- package/funcs/managementKeysList.d.ts.map +1 -0
- package/funcs/managementKeysList.js +124 -0
- package/funcs/managementKeysList.js.map +1 -0
- package/funcs/managementKeysListCapabilities.d.ts +17 -0
- package/funcs/managementKeysListCapabilities.d.ts.map +1 -0
- package/funcs/managementKeysListCapabilities.js +105 -0
- package/funcs/managementKeysListCapabilities.js.map +1 -0
- package/funcs/managementKeysUpdate.d.ts +18 -0
- package/funcs/managementKeysUpdate.d.ts.map +1 -0
- package/funcs/managementKeysUpdate.js +121 -0
- package/funcs/managementKeysUpdate.js.map +1 -0
- package/funcs/memoryStoresList.js +1 -0
- package/funcs/memoryStoresList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/createmanagementkeyrequest.d.ts +42 -0
- package/models/components/createmanagementkeyrequest.d.ts.map +1 -0
- package/models/components/createmanagementkeyrequest.js +59 -0
- package/models/components/createmanagementkeyrequest.js.map +1 -0
- package/models/components/createmanagementkeyresponse.d.ts +21 -0
- package/models/components/createmanagementkeyresponse.d.ts.map +1 -0
- package/models/components/createmanagementkeyresponse.js +57 -0
- package/models/components/createmanagementkeyresponse.js.map +1 -0
- package/models/components/deletemanagementkeyresponse.d.ts +8 -0
- package/models/components/deletemanagementkeyresponse.d.ts.map +1 -0
- package/models/components/deletemanagementkeyresponse.js +48 -0
- package/models/components/deletemanagementkeyresponse.js.map +1 -0
- package/models/components/domain.d.ts +5 -12
- package/models/components/domain.d.ts.map +1 -1
- package/models/components/domain.js +0 -2
- package/models/components/domain.js.map +1 -1
- package/models/components/getmanagementkeyresponse.d.ts +14 -0
- package/models/components/getmanagementkeyresponse.d.ts.map +1 -0
- package/models/components/getmanagementkeyresponse.js +56 -0
- package/models/components/getmanagementkeyresponse.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 +16 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +16 -0
- package/models/components/index.js.map +1 -1
- package/models/components/listmanagementcapabilitiesresponse.d.ts +14 -0
- package/models/components/listmanagementcapabilitiesresponse.d.ts.map +1 -0
- package/models/components/listmanagementcapabilitiesresponse.js +51 -0
- package/models/components/listmanagementcapabilitiesresponse.js.map +1 -0
- package/models/components/listmanagementkeysresponse.d.ts +28 -0
- package/models/components/listmanagementkeysresponse.d.ts.map +1 -0
- package/models/components/listmanagementkeysresponse.js +58 -0
- package/models/components/listmanagementkeysresponse.js.map +1 -0
- package/models/components/managementkey.d.ts +80 -0
- package/models/components/managementkey.d.ts.map +1 -0
- package/models/components/managementkey.js +77 -0
- package/models/components/managementkey.js.map +1 -0
- package/models/components/managementkeystatus.d.ts +14 -0
- package/models/components/managementkeystatus.d.ts.map +1 -0
- package/models/components/managementkeystatus.js +51 -0
- package/models/components/managementkeystatus.js.map +1 -0
- package/models/components/managementpermissionmode.d.ts +14 -0
- package/models/components/managementpermissionmode.d.ts.map +1 -0
- package/models/components/managementpermissionmode.js +51 -0
- package/models/components/managementpermissionmode.js.map +1 -0
- 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/components/updatemanagementkeyrequest.d.ts +47 -0
- package/models/components/updatemanagementkeyrequest.d.ts.map +1 -0
- package/models/components/updatemanagementkeyrequest.js +63 -0
- package/models/components/updatemanagementkeyrequest.js.map +1 -0
- package/models/components/updatemanagementkeyresponse.d.ts +14 -0
- package/models/components/updatemanagementkeyresponse.d.ts.map +1 -0
- package/models/components/updatemanagementkeyresponse.js +56 -0
- package/models/components/updatemanagementkeyresponse.js.map +1 -0
- 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/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.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/managementkeydelete.d.ts +15 -0
- package/models/operations/managementkeydelete.d.ts.map +1 -0
- package/models/operations/managementkeydelete.js +54 -0
- package/models/operations/managementkeydelete.js.map +1 -0
- package/models/operations/managementkeyget.d.ts +15 -0
- package/models/operations/managementkeyget.d.ts.map +1 -0
- package/models/operations/managementkeyget.js +54 -0
- package/models/operations/managementkeyget.js.map +1 -0
- package/models/operations/managementkeylist.d.ts +53 -0
- package/models/operations/managementkeylist.d.ts.map +1 -0
- package/models/operations/managementkeylist.js +63 -0
- package/models/operations/managementkeylist.js.map +1 -0
- package/models/operations/managementkeyupdate.d.ts +18 -0
- package/models/operations/managementkeyupdate.d.ts.map +1 -0
- package/models/operations/managementkeyupdate.js +57 -0
- package/models/operations/managementkeyupdate.js.map +1 -0
- 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 +5 -5
- package/sdk/feedback.d.ts +4 -1
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +4 -1
- package/sdk/feedback.js.map +1 -1
- package/sdk/managementkeys.d.ts +48 -0
- package/sdk/managementkeys.d.ts.map +1 -0
- package/sdk/managementkeys.js +72 -0
- package/sdk/managementkeys.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/knowledgeList.ts +1 -0
- package/src/funcs/managementKeysCreate.ts +163 -0
- package/src/funcs/managementKeysDelete.ts +172 -0
- package/src/funcs/managementKeysGet.ts +171 -0
- package/src/funcs/managementKeysList.ts +175 -0
- package/src/funcs/managementKeysListCapabilities.ts +144 -0
- package/src/funcs/managementKeysUpdate.ts +175 -0
- package/src/funcs/memoryStoresList.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/createmanagementkeyrequest.ts +69 -0
- package/src/models/components/createmanagementkeyresponse.ts +48 -0
- package/src/models/components/deletemanagementkeyresponse.ts +27 -0
- package/src/models/components/domain.ts +5 -14
- package/src/models/components/getmanagementkeyresponse.ts +40 -0
- package/src/models/components/guardrailrule.ts +3 -0
- package/src/models/components/index.ts +16 -0
- package/src/models/components/listmanagementcapabilitiesresponse.ts +36 -0
- package/src/models/components/listmanagementkeysresponse.ts +56 -0
- package/src/models/components/managementkey.ts +132 -0
- package/src/models/components/managementkeystatus.ts +23 -0
- package/src/models/components/managementpermissionmode.ts +25 -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/components/updatemanagementkeyrequest.ts +80 -0
- package/src/models/components/updatemanagementkeyresponse.ts +40 -0
- 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/index.ts +4 -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/managementkeydelete.ts +39 -0
- package/src/models/operations/managementkeyget.ts +39 -0
- package/src/models/operations/managementkeylist.ts +85 -0
- package/src/models/operations/managementkeyupdate.ts +45 -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 +4 -1
- package/src/sdk/managementkeys.ts +116 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -632,6 +632,10 @@ export type CreatePromptGuardrails = {
|
|
|
632
632
|
executeOn: CreatePromptExecuteOn;
|
|
633
633
|
};
|
|
634
634
|
|
|
635
|
+
export type CreatePromptPlugins =
|
|
636
|
+
| components.PIIRedactionPluginEn
|
|
637
|
+
| components.PIIRedactionPluginNl;
|
|
638
|
+
|
|
635
639
|
export type CreatePromptFallbacks = {
|
|
636
640
|
/**
|
|
637
641
|
* Fallback model identifier
|
|
@@ -894,6 +898,12 @@ export type PromptInput = {
|
|
|
894
898
|
* A list of guardrails to apply to the request.
|
|
895
899
|
*/
|
|
896
900
|
guardrails?: Array<CreatePromptGuardrails> | undefined;
|
|
901
|
+
/**
|
|
902
|
+
* Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
|
|
903
|
+
*/
|
|
904
|
+
plugins?:
|
|
905
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
906
|
+
| undefined;
|
|
897
907
|
/**
|
|
898
908
|
* Array of fallback models to use if primary model fails
|
|
899
909
|
*/
|
|
@@ -1779,6 +1789,10 @@ export type CreatePromptPromptsGuardrails = {
|
|
|
1779
1789
|
executeOn: CreatePromptPromptsExecuteOn;
|
|
1780
1790
|
};
|
|
1781
1791
|
|
|
1792
|
+
export type CreatePromptPromptsPlugins =
|
|
1793
|
+
| components.PIIRedactionPluginEn
|
|
1794
|
+
| components.PIIRedactionPluginNl;
|
|
1795
|
+
|
|
1782
1796
|
export type CreatePromptPromptsFallbacks = {
|
|
1783
1797
|
/**
|
|
1784
1798
|
* Fallback model identifier
|
|
@@ -2366,6 +2380,12 @@ export type PromptField = {
|
|
|
2366
2380
|
* A list of guardrails to apply to the request.
|
|
2367
2381
|
*/
|
|
2368
2382
|
guardrails?: Array<CreatePromptPromptsGuardrails> | undefined;
|
|
2383
|
+
/**
|
|
2384
|
+
* Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
|
|
2385
|
+
*/
|
|
2386
|
+
plugins?:
|
|
2387
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
2388
|
+
| undefined;
|
|
2369
2389
|
/**
|
|
2370
2390
|
* Array of fallback models to use if primary model fails
|
|
2371
2391
|
*/
|
|
@@ -3518,6 +3538,29 @@ export function createPromptGuardrailsToJSON(
|
|
|
3518
3538
|
);
|
|
3519
3539
|
}
|
|
3520
3540
|
|
|
3541
|
+
/** @internal */
|
|
3542
|
+
export type CreatePromptPlugins$Outbound =
|
|
3543
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3544
|
+
| components.PIIRedactionPluginNl$Outbound;
|
|
3545
|
+
|
|
3546
|
+
/** @internal */
|
|
3547
|
+
export const CreatePromptPlugins$outboundSchema: z.ZodType<
|
|
3548
|
+
CreatePromptPlugins$Outbound,
|
|
3549
|
+
z.ZodTypeDef,
|
|
3550
|
+
CreatePromptPlugins
|
|
3551
|
+
> = z.union([
|
|
3552
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3553
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3554
|
+
]);
|
|
3555
|
+
|
|
3556
|
+
export function createPromptPluginsToJSON(
|
|
3557
|
+
createPromptPlugins: CreatePromptPlugins,
|
|
3558
|
+
): string {
|
|
3559
|
+
return JSON.stringify(
|
|
3560
|
+
CreatePromptPlugins$outboundSchema.parse(createPromptPlugins),
|
|
3561
|
+
);
|
|
3562
|
+
}
|
|
3563
|
+
|
|
3521
3564
|
/** @internal */
|
|
3522
3565
|
export type CreatePromptFallbacks$Outbound = {
|
|
3523
3566
|
model: string;
|
|
@@ -3771,6 +3814,12 @@ export type PromptInput$Outbound = {
|
|
|
3771
3814
|
parallel_tool_calls?: boolean | undefined;
|
|
3772
3815
|
modalities?: Array<string> | null | undefined;
|
|
3773
3816
|
guardrails?: Array<CreatePromptGuardrails$Outbound> | undefined;
|
|
3817
|
+
plugins?:
|
|
3818
|
+
| Array<
|
|
3819
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3820
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
3821
|
+
>
|
|
3822
|
+
| undefined;
|
|
3774
3823
|
fallbacks?: Array<CreatePromptFallbacks$Outbound> | undefined;
|
|
3775
3824
|
retry?: CreatePromptRetry$Outbound | undefined;
|
|
3776
3825
|
cache?: CreatePromptCache$Outbound | undefined;
|
|
@@ -3832,6 +3881,12 @@ export const PromptInput$outboundSchema: z.ZodType<
|
|
|
3832
3881
|
.optional(),
|
|
3833
3882
|
guardrails: z.array(z.lazy(() => CreatePromptGuardrails$outboundSchema))
|
|
3834
3883
|
.optional(),
|
|
3884
|
+
plugins: z.array(
|
|
3885
|
+
z.union([
|
|
3886
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3887
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3888
|
+
]),
|
|
3889
|
+
).optional(),
|
|
3835
3890
|
fallbacks: z.array(z.lazy(() => CreatePromptFallbacks$outboundSchema))
|
|
3836
3891
|
.optional(),
|
|
3837
3892
|
retry: z.lazy(() => CreatePromptRetry$outboundSchema).optional(),
|
|
@@ -4842,6 +4897,26 @@ export function createPromptPromptsGuardrailsFromJSON(
|
|
|
4842
4897
|
);
|
|
4843
4898
|
}
|
|
4844
4899
|
|
|
4900
|
+
/** @internal */
|
|
4901
|
+
export const CreatePromptPromptsPlugins$inboundSchema: z.ZodType<
|
|
4902
|
+
CreatePromptPromptsPlugins,
|
|
4903
|
+
z.ZodTypeDef,
|
|
4904
|
+
unknown
|
|
4905
|
+
> = z.union([
|
|
4906
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
4907
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
4908
|
+
]);
|
|
4909
|
+
|
|
4910
|
+
export function createPromptPromptsPluginsFromJSON(
|
|
4911
|
+
jsonString: string,
|
|
4912
|
+
): SafeParseResult<CreatePromptPromptsPlugins, SDKValidationError> {
|
|
4913
|
+
return safeParse(
|
|
4914
|
+
jsonString,
|
|
4915
|
+
(x) => CreatePromptPromptsPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
4916
|
+
`Failed to parse 'CreatePromptPromptsPlugins' from JSON`,
|
|
4917
|
+
);
|
|
4918
|
+
}
|
|
4919
|
+
|
|
4845
4920
|
/** @internal */
|
|
4846
4921
|
export const CreatePromptPromptsFallbacks$inboundSchema: z.ZodType<
|
|
4847
4922
|
CreatePromptPromptsFallbacks,
|
|
@@ -5616,6 +5691,12 @@ export const PromptField$inboundSchema: z.ZodType<
|
|
|
5616
5691
|
.optional(),
|
|
5617
5692
|
guardrails: z.array(z.lazy(() => CreatePromptPromptsGuardrails$inboundSchema))
|
|
5618
5693
|
.optional(),
|
|
5694
|
+
plugins: z.array(
|
|
5695
|
+
z.union([
|
|
5696
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
5697
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
5698
|
+
]),
|
|
5699
|
+
).optional(),
|
|
5619
5700
|
fallbacks: z.array(z.lazy(() => CreatePromptPromptsFallbacks$inboundSchema))
|
|
5620
5701
|
.optional(),
|
|
5621
5702
|
retry: z.lazy(() => CreatePromptPromptsRetry$inboundSchema).optional(),
|
|
@@ -85,6 +85,10 @@ export type CreateRerankTimeout = {
|
|
|
85
85
|
callTimeout: number;
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
+
export type CreateRerankPlugins =
|
|
89
|
+
| components.PIIRedactionPluginEn
|
|
90
|
+
| components.PIIRedactionPluginNl;
|
|
91
|
+
|
|
88
92
|
export type CreateRerankRouterRerankFallbacks = {
|
|
89
93
|
/**
|
|
90
94
|
* Fallback model identifier
|
|
@@ -248,6 +252,12 @@ export type CreateRerankRequestBody = {
|
|
|
248
252
|
* 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.
|
|
249
253
|
*/
|
|
250
254
|
timeout?: CreateRerankTimeout | undefined;
|
|
255
|
+
/**
|
|
256
|
+
* Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
|
|
257
|
+
*/
|
|
258
|
+
plugins?:
|
|
259
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
260
|
+
| undefined;
|
|
251
261
|
orq?: CreateRerankOrq | undefined;
|
|
252
262
|
};
|
|
253
263
|
|
|
@@ -500,6 +510,29 @@ export function createRerankTimeoutToJSON(
|
|
|
500
510
|
);
|
|
501
511
|
}
|
|
502
512
|
|
|
513
|
+
/** @internal */
|
|
514
|
+
export type CreateRerankPlugins$Outbound =
|
|
515
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
516
|
+
| components.PIIRedactionPluginNl$Outbound;
|
|
517
|
+
|
|
518
|
+
/** @internal */
|
|
519
|
+
export const CreateRerankPlugins$outboundSchema: z.ZodType<
|
|
520
|
+
CreateRerankPlugins$Outbound,
|
|
521
|
+
z.ZodTypeDef,
|
|
522
|
+
CreateRerankPlugins
|
|
523
|
+
> = z.union([
|
|
524
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
525
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
526
|
+
]);
|
|
527
|
+
|
|
528
|
+
export function createRerankPluginsToJSON(
|
|
529
|
+
createRerankPlugins: CreateRerankPlugins,
|
|
530
|
+
): string {
|
|
531
|
+
return JSON.stringify(
|
|
532
|
+
CreateRerankPlugins$outboundSchema.parse(createRerankPlugins),
|
|
533
|
+
);
|
|
534
|
+
}
|
|
535
|
+
|
|
503
536
|
/** @internal */
|
|
504
537
|
export type CreateRerankRouterRerankFallbacks$Outbound = {
|
|
505
538
|
model: string;
|
|
@@ -751,6 +784,12 @@ export type CreateRerankRequestBody$Outbound = {
|
|
|
751
784
|
cache?: CreateRerankCache$Outbound | undefined;
|
|
752
785
|
load_balancer?: CreateRerankLoadBalancer1$Outbound | undefined;
|
|
753
786
|
timeout?: CreateRerankTimeout$Outbound | undefined;
|
|
787
|
+
plugins?:
|
|
788
|
+
| Array<
|
|
789
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
790
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
791
|
+
>
|
|
792
|
+
| undefined;
|
|
754
793
|
orq?: CreateRerankOrq$Outbound | undefined;
|
|
755
794
|
};
|
|
756
795
|
|
|
@@ -773,6 +812,12 @@ export const CreateRerankRequestBody$outboundSchema: z.ZodType<
|
|
|
773
812
|
loadBalancer: z.lazy(() => CreateRerankLoadBalancer1$outboundSchema)
|
|
774
813
|
.optional(),
|
|
775
814
|
timeout: z.lazy(() => CreateRerankTimeout$outboundSchema).optional(),
|
|
815
|
+
plugins: z.array(
|
|
816
|
+
z.union([
|
|
817
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
818
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
819
|
+
]),
|
|
820
|
+
).optional(),
|
|
776
821
|
orq: z.lazy(() => CreateRerankOrq$outboundSchema).optional(),
|
|
777
822
|
}).transform((v) => {
|
|
778
823
|
return remap$(v, {
|
|
@@ -711,6 +711,10 @@ export type CreateRouterResponseRequestBody = {
|
|
|
711
711
|
* Whether to allow parallel tool calls.
|
|
712
712
|
*/
|
|
713
713
|
parallelToolCalls?: boolean | undefined;
|
|
714
|
+
/**
|
|
715
|
+
* 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.
|
|
716
|
+
*/
|
|
717
|
+
plugins?: Array<components.PublicPIIRedactionPlugin> | null | undefined;
|
|
714
718
|
/**
|
|
715
719
|
* Penalize new tokens based on their presence in the text so far. Between -2.0 and 2.0.
|
|
716
720
|
*/
|
|
@@ -1670,6 +1674,10 @@ export type CreateRouterResponseRequestBody$Outbound = {
|
|
|
1670
1674
|
metadata?: { [k: string]: string } | undefined;
|
|
1671
1675
|
model?: string | undefined;
|
|
1672
1676
|
parallel_tool_calls?: boolean | undefined;
|
|
1677
|
+
plugins?:
|
|
1678
|
+
| Array<components.PublicPIIRedactionPlugin$Outbound>
|
|
1679
|
+
| null
|
|
1680
|
+
| undefined;
|
|
1673
1681
|
presence_penalty?: number | undefined;
|
|
1674
1682
|
previous_response_id?: string | undefined;
|
|
1675
1683
|
prompt_cache_key?: string | undefined;
|
|
@@ -1727,6 +1735,9 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
|
|
|
1727
1735
|
metadata: z.record(z.string()).optional(),
|
|
1728
1736
|
model: z.string().optional(),
|
|
1729
1737
|
parallelToolCalls: z.boolean().optional(),
|
|
1738
|
+
plugins: z.nullable(
|
|
1739
|
+
z.array(components.PublicPIIRedactionPlugin$outboundSchema),
|
|
1740
|
+
).optional(),
|
|
1730
1741
|
presencePenalty: z.number().optional(),
|
|
1731
1742
|
previousResponseId: z.string().optional(),
|
|
1732
1743
|
promptCacheKey: z.string().optional(),
|
|
@@ -1898,7 +1898,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1898
1898
|
z.ZodTypeDef,
|
|
1899
1899
|
unknown
|
|
1900
1900
|
> = z.object({
|
|
1901
|
-
_id: z.string().default("
|
|
1901
|
+
_id: z.string().default("tool_01KW90VP2147CAZ78XNVW6AGAS"),
|
|
1902
1902
|
path: z.string(),
|
|
1903
1903
|
key: z.string(),
|
|
1904
1904
|
display_name: z.string().optional(),
|
|
@@ -1995,7 +1995,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
1995
1995
|
z.ZodTypeDef,
|
|
1996
1996
|
unknown
|
|
1997
1997
|
> = z.object({
|
|
1998
|
-
id: z.string().default("
|
|
1998
|
+
id: z.string().default("01KW90VP20FTBYVQEA7N821FR6"),
|
|
1999
1999
|
name: z.string(),
|
|
2000
2000
|
description: z.string().optional(),
|
|
2001
2001
|
schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
|
|
@@ -2051,7 +2051,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2051
2051
|
z.ZodTypeDef,
|
|
2052
2052
|
unknown
|
|
2053
2053
|
> = z.object({
|
|
2054
|
-
_id: z.string().default("
|
|
2054
|
+
_id: z.string().default("tool_01KW90VP1YSBJDEHZ3NZDRFB2Y"),
|
|
2055
2055
|
path: z.string(),
|
|
2056
2056
|
key: z.string(),
|
|
2057
2057
|
display_name: z.string().optional(),
|
|
@@ -2237,7 +2237,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2237
2237
|
z.ZodTypeDef,
|
|
2238
2238
|
unknown
|
|
2239
2239
|
> = z.object({
|
|
2240
|
-
_id: z.string().default("
|
|
2240
|
+
_id: z.string().default("tool_01KW90VP1WHKJKB0S9W46ANM7G"),
|
|
2241
2241
|
path: z.string(),
|
|
2242
2242
|
key: z.string(),
|
|
2243
2243
|
display_name: z.string().optional(),
|
|
@@ -2330,7 +2330,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2330
2330
|
z.ZodTypeDef,
|
|
2331
2331
|
unknown
|
|
2332
2332
|
> = z.object({
|
|
2333
|
-
_id: z.string().default("
|
|
2333
|
+
_id: z.string().default("tool_01KW90VP1TT2Y8Z8GH12J76WX8"),
|
|
2334
2334
|
path: z.string(),
|
|
2335
2335
|
key: z.string(),
|
|
2336
2336
|
display_name: z.string().optional(),
|
|
@@ -2431,7 +2431,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2431
2431
|
z.ZodTypeDef,
|
|
2432
2432
|
unknown
|
|
2433
2433
|
> = z.object({
|
|
2434
|
-
_id: z.string().default("
|
|
2434
|
+
_id: z.string().default("tool_01KW90VP1R9ZRFCWKRK2VYC6RE"),
|
|
2435
2435
|
path: z.string(),
|
|
2436
2436
|
key: z.string(),
|
|
2437
2437
|
display_name: z.string().optional(),
|
|
@@ -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,10 @@ export type GetAllPromptsGuardrails = {
|
|
|
842
842
|
executeOn: GetAllPromptsExecuteOn;
|
|
843
843
|
};
|
|
844
844
|
|
|
845
|
+
export type GetAllPromptsPlugins =
|
|
846
|
+
| components.PIIRedactionPluginEn
|
|
847
|
+
| components.PIIRedactionPluginNl;
|
|
848
|
+
|
|
845
849
|
export type GetAllPromptsFallbacks = {
|
|
846
850
|
/**
|
|
847
851
|
* Fallback model identifier
|
|
@@ -1422,6 +1426,12 @@ export type GetAllPromptsPromptField = {
|
|
|
1422
1426
|
* A list of guardrails to apply to the request.
|
|
1423
1427
|
*/
|
|
1424
1428
|
guardrails?: Array<GetAllPromptsGuardrails> | undefined;
|
|
1429
|
+
/**
|
|
1430
|
+
* Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
|
|
1431
|
+
*/
|
|
1432
|
+
plugins?:
|
|
1433
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
1434
|
+
| undefined;
|
|
1425
1435
|
/**
|
|
1426
1436
|
* Array of fallback models to use if primary model fails
|
|
1427
1437
|
*/
|
|
@@ -2501,6 +2511,26 @@ export function getAllPromptsGuardrailsFromJSON(
|
|
|
2501
2511
|
);
|
|
2502
2512
|
}
|
|
2503
2513
|
|
|
2514
|
+
/** @internal */
|
|
2515
|
+
export const GetAllPromptsPlugins$inboundSchema: z.ZodType<
|
|
2516
|
+
GetAllPromptsPlugins,
|
|
2517
|
+
z.ZodTypeDef,
|
|
2518
|
+
unknown
|
|
2519
|
+
> = z.union([
|
|
2520
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
2521
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
2522
|
+
]);
|
|
2523
|
+
|
|
2524
|
+
export function getAllPromptsPluginsFromJSON(
|
|
2525
|
+
jsonString: string,
|
|
2526
|
+
): SafeParseResult<GetAllPromptsPlugins, SDKValidationError> {
|
|
2527
|
+
return safeParse(
|
|
2528
|
+
jsonString,
|
|
2529
|
+
(x) => GetAllPromptsPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
2530
|
+
`Failed to parse 'GetAllPromptsPlugins' from JSON`,
|
|
2531
|
+
);
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2504
2534
|
/** @internal */
|
|
2505
2535
|
export const GetAllPromptsFallbacks$inboundSchema: z.ZodType<
|
|
2506
2536
|
GetAllPromptsFallbacks,
|
|
@@ -3226,6 +3256,12 @@ export const GetAllPromptsPromptField$inboundSchema: z.ZodType<
|
|
|
3226
3256
|
.optional(),
|
|
3227
3257
|
guardrails: z.array(z.lazy(() => GetAllPromptsGuardrails$inboundSchema))
|
|
3228
3258
|
.optional(),
|
|
3259
|
+
plugins: z.array(
|
|
3260
|
+
z.union([
|
|
3261
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
3262
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
3263
|
+
]),
|
|
3264
|
+
).optional(),
|
|
3229
3265
|
fallbacks: z.array(z.lazy(() => GetAllPromptsFallbacks$inboundSchema))
|
|
3230
3266
|
.optional(),
|
|
3231
3267
|
retry: z.lazy(() => GetAllPromptsRetry$inboundSchema).optional(),
|
|
@@ -767,7 +767,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
767
767
|
z.ZodTypeDef,
|
|
768
768
|
unknown
|
|
769
769
|
> = z.object({
|
|
770
|
-
_id: z.string().default("
|
|
770
|
+
_id: z.string().default("tool_01KW90VP1AXN2G3AN2N6BFF5B0"),
|
|
771
771
|
path: z.string(),
|
|
772
772
|
key: z.string(),
|
|
773
773
|
display_name: z.string().optional(),
|
|
@@ -864,7 +864,7 @@ export const DataTools$inboundSchema: z.ZodType<
|
|
|
864
864
|
z.ZodTypeDef,
|
|
865
865
|
unknown
|
|
866
866
|
> = z.object({
|
|
867
|
-
id: z.string().default("
|
|
867
|
+
id: z.string().default("01KW90VP198XXW2KHWKMHQB5KY"),
|
|
868
868
|
name: z.string(),
|
|
869
869
|
description: z.string().optional(),
|
|
870
870
|
schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
|
|
@@ -917,7 +917,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
|
|
|
917
917
|
z.ZodTypeDef,
|
|
918
918
|
unknown
|
|
919
919
|
> = z.object({
|
|
920
|
-
_id: z.string().default("
|
|
920
|
+
_id: z.string().default("tool_01KW90VP17V65J4Q6TXK6K5HK3"),
|
|
921
921
|
path: z.string(),
|
|
922
922
|
key: z.string(),
|
|
923
923
|
display_name: z.string().optional(),
|
|
@@ -1102,7 +1102,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
1102
1102
|
z.ZodTypeDef,
|
|
1103
1103
|
unknown
|
|
1104
1104
|
> = z.object({
|
|
1105
|
-
_id: z.string().default("
|
|
1105
|
+
_id: z.string().default("tool_01KW90VP14K4VMZSWPR0NZB0QC"),
|
|
1106
1106
|
path: z.string(),
|
|
1107
1107
|
key: z.string(),
|
|
1108
1108
|
display_name: z.string().optional(),
|
|
@@ -1195,7 +1195,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1195
1195
|
z.ZodTypeDef,
|
|
1196
1196
|
unknown
|
|
1197
1197
|
> = z.object({
|
|
1198
|
-
_id: z.string().default("
|
|
1198
|
+
_id: z.string().default("tool_01KW90VP12MMKYCNCMYNCXXE0F"),
|
|
1199
1199
|
path: z.string(),
|
|
1200
1200
|
key: z.string(),
|
|
1201
1201
|
display_name: z.string().optional(),
|
|
@@ -1297,7 +1297,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1297
1297
|
z.ZodTypeDef,
|
|
1298
1298
|
unknown
|
|
1299
1299
|
> = z.object({
|
|
1300
|
-
_id: z.string().default("
|
|
1300
|
+
_id: z.string().default("tool_01KW90VP0ZRARRF9NF0CJJQZTR"),
|
|
1301
1301
|
path: z.string(),
|
|
1302
1302
|
key: z.string(),
|
|
1303
1303
|
display_name: z.string().optional(),
|
|
@@ -1074,8 +1074,8 @@ export const DataTypescript$inboundSchema: z.ZodType<
|
|
|
1074
1074
|
> = z.object({
|
|
1075
1075
|
_id: z.string(),
|
|
1076
1076
|
description: z.string(),
|
|
1077
|
-
created: z.string().default("2026-06-
|
|
1078
|
-
updated: z.string().default("2026-06-
|
|
1077
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
1078
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
1079
1079
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1080
1080
|
guardrail_config: z.nullable(
|
|
1081
1081
|
z.union([
|
|
@@ -1256,8 +1256,8 @@ export const DataRagas$inboundSchema: z.ZodType<
|
|
|
1256
1256
|
> = z.object({
|
|
1257
1257
|
_id: z.string(),
|
|
1258
1258
|
description: z.string(),
|
|
1259
|
-
created: z.string().default("2026-06-
|
|
1260
|
-
updated: z.string().default("2026-06-
|
|
1259
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
1260
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
1261
1261
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1262
1262
|
guardrail_config: z.nullable(
|
|
1263
1263
|
z.union([
|
|
@@ -2088,8 +2088,8 @@ export const DataFunction$inboundSchema: z.ZodType<
|
|
|
2088
2088
|
> = z.object({
|
|
2089
2089
|
_id: z.string(),
|
|
2090
2090
|
description: z.string(),
|
|
2091
|
-
created: z.string().default("2026-06-
|
|
2092
|
-
updated: z.string().default("2026-06-
|
|
2091
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
2092
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
2093
2093
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2094
2094
|
guardrail_config: z.nullable(
|
|
2095
2095
|
z.union([
|
|
@@ -2272,8 +2272,8 @@ export const DataPython$inboundSchema: z.ZodType<
|
|
|
2272
2272
|
> = z.object({
|
|
2273
2273
|
_id: z.string(),
|
|
2274
2274
|
description: z.string(),
|
|
2275
|
-
created: z.string().default("2026-06-
|
|
2276
|
-
updated: z.string().default("2026-06-
|
|
2275
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
2276
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
2277
2277
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2278
2278
|
guardrail_config: z.nullable(
|
|
2279
2279
|
z.union([
|
|
@@ -2452,8 +2452,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
|
|
|
2452
2452
|
> = z.object({
|
|
2453
2453
|
_id: z.string(),
|
|
2454
2454
|
description: z.string(),
|
|
2455
|
-
created: z.string().default("2026-06-
|
|
2456
|
-
updated: z.string().default("2026-06-
|
|
2455
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
2456
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
2457
2457
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2458
2458
|
guardrail_config: z.nullable(
|
|
2459
2459
|
z.union([
|
|
@@ -2644,8 +2644,8 @@ export const DataJSON$inboundSchema: z.ZodType<
|
|
|
2644
2644
|
> = z.object({
|
|
2645
2645
|
_id: z.string(),
|
|
2646
2646
|
description: z.string(),
|
|
2647
|
-
created: z.string().default("2026-06-
|
|
2648
|
-
updated: z.string().default("2026-06-
|
|
2647
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
2648
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
2649
2649
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2650
2650
|
guardrail_config: z.nullable(
|
|
2651
2651
|
z.union([
|
|
@@ -3012,8 +3012,8 @@ export const GetEvalsLlm2$inboundSchema: z.ZodType<
|
|
|
3012
3012
|
> = z.object({
|
|
3013
3013
|
_id: z.string(),
|
|
3014
3014
|
description: z.string(),
|
|
3015
|
-
created: z.string().default("2026-06-
|
|
3016
|
-
updated: z.string().default("2026-06-
|
|
3015
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3016
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3017
3017
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3018
3018
|
guardrail_config: z.nullable(
|
|
3019
3019
|
z.union([
|
|
@@ -3225,8 +3225,8 @@ export const GetEvalsLlm1$inboundSchema: z.ZodType<
|
|
|
3225
3225
|
> = z.object({
|
|
3226
3226
|
_id: z.string(),
|
|
3227
3227
|
description: z.string(),
|
|
3228
|
-
created: z.string().default("2026-06-
|
|
3229
|
-
updated: z.string().default("2026-06-
|
|
3228
|
+
created: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3229
|
+
updated: z.string().default("2026-06-29T06:24:58.448Z"),
|
|
3230
3230
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3231
3231
|
guardrail_config: z.nullable(
|
|
3232
3232
|
z.union([
|
|
@@ -824,6 +824,10 @@ export type GetOnePromptGuardrails = {
|
|
|
824
824
|
executeOn: GetOnePromptExecuteOn;
|
|
825
825
|
};
|
|
826
826
|
|
|
827
|
+
export type GetOnePromptPlugins =
|
|
828
|
+
| components.PIIRedactionPluginEn
|
|
829
|
+
| components.PIIRedactionPluginNl;
|
|
830
|
+
|
|
827
831
|
export type GetOnePromptFallbacks = {
|
|
828
832
|
/**
|
|
829
833
|
* Fallback model identifier
|
|
@@ -1404,6 +1408,12 @@ export type GetOnePromptPromptField = {
|
|
|
1404
1408
|
* A list of guardrails to apply to the request.
|
|
1405
1409
|
*/
|
|
1406
1410
|
guardrails?: Array<GetOnePromptGuardrails> | undefined;
|
|
1411
|
+
/**
|
|
1412
|
+
* 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.
|
|
1413
|
+
*/
|
|
1414
|
+
plugins?:
|
|
1415
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
1416
|
+
| undefined;
|
|
1407
1417
|
/**
|
|
1408
1418
|
* Array of fallback models to use if primary model fails
|
|
1409
1419
|
*/
|
|
@@ -2459,6 +2469,26 @@ export function getOnePromptGuardrailsFromJSON(
|
|
|
2459
2469
|
);
|
|
2460
2470
|
}
|
|
2461
2471
|
|
|
2472
|
+
/** @internal */
|
|
2473
|
+
export const GetOnePromptPlugins$inboundSchema: z.ZodType<
|
|
2474
|
+
GetOnePromptPlugins,
|
|
2475
|
+
z.ZodTypeDef,
|
|
2476
|
+
unknown
|
|
2477
|
+
> = z.union([
|
|
2478
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
2479
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
2480
|
+
]);
|
|
2481
|
+
|
|
2482
|
+
export function getOnePromptPluginsFromJSON(
|
|
2483
|
+
jsonString: string,
|
|
2484
|
+
): SafeParseResult<GetOnePromptPlugins, SDKValidationError> {
|
|
2485
|
+
return safeParse(
|
|
2486
|
+
jsonString,
|
|
2487
|
+
(x) => GetOnePromptPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
2488
|
+
`Failed to parse 'GetOnePromptPlugins' from JSON`,
|
|
2489
|
+
);
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2462
2492
|
/** @internal */
|
|
2463
2493
|
export const GetOnePromptFallbacks$inboundSchema: z.ZodType<
|
|
2464
2494
|
GetOnePromptFallbacks,
|
|
@@ -3174,6 +3204,12 @@ export const GetOnePromptPromptField$inboundSchema: z.ZodType<
|
|
|
3174
3204
|
.optional(),
|
|
3175
3205
|
guardrails: z.array(z.lazy(() => GetOnePromptGuardrails$inboundSchema))
|
|
3176
3206
|
.optional(),
|
|
3207
|
+
plugins: z.array(
|
|
3208
|
+
z.union([
|
|
3209
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
3210
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
3211
|
+
]),
|
|
3212
|
+
).optional(),
|
|
3177
3213
|
fallbacks: z.array(z.lazy(() => GetOnePromptFallbacks$inboundSchema))
|
|
3178
3214
|
.optional(),
|
|
3179
3215
|
retry: z.lazy(() => GetOnePromptRetry$inboundSchema).optional(),
|
|
@@ -836,6 +836,10 @@ export type GetPromptVersionGuardrails = {
|
|
|
836
836
|
executeOn: GetPromptVersionExecuteOn;
|
|
837
837
|
};
|
|
838
838
|
|
|
839
|
+
export type GetPromptVersionPlugins =
|
|
840
|
+
| components.PIIRedactionPluginEn
|
|
841
|
+
| components.PIIRedactionPluginNl;
|
|
842
|
+
|
|
839
843
|
export type GetPromptVersionFallbacks = {
|
|
840
844
|
/**
|
|
841
845
|
* Fallback model identifier
|
|
@@ -1417,6 +1421,12 @@ export type GetPromptVersionPromptField = {
|
|
|
1417
1421
|
* A list of guardrails to apply to the request.
|
|
1418
1422
|
*/
|
|
1419
1423
|
guardrails?: Array<GetPromptVersionGuardrails> | undefined;
|
|
1424
|
+
/**
|
|
1425
|
+
* 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.
|
|
1426
|
+
*/
|
|
1427
|
+
plugins?:
|
|
1428
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
1429
|
+
| undefined;
|
|
1420
1430
|
/**
|
|
1421
1431
|
* Array of fallback models to use if primary model fails
|
|
1422
1432
|
*/
|
|
@@ -2488,6 +2498,26 @@ export function getPromptVersionGuardrailsFromJSON(
|
|
|
2488
2498
|
);
|
|
2489
2499
|
}
|
|
2490
2500
|
|
|
2501
|
+
/** @internal */
|
|
2502
|
+
export const GetPromptVersionPlugins$inboundSchema: z.ZodType<
|
|
2503
|
+
GetPromptVersionPlugins,
|
|
2504
|
+
z.ZodTypeDef,
|
|
2505
|
+
unknown
|
|
2506
|
+
> = z.union([
|
|
2507
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
2508
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
2509
|
+
]);
|
|
2510
|
+
|
|
2511
|
+
export function getPromptVersionPluginsFromJSON(
|
|
2512
|
+
jsonString: string,
|
|
2513
|
+
): SafeParseResult<GetPromptVersionPlugins, SDKValidationError> {
|
|
2514
|
+
return safeParse(
|
|
2515
|
+
jsonString,
|
|
2516
|
+
(x) => GetPromptVersionPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
2517
|
+
`Failed to parse 'GetPromptVersionPlugins' from JSON`,
|
|
2518
|
+
);
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2491
2521
|
/** @internal */
|
|
2492
2522
|
export const GetPromptVersionFallbacks$inboundSchema: z.ZodType<
|
|
2493
2523
|
GetPromptVersionFallbacks,
|
|
@@ -3230,6 +3260,12 @@ export const GetPromptVersionPromptField$inboundSchema: z.ZodType<
|
|
|
3230
3260
|
.optional(),
|
|
3231
3261
|
guardrails: z.array(z.lazy(() => GetPromptVersionGuardrails$inboundSchema))
|
|
3232
3262
|
.optional(),
|
|
3263
|
+
plugins: z.array(
|
|
3264
|
+
z.union([
|
|
3265
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
3266
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
3267
|
+
]),
|
|
3268
|
+
).optional(),
|
|
3233
3269
|
fallbacks: z.array(z.lazy(() => GetPromptVersionFallbacks$inboundSchema))
|
|
3234
3270
|
.optional(),
|
|
3235
3271
|
retry: z.lazy(() => GetPromptVersionRetry$inboundSchema).optional(),
|
|
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
142
|
updated: z.string().datetime({ offset: true }).default(
|
|
143
|
-
"2026-06-
|
|
143
|
+
"2026-06-29T06:24:56.736Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-06-
|
|
188
|
+
"2026-06-29T06:24:56.736Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|