@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
|
@@ -165,11 +165,6 @@ export type CreateImageTimeout = {
|
|
|
165
165
|
callTimeout: number;
|
|
166
166
|
};
|
|
167
167
|
|
|
168
|
-
export type CreateImagePlugins =
|
|
169
|
-
| components.PIIRedactionPluginEn
|
|
170
|
-
| components.PIIRedactionPluginNl
|
|
171
|
-
| components.PIIRedactionPluginAuto;
|
|
172
|
-
|
|
173
168
|
/**
|
|
174
169
|
* Retry configuration for the request
|
|
175
170
|
*/
|
|
@@ -364,13 +359,7 @@ export type CreateImageRequestBody = {
|
|
|
364
359
|
/**
|
|
365
360
|
* Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
|
|
366
361
|
*/
|
|
367
|
-
plugins?:
|
|
368
|
-
| Array<
|
|
369
|
-
| components.PIIRedactionPluginEn
|
|
370
|
-
| components.PIIRedactionPluginNl
|
|
371
|
-
| components.PIIRedactionPluginAuto
|
|
372
|
-
>
|
|
373
|
-
| undefined;
|
|
362
|
+
plugins?: Array<components.PIIRedactionPlugin> | undefined;
|
|
374
363
|
orq?: CreateImageOrq | undefined;
|
|
375
364
|
};
|
|
376
365
|
|
|
@@ -621,31 +610,6 @@ export function createImageTimeoutToJSON(
|
|
|
621
610
|
);
|
|
622
611
|
}
|
|
623
612
|
|
|
624
|
-
/** @internal */
|
|
625
|
-
export type CreateImagePlugins$Outbound =
|
|
626
|
-
| components.PIIRedactionPluginEn$Outbound
|
|
627
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
628
|
-
| components.PIIRedactionPluginAuto$Outbound;
|
|
629
|
-
|
|
630
|
-
/** @internal */
|
|
631
|
-
export const CreateImagePlugins$outboundSchema: z.ZodType<
|
|
632
|
-
CreateImagePlugins$Outbound,
|
|
633
|
-
z.ZodTypeDef,
|
|
634
|
-
CreateImagePlugins
|
|
635
|
-
> = z.union([
|
|
636
|
-
components.PIIRedactionPluginEn$outboundSchema,
|
|
637
|
-
components.PIIRedactionPluginNl$outboundSchema,
|
|
638
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
639
|
-
]);
|
|
640
|
-
|
|
641
|
-
export function createImagePluginsToJSON(
|
|
642
|
-
createImagePlugins: CreateImagePlugins,
|
|
643
|
-
): string {
|
|
644
|
-
return JSON.stringify(
|
|
645
|
-
CreateImagePlugins$outboundSchema.parse(createImagePlugins),
|
|
646
|
-
);
|
|
647
|
-
}
|
|
648
|
-
|
|
649
613
|
/** @internal */
|
|
650
614
|
export type CreateImageRouterImagesGenerationsRetry$Outbound = {
|
|
651
615
|
count: number;
|
|
@@ -924,13 +888,7 @@ export type CreateImageRequestBody$Outbound = {
|
|
|
924
888
|
cache?: CreateImageCache$Outbound | undefined;
|
|
925
889
|
load_balancer?: CreateImageLoadBalancer1$Outbound | undefined;
|
|
926
890
|
timeout?: CreateImageTimeout$Outbound | undefined;
|
|
927
|
-
plugins?:
|
|
928
|
-
| Array<
|
|
929
|
-
| components.PIIRedactionPluginEn$Outbound
|
|
930
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
931
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
932
|
-
>
|
|
933
|
-
| undefined;
|
|
891
|
+
plugins?: Array<components.PIIRedactionPlugin$Outbound> | undefined;
|
|
934
892
|
orq?: CreateImageOrq$Outbound | undefined;
|
|
935
893
|
};
|
|
936
894
|
|
|
@@ -961,13 +919,7 @@ export const CreateImageRequestBody$outboundSchema: z.ZodType<
|
|
|
961
919
|
loadBalancer: z.lazy(() => CreateImageLoadBalancer1$outboundSchema)
|
|
962
920
|
.optional(),
|
|
963
921
|
timeout: z.lazy(() => CreateImageTimeout$outboundSchema).optional(),
|
|
964
|
-
plugins: z.array(
|
|
965
|
-
z.union([
|
|
966
|
-
components.PIIRedactionPluginEn$outboundSchema,
|
|
967
|
-
components.PIIRedactionPluginNl$outboundSchema,
|
|
968
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
969
|
-
]),
|
|
970
|
-
).optional(),
|
|
922
|
+
plugins: z.array(components.PIIRedactionPlugin$outboundSchema).optional(),
|
|
971
923
|
orq: z.lazy(() => CreateImageOrq$outboundSchema).optional(),
|
|
972
924
|
}).transform((v) => {
|
|
973
925
|
return remap$(v, {
|
|
@@ -639,11 +639,9 @@ export type CreatePromptGuardrails = {
|
|
|
639
639
|
};
|
|
640
640
|
|
|
641
641
|
export type CreatePromptPlugins =
|
|
642
|
-
| components.
|
|
643
|
-
| components.
|
|
644
|
-
| components.TraceScrubbingPlugin
|
|
645
|
-
| components.PIIRedactionPluginAuto
|
|
646
|
-
| components.ResponseHealingPlugin;
|
|
642
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
643
|
+
| components.ResponseHealingPlugin
|
|
644
|
+
| components.TraceScrubbingPlugin;
|
|
647
645
|
|
|
648
646
|
export type CreatePromptFallbacks = {
|
|
649
647
|
/**
|
|
@@ -912,11 +910,9 @@ export type PromptInput = {
|
|
|
912
910
|
*/
|
|
913
911
|
plugins?:
|
|
914
912
|
| Array<
|
|
915
|
-
| components.
|
|
916
|
-
| components.PIIRedactionPluginNl
|
|
917
|
-
| components.TraceScrubbingPlugin
|
|
918
|
-
| components.PIIRedactionPluginAuto
|
|
913
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
919
914
|
| components.ResponseHealingPlugin
|
|
915
|
+
| components.TraceScrubbingPlugin
|
|
920
916
|
>
|
|
921
917
|
| undefined;
|
|
922
918
|
/**
|
|
@@ -1812,11 +1808,9 @@ export type CreatePromptPromptsGuardrails = {
|
|
|
1812
1808
|
};
|
|
1813
1809
|
|
|
1814
1810
|
export type CreatePromptPromptsPlugins =
|
|
1815
|
-
| components.
|
|
1816
|
-
| components.
|
|
1817
|
-
| components.TraceScrubbingPlugin
|
|
1818
|
-
| components.PIIRedactionPluginAuto
|
|
1819
|
-
| components.ResponseHealingPlugin;
|
|
1811
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
1812
|
+
| components.ResponseHealingPlugin
|
|
1813
|
+
| components.TraceScrubbingPlugin;
|
|
1820
1814
|
|
|
1821
1815
|
export type CreatePromptPromptsFallbacks = {
|
|
1822
1816
|
/**
|
|
@@ -2414,11 +2408,9 @@ export type PromptField = {
|
|
|
2414
2408
|
*/
|
|
2415
2409
|
plugins?:
|
|
2416
2410
|
| Array<
|
|
2417
|
-
| components.
|
|
2418
|
-
| components.PIIRedactionPluginNl
|
|
2419
|
-
| components.TraceScrubbingPlugin
|
|
2420
|
-
| components.PIIRedactionPluginAuto
|
|
2411
|
+
| (components.PIIRedactionPlugin & { id: "pii_redaction" })
|
|
2421
2412
|
| components.ResponseHealingPlugin
|
|
2413
|
+
| components.TraceScrubbingPlugin
|
|
2422
2414
|
>
|
|
2423
2415
|
| undefined;
|
|
2424
2416
|
/**
|
|
@@ -3578,11 +3570,9 @@ export function createPromptGuardrailsToJSON(
|
|
|
3578
3570
|
|
|
3579
3571
|
/** @internal */
|
|
3580
3572
|
export type CreatePromptPlugins$Outbound =
|
|
3581
|
-
| components.
|
|
3582
|
-
| components.
|
|
3583
|
-
| components.TraceScrubbingPlugin$Outbound
|
|
3584
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
3585
|
-
| components.ResponseHealingPlugin$Outbound;
|
|
3573
|
+
| (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
|
|
3574
|
+
| components.ResponseHealingPlugin$Outbound
|
|
3575
|
+
| components.TraceScrubbingPlugin$Outbound;
|
|
3586
3576
|
|
|
3587
3577
|
/** @internal */
|
|
3588
3578
|
export const CreatePromptPlugins$outboundSchema: z.ZodType<
|
|
@@ -3590,11 +3580,11 @@ export const CreatePromptPlugins$outboundSchema: z.ZodType<
|
|
|
3590
3580
|
z.ZodTypeDef,
|
|
3591
3581
|
CreatePromptPlugins
|
|
3592
3582
|
> = z.union([
|
|
3593
|
-
components.
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3583
|
+
components.PIIRedactionPlugin$outboundSchema.and(
|
|
3584
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
3585
|
+
),
|
|
3597
3586
|
components.ResponseHealingPlugin$outboundSchema,
|
|
3587
|
+
components.TraceScrubbingPlugin$outboundSchema,
|
|
3598
3588
|
]);
|
|
3599
3589
|
|
|
3600
3590
|
export function createPromptPluginsToJSON(
|
|
@@ -3860,11 +3850,9 @@ export type PromptInput$Outbound = {
|
|
|
3860
3850
|
guardrails?: Array<CreatePromptGuardrails$Outbound> | undefined;
|
|
3861
3851
|
plugins?:
|
|
3862
3852
|
| Array<
|
|
3863
|
-
| components.
|
|
3864
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
3865
|
-
| components.TraceScrubbingPlugin$Outbound
|
|
3866
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
3853
|
+
| (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
|
|
3867
3854
|
| components.ResponseHealingPlugin$Outbound
|
|
3855
|
+
| components.TraceScrubbingPlugin$Outbound
|
|
3868
3856
|
>
|
|
3869
3857
|
| undefined;
|
|
3870
3858
|
fallbacks?: Array<CreatePromptFallbacks$Outbound> | undefined;
|
|
@@ -3930,11 +3918,11 @@ export const PromptInput$outboundSchema: z.ZodType<
|
|
|
3930
3918
|
.optional(),
|
|
3931
3919
|
plugins: z.array(
|
|
3932
3920
|
z.union([
|
|
3933
|
-
components.
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
3921
|
+
components.PIIRedactionPlugin$outboundSchema.and(
|
|
3922
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
3923
|
+
),
|
|
3937
3924
|
components.ResponseHealingPlugin$outboundSchema,
|
|
3925
|
+
components.TraceScrubbingPlugin$outboundSchema,
|
|
3938
3926
|
]),
|
|
3939
3927
|
).optional(),
|
|
3940
3928
|
fallbacks: z.array(z.lazy(() => CreatePromptFallbacks$outboundSchema))
|
|
@@ -4952,11 +4940,11 @@ export const CreatePromptPromptsPlugins$inboundSchema: z.ZodType<
|
|
|
4952
4940
|
z.ZodTypeDef,
|
|
4953
4941
|
unknown
|
|
4954
4942
|
> = z.union([
|
|
4955
|
-
components.
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
4943
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
4944
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
4945
|
+
),
|
|
4959
4946
|
components.ResponseHealingPlugin$inboundSchema,
|
|
4947
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
4960
4948
|
]);
|
|
4961
4949
|
|
|
4962
4950
|
export function createPromptPromptsPluginsFromJSON(
|
|
@@ -5747,11 +5735,11 @@ export const PromptField$inboundSchema: z.ZodType<
|
|
|
5747
5735
|
.optional(),
|
|
5748
5736
|
plugins: z.array(
|
|
5749
5737
|
z.union([
|
|
5750
|
-
components.
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
components.PIIRedactionPluginAuto$inboundSchema,
|
|
5738
|
+
components.PIIRedactionPlugin$inboundSchema.and(
|
|
5739
|
+
z.object({ id: z.literal("pii_redaction") }),
|
|
5740
|
+
),
|
|
5754
5741
|
components.ResponseHealingPlugin$inboundSchema,
|
|
5742
|
+
components.TraceScrubbingPlugin$inboundSchema,
|
|
5755
5743
|
]),
|
|
5756
5744
|
).optional(),
|
|
5757
5745
|
fallbacks: z.array(z.lazy(() => CreatePromptPromptsFallbacks$inboundSchema))
|
|
@@ -85,11 +85,6 @@ export type CreateRerankTimeout = {
|
|
|
85
85
|
callTimeout: number;
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
-
export type CreateRerankPlugins =
|
|
89
|
-
| components.PIIRedactionPluginEn
|
|
90
|
-
| components.PIIRedactionPluginNl
|
|
91
|
-
| components.PIIRedactionPluginAuto;
|
|
92
|
-
|
|
93
88
|
export type CreateRerankRouterRerankFallbacks = {
|
|
94
89
|
/**
|
|
95
90
|
* Fallback model identifier
|
|
@@ -260,13 +255,7 @@ export type CreateRerankRequestBody = {
|
|
|
260
255
|
/**
|
|
261
256
|
* Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
|
|
262
257
|
*/
|
|
263
|
-
plugins?:
|
|
264
|
-
| Array<
|
|
265
|
-
| components.PIIRedactionPluginEn
|
|
266
|
-
| components.PIIRedactionPluginNl
|
|
267
|
-
| components.PIIRedactionPluginAuto
|
|
268
|
-
>
|
|
269
|
-
| undefined;
|
|
258
|
+
plugins?: Array<components.PIIRedactionPlugin> | undefined;
|
|
270
259
|
orq?: CreateRerankOrq | undefined;
|
|
271
260
|
};
|
|
272
261
|
|
|
@@ -519,31 +508,6 @@ export function createRerankTimeoutToJSON(
|
|
|
519
508
|
);
|
|
520
509
|
}
|
|
521
510
|
|
|
522
|
-
/** @internal */
|
|
523
|
-
export type CreateRerankPlugins$Outbound =
|
|
524
|
-
| components.PIIRedactionPluginEn$Outbound
|
|
525
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
526
|
-
| components.PIIRedactionPluginAuto$Outbound;
|
|
527
|
-
|
|
528
|
-
/** @internal */
|
|
529
|
-
export const CreateRerankPlugins$outboundSchema: z.ZodType<
|
|
530
|
-
CreateRerankPlugins$Outbound,
|
|
531
|
-
z.ZodTypeDef,
|
|
532
|
-
CreateRerankPlugins
|
|
533
|
-
> = z.union([
|
|
534
|
-
components.PIIRedactionPluginEn$outboundSchema,
|
|
535
|
-
components.PIIRedactionPluginNl$outboundSchema,
|
|
536
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
537
|
-
]);
|
|
538
|
-
|
|
539
|
-
export function createRerankPluginsToJSON(
|
|
540
|
-
createRerankPlugins: CreateRerankPlugins,
|
|
541
|
-
): string {
|
|
542
|
-
return JSON.stringify(
|
|
543
|
-
CreateRerankPlugins$outboundSchema.parse(createRerankPlugins),
|
|
544
|
-
);
|
|
545
|
-
}
|
|
546
|
-
|
|
547
511
|
/** @internal */
|
|
548
512
|
export type CreateRerankRouterRerankFallbacks$Outbound = {
|
|
549
513
|
model: string;
|
|
@@ -796,13 +760,7 @@ export type CreateRerankRequestBody$Outbound = {
|
|
|
796
760
|
cache?: CreateRerankCache$Outbound | undefined;
|
|
797
761
|
load_balancer?: CreateRerankLoadBalancer1$Outbound | undefined;
|
|
798
762
|
timeout?: CreateRerankTimeout$Outbound | undefined;
|
|
799
|
-
plugins?:
|
|
800
|
-
| Array<
|
|
801
|
-
| components.PIIRedactionPluginEn$Outbound
|
|
802
|
-
| components.PIIRedactionPluginNl$Outbound
|
|
803
|
-
| components.PIIRedactionPluginAuto$Outbound
|
|
804
|
-
>
|
|
805
|
-
| undefined;
|
|
763
|
+
plugins?: Array<components.PIIRedactionPlugin$Outbound> | undefined;
|
|
806
764
|
orq?: CreateRerankOrq$Outbound | undefined;
|
|
807
765
|
};
|
|
808
766
|
|
|
@@ -826,13 +784,7 @@ export const CreateRerankRequestBody$outboundSchema: z.ZodType<
|
|
|
826
784
|
loadBalancer: z.lazy(() => CreateRerankLoadBalancer1$outboundSchema)
|
|
827
785
|
.optional(),
|
|
828
786
|
timeout: z.lazy(() => CreateRerankTimeout$outboundSchema).optional(),
|
|
829
|
-
plugins: z.array(
|
|
830
|
-
z.union([
|
|
831
|
-
components.PIIRedactionPluginEn$outboundSchema,
|
|
832
|
-
components.PIIRedactionPluginNl$outboundSchema,
|
|
833
|
-
components.PIIRedactionPluginAuto$outboundSchema,
|
|
834
|
-
]),
|
|
835
|
-
).optional(),
|
|
787
|
+
plugins: z.array(components.PIIRedactionPlugin$outboundSchema).optional(),
|
|
836
788
|
orq: z.lazy(() => CreateRerankOrq$outboundSchema).optional(),
|
|
837
789
|
}).transform((v) => {
|
|
838
790
|
return remap$(v, {
|
|
@@ -332,6 +332,24 @@ export type CreateRouterResponseContent2 = TwoText | TwoImage | TwoFile;
|
|
|
332
332
|
*/
|
|
333
333
|
export type InputContent = string | Array<TwoText | TwoImage | TwoFile>;
|
|
334
334
|
|
|
335
|
+
export const Effort = {
|
|
336
|
+
None: "none",
|
|
337
|
+
Minimal: "minimal",
|
|
338
|
+
Low: "low",
|
|
339
|
+
Medium: "medium",
|
|
340
|
+
High: "high",
|
|
341
|
+
Xhigh: "xhigh",
|
|
342
|
+
Max: "max",
|
|
343
|
+
} as const;
|
|
344
|
+
export type Effort = ClosedEnum<typeof Effort>;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Reasoning settings applied by a configuration_update item.
|
|
348
|
+
*/
|
|
349
|
+
export type Reasoning = {
|
|
350
|
+
effort?: Effort | undefined;
|
|
351
|
+
};
|
|
352
|
+
|
|
335
353
|
/**
|
|
336
354
|
* The role of the message sender (for message items).
|
|
337
355
|
*/
|
|
@@ -388,6 +406,7 @@ export const InputType = {
|
|
|
388
406
|
McpListTools: "mcp_list_tools",
|
|
389
407
|
McpApprovalRequest: "mcp_approval_request",
|
|
390
408
|
McpApprovalResponse: "mcp_approval_response",
|
|
409
|
+
ConfigurationUpdate: "configuration_update",
|
|
391
410
|
} as const;
|
|
392
411
|
/**
|
|
393
412
|
* The type of item.
|
|
@@ -402,6 +421,10 @@ export type CreateRouterResponseInput2 = {
|
|
|
402
421
|
* The function arguments as a JSON string (for function_call items).
|
|
403
422
|
*/
|
|
404
423
|
arguments?: string | undefined;
|
|
424
|
+
/**
|
|
425
|
+
* Whether a function or custom tool call runs asynchronously.
|
|
426
|
+
*/
|
|
427
|
+
async?: boolean | undefined;
|
|
405
428
|
/**
|
|
406
429
|
* The function call identifier (for function_call and function_call_output items).
|
|
407
430
|
*/
|
|
@@ -422,6 +445,10 @@ export type CreateRouterResponseInput2 = {
|
|
|
422
445
|
* The output of the function call (for function_call_output type).
|
|
423
446
|
*/
|
|
424
447
|
output?: string | undefined;
|
|
448
|
+
/**
|
|
449
|
+
* Reasoning settings applied by a configuration_update item.
|
|
450
|
+
*/
|
|
451
|
+
reasoning?: Reasoning | undefined;
|
|
425
452
|
/**
|
|
426
453
|
* The role of the message sender (for message items).
|
|
427
454
|
*/
|
|
@@ -648,7 +675,7 @@ export type Network = {
|
|
|
648
675
|
/**
|
|
649
676
|
* The orq.ai tool type. orq:web_search, orq:web_fetch, and orq:datetime are the canonical names for orq:google_search, orq:web_scraper, and orq:current_date.
|
|
650
677
|
*/
|
|
651
|
-
export const
|
|
678
|
+
export const CreateRouterResponseToolsResponsesRequestType = {
|
|
652
679
|
OrqWebSearch: "orq:web_search",
|
|
653
680
|
OrqWebFetch: "orq:web_fetch",
|
|
654
681
|
OrqDatetime: "orq:datetime",
|
|
@@ -670,8 +697,8 @@ export const CreateRouterResponseToolsResponsesType = {
|
|
|
670
697
|
/**
|
|
671
698
|
* The orq.ai tool type. orq:web_search, orq:web_fetch, and orq:datetime are the canonical names for orq:google_search, orq:web_scraper, and orq:current_date.
|
|
672
699
|
*/
|
|
673
|
-
export type
|
|
674
|
-
typeof
|
|
700
|
+
export type CreateRouterResponseToolsResponsesRequestType = ClosedEnum<
|
|
701
|
+
typeof CreateRouterResponseToolsResponsesRequestType
|
|
675
702
|
>;
|
|
676
703
|
|
|
677
704
|
/**
|
|
@@ -697,7 +724,26 @@ export type OrqAiTool = {
|
|
|
697
724
|
/**
|
|
698
725
|
* The orq.ai tool type. orq:web_search, orq:web_fetch, and orq:datetime are the canonical names for orq:google_search, orq:web_scraper, and orq:current_date.
|
|
699
726
|
*/
|
|
700
|
-
type:
|
|
727
|
+
type: CreateRouterResponseToolsResponsesRequestType;
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* A custom tool that accepts free-form input.
|
|
732
|
+
*/
|
|
733
|
+
export type Custom = {
|
|
734
|
+
/**
|
|
735
|
+
* Whether the tool response can be returned asynchronously.
|
|
736
|
+
*/
|
|
737
|
+
async?: boolean | undefined;
|
|
738
|
+
/**
|
|
739
|
+
* A description of what the custom tool does.
|
|
740
|
+
*/
|
|
741
|
+
description?: string | undefined;
|
|
742
|
+
/**
|
|
743
|
+
* The name of the custom tool.
|
|
744
|
+
*/
|
|
745
|
+
name: string;
|
|
746
|
+
type: "custom";
|
|
701
747
|
};
|
|
702
748
|
|
|
703
749
|
/**
|
|
@@ -759,6 +805,10 @@ export type ToolsCacheControl = {
|
|
|
759
805
|
* A function tool the model can call.
|
|
760
806
|
*/
|
|
761
807
|
export type ToolsFunction = {
|
|
808
|
+
/**
|
|
809
|
+
* Whether the tool response can be returned asynchronously.
|
|
810
|
+
*/
|
|
811
|
+
async?: boolean | undefined;
|
|
762
812
|
cacheControl?: ToolsCacheControl | undefined;
|
|
763
813
|
/**
|
|
764
814
|
* A description of what the function does.
|
|
@@ -784,6 +834,7 @@ export type ToolsFunction = {
|
|
|
784
834
|
*/
|
|
785
835
|
export type CreateRouterResponseTools =
|
|
786
836
|
| ToolsFunction
|
|
837
|
+
| Custom
|
|
787
838
|
| components.OrqAdvisorTool
|
|
788
839
|
| (components.OrqSidekickTool & { type: "orq:subagent" })
|
|
789
840
|
| (components.OrqSidekickTool & { type: "orq:sidekick" })
|
|
@@ -881,6 +932,7 @@ export type CreateRouterResponseRequestBody = {
|
|
|
881
932
|
* Key for prompt caching across requests.
|
|
882
933
|
*/
|
|
883
934
|
promptCacheKey?: string | undefined;
|
|
935
|
+
promptCacheOptions?: components.OpenAIPromptCacheOptions | undefined;
|
|
884
936
|
reasoning?: components.ReasoningParam | undefined;
|
|
885
937
|
retry?: components.ResponseRetryConfig | undefined;
|
|
886
938
|
/**
|
|
@@ -933,6 +985,7 @@ export type CreateRouterResponseRequestBody = {
|
|
|
933
985
|
tools?:
|
|
934
986
|
| Array<
|
|
935
987
|
| ToolsFunction
|
|
988
|
+
| Custom
|
|
936
989
|
| components.OrqAdvisorTool
|
|
937
990
|
| (components.OrqSidekickTool & { type: "orq:subagent" })
|
|
938
991
|
| (components.OrqSidekickTool & { type: "orq:sidekick" })
|
|
@@ -1050,6 +1103,7 @@ export type CreateRouterResponseResponseBody = {
|
|
|
1050
1103
|
presencePenalty: number;
|
|
1051
1104
|
previousResponseId: string | null;
|
|
1052
1105
|
promptCacheKey: string | null;
|
|
1106
|
+
promptCacheOptions: components.OpenAIPromptCacheOptions | null;
|
|
1053
1107
|
promptCacheRetention: string | null;
|
|
1054
1108
|
reasoning: components.Reasoning | null;
|
|
1055
1109
|
safetyIdentifier: string | null;
|
|
@@ -1395,6 +1449,28 @@ export function inputContentToJSON(inputContent: InputContent): string {
|
|
|
1395
1449
|
return JSON.stringify(InputContent$outboundSchema.parse(inputContent));
|
|
1396
1450
|
}
|
|
1397
1451
|
|
|
1452
|
+
/** @internal */
|
|
1453
|
+
export const Effort$outboundSchema: z.ZodNativeEnum<typeof Effort> = z
|
|
1454
|
+
.nativeEnum(Effort);
|
|
1455
|
+
|
|
1456
|
+
/** @internal */
|
|
1457
|
+
export type Reasoning$Outbound = {
|
|
1458
|
+
effort?: string | undefined;
|
|
1459
|
+
};
|
|
1460
|
+
|
|
1461
|
+
/** @internal */
|
|
1462
|
+
export const Reasoning$outboundSchema: z.ZodType<
|
|
1463
|
+
Reasoning$Outbound,
|
|
1464
|
+
z.ZodTypeDef,
|
|
1465
|
+
Reasoning
|
|
1466
|
+
> = z.object({
|
|
1467
|
+
effort: Effort$outboundSchema.optional(),
|
|
1468
|
+
});
|
|
1469
|
+
|
|
1470
|
+
export function reasoningToJSON(reasoning: Reasoning): string {
|
|
1471
|
+
return JSON.stringify(Reasoning$outboundSchema.parse(reasoning));
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1398
1474
|
/** @internal */
|
|
1399
1475
|
export const InputRole$outboundSchema: z.ZodNativeEnum<typeof InputRole> = z
|
|
1400
1476
|
.nativeEnum(InputRole);
|
|
@@ -1410,6 +1486,7 @@ export const InputType$outboundSchema: z.ZodNativeEnum<typeof InputType> = z
|
|
|
1410
1486
|
/** @internal */
|
|
1411
1487
|
export type CreateRouterResponseInput2$Outbound = {
|
|
1412
1488
|
arguments?: string | undefined;
|
|
1489
|
+
async?: boolean | undefined;
|
|
1413
1490
|
call_id?: string | undefined;
|
|
1414
1491
|
content?:
|
|
1415
1492
|
| string
|
|
@@ -1418,6 +1495,7 @@ export type CreateRouterResponseInput2$Outbound = {
|
|
|
1418
1495
|
id?: string | undefined;
|
|
1419
1496
|
name?: string | undefined;
|
|
1420
1497
|
output?: string | undefined;
|
|
1498
|
+
reasoning?: Reasoning$Outbound | undefined;
|
|
1421
1499
|
role?: string | undefined;
|
|
1422
1500
|
status?: string | undefined;
|
|
1423
1501
|
type?: string | undefined;
|
|
@@ -1430,6 +1508,7 @@ export const CreateRouterResponseInput2$outboundSchema: z.ZodType<
|
|
|
1430
1508
|
CreateRouterResponseInput2
|
|
1431
1509
|
> = z.object({
|
|
1432
1510
|
arguments: z.string().optional(),
|
|
1511
|
+
async: z.boolean().optional(),
|
|
1433
1512
|
callId: z.string().optional(),
|
|
1434
1513
|
content: z.union([
|
|
1435
1514
|
z.string(),
|
|
@@ -1442,6 +1521,7 @@ export const CreateRouterResponseInput2$outboundSchema: z.ZodType<
|
|
|
1442
1521
|
id: z.string().optional(),
|
|
1443
1522
|
name: z.string().optional(),
|
|
1444
1523
|
output: z.string().optional(),
|
|
1524
|
+
reasoning: z.lazy(() => Reasoning$outboundSchema).optional(),
|
|
1445
1525
|
role: InputRole$outboundSchema.optional(),
|
|
1446
1526
|
status: Status$outboundSchema.optional(),
|
|
1447
1527
|
type: InputType$outboundSchema.optional(),
|
|
@@ -1759,10 +1839,9 @@ export function networkToJSON(network: Network): string {
|
|
|
1759
1839
|
}
|
|
1760
1840
|
|
|
1761
1841
|
/** @internal */
|
|
1762
|
-
export const
|
|
1763
|
-
z.ZodNativeEnum<typeof
|
|
1764
|
-
|
|
1765
|
-
);
|
|
1842
|
+
export const CreateRouterResponseToolsResponsesRequestType$outboundSchema:
|
|
1843
|
+
z.ZodNativeEnum<typeof CreateRouterResponseToolsResponsesRequestType> = z
|
|
1844
|
+
.nativeEnum(CreateRouterResponseToolsResponsesRequestType);
|
|
1766
1845
|
|
|
1767
1846
|
/** @internal */
|
|
1768
1847
|
export type OrqAiTool$Outbound = {
|
|
@@ -1783,7 +1862,7 @@ export const OrqAiTool$outboundSchema: z.ZodType<
|
|
|
1783
1862
|
network: z.lazy(() => Network$outboundSchema).optional(),
|
|
1784
1863
|
timezone: z.string().optional(),
|
|
1785
1864
|
toolId: z.string().optional(),
|
|
1786
|
-
type:
|
|
1865
|
+
type: CreateRouterResponseToolsResponsesRequestType$outboundSchema,
|
|
1787
1866
|
}).transform((v) => {
|
|
1788
1867
|
return remap$(v, {
|
|
1789
1868
|
toolId: "tool_id",
|
|
@@ -1794,6 +1873,30 @@ export function orqAiToolToJSON(orqAiTool: OrqAiTool): string {
|
|
|
1794
1873
|
return JSON.stringify(OrqAiTool$outboundSchema.parse(orqAiTool));
|
|
1795
1874
|
}
|
|
1796
1875
|
|
|
1876
|
+
/** @internal */
|
|
1877
|
+
export type Custom$Outbound = {
|
|
1878
|
+
async?: boolean | undefined;
|
|
1879
|
+
description?: string | undefined;
|
|
1880
|
+
name: string;
|
|
1881
|
+
type: "custom";
|
|
1882
|
+
};
|
|
1883
|
+
|
|
1884
|
+
/** @internal */
|
|
1885
|
+
export const Custom$outboundSchema: z.ZodType<
|
|
1886
|
+
Custom$Outbound,
|
|
1887
|
+
z.ZodTypeDef,
|
|
1888
|
+
Custom
|
|
1889
|
+
> = z.object({
|
|
1890
|
+
async: z.boolean().optional(),
|
|
1891
|
+
description: z.string().optional(),
|
|
1892
|
+
name: z.string(),
|
|
1893
|
+
type: z.literal("custom"),
|
|
1894
|
+
});
|
|
1895
|
+
|
|
1896
|
+
export function customToJSON(custom: Custom): string {
|
|
1897
|
+
return JSON.stringify(Custom$outboundSchema.parse(custom));
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1797
1900
|
/** @internal */
|
|
1798
1901
|
export const ToolsTtl$outboundSchema: z.ZodNativeEnum<typeof ToolsTtl> = z
|
|
1799
1902
|
.nativeEnum(ToolsTtl);
|
|
@@ -1828,6 +1931,7 @@ export function toolsCacheControlToJSON(
|
|
|
1828
1931
|
|
|
1829
1932
|
/** @internal */
|
|
1830
1933
|
export type ToolsFunction$Outbound = {
|
|
1934
|
+
async?: boolean | undefined;
|
|
1831
1935
|
cache_control?: ToolsCacheControl$Outbound | undefined;
|
|
1832
1936
|
description?: string | undefined;
|
|
1833
1937
|
name: string;
|
|
@@ -1842,6 +1946,7 @@ export const ToolsFunction$outboundSchema: z.ZodType<
|
|
|
1842
1946
|
z.ZodTypeDef,
|
|
1843
1947
|
ToolsFunction
|
|
1844
1948
|
> = z.object({
|
|
1949
|
+
async: z.boolean().optional(),
|
|
1845
1950
|
cacheControl: z.lazy(() => ToolsCacheControl$outboundSchema).optional(),
|
|
1846
1951
|
description: z.string().optional(),
|
|
1847
1952
|
name: z.string(),
|
|
@@ -1861,6 +1966,7 @@ export function toolsFunctionToJSON(toolsFunction: ToolsFunction): string {
|
|
|
1861
1966
|
/** @internal */
|
|
1862
1967
|
export type CreateRouterResponseTools$Outbound =
|
|
1863
1968
|
| ToolsFunction$Outbound
|
|
1969
|
+
| Custom$Outbound
|
|
1864
1970
|
| components.OrqAdvisorTool$Outbound
|
|
1865
1971
|
| (components.OrqSidekickTool$Outbound & { type: "orq:subagent" })
|
|
1866
1972
|
| (components.OrqSidekickTool$Outbound & { type: "orq:sidekick" })
|
|
@@ -1890,6 +1996,7 @@ export const CreateRouterResponseTools$outboundSchema: z.ZodType<
|
|
|
1890
1996
|
CreateRouterResponseTools
|
|
1891
1997
|
> = z.union([
|
|
1892
1998
|
z.lazy(() => ToolsFunction$outboundSchema),
|
|
1999
|
+
z.lazy(() => Custom$outboundSchema),
|
|
1893
2000
|
components.OrqAdvisorTool$outboundSchema,
|
|
1894
2001
|
components.OrqSidekickTool$outboundSchema.and(
|
|
1895
2002
|
z.object({ type: z.literal("orq:subagent") }),
|
|
@@ -1984,6 +2091,9 @@ export type CreateRouterResponseRequestBody$Outbound = {
|
|
|
1984
2091
|
presence_penalty?: number | undefined;
|
|
1985
2092
|
previous_response_id?: string | undefined;
|
|
1986
2093
|
prompt_cache_key?: string | undefined;
|
|
2094
|
+
prompt_cache_options?:
|
|
2095
|
+
| components.OpenAIPromptCacheOptions$Outbound
|
|
2096
|
+
| undefined;
|
|
1987
2097
|
reasoning?: components.ReasoningParam$Outbound | undefined;
|
|
1988
2098
|
retry?: components.ResponseRetryConfig$Outbound | undefined;
|
|
1989
2099
|
safety_identifier?: string | undefined;
|
|
@@ -2003,6 +2113,7 @@ export type CreateRouterResponseRequestBody$Outbound = {
|
|
|
2003
2113
|
tools?:
|
|
2004
2114
|
| Array<
|
|
2005
2115
|
| ToolsFunction$Outbound
|
|
2116
|
+
| Custom$Outbound
|
|
2006
2117
|
| components.OrqAdvisorTool$Outbound
|
|
2007
2118
|
| (components.OrqSidekickTool$Outbound & { type: "orq:subagent" })
|
|
2008
2119
|
| (components.OrqSidekickTool$Outbound & { type: "orq:sidekick" })
|
|
@@ -2067,6 +2178,8 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
|
|
|
2067
2178
|
presencePenalty: z.number().optional(),
|
|
2068
2179
|
previousResponseId: z.string().optional(),
|
|
2069
2180
|
promptCacheKey: z.string().optional(),
|
|
2181
|
+
promptCacheOptions: components.OpenAIPromptCacheOptions$outboundSchema
|
|
2182
|
+
.optional(),
|
|
2070
2183
|
reasoning: components.ReasoningParam$outboundSchema.optional(),
|
|
2071
2184
|
retry: components.ResponseRetryConfig$outboundSchema.optional(),
|
|
2072
2185
|
safetyIdentifier: z.string().optional(),
|
|
@@ -2089,6 +2202,7 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
|
|
|
2089
2202
|
tools: z.array(
|
|
2090
2203
|
z.union([
|
|
2091
2204
|
z.lazy(() => ToolsFunction$outboundSchema),
|
|
2205
|
+
z.lazy(() => Custom$outboundSchema),
|
|
2092
2206
|
components.OrqAdvisorTool$outboundSchema,
|
|
2093
2207
|
components.OrqSidekickTool$outboundSchema.and(
|
|
2094
2208
|
z.object({ type: z.literal("orq:subagent") }),
|
|
@@ -2166,6 +2280,7 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
|
|
|
2166
2280
|
presencePenalty: "presence_penalty",
|
|
2167
2281
|
previousResponseId: "previous_response_id",
|
|
2168
2282
|
promptCacheKey: "prompt_cache_key",
|
|
2283
|
+
promptCacheOptions: "prompt_cache_options",
|
|
2169
2284
|
safetyIdentifier: "safety_identifier",
|
|
2170
2285
|
serviceTier: "service_tier",
|
|
2171
2286
|
stopSequences: "stop_sequences",
|
|
@@ -2263,6 +2378,9 @@ export const CreateRouterResponseResponseBody$inboundSchema: z.ZodType<
|
|
|
2263
2378
|
presence_penalty: z.number(),
|
|
2264
2379
|
previous_response_id: z.nullable(z.string()),
|
|
2265
2380
|
prompt_cache_key: z.nullable(z.string()),
|
|
2381
|
+
prompt_cache_options: z.nullable(
|
|
2382
|
+
components.OpenAIPromptCacheOptions$inboundSchema,
|
|
2383
|
+
),
|
|
2266
2384
|
prompt_cache_retention: z.nullable(z.string()),
|
|
2267
2385
|
reasoning: z.nullable(components.Reasoning$inboundSchema),
|
|
2268
2386
|
safety_identifier: z.nullable(z.string()),
|
|
@@ -2293,6 +2411,7 @@ export const CreateRouterResponseResponseBody$inboundSchema: z.ZodType<
|
|
|
2293
2411
|
"presence_penalty": "presencePenalty",
|
|
2294
2412
|
"previous_response_id": "previousResponseId",
|
|
2295
2413
|
"prompt_cache_key": "promptCacheKey",
|
|
2414
|
+
"prompt_cache_options": "promptCacheOptions",
|
|
2296
2415
|
"prompt_cache_retention": "promptCacheRetention",
|
|
2297
2416
|
"safety_identifier": "safetyIdentifier",
|
|
2298
2417
|
"service_tier": "serviceTier",
|