@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
|
@@ -198,6 +198,10 @@ export type ModelConfigurationGuardrails = {
|
|
|
198
198
|
executeOn: ModelConfigurationExecuteOn;
|
|
199
199
|
};
|
|
200
200
|
|
|
201
|
+
export type ModelConfigurationPlugins =
|
|
202
|
+
| components.PIIRedactionPluginEn
|
|
203
|
+
| components.PIIRedactionPluginNl;
|
|
204
|
+
|
|
201
205
|
export type UpdateAgentModelConfigurationFallbacks = {
|
|
202
206
|
/**
|
|
203
207
|
* Fallback model identifier
|
|
@@ -417,6 +421,12 @@ export type ModelConfigurationParameters = {
|
|
|
417
421
|
* A list of guardrails to apply to the request.
|
|
418
422
|
*/
|
|
419
423
|
guardrails?: Array<ModelConfigurationGuardrails> | undefined;
|
|
424
|
+
/**
|
|
425
|
+
* 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.
|
|
426
|
+
*/
|
|
427
|
+
plugins?:
|
|
428
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
429
|
+
| undefined;
|
|
420
430
|
/**
|
|
421
431
|
* Array of fallback models to use if primary model fails
|
|
422
432
|
*/
|
|
@@ -676,6 +686,10 @@ export type UpdateAgentFallbackModelConfigurationGuardrails = {
|
|
|
676
686
|
executeOn: UpdateAgentFallbackModelConfigurationExecuteOn;
|
|
677
687
|
};
|
|
678
688
|
|
|
689
|
+
export type UpdateAgentFallbackModelConfigurationPlugins =
|
|
690
|
+
| components.PIIRedactionPluginEn
|
|
691
|
+
| components.PIIRedactionPluginNl;
|
|
692
|
+
|
|
679
693
|
export type UpdateAgentFallbackModelConfigurationFallbacks = {
|
|
680
694
|
/**
|
|
681
695
|
* Fallback model identifier
|
|
@@ -906,6 +920,12 @@ export type UpdateAgentFallbackModelConfigurationParameters = {
|
|
|
906
920
|
guardrails?:
|
|
907
921
|
| Array<UpdateAgentFallbackModelConfigurationGuardrails>
|
|
908
922
|
| undefined;
|
|
923
|
+
/**
|
|
924
|
+
* 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.
|
|
925
|
+
*/
|
|
926
|
+
plugins?:
|
|
927
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
928
|
+
| undefined;
|
|
909
929
|
/**
|
|
910
930
|
* Array of fallback models to use if primary model fails
|
|
911
931
|
*/
|
|
@@ -2028,6 +2048,10 @@ export type UpdateAgentAgentsResponseGuardrails = {
|
|
|
2028
2048
|
executeOn: UpdateAgentAgentsResponse200ApplicationJSONExecuteOn;
|
|
2029
2049
|
};
|
|
2030
2050
|
|
|
2051
|
+
export type UpdateAgentPlugins =
|
|
2052
|
+
| components.PIIRedactionPluginEn
|
|
2053
|
+
| components.PIIRedactionPluginNl;
|
|
2054
|
+
|
|
2031
2055
|
export type UpdateAgentFallbacks = {
|
|
2032
2056
|
/**
|
|
2033
2057
|
* Fallback model identifier
|
|
@@ -2246,6 +2270,12 @@ export type UpdateAgentParameters = {
|
|
|
2246
2270
|
* A list of guardrails to apply to the request.
|
|
2247
2271
|
*/
|
|
2248
2272
|
guardrails?: Array<UpdateAgentAgentsResponseGuardrails> | undefined;
|
|
2273
|
+
/**
|
|
2274
|
+
* 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.
|
|
2275
|
+
*/
|
|
2276
|
+
plugins?:
|
|
2277
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
2278
|
+
| undefined;
|
|
2249
2279
|
/**
|
|
2250
2280
|
* Array of fallback models to use if primary model fails
|
|
2251
2281
|
*/
|
|
@@ -2484,6 +2514,10 @@ export type UpdateAgentFallbackModelConfigurationAgentsGuardrails = {
|
|
|
2484
2514
|
executeOn: UpdateAgentFallbackModelConfigurationAgentsExecuteOn;
|
|
2485
2515
|
};
|
|
2486
2516
|
|
|
2517
|
+
export type UpdateAgentFallbackModelConfigurationAgentsPlugins =
|
|
2518
|
+
| components.PIIRedactionPluginEn
|
|
2519
|
+
| components.PIIRedactionPluginNl;
|
|
2520
|
+
|
|
2487
2521
|
export type UpdateAgentFallbackModelConfigurationAgentsFallbacks = {
|
|
2488
2522
|
/**
|
|
2489
2523
|
* Fallback model identifier
|
|
@@ -2712,6 +2746,12 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2712
2746
|
guardrails?:
|
|
2713
2747
|
| Array<UpdateAgentFallbackModelConfigurationAgentsGuardrails>
|
|
2714
2748
|
| undefined;
|
|
2749
|
+
/**
|
|
2750
|
+
* 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.
|
|
2751
|
+
*/
|
|
2752
|
+
plugins?:
|
|
2753
|
+
| Array<components.PIIRedactionPluginEn | components.PIIRedactionPluginNl>
|
|
2754
|
+
| undefined;
|
|
2715
2755
|
/**
|
|
2716
2756
|
* Array of fallback models to use if primary model fails
|
|
2717
2757
|
*/
|
|
@@ -3210,6 +3250,29 @@ export function modelConfigurationGuardrailsToJSON(
|
|
|
3210
3250
|
);
|
|
3211
3251
|
}
|
|
3212
3252
|
|
|
3253
|
+
/** @internal */
|
|
3254
|
+
export type ModelConfigurationPlugins$Outbound =
|
|
3255
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3256
|
+
| components.PIIRedactionPluginNl$Outbound;
|
|
3257
|
+
|
|
3258
|
+
/** @internal */
|
|
3259
|
+
export const ModelConfigurationPlugins$outboundSchema: z.ZodType<
|
|
3260
|
+
ModelConfigurationPlugins$Outbound,
|
|
3261
|
+
z.ZodTypeDef,
|
|
3262
|
+
ModelConfigurationPlugins
|
|
3263
|
+
> = z.union([
|
|
3264
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3265
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3266
|
+
]);
|
|
3267
|
+
|
|
3268
|
+
export function modelConfigurationPluginsToJSON(
|
|
3269
|
+
modelConfigurationPlugins: ModelConfigurationPlugins,
|
|
3270
|
+
): string {
|
|
3271
|
+
return JSON.stringify(
|
|
3272
|
+
ModelConfigurationPlugins$outboundSchema.parse(modelConfigurationPlugins),
|
|
3273
|
+
);
|
|
3274
|
+
}
|
|
3275
|
+
|
|
3213
3276
|
/** @internal */
|
|
3214
3277
|
export type UpdateAgentModelConfigurationFallbacks$Outbound = {
|
|
3215
3278
|
model: string;
|
|
@@ -3432,6 +3495,12 @@ export type ModelConfigurationParameters$Outbound = {
|
|
|
3432
3495
|
parallel_tool_calls?: boolean | undefined;
|
|
3433
3496
|
modalities?: Array<string> | null | undefined;
|
|
3434
3497
|
guardrails?: Array<ModelConfigurationGuardrails$Outbound> | undefined;
|
|
3498
|
+
plugins?:
|
|
3499
|
+
| Array<
|
|
3500
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
3501
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
3502
|
+
>
|
|
3503
|
+
| undefined;
|
|
3435
3504
|
fallbacks?:
|
|
3436
3505
|
| Array<UpdateAgentModelConfigurationFallbacks$Outbound>
|
|
3437
3506
|
| undefined;
|
|
@@ -3481,6 +3550,12 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3481
3550
|
.optional(),
|
|
3482
3551
|
guardrails: z.array(z.lazy(() => ModelConfigurationGuardrails$outboundSchema))
|
|
3483
3552
|
.optional(),
|
|
3553
|
+
plugins: z.array(
|
|
3554
|
+
z.union([
|
|
3555
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
3556
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
3557
|
+
]),
|
|
3558
|
+
).optional(),
|
|
3484
3559
|
fallbacks: z.array(
|
|
3485
3560
|
z.lazy(() => UpdateAgentModelConfigurationFallbacks$outboundSchema),
|
|
3486
3561
|
).optional(),
|
|
@@ -3966,6 +4041,33 @@ export function updateAgentFallbackModelConfigurationGuardrailsToJSON(
|
|
|
3966
4041
|
);
|
|
3967
4042
|
}
|
|
3968
4043
|
|
|
4044
|
+
/** @internal */
|
|
4045
|
+
export type UpdateAgentFallbackModelConfigurationPlugins$Outbound =
|
|
4046
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
4047
|
+
| components.PIIRedactionPluginNl$Outbound;
|
|
4048
|
+
|
|
4049
|
+
/** @internal */
|
|
4050
|
+
export const UpdateAgentFallbackModelConfigurationPlugins$outboundSchema:
|
|
4051
|
+
z.ZodType<
|
|
4052
|
+
UpdateAgentFallbackModelConfigurationPlugins$Outbound,
|
|
4053
|
+
z.ZodTypeDef,
|
|
4054
|
+
UpdateAgentFallbackModelConfigurationPlugins
|
|
4055
|
+
> = z.union([
|
|
4056
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
4057
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
4058
|
+
]);
|
|
4059
|
+
|
|
4060
|
+
export function updateAgentFallbackModelConfigurationPluginsToJSON(
|
|
4061
|
+
updateAgentFallbackModelConfigurationPlugins:
|
|
4062
|
+
UpdateAgentFallbackModelConfigurationPlugins,
|
|
4063
|
+
): string {
|
|
4064
|
+
return JSON.stringify(
|
|
4065
|
+
UpdateAgentFallbackModelConfigurationPlugins$outboundSchema.parse(
|
|
4066
|
+
updateAgentFallbackModelConfigurationPlugins,
|
|
4067
|
+
),
|
|
4068
|
+
);
|
|
4069
|
+
}
|
|
4070
|
+
|
|
3969
4071
|
/** @internal */
|
|
3970
4072
|
export type UpdateAgentFallbackModelConfigurationFallbacks$Outbound = {
|
|
3971
4073
|
model: string;
|
|
@@ -4205,6 +4307,12 @@ export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
4205
4307
|
guardrails?:
|
|
4206
4308
|
| Array<UpdateAgentFallbackModelConfigurationGuardrails$Outbound>
|
|
4207
4309
|
| undefined;
|
|
4310
|
+
plugins?:
|
|
4311
|
+
| Array<
|
|
4312
|
+
| components.PIIRedactionPluginEn$Outbound
|
|
4313
|
+
| components.PIIRedactionPluginNl$Outbound
|
|
4314
|
+
>
|
|
4315
|
+
| undefined;
|
|
4208
4316
|
fallbacks?:
|
|
4209
4317
|
| Array<UpdateAgentFallbackModelConfigurationFallbacks$Outbound>
|
|
4210
4318
|
| undefined;
|
|
@@ -4263,6 +4371,12 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
4263
4371
|
UpdateAgentFallbackModelConfigurationGuardrails$outboundSchema
|
|
4264
4372
|
),
|
|
4265
4373
|
).optional(),
|
|
4374
|
+
plugins: z.array(
|
|
4375
|
+
z.union([
|
|
4376
|
+
components.PIIRedactionPluginEn$outboundSchema,
|
|
4377
|
+
components.PIIRedactionPluginNl$outboundSchema,
|
|
4378
|
+
]),
|
|
4379
|
+
).optional(),
|
|
4266
4380
|
fallbacks: z.array(
|
|
4267
4381
|
z.lazy(() =>
|
|
4268
4382
|
UpdateAgentFallbackModelConfigurationFallbacks$outboundSchema
|
|
@@ -6023,6 +6137,26 @@ export function updateAgentAgentsResponseGuardrailsFromJSON(
|
|
|
6023
6137
|
);
|
|
6024
6138
|
}
|
|
6025
6139
|
|
|
6140
|
+
/** @internal */
|
|
6141
|
+
export const UpdateAgentPlugins$inboundSchema: z.ZodType<
|
|
6142
|
+
UpdateAgentPlugins,
|
|
6143
|
+
z.ZodTypeDef,
|
|
6144
|
+
unknown
|
|
6145
|
+
> = z.union([
|
|
6146
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
6147
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
6148
|
+
]);
|
|
6149
|
+
|
|
6150
|
+
export function updateAgentPluginsFromJSON(
|
|
6151
|
+
jsonString: string,
|
|
6152
|
+
): SafeParseResult<UpdateAgentPlugins, SDKValidationError> {
|
|
6153
|
+
return safeParse(
|
|
6154
|
+
jsonString,
|
|
6155
|
+
(x) => UpdateAgentPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
6156
|
+
`Failed to parse 'UpdateAgentPlugins' from JSON`,
|
|
6157
|
+
);
|
|
6158
|
+
}
|
|
6159
|
+
|
|
6026
6160
|
/** @internal */
|
|
6027
6161
|
export const UpdateAgentFallbacks$inboundSchema: z.ZodType<
|
|
6028
6162
|
UpdateAgentFallbacks,
|
|
@@ -6234,6 +6368,12 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
|
6234
6368
|
guardrails: z.array(
|
|
6235
6369
|
z.lazy(() => UpdateAgentAgentsResponseGuardrails$inboundSchema),
|
|
6236
6370
|
).optional(),
|
|
6371
|
+
plugins: z.array(
|
|
6372
|
+
z.union([
|
|
6373
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
6374
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
6375
|
+
]),
|
|
6376
|
+
).optional(),
|
|
6237
6377
|
fallbacks: z.array(z.lazy(() => UpdateAgentFallbacks$inboundSchema))
|
|
6238
6378
|
.optional(),
|
|
6239
6379
|
cache: z.lazy(() => UpdateAgentCache$inboundSchema).optional(),
|
|
@@ -6659,6 +6799,33 @@ export function updateAgentFallbackModelConfigurationAgentsGuardrailsFromJSON(
|
|
|
6659
6799
|
);
|
|
6660
6800
|
}
|
|
6661
6801
|
|
|
6802
|
+
/** @internal */
|
|
6803
|
+
export const UpdateAgentFallbackModelConfigurationAgentsPlugins$inboundSchema:
|
|
6804
|
+
z.ZodType<
|
|
6805
|
+
UpdateAgentFallbackModelConfigurationAgentsPlugins,
|
|
6806
|
+
z.ZodTypeDef,
|
|
6807
|
+
unknown
|
|
6808
|
+
> = z.union([
|
|
6809
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
6810
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
6811
|
+
]);
|
|
6812
|
+
|
|
6813
|
+
export function updateAgentFallbackModelConfigurationAgentsPluginsFromJSON(
|
|
6814
|
+
jsonString: string,
|
|
6815
|
+
): SafeParseResult<
|
|
6816
|
+
UpdateAgentFallbackModelConfigurationAgentsPlugins,
|
|
6817
|
+
SDKValidationError
|
|
6818
|
+
> {
|
|
6819
|
+
return safeParse(
|
|
6820
|
+
jsonString,
|
|
6821
|
+
(x) =>
|
|
6822
|
+
UpdateAgentFallbackModelConfigurationAgentsPlugins$inboundSchema.parse(
|
|
6823
|
+
JSON.parse(x),
|
|
6824
|
+
),
|
|
6825
|
+
`Failed to parse 'UpdateAgentFallbackModelConfigurationAgentsPlugins' from JSON`,
|
|
6826
|
+
);
|
|
6827
|
+
}
|
|
6828
|
+
|
|
6662
6829
|
/** @internal */
|
|
6663
6830
|
export const UpdateAgentFallbackModelConfigurationAgentsFallbacks$inboundSchema:
|
|
6664
6831
|
z.ZodType<
|
|
@@ -6923,6 +7090,12 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
6923
7090
|
UpdateAgentFallbackModelConfigurationAgentsGuardrails$inboundSchema
|
|
6924
7091
|
),
|
|
6925
7092
|
).optional(),
|
|
7093
|
+
plugins: z.array(
|
|
7094
|
+
z.union([
|
|
7095
|
+
components.PIIRedactionPluginEn$inboundSchema,
|
|
7096
|
+
components.PIIRedactionPluginNl$inboundSchema,
|
|
7097
|
+
]),
|
|
7098
|
+
).optional(),
|
|
6926
7099
|
fallbacks: z.array(
|
|
6927
7100
|
z.lazy(() =>
|
|
6928
7101
|
UpdateAgentFallbackModelConfigurationAgentsFallbacks$inboundSchema
|
|
@@ -2629,7 +2629,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2629
2629
|
explanation: z.string().optional(),
|
|
2630
2630
|
reviewed_by_id: z.string(),
|
|
2631
2631
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2632
|
-
"2026-06-
|
|
2632
|
+
"2026-06-29T06:25:25.347Z",
|
|
2633
2633
|
).transform(v => new Date(v)),
|
|
2634
2634
|
type: z.literal("string_array"),
|
|
2635
2635
|
values: z.array(z.string()),
|
|
@@ -2726,7 +2726,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2726
2726
|
explanation: z.string().optional(),
|
|
2727
2727
|
reviewed_by_id: z.string(),
|
|
2728
2728
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2729
|
-
"2026-06-
|
|
2729
|
+
"2026-06-29T06:25:25.346Z",
|
|
2730
2730
|
).transform(v => new Date(v)),
|
|
2731
2731
|
type: z.literal("number"),
|
|
2732
2732
|
value: z.number(),
|
|
@@ -2815,7 +2815,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
2815
2815
|
explanation: z.string().optional(),
|
|
2816
2816
|
reviewed_by_id: z.string(),
|
|
2817
2817
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2818
|
-
"2026-06-
|
|
2818
|
+
"2026-06-29T06:25:25.345Z",
|
|
2819
2819
|
).transform(v => new Date(v)),
|
|
2820
2820
|
type: z.literal("string"),
|
|
2821
2821
|
value: z.string(),
|
|
@@ -2898,7 +2898,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2898
2898
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2899
2899
|
.optional(),
|
|
2900
2900
|
updated: z.string().datetime({ offset: true }).default(
|
|
2901
|
-
"2026-06-
|
|
2901
|
+
"2026-06-29T06:24:56.736Z",
|
|
2902
2902
|
).transform(v => new Date(v)),
|
|
2903
2903
|
}).transform((v) => {
|
|
2904
2904
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2026-06-
|
|
185
|
+
"2026-06-29T06:24:56.736Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -152,7 +152,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
152
152
|
z.ZodTypeDef,
|
|
153
153
|
unknown
|
|
154
154
|
> = z.object({
|
|
155
|
-
_id: z.string().default("
|
|
155
|
+
_id: z.string().default("01KW90VP70Y0ZXGKMWCNRTBF2P"),
|
|
156
156
|
display_name: z.string(),
|
|
157
157
|
description: z.nullable(z.string()).optional(),
|
|
158
158
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -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,7 +45,10 @@ export class Feedback extends ClientSDK {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* Create
|
|
48
|
+
* Create a new API key
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
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`.
|
|
49
52
|
*/
|
|
50
53
|
async create(
|
|
51
54
|
request?: operations.PostV2FeedbackRequestBody | undefined,
|