@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
|
@@ -145,7 +145,7 @@ export type Contact = {
|
|
|
145
145
|
/**
|
|
146
146
|
* Thread information to group related requests
|
|
147
147
|
*/
|
|
148
|
-
export type
|
|
148
|
+
export type AgentResponseRequestThread = {
|
|
149
149
|
/**
|
|
150
150
|
* Unique thread identifier to group related invocations.
|
|
151
151
|
*/
|
|
@@ -228,7 +228,7 @@ export type AgentResponseRequest = {
|
|
|
228
228
|
/**
|
|
229
229
|
* Thread information to group related requests
|
|
230
230
|
*/
|
|
231
|
-
thread?:
|
|
231
|
+
thread?: AgentResponseRequestThread | undefined;
|
|
232
232
|
/**
|
|
233
233
|
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
234
234
|
*/
|
|
@@ -419,23 +419,27 @@ export function contactToJSON(contact: Contact): string {
|
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
/** @internal */
|
|
422
|
-
export type
|
|
422
|
+
export type AgentResponseRequestThread$Outbound = {
|
|
423
423
|
id: string;
|
|
424
424
|
tags?: Array<string> | undefined;
|
|
425
425
|
};
|
|
426
426
|
|
|
427
427
|
/** @internal */
|
|
428
|
-
export const
|
|
429
|
-
|
|
428
|
+
export const AgentResponseRequestThread$outboundSchema: z.ZodType<
|
|
429
|
+
AgentResponseRequestThread$Outbound,
|
|
430
430
|
z.ZodTypeDef,
|
|
431
|
-
|
|
431
|
+
AgentResponseRequestThread
|
|
432
432
|
> = z.object({
|
|
433
433
|
id: z.string(),
|
|
434
434
|
tags: z.array(z.string()).optional(),
|
|
435
435
|
});
|
|
436
436
|
|
|
437
|
-
export function
|
|
438
|
-
|
|
437
|
+
export function agentResponseRequestThreadToJSON(
|
|
438
|
+
agentResponseRequestThread: AgentResponseRequestThread,
|
|
439
|
+
): string {
|
|
440
|
+
return JSON.stringify(
|
|
441
|
+
AgentResponseRequestThread$outboundSchema.parse(agentResponseRequestThread),
|
|
442
|
+
);
|
|
439
443
|
}
|
|
440
444
|
|
|
441
445
|
/** @internal */
|
|
@@ -521,7 +525,7 @@ export type AgentResponseRequest$Outbound = {
|
|
|
521
525
|
variables?: { [k: string]: any } | undefined;
|
|
522
526
|
identity?: AgentResponseRequestIdentity$Outbound | undefined;
|
|
523
527
|
contact?: Contact$Outbound | undefined;
|
|
524
|
-
thread?:
|
|
528
|
+
thread?: AgentResponseRequestThread$Outbound | undefined;
|
|
525
529
|
memory?: AgentResponseRequestMemory$Outbound | undefined;
|
|
526
530
|
metadata?: { [k: string]: any } | undefined;
|
|
527
531
|
engine?: string | undefined;
|
|
@@ -543,7 +547,7 @@ export const AgentResponseRequest$outboundSchema: z.ZodType<
|
|
|
543
547
|
identity: z.lazy(() => AgentResponseRequestIdentity$outboundSchema)
|
|
544
548
|
.optional(),
|
|
545
549
|
contact: z.lazy(() => Contact$outboundSchema).optional(),
|
|
546
|
-
thread: z.lazy(() =>
|
|
550
|
+
thread: z.lazy(() => AgentResponseRequestThread$outboundSchema).optional(),
|
|
547
551
|
memory: z.lazy(() => AgentResponseRequestMemory$outboundSchema).optional(),
|
|
548
552
|
metadata: z.record(z.any()).optional(),
|
|
549
553
|
engine: Engine$outboundSchema.optional(),
|
|
@@ -140,6 +140,10 @@ export type Evaluators = {
|
|
|
140
140
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
141
141
|
*/
|
|
142
142
|
executeOn: AgentStartedStreamingEventDataExecuteOn;
|
|
143
|
+
/**
|
|
144
|
+
* 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.
|
|
145
|
+
*/
|
|
146
|
+
options?: { [k: string]: any } | undefined;
|
|
143
147
|
};
|
|
144
148
|
|
|
145
149
|
/**
|
|
@@ -169,6 +173,10 @@ export type Guardrails = {
|
|
|
169
173
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
170
174
|
*/
|
|
171
175
|
executeOn: AgentStartedStreamingEventExecuteOn;
|
|
176
|
+
/**
|
|
177
|
+
* 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.
|
|
178
|
+
*/
|
|
179
|
+
options?: { [k: string]: any } | undefined;
|
|
172
180
|
};
|
|
173
181
|
|
|
174
182
|
export type Settings = {
|
|
@@ -198,7 +206,7 @@ export type Settings = {
|
|
|
198
206
|
*/
|
|
199
207
|
evaluators?: Array<Evaluators> | undefined;
|
|
200
208
|
/**
|
|
201
|
-
* Configuration for a guardrail applied to the agent
|
|
209
|
+
* 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.
|
|
202
210
|
*/
|
|
203
211
|
guardrails?: Array<Guardrails> | undefined;
|
|
204
212
|
};
|
|
@@ -376,6 +384,7 @@ export const Evaluators$inboundSchema: z.ZodType<
|
|
|
376
384
|
id: z.string(),
|
|
377
385
|
sample_rate: z.number().default(50),
|
|
378
386
|
execute_on: AgentStartedStreamingEventDataExecuteOn$inboundSchema,
|
|
387
|
+
options: z.record(z.any()).optional(),
|
|
379
388
|
}).transform((v) => {
|
|
380
389
|
return remap$(v, {
|
|
381
390
|
"sample_rate": "sampleRate",
|
|
@@ -407,6 +416,7 @@ export const Guardrails$inboundSchema: z.ZodType<
|
|
|
407
416
|
id: z.string(),
|
|
408
417
|
sample_rate: z.number().default(50),
|
|
409
418
|
execute_on: AgentStartedStreamingEventExecuteOn$inboundSchema,
|
|
419
|
+
options: z.record(z.any()).optional(),
|
|
410
420
|
}).transform((v) => {
|
|
411
421
|
return remap$(v, {
|
|
412
422
|
"sample_rate": "sampleRate",
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import { EntityList, EntityList$inboundSchema } from "./entitylist.js";
|
|
11
|
+
|
|
12
|
+
export type CapabilitiesResponse = {
|
|
13
|
+
/**
|
|
14
|
+
* Supported detector languages, e.g. "en", "nl". There is no "auto" value.
|
|
15
|
+
*/
|
|
16
|
+
languages?: Array<string> | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Universal entity types available regardless of region, e.g. PASSPORT,
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* LICENSE_PLATE, UUID, JWT, BIC.
|
|
22
|
+
*/
|
|
23
|
+
baseEntities?: Array<string> | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Every entity type the service can detect across all regions and the
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* base catalog.
|
|
29
|
+
*/
|
|
30
|
+
allEntities?: Array<string> | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Region codes the service recognizes, e.g. "nl", "gb", "all".
|
|
33
|
+
*/
|
|
34
|
+
regions?: Array<string> | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Maps each region code to the entity types it gates. Use this to find the
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* type to name in `entities` when you need a per-entity threshold on a type
|
|
40
|
+
* a region gates.
|
|
41
|
+
*/
|
|
42
|
+
regionEntities?: { [k: string]: EntityList } | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Sparse per-entity default thresholds; entities absent here fall back to
|
|
45
|
+
*
|
|
46
|
+
* @remarks
|
|
47
|
+
* default_threshold.
|
|
48
|
+
*/
|
|
49
|
+
entityThresholds?: { [k: string]: number } | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Confidence cutoff applied when neither `threshold` nor an entity-specific
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* override is supplied.
|
|
55
|
+
*/
|
|
56
|
+
defaultThreshold?: number | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Maximum number of characters accepted per request.
|
|
59
|
+
*/
|
|
60
|
+
maxTextChars?: number | undefined;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const CapabilitiesResponse$inboundSchema: z.ZodType<
|
|
65
|
+
CapabilitiesResponse,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
unknown
|
|
68
|
+
> = z.object({
|
|
69
|
+
languages: z.array(z.string()).optional(),
|
|
70
|
+
base_entities: z.array(z.string()).optional(),
|
|
71
|
+
all_entities: z.array(z.string()).optional(),
|
|
72
|
+
regions: z.array(z.string()).optional(),
|
|
73
|
+
region_entities: z.record(EntityList$inboundSchema).optional(),
|
|
74
|
+
entity_thresholds: z.record(z.number()).optional(),
|
|
75
|
+
default_threshold: z.number().optional(),
|
|
76
|
+
max_text_chars: z.number().int().optional(),
|
|
77
|
+
}).transform((v) => {
|
|
78
|
+
return remap$(v, {
|
|
79
|
+
"base_entities": "baseEntities",
|
|
80
|
+
"all_entities": "allEntities",
|
|
81
|
+
"region_entities": "regionEntities",
|
|
82
|
+
"entity_thresholds": "entityThresholds",
|
|
83
|
+
"default_threshold": "defaultThreshold",
|
|
84
|
+
"max_text_chars": "maxTextChars",
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
export function capabilitiesResponseFromJSON(
|
|
89
|
+
jsonString: string,
|
|
90
|
+
): SafeParseResult<CapabilitiesResponse, SDKValidationError> {
|
|
91
|
+
return safeParse(
|
|
92
|
+
jsonString,
|
|
93
|
+
(x) => CapabilitiesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
94
|
+
`Failed to parse 'CapabilitiesResponse' from JSON`,
|
|
95
|
+
);
|
|
96
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
ThreadBilling,
|
|
9
|
+
ThreadBilling$Outbound,
|
|
10
|
+
ThreadBilling$outboundSchema,
|
|
11
|
+
} from "./threadbilling.js";
|
|
12
|
+
import { ThreadKind, ThreadKind$outboundSchema } from "./threadkind.js";
|
|
13
|
+
import {
|
|
14
|
+
ThreadUsage,
|
|
15
|
+
ThreadUsage$Outbound,
|
|
16
|
+
ThreadUsage$outboundSchema,
|
|
17
|
+
} from "./threadusage.js";
|
|
18
|
+
|
|
19
|
+
export type CreateThreadRequest = {
|
|
20
|
+
externalId: string;
|
|
21
|
+
duration: number;
|
|
22
|
+
contactIds: Array<string>;
|
|
23
|
+
billing: ThreadBilling;
|
|
24
|
+
usage: ThreadUsage;
|
|
25
|
+
tracesCount: number;
|
|
26
|
+
tags: Array<string>;
|
|
27
|
+
projectId?: string | undefined;
|
|
28
|
+
startedAt?: Date | undefined;
|
|
29
|
+
updatedAt?: Date | undefined;
|
|
30
|
+
title?: string | undefined;
|
|
31
|
+
client?: string | undefined;
|
|
32
|
+
repo?: string | undefined;
|
|
33
|
+
kind?: ThreadKind | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type CreateThreadRequest$Outbound = {
|
|
38
|
+
external_id: string;
|
|
39
|
+
duration: number;
|
|
40
|
+
contact_ids: Array<string>;
|
|
41
|
+
billing: ThreadBilling$Outbound;
|
|
42
|
+
usage: ThreadUsage$Outbound;
|
|
43
|
+
traces_count: number;
|
|
44
|
+
tags: Array<string>;
|
|
45
|
+
project_id?: string | undefined;
|
|
46
|
+
started_at?: string | undefined;
|
|
47
|
+
updated_at?: string | undefined;
|
|
48
|
+
title?: string | undefined;
|
|
49
|
+
client?: string | undefined;
|
|
50
|
+
repo?: string | undefined;
|
|
51
|
+
kind?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const CreateThreadRequest$outboundSchema: z.ZodType<
|
|
56
|
+
CreateThreadRequest$Outbound,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
CreateThreadRequest
|
|
59
|
+
> = z.object({
|
|
60
|
+
externalId: z.string(),
|
|
61
|
+
duration: z.number(),
|
|
62
|
+
contactIds: z.array(z.string()),
|
|
63
|
+
billing: ThreadBilling$outboundSchema,
|
|
64
|
+
usage: ThreadUsage$outboundSchema,
|
|
65
|
+
tracesCount: z.number().int(),
|
|
66
|
+
tags: z.array(z.string()),
|
|
67
|
+
projectId: z.string().optional(),
|
|
68
|
+
startedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
69
|
+
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
70
|
+
title: z.string().optional(),
|
|
71
|
+
client: z.string().optional(),
|
|
72
|
+
repo: z.string().optional(),
|
|
73
|
+
kind: ThreadKind$outboundSchema.optional(),
|
|
74
|
+
}).transform((v) => {
|
|
75
|
+
return remap$(v, {
|
|
76
|
+
externalId: "external_id",
|
|
77
|
+
contactIds: "contact_ids",
|
|
78
|
+
tracesCount: "traces_count",
|
|
79
|
+
projectId: "project_id",
|
|
80
|
+
startedAt: "started_at",
|
|
81
|
+
updatedAt: "updated_at",
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
export function createThreadRequestToJSON(
|
|
86
|
+
createThreadRequest: CreateThreadRequest,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
CreateThreadRequest$outboundSchema.parse(createThreadRequest),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
@@ -25,6 +25,47 @@ export type DetectRequest = {
|
|
|
25
25
|
* When true, the response includes a per-type entity breakdown.
|
|
26
26
|
*/
|
|
27
27
|
includeEntities?: boolean | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Region codes selecting whole regions of coverage, e.g. "nl", "gb". Every
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* entity type those regions cover is included, alongside the base catalog.
|
|
33
|
+
* ["all"] is exclusive. Leaving this and `entities` both empty also runs every
|
|
34
|
+
* region, so selecting nothing is the widest request rather than the narrowest.
|
|
35
|
+
* Empty alongside a non-empty `entities` stays strict. See the capabilities
|
|
36
|
+
* endpoint for the region list.
|
|
37
|
+
*
|
|
38
|
+
* Combines with `entities`: the detector unions the two selections, so a
|
|
39
|
+
* request carrying both covers the regions plus the named types. Note that
|
|
40
|
+
* `entities` only narrows coverage when it travels alone.
|
|
41
|
+
*/
|
|
42
|
+
regions?: Array<string> | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The entity types to cover. A named type fires even when it belongs to a
|
|
45
|
+
*
|
|
46
|
+
* @remarks
|
|
47
|
+
* region, so a region's types can be selected individually without naming
|
|
48
|
+
* the region. Alone this is a strict allowlist; alongside `regions` it adds
|
|
49
|
+
* to the region coverage instead of narrowing it.
|
|
50
|
+
*/
|
|
51
|
+
entities?: Array<string> | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Per-entity confidence cutoff overrides. An override REPLACES the global
|
|
54
|
+
*
|
|
55
|
+
* @remarks
|
|
56
|
+
* `threshold` for that type and may sit above or below it: the gateway
|
|
57
|
+
* lowers the first-pass floor it sends the detector to the smallest value
|
|
58
|
+
* in the map, and every selected type carries its own cutoff, so a
|
|
59
|
+
* sub-global override detects MORE of that type without widening the rest.
|
|
60
|
+
*
|
|
61
|
+
* This only tunes confidence; it never changes which types are covered.
|
|
62
|
+
* Coverage is decided by `entities` alone, so every key here must also
|
|
63
|
+
* appear in `entities` — a key that does not is rejected, as is any key at
|
|
64
|
+
* all when `entities` is empty.
|
|
65
|
+
*
|
|
66
|
+
* Declarative [0,1] bound mirrors existing constraint on `threshold`.
|
|
67
|
+
*/
|
|
68
|
+
entityThresholds?: { [k: string]: number } | undefined;
|
|
28
69
|
};
|
|
29
70
|
|
|
30
71
|
/** @internal */
|
|
@@ -33,6 +74,9 @@ export type DetectRequest$Outbound = {
|
|
|
33
74
|
language?: string | undefined;
|
|
34
75
|
threshold?: number | undefined;
|
|
35
76
|
include_entities?: boolean | undefined;
|
|
77
|
+
regions?: Array<string> | undefined;
|
|
78
|
+
entities?: Array<string> | undefined;
|
|
79
|
+
entity_thresholds?: { [k: string]: number } | undefined;
|
|
36
80
|
};
|
|
37
81
|
|
|
38
82
|
/** @internal */
|
|
@@ -45,9 +89,13 @@ export const DetectRequest$outboundSchema: z.ZodType<
|
|
|
45
89
|
language: z.string().optional(),
|
|
46
90
|
threshold: z.number().optional(),
|
|
47
91
|
includeEntities: z.boolean().optional(),
|
|
92
|
+
regions: z.array(z.string()).optional(),
|
|
93
|
+
entities: z.array(z.string()).optional(),
|
|
94
|
+
entityThresholds: z.record(z.number()).optional(),
|
|
48
95
|
}).transform((v) => {
|
|
49
96
|
return remap$(v, {
|
|
50
97
|
includeEntities: "include_entities",
|
|
98
|
+
entityThresholds: "entity_thresholds",
|
|
51
99
|
});
|
|
52
100
|
});
|
|
53
101
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* EntityList wraps a repeated string because proto3 maps cannot hold
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* repeated values directly.
|
|
15
|
+
*/
|
|
16
|
+
export type EntityList = {
|
|
17
|
+
entities?: Array<string> | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const EntityList$inboundSchema: z.ZodType<
|
|
22
|
+
EntityList,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
entities: z.array(z.string()).optional(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function entityListFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<EntityList, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => EntityList$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'EntityList' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import { HubItem, HubItem$inboundSchema } from "./hubitem.js";
|
|
11
|
+
|
|
12
|
+
export type GetHubItemResponse = {
|
|
13
|
+
hubItem: HubItem;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const GetHubItemResponse$inboundSchema: z.ZodType<
|
|
18
|
+
GetHubItemResponse,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
hub_item: HubItem$inboundSchema,
|
|
23
|
+
}).transform((v) => {
|
|
24
|
+
return remap$(v, {
|
|
25
|
+
"hub_item": "hubItem",
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function getHubItemResponseFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<GetHubItemResponse, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => GetHubItemResponse$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'GetHubItemResponse' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import {
|
|
7
|
+
ThreadFilters,
|
|
8
|
+
ThreadFilters$Outbound,
|
|
9
|
+
ThreadFilters$outboundSchema,
|
|
10
|
+
} from "./threadfilters.js";
|
|
11
|
+
|
|
12
|
+
export type GetThreadCountRequest = {
|
|
13
|
+
filters: ThreadFilters;
|
|
14
|
+
limit?: number | undefined;
|
|
15
|
+
page?: number | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type GetThreadCountRequest$Outbound = {
|
|
20
|
+
filters: ThreadFilters$Outbound;
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
page?: number | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const GetThreadCountRequest$outboundSchema: z.ZodType<
|
|
27
|
+
GetThreadCountRequest$Outbound,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
GetThreadCountRequest
|
|
30
|
+
> = z.object({
|
|
31
|
+
filters: ThreadFilters$outboundSchema,
|
|
32
|
+
limit: z.number().int().optional(),
|
|
33
|
+
page: z.number().int().optional(),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function getThreadCountRequestToJSON(
|
|
37
|
+
getThreadCountRequest: GetThreadCountRequest,
|
|
38
|
+
): string {
|
|
39
|
+
return JSON.stringify(
|
|
40
|
+
GetThreadCountRequest$outboundSchema.parse(getThreadCountRequest),
|
|
41
|
+
);
|
|
42
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type GetThreadCountResponse = {
|
|
11
|
+
count: number;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const GetThreadCountResponse$inboundSchema: z.ZodType<
|
|
16
|
+
GetThreadCountResponse,
|
|
17
|
+
z.ZodTypeDef,
|
|
18
|
+
unknown
|
|
19
|
+
> = z.object({
|
|
20
|
+
count: z.number().int(),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export function getThreadCountResponseFromJSON(
|
|
24
|
+
jsonString: string,
|
|
25
|
+
): SafeParseResult<GetThreadCountResponse, SDKValidationError> {
|
|
26
|
+
return safeParse(
|
|
27
|
+
jsonString,
|
|
28
|
+
(x) => GetThreadCountResponse$inboundSchema.parse(JSON.parse(x)),
|
|
29
|
+
`Failed to parse 'GetThreadCountResponse' from JSON`,
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -13,10 +13,29 @@ export type GuardrailRulePlugin = {
|
|
|
13
13
|
* Plugin discriminator.
|
|
14
14
|
*/
|
|
15
15
|
id?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Languages, regions and entity types are checked against the live
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* pii-detection capabilities catalog when the rule is saved, not pinned
|
|
21
|
+
* here, so a language or region the detector gains becomes writable without
|
|
22
|
+
* a proto change.
|
|
23
|
+
*/
|
|
16
24
|
language?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Entity types to redact. Mutually exclusive with regions.
|
|
27
|
+
*/
|
|
17
28
|
entities?: Array<string> | undefined;
|
|
18
29
|
onFailure?: string | undefined;
|
|
19
30
|
threshold?: number | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Regions of coverage by ISO 3166-1 alpha-2 code, or ["all"]. Mutually exclusive with entities.
|
|
33
|
+
*/
|
|
34
|
+
regions?: Array<string> | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Per-entity-type confidence cutoff. Every key must also appear in entities.
|
|
37
|
+
*/
|
|
38
|
+
entityThresholds?: { [k: string]: number } | undefined;
|
|
20
39
|
};
|
|
21
40
|
|
|
22
41
|
/** @internal */
|
|
@@ -30,9 +49,12 @@ export const GuardrailRulePlugin$inboundSchema: z.ZodType<
|
|
|
30
49
|
entities: z.array(z.string()).optional(),
|
|
31
50
|
on_failure: z.string().optional(),
|
|
32
51
|
threshold: z.number().optional(),
|
|
52
|
+
regions: z.array(z.string()).optional(),
|
|
53
|
+
entity_thresholds: z.record(z.number()).optional(),
|
|
33
54
|
}).transform((v) => {
|
|
34
55
|
return remap$(v, {
|
|
35
56
|
"on_failure": "onFailure",
|
|
57
|
+
"entity_thresholds": "entityThresholds",
|
|
36
58
|
});
|
|
37
59
|
});
|
|
38
60
|
/** @internal */
|
|
@@ -42,6 +64,8 @@ export type GuardrailRulePlugin$Outbound = {
|
|
|
42
64
|
entities?: Array<string> | undefined;
|
|
43
65
|
on_failure?: string | undefined;
|
|
44
66
|
threshold?: number | undefined;
|
|
67
|
+
regions?: Array<string> | undefined;
|
|
68
|
+
entity_thresholds?: { [k: string]: number } | undefined;
|
|
45
69
|
};
|
|
46
70
|
|
|
47
71
|
/** @internal */
|
|
@@ -55,9 +79,12 @@ export const GuardrailRulePlugin$outboundSchema: z.ZodType<
|
|
|
55
79
|
entities: z.array(z.string()).optional(),
|
|
56
80
|
onFailure: z.string().optional(),
|
|
57
81
|
threshold: z.number().optional(),
|
|
82
|
+
regions: z.array(z.string()).optional(),
|
|
83
|
+
entityThresholds: z.record(z.number()).optional(),
|
|
58
84
|
}).transform((v) => {
|
|
59
85
|
return remap$(v, {
|
|
60
86
|
onFailure: "on_failure",
|
|
87
|
+
entityThresholds: "entity_thresholds",
|
|
61
88
|
});
|
|
62
89
|
});
|
|
63
90
|
|