@openrouter/sdk 1.4.24 → 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/createkeys.d.ts +4 -0
- package/esm/models/operations/createkeys.js +2 -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/getkey.d.ts +4 -0
- package/esm/models/operations/getkey.js +2 -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 +9 -0
- package/esm/models/operations/list.js +4 -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 +9 -0
- package/esm/models/operations/updatekeys.js +4 -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 +5 -5
- 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,92 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { ArmorContext, ArmorContext$Outbound } from "./armorcontext.js";
|
|
4
|
+
/**
|
|
5
|
+
* `enforce` withholds blocked calls; `audit` evaluates and reports the same verdicts without withholding any calls, regardless of `on_error`. Default `enforce`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ArmorPluginMode: {
|
|
8
|
+
readonly Enforce: "enforce";
|
|
9
|
+
readonly Audit: "audit";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* `enforce` withholds blocked calls; `audit` evaluates and reports the same verdicts without withholding any calls, regardless of `on_error`. Default `enforce`.
|
|
13
|
+
*/
|
|
14
|
+
export type ArmorPluginMode = OpenEnum<typeof ArmorPluginMode>;
|
|
15
|
+
/**
|
|
16
|
+
* When the classifier cannot answer (timeout, upstream error, context too long) the call is reported `unavailable`; `block` rejects it and `log` releases it. Default `block`.
|
|
17
|
+
*/
|
|
18
|
+
export declare const OnError: {
|
|
19
|
+
readonly Log: "log";
|
|
20
|
+
readonly Block: "block";
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* When the classifier cannot answer (timeout, upstream error, context too long) the call is reported `unavailable`; `block` rejects it and `log` releases it. Default `block`.
|
|
24
|
+
*/
|
|
25
|
+
export type OnError = OpenEnum<typeof OnError>;
|
|
26
|
+
/**
|
|
27
|
+
* How a blocked call reaches the caller. `text` (the default): the call is withheld and an `<openrouter_armor_blocked>` marker stands in assistant text. `custom_item` (Responses API only): the call is withheld and an `openrouter:armor_blocked` output item carries its id, name, arguments and the rule that fired. `claude_code_compatibility` (Messages API only; the default when the request carries a `dangerous_tool_use` safeguard, i.e. the client speaks Claude Code's protocol): the `tool_use` stays in `content[]` and the verdict is `flagged` in `safeguard_results`, so the client withholds execution and writes the error tool result as under the native classifier. Under `text` and `custom_item` the model received a failure result in the loop and continued in the same request; under `claude_code_compatibility` the turn ends on the flagged call and the model continues on the next request, after the client's denial.
|
|
28
|
+
*/
|
|
29
|
+
export declare const OutputMode: {
|
|
30
|
+
readonly Text: "text";
|
|
31
|
+
readonly CustomItem: "custom_item";
|
|
32
|
+
readonly ClaudeCodeCompatibility: "claude_code_compatibility";
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* How a blocked call reaches the caller. `text` (the default): the call is withheld and an `<openrouter_armor_blocked>` marker stands in assistant text. `custom_item` (Responses API only): the call is withheld and an `openrouter:armor_blocked` output item carries its id, name, arguments and the rule that fired. `claude_code_compatibility` (Messages API only; the default when the request carries a `dangerous_tool_use` safeguard, i.e. the client speaks Claude Code's protocol): the `tool_use` stays in `content[]` and the verdict is `flagged` in `safeguard_results`, so the client withholds execution and writes the error tool result as under the native classifier. Under `text` and `custom_item` the model received a failure result in the loop and continued in the same request; under `claude_code_compatibility` the turn ends on the flagged call and the model continues on the next request, after the client's denial.
|
|
36
|
+
*/
|
|
37
|
+
export type OutputMode = OpenEnum<typeof OutputMode>;
|
|
38
|
+
/**
|
|
39
|
+
* Evaluates every client tool call the model emits against a rule stack (hard-deny, soft-deny, allow) before it reaches the caller. The stack merges the workspace guardrail, this plugin, and any Anthropic `safeguards`; on endpoints that support Anthropic's `dangerous-tool-use` beta the evaluation is native, elsewhere it is one decisions call per tool call. Evaluation is not billed during the beta. Verdicts are reported as `safeguard_results`.
|
|
40
|
+
*/
|
|
41
|
+
export type ArmorPlugin = {
|
|
42
|
+
/**
|
|
43
|
+
* The Armor context: Claude Code's `classifier_context` (v1), with `auto_mode.{hard_deny,soft_deny,allow}` rules as strings or `{ id, instructions, threshold? }` objects and `auto_mode.environment` entries as `"Name: value"` strings or `{ name, value }` objects. `threshold` applies when Armor evaluates; when the provider evaluates natively (Anthropic dangerous-tool-use beta) rules are judged at the provider's own boundary.
|
|
44
|
+
*/
|
|
45
|
+
classifierContext?: ArmorContext | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Set to false to disable Armor for this request. Defaults to true.
|
|
48
|
+
*/
|
|
49
|
+
enabled?: boolean | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Run provider-native server tools (web search, code execution, ...) through the agent loop so Armor evaluates them too. Defaults to false: native passthrough stands and such calls are reported `skipped`.
|
|
52
|
+
*/
|
|
53
|
+
evaluateNativeTools?: boolean | undefined;
|
|
54
|
+
id: "armor";
|
|
55
|
+
/**
|
|
56
|
+
* `enforce` withholds blocked calls; `audit` evaluates and reports the same verdicts without withholding any calls, regardless of `on_error`. Default `enforce`.
|
|
57
|
+
*/
|
|
58
|
+
mode?: ArmorPluginMode | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* When the classifier cannot answer (timeout, upstream error, context too long) the call is reported `unavailable`; `block` rejects it and `log` releases it. Default `block`.
|
|
61
|
+
*/
|
|
62
|
+
onError?: OnError | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* How a blocked call reaches the caller. `text` (the default): the call is withheld and an `<openrouter_armor_blocked>` marker stands in assistant text. `custom_item` (Responses API only): the call is withheld and an `openrouter:armor_blocked` output item carries its id, name, arguments and the rule that fired. `claude_code_compatibility` (Messages API only; the default when the request carries a `dangerous_tool_use` safeguard, i.e. the client speaks Claude Code's protocol): the `tool_use` stays in `content[]` and the verdict is `flagged` in `safeguard_results`, so the client withholds execution and writes the error tool result as under the native classifier. Under `text` and `custom_item` the model received a failure result in the loop and continued in the same request; under `claude_code_compatibility` the turn ends on the flagged call and the model continues on the next request, after the client's denial.
|
|
65
|
+
*/
|
|
66
|
+
outputMode?: OutputMode | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Prepend Claude Code's built-in auto-mode rule set (1 hard-deny, 72 soft-deny, 17 allow, 21 environment slots) ahead of every configured rule. Defaults to true on the Anthropic Messages API and false elsewhere.
|
|
69
|
+
*/
|
|
70
|
+
useCcStyleDefaultRules?: boolean | undefined;
|
|
71
|
+
};
|
|
72
|
+
/** @internal */
|
|
73
|
+
export declare const ArmorPluginMode$outboundSchema: z.ZodType<string, ArmorPluginMode>;
|
|
74
|
+
/** @internal */
|
|
75
|
+
export declare const OnError$outboundSchema: z.ZodType<string, OnError>;
|
|
76
|
+
/** @internal */
|
|
77
|
+
export declare const OutputMode$outboundSchema: z.ZodType<string, OutputMode>;
|
|
78
|
+
/** @internal */
|
|
79
|
+
export type ArmorPlugin$Outbound = {
|
|
80
|
+
classifier_context?: ArmorContext$Outbound | undefined;
|
|
81
|
+
enabled?: boolean | undefined;
|
|
82
|
+
evaluate_native_tools?: boolean | undefined;
|
|
83
|
+
id: "armor";
|
|
84
|
+
mode?: string | undefined;
|
|
85
|
+
on_error?: string | undefined;
|
|
86
|
+
output_mode?: string | undefined;
|
|
87
|
+
use_cc_style_default_rules?: boolean | undefined;
|
|
88
|
+
};
|
|
89
|
+
/** @internal */
|
|
90
|
+
export declare const ArmorPlugin$outboundSchema: z.ZodType<ArmorPlugin$Outbound, ArmorPlugin>;
|
|
91
|
+
export declare function armorPluginToJSON(armorPlugin: ArmorPlugin): string;
|
|
92
|
+
//# sourceMappingURL=armorplugin.d.ts.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e7fcabe37ba6
|
|
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
|
+
import { ArmorContext$outboundSchema, } from "./armorcontext.js";
|
|
9
|
+
/**
|
|
10
|
+
* `enforce` withholds blocked calls; `audit` evaluates and reports the same verdicts without withholding any calls, regardless of `on_error`. Default `enforce`.
|
|
11
|
+
*/
|
|
12
|
+
export const ArmorPluginMode = {
|
|
13
|
+
Enforce: "enforce",
|
|
14
|
+
Audit: "audit",
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* When the classifier cannot answer (timeout, upstream error, context too long) the call is reported `unavailable`; `block` rejects it and `log` releases it. Default `block`.
|
|
18
|
+
*/
|
|
19
|
+
export const OnError = {
|
|
20
|
+
Log: "log",
|
|
21
|
+
Block: "block",
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* How a blocked call reaches the caller. `text` (the default): the call is withheld and an `<openrouter_armor_blocked>` marker stands in assistant text. `custom_item` (Responses API only): the call is withheld and an `openrouter:armor_blocked` output item carries its id, name, arguments and the rule that fired. `claude_code_compatibility` (Messages API only; the default when the request carries a `dangerous_tool_use` safeguard, i.e. the client speaks Claude Code's protocol): the `tool_use` stays in `content[]` and the verdict is `flagged` in `safeguard_results`, so the client withholds execution and writes the error tool result as under the native classifier. Under `text` and `custom_item` the model received a failure result in the loop and continued in the same request; under `claude_code_compatibility` the turn ends on the flagged call and the model continues on the next request, after the client's denial.
|
|
25
|
+
*/
|
|
26
|
+
export const OutputMode = {
|
|
27
|
+
Text: "text",
|
|
28
|
+
CustomItem: "custom_item",
|
|
29
|
+
ClaudeCodeCompatibility: "claude_code_compatibility",
|
|
30
|
+
};
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const ArmorPluginMode$outboundSchema = openEnums.outboundSchema(ArmorPluginMode);
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const OnError$outboundSchema = openEnums
|
|
35
|
+
.outboundSchema(OnError);
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const OutputMode$outboundSchema = openEnums.outboundSchema(OutputMode);
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const ArmorPlugin$outboundSchema = z.object({
|
|
40
|
+
classifierContext: ArmorContext$outboundSchema.optional(),
|
|
41
|
+
enabled: z.boolean().optional(),
|
|
42
|
+
evaluateNativeTools: z.boolean().optional(),
|
|
43
|
+
id: z.literal("armor"),
|
|
44
|
+
mode: ArmorPluginMode$outboundSchema.optional(),
|
|
45
|
+
onError: OnError$outboundSchema.optional(),
|
|
46
|
+
outputMode: OutputMode$outboundSchema.optional(),
|
|
47
|
+
useCcStyleDefaultRules: z.boolean().optional(),
|
|
48
|
+
}).transform((v) => {
|
|
49
|
+
return remap$(v, {
|
|
50
|
+
classifierContext: "classifier_context",
|
|
51
|
+
evaluateNativeTools: "evaluate_native_tools",
|
|
52
|
+
onError: "on_error",
|
|
53
|
+
outputMode: "output_mode",
|
|
54
|
+
useCcStyleDefaultRules: "use_cc_style_default_rules",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
export function armorPluginToJSON(armorPlugin) {
|
|
58
|
+
return JSON.stringify(ArmorPlugin$outboundSchema.parse(armorPlugin));
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=armorplugin.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type ArmorRule = {
|
|
3
|
+
/**
|
|
4
|
+
* Stable id, unique within its source; reported as the deciding rule when it fires.
|
|
5
|
+
*/
|
|
6
|
+
id: string;
|
|
7
|
+
/**
|
|
8
|
+
* What the rule matches, written for the classifier.
|
|
9
|
+
*/
|
|
10
|
+
instructions: string;
|
|
11
|
+
/**
|
|
12
|
+
* Display name shown in verdict explanations; defaults to the id.
|
|
13
|
+
*/
|
|
14
|
+
name?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Probability at or above which the rule counts as matched. Defaults to 0.6 for hard-deny and soft-deny rules and 0.7 for allow rules (an exception needs stronger evidence to clear a matched soft deny).
|
|
17
|
+
*/
|
|
18
|
+
threshold?: number | undefined;
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type ArmorRule$Outbound = {
|
|
22
|
+
id: string;
|
|
23
|
+
instructions: string;
|
|
24
|
+
name?: string | undefined;
|
|
25
|
+
threshold?: number | undefined;
|
|
26
|
+
};
|
|
27
|
+
/** @internal */
|
|
28
|
+
export declare const ArmorRule$outboundSchema: z.ZodType<ArmorRule$Outbound, ArmorRule>;
|
|
29
|
+
export declare function armorRuleToJSON(armorRule: ArmorRule): string;
|
|
30
|
+
//# sourceMappingURL=armorrule.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b6b09f7af630
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export const ArmorRule$outboundSchema = z.object({
|
|
8
|
+
id: z.string(),
|
|
9
|
+
instructions: z.string(),
|
|
10
|
+
name: z.string().optional(),
|
|
11
|
+
threshold: z.number().optional(),
|
|
12
|
+
});
|
|
13
|
+
export function armorRuleToJSON(armorRule) {
|
|
14
|
+
return JSON.stringify(ArmorRule$outboundSchema.parse(armorRule));
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=armorrule.js.map
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import * as discriminatedUnionTypes from "../types/discriminatedUnion.js";
|
|
3
|
+
import { ClosedEnum, OpenEnum } from "../types/enums.js";
|
|
4
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
5
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
6
|
+
export type ToolUsesUnavailable = {
|
|
7
|
+
reason: string;
|
|
8
|
+
type: "unavailable";
|
|
9
|
+
};
|
|
10
|
+
export type ToolUsesSkipped = {
|
|
11
|
+
type: "skipped";
|
|
12
|
+
};
|
|
13
|
+
export declare const OutcomeEnum: {
|
|
14
|
+
readonly Flagged: "flagged";
|
|
15
|
+
readonly NotFlagged: "not_flagged";
|
|
16
|
+
};
|
|
17
|
+
export type OutcomeEnum = OpenEnum<typeof OutcomeEnum>;
|
|
18
|
+
export type ToolUsesEvaluated = {
|
|
19
|
+
explanation?: string | undefined;
|
|
20
|
+
outcome: OutcomeEnum;
|
|
21
|
+
type: "evaluated";
|
|
22
|
+
};
|
|
23
|
+
export type ToolUses = ToolUsesEvaluated | ToolUsesSkipped | ToolUsesUnavailable | discriminatedUnionTypes.Unknown<"type">;
|
|
24
|
+
export declare const TypeAvailableEnum: {
|
|
25
|
+
readonly Available: "available";
|
|
26
|
+
};
|
|
27
|
+
export type TypeAvailableEnum = ClosedEnum<typeof TypeAvailableEnum>;
|
|
28
|
+
export type ArmorSafeguardResultStatus = {
|
|
29
|
+
toolUses: {
|
|
30
|
+
[k: string]: ToolUsesEvaluated | ToolUsesSkipped | ToolUsesUnavailable | discriminatedUnionTypes.Unknown<"type">;
|
|
31
|
+
};
|
|
32
|
+
type: TypeAvailableEnum;
|
|
33
|
+
};
|
|
34
|
+
export declare const TypeDangerousToolUse: {
|
|
35
|
+
readonly DangerousToolUse: "dangerous_tool_use";
|
|
36
|
+
};
|
|
37
|
+
export type TypeDangerousToolUse = ClosedEnum<typeof TypeDangerousToolUse>;
|
|
38
|
+
/**
|
|
39
|
+
* The outcome of OpenRouter Armor for each client tool call of the response, keyed by tool-call id, in the same shape Anthropic reports its server-side safeguards.
|
|
40
|
+
*/
|
|
41
|
+
export type ArmorSafeguardResult = {
|
|
42
|
+
status: ArmorSafeguardResultStatus;
|
|
43
|
+
type: TypeDangerousToolUse;
|
|
44
|
+
};
|
|
45
|
+
/** @internal */
|
|
46
|
+
export declare const ToolUsesUnavailable$inboundSchema: z.ZodType<ToolUsesUnavailable, unknown>;
|
|
47
|
+
export declare function toolUsesUnavailableFromJSON(jsonString: string): SafeParseResult<ToolUsesUnavailable, SDKValidationError>;
|
|
48
|
+
/** @internal */
|
|
49
|
+
export declare const ToolUsesSkipped$inboundSchema: z.ZodType<ToolUsesSkipped, unknown>;
|
|
50
|
+
export declare function toolUsesSkippedFromJSON(jsonString: string): SafeParseResult<ToolUsesSkipped, SDKValidationError>;
|
|
51
|
+
/** @internal */
|
|
52
|
+
export declare const OutcomeEnum$inboundSchema: z.ZodType<OutcomeEnum, unknown>;
|
|
53
|
+
/** @internal */
|
|
54
|
+
export declare const ToolUsesEvaluated$inboundSchema: z.ZodType<ToolUsesEvaluated, unknown>;
|
|
55
|
+
export declare function toolUsesEvaluatedFromJSON(jsonString: string): SafeParseResult<ToolUsesEvaluated, SDKValidationError>;
|
|
56
|
+
/** @internal */
|
|
57
|
+
export declare const ToolUses$inboundSchema: z.ZodType<ToolUses, unknown>;
|
|
58
|
+
export declare function toolUsesFromJSON(jsonString: string): SafeParseResult<ToolUses, SDKValidationError>;
|
|
59
|
+
/** @internal */
|
|
60
|
+
export declare const TypeAvailableEnum$inboundSchema: z.ZodEnum<typeof TypeAvailableEnum>;
|
|
61
|
+
/** @internal */
|
|
62
|
+
export declare const ArmorSafeguardResultStatus$inboundSchema: z.ZodType<ArmorSafeguardResultStatus, unknown>;
|
|
63
|
+
export declare function armorSafeguardResultStatusFromJSON(jsonString: string): SafeParseResult<ArmorSafeguardResultStatus, SDKValidationError>;
|
|
64
|
+
/** @internal */
|
|
65
|
+
export declare const TypeDangerousToolUse$inboundSchema: z.ZodEnum<typeof TypeDangerousToolUse>;
|
|
66
|
+
/** @internal */
|
|
67
|
+
export declare const ArmorSafeguardResult$inboundSchema: z.ZodType<ArmorSafeguardResult, unknown>;
|
|
68
|
+
export declare function armorSafeguardResultFromJSON(jsonString: string): SafeParseResult<ArmorSafeguardResult, SDKValidationError>;
|
|
69
|
+
//# sourceMappingURL=armorsafeguardresult.d.ts.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 29944500746e
|
|
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
|
+
import { discriminatedUnion } from "../types/discriminatedUnion.js";
|
|
9
|
+
import * as openEnums from "../types/enums.js";
|
|
10
|
+
export const OutcomeEnum = {
|
|
11
|
+
Flagged: "flagged",
|
|
12
|
+
NotFlagged: "not_flagged",
|
|
13
|
+
};
|
|
14
|
+
export const TypeAvailableEnum = {
|
|
15
|
+
Available: "available",
|
|
16
|
+
};
|
|
17
|
+
export const TypeDangerousToolUse = {
|
|
18
|
+
DangerousToolUse: "dangerous_tool_use",
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ToolUsesUnavailable$inboundSchema = z.object({
|
|
22
|
+
reason: z.string(),
|
|
23
|
+
type: z.literal("unavailable"),
|
|
24
|
+
});
|
|
25
|
+
export function toolUsesUnavailableFromJSON(jsonString) {
|
|
26
|
+
return safeParse(jsonString, (x) => ToolUsesUnavailable$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolUsesUnavailable' from JSON`);
|
|
27
|
+
}
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const ToolUsesSkipped$inboundSchema = z.object({
|
|
30
|
+
type: z.literal("skipped"),
|
|
31
|
+
});
|
|
32
|
+
export function toolUsesSkippedFromJSON(jsonString) {
|
|
33
|
+
return safeParse(jsonString, (x) => ToolUsesSkipped$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolUsesSkipped' from JSON`);
|
|
34
|
+
}
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const OutcomeEnum$inboundSchema = openEnums.inboundSchema(OutcomeEnum);
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const ToolUsesEvaluated$inboundSchema = z.object({
|
|
39
|
+
explanation: z.string().optional(),
|
|
40
|
+
outcome: OutcomeEnum$inboundSchema,
|
|
41
|
+
type: z.literal("evaluated"),
|
|
42
|
+
});
|
|
43
|
+
export function toolUsesEvaluatedFromJSON(jsonString) {
|
|
44
|
+
return safeParse(jsonString, (x) => ToolUsesEvaluated$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolUsesEvaluated' from JSON`);
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const ToolUses$inboundSchema = discriminatedUnion("type", {
|
|
48
|
+
evaluated: z.lazy(() => ToolUsesEvaluated$inboundSchema),
|
|
49
|
+
skipped: z.lazy(() => ToolUsesSkipped$inboundSchema),
|
|
50
|
+
unavailable: z.lazy(() => ToolUsesUnavailable$inboundSchema),
|
|
51
|
+
});
|
|
52
|
+
export function toolUsesFromJSON(jsonString) {
|
|
53
|
+
return safeParse(jsonString, (x) => ToolUses$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolUses' from JSON`);
|
|
54
|
+
}
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const TypeAvailableEnum$inboundSchema = z.enum(TypeAvailableEnum);
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const ArmorSafeguardResultStatus$inboundSchema = z.object({
|
|
59
|
+
tool_uses: z.record(z.string(), discriminatedUnion("type", {
|
|
60
|
+
evaluated: z.lazy(() => ToolUsesEvaluated$inboundSchema),
|
|
61
|
+
skipped: z.lazy(() => ToolUsesSkipped$inboundSchema),
|
|
62
|
+
unavailable: z.lazy(() => ToolUsesUnavailable$inboundSchema),
|
|
63
|
+
})),
|
|
64
|
+
type: TypeAvailableEnum$inboundSchema,
|
|
65
|
+
}).transform((v) => {
|
|
66
|
+
return remap$(v, {
|
|
67
|
+
"tool_uses": "toolUses",
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
export function armorSafeguardResultStatusFromJSON(jsonString) {
|
|
71
|
+
return safeParse(jsonString, (x) => ArmorSafeguardResultStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ArmorSafeguardResultStatus' from JSON`);
|
|
72
|
+
}
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const TypeDangerousToolUse$inboundSchema = z.enum(TypeDangerousToolUse);
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const ArmorSafeguardResult$inboundSchema = z.object({
|
|
77
|
+
status: z.lazy(() => ArmorSafeguardResultStatus$inboundSchema),
|
|
78
|
+
type: TypeDangerousToolUse$inboundSchema,
|
|
79
|
+
});
|
|
80
|
+
export function armorSafeguardResultFromJSON(jsonString) {
|
|
81
|
+
return safeParse(jsonString, (x) => ArmorSafeguardResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ArmorSafeguardResult' from JSON`);
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=armorsafeguardresult.js.map
|
|
@@ -139,10 +139,18 @@ export type BatchListItem = {
|
|
|
139
139
|
createdAt: number;
|
|
140
140
|
endpoint: string;
|
|
141
141
|
error: BatchListItemError | null;
|
|
142
|
+
/**
|
|
143
|
+
* Unix timestamp after which the assigned provider no longer completes unfinished requests. Derived from the provider's documented batch window, so it can exceed `created_at` plus `completion_window` (Google Vertex can take up to 96 hours). `null` when the provider documents no hard expiry.
|
|
144
|
+
*/
|
|
145
|
+
expiresAt: number | null;
|
|
142
146
|
finalizedAt: number | null;
|
|
143
147
|
id: string;
|
|
144
148
|
model: string;
|
|
145
149
|
object: BatchListItemObject;
|
|
150
|
+
/**
|
|
151
|
+
* Provider OpenRouter assigned to run the batch, using the same name as the `provider` field of sync responses.
|
|
152
|
+
*/
|
|
153
|
+
provider: string | null;
|
|
146
154
|
requestCounts: BatchListItemRequestCounts;
|
|
147
155
|
/**
|
|
148
156
|
* Always null: retrieve the batch with `GET /batches/{id}` to access its results.
|
|
@@ -137,10 +137,12 @@ export const BatchListItem$inboundSchema = z
|
|
|
137
137
|
created_at: z.int(),
|
|
138
138
|
endpoint: z.string(),
|
|
139
139
|
error: z.nullable(z.lazy(() => BatchListItemError$inboundSchema)),
|
|
140
|
+
expires_at: z.nullable(z.int()),
|
|
140
141
|
finalized_at: z.nullable(z.int()),
|
|
141
142
|
id: z.string(),
|
|
142
143
|
model: z.string(),
|
|
143
144
|
object: BatchListItemObject$inboundSchema,
|
|
145
|
+
provider: z.nullable(z.string()),
|
|
144
146
|
request_counts: z.lazy(() => BatchListItemRequestCounts$inboundSchema),
|
|
145
147
|
results: z.nullable(z.any()),
|
|
146
148
|
status: BatchListItemStatus$inboundSchema,
|
|
@@ -149,6 +151,7 @@ export const BatchListItem$inboundSchema = z
|
|
|
149
151
|
return remap$(v, {
|
|
150
152
|
"completion_window": "completionWindow",
|
|
151
153
|
"created_at": "createdAt",
|
|
154
|
+
"expires_at": "expiresAt",
|
|
152
155
|
"finalized_at": "finalizedAt",
|
|
153
156
|
"request_counts": "requestCounts",
|
|
154
157
|
});
|
|
@@ -13,6 +13,7 @@ import { AnthropicServiceTier } from "./anthropicservicetier.js";
|
|
|
13
13
|
import { AnthropicSpeed } from "./anthropicspeed.js";
|
|
14
14
|
import { AnthropicUsageIteration } from "./anthropicusageiteration.js";
|
|
15
15
|
import { ApiErrorType } from "./apierrortype.js";
|
|
16
|
+
import { ArmorSafeguardResult } from "./armorsafeguardresult.js";
|
|
16
17
|
import { CostDetails } from "./costdetails.js";
|
|
17
18
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
18
19
|
import { FinishReason } from "./finishreason.js";
|
|
@@ -442,6 +443,10 @@ export type BodyChatCompletion = {
|
|
|
442
443
|
object: BodyObjectChatCompletion;
|
|
443
444
|
openrouterMetadata?: OpenRouterMetadata | undefined;
|
|
444
445
|
provider?: string | null | undefined;
|
|
446
|
+
/**
|
|
447
|
+
* OpenRouter Armor's verdict for each client tool call of this response, present whenever Armor evaluated the response (even when nothing was flagged). Independent of the `openrouter_metadata` opt-in.
|
|
448
|
+
*/
|
|
449
|
+
safeguardResults?: Array<ArmorSafeguardResult> | undefined;
|
|
445
450
|
serviceTier?: string | null | undefined;
|
|
446
451
|
systemFingerprint?: string | null | undefined;
|
|
447
452
|
usage?: BodyUsage1 | undefined;
|
|
@@ -572,10 +577,18 @@ export type BatchObject = {
|
|
|
572
577
|
createdAt: number;
|
|
573
578
|
endpoint: string;
|
|
574
579
|
error: BatchObjectError | null;
|
|
580
|
+
/**
|
|
581
|
+
* Unix timestamp after which the assigned provider no longer completes unfinished requests. Derived from the provider's documented batch window, so it can exceed `created_at` plus `completion_window` (Google Vertex can take up to 96 hours). `null` when the provider documents no hard expiry.
|
|
582
|
+
*/
|
|
583
|
+
expiresAt: number | null;
|
|
575
584
|
finalizedAt: number | null;
|
|
576
585
|
id: string;
|
|
577
586
|
model: string;
|
|
578
587
|
object: BatchObjectObjectBatch;
|
|
588
|
+
/**
|
|
589
|
+
* Provider OpenRouter assigned to run the batch, using the same name as the `provider` field of sync responses.
|
|
590
|
+
*/
|
|
591
|
+
provider: string | null;
|
|
579
592
|
requestCounts: BatchObjectRequestCounts;
|
|
580
593
|
results: Array<Result> | null;
|
|
581
594
|
status: BatchObjectStatus;
|
|
@@ -18,6 +18,7 @@ import { AnthropicServiceTier$inboundSchema, } from "./anthropicservicetier.js";
|
|
|
18
18
|
import { AnthropicSpeed$inboundSchema, } from "./anthropicspeed.js";
|
|
19
19
|
import { AnthropicUsageIteration$inboundSchema, } from "./anthropicusageiteration.js";
|
|
20
20
|
import { ApiErrorType$inboundSchema } from "./apierrortype.js";
|
|
21
|
+
import { ArmorSafeguardResult$inboundSchema, } from "./armorsafeguardresult.js";
|
|
21
22
|
import { CostDetails$inboundSchema } from "./costdetails.js";
|
|
22
23
|
import { FinishReason$inboundSchema } from "./finishreason.js";
|
|
23
24
|
import { OpenResponsesResult$inboundSchema, } from "./openresponsesresult.js";
|
|
@@ -643,12 +644,14 @@ export const BodyChatCompletion$inboundSchema = z.object({
|
|
|
643
644
|
object: BodyObjectChatCompletion$inboundSchema,
|
|
644
645
|
openrouter_metadata: OpenRouterMetadata$inboundSchema.optional(),
|
|
645
646
|
provider: z.nullable(z.string()).optional(),
|
|
647
|
+
safeguard_results: z.array(ArmorSafeguardResult$inboundSchema).optional(),
|
|
646
648
|
service_tier: z.nullable(z.string()).optional(),
|
|
647
649
|
system_fingerprint: z.nullable(z.string()).optional(),
|
|
648
650
|
usage: z.lazy(() => BodyUsage1$inboundSchema).optional(),
|
|
649
651
|
}).transform((v) => {
|
|
650
652
|
return remap$(v, {
|
|
651
653
|
"openrouter_metadata": "openrouterMetadata",
|
|
654
|
+
"safeguard_results": "safeguardResults",
|
|
652
655
|
"service_tier": "serviceTier",
|
|
653
656
|
"system_fingerprint": "systemFingerprint",
|
|
654
657
|
});
|
|
@@ -790,10 +793,12 @@ export const BatchObject$inboundSchema = z
|
|
|
790
793
|
created_at: z.int(),
|
|
791
794
|
endpoint: z.string(),
|
|
792
795
|
error: z.nullable(z.lazy(() => BatchObjectError$inboundSchema)),
|
|
796
|
+
expires_at: z.nullable(z.int()),
|
|
793
797
|
finalized_at: z.nullable(z.int()),
|
|
794
798
|
id: z.string(),
|
|
795
799
|
model: z.string(),
|
|
796
800
|
object: BatchObjectObjectBatch$inboundSchema,
|
|
801
|
+
provider: z.nullable(z.string()),
|
|
797
802
|
request_counts: z.lazy(() => BatchObjectRequestCounts$inboundSchema),
|
|
798
803
|
results: z.nullable(z.array(z.lazy(() => Result$inboundSchema))),
|
|
799
804
|
status: BatchObjectStatus$inboundSchema,
|
|
@@ -802,6 +807,7 @@ export const BatchObject$inboundSchema = z
|
|
|
802
807
|
return remap$(v, {
|
|
803
808
|
"completion_window": "completionWindow",
|
|
804
809
|
"created_at": "createdAt",
|
|
810
|
+
"expires_at": "expiresAt",
|
|
805
811
|
"finalized_at": "finalizedAt",
|
|
806
812
|
"request_counts": "requestCounts",
|
|
807
813
|
});
|
|
@@ -25,6 +25,10 @@ export type RequestT = {
|
|
|
25
25
|
* Batch submit request body.
|
|
26
26
|
*/
|
|
27
27
|
export type BatchSubmitBody = {
|
|
28
|
+
/**
|
|
29
|
+
* HTTPS URL that receives a `batch.completed`, `batch.failed`, `batch.cancelled` or `batch.expired` webhook event when the batch reaches a terminal status. Must appear before `requests` in the request body.
|
|
30
|
+
*/
|
|
31
|
+
callbackUrl?: string | undefined;
|
|
28
32
|
completionWindow?: BatchSubmitBodyCompletionWindow | undefined;
|
|
29
33
|
endpoint: Endpoint;
|
|
30
34
|
model: string;
|
|
@@ -50,6 +54,7 @@ export declare const RequestT$outboundSchema: z.ZodType<RequestT$Outbound, Reque
|
|
|
50
54
|
export declare function requestToJSON(requestT: RequestT): string;
|
|
51
55
|
/** @internal */
|
|
52
56
|
export type BatchSubmitBody$Outbound = {
|
|
57
|
+
callback_url?: string | undefined;
|
|
53
58
|
completion_window: string;
|
|
54
59
|
endpoint: string;
|
|
55
60
|
model: string;
|
|
@@ -35,6 +35,7 @@ export function requestToJSON(requestT) {
|
|
|
35
35
|
}
|
|
36
36
|
/** @internal */
|
|
37
37
|
export const BatchSubmitBody$outboundSchema = z.object({
|
|
38
|
+
callbackUrl: z.string().optional(),
|
|
38
39
|
completionWindow: BatchSubmitBodyCompletionWindow$outboundSchema.default("24h"),
|
|
39
40
|
endpoint: Endpoint$outboundSchema,
|
|
40
41
|
model: z.string(),
|
|
@@ -42,6 +43,7 @@ export const BatchSubmitBody$outboundSchema = z.object({
|
|
|
42
43
|
requests: z.array(z.lazy(() => RequestT$outboundSchema)),
|
|
43
44
|
}).transform((v) => {
|
|
44
45
|
return remap$(v, {
|
|
46
|
+
callbackUrl: "callback_url",
|
|
45
47
|
completionWindow: "completion_window",
|
|
46
48
|
});
|
|
47
49
|
});
|
package/esm/models/byokkey.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Result as SafeParseResult } from "../types/fp.js";
|
|
|
4
4
|
import { BYOKProviderSlug } from "./byokproviderslug.js";
|
|
5
5
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
6
6
|
/**
|
|
7
|
-
* Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter's regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key's region. Among other providers,
|
|
7
|
+
* Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter's regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key's region. Among other providers, Azure accepts `europe` or `us` and Anthropic accepts `us` only.
|
|
8
8
|
*/
|
|
9
9
|
export declare const BYOKKeyDeclaredRegion: {
|
|
10
10
|
readonly Global: "global";
|
|
@@ -12,7 +12,7 @@ export declare const BYOKKeyDeclaredRegion: {
|
|
|
12
12
|
readonly Us: "us";
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
|
-
* Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter's regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key's region. Among other providers,
|
|
15
|
+
* Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter's regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key's region. Among other providers, Azure accepts `europe` or `us` and Anthropic accepts `us` only.
|
|
16
16
|
*/
|
|
17
17
|
export type BYOKKeyDeclaredRegion = OpenEnum<typeof BYOKKeyDeclaredRegion>;
|
|
18
18
|
export type BYOKKey = {
|
|
@@ -33,7 +33,7 @@ export type BYOKKey = {
|
|
|
33
33
|
*/
|
|
34
34
|
createdAt: string;
|
|
35
35
|
/**
|
|
36
|
-
* Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter's regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key's region. Among other providers,
|
|
36
|
+
* Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter's regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key's region. Among other providers, Azure accepts `europe` or `us` and Anthropic accepts `us` only.
|
|
37
37
|
*/
|
|
38
38
|
declaredRegion: BYOKKeyDeclaredRegion | null;
|
|
39
39
|
/**
|
package/esm/models/byokkey.js
CHANGED
|
@@ -8,7 +8,7 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
8
8
|
import * as openEnums from "../types/enums.js";
|
|
9
9
|
import { BYOKProviderSlug$inboundSchema, } from "./byokproviderslug.js";
|
|
10
10
|
/**
|
|
11
|
-
* Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter's regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key's region. Among other providers,
|
|
11
|
+
* Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter's regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key's region. Among other providers, Azure accepts `europe` or `us` and Anthropic accepts `us` only.
|
|
12
12
|
*/
|
|
13
13
|
export const BYOKKeyDeclaredRegion = {
|
|
14
14
|
Global: "global",
|
|
@@ -82,6 +82,7 @@ export declare const BYOKProviderSlug: {
|
|
|
82
82
|
readonly OpenInference: "open-inference";
|
|
83
83
|
readonly Openai: "openai";
|
|
84
84
|
readonly Parasail: "parasail";
|
|
85
|
+
readonly ParetoAlpha: "pareto-alpha";
|
|
85
86
|
readonly Perceptron: "perceptron";
|
|
86
87
|
readonly Perplexity: "perplexity";
|
|
87
88
|
readonly Phala: "phala";
|
|
@@ -89,6 +90,7 @@ export declare const BYOKProviderSlug: {
|
|
|
89
90
|
readonly Primeintellect: "primeintellect";
|
|
90
91
|
readonly Quiver: "quiver";
|
|
91
92
|
readonly Recraft: "recraft";
|
|
93
|
+
readonly Recursive: "recursive";
|
|
92
94
|
readonly Reka: "reka";
|
|
93
95
|
readonly Relace: "relace";
|
|
94
96
|
readonly Respan: "respan";
|
|
@@ -85,6 +85,7 @@ export const BYOKProviderSlug = {
|
|
|
85
85
|
OpenInference: "open-inference",
|
|
86
86
|
Openai: "openai",
|
|
87
87
|
Parasail: "parasail",
|
|
88
|
+
ParetoAlpha: "pareto-alpha",
|
|
88
89
|
Perceptron: "perceptron",
|
|
89
90
|
Perplexity: "perplexity",
|
|
90
91
|
Phala: "phala",
|
|
@@ -92,6 +93,7 @@ export const BYOKProviderSlug = {
|
|
|
92
93
|
Primeintellect: "primeintellect",
|
|
93
94
|
Quiver: "quiver",
|
|
94
95
|
Recraft: "recraft",
|
|
96
|
+
Recursive: "recursive",
|
|
95
97
|
Reka: "reka",
|
|
96
98
|
Relace: "relace",
|
|
97
99
|
Respan: "respan",
|
|
@@ -17,7 +17,7 @@ export type ChatContentText = {
|
|
|
17
17
|
*/
|
|
18
18
|
cacheControl?: ChatContentCacheControl | undefined;
|
|
19
19
|
/**
|
|
20
|
-
* 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.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
promptCacheBreakpoint?: PromptCacheBreakpoint | null | undefined;
|
|
23
23
|
text: string;
|
|
@@ -17,6 +17,7 @@ import { WebFetchServerTool, WebFetchServerTool$Outbound } from "./webfetchserve
|
|
|
17
17
|
* Function definition for tool calling
|
|
18
18
|
*/
|
|
19
19
|
export type ChatFunctionToolFunctionFunction = {
|
|
20
|
+
deferLoading?: boolean | undefined;
|
|
20
21
|
/**
|
|
21
22
|
* Function description for the model
|
|
22
23
|
*/
|
|
@@ -45,6 +46,7 @@ export type ChatFunctionToolFunction = {
|
|
|
45
46
|
* Anthropic-style cache breakpoint for the content part. Interchangeable with the OpenAI-style `prompt_cache_breakpoint` marker: OpenRouter converts between the two based on the provider serving the request.
|
|
46
47
|
*/
|
|
47
48
|
cacheControl?: ChatContentCacheControl | undefined;
|
|
49
|
+
deferLoading?: boolean | undefined;
|
|
48
50
|
/**
|
|
49
51
|
* Function definition for tool calling
|
|
50
52
|
*/
|
|
@@ -57,6 +59,7 @@ export type ChatFunctionToolFunction = {
|
|
|
57
59
|
export type ChatFunctionTool = ChatFunctionToolFunction | AdvisorServerToolOpenRouter | BashServerTool | DatetimeServerTool | FilesServerTool | FusionServerToolOpenRouter | ImageGenerationServerToolOpenRouter | ChatSearchModelsServerTool | SubagentServerToolOpenRouter | WebFetchServerTool | OpenRouterWebSearchServerTool | ChatWebSearchShorthand | ChatDynamicServerTool;
|
|
58
60
|
/** @internal */
|
|
59
61
|
export type ChatFunctionToolFunctionFunction$Outbound = {
|
|
62
|
+
defer_loading?: boolean | undefined;
|
|
60
63
|
description?: string | undefined;
|
|
61
64
|
name: string;
|
|
62
65
|
parameters?: {
|
|
@@ -72,6 +75,7 @@ export declare const ChatFunctionToolType$outboundSchema: z.ZodEnum<typeof ChatF
|
|
|
72
75
|
/** @internal */
|
|
73
76
|
export type ChatFunctionToolFunction$Outbound = {
|
|
74
77
|
cache_control?: ChatContentCacheControl$Outbound | undefined;
|
|
78
|
+
defer_loading?: boolean | undefined;
|
|
75
79
|
function: ChatFunctionToolFunctionFunction$Outbound;
|
|
76
80
|
type: string;
|
|
77
81
|
};
|