@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
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Evaluator template payload.
|
|
13
|
+
*/
|
|
14
|
+
export type Evaluator = {};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Prompt template payload.
|
|
18
|
+
*/
|
|
19
|
+
export type Prompt = {};
|
|
20
|
+
|
|
21
|
+
export type HubItem = {
|
|
22
|
+
/**
|
|
23
|
+
* Unique hub item ID.
|
|
24
|
+
*/
|
|
25
|
+
id?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* ID of the workspace entity represented by this hub item.
|
|
28
|
+
*/
|
|
29
|
+
entityId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Human-readable hub item name.
|
|
32
|
+
*/
|
|
33
|
+
displayName: string;
|
|
34
|
+
/**
|
|
35
|
+
* Hub item description.
|
|
36
|
+
*/
|
|
37
|
+
description: string;
|
|
38
|
+
/**
|
|
39
|
+
* Hub item type.
|
|
40
|
+
*/
|
|
41
|
+
type: string;
|
|
42
|
+
/**
|
|
43
|
+
* Whether a vendor hub item is active.
|
|
44
|
+
*/
|
|
45
|
+
isActive?: boolean | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Whether a vendor hub item is private.
|
|
48
|
+
*/
|
|
49
|
+
isPrivate?: boolean | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Whether the hub item is provided by orq.
|
|
52
|
+
*/
|
|
53
|
+
isProvidedByOrq?: boolean | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Execution engine for vendor hub item templates.
|
|
56
|
+
*/
|
|
57
|
+
engine?: string | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Stable vendor template key.
|
|
60
|
+
*/
|
|
61
|
+
key?: string | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Evaluator template payload.
|
|
64
|
+
*/
|
|
65
|
+
evaluator?: Evaluator | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Prompt template payload.
|
|
68
|
+
*/
|
|
69
|
+
prompt?: Prompt | undefined;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const Evaluator$inboundSchema: z.ZodType<
|
|
74
|
+
Evaluator,
|
|
75
|
+
z.ZodTypeDef,
|
|
76
|
+
unknown
|
|
77
|
+
> = z.object({});
|
|
78
|
+
|
|
79
|
+
export function evaluatorFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<Evaluator, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) => Evaluator$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'Evaluator' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const Prompt$inboundSchema: z.ZodType<Prompt, z.ZodTypeDef, unknown> = z
|
|
91
|
+
.object({});
|
|
92
|
+
|
|
93
|
+
export function promptFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<Prompt, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => Prompt$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'Prompt' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** @internal */
|
|
104
|
+
export const HubItem$inboundSchema: z.ZodType<HubItem, z.ZodTypeDef, unknown> =
|
|
105
|
+
z.object({
|
|
106
|
+
id: z.string().optional(),
|
|
107
|
+
entity_id: z.string(),
|
|
108
|
+
display_name: z.string(),
|
|
109
|
+
description: z.string(),
|
|
110
|
+
type: z.string(),
|
|
111
|
+
is_active: z.boolean().optional(),
|
|
112
|
+
is_private: z.boolean().optional(),
|
|
113
|
+
is_provided_by_orq: z.boolean().optional(),
|
|
114
|
+
engine: z.string().optional(),
|
|
115
|
+
key: z.string().optional(),
|
|
116
|
+
evaluator: z.lazy(() => Evaluator$inboundSchema).optional(),
|
|
117
|
+
prompt: z.lazy(() => Prompt$inboundSchema).optional(),
|
|
118
|
+
}).transform((v) => {
|
|
119
|
+
return remap$(v, {
|
|
120
|
+
"entity_id": "entityId",
|
|
121
|
+
"display_name": "displayName",
|
|
122
|
+
"is_active": "isActive",
|
|
123
|
+
"is_private": "isPrivate",
|
|
124
|
+
"is_provided_by_orq": "isProvidedByOrq",
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
export function hubItemFromJSON(
|
|
129
|
+
jsonString: string,
|
|
130
|
+
): SafeParseResult<HubItem, SDKValidationError> {
|
|
131
|
+
return safeParse(
|
|
132
|
+
jsonString,
|
|
133
|
+
(x) => HubItem$inboundSchema.parse(JSON.parse(x)),
|
|
134
|
+
`Failed to parse 'HubItem' from JSON`,
|
|
135
|
+
);
|
|
136
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
|
|
11
|
+
export type HubItemSummary = {
|
|
12
|
+
/**
|
|
13
|
+
* Unique hub search item ID.
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* ID of the workspace entity represented by this hub item. Empty on search results: the field is not part of the Typesense index.
|
|
18
|
+
*/
|
|
19
|
+
entityId?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Human-readable hub item name.
|
|
22
|
+
*/
|
|
23
|
+
displayName: string;
|
|
24
|
+
/**
|
|
25
|
+
* Hub item description.
|
|
26
|
+
*/
|
|
27
|
+
description: string;
|
|
28
|
+
/**
|
|
29
|
+
* Hub item type.
|
|
30
|
+
*/
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const HubItemSummary$inboundSchema: z.ZodType<
|
|
36
|
+
HubItemSummary,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
unknown
|
|
39
|
+
> = z.object({
|
|
40
|
+
id: z.string(),
|
|
41
|
+
entity_id: z.string().optional(),
|
|
42
|
+
display_name: z.string(),
|
|
43
|
+
description: z.string(),
|
|
44
|
+
type: z.string(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
"entity_id": "entityId",
|
|
48
|
+
"display_name": "displayName",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function hubItemSummaryFromJSON(
|
|
53
|
+
jsonString: string,
|
|
54
|
+
): SafeParseResult<HubItemSummary, SDKValidationError> {
|
|
55
|
+
return safeParse(
|
|
56
|
+
jsonString,
|
|
57
|
+
(x) => HubItemSummary$inboundSchema.parse(JSON.parse(x)),
|
|
58
|
+
`Failed to parse 'HubItemSummary' from JSON`,
|
|
59
|
+
);
|
|
60
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
import {
|
|
10
|
+
HubItemSummary,
|
|
11
|
+
HubItemSummary$inboundSchema,
|
|
12
|
+
} from "./hubitemsummary.js";
|
|
13
|
+
|
|
14
|
+
export type HubSearchHit = {
|
|
15
|
+
document: HubItemSummary;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const HubSearchHit$inboundSchema: z.ZodType<
|
|
20
|
+
HubSearchHit,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
document: HubItemSummary$inboundSchema,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function hubSearchHitFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<HubSearchHit, SDKValidationError> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) => HubSearchHit$inboundSchema.parse(JSON.parse(x)),
|
|
33
|
+
`Failed to parse 'HubSearchHit' from JSON`,
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -73,6 +73,7 @@ export * from "./budgetsortfield.js";
|
|
|
73
73
|
export * from "./budgetusage.js";
|
|
74
74
|
export * from "./cacheconfig.js";
|
|
75
75
|
export * from "./callsubagenttoolinput.js";
|
|
76
|
+
export * from "./capabilitiesresponse.js";
|
|
76
77
|
export * from "./chunk.js";
|
|
77
78
|
export * from "./chunkingcleanupoptions.js";
|
|
78
79
|
export * from "./chunkingconfiguration.js";
|
|
@@ -130,6 +131,7 @@ export * from "./createskillrequest.js";
|
|
|
130
131
|
export * from "./createskillresponse.js";
|
|
131
132
|
export * from "./createsmartrouterrequest.js";
|
|
132
133
|
export * from "./createsmartrouterresponse.js";
|
|
134
|
+
export * from "./createthreadrequest.js";
|
|
133
135
|
export * from "./createwebhookrequest.js";
|
|
134
136
|
export * from "./currentdatetoolinput.js";
|
|
135
137
|
export * from "./datapart.js";
|
|
@@ -177,6 +179,7 @@ export * from "./embeddingretryconfig.js";
|
|
|
177
179
|
export * from "./embeddingsconfig.js";
|
|
178
180
|
export * from "./embeddingsmodelparameters.js";
|
|
179
181
|
export * from "./embeddingtimeoutconfig.js";
|
|
182
|
+
export * from "./entitylist.js";
|
|
180
183
|
export * from "./errorpart.js";
|
|
181
184
|
export * from "./errorstreamingevent.js";
|
|
182
185
|
export * from "./evaluationcontext.js";
|
|
@@ -213,6 +216,7 @@ export * from "./getevaluatorversionresponse.js";
|
|
|
213
216
|
export * from "./getfilecontentresponse.js";
|
|
214
217
|
export * from "./getfileresponse.js";
|
|
215
218
|
export * from "./getguardrailruleresponse.js";
|
|
219
|
+
export * from "./gethubitemresponse.js";
|
|
216
220
|
export * from "./getipallowlistresponse.js";
|
|
217
221
|
export * from "./getlogcontextrequest.js";
|
|
218
222
|
export * from "./getlogcontextresponse.js";
|
|
@@ -225,6 +229,8 @@ export * from "./getnotifierresponse.js";
|
|
|
225
229
|
export * from "./getprojectresponse.js";
|
|
226
230
|
export * from "./getskillresponse.js";
|
|
227
231
|
export * from "./getsmartrouterresponse.js";
|
|
232
|
+
export * from "./getthreadcountrequest.js";
|
|
233
|
+
export * from "./getthreadcountresponse.js";
|
|
228
234
|
export * from "./gettraceresponse.js";
|
|
229
235
|
export * from "./gettracespanresponse.js";
|
|
230
236
|
export * from "./getuploadfileurlresponse.js";
|
|
@@ -236,6 +242,9 @@ export * from "./guardrailruleexpression.js";
|
|
|
236
242
|
export * from "./guardrailruleguardrail.js";
|
|
237
243
|
export * from "./guardrailruleplugin.js";
|
|
238
244
|
export * from "./httptoolinput.js";
|
|
245
|
+
export * from "./hubitem.js";
|
|
246
|
+
export * from "./hubitemsummary.js";
|
|
247
|
+
export * from "./hubsearchhit.js";
|
|
239
248
|
export * from "./identity.js";
|
|
240
249
|
export * from "./identitybudgetscope.js";
|
|
241
250
|
export * from "./identitybudgetscoperestresponse.js";
|
|
@@ -295,6 +304,8 @@ export * from "./listroutingrulesresponse.js";
|
|
|
295
304
|
export * from "./listroutingruleusedmodelsresponse.js";
|
|
296
305
|
export * from "./listskillsresponse.js";
|
|
297
306
|
export * from "./listsmartroutersresponse.js";
|
|
307
|
+
export * from "./listthreadsrequest.js";
|
|
308
|
+
export * from "./listthreadsresponse.js";
|
|
298
309
|
export * from "./listtracefacetsresponse.js";
|
|
299
310
|
export * from "./listtracefacetvaluesresponse.js";
|
|
300
311
|
export * from "./listtracefieldsresponse.js";
|
|
@@ -361,6 +372,7 @@ export * from "./movefilesystemfilerequest.js";
|
|
|
361
372
|
export * from "./movefilesystemfileresponse.js";
|
|
362
373
|
export * from "./notifier.js";
|
|
363
374
|
export * from "./notifiertype.js";
|
|
375
|
+
export * from "./openaipromptcacheoptions.js";
|
|
364
376
|
export * from "./orqadvisortool.js";
|
|
365
377
|
export * from "./orqsidekicktool.js";
|
|
366
378
|
export * from "./outputtokensdetails.js";
|
|
@@ -372,9 +384,7 @@ export * from "./partdoneevent.js";
|
|
|
372
384
|
export * from "./permissionmode.js";
|
|
373
385
|
export * from "./piiredaction.js";
|
|
374
386
|
export * from "./piiredactionconfig.js";
|
|
375
|
-
export * from "./
|
|
376
|
-
export * from "./piiredactionpluginen.js";
|
|
377
|
-
export * from "./piiredactionpluginnl.js";
|
|
387
|
+
export * from "./piiredactionplugin.js";
|
|
378
388
|
export * from "./policy.js";
|
|
379
389
|
export * from "./policyretryconfig.js";
|
|
380
390
|
export * from "./previewchunk.js";
|
|
@@ -510,6 +520,7 @@ export * from "./routingrulemodel.js";
|
|
|
510
520
|
export * from "./routingrulemodelsconfig.js";
|
|
511
521
|
export * from "./routingruleplugin.js";
|
|
512
522
|
export * from "./scopemode.js";
|
|
523
|
+
export * from "./searchhubitemsresponse.js";
|
|
513
524
|
export * from "./searchknowledgematch.js";
|
|
514
525
|
export * from "./searchknowledgerequest.js";
|
|
515
526
|
export * from "./searchknowledgeresponse.js";
|
|
@@ -526,6 +537,7 @@ export * from "./security.js";
|
|
|
526
537
|
export * from "./securityconfig.js";
|
|
527
538
|
export * from "./servertoolusedetails.js";
|
|
528
539
|
export * from "./serviceaccountowner.js";
|
|
540
|
+
export * from "./sessioninterval.js";
|
|
529
541
|
export * from "./sharing.js";
|
|
530
542
|
export * from "./sharingallprojects.js";
|
|
531
543
|
export * from "./sharingselectedprojects.js";
|
|
@@ -552,6 +564,11 @@ export * from "./textpart.js";
|
|
|
552
564
|
export * from "./thinkingconfigadaptiveschema.js";
|
|
553
565
|
export * from "./thinkingconfigdisabledschema.js";
|
|
554
566
|
export * from "./thinkingconfigenabledschema.js";
|
|
567
|
+
export * from "./thread.js";
|
|
568
|
+
export * from "./threadbilling.js";
|
|
569
|
+
export * from "./threadfilters.js";
|
|
570
|
+
export * from "./threadkind.js";
|
|
571
|
+
export * from "./threadusage.js";
|
|
555
572
|
export * from "./timeoutconfig.js";
|
|
556
573
|
export * from "./timeoutstreamingevent.js";
|
|
557
574
|
export * from "./tokenlimit.js";
|
|
@@ -614,6 +631,7 @@ export * from "./updateskillrequest.js";
|
|
|
614
631
|
export * from "./updateskillresponse.js";
|
|
615
632
|
export * from "./updatesmartrouterrequest.js";
|
|
616
633
|
export * from "./updatesmartrouterresponse.js";
|
|
634
|
+
export * from "./updatethreadrequest.js";
|
|
617
635
|
export * from "./updateworkspacerequest.js";
|
|
618
636
|
export * from "./updateworkspaceresponse.js";
|
|
619
637
|
export * from "./updateworkspacesettingsrequest.js";
|
|
@@ -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 ListThreadsRequest = {
|
|
13
|
+
filters: ThreadFilters;
|
|
14
|
+
limit?: number | undefined;
|
|
15
|
+
page?: number | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type ListThreadsRequest$Outbound = {
|
|
20
|
+
filters: ThreadFilters$Outbound;
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
page?: number | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const ListThreadsRequest$outboundSchema: z.ZodType<
|
|
27
|
+
ListThreadsRequest$Outbound,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
ListThreadsRequest
|
|
30
|
+
> = z.object({
|
|
31
|
+
filters: ThreadFilters$outboundSchema,
|
|
32
|
+
limit: z.number().int().optional(),
|
|
33
|
+
page: z.number().int().optional(),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function listThreadsRequestToJSON(
|
|
37
|
+
listThreadsRequest: ListThreadsRequest,
|
|
38
|
+
): string {
|
|
39
|
+
return JSON.stringify(
|
|
40
|
+
ListThreadsRequest$outboundSchema.parse(listThreadsRequest),
|
|
41
|
+
);
|
|
42
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { Thread, Thread$inboundSchema } from "./thread.js";
|
|
11
|
+
|
|
12
|
+
export type ListThreadsResponse = {
|
|
13
|
+
object: string;
|
|
14
|
+
data: Array<Thread>;
|
|
15
|
+
hasMore: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ListThreadsResponse$inboundSchema: z.ZodType<
|
|
20
|
+
ListThreadsResponse,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
object: z.string(),
|
|
25
|
+
data: z.array(Thread$inboundSchema),
|
|
26
|
+
has_more: z.boolean(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"has_more": "hasMore",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function listThreadsResponseFromJSON(
|
|
34
|
+
jsonString: string,
|
|
35
|
+
): SafeParseResult<ListThreadsResponse, SDKValidationError> {
|
|
36
|
+
return safeParse(
|
|
37
|
+
jsonString,
|
|
38
|
+
(x) => ListThreadsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
39
|
+
`Failed to parse 'ListThreadsResponse' from JSON`,
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export const OpenAIPromptCacheOptionsMode = {
|
|
12
|
+
Implicit: "implicit",
|
|
13
|
+
Explicit: "explicit",
|
|
14
|
+
} as const;
|
|
15
|
+
export type OpenAIPromptCacheOptionsMode = ClosedEnum<
|
|
16
|
+
typeof OpenAIPromptCacheOptionsMode
|
|
17
|
+
>;
|
|
18
|
+
|
|
19
|
+
export const Ttl = {
|
|
20
|
+
Thirtym: "30m",
|
|
21
|
+
} as const;
|
|
22
|
+
export type Ttl = ClosedEnum<typeof Ttl>;
|
|
23
|
+
|
|
24
|
+
export type OpenAIPromptCacheOptions = {
|
|
25
|
+
mode?: OpenAIPromptCacheOptionsMode | undefined;
|
|
26
|
+
ttl?: Ttl | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const OpenAIPromptCacheOptionsMode$inboundSchema: z.ZodNativeEnum<
|
|
31
|
+
typeof OpenAIPromptCacheOptionsMode
|
|
32
|
+
> = z.nativeEnum(OpenAIPromptCacheOptionsMode);
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const OpenAIPromptCacheOptionsMode$outboundSchema: z.ZodNativeEnum<
|
|
35
|
+
typeof OpenAIPromptCacheOptionsMode
|
|
36
|
+
> = OpenAIPromptCacheOptionsMode$inboundSchema;
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const Ttl$inboundSchema: z.ZodNativeEnum<typeof Ttl> = z.nativeEnum(Ttl);
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const Ttl$outboundSchema: z.ZodNativeEnum<typeof Ttl> =
|
|
42
|
+
Ttl$inboundSchema;
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const OpenAIPromptCacheOptions$inboundSchema: z.ZodType<
|
|
46
|
+
OpenAIPromptCacheOptions,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
unknown
|
|
49
|
+
> = z.object({
|
|
50
|
+
mode: OpenAIPromptCacheOptionsMode$inboundSchema.optional(),
|
|
51
|
+
ttl: Ttl$inboundSchema.optional(),
|
|
52
|
+
});
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type OpenAIPromptCacheOptions$Outbound = {
|
|
55
|
+
mode?: string | undefined;
|
|
56
|
+
ttl?: string | undefined;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const OpenAIPromptCacheOptions$outboundSchema: z.ZodType<
|
|
61
|
+
OpenAIPromptCacheOptions$Outbound,
|
|
62
|
+
z.ZodTypeDef,
|
|
63
|
+
OpenAIPromptCacheOptions
|
|
64
|
+
> = z.object({
|
|
65
|
+
mode: OpenAIPromptCacheOptionsMode$outboundSchema.optional(),
|
|
66
|
+
ttl: Ttl$outboundSchema.optional(),
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export function openAIPromptCacheOptionsToJSON(
|
|
70
|
+
openAIPromptCacheOptions: OpenAIPromptCacheOptions,
|
|
71
|
+
): string {
|
|
72
|
+
return JSON.stringify(
|
|
73
|
+
OpenAIPromptCacheOptions$outboundSchema.parse(openAIPromptCacheOptions),
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
export function openAIPromptCacheOptionsFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<OpenAIPromptCacheOptions, SDKValidationError> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) => OpenAIPromptCacheOptions$inboundSchema.parse(JSON.parse(x)),
|
|
82
|
+
`Failed to parse 'OpenAIPromptCacheOptions' from JSON`,
|
|
83
|
+
);
|
|
84
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* PII redaction plugin.
|
|
14
|
+
*/
|
|
15
|
+
export const Id = {
|
|
16
|
+
PiiRedaction: "pii_redaction",
|
|
17
|
+
} as const;
|
|
18
|
+
/**
|
|
19
|
+
* PII redaction plugin.
|
|
20
|
+
*/
|
|
21
|
+
export type Id = ClosedEnum<typeof Id>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Behaviour when detection fails.
|
|
25
|
+
*/
|
|
26
|
+
export const OnFailure = {
|
|
27
|
+
Block: "block",
|
|
28
|
+
Passthrough: "passthrough",
|
|
29
|
+
} as const;
|
|
30
|
+
/**
|
|
31
|
+
* Behaviour when detection fails.
|
|
32
|
+
*/
|
|
33
|
+
export type OnFailure = ClosedEnum<typeof OnFailure>;
|
|
34
|
+
|
|
35
|
+
export type PIIRedactionPlugin = {
|
|
36
|
+
/**
|
|
37
|
+
* PII redaction plugin.
|
|
38
|
+
*/
|
|
39
|
+
id: Id;
|
|
40
|
+
/**
|
|
41
|
+
* Detector language. Use "auto" to auto-detect; omitting the field falls back to en.
|
|
42
|
+
*/
|
|
43
|
+
language?: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Region codes selecting whole regions of coverage (e.g. "nl", "gb"). Every entity type those regions cover is redacted, alongside the base catalog. ["all"] is exclusive, and leaving both this and entities empty also runs every region, so selecting nothing is the widest request rather than the narrowest. Combines with entities: the two selections are unioned, so entities adds types on top of the region coverage.
|
|
46
|
+
*/
|
|
47
|
+
regions?: Array<string> | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* The entity types to redact. A named type is redacted even when it belongs to a region, so a region's types can be selected individually without naming the region. On its own this is a strict allowlist; alongside regions it adds to the region coverage. See GET /v2/pii/capabilities for valid types.
|
|
50
|
+
*/
|
|
51
|
+
entities?: Array<string> | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Per-entity confidence cutoff overrides in [0,1]. Tunes confidence only and never changes which types are redacted, so every key must also appear in entities.
|
|
54
|
+
*/
|
|
55
|
+
entityThresholds?: { [k: string]: number } | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Baseline confidence cutoff applied to every entity type without a per-entity override.
|
|
58
|
+
*/
|
|
59
|
+
threshold?: number | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Behaviour when detection fails.
|
|
62
|
+
*/
|
|
63
|
+
onFailure?: OnFailure | undefined;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const Id$inboundSchema: z.ZodNativeEnum<typeof Id> = z.nativeEnum(Id);
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const Id$outboundSchema: z.ZodNativeEnum<typeof Id> = Id$inboundSchema;
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const OnFailure$inboundSchema: z.ZodNativeEnum<typeof OnFailure> = z
|
|
73
|
+
.nativeEnum(OnFailure);
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const OnFailure$outboundSchema: z.ZodNativeEnum<typeof OnFailure> =
|
|
76
|
+
OnFailure$inboundSchema;
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const PIIRedactionPlugin$inboundSchema: z.ZodType<
|
|
80
|
+
PIIRedactionPlugin,
|
|
81
|
+
z.ZodTypeDef,
|
|
82
|
+
unknown
|
|
83
|
+
> = z.object({
|
|
84
|
+
id: Id$inboundSchema,
|
|
85
|
+
language: z.string().optional(),
|
|
86
|
+
regions: z.array(z.string()).optional(),
|
|
87
|
+
entities: z.array(z.string()).optional(),
|
|
88
|
+
entity_thresholds: z.record(z.number()).optional(),
|
|
89
|
+
threshold: z.number().optional(),
|
|
90
|
+
on_failure: OnFailure$inboundSchema.optional(),
|
|
91
|
+
}).transform((v) => {
|
|
92
|
+
return remap$(v, {
|
|
93
|
+
"entity_thresholds": "entityThresholds",
|
|
94
|
+
"on_failure": "onFailure",
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
/** @internal */
|
|
98
|
+
export type PIIRedactionPlugin$Outbound = {
|
|
99
|
+
id: string;
|
|
100
|
+
language?: string | undefined;
|
|
101
|
+
regions?: Array<string> | undefined;
|
|
102
|
+
entities?: Array<string> | undefined;
|
|
103
|
+
entity_thresholds?: { [k: string]: number } | undefined;
|
|
104
|
+
threshold?: number | undefined;
|
|
105
|
+
on_failure?: string | undefined;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/** @internal */
|
|
109
|
+
export const PIIRedactionPlugin$outboundSchema: z.ZodType<
|
|
110
|
+
PIIRedactionPlugin$Outbound,
|
|
111
|
+
z.ZodTypeDef,
|
|
112
|
+
PIIRedactionPlugin
|
|
113
|
+
> = z.object({
|
|
114
|
+
id: Id$outboundSchema,
|
|
115
|
+
language: z.string().optional(),
|
|
116
|
+
regions: z.array(z.string()).optional(),
|
|
117
|
+
entities: z.array(z.string()).optional(),
|
|
118
|
+
entityThresholds: z.record(z.number()).optional(),
|
|
119
|
+
threshold: z.number().optional(),
|
|
120
|
+
onFailure: OnFailure$outboundSchema.optional(),
|
|
121
|
+
}).transform((v) => {
|
|
122
|
+
return remap$(v, {
|
|
123
|
+
entityThresholds: "entity_thresholds",
|
|
124
|
+
onFailure: "on_failure",
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
export function piiRedactionPluginToJSON(
|
|
129
|
+
piiRedactionPlugin: PIIRedactionPlugin,
|
|
130
|
+
): string {
|
|
131
|
+
return JSON.stringify(
|
|
132
|
+
PIIRedactionPlugin$outboundSchema.parse(piiRedactionPlugin),
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
export function piiRedactionPluginFromJSON(
|
|
136
|
+
jsonString: string,
|
|
137
|
+
): SafeParseResult<PIIRedactionPlugin, SDKValidationError> {
|
|
138
|
+
return safeParse(
|
|
139
|
+
jsonString,
|
|
140
|
+
(x) => PIIRedactionPlugin$inboundSchema.parse(JSON.parse(x)),
|
|
141
|
+
`Failed to parse 'PIIRedactionPlugin' from JSON`,
|
|
142
|
+
);
|
|
143
|
+
}
|