@openrouter/sdk 1.4.25 → 1.5.0
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/esm/funcs/apiKeysList.d.ts +1 -1
- package/esm/funcs/apiKeysList.js +3 -2
- package/esm/funcs/apiKeysUpdate.d.ts +4 -2
- package/esm/funcs/apiKeysUpdate.js +5 -3
- package/esm/funcs/chatSend.d.ts +4 -2
- package/esm/funcs/containersPromoteContainerFile.d.ts +1 -1
- package/esm/funcs/containersPromoteContainerFile.js +2 -2
- package/esm/funcs/embeddingsGenerate.d.ts +1 -1
- package/esm/funcs/embeddingsGenerate.js +2 -2
- package/esm/funcs/{endUsersCreate.d.ts → externalUsersCreate.d.ts} +3 -3
- package/esm/funcs/{endUsersCreate.js → externalUsersCreate.js} +11 -11
- package/esm/funcs/{endUsersDelete.d.ts → externalUsersDelete.d.ts} +3 -3
- package/esm/funcs/{endUsersDelete.js → externalUsersDelete.js} +8 -8
- package/esm/funcs/{endUsersGet.d.ts → externalUsersGet.d.ts} +3 -3
- package/esm/funcs/{endUsersGet.js → externalUsersGet.js} +10 -10
- package/esm/funcs/{endUsersList.d.ts → externalUsersList.d.ts} +3 -3
- package/esm/funcs/{endUsersList.js → externalUsersList.js} +10 -10
- package/esm/funcs/{endUsersUpdate.d.ts → externalUsersUpdate.d.ts} +3 -3
- package/esm/funcs/{endUsersUpdate.js → externalUsersUpdate.js} +11 -11
- package/esm/funcs/filesUpload.d.ts +1 -1
- package/esm/funcs/filesUpload.js +2 -2
- package/esm/funcs/guardrailsListKeyAssignments.d.ts +1 -1
- package/esm/funcs/guardrailsListKeyAssignments.js +2 -2
- package/esm/funcs/guardrailsListMemberAssignments.d.ts +1 -1
- package/esm/funcs/guardrailsListMemberAssignments.js +2 -2
- package/esm/funcs/imagesGenerate.d.ts +4 -2
- package/esm/funcs/internsGetInternConnections.d.ts +21 -0
- package/esm/funcs/internsGetInternConnections.js +105 -0
- package/esm/funcs/internsGetInternDaemon.d.ts +1 -1
- package/esm/funcs/internsGetInternDaemon.js +1 -1
- package/esm/funcs/internsGetInternIcon.d.ts +20 -0
- package/esm/funcs/internsGetInternIcon.js +109 -0
- package/esm/funcs/internsSignInternDaemonAccessRequest.d.ts +22 -0
- package/esm/funcs/internsSignInternDaemonAccessRequest.js +109 -0
- package/esm/funcs/internsSignInternDaemonRequest.d.ts +20 -0
- package/esm/funcs/internsSignInternDaemonRequest.js +109 -0
- package/esm/funcs/modelsListForUser.js +1 -0
- package/esm/funcs/privateEndpointsUpdatePricing.d.ts +1 -1
- package/esm/funcs/privateEndpointsUpdatePricing.js +1 -1
- package/esm/funcs/responsesSend.d.ts +4 -2
- package/esm/funcs/vaultDeleteInternVaultSecret.d.ts +1 -1
- package/esm/funcs/vaultDeleteInternVaultSecret.js +2 -2
- package/esm/funcs/vaultDeleteVaultSecret.d.ts +1 -1
- package/esm/funcs/vaultDeleteVaultSecret.js +2 -2
- package/esm/funcs/vaultListInternConnections.d.ts +20 -0
- package/esm/funcs/vaultListInternConnections.js +104 -0
- package/esm/funcs/vaultStoreVaultSecret.d.ts +1 -1
- package/esm/funcs/vaultStoreVaultSecret.js +2 -2
- package/esm/funcs/videoGenerationGenerate.d.ts +1 -1
- package/esm/funcs/videoGenerationGenerate.js +2 -2
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/encodings.d.ts +10 -9
- package/esm/lib/encodings.js +29 -13
- package/esm/lib/http.d.ts +1 -1
- package/esm/lib/http.js +1 -1
- package/esm/lib/security.d.ts +5 -4
- package/esm/lib/security.js +4 -5
- package/esm/models/additionaltoolsitem.d.ts +16 -1
- package/esm/models/additionaltoolsitem.js +10 -0
- package/esm/models/alignment.d.ts +1 -1
- package/esm/models/alignmentplugin.d.ts +9 -8
- package/esm/models/alignmentplugin.js +3 -2
- package/esm/models/alignmentrule.d.ts +31 -0
- package/esm/models/alignmentrule.js +25 -0
- package/esm/models/alignmentrulerecord.d.ts +7 -3
- package/esm/models/alignmentrulerecord.js +2 -1
- package/esm/models/armorautomode.d.ts +44 -0
- package/esm/models/armorautomode.js +49 -0
- package/esm/models/armorcontext.d.ts +22 -0
- package/esm/models/armorcontext.js +25 -0
- package/esm/models/armorenvironmententry.d.ts +14 -0
- package/esm/models/armorenvironmententry.js +14 -0
- package/esm/models/armorplugin.d.ts +92 -0
- package/esm/models/armorplugin.js +60 -0
- package/esm/models/armorrule.d.ts +30 -0
- package/esm/models/armorrule.js +16 -0
- package/esm/models/armorsafeguardresult.d.ts +69 -0
- package/esm/models/armorsafeguardresult.js +83 -0
- package/esm/models/batchlistitem.d.ts +8 -0
- package/esm/models/batchlistitem.js +3 -0
- package/esm/models/batchobject.d.ts +13 -0
- package/esm/models/batchobject.js +6 -0
- package/esm/models/batchsubmitbody.d.ts +5 -0
- package/esm/models/batchsubmitbody.js +2 -0
- package/esm/models/byokkey.d.ts +3 -3
- package/esm/models/byokkey.js +1 -1
- package/esm/models/byokproviderslug.d.ts +2 -0
- package/esm/models/byokproviderslug.js +2 -0
- package/esm/models/chatcontenttext.d.ts +1 -1
- package/esm/models/chatfunctiontool.d.ts +4 -0
- package/esm/models/chatfunctiontool.js +7 -0
- package/esm/models/chatrequest.d.ts +16 -9
- package/esm/models/chatrequest.js +9 -6
- package/esm/models/chatresult.d.ts +10 -0
- package/esm/models/chatresult.js +5 -0
- package/esm/models/chatstreamchunk.d.ts +7 -0
- package/esm/models/chatstreamchunk.js +5 -0
- package/esm/models/chatwebsearchshorthand.d.ts +1 -1
- package/esm/models/clientclosedrequestresponseerrordata.d.ts +17 -0
- package/esm/models/clientclosedrequestresponseerrordata.js +16 -0
- package/esm/models/computeruseservertool.d.ts +5 -5
- package/esm/models/computeruseservertool.js +5 -5
- package/esm/models/createbyokkeyrequest.d.ts +3 -3
- package/esm/models/createbyokkeyrequest.js +1 -1
- package/esm/models/createexternaluserrequest.d.ts +15 -0
- package/esm/models/createexternaluserrequest.js +13 -0
- package/esm/models/createguardrailrequest.d.ts +10 -0
- package/esm/models/createguardrailrequest.js +4 -0
- package/esm/models/createobservabilitydestinationrequest.d.ts +5 -0
- package/esm/models/createobservabilitydestinationrequest.js +2 -0
- package/esm/models/customtool.d.ts +2 -0
- package/esm/models/customtool.js +11 -0
- package/esm/models/decisionsboxanswer.d.ts +21 -0
- package/esm/models/decisionsboxanswer.js +26 -0
- package/esm/models/decisionsboxquestion.d.ts +34 -0
- package/esm/models/decisionsboxquestion.js +23 -0
- package/esm/models/decisionsrequest.d.ts +6 -5
- package/esm/models/decisionsrequest.js +3 -0
- package/esm/models/decisionsresponse.d.ts +4 -3
- package/esm/models/decisionsresponse.js +3 -0
- package/esm/models/deferredbm25search.d.ts +17 -0
- package/esm/models/deferredbm25search.js +19 -0
- package/esm/models/deferredcustomsearch.d.ts +21 -0
- package/esm/models/deferredcustomsearch.js +23 -0
- package/esm/models/deferredregexsearch.d.ts +17 -0
- package/esm/models/deferredregexsearch.js +19 -0
- package/esm/models/deferredtoolscontrol.d.ts +62 -0
- package/esm/models/deferredtoolscontrol.js +38 -0
- package/esm/models/deferredtoolssearchstrategy.d.ts +14 -0
- package/esm/models/deferredtoolssearchstrategy.js +18 -0
- package/esm/models/errors/batchpaymentrequiredresponseerror.d.ts +16 -0
- package/esm/models/errors/batchpaymentrequiredresponseerror.js +5 -0
- package/esm/models/errors/clientclosedrequestresponseerror.d.ts +39 -0
- package/esm/models/errors/clientclosedrequestresponseerror.js +47 -0
- package/esm/models/errors/index.d.ts +1 -0
- package/esm/models/errors/index.js +1 -0
- package/esm/models/{enduser.d.ts → externaluser.d.ts} +5 -5
- package/esm/models/{enduser.js → externaluser.js} +6 -5
- package/esm/models/externaluserresponse.d.ts +11 -0
- package/esm/models/externaluserresponse.js +15 -0
- package/esm/models/guardrail.d.ts +8 -0
- package/esm/models/guardrail.js +4 -0
- package/esm/models/imagegenerationproviderpreferences.d.ts +12 -0
- package/esm/models/imagegenerationproviderpreferences.js +3 -0
- package/esm/models/index.d.ts +34 -6
- package/esm/models/index.js +34 -6
- package/esm/models/inputsunion.d.ts +7 -4
- package/esm/models/inputsunion.js +9 -0
- package/esm/models/inputtext.d.ts +1 -1
- package/esm/models/intern.d.ts +12 -0
- package/esm/models/intern.js +6 -0
- package/esm/models/internconnection.d.ts +118 -0
- package/esm/models/internconnection.js +105 -0
- package/esm/models/internconnectionlist.d.ts +11 -0
- package/esm/models/internconnectionlist.js +15 -0
- package/esm/models/jevrouterplugin.d.ts +5 -0
- package/esm/models/jevrouterplugin.js +2 -0
- package/esm/models/keybudget.d.ts +80 -0
- package/esm/models/keybudget.js +58 -0
- package/esm/models/legacywebsearchservertool.d.ts +1 -1
- package/esm/models/listexternalusersresponse.d.ts +15 -0
- package/esm/models/listexternalusersresponse.js +21 -0
- package/esm/models/messagesmessageparam.d.ts +7 -6
- package/esm/models/messagesmessageparam.js +4 -0
- package/esm/models/messagesrequest.d.ts +11 -4
- package/esm/models/messagesrequest.js +6 -0
- package/esm/models/namespacefunctiontool.d.ts +5 -5
- package/esm/models/namespacefunctiontool.js +5 -5
- package/esm/models/observabilityarizedestination.d.ts +4 -0
- package/esm/models/observabilityarizedestination.js +2 -0
- package/esm/models/observabilitybraintrustdestination.d.ts +4 -0
- package/esm/models/observabilitybraintrustdestination.js +2 -0
- package/esm/models/observabilityclickhousedestination.d.ts +4 -0
- package/esm/models/observabilityclickhousedestination.js +2 -0
- package/esm/models/observabilitydatadogdestination.d.ts +4 -0
- package/esm/models/observabilitydatadogdestination.js +2 -0
- package/esm/models/observabilitygrafanadestination.d.ts +4 -0
- package/esm/models/observabilitygrafanadestination.js +2 -0
- package/esm/models/observabilitylangfusedestination.d.ts +4 -0
- package/esm/models/observabilitylangfusedestination.js +2 -0
- package/esm/models/observabilitylangsmithdestination.d.ts +4 -0
- package/esm/models/observabilitylangsmithdestination.js +2 -0
- package/esm/models/observabilitynewrelicdestination.d.ts +4 -0
- package/esm/models/observabilitynewrelicdestination.js +2 -0
- package/esm/models/observabilityopikdestination.d.ts +4 -0
- package/esm/models/observabilityopikdestination.js +2 -0
- package/esm/models/observabilityotelcollectordestination.d.ts +4 -0
- package/esm/models/observabilityotelcollectordestination.js +2 -0
- package/esm/models/observabilityposthogdestination.d.ts +4 -0
- package/esm/models/observabilityposthogdestination.js +2 -0
- package/esm/models/observabilityrampdestination.d.ts +4 -0
- package/esm/models/observabilityrampdestination.js +2 -0
- package/esm/models/observabilitys3destination.d.ts +4 -0
- package/esm/models/observabilitys3destination.js +2 -0
- package/esm/models/observabilitysentrydestination.d.ts +4 -0
- package/esm/models/observabilitysentrydestination.js +2 -0
- package/esm/models/observabilitysnowflakedestination.d.ts +4 -0
- package/esm/models/observabilitysnowflakedestination.js +2 -0
- package/esm/models/observabilityweavedestination.d.ts +4 -0
- package/esm/models/observabilityweavedestination.js +2 -0
- package/esm/models/observabilitywebhookdestination.d.ts +8 -4
- package/esm/models/observabilitywebhookdestination.js +5 -4
- package/esm/models/openresponseserrorfield.d.ts +1 -0
- package/esm/models/openresponseserrorfield.js +1 -0
- package/esm/models/openresponseserrormetadata.d.ts +1 -1
- package/esm/models/openresponsesresult.d.ts +19 -3
- package/esm/models/openresponsesresult.js +14 -0
- package/esm/models/operations/{createenduser.d.ts → createexternaluser.d.ts} +8 -8
- package/esm/models/operations/createexternaluser.js +23 -0
- package/esm/models/operations/deleteexternaluser.d.ts +58 -0
- package/esm/models/operations/{deleteenduser.js → deleteexternaluser.js} +5 -5
- package/esm/models/operations/getcurrentkey.d.ts +5 -0
- package/esm/models/operations/getcurrentkey.js +4 -1
- package/esm/models/operations/{updateenduser.d.ts → getexternaluser.d.ts} +7 -10
- package/esm/models/operations/{getenduser.js → getexternaluser.js} +5 -5
- package/esm/models/operations/{deleteenduser.d.ts → getinternconnections.d.ts} +9 -9
- package/esm/models/operations/getinternconnections.js +21 -0
- package/esm/models/operations/{getenduser.d.ts → getinternicon.d.ts} +14 -9
- package/esm/models/operations/getinternicon.js +22 -0
- package/esm/models/operations/index.d.ts +10 -5
- package/esm/models/operations/index.js +10 -5
- package/esm/models/operations/list.d.ts +5 -0
- package/esm/models/operations/list.js +2 -0
- package/esm/models/operations/listbatches.d.ts +4 -4
- package/esm/models/operations/listbatches.js +3 -3
- package/esm/models/operations/listbyokkeys.d.ts +2 -0
- package/esm/models/operations/listbyokkeys.js +2 -0
- package/esm/models/operations/{listendusers.d.ts → listexternalusers.d.ts} +11 -11
- package/esm/models/operations/listexternalusers.js +38 -0
- package/esm/models/operations/listinternconnections.d.ts +75 -0
- package/esm/models/operations/listinternconnections.js +36 -0
- package/esm/models/operations/listmodelsuser.d.ts +29 -0
- package/esm/models/operations/listmodelsuser.js +21 -0
- package/esm/models/operations/signinterndaemonaccessrequest.d.ts +72 -0
- package/esm/models/operations/signinterndaemonaccessrequest.js +38 -0
- package/esm/models/operations/signinterndaemonrequest.d.ts +72 -0
- package/esm/models/operations/signinterndaemonrequest.js +38 -0
- package/esm/models/operations/updateexternaluser.d.ts +61 -0
- package/esm/models/operations/updateexternaluser.js +24 -0
- package/esm/models/operations/updatekeys.d.ts +5 -0
- package/esm/models/operations/updatekeys.js +2 -0
- package/esm/models/oranthropiccontentblock.d.ts +2 -1
- package/esm/models/oranthropiccontentblock.js +2 -0
- package/esm/models/oranthropictoolsearchresult.d.ts +17 -0
- package/esm/models/oranthropictoolsearchresult.js +21 -0
- package/esm/models/oranthropictoolsearchresultparam.d.ts +23 -0
- package/esm/models/oranthropictoolsearchresultparam.js +20 -0
- package/esm/models/outputapplypatchservertoolitem.d.ts +7 -2
- package/esm/models/outputapplypatchservertoolitem.js +5 -3
- package/esm/models/outputarmorblockeditem.d.ts +71 -0
- package/esm/models/outputarmorblockeditem.js +60 -0
- package/esm/models/outputdatetimeitem.d.ts +7 -2
- package/esm/models/outputdatetimeitem.js +5 -3
- package/esm/models/outputimagegenerationservertoolitem.d.ts +7 -2
- package/esm/models/outputimagegenerationservertoolitem.js +5 -3
- package/esm/models/outputitems.d.ts +5 -1
- package/esm/models/outputitems.js +4 -0
- package/esm/models/outputsearchmodelsservertoolitem.d.ts +7 -2
- package/esm/models/outputsearchmodelsservertoolitem.js +5 -3
- package/esm/models/outputtoolsearchcallitem.d.ts +26 -0
- package/esm/models/outputtoolsearchcallitem.js +30 -0
- package/esm/models/outputtoolsearchservertoolitem.d.ts +30 -2
- package/esm/models/outputtoolsearchservertoolitem.js +36 -3
- package/esm/models/outputwebsearchservertoolitem.d.ts +7 -2
- package/esm/models/outputwebsearchservertoolitem.js +5 -3
- package/esm/models/preview20250311websearchservertool.d.ts +1 -1
- package/esm/models/previewwebsearchservertool.d.ts +1 -1
- package/esm/models/privateendpointpricing.d.ts +10 -0
- package/esm/models/privateendpointpricing.js +15 -0
- package/esm/models/promptcachebreakpoint.d.ts +3 -1
- package/esm/models/promptcachebreakpoint.js +2 -0
- package/esm/models/promptcacheoptions.d.ts +1 -1
- package/esm/models/providername.d.ts +2 -0
- package/esm/models/providername.js +2 -0
- package/esm/models/provideroptions.d.ts +12 -0
- package/esm/models/provideroptions.js +3 -0
- package/esm/models/providerresponse.d.ts +2 -0
- package/esm/models/providerresponse.js +2 -0
- package/esm/models/publicendpoint.d.ts +11 -2
- package/esm/models/publicendpoint.js +5 -0
- package/esm/models/publicservicetier.d.ts +17 -0
- package/esm/models/publicservicetier.js +16 -0
- package/esm/models/responsesrequest.d.ts +42 -6
- package/esm/models/responsesrequest.js +22 -0
- package/esm/models/signinterndaemonrequest.d.ts +54 -0
- package/esm/models/signinterndaemonrequest.js +30 -0
- package/esm/models/signinterndaemonresponse.d.ts +32 -0
- package/esm/models/signinterndaemonresponse.js +27 -0
- package/esm/models/speechinput.d.ts +12 -0
- package/esm/models/speechinput.js +12 -0
- package/esm/models/speechinputreferenceimage.d.ts +1 -1
- package/esm/models/speechrequest.d.ts +10 -4
- package/esm/models/speechrequest.js +3 -1
- package/esm/models/speechturn.d.ts +25 -0
- package/esm/models/speechturn.js +15 -0
- package/esm/models/switchyardrouterplugin.d.ts +1 -1
- package/esm/models/tokenexchangerequest.d.ts +7 -6
- package/esm/models/tokenexchangerequest.js +4 -2
- package/esm/models/tokenexchangeresponse.d.ts +3 -0
- package/esm/models/toolsearchcallitem.d.ts +47 -0
- package/esm/models/toolsearchcallitem.js +42 -0
- package/esm/models/toolsearchoutputitem.d.ts +150 -0
- package/esm/models/toolsearchoutputitem.js +181 -0
- package/esm/models/updatebyokkeyrequest.d.ts +3 -3
- package/esm/models/updatebyokkeyrequest.js +1 -1
- package/esm/models/updateexternaluserrequest.d.ts +15 -0
- package/esm/models/updateexternaluserrequest.js +18 -0
- package/esm/models/updateguardrailrequest.d.ts +10 -0
- package/esm/models/updateguardrailrequest.js +4 -0
- package/esm/models/updateobservabilitydestinationrequest.d.ts +5 -0
- package/esm/models/updateobservabilitydestinationrequest.js +2 -0
- package/esm/models/videogenerationrequest.d.ts +12 -0
- package/esm/models/videogenerationrequest.js +3 -0
- package/esm/models/videogenerationresponse.d.ts +11 -0
- package/esm/models/videogenerationresponse.js +3 -0
- package/esm/models/webfetchengineenum.d.ts +2 -2
- package/esm/models/webfetchengineenum.js +1 -1
- package/esm/models/webfetchservertoolconfig.d.ts +1 -1
- package/esm/models/websearchconfig.d.ts +1 -1
- package/esm/models/websearchengineenum.d.ts +2 -2
- package/esm/models/websearchengineenum.js +1 -1
- package/esm/models/websearchservertool.d.ts +1 -1
- package/esm/models/websearchservertoolconfig.d.ts +1 -1
- package/esm/models/workspacebudget.d.ts +4 -4
- package/esm/models/workspacebudget.js +3 -3
- package/esm/sdk/apikeys.d.ts +3 -1
- package/esm/sdk/apikeys.js +3 -1
- package/esm/sdk/betaresponses.d.ts +4 -2
- package/esm/sdk/chat.d.ts +4 -2
- package/esm/sdk/endusers.d.ts +10 -10
- package/esm/sdk/endusers.js +15 -15
- package/esm/sdk/externalusers.d.ts +44 -0
- package/esm/sdk/externalusers.js +60 -0
- package/esm/sdk/images.d.ts +3 -2
- package/esm/sdk/interns.d.ts +31 -1
- package/esm/sdk/interns.js +43 -1
- package/esm/sdk/privateendpoints.d.ts +1 -1
- package/esm/sdk/privateendpoints.js +1 -1
- package/esm/sdk/responses.d.ts +4 -2
- package/esm/sdk/sdk.d.ts +5 -2
- package/esm/sdk/sdk.js +7 -3
- package/esm/sdk/vault.d.ts +7 -0
- package/esm/sdk/vault.js +10 -0
- package/jsr.json +1 -1
- package/package.json +6 -6
- package/esm/models/batchlisttimestamp.d.ts +0 -12
- package/esm/models/batchlisttimestamp.js +0 -15
- package/esm/models/createenduserrequest.d.ts +0 -15
- package/esm/models/createenduserrequest.js +0 -13
- package/esm/models/enduserresponse.d.ts +0 -11
- package/esm/models/enduserresponse.js +0 -15
- package/esm/models/listendusersresponse.d.ts +0 -15
- package/esm/models/listendusersresponse.js +0 -21
- package/esm/models/operations/createenduser.js +0 -23
- package/esm/models/operations/listendusers.js +0 -38
- package/esm/models/operations/updateenduser.js +0 -24
- package/esm/models/updateenduserrequest.d.ts +0 -15
- package/esm/models/updateenduserrequest.js +0 -18
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Headers the CLI copies onto the daemon request so the sidecar can verify who is asking.
|
|
6
|
+
*/
|
|
7
|
+
export type SignInternDaemonResponse = {
|
|
8
|
+
/**
|
|
9
|
+
* Present with `x-ori-invoke-signature-v2`: the single-use id that proof is bound to.
|
|
10
|
+
*/
|
|
11
|
+
xOriInvokeNonce?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Base64 Ed25519 signature over the intern id, timestamp, user and body digest.
|
|
14
|
+
*/
|
|
15
|
+
xOriInvokeSignature: string;
|
|
16
|
+
/**
|
|
17
|
+
* Present when the request named a `route`: Base64 Ed25519 signature over the intern id, timestamp, nonce, user, method, path and body digest. The intern accepts it once.
|
|
18
|
+
*/
|
|
19
|
+
xOriInvokeSignatureV2?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Unix seconds at signing; the daemon refuses proofs older than its window.
|
|
22
|
+
*/
|
|
23
|
+
xOriInvokeTimestamp: string;
|
|
24
|
+
/**
|
|
25
|
+
* The verified OAuth subject the proof names. Never taken from the request.
|
|
26
|
+
*/
|
|
27
|
+
xOriInvokeUser: string;
|
|
28
|
+
};
|
|
29
|
+
/** @internal */
|
|
30
|
+
export declare const SignInternDaemonResponse$inboundSchema: z.ZodType<SignInternDaemonResponse, unknown>;
|
|
31
|
+
export declare function signInternDaemonResponseFromJSON(jsonString: string): SafeParseResult<SignInternDaemonResponse, SDKValidationError>;
|
|
32
|
+
//# sourceMappingURL=signinterndaemonresponse.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 255ec3cd7651
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const SignInternDaemonResponse$inboundSchema = z.object({
|
|
10
|
+
"x-ori-invoke-nonce": z.string().optional(),
|
|
11
|
+
"x-ori-invoke-signature": z.string(),
|
|
12
|
+
"x-ori-invoke-signature-v2": z.string().optional(),
|
|
13
|
+
"x-ori-invoke-timestamp": z.string(),
|
|
14
|
+
"x-ori-invoke-user": z.string(),
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
"x-ori-invoke-nonce": "xOriInvokeNonce",
|
|
18
|
+
"x-ori-invoke-signature": "xOriInvokeSignature",
|
|
19
|
+
"x-ori-invoke-signature-v2": "xOriInvokeSignatureV2",
|
|
20
|
+
"x-ori-invoke-timestamp": "xOriInvokeTimestamp",
|
|
21
|
+
"x-ori-invoke-user": "xOriInvokeUser",
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
export function signInternDaemonResponseFromJSON(jsonString) {
|
|
25
|
+
return safeParse(jsonString, (x) => SignInternDaemonResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignInternDaemonResponse' from JSON`);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=signinterndaemonresponse.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { SpeechTurn, SpeechTurn$Outbound } from "./speechturn.js";
|
|
3
|
+
/**
|
|
4
|
+
* Text to synthesize, or a list of turns for multi-speaker input. Each turn has its own text, voice, and instructions. Multi-speaker input is supported by Gemini TTS models and by Fish Audio models other than S1.
|
|
5
|
+
*/
|
|
6
|
+
export type SpeechInput = string | Array<SpeechTurn>;
|
|
7
|
+
/** @internal */
|
|
8
|
+
export type SpeechInput$Outbound = string | Array<SpeechTurn$Outbound>;
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const SpeechInput$outboundSchema: z.ZodType<SpeechInput$Outbound, SpeechInput>;
|
|
11
|
+
export declare function speechInputToJSON(speechInput: SpeechInput): string;
|
|
12
|
+
//# sourceMappingURL=speechinput.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 40afc7088e49
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { SpeechTurn$outboundSchema, } from "./speechturn.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const SpeechInput$outboundSchema = z.union([z.string(), z.array(SpeechTurn$outboundSchema)]);
|
|
9
|
+
export function speechInputToJSON(speechInput) {
|
|
10
|
+
return JSON.stringify(SpeechInput$outboundSchema.parse(speechInput));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=speechinput.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { SpeechInputReferenceImageInput, SpeechInputReferenceImageInput$Outbound } from "./speechinputreferenceimageinput.js";
|
|
3
3
|
/**
|
|
4
|
-
* Reference image
|
|
4
|
+
* Reference image. On its own it describes the desired voice (voice design); alongside an `input_audio` part it is a scene image describing the setting the cloned voice speaks in. At most one per request. Only routed to endpoints that support image references.
|
|
5
5
|
*/
|
|
6
6
|
export type SpeechInputReferenceImage = {
|
|
7
7
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { OpenEnum } from "../types/enums.js";
|
|
3
3
|
import { ProviderOptions, ProviderOptions$Outbound } from "./provideroptions.js";
|
|
4
|
+
import { SpeechInput, SpeechInput$Outbound } from "./speechinput.js";
|
|
4
5
|
import { SpeechInputReference, SpeechInputReference$Outbound } from "./speechinputreference.js";
|
|
5
6
|
import { TraceConfig, TraceConfig$Outbound } from "./traceconfig.js";
|
|
6
7
|
/**
|
|
@@ -62,13 +63,17 @@ export type SpeechRequestResponseFormat = OpenEnum<typeof SpeechRequestResponseF
|
|
|
62
63
|
*/
|
|
63
64
|
export type SpeechRequest = {
|
|
64
65
|
/**
|
|
65
|
-
* Text to synthesize
|
|
66
|
+
* Text to synthesize, or a list of turns for multi-speaker input. Each turn has its own text, voice, and instructions. Multi-speaker input is supported by Gemini TTS models and by Fish Audio models other than S1.
|
|
66
67
|
*/
|
|
67
|
-
input:
|
|
68
|
+
input: SpeechInput;
|
|
68
69
|
/**
|
|
69
|
-
* Reference content for stateless voice cloning or voice design. Audio mode: one to three `input_audio` parts, each optionally paired with a `text` part carrying its transcript (a single clip accepts its transcript before or after it; with multiple clips each transcript immediately follows its clip); only routed to endpoints that support voice cloning (and multiple references
|
|
70
|
+
* Reference content for stateless voice cloning or voice design. Audio mode: one to three `input_audio` parts, each optionally paired with a `text` part carrying its transcript (a single clip accepts its transcript before or after it; with multiple clips each transcript immediately follows its clip), plus at most one `image_url` part as a scene image on providers that condition the cloned voice on its setting; only routed to endpoints that support voice cloning (and multiple references or image references when those parts are sent). Image mode: exactly one `image_url` part; only routed to endpoints that support image references. An empty array is treated as no reference.
|
|
70
71
|
*/
|
|
71
72
|
inputReferences?: Array<SpeechInputReference> | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Delivery instructions for the whole request, such as tone, pacing, or emotion. Supported by OpenAI gpt-4o-mini-tts, Gemini TTS, and Fish Audio models. Ignored by other providers.
|
|
75
|
+
*/
|
|
76
|
+
instructions?: string | undefined;
|
|
72
77
|
/**
|
|
73
78
|
* TTS model identifier
|
|
74
79
|
*/
|
|
@@ -117,8 +122,9 @@ export declare function speechRequestProviderToJSON(speechRequestProvider: Speec
|
|
|
117
122
|
export declare const SpeechRequestResponseFormat$outboundSchema: z.ZodType<string, SpeechRequestResponseFormat>;
|
|
118
123
|
/** @internal */
|
|
119
124
|
export type SpeechRequest$Outbound = {
|
|
120
|
-
input:
|
|
125
|
+
input: SpeechInput$Outbound;
|
|
121
126
|
input_references?: Array<SpeechInputReference$Outbound> | undefined;
|
|
127
|
+
instructions?: string | undefined;
|
|
122
128
|
model: string;
|
|
123
129
|
provider?: SpeechRequestProvider$Outbound | undefined;
|
|
124
130
|
response_format: string;
|
|
@@ -6,6 +6,7 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import * as openEnums from "../types/enums.js";
|
|
8
8
|
import { ProviderOptions$outboundSchema, } from "./provideroptions.js";
|
|
9
|
+
import { SpeechInput$outboundSchema, } from "./speechinput.js";
|
|
9
10
|
import { SpeechInputReference$outboundSchema, } from "./speechinputreference.js";
|
|
10
11
|
import { TraceConfig$outboundSchema, } from "./traceconfig.js";
|
|
11
12
|
/**
|
|
@@ -47,8 +48,9 @@ export function speechRequestProviderToJSON(speechRequestProvider) {
|
|
|
47
48
|
export const SpeechRequestResponseFormat$outboundSchema = openEnums.outboundSchema(SpeechRequestResponseFormat);
|
|
48
49
|
/** @internal */
|
|
49
50
|
export const SpeechRequest$outboundSchema = z.object({
|
|
50
|
-
input:
|
|
51
|
+
input: SpeechInput$outboundSchema,
|
|
51
52
|
inputReferences: z.array(SpeechInputReference$outboundSchema).optional(),
|
|
53
|
+
instructions: z.string().optional(),
|
|
52
54
|
model: z.string(),
|
|
53
55
|
provider: z.lazy(() => SpeechRequestProvider$outboundSchema).optional(),
|
|
54
56
|
responseFormat: SpeechRequestResponseFormat$outboundSchema.default("pcm"),
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type SpeechTurn = {
|
|
3
|
+
/**
|
|
4
|
+
* Delivery instructions for this turn, such as tone, pacing, or emotion. Overrides the top-level `instructions`.
|
|
5
|
+
*/
|
|
6
|
+
instructions?: string | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Text to synthesize
|
|
9
|
+
*/
|
|
10
|
+
text: string;
|
|
11
|
+
/**
|
|
12
|
+
* Voice for this turn. Defaults to the top-level `voice`.
|
|
13
|
+
*/
|
|
14
|
+
voice?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type SpeechTurn$Outbound = {
|
|
18
|
+
instructions?: string | undefined;
|
|
19
|
+
text: string;
|
|
20
|
+
voice?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const SpeechTurn$outboundSchema: z.ZodType<SpeechTurn$Outbound, SpeechTurn>;
|
|
24
|
+
export declare function speechTurnToJSON(speechTurn: SpeechTurn): string;
|
|
25
|
+
//# sourceMappingURL=speechturn.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 78beaa9d8388
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export const SpeechTurn$outboundSchema = z.object({
|
|
8
|
+
instructions: z.string().optional(),
|
|
9
|
+
text: z.string(),
|
|
10
|
+
voice: z.string().optional(),
|
|
11
|
+
});
|
|
12
|
+
export function speechTurnToJSON(speechTurn) {
|
|
13
|
+
return JSON.stringify(SpeechTurn$outboundSchema.parse(speechTurn));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=speechturn.js.map
|
|
@@ -22,7 +22,7 @@ export type SwitchyardRouterPlugin = {
|
|
|
22
22
|
algorithm?: Algorithm | undefined;
|
|
23
23
|
id: "switchyard-router";
|
|
24
24
|
/**
|
|
25
|
-
* The model that runs the judge call for the judge-backed algorithms ("capability", "stage", and "composite"). The model must support structured outputs and have a provider that your account and request settings allow. Otherwise, the request uses the platform default judge, google/gemini-
|
|
25
|
+
* The model that runs the judge call for the judge-backed algorithms ("capability", "stage", and "composite"). The model must support structured outputs and have a provider that your account and request settings allow. Otherwise, the request uses the platform default judge, google/gemini-3.5-flash-lite, or openai/gpt-4o-mini when the default does not fit either, and reports the reason in the routing metadata. The judge call is billed to you like any other request.
|
|
26
26
|
*/
|
|
27
27
|
judgeModel?: string | undefined;
|
|
28
28
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
2
|
+
import { ClosedEnum, OpenEnum } from "../types/enums.js";
|
|
3
3
|
/**
|
|
4
4
|
* Must be `urn:ietf:params:oauth:grant-type:token-exchange`.
|
|
5
5
|
*/
|
|
@@ -21,15 +21,16 @@ export declare const RequestedTokenType: {
|
|
|
21
21
|
*/
|
|
22
22
|
export type RequestedTokenType = ClosedEnum<typeof RequestedTokenType>;
|
|
23
23
|
/**
|
|
24
|
-
* Optional;
|
|
24
|
+
* Optional; when present must match the policy's key: `management` for a management key, `inference` otherwise.
|
|
25
25
|
*/
|
|
26
26
|
export declare const TokenExchangeRequestScope: {
|
|
27
27
|
readonly Inference: "inference";
|
|
28
|
+
readonly Management: "management";
|
|
28
29
|
};
|
|
29
30
|
/**
|
|
30
|
-
* Optional;
|
|
31
|
+
* Optional; when present must match the policy's key: `management` for a management key, `inference` otherwise.
|
|
31
32
|
*/
|
|
32
|
-
export type TokenExchangeRequestScope =
|
|
33
|
+
export type TokenExchangeRequestScope = OpenEnum<typeof TokenExchangeRequestScope>;
|
|
33
34
|
/**
|
|
34
35
|
* Must be `urn:ietf:params:oauth:token-type:jwt`.
|
|
35
36
|
*/
|
|
@@ -57,7 +58,7 @@ export type TokenExchangeRequest = {
|
|
|
57
58
|
*/
|
|
58
59
|
requestedTokenType?: RequestedTokenType | undefined;
|
|
59
60
|
/**
|
|
60
|
-
* Optional;
|
|
61
|
+
* Optional; when present must match the policy's key: `management` for a management key, `inference` otherwise.
|
|
61
62
|
*/
|
|
62
63
|
scope?: TokenExchangeRequestScope | undefined;
|
|
63
64
|
/**
|
|
@@ -74,7 +75,7 @@ export declare const GrantType$outboundSchema: z.ZodEnum<typeof GrantType>;
|
|
|
74
75
|
/** @internal */
|
|
75
76
|
export declare const RequestedTokenType$outboundSchema: z.ZodEnum<typeof RequestedTokenType>;
|
|
76
77
|
/** @internal */
|
|
77
|
-
export declare const TokenExchangeRequestScope$outboundSchema: z.
|
|
78
|
+
export declare const TokenExchangeRequestScope$outboundSchema: z.ZodType<string, TokenExchangeRequestScope>;
|
|
78
79
|
/** @internal */
|
|
79
80
|
export declare const SubjectTokenType$outboundSchema: z.ZodEnum<typeof SubjectTokenType>;
|
|
80
81
|
/** @internal */
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import * as openEnums from "../types/enums.js";
|
|
7
8
|
/**
|
|
8
9
|
* Must be `urn:ietf:params:oauth:grant-type:token-exchange`.
|
|
9
10
|
*/
|
|
@@ -17,10 +18,11 @@ export const RequestedTokenType = {
|
|
|
17
18
|
UrnIetfParamsOauthTokenTypeAccessToken: "urn:ietf:params:oauth:token-type:access_token",
|
|
18
19
|
};
|
|
19
20
|
/**
|
|
20
|
-
* Optional;
|
|
21
|
+
* Optional; when present must match the policy's key: `management` for a management key, `inference` otherwise.
|
|
21
22
|
*/
|
|
22
23
|
export const TokenExchangeRequestScope = {
|
|
23
24
|
Inference: "inference",
|
|
25
|
+
Management: "management",
|
|
24
26
|
};
|
|
25
27
|
/**
|
|
26
28
|
* Must be `urn:ietf:params:oauth:token-type:jwt`.
|
|
@@ -33,7 +35,7 @@ export const GrantType$outboundSchema = z.enum(GrantType);
|
|
|
33
35
|
/** @internal */
|
|
34
36
|
export const RequestedTokenType$outboundSchema = z.enum(RequestedTokenType);
|
|
35
37
|
/** @internal */
|
|
36
|
-
export const TokenExchangeRequestScope$outboundSchema =
|
|
38
|
+
export const TokenExchangeRequestScope$outboundSchema = openEnums.outboundSchema(TokenExchangeRequestScope);
|
|
37
39
|
/** @internal */
|
|
38
40
|
export const SubjectTokenType$outboundSchema = z.enum(SubjectTokenType);
|
|
39
41
|
/** @internal */
|
|
@@ -23,6 +23,9 @@ export type TokenExchangeResponse = {
|
|
|
23
23
|
*/
|
|
24
24
|
expiresIn: number;
|
|
25
25
|
issuedTokenType: IssuedTokenType;
|
|
26
|
+
/**
|
|
27
|
+
* The one capability the token grants, fixed by the kind of key the policy acts as: `inference` or `management`.
|
|
28
|
+
*/
|
|
26
29
|
scope: string;
|
|
27
30
|
tokenType: TokenType;
|
|
28
31
|
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum, OpenEnum } from "../types/enums.js";
|
|
3
|
+
export declare const ToolSearchCallItemExecution: {
|
|
4
|
+
readonly Server: "server";
|
|
5
|
+
readonly Client: "client";
|
|
6
|
+
};
|
|
7
|
+
export type ToolSearchCallItemExecution = OpenEnum<typeof ToolSearchCallItemExecution>;
|
|
8
|
+
export declare const ToolSearchCallItemStatus: {
|
|
9
|
+
readonly InProgress: "in_progress";
|
|
10
|
+
readonly Completed: "completed";
|
|
11
|
+
readonly Incomplete: "incomplete";
|
|
12
|
+
};
|
|
13
|
+
export type ToolSearchCallItemStatus = OpenEnum<typeof ToolSearchCallItemStatus>;
|
|
14
|
+
export declare const ToolSearchCallItemType: {
|
|
15
|
+
readonly ToolSearchCall: "tool_search_call";
|
|
16
|
+
};
|
|
17
|
+
export type ToolSearchCallItemType = ClosedEnum<typeof ToolSearchCallItemType>;
|
|
18
|
+
/**
|
|
19
|
+
* A tool search call the client executed
|
|
20
|
+
*/
|
|
21
|
+
export type ToolSearchCallItem = {
|
|
22
|
+
arguments?: any | undefined;
|
|
23
|
+
callId: string;
|
|
24
|
+
execution: ToolSearchCallItemExecution;
|
|
25
|
+
id?: string | null | undefined;
|
|
26
|
+
status?: ToolSearchCallItemStatus | null | undefined;
|
|
27
|
+
type: ToolSearchCallItemType;
|
|
28
|
+
};
|
|
29
|
+
/** @internal */
|
|
30
|
+
export declare const ToolSearchCallItemExecution$outboundSchema: z.ZodType<string, ToolSearchCallItemExecution>;
|
|
31
|
+
/** @internal */
|
|
32
|
+
export declare const ToolSearchCallItemStatus$outboundSchema: z.ZodType<string, ToolSearchCallItemStatus>;
|
|
33
|
+
/** @internal */
|
|
34
|
+
export declare const ToolSearchCallItemType$outboundSchema: z.ZodEnum<typeof ToolSearchCallItemType>;
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type ToolSearchCallItem$Outbound = {
|
|
37
|
+
arguments?: any | undefined;
|
|
38
|
+
call_id: string;
|
|
39
|
+
execution: string;
|
|
40
|
+
id?: string | null | undefined;
|
|
41
|
+
status?: string | null | undefined;
|
|
42
|
+
type: string;
|
|
43
|
+
};
|
|
44
|
+
/** @internal */
|
|
45
|
+
export declare const ToolSearchCallItem$outboundSchema: z.ZodType<ToolSearchCallItem$Outbound, ToolSearchCallItem>;
|
|
46
|
+
export declare function toolSearchCallItemToJSON(toolSearchCallItem: ToolSearchCallItem): string;
|
|
47
|
+
//# sourceMappingURL=toolsearchcallitem.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 9df1be472c40
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import * as openEnums from "../types/enums.js";
|
|
8
|
+
export const ToolSearchCallItemExecution = {
|
|
9
|
+
Server: "server",
|
|
10
|
+
Client: "client",
|
|
11
|
+
};
|
|
12
|
+
export const ToolSearchCallItemStatus = {
|
|
13
|
+
InProgress: "in_progress",
|
|
14
|
+
Completed: "completed",
|
|
15
|
+
Incomplete: "incomplete",
|
|
16
|
+
};
|
|
17
|
+
export const ToolSearchCallItemType = {
|
|
18
|
+
ToolSearchCall: "tool_search_call",
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ToolSearchCallItemExecution$outboundSchema = openEnums.outboundSchema(ToolSearchCallItemExecution);
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const ToolSearchCallItemStatus$outboundSchema = openEnums.outboundSchema(ToolSearchCallItemStatus);
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ToolSearchCallItemType$outboundSchema = z.enum(ToolSearchCallItemType);
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const ToolSearchCallItem$outboundSchema = z.object({
|
|
28
|
+
arguments: z.any().optional(),
|
|
29
|
+
callId: z.string(),
|
|
30
|
+
execution: ToolSearchCallItemExecution$outboundSchema,
|
|
31
|
+
id: z.nullable(z.string()).optional(),
|
|
32
|
+
status: z.nullable(ToolSearchCallItemStatus$outboundSchema).optional(),
|
|
33
|
+
type: ToolSearchCallItemType$outboundSchema,
|
|
34
|
+
}).transform((v) => {
|
|
35
|
+
return remap$(v, {
|
|
36
|
+
callId: "call_id",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
export function toolSearchCallItemToJSON(toolSearchCallItem) {
|
|
40
|
+
return JSON.stringify(ToolSearchCallItem$outboundSchema.parse(toolSearchCallItem));
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=toolsearchcallitem.js.map
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum, OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { AdvisorServerToolOpenRouter, AdvisorServerToolOpenRouter$Outbound } from "./advisorservertoolopenrouter.js";
|
|
4
|
+
import { ApplyPatchServerTool, ApplyPatchServerTool$Outbound } from "./applypatchservertool.js";
|
|
5
|
+
import { ApplyPatchServerToolOpenRouter, ApplyPatchServerToolOpenRouter$Outbound } from "./applypatchservertoolopenrouter.js";
|
|
6
|
+
import { BashServerTool, BashServerTool$Outbound } from "./bashservertool.js";
|
|
7
|
+
import { CodeInterpreterServerTool, CodeInterpreterServerTool$Outbound } from "./codeinterpreterservertool.js";
|
|
8
|
+
import { CodexLocalShellTool, CodexLocalShellTool$Outbound } from "./codexlocalshelltool.js";
|
|
9
|
+
import { ComputerUseServerTool, ComputerUseServerTool$Outbound } from "./computeruseservertool.js";
|
|
10
|
+
import { CustomTool, CustomTool$Outbound } from "./customtool.js";
|
|
11
|
+
import { DatetimeServerTool, DatetimeServerTool$Outbound } from "./datetimeservertool.js";
|
|
12
|
+
import { FileSearchServerTool, FileSearchServerTool$Outbound } from "./filesearchservertool.js";
|
|
13
|
+
import { FilesServerTool, FilesServerTool$Outbound } from "./filesservertool.js";
|
|
14
|
+
import { FusionServerToolOpenRouter, FusionServerToolOpenRouter$Outbound } from "./fusionservertoolopenrouter.js";
|
|
15
|
+
import { ImageGenerationServerTool, ImageGenerationServerTool$Outbound } from "./imagegenerationservertool.js";
|
|
16
|
+
import { ImageGenerationServerToolOpenRouter, ImageGenerationServerToolOpenRouter$Outbound } from "./imagegenerationservertoolopenrouter.js";
|
|
17
|
+
import { LegacyWebSearchServerTool, LegacyWebSearchServerTool$Outbound } from "./legacywebsearchservertool.js";
|
|
18
|
+
import { McpServerTool, McpServerTool$Outbound } from "./mcpservertool.js";
|
|
19
|
+
import { NamespaceTool, NamespaceTool$Outbound } from "./namespacetool.js";
|
|
20
|
+
import { Preview20250311WebSearchServerTool, Preview20250311WebSearchServerTool$Outbound } from "./preview20250311websearchservertool.js";
|
|
21
|
+
import { PreviewWebSearchServerTool, PreviewWebSearchServerTool$Outbound } from "./previewwebsearchservertool.js";
|
|
22
|
+
import { SearchModelsServerToolOpenRouter, SearchModelsServerToolOpenRouter$Outbound } from "./searchmodelsservertoolopenrouter.js";
|
|
23
|
+
import { ShellServerTool, ShellServerTool$Outbound } from "./shellservertool.js";
|
|
24
|
+
import { ShellServerToolOpenRouter, ShellServerToolOpenRouter$Outbound } from "./shellservertoolopenrouter.js";
|
|
25
|
+
import { SubagentServerToolOpenRouter, SubagentServerToolOpenRouter$Outbound } from "./subagentservertoolopenrouter.js";
|
|
26
|
+
import { ToolSearchServerTool, ToolSearchServerTool$Outbound } from "./toolsearchservertool.js";
|
|
27
|
+
import { WebFetchServerTool, WebFetchServerTool$Outbound } from "./webfetchservertool.js";
|
|
28
|
+
import { WebSearchServerTool, WebSearchServerTool$Outbound } from "./websearchservertool.js";
|
|
29
|
+
import { WebSearchServerToolOpenRouter, WebSearchServerToolOpenRouter$Outbound } from "./websearchservertoolopenrouter.js";
|
|
30
|
+
export declare const ToolSearchOutputItemExecution: {
|
|
31
|
+
readonly Server: "server";
|
|
32
|
+
readonly Client: "client";
|
|
33
|
+
};
|
|
34
|
+
export type ToolSearchOutputItemExecution = OpenEnum<typeof ToolSearchOutputItemExecution>;
|
|
35
|
+
export declare const ToolSearchOutputItemStatus: {
|
|
36
|
+
readonly InProgress: "in_progress";
|
|
37
|
+
readonly Completed: "completed";
|
|
38
|
+
readonly Incomplete: "incomplete";
|
|
39
|
+
};
|
|
40
|
+
export type ToolSearchOutputItemStatus = OpenEnum<typeof ToolSearchOutputItemStatus>;
|
|
41
|
+
export type ToolSearchOutputItemTool = {
|
|
42
|
+
type: string;
|
|
43
|
+
additionalProperties?: {
|
|
44
|
+
[k: string]: any;
|
|
45
|
+
} | undefined;
|
|
46
|
+
};
|
|
47
|
+
export declare const ToolSearchOutputItemTypeFunction: {
|
|
48
|
+
readonly Function: "function";
|
|
49
|
+
};
|
|
50
|
+
export type ToolSearchOutputItemTypeFunction = ClosedEnum<typeof ToolSearchOutputItemTypeFunction>;
|
|
51
|
+
export declare const ToolSearchOutputItemAllowedCaller: {
|
|
52
|
+
readonly Direct: "direct";
|
|
53
|
+
readonly Programmatic: "programmatic";
|
|
54
|
+
};
|
|
55
|
+
export type ToolSearchOutputItemAllowedCaller = OpenEnum<typeof ToolSearchOutputItemAllowedCaller>;
|
|
56
|
+
/**
|
|
57
|
+
* Function tool definition
|
|
58
|
+
*/
|
|
59
|
+
export type ToolSearchOutputItemToolFunction = {
|
|
60
|
+
description?: string | null | undefined;
|
|
61
|
+
name: string;
|
|
62
|
+
parameters: {
|
|
63
|
+
[k: string]: any;
|
|
64
|
+
} | null;
|
|
65
|
+
strict?: boolean | null | undefined;
|
|
66
|
+
type: ToolSearchOutputItemTypeFunction;
|
|
67
|
+
allowedCallers?: Array<ToolSearchOutputItemAllowedCaller> | null | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Lets the model keep working after calling this tool instead of waiting for its output. The tool is still executed by the client; return the result in a later request as a `function_call_output` with the original `call_id`. Only honored by providers whose Responses API supports async tools; ignored elsewhere.
|
|
70
|
+
*/
|
|
71
|
+
async?: boolean | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Withhold this tool from the model until `openrouter:tool_search` finds it. Where the request declares no search tool, OpenRouter may add `openrouter:tool_search` to serve the flag, and otherwise sends the tool in full. A request that declares the search tool itself must keep at least one tool non-deferred.
|
|
74
|
+
*/
|
|
75
|
+
deferLoading?: boolean | undefined;
|
|
76
|
+
outputSchema?: {
|
|
77
|
+
[k: string]: any;
|
|
78
|
+
} | null | undefined;
|
|
79
|
+
};
|
|
80
|
+
export type ToolSearchOutputItemToolUnion = ComputerUseServerTool | NamespaceTool | ToolSearchOutputItemToolFunction | FileSearchServerTool | CodeInterpreterServerTool | McpServerTool | CustomTool | PreviewWebSearchServerTool | Preview20250311WebSearchServerTool | LegacyWebSearchServerTool | WebSearchServerTool | ImageGenerationServerTool | CodexLocalShellTool | ShellServerTool | ApplyPatchServerTool | AdvisorServerToolOpenRouter | SubagentServerToolOpenRouter | DatetimeServerTool | FilesServerTool | FusionServerToolOpenRouter | ImageGenerationServerToolOpenRouter | SearchModelsServerToolOpenRouter | WebFetchServerTool | WebSearchServerToolOpenRouter | ApplyPatchServerToolOpenRouter | BashServerTool | ShellServerToolOpenRouter | ToolSearchServerTool | ToolSearchOutputItemTool;
|
|
81
|
+
export declare const TypeToolSearchOutput: {
|
|
82
|
+
readonly ToolSearchOutput: "tool_search_output";
|
|
83
|
+
};
|
|
84
|
+
export type TypeToolSearchOutput = ClosedEnum<typeof TypeToolSearchOutput>;
|
|
85
|
+
/**
|
|
86
|
+
* The tools a client-executed tool search loaded
|
|
87
|
+
*/
|
|
88
|
+
export type ToolSearchOutputItem = {
|
|
89
|
+
callId: string;
|
|
90
|
+
execution: ToolSearchOutputItemExecution;
|
|
91
|
+
id?: string | null | undefined;
|
|
92
|
+
status?: ToolSearchOutputItemStatus | null | undefined;
|
|
93
|
+
tools: Array<ComputerUseServerTool | NamespaceTool | ToolSearchOutputItemToolFunction | FileSearchServerTool | CodeInterpreterServerTool | McpServerTool | CustomTool | PreviewWebSearchServerTool | Preview20250311WebSearchServerTool | LegacyWebSearchServerTool | WebSearchServerTool | ImageGenerationServerTool | CodexLocalShellTool | ShellServerTool | ApplyPatchServerTool | AdvisorServerToolOpenRouter | SubagentServerToolOpenRouter | DatetimeServerTool | FilesServerTool | FusionServerToolOpenRouter | ImageGenerationServerToolOpenRouter | SearchModelsServerToolOpenRouter | WebFetchServerTool | WebSearchServerToolOpenRouter | ApplyPatchServerToolOpenRouter | BashServerTool | ShellServerToolOpenRouter | ToolSearchServerTool | ToolSearchOutputItemTool>;
|
|
94
|
+
type: TypeToolSearchOutput;
|
|
95
|
+
};
|
|
96
|
+
/** @internal */
|
|
97
|
+
export declare const ToolSearchOutputItemExecution$outboundSchema: z.ZodType<string, ToolSearchOutputItemExecution>;
|
|
98
|
+
/** @internal */
|
|
99
|
+
export declare const ToolSearchOutputItemStatus$outboundSchema: z.ZodType<string, ToolSearchOutputItemStatus>;
|
|
100
|
+
/** @internal */
|
|
101
|
+
export type ToolSearchOutputItemTool$Outbound = {
|
|
102
|
+
type: string;
|
|
103
|
+
[additionalProperties: string]: unknown;
|
|
104
|
+
};
|
|
105
|
+
/** @internal */
|
|
106
|
+
export declare const ToolSearchOutputItemTool$outboundSchema: z.ZodType<ToolSearchOutputItemTool$Outbound, ToolSearchOutputItemTool>;
|
|
107
|
+
export declare function toolSearchOutputItemToolToJSON(toolSearchOutputItemTool: ToolSearchOutputItemTool): string;
|
|
108
|
+
/** @internal */
|
|
109
|
+
export declare const ToolSearchOutputItemTypeFunction$outboundSchema: z.ZodEnum<typeof ToolSearchOutputItemTypeFunction>;
|
|
110
|
+
/** @internal */
|
|
111
|
+
export declare const ToolSearchOutputItemAllowedCaller$outboundSchema: z.ZodType<string, ToolSearchOutputItemAllowedCaller>;
|
|
112
|
+
/** @internal */
|
|
113
|
+
export type ToolSearchOutputItemToolFunction$Outbound = {
|
|
114
|
+
description?: string | null | undefined;
|
|
115
|
+
name: string;
|
|
116
|
+
parameters: {
|
|
117
|
+
[k: string]: any;
|
|
118
|
+
} | null;
|
|
119
|
+
strict?: boolean | null | undefined;
|
|
120
|
+
type: string;
|
|
121
|
+
allowed_callers?: Array<string> | null | undefined;
|
|
122
|
+
async?: boolean | undefined;
|
|
123
|
+
defer_loading?: boolean | undefined;
|
|
124
|
+
output_schema?: {
|
|
125
|
+
[k: string]: any;
|
|
126
|
+
} | null | undefined;
|
|
127
|
+
};
|
|
128
|
+
/** @internal */
|
|
129
|
+
export declare const ToolSearchOutputItemToolFunction$outboundSchema: z.ZodType<ToolSearchOutputItemToolFunction$Outbound, ToolSearchOutputItemToolFunction>;
|
|
130
|
+
export declare function toolSearchOutputItemToolFunctionToJSON(toolSearchOutputItemToolFunction: ToolSearchOutputItemToolFunction): string;
|
|
131
|
+
/** @internal */
|
|
132
|
+
export type ToolSearchOutputItemToolUnion$Outbound = ComputerUseServerTool$Outbound | NamespaceTool$Outbound | ToolSearchOutputItemToolFunction$Outbound | FileSearchServerTool$Outbound | CodeInterpreterServerTool$Outbound | McpServerTool$Outbound | CustomTool$Outbound | PreviewWebSearchServerTool$Outbound | Preview20250311WebSearchServerTool$Outbound | LegacyWebSearchServerTool$Outbound | WebSearchServerTool$Outbound | ImageGenerationServerTool$Outbound | CodexLocalShellTool$Outbound | ShellServerTool$Outbound | ApplyPatchServerTool$Outbound | AdvisorServerToolOpenRouter$Outbound | SubagentServerToolOpenRouter$Outbound | DatetimeServerTool$Outbound | FilesServerTool$Outbound | FusionServerToolOpenRouter$Outbound | ImageGenerationServerToolOpenRouter$Outbound | SearchModelsServerToolOpenRouter$Outbound | WebFetchServerTool$Outbound | WebSearchServerToolOpenRouter$Outbound | ApplyPatchServerToolOpenRouter$Outbound | BashServerTool$Outbound | ShellServerToolOpenRouter$Outbound | ToolSearchServerTool$Outbound | ToolSearchOutputItemTool$Outbound;
|
|
133
|
+
/** @internal */
|
|
134
|
+
export declare const ToolSearchOutputItemToolUnion$outboundSchema: z.ZodType<ToolSearchOutputItemToolUnion$Outbound, ToolSearchOutputItemToolUnion>;
|
|
135
|
+
export declare function toolSearchOutputItemToolUnionToJSON(toolSearchOutputItemToolUnion: ToolSearchOutputItemToolUnion): string;
|
|
136
|
+
/** @internal */
|
|
137
|
+
export declare const TypeToolSearchOutput$outboundSchema: z.ZodEnum<typeof TypeToolSearchOutput>;
|
|
138
|
+
/** @internal */
|
|
139
|
+
export type ToolSearchOutputItem$Outbound = {
|
|
140
|
+
call_id: string;
|
|
141
|
+
execution: string;
|
|
142
|
+
id?: string | null | undefined;
|
|
143
|
+
status?: string | null | undefined;
|
|
144
|
+
tools: Array<ComputerUseServerTool$Outbound | NamespaceTool$Outbound | ToolSearchOutputItemToolFunction$Outbound | FileSearchServerTool$Outbound | CodeInterpreterServerTool$Outbound | McpServerTool$Outbound | CustomTool$Outbound | PreviewWebSearchServerTool$Outbound | Preview20250311WebSearchServerTool$Outbound | LegacyWebSearchServerTool$Outbound | WebSearchServerTool$Outbound | ImageGenerationServerTool$Outbound | CodexLocalShellTool$Outbound | ShellServerTool$Outbound | ApplyPatchServerTool$Outbound | AdvisorServerToolOpenRouter$Outbound | SubagentServerToolOpenRouter$Outbound | DatetimeServerTool$Outbound | FilesServerTool$Outbound | FusionServerToolOpenRouter$Outbound | ImageGenerationServerToolOpenRouter$Outbound | SearchModelsServerToolOpenRouter$Outbound | WebFetchServerTool$Outbound | WebSearchServerToolOpenRouter$Outbound | ApplyPatchServerToolOpenRouter$Outbound | BashServerTool$Outbound | ShellServerToolOpenRouter$Outbound | ToolSearchServerTool$Outbound | ToolSearchOutputItemTool$Outbound>;
|
|
145
|
+
type: string;
|
|
146
|
+
};
|
|
147
|
+
/** @internal */
|
|
148
|
+
export declare const ToolSearchOutputItem$outboundSchema: z.ZodType<ToolSearchOutputItem$Outbound, ToolSearchOutputItem>;
|
|
149
|
+
export declare function toolSearchOutputItemToJSON(toolSearchOutputItem: ToolSearchOutputItem): string;
|
|
150
|
+
//# sourceMappingURL=toolsearchoutputitem.d.ts.map
|