@orq-ai/node 4.15.0-rc.21 → 4.15.0-rc.23
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 +54 -28
- package/funcs/hubGet.d.ts +18 -0
- package/funcs/hubGet.d.ts.map +1 -0
- package/funcs/hubGet.js +121 -0
- package/funcs/hubGet.js.map +1 -0
- package/funcs/hubSearch.d.ts +18 -0
- package/funcs/hubSearch.d.ts.map +1 -0
- package/funcs/hubSearch.js +120 -0
- package/funcs/hubSearch.js.map +1 -0
- 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/funcs/sessionsCreate.d.ts +17 -0
- package/funcs/sessionsCreate.d.ts.map +1 -0
- package/funcs/sessionsCreate.js +115 -0
- package/funcs/sessionsCreate.js.map +1 -0
- package/funcs/sessionsDelete.d.ts +17 -0
- package/funcs/sessionsDelete.d.ts.map +1 -0
- package/funcs/sessionsDelete.js +121 -0
- package/funcs/sessionsDelete.js.map +1 -0
- package/funcs/sessionsGet.d.ts +18 -0
- package/funcs/sessionsGet.d.ts.map +1 -0
- package/funcs/sessionsGet.js +121 -0
- package/funcs/sessionsGet.js.map +1 -0
- package/funcs/sessionsGetCount.d.ts +17 -0
- package/funcs/sessionsGetCount.d.ts.map +1 -0
- package/funcs/sessionsGetCount.js +115 -0
- package/funcs/sessionsGetCount.js.map +1 -0
- package/funcs/sessionsList.d.ts +17 -0
- package/funcs/sessionsList.d.ts.map +1 -0
- package/funcs/sessionsList.js +115 -0
- package/funcs/sessionsList.js.map +1 -0
- package/funcs/sessionsListTags.d.ts +16 -0
- package/funcs/sessionsListTags.d.ts.map +1 -0
- package/funcs/sessionsListTags.js +105 -0
- package/funcs/sessionsListTags.js.map +1 -0
- package/funcs/sessionsUpdate.d.ts +18 -0
- package/funcs/sessionsUpdate.d.ts.map +1 -0
- package/funcs/sessionsUpdate.js +124 -0
- package/funcs/sessionsUpdate.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/agentresponserequest.d.ts +6 -6
- package/models/components/agentresponserequest.d.ts.map +1 -1
- package/models/components/agentresponserequest.js +6 -6
- package/models/components/agentresponserequest.js.map +1 -1
- 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/createthreadrequest.d.ts +41 -0
- package/models/components/createthreadrequest.d.ts.map +1 -0
- package/models/components/createthreadrequest.js +75 -0
- package/models/components/createthreadrequest.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/gethubitemresponse.d.ts +11 -0
- package/models/components/gethubitemresponse.d.ts.map +1 -0
- package/models/components/gethubitemresponse.js +56 -0
- package/models/components/gethubitemresponse.js.map +1 -0
- package/models/components/getthreadcountrequest.d.ts +17 -0
- package/models/components/getthreadcountrequest.d.ts.map +1 -0
- package/models/components/getthreadcountrequest.js +52 -0
- package/models/components/getthreadcountrequest.js.map +1 -0
- package/models/components/getthreadcountresponse.d.ts +10 -0
- package/models/components/getthreadcountresponse.d.ts.map +1 -0
- package/models/components/getthreadcountresponse.js +50 -0
- package/models/components/getthreadcountresponse.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/hubitem.d.ts +71 -0
- package/models/components/hubitem.d.ts.map +1 -0
- package/models/components/hubitem.js +83 -0
- package/models/components/hubitem.js.map +1 -0
- package/models/components/hubitemsummary.d.ts +29 -0
- package/models/components/hubitemsummary.d.ts.map +1 -0
- package/models/components/hubitemsummary.js +60 -0
- package/models/components/hubitemsummary.js.map +1 -0
- package/models/components/hubsearchhit.d.ts +11 -0
- package/models/components/hubsearchhit.d.ts.map +1 -0
- package/models/components/hubsearchhit.js +51 -0
- package/models/components/hubsearchhit.js.map +1 -0
- package/models/components/index.d.ts +21 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +21 -3
- package/models/components/index.js.map +1 -1
- package/models/components/listthreadsrequest.d.ts +17 -0
- package/models/components/listthreadsrequest.d.ts.map +1 -0
- package/models/components/listthreadsrequest.js +52 -0
- package/models/components/listthreadsrequest.js.map +1 -0
- package/models/components/listthreadsresponse.d.ts +13 -0
- package/models/components/listthreadsresponse.d.ts.map +1 -0
- package/models/components/listthreadsresponse.js +58 -0
- package/models/components/listthreadsresponse.js.map +1 -0
- package/models/components/openaipromptcacheoptions.d.ts +37 -0
- package/models/components/openaipromptcacheoptions.d.ts.map +1 -0
- package/models/components/openaipromptcacheoptions.js +75 -0
- package/models/components/openaipromptcacheoptions.js.map +1 -0
- 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/publicresponseresource.d.ts +2 -0
- package/models/components/publicresponseresource.d.ts.map +1 -1
- package/models/components/publicresponseresource.js +3 -0
- package/models/components/publicresponseresource.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/searchhubitemsresponse.d.ts +11 -0
- package/models/components/searchhubitemsresponse.d.ts.map +1 -0
- package/models/components/searchhubitemsresponse.js +51 -0
- package/models/components/searchhubitemsresponse.js.map +1 -0
- package/models/components/sessioninterval.d.ts +19 -0
- package/models/components/sessioninterval.d.ts.map +1 -0
- package/models/components/sessioninterval.js +56 -0
- package/models/components/sessioninterval.js.map +1 -0
- package/models/components/textcontentpartschema.d.ts +5 -5
- package/models/components/textcontentpartschema.d.ts.map +1 -1
- package/models/components/textcontentpartschema.js +6 -6
- package/models/components/textcontentpartschema.js.map +1 -1
- package/models/components/thread.d.ts +54 -0
- package/models/components/thread.d.ts.map +1 -0
- package/models/components/thread.js +79 -0
- package/models/components/thread.js.map +1 -0
- package/models/components/threadbilling.d.ts +21 -0
- package/models/components/threadbilling.d.ts.map +1 -0
- package/models/components/threadbilling.js +75 -0
- package/models/components/threadbilling.js.map +1 -0
- package/models/components/threadfilters.d.ts +34 -0
- package/models/components/threadfilters.d.ts.map +1 -0
- package/models/components/threadfilters.js +65 -0
- package/models/components/threadfilters.js.map +1 -0
- package/models/components/threadkind.d.ts +13 -0
- package/models/components/threadkind.d.ts.map +1 -0
- package/models/components/threadkind.js +51 -0
- package/models/components/threadkind.js.map +1 -0
- package/models/components/threadusage.d.ts +21 -0
- package/models/components/threadusage.d.ts.map +1 -0
- package/models/components/threadusage.js +75 -0
- package/models/components/threadusage.js.map +1 -0
- 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/components/updatethreadrequest.d.ts +51 -0
- package/models/components/updatethreadrequest.d.ts.map +1 -0
- package/models/components/updatethreadrequest.js +79 -0
- package/models/components/updatethreadrequest.js.map +1 -0
- 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/createrouterresponse.d.ts +80 -8
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +48 -5
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/deletesession.d.ts +12 -0
- package/models/operations/deletesession.d.ts.map +1 -0
- package/models/operations/deletesession.js +54 -0
- package/models/operations/deletesession.js.map +1 -0
- 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/getsession.d.ts +12 -0
- package/models/operations/getsession.d.ts.map +1 -0
- package/models/operations/getsession.js +54 -0
- package/models/operations/getsession.js.map +1 -0
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/hubget.d.ts +12 -0
- package/models/operations/hubget.d.ts.map +1 -0
- package/models/operations/hubget.js +49 -0
- package/models/operations/hubget.js.map +1 -0
- package/models/operations/hubsearch.d.ts +14 -0
- package/models/operations/hubsearch.d.ts.map +1 -0
- package/models/operations/hubsearch.js +50 -0
- package/models/operations/hubsearch.js.map +1 -0
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- 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/modelcreateopenailike.d.ts +4 -0
- package/models/operations/modelcreateopenailike.d.ts.map +1 -1
- package/models/operations/modelcreateopenailike.js +4 -0
- package/models/operations/modelcreateopenailike.js.map +1 -1
- package/models/operations/modelupdateopenailike.d.ts +4 -0
- package/models/operations/modelupdateopenailike.d.ts.map +1 -1
- package/models/operations/modelupdateopenailike.js +4 -0
- package/models/operations/modelupdateopenailike.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/postv2routerocr.d.ts +24 -0
- package/models/operations/postv2routerocr.d.ts.map +1 -1
- package/models/operations/postv2routerocr.js +12 -0
- package/models/operations/postv2routerocr.js.map +1 -1
- 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/retrieveresponse.d.ts +1 -0
- package/models/operations/retrieveresponse.d.ts.map +1 -1
- package/models/operations/retrieveresponse.js +2 -0
- package/models/operations/retrieveresponse.js.map +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/updatesession.d.ts +15 -0
- package/models/operations/updatesession.d.ts.map +1 -0
- package/models/operations/updatesession.js +57 -0
- package/models/operations/updatesession.js.map +1 -0
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/sdk/hub.d.ts +20 -0
- package/sdk/hub.d.ts.map +1 -0
- package/sdk/hub.js +32 -0
- package/sdk/hub.js.map +1 -0
- 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/sdk/sdk.d.ts +6 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +8 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/sessions.d.ts +55 -0
- package/sdk/sessions.d.ts.map +1 -0
- package/sdk/sessions.js +82 -0
- package/sdk/sessions.js.map +1 -0
- package/src/funcs/hubGet.ts +168 -0
- package/src/funcs/hubSearch.ts +169 -0
- package/src/funcs/piiCapabilities.ts +144 -0
- package/src/funcs/sessionsCreate.ts +162 -0
- package/src/funcs/sessionsDelete.ts +168 -0
- package/src/funcs/sessionsGet.ts +168 -0
- package/src/funcs/sessionsGetCount.ts +162 -0
- package/src/funcs/sessionsList.ts +162 -0
- package/src/funcs/sessionsListTags.ts +144 -0
- package/src/funcs/sessionsUpdate.ts +171 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentresponserequest.ts +14 -10
- package/src/models/components/agentstartedstreamingevent.ts +11 -1
- package/src/models/components/capabilitiesresponse.ts +96 -0
- package/src/models/components/createthreadrequest.ts +91 -0
- package/src/models/components/detectrequest.ts +48 -0
- package/src/models/components/entitylist.ts +37 -0
- package/src/models/components/gethubitemresponse.ts +37 -0
- package/src/models/components/getthreadcountrequest.ts +42 -0
- package/src/models/components/getthreadcountresponse.ts +31 -0
- package/src/models/components/guardrailruleplugin.ts +27 -0
- package/src/models/components/hubitem.ts +136 -0
- package/src/models/components/hubitemsummary.ts +60 -0
- package/src/models/components/hubsearchhit.ts +35 -0
- package/src/models/components/index.ts +21 -3
- package/src/models/components/listthreadsrequest.ts +42 -0
- package/src/models/components/listthreadsresponse.ts +41 -0
- package/src/models/components/openaipromptcacheoptions.ts +84 -0
- package/src/models/components/piiredactionplugin.ts +143 -0
- package/src/models/components/publicplugin.ts +17 -21
- package/src/models/components/publicresponseresource.ts +7 -0
- 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/searchhubitemsresponse.ts +32 -0
- package/src/models/components/sessioninterval.ts +26 -0
- package/src/models/components/textcontentpartschema.ts +13 -8
- package/src/models/components/thread.ts +101 -0
- package/src/models/components/threadbilling.ts +68 -0
- package/src/models/components/threadfilters.ts +66 -0
- package/src/models/components/threadkind.ts +20 -0
- package/src/models/components/threadusage.ts +68 -0
- package/src/models/components/tracescrubbingplugin.ts +4 -24
- package/src/models/components/updatethreadrequest.ts +105 -0
- 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/createrouterresponse.ts +128 -9
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/deletesession.ts +36 -0
- 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/getsession.ts +36 -0
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/hubget.ts +27 -0
- package/src/models/operations/hubsearch.ts +34 -0
- package/src/models/operations/index.ts +5 -0
- 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/modelcreateopenailike.ts +8 -0
- package/src/models/operations/modelupdateopenailike.ts +8 -0
- 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/postv2routerocr.ts +36 -0
- 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/retrieveresponse.ts +5 -0
- 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/updatesession.ts +41 -0
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/hub.ts +46 -0
- package/src/sdk/pii.ts +16 -0
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/sessions.ts +134 -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
|
@@ -188,11 +188,9 @@ export type Guardrails = {
|
|
|
188
188
|
};
|
|
189
189
|
|
|
190
190
|
export type Plugins =
|
|
191
|
-
| components.
|
|
192
|
-
| components.
|
|
193
|
-
| components.TraceScrubbingPlugin
|
|
194
|
-
| components.PIIRedactionPluginAuto
|
|
195
|
-
| components.ResponseHealingPlugin;
|
|
191
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
192
|
+
| components.ResponseHealingPlugin
|
|
193
|
+
| components.TraceScrubbingPlugin;
|
|
196
194
|
|
|
197
195
|
export type Fallbacks = {
|
|
198
196
|
/**
|
|
@@ -408,11 +406,9 @@ export type ParametersT = {
|
|
|
408
406
|
*/
|
|
409
407
|
plugins?:
|
|
410
408
|
| Array<
|
|
411
|
-
| components.
|
|
412
|
-
| components.PIIRedactionPluginNl
|
|
413
|
-
| components.TraceScrubbingPlugin
|
|
414
|
-
| components.PIIRedactionPluginAuto
|
|
409
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
415
410
|
| components.ResponseHealingPlugin
|
|
411
|
+
| components.TraceScrubbingPlugin
|
|
416
412
|
>
|
|
417
413
|
| undefined;
|
|
418
414
|
/**
|
|
@@ -673,11 +669,9 @@ export type FallbackModelConfigurationGuardrails = {
|
|
|
673
669
|
};
|
|
674
670
|
|
|
675
671
|
export type FallbackModelConfigurationPlugins =
|
|
676
|
-
| components.
|
|
677
|
-
| components.
|
|
678
|
-
| components.TraceScrubbingPlugin
|
|
679
|
-
| components.PIIRedactionPluginAuto
|
|
680
|
-
| components.ResponseHealingPlugin;
|
|
672
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
673
|
+
| components.ResponseHealingPlugin
|
|
674
|
+
| components.TraceScrubbingPlugin;
|
|
681
675
|
|
|
682
676
|
export type FallbackModelConfigurationFallbacks = {
|
|
683
677
|
/**
|
|
@@ -907,11 +901,9 @@ export type FallbackModelConfigurationParameters = {
|
|
|
907
901
|
*/
|
|
908
902
|
plugins?:
|
|
909
903
|
| Array<
|
|
910
|
-
| components.
|
|
911
|
-
| components.PIIRedactionPluginNl
|
|
912
|
-
| components.TraceScrubbingPlugin
|
|
913
|
-
| components.PIIRedactionPluginAuto
|
|
904
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
914
905
|
| components.ResponseHealingPlugin
|
|
906
|
+
| components.TraceScrubbingPlugin
|
|
915
907
|
>
|
|
916
908
|
| undefined;
|
|
917
909
|
/**
|
|
@@ -1017,6 +1009,10 @@ export type Evaluators = {
|
|
|
1017
1009
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1018
1010
|
*/
|
|
1019
1011
|
executeOn: CreateAgentRequestExecuteOn;
|
|
1012
|
+
/**
|
|
1013
|
+
* 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.
|
|
1014
|
+
*/
|
|
1015
|
+
options?: { [k: string]: any } | undefined;
|
|
1020
1016
|
};
|
|
1021
1017
|
|
|
1022
1018
|
/**
|
|
@@ -1046,6 +1042,10 @@ export type CreateAgentRequestGuardrails = {
|
|
|
1046
1042
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1047
1043
|
*/
|
|
1048
1044
|
executeOn: CreateAgentRequestAgentsExecuteOn;
|
|
1045
|
+
/**
|
|
1046
|
+
* 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.
|
|
1047
|
+
*/
|
|
1048
|
+
options?: { [k: string]: any } | undefined;
|
|
1049
1049
|
};
|
|
1050
1050
|
|
|
1051
1051
|
/**
|
|
@@ -1340,6 +1340,10 @@ export type CreateAgentRequestEvaluators = {
|
|
|
1340
1340
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1341
1341
|
*/
|
|
1342
1342
|
executeOn: CreateAgentRequestAgentsResponseExecuteOn;
|
|
1343
|
+
/**
|
|
1344
|
+
* 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.
|
|
1345
|
+
*/
|
|
1346
|
+
options?: { [k: string]: any } | undefined;
|
|
1343
1347
|
};
|
|
1344
1348
|
|
|
1345
1349
|
/**
|
|
@@ -1369,6 +1373,10 @@ export type CreateAgentRequestAgentsGuardrails = {
|
|
|
1369
1373
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1370
1374
|
*/
|
|
1371
1375
|
executeOn: CreateAgentRequestAgentsResponse201ExecuteOn;
|
|
1376
|
+
/**
|
|
1377
|
+
* 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.
|
|
1378
|
+
*/
|
|
1379
|
+
options?: { [k: string]: any } | undefined;
|
|
1372
1380
|
};
|
|
1373
1381
|
|
|
1374
1382
|
export type CreateAgentRequestSettings = {
|
|
@@ -1398,7 +1406,7 @@ export type CreateAgentRequestSettings = {
|
|
|
1398
1406
|
*/
|
|
1399
1407
|
evaluators?: Array<CreateAgentRequestEvaluators> | undefined;
|
|
1400
1408
|
/**
|
|
1401
|
-
* Configuration for a guardrail applied to the agent
|
|
1409
|
+
* 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.
|
|
1402
1410
|
*/
|
|
1403
1411
|
guardrails?: Array<CreateAgentRequestAgentsGuardrails> | undefined;
|
|
1404
1412
|
};
|
|
@@ -1599,11 +1607,9 @@ export type CreateAgentRequestAgentsResponseGuardrails = {
|
|
|
1599
1607
|
};
|
|
1600
1608
|
|
|
1601
1609
|
export type CreateAgentRequestPlugins =
|
|
1602
|
-
| components.
|
|
1603
|
-
| components.
|
|
1604
|
-
| components.TraceScrubbingPlugin
|
|
1605
|
-
| components.PIIRedactionPluginAuto
|
|
1606
|
-
| components.ResponseHealingPlugin;
|
|
1610
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
1611
|
+
| components.ResponseHealingPlugin
|
|
1612
|
+
| components.TraceScrubbingPlugin;
|
|
1607
1613
|
|
|
1608
1614
|
export type CreateAgentRequestFallbacks = {
|
|
1609
1615
|
/**
|
|
@@ -1831,11 +1837,9 @@ export type CreateAgentRequestParameters = {
|
|
|
1831
1837
|
*/
|
|
1832
1838
|
plugins?:
|
|
1833
1839
|
| Array<
|
|
1834
|
-
| components.
|
|
1835
|
-
| components.PIIRedactionPluginNl
|
|
1836
|
-
| components.TraceScrubbingPlugin
|
|
1837
|
-
| components.PIIRedactionPluginAuto
|
|
1840
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
1838
1841
|
| components.ResponseHealingPlugin
|
|
1842
|
+
| components.TraceScrubbingPlugin
|
|
1839
1843
|
>
|
|
1840
1844
|
| undefined;
|
|
1841
1845
|
/**
|
|
@@ -2081,11 +2085,9 @@ export type CreateAgentRequestFallbackModelConfigurationGuardrails = {
|
|
|
2081
2085
|
};
|
|
2082
2086
|
|
|
2083
2087
|
export type CreateAgentRequestFallbackModelConfigurationPlugins =
|
|
2084
|
-
| components.
|
|
2085
|
-
| components.
|
|
2086
|
-
| components.TraceScrubbingPlugin
|
|
2087
|
-
| components.PIIRedactionPluginAuto
|
|
2088
|
-
| components.ResponseHealingPlugin;
|
|
2088
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
2089
|
+
| components.ResponseHealingPlugin
|
|
2090
|
+
| components.TraceScrubbingPlugin;
|
|
2089
2091
|
|
|
2090
2092
|
export type CreateAgentRequestFallbackModelConfigurationFallbacks = {
|
|
2091
2093
|
/**
|
|
@@ -2323,11 +2325,9 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
2323
2325
|
*/
|
|
2324
2326
|
plugins?:
|
|
2325
2327
|
| Array<
|
|
2326
|
-
| components.
|
|
2327
|
-
| components.PIIRedactionPluginNl
|
|
2328
|
-
| components.TraceScrubbingPlugin
|
|
2329
|
-
| components.PIIRedactionPluginAuto
|
|
2328
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
2330
2329
|
| components.ResponseHealingPlugin
|
|
2330
|
+
| components.TraceScrubbingPlugin
|
|
2331
2331
|
>
|
|
2332
2332
|
| undefined;
|
|
2333
2333
|
/**
|
|
@@ -2756,11 +2756,9 @@ export function guardrailsToJSON(guardrails: Guardrails): string {
|
|
|
2756
2756
|
|
|
2757
2757
|
/** @internal */
|
|
2758
2758
|
export type Plugins$Outbound =
|
|
2759
|
-
| components.
|
|
2760
|
-
| components.
|
|
2761
|
-
| components.TraceScrubbingPlugin$Outbound
|
|
2762
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
2763
|
-
| components.ResponseHealingPlugin$Outbound;
|
|
2759
|
+
| (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
|
|
2760
|
+
| components.ResponseHealingPlugin$Outbound
|
|
2761
|
+
| components.TraceScrubbingPlugin$Outbound;
|
|
2764
2762
|
|
|
2765
2763
|
/** @internal */
|
|
2766
2764
|
export const Plugins$outboundSchema: z.ZodType<
|
|
@@ -2768,11 +2766,11 @@ export const Plugins$outboundSchema: z.ZodType<
|
|
|
2768
2766
|
z.ZodTypeDef,
|
|
2769
2767
|
Plugins
|
|
2770
2768
|
> = z.union([
|
|
2771
|
-
components.
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
2769
|
+
components.PIIRedactionPlugin$outboundSchema.and(
|
|
2770
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
2771
|
+
),
|
|
2775
2772
|
components.ResponseHealingPlugin$outboundSchema,
|
|
2773
|
+
components.TraceScrubbingPlugin$outboundSchema,
|
|
2776
2774
|
]);
|
|
2777
2775
|
|
|
2778
2776
|
export function pluginsToJSON(plugins: Plugins): string {
|
|
@@ -2969,11 +2967,9 @@ export type ParametersT$Outbound = {
|
|
|
2969
2967
|
guardrails?: Array<Guardrails$Outbound> | undefined;
|
|
2970
2968
|
plugins?:
|
|
2971
2969
|
| Array<
|
|
2972
|
-
| components.
|
|
2973
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
2974
|
-
| components.TraceScrubbingPlugin$Outbound
|
|
2975
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
2970
|
+
| (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
|
|
2976
2971
|
| components.ResponseHealingPlugin$Outbound
|
|
2972
|
+
| components.TraceScrubbingPlugin$Outbound
|
|
2977
2973
|
>
|
|
2978
2974
|
| undefined;
|
|
2979
2975
|
fallbacks?: Array<Fallbacks$Outbound> | undefined;
|
|
@@ -3021,11 +3017,11 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
3021
3017
|
guardrails: z.array(z.lazy(() => Guardrails$outboundSchema)).optional(),
|
|
3022
3018
|
plugins: z.array(
|
|
3023
3019
|
z.union([
|
|
3024
|
-
components.
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3020
|
+
components.PIIRedactionPlugin$outboundSchema.and(
|
|
3021
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
3022
|
+
),
|
|
3028
3023
|
components.ResponseHealingPlugin$outboundSchema,
|
|
3024
|
+
components.TraceScrubbingPlugin$outboundSchema,
|
|
3029
3025
|
]),
|
|
3030
3026
|
).optional(),
|
|
3031
3027
|
fallbacks: z.array(z.lazy(() => Fallbacks$outboundSchema)).optional(),
|
|
@@ -3469,11 +3465,9 @@ export function fallbackModelConfigurationGuardrailsToJSON(
|
|
|
3469
3465
|
|
|
3470
3466
|
/** @internal */
|
|
3471
3467
|
export type FallbackModelConfigurationPlugins$Outbound =
|
|
3472
|
-
| components.
|
|
3473
|
-
| components.
|
|
3474
|
-
| components.TraceScrubbingPlugin$Outbound
|
|
3475
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
3476
|
-
| components.ResponseHealingPlugin$Outbound;
|
|
3468
|
+
| (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
|
|
3469
|
+
| components.ResponseHealingPlugin$Outbound
|
|
3470
|
+
| components.TraceScrubbingPlugin$Outbound;
|
|
3477
3471
|
|
|
3478
3472
|
/** @internal */
|
|
3479
3473
|
export const FallbackModelConfigurationPlugins$outboundSchema: z.ZodType<
|
|
@@ -3481,11 +3475,11 @@ export const FallbackModelConfigurationPlugins$outboundSchema: z.ZodType<
|
|
|
3481
3475
|
z.ZodTypeDef,
|
|
3482
3476
|
FallbackModelConfigurationPlugins
|
|
3483
3477
|
> = z.union([
|
|
3484
|
-
components.
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3478
|
+
components.PIIRedactionPlugin$outboundSchema.and(
|
|
3479
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
3480
|
+
),
|
|
3488
3481
|
components.ResponseHealingPlugin$outboundSchema,
|
|
3482
|
+
components.TraceScrubbingPlugin$outboundSchema,
|
|
3489
3483
|
]);
|
|
3490
3484
|
|
|
3491
3485
|
export function fallbackModelConfigurationPluginsToJSON(
|
|
@@ -3725,11 +3719,9 @@ export type FallbackModelConfigurationParameters$Outbound = {
|
|
|
3725
3719
|
guardrails?: Array<FallbackModelConfigurationGuardrails$Outbound> | undefined;
|
|
3726
3720
|
plugins?:
|
|
3727
3721
|
| Array<
|
|
3728
|
-
| components.
|
|
3729
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
3730
|
-
| components.TraceScrubbingPlugin$Outbound
|
|
3731
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
3722
|
+
| (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
|
|
3732
3723
|
| components.ResponseHealingPlugin$Outbound
|
|
3724
|
+
| components.TraceScrubbingPlugin$Outbound
|
|
3733
3725
|
>
|
|
3734
3726
|
| undefined;
|
|
3735
3727
|
fallbacks?: Array<FallbackModelConfigurationFallbacks$Outbound> | undefined;
|
|
@@ -3782,11 +3774,11 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3782
3774
|
).optional(),
|
|
3783
3775
|
plugins: z.array(
|
|
3784
3776
|
z.union([
|
|
3785
|
-
components.
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3777
|
+
components.PIIRedactionPlugin$outboundSchema.and(
|
|
3778
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
3779
|
+
),
|
|
3789
3780
|
components.ResponseHealingPlugin$outboundSchema,
|
|
3781
|
+
components.TraceScrubbingPlugin$outboundSchema,
|
|
3790
3782
|
]),
|
|
3791
3783
|
).optional(),
|
|
3792
3784
|
fallbacks: z.array(
|
|
@@ -3928,6 +3920,7 @@ export type Evaluators$Outbound = {
|
|
|
3928
3920
|
id: string;
|
|
3929
3921
|
sample_rate: number;
|
|
3930
3922
|
execute_on: string;
|
|
3923
|
+
options?: { [k: string]: any } | undefined;
|
|
3931
3924
|
};
|
|
3932
3925
|
|
|
3933
3926
|
/** @internal */
|
|
@@ -3939,6 +3932,7 @@ export const Evaluators$outboundSchema: z.ZodType<
|
|
|
3939
3932
|
id: z.string(),
|
|
3940
3933
|
sampleRate: z.number().default(50),
|
|
3941
3934
|
executeOn: CreateAgentRequestExecuteOn$outboundSchema,
|
|
3935
|
+
options: z.record(z.any()).optional(),
|
|
3942
3936
|
}).transform((v) => {
|
|
3943
3937
|
return remap$(v, {
|
|
3944
3938
|
sampleRate: "sample_rate",
|
|
@@ -3960,6 +3954,7 @@ export type CreateAgentRequestGuardrails$Outbound = {
|
|
|
3960
3954
|
id: string;
|
|
3961
3955
|
sample_rate: number;
|
|
3962
3956
|
execute_on: string;
|
|
3957
|
+
options?: { [k: string]: any } | undefined;
|
|
3963
3958
|
};
|
|
3964
3959
|
|
|
3965
3960
|
/** @internal */
|
|
@@ -3971,6 +3966,7 @@ export const CreateAgentRequestGuardrails$outboundSchema: z.ZodType<
|
|
|
3971
3966
|
id: z.string(),
|
|
3972
3967
|
sampleRate: z.number().default(50),
|
|
3973
3968
|
executeOn: CreateAgentRequestAgentsExecuteOn$outboundSchema,
|
|
3969
|
+
options: z.record(z.any()).optional(),
|
|
3974
3970
|
}).transform((v) => {
|
|
3975
3971
|
return remap$(v, {
|
|
3976
3972
|
sampleRate: "sample_rate",
|
|
@@ -4316,6 +4312,7 @@ export const CreateAgentRequestEvaluators$inboundSchema: z.ZodType<
|
|
|
4316
4312
|
id: z.string(),
|
|
4317
4313
|
sample_rate: z.number().default(50),
|
|
4318
4314
|
execute_on: CreateAgentRequestAgentsResponseExecuteOn$inboundSchema,
|
|
4315
|
+
options: z.record(z.any()).optional(),
|
|
4319
4316
|
}).transform((v) => {
|
|
4320
4317
|
return remap$(v, {
|
|
4321
4318
|
"sample_rate": "sampleRate",
|
|
@@ -4347,6 +4344,7 @@ export const CreateAgentRequestAgentsGuardrails$inboundSchema: z.ZodType<
|
|
|
4347
4344
|
id: z.string(),
|
|
4348
4345
|
sample_rate: z.number().default(50),
|
|
4349
4346
|
execute_on: CreateAgentRequestAgentsResponse201ExecuteOn$inboundSchema,
|
|
4347
|
+
options: z.record(z.any()).optional(),
|
|
4350
4348
|
}).transform((v) => {
|
|
4351
4349
|
return remap$(v, {
|
|
4352
4350
|
"sample_rate": "sampleRate",
|
|
@@ -4718,11 +4716,11 @@ export const CreateAgentRequestPlugins$inboundSchema: z.ZodType<
|
|
|
4718
4716
|
z.ZodTypeDef,
|
|
4719
4717
|
unknown
|
|
4720
4718
|
> = z.union([
|
|
4721
|
-
components.
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
4719
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
4720
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
4721
|
+
),
|
|
4725
4722
|
components.ResponseHealingPlugin$inboundSchema,
|
|
4723
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
4726
4724
|
]);
|
|
4727
4725
|
|
|
4728
4726
|
export function createAgentRequestPluginsFromJSON(
|
|
@@ -4941,11 +4939,11 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
4941
4939
|
).optional(),
|
|
4942
4940
|
plugins: z.array(
|
|
4943
4941
|
z.union([
|
|
4944
|
-
components.
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
4942
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
4943
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
4944
|
+
),
|
|
4948
4945
|
components.ResponseHealingPlugin$inboundSchema,
|
|
4946
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
4949
4947
|
]),
|
|
4950
4948
|
).optional(),
|
|
4951
4949
|
fallbacks: z.array(z.lazy(() => CreateAgentRequestFallbacks$inboundSchema))
|
|
@@ -5382,11 +5380,11 @@ export const CreateAgentRequestFallbackModelConfigurationPlugins$inboundSchema:
|
|
|
5382
5380
|
z.ZodTypeDef,
|
|
5383
5381
|
unknown
|
|
5384
5382
|
> = z.union([
|
|
5385
|
-
components.
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
5383
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
5384
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
5385
|
+
),
|
|
5389
5386
|
components.ResponseHealingPlugin$inboundSchema,
|
|
5387
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
5390
5388
|
]);
|
|
5391
5389
|
|
|
5392
5390
|
export function createAgentRequestFallbackModelConfigurationPluginsFromJSON(
|
|
@@ -5669,11 +5667,11 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
5669
5667
|
).optional(),
|
|
5670
5668
|
plugins: z.array(
|
|
5671
5669
|
z.union([
|
|
5672
|
-
components.
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
5670
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
5671
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
5672
|
+
),
|
|
5676
5673
|
components.ResponseHealingPlugin$inboundSchema,
|
|
5674
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
5677
5675
|
]),
|
|
5678
5676
|
).optional(),
|
|
5679
5677
|
fallbacks: z.array(
|
|
@@ -681,11 +681,9 @@ export type CreateChatCompletionGuardrails = {
|
|
|
681
681
|
};
|
|
682
682
|
|
|
683
683
|
export type CreateChatCompletionPlugins =
|
|
684
|
-
| components.
|
|
685
|
-
| components.
|
|
686
|
-
| components.TraceScrubbingPlugin
|
|
687
|
-
| components.PIIRedactionPluginAuto
|
|
688
|
-
| components.ResponseHealingPlugin;
|
|
684
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
685
|
+
| components.ResponseHealingPlugin
|
|
686
|
+
| components.TraceScrubbingPlugin;
|
|
689
687
|
|
|
690
688
|
export type CreateChatCompletionFallbacks = {
|
|
691
689
|
/**
|
|
@@ -1580,11 +1578,9 @@ export type CreateChatCompletionRequestBody = {
|
|
|
1580
1578
|
*/
|
|
1581
1579
|
plugins?:
|
|
1582
1580
|
| Array<
|
|
1583
|
-
| components.
|
|
1584
|
-
| components.PIIRedactionPluginNl
|
|
1585
|
-
| components.TraceScrubbingPlugin
|
|
1586
|
-
| components.PIIRedactionPluginAuto
|
|
1581
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
1587
1582
|
| components.ResponseHealingPlugin
|
|
1583
|
+
| components.TraceScrubbingPlugin
|
|
1588
1584
|
>
|
|
1589
1585
|
| undefined;
|
|
1590
1586
|
/**
|
|
@@ -3409,11 +3405,9 @@ export function createChatCompletionGuardrailsToJSON(
|
|
|
3409
3405
|
|
|
3410
3406
|
/** @internal */
|
|
3411
3407
|
export type CreateChatCompletionPlugins$Outbound =
|
|
3412
|
-
| components.
|
|
3413
|
-
| components.
|
|
3414
|
-
| components.TraceScrubbingPlugin$Outbound
|
|
3415
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
3416
|
-
| components.ResponseHealingPlugin$Outbound;
|
|
3408
|
+
| (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
|
|
3409
|
+
| components.ResponseHealingPlugin$Outbound
|
|
3410
|
+
| components.TraceScrubbingPlugin$Outbound;
|
|
3417
3411
|
|
|
3418
3412
|
/** @internal */
|
|
3419
3413
|
export const CreateChatCompletionPlugins$outboundSchema: z.ZodType<
|
|
@@ -3421,11 +3415,11 @@ export const CreateChatCompletionPlugins$outboundSchema: z.ZodType<
|
|
|
3421
3415
|
z.ZodTypeDef,
|
|
3422
3416
|
CreateChatCompletionPlugins
|
|
3423
3417
|
> = z.union([
|
|
3424
|
-
components.
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3418
|
+
components.PIIRedactionPlugin$outboundSchema.and(
|
|
3419
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
3420
|
+
),
|
|
3428
3421
|
components.ResponseHealingPlugin$outboundSchema,
|
|
3422
|
+
components.TraceScrubbingPlugin$outboundSchema,
|
|
3429
3423
|
]);
|
|
3430
3424
|
|
|
3431
3425
|
export function createChatCompletionPluginsToJSON(
|
|
@@ -5290,11 +5284,9 @@ export type CreateChatCompletionRequestBody$Outbound = {
|
|
|
5290
5284
|
guardrails?: Array<CreateChatCompletionGuardrails$Outbound> | undefined;
|
|
5291
5285
|
plugins?:
|
|
5292
5286
|
| Array<
|
|
5293
|
-
| components.
|
|
5294
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
5295
|
-
| components.TraceScrubbingPlugin$Outbound
|
|
5296
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
5287
|
+
| (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
|
|
5297
5288
|
| components.ResponseHealingPlugin$Outbound
|
|
5289
|
+
| components.TraceScrubbingPlugin$Outbound
|
|
5298
5290
|
>
|
|
5299
5291
|
| undefined;
|
|
5300
5292
|
fallbacks?: Array<CreateChatCompletionFallbacks$Outbound> | undefined;
|
|
@@ -5373,11 +5365,11 @@ export const CreateChatCompletionRequestBody$outboundSchema: z.ZodType<
|
|
|
5373
5365
|
).optional(),
|
|
5374
5366
|
plugins: z.array(
|
|
5375
5367
|
z.union([
|
|
5376
|
-
components.
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
5368
|
+
components.PIIRedactionPlugin$outboundSchema.and(
|
|
5369
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
5370
|
+
),
|
|
5380
5371
|
components.ResponseHealingPlugin$outboundSchema,
|
|
5372
|
+
components.TraceScrubbingPlugin$outboundSchema,
|
|
5381
5373
|
]),
|
|
5382
5374
|
).optional(),
|
|
5383
5375
|
fallbacks: z.array(z.lazy(() => CreateChatCompletionFallbacks$outboundSchema))
|
|
@@ -99,11 +99,6 @@ export type CreateCompletionThinking =
|
|
|
99
99
|
| components.ThinkingConfigEnabledSchema
|
|
100
100
|
| components.ThinkingConfigAdaptiveSchema;
|
|
101
101
|
|
|
102
|
-
export type CreateCompletionPlugins =
|
|
103
|
-
| components.PIIRedactionPluginEn
|
|
104
|
-
| components.PIIRedactionPluginNl
|
|
105
|
-
| components.PIIRedactionPluginAuto;
|
|
106
|
-
|
|
107
102
|
/**
|
|
108
103
|
* Retry configuration for the request
|
|
109
104
|
*/
|
|
@@ -768,13 +763,7 @@ export type CreateCompletionRequestBody = {
|
|
|
768
763
|
/**
|
|
769
764
|
* 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.
|
|
770
765
|
*/
|
|
771
|
-
plugins?:
|
|
772
|
-
| Array<
|
|
773
|
-
| components.PIIRedactionPluginEn
|
|
774
|
-
| components.PIIRedactionPluginNl
|
|
775
|
-
| components.PIIRedactionPluginAuto
|
|
776
|
-
>
|
|
777
|
-
| undefined;
|
|
766
|
+
plugins?: Array<components.PIIRedactionPlugin> | undefined;
|
|
778
767
|
/**
|
|
779
768
|
* Leverage Orq's intelligent routing capabilities to enhance your AI application with enterprise-grade reliability and observability. Orq provides automatic request management including retries on failures, model fallbacks for high availability, identity-level analytics tracking, conversation threading, and dynamic prompt templating with variable substitution.
|
|
780
769
|
*
|
|
@@ -1241,31 +1230,6 @@ export function createCompletionThinkingToJSON(
|
|
|
1241
1230
|
);
|
|
1242
1231
|
}
|
|
1243
1232
|
|
|
1244
|
-
/** @internal */
|
|
1245
|
-
export type CreateCompletionPlugins$Outbound =
|
|
1246
|
-
| components.PIIRedactionPluginEn$Outbound
|
|
1247
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
1248
|
-
| components.PIIRedactionPluginAuto$Outbound;
|
|
1249
|
-
|
|
1250
|
-
/** @internal */
|
|
1251
|
-
export const CreateCompletionPlugins$outboundSchema: z.ZodType<
|
|
1252
|
-
CreateCompletionPlugins$Outbound,
|
|
1253
|
-
z.ZodTypeDef,
|
|
1254
|
-
CreateCompletionPlugins
|
|
1255
|
-
> = z.union([
|
|
1256
|
-
components.PIIRedactionPluginEn$outboundSchema,
|
|
1257
|
-
components.PIIRedactionPluginNl$outboundSchema,
|
|
1258
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
1259
|
-
]);
|
|
1260
|
-
|
|
1261
|
-
export function createCompletionPluginsToJSON(
|
|
1262
|
-
createCompletionPlugins: CreateCompletionPlugins,
|
|
1263
|
-
): string {
|
|
1264
|
-
return JSON.stringify(
|
|
1265
|
-
CreateCompletionPlugins$outboundSchema.parse(createCompletionPlugins),
|
|
1266
|
-
);
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
1233
|
/** @internal */
|
|
1270
1234
|
export type CreateCompletionRouterCompletionsRetry$Outbound = {
|
|
1271
1235
|
count: number;
|
|
@@ -2913,13 +2877,7 @@ export type CreateCompletionRequestBody$Outbound = {
|
|
|
2913
2877
|
| components.ThinkingConfigAdaptiveSchema$Outbound
|
|
2914
2878
|
| null
|
|
2915
2879
|
| undefined;
|
|
2916
|
-
plugins?:
|
|
2917
|
-
| Array<
|
|
2918
|
-
| components.PIIRedactionPluginEn$Outbound
|
|
2919
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
2920
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
2921
|
-
>
|
|
2922
|
-
| undefined;
|
|
2880
|
+
plugins?: Array<components.PIIRedactionPlugin$Outbound> | undefined;
|
|
2923
2881
|
orq?: CreateCompletionOrq$Outbound | undefined;
|
|
2924
2882
|
stream: boolean;
|
|
2925
2883
|
};
|
|
@@ -2957,13 +2915,7 @@ export const CreateCompletionRequestBody$outboundSchema: z.ZodType<
|
|
|
2957
2915
|
components.ThinkingConfigAdaptiveSchema$outboundSchema,
|
|
2958
2916
|
]),
|
|
2959
2917
|
).optional(),
|
|
2960
|
-
plugins: z.array(
|
|
2961
|
-
z.union([
|
|
2962
|
-
components.PIIRedactionPluginEn$outboundSchema,
|
|
2963
|
-
components.PIIRedactionPluginNl$outboundSchema,
|
|
2964
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
2965
|
-
]),
|
|
2966
|
-
).optional(),
|
|
2918
|
+
plugins: z.array(components.PIIRedactionPlugin$outboundSchema).optional(),
|
|
2967
2919
|
orq: z.lazy(() => CreateCompletionOrq$outboundSchema).optional(),
|
|
2968
2920
|
stream: z.boolean().default(false),
|
|
2969
2921
|
}).transform((v) => {
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-09-
|
|
141
|
+
"2026-09-06T23:56:17.054Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2739,7 +2739,7 @@ export const Evaluations4$inboundSchema: z.ZodType<
|
|
|
2739
2739
|
explanation: z.string().optional(),
|
|
2740
2740
|
reviewed_by_id: z.string(),
|
|
2741
2741
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2742
|
-
"2026-09-
|
|
2742
|
+
"2026-09-06T23:56:24.011Z",
|
|
2743
2743
|
).transform(v => new Date(v)),
|
|
2744
2744
|
type: z.literal("string_array"),
|
|
2745
2745
|
values: z.array(z.string()),
|
|
@@ -2829,7 +2829,7 @@ export const CreateDatasetItemEvaluations3$inboundSchema: z.ZodType<
|
|
|
2829
2829
|
explanation: z.string().optional(),
|
|
2830
2830
|
reviewed_by_id: z.string(),
|
|
2831
2831
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2832
|
-
"2026-09-
|
|
2832
|
+
"2026-09-06T23:56:24.011Z",
|
|
2833
2833
|
).transform(v => new Date(v)),
|
|
2834
2834
|
type: z.literal("boolean"),
|
|
2835
2835
|
value: z.boolean(),
|
|
@@ -2914,7 +2914,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2914
2914
|
explanation: z.string().optional(),
|
|
2915
2915
|
reviewed_by_id: z.string(),
|
|
2916
2916
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2917
|
-
"2026-09-
|
|
2917
|
+
"2026-09-06T23:56:24.010Z",
|
|
2918
2918
|
).transform(v => new Date(v)),
|
|
2919
2919
|
type: z.literal("number"),
|
|
2920
2920
|
value: z.number(),
|
|
@@ -3000,7 +3000,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
3000
3000
|
explanation: z.string().optional(),
|
|
3001
3001
|
reviewed_by_id: z.string(),
|
|
3002
3002
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3003
|
-
"2026-09-
|
|
3003
|
+
"2026-09-06T23:56:24.010Z",
|
|
3004
3004
|
).transform(v => new Date(v)),
|
|
3005
3005
|
type: z.literal("string"),
|
|
3006
3006
|
value: z.string(),
|
|
@@ -3087,7 +3087,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
3087
3087
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3088
3088
|
.optional(),
|
|
3089
3089
|
updated: z.string().datetime({ offset: true }).default(
|
|
3090
|
-
"2026-09-
|
|
3090
|
+
"2026-09-06T23:56:17.054Z",
|
|
3091
3091
|
).transform(v => new Date(v)),
|
|
3092
3092
|
}).transform((v) => {
|
|
3093
3093
|
return remap$(v, {
|