@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
|
@@ -7,10 +7,11 @@ export declare const PromptCacheBreakpointMode: {
|
|
|
7
7
|
};
|
|
8
8
|
export type PromptCacheBreakpointMode = ClosedEnum<typeof PromptCacheBreakpointMode>;
|
|
9
9
|
/**
|
|
10
|
-
* Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically.
|
|
10
|
+
* Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. `ttl` ("30m" or "12h") overrides the request-level `prompt_cache_options.ttl` for this boundary; 12h writes bill at the higher cache-write rate.
|
|
11
11
|
*/
|
|
12
12
|
export type PromptCacheBreakpoint = {
|
|
13
13
|
mode: PromptCacheBreakpointMode;
|
|
14
|
+
ttl?: string | null | undefined;
|
|
14
15
|
};
|
|
15
16
|
/** @internal */
|
|
16
17
|
export declare const PromptCacheBreakpointMode$inboundSchema: z.ZodEnum<typeof PromptCacheBreakpointMode>;
|
|
@@ -21,6 +22,7 @@ export declare const PromptCacheBreakpoint$inboundSchema: z.ZodType<PromptCacheB
|
|
|
21
22
|
/** @internal */
|
|
22
23
|
export type PromptCacheBreakpoint$Outbound = {
|
|
23
24
|
mode: string;
|
|
25
|
+
ttl?: string | null | undefined;
|
|
24
26
|
};
|
|
25
27
|
/** @internal */
|
|
26
28
|
export declare const PromptCacheBreakpoint$outboundSchema: z.ZodType<PromptCacheBreakpoint$Outbound, PromptCacheBreakpoint>;
|
|
@@ -14,10 +14,12 @@ export const PromptCacheBreakpointMode$outboundSchema = PromptCacheBreakpointMod
|
|
|
14
14
|
/** @internal */
|
|
15
15
|
export const PromptCacheBreakpoint$inboundSchema = z.object({
|
|
16
16
|
mode: PromptCacheBreakpointMode$inboundSchema,
|
|
17
|
+
ttl: z.nullable(z.string()).optional(),
|
|
17
18
|
});
|
|
18
19
|
/** @internal */
|
|
19
20
|
export const PromptCacheBreakpoint$outboundSchema = z.object({
|
|
20
21
|
mode: PromptCacheBreakpointMode$outboundSchema,
|
|
22
|
+
ttl: z.nullable(z.string()).optional(),
|
|
21
23
|
});
|
|
22
24
|
export function promptCacheBreakpointToJSON(promptCacheBreakpoint) {
|
|
23
25
|
return JSON.stringify(PromptCacheBreakpoint$outboundSchema.parse(promptCacheBreakpoint));
|
|
@@ -7,7 +7,7 @@ export declare const PromptCacheOptionsMode: {
|
|
|
7
7
|
};
|
|
8
8
|
export type PromptCacheOptionsMode = ClosedEnum<typeof PromptCacheOptionsMode>;
|
|
9
9
|
/**
|
|
10
|
-
* Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer.
|
|
10
|
+
* Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. `ttl` sets the minimum cache lifetime for every breakpoint the request writes: "30m" (default) or "12h" (billed at the higher 12h cache-write rate). Only supported by OpenAI GPT-5.6 and newer.
|
|
11
11
|
*/
|
|
12
12
|
export type PromptCacheOptions = {
|
|
13
13
|
mode: PromptCacheOptionsMode;
|
|
@@ -79,12 +79,14 @@ export declare const ProviderName: {
|
|
|
79
79
|
readonly OpenAI: "OpenAI";
|
|
80
80
|
readonly OpenInference: "OpenInference";
|
|
81
81
|
readonly Parasail: "Parasail";
|
|
82
|
+
readonly ParetoAlpha: "ParetoAlpha";
|
|
82
83
|
readonly Poolside: "Poolside";
|
|
83
84
|
readonly PrimeIntellect: "PrimeIntellect";
|
|
84
85
|
readonly Perceptron: "Perceptron";
|
|
85
86
|
readonly Perplexity: "Perplexity";
|
|
86
87
|
readonly Phala: "Phala";
|
|
87
88
|
readonly Recraft: "Recraft";
|
|
89
|
+
readonly Recursive: "Recursive";
|
|
88
90
|
readonly Reka: "Reka";
|
|
89
91
|
readonly Relace: "Relace";
|
|
90
92
|
readonly Respan: "Respan";
|
|
@@ -82,12 +82,14 @@ export const ProviderName = {
|
|
|
82
82
|
OpenAI: "OpenAI",
|
|
83
83
|
OpenInference: "OpenInference",
|
|
84
84
|
Parasail: "Parasail",
|
|
85
|
+
ParetoAlpha: "ParetoAlpha",
|
|
85
86
|
Poolside: "Poolside",
|
|
86
87
|
PrimeIntellect: "PrimeIntellect",
|
|
87
88
|
Perceptron: "Perceptron",
|
|
88
89
|
Perplexity: "Perplexity",
|
|
89
90
|
Phala: "Phala",
|
|
90
91
|
Recraft: "Recraft",
|
|
92
|
+
Recursive: "Recursive",
|
|
91
93
|
Reka: "Reka",
|
|
92
94
|
Relace: "Relace",
|
|
93
95
|
Respan: "Respan",
|
|
@@ -303,6 +303,9 @@ export type ProviderOptions = {
|
|
|
303
303
|
parasail?: {
|
|
304
304
|
[k: string]: any;
|
|
305
305
|
} | undefined;
|
|
306
|
+
paretoAlpha?: {
|
|
307
|
+
[k: string]: any;
|
|
308
|
+
} | undefined;
|
|
306
309
|
perceptron?: {
|
|
307
310
|
[k: string]: any;
|
|
308
311
|
} | undefined;
|
|
@@ -327,6 +330,9 @@ export type ProviderOptions = {
|
|
|
327
330
|
recursal?: {
|
|
328
331
|
[k: string]: any;
|
|
329
332
|
} | undefined;
|
|
333
|
+
recursive?: {
|
|
334
|
+
[k: string]: any;
|
|
335
|
+
} | undefined;
|
|
330
336
|
reflection?: {
|
|
331
337
|
[k: string]: any;
|
|
332
338
|
} | undefined;
|
|
@@ -744,6 +750,9 @@ export type ProviderOptions$Outbound = {
|
|
|
744
750
|
parasail?: {
|
|
745
751
|
[k: string]: any;
|
|
746
752
|
} | undefined;
|
|
753
|
+
"pareto-alpha"?: {
|
|
754
|
+
[k: string]: any;
|
|
755
|
+
} | undefined;
|
|
747
756
|
perceptron?: {
|
|
748
757
|
[k: string]: any;
|
|
749
758
|
} | undefined;
|
|
@@ -768,6 +777,9 @@ export type ProviderOptions$Outbound = {
|
|
|
768
777
|
recursal?: {
|
|
769
778
|
[k: string]: any;
|
|
770
779
|
} | undefined;
|
|
780
|
+
recursive?: {
|
|
781
|
+
[k: string]: any;
|
|
782
|
+
} | undefined;
|
|
771
783
|
reflection?: {
|
|
772
784
|
[k: string]: any;
|
|
773
785
|
} | undefined;
|
|
@@ -106,6 +106,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
106
106
|
openInference: z.record(z.string(), z.any()).optional(),
|
|
107
107
|
openai: z.record(z.string(), z.any()).optional(),
|
|
108
108
|
parasail: z.record(z.string(), z.any()).optional(),
|
|
109
|
+
paretoAlpha: z.record(z.string(), z.any()).optional(),
|
|
109
110
|
perceptron: z.record(z.string(), z.any()).optional(),
|
|
110
111
|
perplexity: z.record(z.string(), z.any()).optional(),
|
|
111
112
|
phala: z.record(z.string(), z.any()).optional(),
|
|
@@ -114,6 +115,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
114
115
|
quiver: z.record(z.string(), z.any()).optional(),
|
|
115
116
|
recraft: z.record(z.string(), z.any()).optional(),
|
|
116
117
|
recursal: z.record(z.string(), z.any()).optional(),
|
|
118
|
+
recursive: z.record(z.string(), z.any()).optional(),
|
|
117
119
|
reflection: z.record(z.string(), z.any()).optional(),
|
|
118
120
|
reka: z.record(z.string(), z.any()).optional(),
|
|
119
121
|
relace: z.record(z.string(), z.any()).optional(),
|
|
@@ -177,6 +179,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
177
179
|
nearAi: "near-ai",
|
|
178
180
|
nexAgi: "nex-agi",
|
|
179
181
|
openInference: "open-inference",
|
|
182
|
+
paretoAlpha: "pareto-alpha",
|
|
180
183
|
sailResearch: "sail-research",
|
|
181
184
|
sakanaAi: "sakana-ai",
|
|
182
185
|
sambanovaCloaked: "sambanova-cloaked",
|
|
@@ -112,12 +112,14 @@ export declare const ProviderResponseProviderName: {
|
|
|
112
112
|
readonly OpenAI: "OpenAI";
|
|
113
113
|
readonly OpenInference: "OpenInference";
|
|
114
114
|
readonly Parasail: "Parasail";
|
|
115
|
+
readonly ParetoAlpha: "ParetoAlpha";
|
|
115
116
|
readonly Poolside: "Poolside";
|
|
116
117
|
readonly PrimeIntellect: "PrimeIntellect";
|
|
117
118
|
readonly Perceptron: "Perceptron";
|
|
118
119
|
readonly Perplexity: "Perplexity";
|
|
119
120
|
readonly Phala: "Phala";
|
|
120
121
|
readonly Recraft: "Recraft";
|
|
122
|
+
readonly Recursive: "Recursive";
|
|
121
123
|
readonly Reka: "Reka";
|
|
122
124
|
readonly Relace: "Relace";
|
|
123
125
|
readonly Respan: "Respan";
|
|
@@ -116,12 +116,14 @@ export const ProviderResponseProviderName = {
|
|
|
116
116
|
OpenAI: "OpenAI",
|
|
117
117
|
OpenInference: "OpenInference",
|
|
118
118
|
Parasail: "Parasail",
|
|
119
|
+
ParetoAlpha: "ParetoAlpha",
|
|
119
120
|
Poolside: "Poolside",
|
|
120
121
|
PrimeIntellect: "PrimeIntellect",
|
|
121
122
|
Perceptron: "Perceptron",
|
|
122
123
|
Perplexity: "Perplexity",
|
|
123
124
|
Phala: "Phala",
|
|
124
125
|
Recraft: "Recraft",
|
|
126
|
+
Recursive: "Recursive",
|
|
125
127
|
Reka: "Reka",
|
|
126
128
|
Relace: "Relace",
|
|
127
129
|
Respan: "Respan",
|
|
@@ -6,6 +6,7 @@ import { Parameter } from "./parameter.js";
|
|
|
6
6
|
import { PercentileStats } from "./percentilestats.js";
|
|
7
7
|
import { PricingOverride } from "./pricingoverride.js";
|
|
8
8
|
import { ProviderName } from "./providername.js";
|
|
9
|
+
import { PublicServiceTier } from "./publicservicetier.js";
|
|
9
10
|
import { Quantization } from "./quantization.js";
|
|
10
11
|
import { ToolChoiceSupport } from "./toolchoicesupport.js";
|
|
11
12
|
export type NativeTools = {
|
|
@@ -199,8 +200,16 @@ export type PublicEndpoint = {
|
|
|
199
200
|
pricing: Pricing;
|
|
200
201
|
providerName: ProviderName;
|
|
201
202
|
quantization: Quantization | null;
|
|
203
|
+
/**
|
|
204
|
+
* The service tier this endpoint sells, or null for a standard endpoint. The same value whether the provider selects the tier with a request parameter or with a dedicated model id. Always the canonical tier: priority covers the fast request alias and the turbo, highspeed, and prime provider model-id spellings, none of which this field reports.
|
|
205
|
+
*/
|
|
206
|
+
serviceTier: PublicServiceTier | null;
|
|
202
207
|
status?: EndpointStatus | undefined;
|
|
203
208
|
supportedParameters: Array<Parameter>;
|
|
209
|
+
/**
|
|
210
|
+
* Whether this STT endpoint can label each transcript segment with a speaker (speaker diarization). False when the endpoint has not declared support.
|
|
211
|
+
*/
|
|
212
|
+
supportsDiarization: boolean;
|
|
204
213
|
/**
|
|
205
214
|
* Whether this TTS endpoint accepts an `image_url` reference describing the desired voice. Requests carrying an image reference are only routed to endpoints where this is true.
|
|
206
215
|
*/
|
|
@@ -221,12 +230,12 @@ export type PublicEndpoint = {
|
|
|
221
230
|
tag: string;
|
|
222
231
|
throughputLast30m: PercentileStats | null;
|
|
223
232
|
/**
|
|
224
|
-
* Uptime percentage over the last
|
|
233
|
+
* Uptime percentage over the last day: the share of minutes in which at least 80% of provider attempts succeeded, counting only minutes with 10 or more attempts. Rate-limited and caller-caused failures are excluded. Null when no minute had enough traffic.
|
|
225
234
|
*/
|
|
226
235
|
uptimeLast1d: number | null;
|
|
227
236
|
uptimeLast30m: number | null;
|
|
228
237
|
/**
|
|
229
|
-
* Uptime percentage over the last 5 minutes
|
|
238
|
+
* Uptime percentage over the last 5 minutes: the share of minutes in which at least 80% of provider attempts succeeded, counting only minutes with 10 or more attempts. Rate-limited and caller-caused failures are excluded. Null when no minute had enough traffic.
|
|
230
239
|
*/
|
|
231
240
|
uptimeLast5m: number | null;
|
|
232
241
|
};
|
|
@@ -10,6 +10,7 @@ import { Parameter$inboundSchema } from "./parameter.js";
|
|
|
10
10
|
import { PercentileStats$inboundSchema, } from "./percentilestats.js";
|
|
11
11
|
import { PricingOverride$inboundSchema, } from "./pricingoverride.js";
|
|
12
12
|
import { ProviderName$inboundSchema } from "./providername.js";
|
|
13
|
+
import { PublicServiceTier$inboundSchema, } from "./publicservicetier.js";
|
|
13
14
|
import { Quantization$inboundSchema } from "./quantization.js";
|
|
14
15
|
import { ToolChoiceSupport$inboundSchema, } from "./toolchoicesupport.js";
|
|
15
16
|
/** @internal */
|
|
@@ -208,8 +209,10 @@ export const PublicEndpoint$inboundSchema = z.object({
|
|
|
208
209
|
pricing: z.lazy(() => Pricing$inboundSchema),
|
|
209
210
|
provider_name: ProviderName$inboundSchema,
|
|
210
211
|
quantization: z.nullable(Quantization$inboundSchema),
|
|
212
|
+
service_tier: z.nullable(PublicServiceTier$inboundSchema),
|
|
211
213
|
status: EndpointStatus$inboundSchema.optional(),
|
|
212
214
|
supported_parameters: z.array(Parameter$inboundSchema),
|
|
215
|
+
supports_diarization: z.boolean(),
|
|
213
216
|
supports_image_reference: z.boolean().default(false),
|
|
214
217
|
supports_implicit_caching: z.boolean(),
|
|
215
218
|
supports_multiple_audio_references: z.boolean().default(false),
|
|
@@ -231,7 +234,9 @@ export const PublicEndpoint$inboundSchema = z.object({
|
|
|
231
234
|
"native_tools": "nativeTools",
|
|
232
235
|
"perf_last_30m_by_workload": "perfLast30mByWorkload",
|
|
233
236
|
"provider_name": "providerName",
|
|
237
|
+
"service_tier": "serviceTier",
|
|
234
238
|
"supported_parameters": "supportedParameters",
|
|
239
|
+
"supports_diarization": "supportsDiarization",
|
|
235
240
|
"supports_image_reference": "supportsImageReference",
|
|
236
241
|
"supports_implicit_caching": "supportsImplicitCaching",
|
|
237
242
|
"supports_multiple_audio_references": "supportsMultipleAudioReferences",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* The service tier this endpoint sells, or null for a standard endpoint. The same value whether the provider selects the tier with a request parameter or with a dedicated model id. Always the canonical tier: priority covers the fast request alias and the turbo, highspeed, and prime provider model-id spellings, none of which this field reports.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PublicServiceTier: {
|
|
7
|
+
readonly Flex: "flex";
|
|
8
|
+
readonly Priority: "priority";
|
|
9
|
+
readonly Ultrafast: "ultrafast";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The service tier this endpoint sells, or null for a standard endpoint. The same value whether the provider selects the tier with a request parameter or with a dedicated model id. Always the canonical tier: priority covers the fast request alias and the turbo, highspeed, and prime provider model-id spellings, none of which this field reports.
|
|
13
|
+
*/
|
|
14
|
+
export type PublicServiceTier = OpenEnum<typeof PublicServiceTier>;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const PublicServiceTier$inboundSchema: z.ZodType<PublicServiceTier, unknown>;
|
|
17
|
+
//# sourceMappingURL=publicservicetier.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b2568abb5c38
|
|
4
|
+
*/
|
|
5
|
+
import * as openEnums from "../types/enums.js";
|
|
6
|
+
/**
|
|
7
|
+
* The service tier this endpoint sells, or null for a standard endpoint. The same value whether the provider selects the tier with a request parameter or with a dedicated model id. Always the canonical tier: priority covers the fast request alias and the turbo, highspeed, and prime provider model-id spellings, none of which this field reports.
|
|
8
|
+
*/
|
|
9
|
+
export const PublicServiceTier = {
|
|
10
|
+
Flex: "flex",
|
|
11
|
+
Priority: "priority",
|
|
12
|
+
Ultrafast: "ultrafast",
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const PublicServiceTier$inboundSchema = openEnums.inboundSchema(PublicServiceTier);
|
|
16
|
+
//# sourceMappingURL=publicservicetier.js.map
|
|
@@ -5,6 +5,7 @@ import { AlignmentPlugin, AlignmentPlugin$Outbound } from "./alignmentplugin.js"
|
|
|
5
5
|
import { AnthropicCacheControlDirective, AnthropicCacheControlDirective$Outbound } from "./anthropiccachecontroldirective.js";
|
|
6
6
|
import { ApplyPatchServerTool, ApplyPatchServerTool$Outbound } from "./applypatchservertool.js";
|
|
7
7
|
import { ApplyPatchServerToolOpenRouter, ApplyPatchServerToolOpenRouter$Outbound } from "./applypatchservertoolopenrouter.js";
|
|
8
|
+
import { ArmorPlugin, ArmorPlugin$Outbound } from "./armorplugin.js";
|
|
8
9
|
import { AutoBetaRouterPlugin, AutoBetaRouterPlugin$Outbound } from "./autobetarouterplugin.js";
|
|
9
10
|
import { AutoRouterPlugin, AutoRouterPlugin$Outbound } from "./autorouterplugin.js";
|
|
10
11
|
import { BashServerTool, BashServerTool$Outbound } from "./bashservertool.js";
|
|
@@ -15,6 +16,7 @@ import { ComputerUseServerTool, ComputerUseServerTool$Outbound } from "./compute
|
|
|
15
16
|
import { ContextCompressionPlugin, ContextCompressionPlugin$Outbound } from "./contextcompressionplugin.js";
|
|
16
17
|
import { CustomTool, CustomTool$Outbound } from "./customtool.js";
|
|
17
18
|
import { DatetimeServerTool, DatetimeServerTool$Outbound } from "./datetimeservertool.js";
|
|
19
|
+
import { DeferredToolsControl, DeferredToolsControl$Outbound } from "./deferredtoolscontrol.js";
|
|
18
20
|
import { FileParserPlugin, FileParserPlugin$Outbound } from "./fileparserplugin.js";
|
|
19
21
|
import { FileSearchServerTool, FileSearchServerTool$Outbound } from "./filesearchservertool.js";
|
|
20
22
|
import { FilesServerTool, FilesServerTool$Outbound } from "./filesservertool.js";
|
|
@@ -58,7 +60,7 @@ import { WebFetchServerTool, WebFetchServerTool$Outbound } from "./webfetchserve
|
|
|
58
60
|
import { WebSearchPlugin, WebSearchPlugin$Outbound } from "./websearchplugin.js";
|
|
59
61
|
import { WebSearchServerTool, WebSearchServerTool$Outbound } from "./websearchservertool.js";
|
|
60
62
|
import { WebSearchServerToolOpenRouter, WebSearchServerToolOpenRouter$Outbound } from "./websearchservertoolopenrouter.js";
|
|
61
|
-
export type ResponsesRequestPlugin = AlignmentPlugin | AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | JevRouterPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin;
|
|
63
|
+
export type ResponsesRequestPlugin = AlignmentPlugin | ArmorPlugin | AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | JevRouterPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin;
|
|
62
64
|
export type ReasoningConfig = {
|
|
63
65
|
/**
|
|
64
66
|
* Controls which reasoning is available to the model. `auto` uses the model default (same as omitting); `all_turns` includes reasoning from earlier turns passed in input; `current_turn` limits to the current turn only. Only supported by OpenAI GPT-5.6 and newer.
|
|
@@ -89,6 +91,15 @@ export declare const ResponsesRequestServiceTier: {
|
|
|
89
91
|
* The service tier to use for processing this request. `fast` is accepted as an alias for `priority`. `ultrafast` prefers ultrafast endpoints and falls back to `priority`, then default endpoints.
|
|
90
92
|
*/
|
|
91
93
|
export type ResponsesRequestServiceTier = OpenEnum<typeof ResponsesRequestServiceTier>;
|
|
94
|
+
/**
|
|
95
|
+
* Stop sequences (up to 4)
|
|
96
|
+
*/
|
|
97
|
+
export type ResponsesRequestStop = string | Array<string>;
|
|
98
|
+
export declare const ResponsesRequestAllowedCaller: {
|
|
99
|
+
readonly Direct: "direct";
|
|
100
|
+
readonly Programmatic: "programmatic";
|
|
101
|
+
};
|
|
102
|
+
export type ResponsesRequestAllowedCaller = OpenEnum<typeof ResponsesRequestAllowedCaller>;
|
|
92
103
|
/**
|
|
93
104
|
* Function tool definition
|
|
94
105
|
*/
|
|
@@ -100,14 +111,18 @@ export type ResponsesRequestToolFunction = {
|
|
|
100
111
|
} | null;
|
|
101
112
|
strict?: boolean | null | undefined;
|
|
102
113
|
type: "function";
|
|
114
|
+
allowedCallers?: Array<ResponsesRequestAllowedCaller> | null | undefined;
|
|
103
115
|
/**
|
|
104
116
|
* 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.
|
|
105
117
|
*/
|
|
106
118
|
async?: boolean | undefined;
|
|
107
119
|
/**
|
|
108
|
-
* Withhold this tool from the model until `openrouter:tool_search` finds it.
|
|
120
|
+
* 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.
|
|
109
121
|
*/
|
|
110
122
|
deferLoading?: boolean | undefined;
|
|
123
|
+
outputSchema?: {
|
|
124
|
+
[k: string]: any;
|
|
125
|
+
} | null | undefined;
|
|
111
126
|
};
|
|
112
127
|
export type ResponsesRequestToolUnion = ResponsesRequestToolFunction | (PreviewWebSearchServerTool & {
|
|
113
128
|
type: "web_search_preview";
|
|
@@ -177,6 +192,10 @@ export type ResponsesRequest = {
|
|
|
177
192
|
* Debug options for inspecting request transformations (streaming only)
|
|
178
193
|
*/
|
|
179
194
|
debug?: ChatDebugOptions | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation; keep the catalog unchanged.
|
|
197
|
+
*/
|
|
198
|
+
deferredTools?: DeferredToolsControl | undefined;
|
|
180
199
|
frequencyPenalty?: number | null | undefined;
|
|
181
200
|
/**
|
|
182
201
|
* Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/guides/overview/multimodal/image-generation for more details.
|
|
@@ -211,7 +230,7 @@ export type ResponsesRequest = {
|
|
|
211
230
|
/**
|
|
212
231
|
* Plugins you want to enable for this request, including their settings.
|
|
213
232
|
*/
|
|
214
|
-
plugins?: Array<AlignmentPlugin | AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | JevRouterPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin> | undefined;
|
|
233
|
+
plugins?: Array<AlignmentPlugin | ArmorPlugin | AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | JevRouterPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin> | undefined;
|
|
215
234
|
presencePenalty?: number | null | undefined;
|
|
216
235
|
/**
|
|
217
236
|
* Not supported on this proxy. Each response request is independent: no responses are stored, so a previous response cannot be referenced. Requests with a non-null value are rejected with a 400 error. Send the full conversation history in `input` instead.
|
|
@@ -220,7 +239,7 @@ export type ResponsesRequest = {
|
|
|
220
239
|
prompt?: StoredPromptTemplate | null | undefined;
|
|
221
240
|
promptCacheKey?: string | null | undefined;
|
|
222
241
|
/**
|
|
223
|
-
* Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer.
|
|
242
|
+
* Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. `ttl` sets the minimum cache lifetime for every breakpoint the request writes: "30m" (default) or "12h" (billed at the higher 12h cache-write rate). Only supported by OpenAI GPT-5.6 and newer.
|
|
224
243
|
*/
|
|
225
244
|
promptCacheOptions?: PromptCacheOptions | null | undefined;
|
|
226
245
|
/**
|
|
@@ -243,6 +262,10 @@ export type ResponsesRequest = {
|
|
|
243
262
|
* A unique identifier for grouping related requests (e.g., a conversation or agent workflow). When provided, OpenRouter uses it as the sticky routing key, routing all requests in the session to the same provider to maximize prompt cache hits. Also used for observability grouping. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.
|
|
244
263
|
*/
|
|
245
264
|
sessionId?: string | undefined;
|
|
265
|
+
/**
|
|
266
|
+
* Stop sequences (up to 4)
|
|
267
|
+
*/
|
|
268
|
+
stop?: string | Array<string> | null | undefined;
|
|
246
269
|
/**
|
|
247
270
|
* Stop conditions for the server-tool agent loop. Any condition firing halts the loop (OR logic). When set, this overrides `max_tool_calls`. When a condition fires while the model is still emitting tool calls, the pending tool calls are executed and one final turn is made with tool calls disabled so the response ends with a natural-language answer instead of an unfinished tool call.
|
|
248
271
|
*/
|
|
@@ -324,7 +347,7 @@ export type ResponsesRequest = {
|
|
|
324
347
|
user?: string | undefined;
|
|
325
348
|
};
|
|
326
349
|
/** @internal */
|
|
327
|
-
export type ResponsesRequestPlugin$Outbound = AlignmentPlugin$Outbound | AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | JevRouterPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound;
|
|
350
|
+
export type ResponsesRequestPlugin$Outbound = AlignmentPlugin$Outbound | ArmorPlugin$Outbound | AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | JevRouterPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound;
|
|
328
351
|
/** @internal */
|
|
329
352
|
export declare const ResponsesRequestPlugin$outboundSchema: z.ZodType<ResponsesRequestPlugin$Outbound, ResponsesRequestPlugin>;
|
|
330
353
|
export declare function responsesRequestPluginToJSON(responsesRequestPlugin: ResponsesRequestPlugin): string;
|
|
@@ -343,6 +366,13 @@ export declare function reasoningConfigToJSON(reasoningConfig: ReasoningConfig):
|
|
|
343
366
|
/** @internal */
|
|
344
367
|
export declare const ResponsesRequestServiceTier$outboundSchema: z.ZodType<string, ResponsesRequestServiceTier>;
|
|
345
368
|
/** @internal */
|
|
369
|
+
export type ResponsesRequestStop$Outbound = string | Array<string>;
|
|
370
|
+
/** @internal */
|
|
371
|
+
export declare const ResponsesRequestStop$outboundSchema: z.ZodType<ResponsesRequestStop$Outbound, ResponsesRequestStop>;
|
|
372
|
+
export declare function responsesRequestStopToJSON(responsesRequestStop: ResponsesRequestStop): string;
|
|
373
|
+
/** @internal */
|
|
374
|
+
export declare const ResponsesRequestAllowedCaller$outboundSchema: z.ZodType<string, ResponsesRequestAllowedCaller>;
|
|
375
|
+
/** @internal */
|
|
346
376
|
export type ResponsesRequestToolFunction$Outbound = {
|
|
347
377
|
description?: string | null | undefined;
|
|
348
378
|
name: string;
|
|
@@ -351,8 +381,12 @@ export type ResponsesRequestToolFunction$Outbound = {
|
|
|
351
381
|
} | null;
|
|
352
382
|
strict?: boolean | null | undefined;
|
|
353
383
|
type: "function";
|
|
384
|
+
allowed_callers?: Array<string> | null | undefined;
|
|
354
385
|
async?: boolean | undefined;
|
|
355
386
|
defer_loading?: boolean | undefined;
|
|
387
|
+
output_schema?: {
|
|
388
|
+
[k: string]: any;
|
|
389
|
+
} | null | undefined;
|
|
356
390
|
};
|
|
357
391
|
/** @internal */
|
|
358
392
|
export declare const ResponsesRequestToolFunction$outboundSchema: z.ZodType<ResponsesRequestToolFunction$Outbound, ResponsesRequestToolFunction>;
|
|
@@ -421,6 +455,7 @@ export type ResponsesRequest$Outbound = {
|
|
|
421
455
|
background?: boolean | null | undefined;
|
|
422
456
|
cache_control?: AnthropicCacheControlDirective$Outbound | undefined;
|
|
423
457
|
debug?: ChatDebugOptions$Outbound | undefined;
|
|
458
|
+
deferred_tools?: DeferredToolsControl$Outbound | undefined;
|
|
424
459
|
frequency_penalty?: number | null | undefined;
|
|
425
460
|
image_config?: {
|
|
426
461
|
[k: string]: ImageConfig$Outbound;
|
|
@@ -437,7 +472,7 @@ export type ResponsesRequest$Outbound = {
|
|
|
437
472
|
model?: string | undefined;
|
|
438
473
|
models?: Array<string> | undefined;
|
|
439
474
|
parallel_tool_calls?: boolean | null | undefined;
|
|
440
|
-
plugins?: Array<AlignmentPlugin$Outbound | AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | JevRouterPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound> | undefined;
|
|
475
|
+
plugins?: Array<AlignmentPlugin$Outbound | ArmorPlugin$Outbound | AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | JevRouterPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound> | undefined;
|
|
441
476
|
presence_penalty?: number | null | undefined;
|
|
442
477
|
previous_response_id?: any | undefined;
|
|
443
478
|
prompt?: StoredPromptTemplate$Outbound | null | undefined;
|
|
@@ -448,6 +483,7 @@ export type ResponsesRequest$Outbound = {
|
|
|
448
483
|
safety_identifier?: string | null | undefined;
|
|
449
484
|
service_tier: string | null;
|
|
450
485
|
session_id?: string | undefined;
|
|
486
|
+
stop?: string | Array<string> | null | undefined;
|
|
451
487
|
stop_server_tools_when?: Array<StopServerToolsWhenCondition$Outbound> | undefined;
|
|
452
488
|
store: false;
|
|
453
489
|
stream: boolean;
|
|
@@ -10,6 +10,7 @@ import { AlignmentPlugin$outboundSchema, } from "./alignmentplugin.js";
|
|
|
10
10
|
import { AnthropicCacheControlDirective$outboundSchema, } from "./anthropiccachecontroldirective.js";
|
|
11
11
|
import { ApplyPatchServerTool$outboundSchema, } from "./applypatchservertool.js";
|
|
12
12
|
import { ApplyPatchServerToolOpenRouter$outboundSchema, } from "./applypatchservertoolopenrouter.js";
|
|
13
|
+
import { ArmorPlugin$outboundSchema, } from "./armorplugin.js";
|
|
13
14
|
import { AutoBetaRouterPlugin$outboundSchema, } from "./autobetarouterplugin.js";
|
|
14
15
|
import { AutoRouterPlugin$outboundSchema, } from "./autorouterplugin.js";
|
|
15
16
|
import { BashServerTool$outboundSchema, } from "./bashservertool.js";
|
|
@@ -20,6 +21,7 @@ import { ComputerUseServerTool$outboundSchema, } from "./computeruseservertool.j
|
|
|
20
21
|
import { ContextCompressionPlugin$outboundSchema, } from "./contextcompressionplugin.js";
|
|
21
22
|
import { CustomTool$outboundSchema, } from "./customtool.js";
|
|
22
23
|
import { DatetimeServerTool$outboundSchema, } from "./datetimeservertool.js";
|
|
24
|
+
import { DeferredToolsControl$outboundSchema, } from "./deferredtoolscontrol.js";
|
|
23
25
|
import { FileParserPlugin$outboundSchema, } from "./fileparserplugin.js";
|
|
24
26
|
import { FileSearchServerTool$outboundSchema, } from "./filesearchservertool.js";
|
|
25
27
|
import { FilesServerTool$outboundSchema, } from "./filesservertool.js";
|
|
@@ -75,9 +77,14 @@ export const ResponsesRequestServiceTier = {
|
|
|
75
77
|
Scale: "scale",
|
|
76
78
|
Ultrafast: "ultrafast",
|
|
77
79
|
};
|
|
80
|
+
export const ResponsesRequestAllowedCaller = {
|
|
81
|
+
Direct: "direct",
|
|
82
|
+
Programmatic: "programmatic",
|
|
83
|
+
};
|
|
78
84
|
/** @internal */
|
|
79
85
|
export const ResponsesRequestPlugin$outboundSchema = z.union([
|
|
80
86
|
AlignmentPlugin$outboundSchema,
|
|
87
|
+
ArmorPlugin$outboundSchema,
|
|
81
88
|
AutoBetaRouterPlugin$outboundSchema,
|
|
82
89
|
AutoRouterPlugin$outboundSchema,
|
|
83
90
|
ContextCompressionPlugin$outboundSchema,
|
|
@@ -113,17 +120,28 @@ export function reasoningConfigToJSON(reasoningConfig) {
|
|
|
113
120
|
/** @internal */
|
|
114
121
|
export const ResponsesRequestServiceTier$outboundSchema = openEnums.outboundSchema(ResponsesRequestServiceTier);
|
|
115
122
|
/** @internal */
|
|
123
|
+
export const ResponsesRequestStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
124
|
+
export function responsesRequestStopToJSON(responsesRequestStop) {
|
|
125
|
+
return JSON.stringify(ResponsesRequestStop$outboundSchema.parse(responsesRequestStop));
|
|
126
|
+
}
|
|
127
|
+
/** @internal */
|
|
128
|
+
export const ResponsesRequestAllowedCaller$outboundSchema = openEnums.outboundSchema(ResponsesRequestAllowedCaller);
|
|
129
|
+
/** @internal */
|
|
116
130
|
export const ResponsesRequestToolFunction$outboundSchema = z.object({
|
|
117
131
|
description: z.nullable(z.string()).optional(),
|
|
118
132
|
name: z.string(),
|
|
119
133
|
parameters: z.nullable(z.record(z.string(), z.any())),
|
|
120
134
|
strict: z.nullable(z.boolean()).optional(),
|
|
121
135
|
type: z.literal("function"),
|
|
136
|
+
allowedCallers: z.nullable(z.array(ResponsesRequestAllowedCaller$outboundSchema)).optional(),
|
|
122
137
|
async: z.boolean().optional(),
|
|
123
138
|
deferLoading: z.boolean().optional(),
|
|
139
|
+
outputSchema: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
124
140
|
}).transform((v) => {
|
|
125
141
|
return remap$(v, {
|
|
142
|
+
allowedCallers: "allowed_callers",
|
|
126
143
|
deferLoading: "defer_loading",
|
|
144
|
+
outputSchema: "output_schema",
|
|
127
145
|
});
|
|
128
146
|
});
|
|
129
147
|
export function responsesRequestToolFunctionToJSON(responsesRequestToolFunction) {
|
|
@@ -168,6 +186,7 @@ export const ResponsesRequest$outboundSchema = z.object({
|
|
|
168
186
|
background: z.nullable(z.boolean()).optional(),
|
|
169
187
|
cacheControl: AnthropicCacheControlDirective$outboundSchema.optional(),
|
|
170
188
|
debug: ChatDebugOptions$outboundSchema.optional(),
|
|
189
|
+
deferredTools: DeferredToolsControl$outboundSchema.optional(),
|
|
171
190
|
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
172
191
|
imageConfig: z.record(z.string(), ImageConfig$outboundSchema).optional(),
|
|
173
192
|
include: z.nullable(z.array(ResponseIncludesEnum$outboundSchema)).optional(),
|
|
@@ -182,6 +201,7 @@ export const ResponsesRequest$outboundSchema = z.object({
|
|
|
182
201
|
parallelToolCalls: z.nullable(z.boolean()).optional(),
|
|
183
202
|
plugins: z.array(z.union([
|
|
184
203
|
AlignmentPlugin$outboundSchema,
|
|
204
|
+
ArmorPlugin$outboundSchema,
|
|
185
205
|
AutoBetaRouterPlugin$outboundSchema,
|
|
186
206
|
AutoRouterPlugin$outboundSchema,
|
|
187
207
|
ContextCompressionPlugin$outboundSchema,
|
|
@@ -206,6 +226,7 @@ export const ResponsesRequest$outboundSchema = z.object({
|
|
|
206
226
|
safetyIdentifier: z.nullable(z.string()).optional(),
|
|
207
227
|
serviceTier: z.nullable(ResponsesRequestServiceTier$outboundSchema.default("auto")),
|
|
208
228
|
sessionId: z.string().optional(),
|
|
229
|
+
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
209
230
|
stopServerToolsWhen: z.array(StopServerToolsWhenCondition$outboundSchema)
|
|
210
231
|
.optional(),
|
|
211
232
|
store: z.literal(false).default(false),
|
|
@@ -252,6 +273,7 @@ export const ResponsesRequest$outboundSchema = z.object({
|
|
|
252
273
|
}).transform((v) => {
|
|
253
274
|
return remap$(v, {
|
|
254
275
|
cacheControl: "cache_control",
|
|
276
|
+
deferredTools: "deferred_tools",
|
|
255
277
|
frequencyPenalty: "frequency_penalty",
|
|
256
278
|
imageConfig: "image_config",
|
|
257
279
|
maxOutputTokens: "max_output_tokens",
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* The HTTP method of the daemon request.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SignInternDaemonRequestMethod: {
|
|
7
|
+
readonly Post: "POST";
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The HTTP method of the daemon request.
|
|
11
|
+
*/
|
|
12
|
+
export type SignInternDaemonRequestMethod = ClosedEnum<typeof SignInternDaemonRequestMethod>;
|
|
13
|
+
/**
|
|
14
|
+
* The daemon request the proof is for. When present the response also carries the single-use, route-bound proof (`x-ori-invoke-signature-v2`, `x-ori-invoke-nonce`).
|
|
15
|
+
*/
|
|
16
|
+
export type Route = {
|
|
17
|
+
/**
|
|
18
|
+
* The HTTP method of the daemon request.
|
|
19
|
+
*/
|
|
20
|
+
method: SignInternDaemonRequestMethod;
|
|
21
|
+
/**
|
|
22
|
+
* The daemon request path, percent-encoded as sent, without origin or query. The route-bound proof admits only this path.
|
|
23
|
+
*/
|
|
24
|
+
path: string;
|
|
25
|
+
};
|
|
26
|
+
export type SignInternDaemonRequest = {
|
|
27
|
+
/**
|
|
28
|
+
* Lower-case hex SHA-256 of the exact bytes the CLI will send as the daemon request body.
|
|
29
|
+
*/
|
|
30
|
+
bodySha256: string;
|
|
31
|
+
/**
|
|
32
|
+
* The daemon request the proof is for. When present the response also carries the single-use, route-bound proof (`x-ori-invoke-signature-v2`, `x-ori-invoke-nonce`).
|
|
33
|
+
*/
|
|
34
|
+
route?: Route | undefined;
|
|
35
|
+
};
|
|
36
|
+
/** @internal */
|
|
37
|
+
export declare const SignInternDaemonRequestMethod$outboundSchema: z.ZodEnum<typeof SignInternDaemonRequestMethod>;
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type Route$Outbound = {
|
|
40
|
+
method: string;
|
|
41
|
+
path: string;
|
|
42
|
+
};
|
|
43
|
+
/** @internal */
|
|
44
|
+
export declare const Route$outboundSchema: z.ZodType<Route$Outbound, Route>;
|
|
45
|
+
export declare function routeToJSON(route: Route): string;
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type SignInternDaemonRequest$Outbound = {
|
|
48
|
+
bodySha256: string;
|
|
49
|
+
route?: Route$Outbound | undefined;
|
|
50
|
+
};
|
|
51
|
+
/** @internal */
|
|
52
|
+
export declare const SignInternDaemonRequest$outboundSchema: z.ZodType<SignInternDaemonRequest$Outbound, SignInternDaemonRequest>;
|
|
53
|
+
export declare function signInternDaemonRequestToJSON(signInternDaemonRequest: SignInternDaemonRequest): string;
|
|
54
|
+
//# sourceMappingURL=signinterndaemonrequest.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 2a823896a299
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
/**
|
|
7
|
+
* The HTTP method of the daemon request.
|
|
8
|
+
*/
|
|
9
|
+
export const SignInternDaemonRequestMethod = {
|
|
10
|
+
Post: "POST",
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const SignInternDaemonRequestMethod$outboundSchema = z.enum(SignInternDaemonRequestMethod);
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const Route$outboundSchema = z.object({
|
|
16
|
+
method: SignInternDaemonRequestMethod$outboundSchema,
|
|
17
|
+
path: z.string(),
|
|
18
|
+
});
|
|
19
|
+
export function routeToJSON(route) {
|
|
20
|
+
return JSON.stringify(Route$outboundSchema.parse(route));
|
|
21
|
+
}
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const SignInternDaemonRequest$outboundSchema = z.object({
|
|
24
|
+
bodySha256: z.string(),
|
|
25
|
+
route: z.lazy(() => Route$outboundSchema).optional(),
|
|
26
|
+
});
|
|
27
|
+
export function signInternDaemonRequestToJSON(signInternDaemonRequest) {
|
|
28
|
+
return JSON.stringify(SignInternDaemonRequest$outboundSchema.parse(signInternDaemonRequest));
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=signinterndaemonrequest.js.map
|