@orq-ai/node 4.15.0-rc.21 → 4.15.0-rc.22
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 +30 -28
- package/funcs/piiCapabilities.d.ts +17 -0
- package/funcs/piiCapabilities.d.ts.map +1 -0
- package/funcs/piiCapabilities.js +105 -0
- package/funcs/piiCapabilities.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agentstartedstreamingevent.d.ts +13 -1
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentstartedstreamingevent.js +2 -0
- package/models/components/agentstartedstreamingevent.js.map +1 -1
- package/models/components/capabilitiesresponse.d.ts +62 -0
- package/models/components/capabilitiesresponse.d.ts.map +1 -0
- package/models/components/capabilitiesresponse.js +68 -0
- package/models/components/capabilitiesresponse.js.map +1 -0
- package/models/components/detectrequest.d.ts +48 -0
- package/models/components/detectrequest.d.ts.map +1 -1
- package/models/components/detectrequest.js +4 -0
- package/models/components/detectrequest.js.map +1 -1
- package/models/components/entitylist.d.ts +16 -0
- package/models/components/entitylist.d.ts.map +1 -0
- package/models/components/entitylist.js +50 -0
- package/models/components/entitylist.js.map +1 -0
- package/models/components/guardrailruleplugin.d.ts +25 -0
- package/models/components/guardrailruleplugin.d.ts.map +1 -1
- package/models/components/guardrailruleplugin.js +6 -0
- package/models/components/guardrailruleplugin.js.map +1 -1
- package/models/components/index.d.ts +3 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -3
- package/models/components/index.js.map +1 -1
- package/models/components/piiredactionplugin.d.ts +84 -0
- package/models/components/piiredactionplugin.d.ts.map +1 -0
- package/models/components/piiredactionplugin.js +103 -0
- package/models/components/piiredactionplugin.js.map +1 -0
- package/models/components/publicplugin.d.ts +17 -16
- package/models/components/publicplugin.d.ts.map +1 -1
- package/models/components/publicplugin.js +5 -11
- package/models/components/publicplugin.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/redactrequest.d.ts +48 -0
- package/models/components/redactrequest.d.ts.map +1 -1
- package/models/components/redactrequest.js +8 -0
- package/models/components/redactrequest.js.map +1 -1
- package/models/components/responsehealingplugin.d.ts +2 -17
- package/models/components/responsehealingplugin.d.ts.map +1 -1
- package/models/components/responsehealingplugin.js +3 -13
- package/models/components/responsehealingplugin.js.map +1 -1
- package/models/components/routingruleplugin.d.ts +25 -0
- package/models/components/routingruleplugin.d.ts.map +1 -1
- package/models/components/routingruleplugin.js +6 -0
- package/models/components/routingruleplugin.js.map +1 -1
- package/models/components/tracescrubbingplugin.d.ts +2 -16
- package/models/components/tracescrubbingplugin.d.ts.map +1 -1
- package/models/components/tracescrubbingplugin.js +3 -13
- package/models/components/tracescrubbingplugin.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +67 -13
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +20 -32
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +12 -4
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +4 -8
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +2 -8
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +3 -17
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createimage.d.ts +2 -8
- package/models/operations/createimage.d.ts.map +1 -1
- package/models/operations/createimage.js +2 -16
- package/models/operations/createimage.js.map +1 -1
- package/models/operations/createprompt.d.ts +18 -6
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +8 -16
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/creatererank.d.ts +2 -8
- package/models/operations/creatererank.d.ts.map +1 -1
- package/models/operations/creatererank.js +2 -16
- package/models/operations/creatererank.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getallprompts.d.ts +6 -2
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +4 -8
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getoneprompt.d.ts +6 -2
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +4 -8
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +6 -2
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +4 -8
- 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/listagents.d.ts +25 -5
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +10 -16
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listpromptversions.d.ts +6 -2
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +4 -8
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +25 -5
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +10 -16
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.d.ts +42 -8
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +11 -17
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +42 -8
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +11 -17
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +67 -13
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +20 -32
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updateprompt.d.ts +18 -6
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +8 -16
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/sdk/pii.d.ts +7 -0
- package/sdk/pii.d.ts.map +1 -1
- package/sdk/pii.js +10 -0
- package/sdk/pii.js.map +1 -1
- package/src/funcs/piiCapabilities.ts +144 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentstartedstreamingevent.ts +11 -1
- package/src/models/components/capabilitiesresponse.ts +96 -0
- package/src/models/components/detectrequest.ts +48 -0
- package/src/models/components/entitylist.ts +37 -0
- package/src/models/components/guardrailruleplugin.ts +27 -0
- package/src/models/components/index.ts +3 -3
- package/src/models/components/piiredactionplugin.ts +143 -0
- package/src/models/components/publicplugin.ts +17 -21
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/redactrequest.ts +52 -0
- package/src/models/components/responsehealingplugin.ts +4 -27
- package/src/models/components/routingruleplugin.ts +27 -0
- package/src/models/components/tracescrubbingplugin.ts +4 -24
- package/src/models/operations/createagentrequest.ts +85 -87
- package/src/models/operations/createchatcompletion.ts +18 -26
- package/src/models/operations/createcompletion.ts +3 -51
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createimage.ts +3 -51
- package/src/models/operations/createprompt.ts +31 -43
- package/src/models/operations/creatererank.ts +3 -51
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getallprompts.ts +13 -17
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getoneprompt.ts +13 -17
- package/src/models/operations/getpromptversion.ts +13 -17
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listagents.ts +37 -35
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listpromptversions.ts +13 -17
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +37 -35
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +49 -53
- package/src/models/operations/streamrunagent.ts +49 -53
- package/src/models/operations/updateagent.ts +85 -87
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updateprompt.ts +31 -43
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/pii.ts +16 -0
- package/models/components/piiredactionpluginauto.d.ts +0 -126
- package/models/components/piiredactionpluginauto.d.ts.map +0 -1
- package/models/components/piiredactionpluginauto.js +0 -156
- package/models/components/piiredactionpluginauto.js.map +0 -1
- package/models/components/piiredactionpluginen.d.ts +0 -145
- package/models/components/piiredactionpluginen.d.ts.map +0 -1
- package/models/components/piiredactionpluginen.js +0 -167
- package/models/components/piiredactionpluginen.js.map +0 -1
- package/models/components/piiredactionpluginnl.d.ts +0 -137
- package/models/components/piiredactionpluginnl.d.ts.map +0 -1
- package/models/components/piiredactionpluginnl.js +0 -158
- package/models/components/piiredactionpluginnl.js.map +0 -1
- package/src/models/components/piiredactionpluginauto.ts +0 -185
- package/src/models/components/piiredactionpluginen.ts +0 -222
- package/src/models/components/piiredactionpluginnl.ts +0 -218
|
@@ -201,11 +201,9 @@ export type ModelConfigurationGuardrails = {
|
|
|
201
201
|
};
|
|
202
202
|
|
|
203
203
|
export type ModelConfigurationPlugins =
|
|
204
|
-
| components.
|
|
205
|
-
| components.
|
|
206
|
-
| components.TraceScrubbingPlugin
|
|
207
|
-
| components.PIIRedactionPluginAuto
|
|
208
|
-
| components.ResponseHealingPlugin;
|
|
204
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
205
|
+
| components.ResponseHealingPlugin
|
|
206
|
+
| components.TraceScrubbingPlugin;
|
|
209
207
|
|
|
210
208
|
export type ModelConfigurationFallbacks = {
|
|
211
209
|
/**
|
|
@@ -431,11 +429,9 @@ export type ModelConfigurationParameters = {
|
|
|
431
429
|
*/
|
|
432
430
|
plugins?:
|
|
433
431
|
| Array<
|
|
434
|
-
| components.
|
|
435
|
-
| components.PIIRedactionPluginNl
|
|
436
|
-
| components.TraceScrubbingPlugin
|
|
437
|
-
| components.PIIRedactionPluginAuto
|
|
432
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
438
433
|
| components.ResponseHealingPlugin
|
|
434
|
+
| components.TraceScrubbingPlugin
|
|
439
435
|
>
|
|
440
436
|
| undefined;
|
|
441
437
|
/**
|
|
@@ -700,11 +696,9 @@ export type UpdateAgentFallbackModelConfigurationGuardrails = {
|
|
|
700
696
|
};
|
|
701
697
|
|
|
702
698
|
export type UpdateAgentFallbackModelConfigurationPlugins =
|
|
703
|
-
| components.
|
|
704
|
-
| components.
|
|
705
|
-
| components.TraceScrubbingPlugin
|
|
706
|
-
| components.PIIRedactionPluginAuto
|
|
707
|
-
| components.ResponseHealingPlugin;
|
|
699
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
700
|
+
| components.ResponseHealingPlugin
|
|
701
|
+
| components.TraceScrubbingPlugin;
|
|
708
702
|
|
|
709
703
|
export type UpdateAgentFallbackModelConfigurationFallbacks = {
|
|
710
704
|
/**
|
|
@@ -941,11 +935,9 @@ export type UpdateAgentFallbackModelConfigurationParameters = {
|
|
|
941
935
|
*/
|
|
942
936
|
plugins?:
|
|
943
937
|
| Array<
|
|
944
|
-
| components.
|
|
945
|
-
| components.PIIRedactionPluginNl
|
|
946
|
-
| components.TraceScrubbingPlugin
|
|
947
|
-
| components.PIIRedactionPluginAuto
|
|
938
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
948
939
|
| components.ResponseHealingPlugin
|
|
940
|
+
| components.TraceScrubbingPlugin
|
|
949
941
|
>
|
|
950
942
|
| undefined;
|
|
951
943
|
/**
|
|
@@ -1047,6 +1039,10 @@ export type UpdateAgentEvaluators = {
|
|
|
1047
1039
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1048
1040
|
*/
|
|
1049
1041
|
executeOn: UpdateAgentExecuteOn;
|
|
1042
|
+
/**
|
|
1043
|
+
* Evaluator-specific configuration, passed through to the evaluator at run time. For orq_pii_detection this carries regions, entities, entity_thresholds, language and threshold, and is validated against PIIDetectionGuardrailOptions: regions and entities are two mutually exclusive coverage modes, and every entity_thresholds key must also appear in entities. on_failure is rejected: an evaluator acting as a guardrail always fails closed.
|
|
1044
|
+
*/
|
|
1045
|
+
options?: { [k: string]: any } | undefined;
|
|
1050
1046
|
};
|
|
1051
1047
|
|
|
1052
1048
|
/**
|
|
@@ -1076,6 +1072,10 @@ export type UpdateAgentGuardrails = {
|
|
|
1076
1072
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1077
1073
|
*/
|
|
1078
1074
|
executeOn: UpdateAgentAgentsExecuteOn;
|
|
1075
|
+
/**
|
|
1076
|
+
* Evaluator-specific configuration, passed through to the evaluator at run time. For orq_pii_detection this carries regions, entities, entity_thresholds, language and threshold, and is validated against PIIDetectionGuardrailOptions: regions and entities are two mutually exclusive coverage modes, and every entity_thresholds key must also appear in entities. on_failure is rejected: an evaluator acting as a guardrail always fails closed.
|
|
1077
|
+
*/
|
|
1078
|
+
options?: { [k: string]: any } | undefined;
|
|
1079
1079
|
};
|
|
1080
1080
|
|
|
1081
1081
|
export type UpdateAgentSettings = {
|
|
@@ -1359,6 +1359,10 @@ export type UpdateAgentAgentsEvaluators = {
|
|
|
1359
1359
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1360
1360
|
*/
|
|
1361
1361
|
executeOn: UpdateAgentAgentsResponseExecuteOn;
|
|
1362
|
+
/**
|
|
1363
|
+
* Evaluator-specific configuration, passed through to the evaluator at run time. For orq_pii_detection this carries regions, entities, entity_thresholds, language and threshold, and is validated against PIIDetectionGuardrailOptions: regions and entities are two mutually exclusive coverage modes, and every entity_thresholds key must also appear in entities. on_failure is rejected: an evaluator acting as a guardrail always fails closed.
|
|
1364
|
+
*/
|
|
1365
|
+
options?: { [k: string]: any } | undefined;
|
|
1362
1366
|
};
|
|
1363
1367
|
|
|
1364
1368
|
/**
|
|
@@ -1388,6 +1392,10 @@ export type UpdateAgentAgentsGuardrails = {
|
|
|
1388
1392
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1389
1393
|
*/
|
|
1390
1394
|
executeOn: UpdateAgentAgentsResponse200ExecuteOn;
|
|
1395
|
+
/**
|
|
1396
|
+
* Evaluator-specific configuration, passed through to the evaluator at run time. For orq_pii_detection this carries regions, entities, entity_thresholds, language and threshold, and is validated against PIIDetectionGuardrailOptions: regions and entities are two mutually exclusive coverage modes, and every entity_thresholds key must also appear in entities. on_failure is rejected: an evaluator acting as a guardrail always fails closed.
|
|
1397
|
+
*/
|
|
1398
|
+
options?: { [k: string]: any } | undefined;
|
|
1391
1399
|
};
|
|
1392
1400
|
|
|
1393
1401
|
export type UpdateAgentAgentsSettings = {
|
|
@@ -1417,7 +1425,7 @@ export type UpdateAgentAgentsSettings = {
|
|
|
1417
1425
|
*/
|
|
1418
1426
|
evaluators?: Array<UpdateAgentAgentsEvaluators> | undefined;
|
|
1419
1427
|
/**
|
|
1420
|
-
* Configuration for a guardrail applied to the agent
|
|
1428
|
+
* Configuration for a guardrail applied to the agent. sample_rate has no effect here: a guardrail is a gate rather than a measurement, so it runs on every request.
|
|
1421
1429
|
*/
|
|
1422
1430
|
guardrails?: Array<UpdateAgentAgentsGuardrails> | undefined;
|
|
1423
1431
|
};
|
|
@@ -1615,11 +1623,9 @@ export type UpdateAgentAgentsResponseGuardrails = {
|
|
|
1615
1623
|
};
|
|
1616
1624
|
|
|
1617
1625
|
export type UpdateAgentPlugins =
|
|
1618
|
-
| components.
|
|
1619
|
-
| components.
|
|
1620
|
-
| components.TraceScrubbingPlugin
|
|
1621
|
-
| components.PIIRedactionPluginAuto
|
|
1622
|
-
| components.ResponseHealingPlugin;
|
|
1626
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
1627
|
+
| components.ResponseHealingPlugin
|
|
1628
|
+
| components.TraceScrubbingPlugin;
|
|
1623
1629
|
|
|
1624
1630
|
export type UpdateAgentFallbacks = {
|
|
1625
1631
|
/**
|
|
@@ -1844,11 +1850,9 @@ export type UpdateAgentParameters = {
|
|
|
1844
1850
|
*/
|
|
1845
1851
|
plugins?:
|
|
1846
1852
|
| Array<
|
|
1847
|
-
| components.
|
|
1848
|
-
| components.PIIRedactionPluginNl
|
|
1849
|
-
| components.TraceScrubbingPlugin
|
|
1850
|
-
| components.PIIRedactionPluginAuto
|
|
1853
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
1851
1854
|
| components.ResponseHealingPlugin
|
|
1855
|
+
| components.TraceScrubbingPlugin
|
|
1852
1856
|
>
|
|
1853
1857
|
| undefined;
|
|
1854
1858
|
/**
|
|
@@ -2092,11 +2096,9 @@ export type UpdateAgentFallbackModelConfigurationAgentsGuardrails = {
|
|
|
2092
2096
|
};
|
|
2093
2097
|
|
|
2094
2098
|
export type UpdateAgentFallbackModelConfigurationAgentsPlugins =
|
|
2095
|
-
| components.
|
|
2096
|
-
| components.
|
|
2097
|
-
| components.TraceScrubbingPlugin
|
|
2098
|
-
| components.PIIRedactionPluginAuto
|
|
2099
|
-
| components.ResponseHealingPlugin;
|
|
2099
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
2100
|
+
| components.ResponseHealingPlugin
|
|
2101
|
+
| components.TraceScrubbingPlugin;
|
|
2100
2102
|
|
|
2101
2103
|
export type UpdateAgentFallbackModelConfigurationAgentsFallbacks = {
|
|
2102
2104
|
/**
|
|
@@ -2331,11 +2333,9 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2331
2333
|
*/
|
|
2332
2334
|
plugins?:
|
|
2333
2335
|
| Array<
|
|
2334
|
-
| components.
|
|
2335
|
-
| components.PIIRedactionPluginNl
|
|
2336
|
-
| components.TraceScrubbingPlugin
|
|
2337
|
-
| components.PIIRedactionPluginAuto
|
|
2336
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
2338
2337
|
| components.ResponseHealingPlugin
|
|
2338
|
+
| components.TraceScrubbingPlugin
|
|
2339
2339
|
>
|
|
2340
2340
|
| undefined;
|
|
2341
2341
|
/**
|
|
@@ -2838,11 +2838,9 @@ export function modelConfigurationGuardrailsToJSON(
|
|
|
2838
2838
|
|
|
2839
2839
|
/** @internal */
|
|
2840
2840
|
export type ModelConfigurationPlugins$Outbound =
|
|
2841
|
-
| components.
|
|
2842
|
-
| components.
|
|
2843
|
-
| components.TraceScrubbingPlugin$Outbound
|
|
2844
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
2845
|
-
| components.ResponseHealingPlugin$Outbound;
|
|
2841
|
+
| (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
|
|
2842
|
+
| components.ResponseHealingPlugin$Outbound
|
|
2843
|
+
| components.TraceScrubbingPlugin$Outbound;
|
|
2846
2844
|
|
|
2847
2845
|
/** @internal */
|
|
2848
2846
|
export const ModelConfigurationPlugins$outboundSchema: z.ZodType<
|
|
@@ -2850,11 +2848,11 @@ export const ModelConfigurationPlugins$outboundSchema: z.ZodType<
|
|
|
2850
2848
|
z.ZodTypeDef,
|
|
2851
2849
|
ModelConfigurationPlugins
|
|
2852
2850
|
> = z.union([
|
|
2853
|
-
components.
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
2851
|
+
components.PIIRedactionPlugin$outboundSchema.and(
|
|
2852
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
2853
|
+
),
|
|
2857
2854
|
components.ResponseHealingPlugin$outboundSchema,
|
|
2855
|
+
components.TraceScrubbingPlugin$outboundSchema,
|
|
2858
2856
|
]);
|
|
2859
2857
|
|
|
2860
2858
|
export function modelConfigurationPluginsToJSON(
|
|
@@ -3088,11 +3086,9 @@ export type ModelConfigurationParameters$Outbound = {
|
|
|
3088
3086
|
guardrails?: Array<ModelConfigurationGuardrails$Outbound> | undefined;
|
|
3089
3087
|
plugins?:
|
|
3090
3088
|
| Array<
|
|
3091
|
-
| components.
|
|
3092
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
3093
|
-
| components.TraceScrubbingPlugin$Outbound
|
|
3094
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
3089
|
+
| (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
|
|
3095
3090
|
| components.ResponseHealingPlugin$Outbound
|
|
3091
|
+
| components.TraceScrubbingPlugin$Outbound
|
|
3096
3092
|
>
|
|
3097
3093
|
| undefined;
|
|
3098
3094
|
fallbacks?: Array<ModelConfigurationFallbacks$Outbound> | undefined;
|
|
@@ -3144,11 +3140,11 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3144
3140
|
.optional(),
|
|
3145
3141
|
plugins: z.array(
|
|
3146
3142
|
z.union([
|
|
3147
|
-
components.
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3143
|
+
components.PIIRedactionPlugin$outboundSchema.and(
|
|
3144
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
3145
|
+
),
|
|
3151
3146
|
components.ResponseHealingPlugin$outboundSchema,
|
|
3147
|
+
components.TraceScrubbingPlugin$outboundSchema,
|
|
3152
3148
|
]),
|
|
3153
3149
|
).optional(),
|
|
3154
3150
|
fallbacks: z.array(z.lazy(() => ModelConfigurationFallbacks$outboundSchema))
|
|
@@ -3634,11 +3630,9 @@ export function updateAgentFallbackModelConfigurationGuardrailsToJSON(
|
|
|
3634
3630
|
|
|
3635
3631
|
/** @internal */
|
|
3636
3632
|
export type UpdateAgentFallbackModelConfigurationPlugins$Outbound =
|
|
3637
|
-
| components.
|
|
3638
|
-
| components.
|
|
3639
|
-
| components.TraceScrubbingPlugin$Outbound
|
|
3640
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
3641
|
-
| components.ResponseHealingPlugin$Outbound;
|
|
3633
|
+
| (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
|
|
3634
|
+
| components.ResponseHealingPlugin$Outbound
|
|
3635
|
+
| components.TraceScrubbingPlugin$Outbound;
|
|
3642
3636
|
|
|
3643
3637
|
/** @internal */
|
|
3644
3638
|
export const UpdateAgentFallbackModelConfigurationPlugins$outboundSchema:
|
|
@@ -3647,11 +3641,11 @@ export const UpdateAgentFallbackModelConfigurationPlugins$outboundSchema:
|
|
|
3647
3641
|
z.ZodTypeDef,
|
|
3648
3642
|
UpdateAgentFallbackModelConfigurationPlugins
|
|
3649
3643
|
> = z.union([
|
|
3650
|
-
components.
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3644
|
+
components.PIIRedactionPlugin$outboundSchema.and(
|
|
3645
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
3646
|
+
),
|
|
3654
3647
|
components.ResponseHealingPlugin$outboundSchema,
|
|
3648
|
+
components.TraceScrubbingPlugin$outboundSchema,
|
|
3655
3649
|
]);
|
|
3656
3650
|
|
|
3657
3651
|
export function updateAgentFallbackModelConfigurationPluginsToJSON(
|
|
@@ -3906,11 +3900,9 @@ export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
3906
3900
|
| undefined;
|
|
3907
3901
|
plugins?:
|
|
3908
3902
|
| Array<
|
|
3909
|
-
| components.
|
|
3910
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
3911
|
-
| components.TraceScrubbingPlugin$Outbound
|
|
3912
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
3903
|
+
| (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
|
|
3913
3904
|
| components.ResponseHealingPlugin$Outbound
|
|
3905
|
+
| components.TraceScrubbingPlugin$Outbound
|
|
3914
3906
|
>
|
|
3915
3907
|
| undefined;
|
|
3916
3908
|
fallbacks?:
|
|
@@ -3973,11 +3965,11 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3973
3965
|
).optional(),
|
|
3974
3966
|
plugins: z.array(
|
|
3975
3967
|
z.union([
|
|
3976
|
-
components.
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3968
|
+
components.PIIRedactionPlugin$outboundSchema.and(
|
|
3969
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
3970
|
+
),
|
|
3980
3971
|
components.ResponseHealingPlugin$outboundSchema,
|
|
3972
|
+
components.TraceScrubbingPlugin$outboundSchema,
|
|
3981
3973
|
]),
|
|
3982
3974
|
).optional(),
|
|
3983
3975
|
fallbacks: z.array(
|
|
@@ -4132,6 +4124,7 @@ export type UpdateAgentEvaluators$Outbound = {
|
|
|
4132
4124
|
id: string;
|
|
4133
4125
|
sample_rate: number;
|
|
4134
4126
|
execute_on: string;
|
|
4127
|
+
options?: { [k: string]: any } | undefined;
|
|
4135
4128
|
};
|
|
4136
4129
|
|
|
4137
4130
|
/** @internal */
|
|
@@ -4143,6 +4136,7 @@ export const UpdateAgentEvaluators$outboundSchema: z.ZodType<
|
|
|
4143
4136
|
id: z.string(),
|
|
4144
4137
|
sampleRate: z.number().default(50),
|
|
4145
4138
|
executeOn: UpdateAgentExecuteOn$outboundSchema,
|
|
4139
|
+
options: z.record(z.any()).optional(),
|
|
4146
4140
|
}).transform((v) => {
|
|
4147
4141
|
return remap$(v, {
|
|
4148
4142
|
sampleRate: "sample_rate",
|
|
@@ -4168,6 +4162,7 @@ export type UpdateAgentGuardrails$Outbound = {
|
|
|
4168
4162
|
id: string;
|
|
4169
4163
|
sample_rate: number;
|
|
4170
4164
|
execute_on: string;
|
|
4165
|
+
options?: { [k: string]: any } | undefined;
|
|
4171
4166
|
};
|
|
4172
4167
|
|
|
4173
4168
|
/** @internal */
|
|
@@ -4179,6 +4174,7 @@ export const UpdateAgentGuardrails$outboundSchema: z.ZodType<
|
|
|
4179
4174
|
id: z.string(),
|
|
4180
4175
|
sampleRate: z.number().default(50),
|
|
4181
4176
|
executeOn: UpdateAgentAgentsExecuteOn$outboundSchema,
|
|
4177
|
+
options: z.record(z.any()).optional(),
|
|
4182
4178
|
}).transform((v) => {
|
|
4183
4179
|
return remap$(v, {
|
|
4184
4180
|
sampleRate: "sample_rate",
|
|
@@ -4574,6 +4570,7 @@ export const UpdateAgentAgentsEvaluators$inboundSchema: z.ZodType<
|
|
|
4574
4570
|
id: z.string(),
|
|
4575
4571
|
sample_rate: z.number().default(50),
|
|
4576
4572
|
execute_on: UpdateAgentAgentsResponseExecuteOn$inboundSchema,
|
|
4573
|
+
options: z.record(z.any()).optional(),
|
|
4577
4574
|
}).transform((v) => {
|
|
4578
4575
|
return remap$(v, {
|
|
4579
4576
|
"sample_rate": "sampleRate",
|
|
@@ -4606,6 +4603,7 @@ export const UpdateAgentAgentsGuardrails$inboundSchema: z.ZodType<
|
|
|
4606
4603
|
id: z.string(),
|
|
4607
4604
|
sample_rate: z.number().default(50),
|
|
4608
4605
|
execute_on: UpdateAgentAgentsResponse200ExecuteOn$inboundSchema,
|
|
4606
|
+
options: z.record(z.any()).optional(),
|
|
4609
4607
|
}).transform((v) => {
|
|
4610
4608
|
return remap$(v, {
|
|
4611
4609
|
"sample_rate": "sampleRate",
|
|
@@ -4984,11 +4982,11 @@ export const UpdateAgentPlugins$inboundSchema: z.ZodType<
|
|
|
4984
4982
|
z.ZodTypeDef,
|
|
4985
4983
|
unknown
|
|
4986
4984
|
> = z.union([
|
|
4987
|
-
components.
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
4985
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
4986
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
4987
|
+
),
|
|
4991
4988
|
components.ResponseHealingPlugin$inboundSchema,
|
|
4989
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
4992
4990
|
]);
|
|
4993
4991
|
|
|
4994
4992
|
export function updateAgentPluginsFromJSON(
|
|
@@ -5214,11 +5212,11 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
|
5214
5212
|
).optional(),
|
|
5215
5213
|
plugins: z.array(
|
|
5216
5214
|
z.union([
|
|
5217
|
-
components.
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
5215
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
5216
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
5217
|
+
),
|
|
5221
5218
|
components.ResponseHealingPlugin$inboundSchema,
|
|
5219
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
5222
5220
|
]),
|
|
5223
5221
|
).optional(),
|
|
5224
5222
|
fallbacks: z.array(z.lazy(() => UpdateAgentFallbacks$inboundSchema))
|
|
@@ -5653,11 +5651,11 @@ export const UpdateAgentFallbackModelConfigurationAgentsPlugins$inboundSchema:
|
|
|
5653
5651
|
z.ZodTypeDef,
|
|
5654
5652
|
unknown
|
|
5655
5653
|
> = z.union([
|
|
5656
|
-
components.
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
5654
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
5655
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
5656
|
+
),
|
|
5660
5657
|
components.ResponseHealingPlugin$inboundSchema,
|
|
5658
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
5661
5659
|
]);
|
|
5662
5660
|
|
|
5663
5661
|
export function updateAgentFallbackModelConfigurationAgentsPluginsFromJSON(
|
|
@@ -5942,11 +5940,11 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
5942
5940
|
).optional(),
|
|
5943
5941
|
plugins: z.array(
|
|
5944
5942
|
z.union([
|
|
5945
|
-
components.
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
5943
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
5944
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
5945
|
+
),
|
|
5949
5946
|
components.ResponseHealingPlugin$inboundSchema,
|
|
5947
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
5950
5948
|
]),
|
|
5951
5949
|
).optional(),
|
|
5952
5950
|
fallbacks: z.array(
|
|
@@ -2760,7 +2760,7 @@ export const UpdateDatapointEvaluations4$inboundSchema: z.ZodType<
|
|
|
2760
2760
|
explanation: z.string().optional(),
|
|
2761
2761
|
reviewed_by_id: z.string(),
|
|
2762
2762
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2763
|
-
"2026-09-
|
|
2763
|
+
"2026-09-04T10:08:59.623Z",
|
|
2764
2764
|
).transform(v => new Date(v)),
|
|
2765
2765
|
type: z.literal("string_array"),
|
|
2766
2766
|
values: z.array(z.string()),
|
|
@@ -2860,7 +2860,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2860
2860
|
explanation: z.string().optional(),
|
|
2861
2861
|
reviewed_by_id: z.string(),
|
|
2862
2862
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2863
|
-
"2026-09-
|
|
2863
|
+
"2026-09-04T10:08:59.621Z",
|
|
2864
2864
|
).transform(v => new Date(v)),
|
|
2865
2865
|
type: z.literal("boolean"),
|
|
2866
2866
|
value: z.boolean(),
|
|
@@ -2957,7 +2957,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2957
2957
|
explanation: z.string().optional(),
|
|
2958
2958
|
reviewed_by_id: z.string(),
|
|
2959
2959
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2960
|
-
"2026-09-
|
|
2960
|
+
"2026-09-04T10:08:59.621Z",
|
|
2961
2961
|
).transform(v => new Date(v)),
|
|
2962
2962
|
type: z.literal("number"),
|
|
2963
2963
|
value: z.number(),
|
|
@@ -3046,7 +3046,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
3046
3046
|
explanation: z.string().optional(),
|
|
3047
3047
|
reviewed_by_id: z.string(),
|
|
3048
3048
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3049
|
-
"2026-09-
|
|
3049
|
+
"2026-09-04T10:08:59.621Z",
|
|
3050
3050
|
).transform(v => new Date(v)),
|
|
3051
3051
|
type: z.literal("string"),
|
|
3052
3052
|
value: z.string(),
|
|
@@ -3131,7 +3131,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
3131
3131
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3132
3132
|
.optional(),
|
|
3133
3133
|
updated: z.string().datetime({ offset: true }).default(
|
|
3134
|
-
"2026-09-
|
|
3134
|
+
"2026-09-04T10:08:50.814Z",
|
|
3135
3135
|
).transform(v => new Date(v)),
|
|
3136
3136
|
}).transform((v) => {
|
|
3137
3137
|
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-09-
|
|
185
|
+
"2026-09-04T10:08:50.814Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -587,11 +587,9 @@ export type UpdatePromptGuardrails = {
|
|
|
587
587
|
};
|
|
588
588
|
|
|
589
589
|
export type UpdatePromptPlugins =
|
|
590
|
-
| components.
|
|
591
|
-
| components.
|
|
592
|
-
| components.TraceScrubbingPlugin
|
|
593
|
-
| components.PIIRedactionPluginAuto
|
|
594
|
-
| components.ResponseHealingPlugin;
|
|
590
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
591
|
+
| components.ResponseHealingPlugin
|
|
592
|
+
| components.TraceScrubbingPlugin;
|
|
595
593
|
|
|
596
594
|
export type UpdatePromptFallbacks = {
|
|
597
595
|
/**
|
|
@@ -862,11 +860,9 @@ export type UpdatePromptPromptInput = {
|
|
|
862
860
|
*/
|
|
863
861
|
plugins?:
|
|
864
862
|
| Array<
|
|
865
|
-
| components.
|
|
866
|
-
| components.PIIRedactionPluginNl
|
|
867
|
-
| components.TraceScrubbingPlugin
|
|
868
|
-
| components.PIIRedactionPluginAuto
|
|
863
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
869
864
|
| components.ResponseHealingPlugin
|
|
865
|
+
| components.TraceScrubbingPlugin
|
|
870
866
|
>
|
|
871
867
|
| undefined;
|
|
872
868
|
/**
|
|
@@ -1836,11 +1832,9 @@ export type UpdatePromptPromptsGuardrails = {
|
|
|
1836
1832
|
};
|
|
1837
1833
|
|
|
1838
1834
|
export type UpdatePromptPromptsPlugins =
|
|
1839
|
-
| components.
|
|
1840
|
-
| components.
|
|
1841
|
-
| components.TraceScrubbingPlugin
|
|
1842
|
-
| components.PIIRedactionPluginAuto
|
|
1843
|
-
| components.ResponseHealingPlugin;
|
|
1835
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
1836
|
+
| components.ResponseHealingPlugin
|
|
1837
|
+
| components.TraceScrubbingPlugin;
|
|
1844
1838
|
|
|
1845
1839
|
export type UpdatePromptPromptsFallbacks = {
|
|
1846
1840
|
/**
|
|
@@ -2438,11 +2432,9 @@ export type UpdatePromptPromptField = {
|
|
|
2438
2432
|
*/
|
|
2439
2433
|
plugins?:
|
|
2440
2434
|
| Array<
|
|
2441
|
-
| components.
|
|
2442
|
-
| components.PIIRedactionPluginNl
|
|
2443
|
-
| components.TraceScrubbingPlugin
|
|
2444
|
-
| components.PIIRedactionPluginAuto
|
|
2435
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
2445
2436
|
| components.ResponseHealingPlugin
|
|
2437
|
+
| components.TraceScrubbingPlugin
|
|
2446
2438
|
>
|
|
2447
2439
|
| undefined;
|
|
2448
2440
|
/**
|
|
@@ -3572,11 +3564,9 @@ export function updatePromptGuardrailsToJSON(
|
|
|
3572
3564
|
|
|
3573
3565
|
/** @internal */
|
|
3574
3566
|
export type UpdatePromptPlugins$Outbound =
|
|
3575
|
-
| components.
|
|
3576
|
-
| components.
|
|
3577
|
-
| components.TraceScrubbingPlugin$Outbound
|
|
3578
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
3579
|
-
| components.ResponseHealingPlugin$Outbound;
|
|
3567
|
+
| (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
|
|
3568
|
+
| components.ResponseHealingPlugin$Outbound
|
|
3569
|
+
| components.TraceScrubbingPlugin$Outbound;
|
|
3580
3570
|
|
|
3581
3571
|
/** @internal */
|
|
3582
3572
|
export const UpdatePromptPlugins$outboundSchema: z.ZodType<
|
|
@@ -3584,11 +3574,11 @@ export const UpdatePromptPlugins$outboundSchema: z.ZodType<
|
|
|
3584
3574
|
z.ZodTypeDef,
|
|
3585
3575
|
UpdatePromptPlugins
|
|
3586
3576
|
> = z.union([
|
|
3587
|
-
components.
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3577
|
+
components.PIIRedactionPlugin$outboundSchema.and(
|
|
3578
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
3579
|
+
),
|
|
3591
3580
|
components.ResponseHealingPlugin$outboundSchema,
|
|
3581
|
+
components.TraceScrubbingPlugin$outboundSchema,
|
|
3592
3582
|
]);
|
|
3593
3583
|
|
|
3594
3584
|
export function updatePromptPluginsToJSON(
|
|
@@ -3856,11 +3846,9 @@ export type UpdatePromptPromptInput$Outbound = {
|
|
|
3856
3846
|
guardrails?: Array<UpdatePromptGuardrails$Outbound> | undefined;
|
|
3857
3847
|
plugins?:
|
|
3858
3848
|
| Array<
|
|
3859
|
-
| components.
|
|
3860
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
3861
|
-
| components.TraceScrubbingPlugin$Outbound
|
|
3862
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
3849
|
+
| (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
|
|
3863
3850
|
| components.ResponseHealingPlugin$Outbound
|
|
3851
|
+
| components.TraceScrubbingPlugin$Outbound
|
|
3864
3852
|
>
|
|
3865
3853
|
| undefined;
|
|
3866
3854
|
fallbacks?: Array<UpdatePromptFallbacks$Outbound> | undefined;
|
|
@@ -3927,11 +3915,11 @@ export const UpdatePromptPromptInput$outboundSchema: z.ZodType<
|
|
|
3927
3915
|
.optional(),
|
|
3928
3916
|
plugins: z.array(
|
|
3929
3917
|
z.union([
|
|
3930
|
-
components.
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3918
|
+
components.PIIRedactionPlugin$outboundSchema.and(
|
|
3919
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
3920
|
+
),
|
|
3934
3921
|
components.ResponseHealingPlugin$outboundSchema,
|
|
3922
|
+
components.TraceScrubbingPlugin$outboundSchema,
|
|
3935
3923
|
]),
|
|
3936
3924
|
).optional(),
|
|
3937
3925
|
fallbacks: z.array(z.lazy(() => UpdatePromptFallbacks$outboundSchema))
|
|
@@ -5039,11 +5027,11 @@ export const UpdatePromptPromptsPlugins$inboundSchema: z.ZodType<
|
|
|
5039
5027
|
z.ZodTypeDef,
|
|
5040
5028
|
unknown
|
|
5041
5029
|
> = z.union([
|
|
5042
|
-
components.
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
5030
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
5031
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
5032
|
+
),
|
|
5046
5033
|
components.ResponseHealingPlugin$inboundSchema,
|
|
5034
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
5047
5035
|
]);
|
|
5048
5036
|
|
|
5049
5037
|
export function updatePromptPromptsPluginsFromJSON(
|
|
@@ -5834,11 +5822,11 @@ export const UpdatePromptPromptField$inboundSchema: z.ZodType<
|
|
|
5834
5822
|
.optional(),
|
|
5835
5823
|
plugins: z.array(
|
|
5836
5824
|
z.union([
|
|
5837
|
-
components.
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
5825
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
5826
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
5827
|
+
),
|
|
5841
5828
|
components.ResponseHealingPlugin$inboundSchema,
|
|
5829
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
5842
5830
|
]),
|
|
5843
5831
|
).optional(),
|
|
5844
5832
|
fallbacks: z.array(z.lazy(() => UpdatePromptPromptsFallbacks$inboundSchema))
|
|
@@ -1764,7 +1764,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1764
1764
|
z.ZodTypeDef,
|
|
1765
1765
|
unknown
|
|
1766
1766
|
> = z.object({
|
|
1767
|
-
_id: z.string().default("
|
|
1767
|
+
_id: z.string().default("tool_01M1NY975RENN4PWZPWWRGKH71"),
|
|
1768
1768
|
path: z.string(),
|
|
1769
1769
|
key: z.string(),
|
|
1770
1770
|
display_name: z.string().optional(),
|
|
@@ -1959,7 +1959,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1959
1959
|
z.ZodTypeDef,
|
|
1960
1960
|
unknown
|
|
1961
1961
|
> = z.object({
|
|
1962
|
-
_id: z.string().default("
|
|
1962
|
+
_id: z.string().default("tool_01M1NY975QH10QY0RH72J0VBVP"),
|
|
1963
1963
|
path: z.string(),
|
|
1964
1964
|
key: z.string(),
|
|
1965
1965
|
display_name: z.string().optional(),
|
|
@@ -2054,7 +2054,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2054
2054
|
z.ZodTypeDef,
|
|
2055
2055
|
unknown
|
|
2056
2056
|
> = z.object({
|
|
2057
|
-
_id: z.string().default("
|
|
2057
|
+
_id: z.string().default("tool_01M1NY975PN6785CT1ARQDA4SY"),
|
|
2058
2058
|
path: z.string(),
|
|
2059
2059
|
key: z.string(),
|
|
2060
2060
|
display_name: z.string().optional(),
|
|
@@ -2157,7 +2157,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2157
2157
|
z.ZodTypeDef,
|
|
2158
2158
|
unknown
|
|
2159
2159
|
> = z.object({
|
|
2160
|
-
_id: z.string().default("
|
|
2160
|
+
_id: z.string().default("tool_01M1NY975NY87REE5ZJJK3BKE7"),
|
|
2161
2161
|
path: z.string(),
|
|
2162
2162
|
key: z.string(),
|
|
2163
2163
|
display_name: z.string().optional(),
|
package/src/sdk/pii.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { piiCapabilities } from "../funcs/piiCapabilities.js";
|
|
5
6
|
import { piiDetect } from "../funcs/piiDetect.js";
|
|
6
7
|
import { piiRedact } from "../funcs/piiRedact.js";
|
|
7
8
|
import { piiRestore } from "../funcs/piiRestore.js";
|
|
@@ -10,6 +11,21 @@ import * as components from "../models/components/index.js";
|
|
|
10
11
|
import { unwrapAsync } from "../types/fp.js";
|
|
11
12
|
|
|
12
13
|
export class Pii extends ClientSDK {
|
|
14
|
+
/**
|
|
15
|
+
* Get PII capabilities
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Reports the entity catalog, supported regions, and default thresholds the PII detection service currently exposes, including per-entity default thresholds.
|
|
19
|
+
*/
|
|
20
|
+
async capabilities(
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): Promise<components.CapabilitiesResponse> {
|
|
23
|
+
return unwrapAsync(piiCapabilities(
|
|
24
|
+
this,
|
|
25
|
+
options,
|
|
26
|
+
));
|
|
27
|
+
}
|
|
28
|
+
|
|
13
29
|
/**
|
|
14
30
|
* Detect PII
|
|
15
31
|
*
|