@openrouter/sdk 1.4.25 → 1.5.1
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/organizationGetSettings.d.ts +1 -1
- package/esm/funcs/organizationGetSettings.js +2 -2
- package/esm/funcs/organizationListMembers.d.ts +1 -1
- package/esm/funcs/organizationListMembers.js +2 -2
- package/esm/funcs/organizationUpdateSettings.d.ts +1 -1
- package/esm/funcs/organizationUpdateSettings.js +2 -2
- 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/interndaemonaccess.d.ts +11 -1
- package/esm/models/interndaemonaccess.js +8 -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 +8 -8
- 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
|
@@ -23,6 +23,7 @@ import { McpListToolsItem, McpListToolsItem$Outbound } from "./mcplisttoolsitem.
|
|
|
23
23
|
import { OpenAIResponsesRefusalContent, OpenAIResponsesRefusalContent$Outbound } from "./openairesponsesrefusalcontent.js";
|
|
24
24
|
import { OutputAdvisorServerToolItem, OutputAdvisorServerToolItem$Outbound } from "./outputadvisorservertoolitem.js";
|
|
25
25
|
import { OutputApplyPatchServerToolItem, OutputApplyPatchServerToolItem$Outbound } from "./outputapplypatchservertoolitem.js";
|
|
26
|
+
import { OutputArmorBlockedItem, OutputArmorBlockedItem$Outbound } from "./outputarmorblockeditem.js";
|
|
26
27
|
import { OutputBashServerToolItem, OutputBashServerToolItem$Outbound } from "./outputbashservertoolitem.js";
|
|
27
28
|
import { OutputBrowserUseServerToolItem, OutputBrowserUseServerToolItem$Outbound } from "./outputbrowseruseservertoolitem.js";
|
|
28
29
|
import { OutputCodeInterpreterCallItem, OutputCodeInterpreterCallItem$Outbound } from "./outputcodeinterpretercallitem.js";
|
|
@@ -52,6 +53,8 @@ import { ReasoningTextContent, ReasoningTextContent$Outbound } from "./reasoning
|
|
|
52
53
|
import { ResponseOutputText, ResponseOutputText$Outbound } from "./responseoutputtext.js";
|
|
53
54
|
import { ShellCallItem, ShellCallItem$Outbound } from "./shellcallitem.js";
|
|
54
55
|
import { ShellCallOutputItem, ShellCallOutputItem$Outbound } from "./shellcalloutputitem.js";
|
|
56
|
+
import { ToolSearchCallItem, ToolSearchCallItem$Outbound } from "./toolsearchcallitem.js";
|
|
57
|
+
import { ToolSearchOutputItem, ToolSearchOutputItem$Outbound } from "./toolsearchoutputitem.js";
|
|
55
58
|
export declare const InputsStatusInProgress2: {
|
|
56
59
|
readonly InProgress: "in_progress";
|
|
57
60
|
};
|
|
@@ -134,11 +137,11 @@ export type InputsMessage = {
|
|
|
134
137
|
status?: InputsStatusCompleted1 | InputsStatusIncomplete1 | InputsStatusInProgress1 | undefined;
|
|
135
138
|
type?: InputsTypeMessage | undefined;
|
|
136
139
|
};
|
|
137
|
-
export type InputsUnion1 = LocalShellCallItem | McpApprovalRequestItem | McpCallItem | FunctionCallItem | ApplyPatchCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | AgentMessageItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsMessage | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | OutputCodeInterpreterCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | AdditionalToolsItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | OutputFilesServerToolItem | OutputShellServerToolItem | CompactionItem | ItemReferenceItem | ConfigurationUpdateItem | EasyInputMessage | InputMessageItem | ContextCompactionItem;
|
|
140
|
+
export type InputsUnion1 = OutputArmorBlockedItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | FunctionCallItem | ApplyPatchCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | AgentMessageItem | ToolSearchOutputItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsMessage | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | OutputCodeInterpreterCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | AdditionalToolsItem | ToolSearchCallItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | OutputFilesServerToolItem | OutputShellServerToolItem | CompactionItem | ItemReferenceItem | ConfigurationUpdateItem | EasyInputMessage | InputMessageItem | ContextCompactionItem;
|
|
138
141
|
/**
|
|
139
142
|
* Input for a response request - can be a string or array of items
|
|
140
143
|
*/
|
|
141
|
-
export type InputsUnion = string | Array<LocalShellCallItem | McpApprovalRequestItem | McpCallItem | FunctionCallItem | ApplyPatchCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | AgentMessageItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsMessage | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | OutputCodeInterpreterCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | AdditionalToolsItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | OutputFilesServerToolItem | OutputShellServerToolItem | CompactionItem | ItemReferenceItem | ConfigurationUpdateItem | EasyInputMessage | InputMessageItem | ContextCompactionItem>;
|
|
144
|
+
export type InputsUnion = string | Array<OutputArmorBlockedItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | FunctionCallItem | ApplyPatchCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | AgentMessageItem | ToolSearchOutputItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsMessage | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | OutputCodeInterpreterCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | AdditionalToolsItem | ToolSearchCallItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | OutputFilesServerToolItem | OutputShellServerToolItem | CompactionItem | ItemReferenceItem | ConfigurationUpdateItem | EasyInputMessage | InputMessageItem | ContextCompactionItem>;
|
|
142
145
|
/** @internal */
|
|
143
146
|
export declare const InputsStatusInProgress2$outboundSchema: z.ZodEnum<typeof InputsStatusInProgress2>;
|
|
144
147
|
/** @internal */
|
|
@@ -213,12 +216,12 @@ export type InputsMessage$Outbound = {
|
|
|
213
216
|
export declare const InputsMessage$outboundSchema: z.ZodType<InputsMessage$Outbound, InputsMessage>;
|
|
214
217
|
export declare function inputsMessageToJSON(inputsMessage: InputsMessage): string;
|
|
215
218
|
/** @internal */
|
|
216
|
-
export type InputsUnion1$Outbound = LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | FunctionCallItem$Outbound | ApplyPatchCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | AgentMessageItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsMessage$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | OutputCodeInterpreterCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | AdditionalToolsItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | OutputFilesServerToolItem$Outbound | OutputShellServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | ConfigurationUpdateItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound | ContextCompactionItem$Outbound;
|
|
219
|
+
export type InputsUnion1$Outbound = OutputArmorBlockedItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | FunctionCallItem$Outbound | ApplyPatchCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | AgentMessageItem$Outbound | ToolSearchOutputItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsMessage$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | OutputCodeInterpreterCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | AdditionalToolsItem$Outbound | ToolSearchCallItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | OutputFilesServerToolItem$Outbound | OutputShellServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | ConfigurationUpdateItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound | ContextCompactionItem$Outbound;
|
|
217
220
|
/** @internal */
|
|
218
221
|
export declare const InputsUnion1$outboundSchema: z.ZodType<InputsUnion1$Outbound, InputsUnion1>;
|
|
219
222
|
export declare function inputsUnion1ToJSON(inputsUnion1: InputsUnion1): string;
|
|
220
223
|
/** @internal */
|
|
221
|
-
export type InputsUnion$Outbound = string | Array<LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | FunctionCallItem$Outbound | ApplyPatchCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | AgentMessageItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsMessage$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | OutputCodeInterpreterCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | AdditionalToolsItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | OutputFilesServerToolItem$Outbound | OutputShellServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | ConfigurationUpdateItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound | ContextCompactionItem$Outbound>;
|
|
224
|
+
export type InputsUnion$Outbound = string | Array<OutputArmorBlockedItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | FunctionCallItem$Outbound | ApplyPatchCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | AgentMessageItem$Outbound | ToolSearchOutputItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsMessage$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | OutputCodeInterpreterCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | AdditionalToolsItem$Outbound | ToolSearchCallItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | OutputFilesServerToolItem$Outbound | OutputShellServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | ConfigurationUpdateItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound | ContextCompactionItem$Outbound>;
|
|
222
225
|
/** @internal */
|
|
223
226
|
export declare const InputsUnion$outboundSchema: z.ZodType<InputsUnion$Outbound, InputsUnion>;
|
|
224
227
|
export declare function inputsUnionToJSON(inputsUnion: InputsUnion): string;
|
|
@@ -27,6 +27,7 @@ import { McpListToolsItem$outboundSchema, } from "./mcplisttoolsitem.js";
|
|
|
27
27
|
import { OpenAIResponsesRefusalContent$outboundSchema, } from "./openairesponsesrefusalcontent.js";
|
|
28
28
|
import { OutputAdvisorServerToolItem$outboundSchema, } from "./outputadvisorservertoolitem.js";
|
|
29
29
|
import { OutputApplyPatchServerToolItem$outboundSchema, } from "./outputapplypatchservertoolitem.js";
|
|
30
|
+
import { OutputArmorBlockedItem$outboundSchema, } from "./outputarmorblockeditem.js";
|
|
30
31
|
import { OutputBashServerToolItem$outboundSchema, } from "./outputbashservertoolitem.js";
|
|
31
32
|
import { OutputBrowserUseServerToolItem$outboundSchema, } from "./outputbrowseruseservertoolitem.js";
|
|
32
33
|
import { OutputCodeInterpreterCallItem$outboundSchema, } from "./outputcodeinterpretercallitem.js";
|
|
@@ -56,6 +57,8 @@ import { ReasoningTextContent$outboundSchema, } from "./reasoningtextcontent.js"
|
|
|
56
57
|
import { ResponseOutputText$outboundSchema, } from "./responseoutputtext.js";
|
|
57
58
|
import { ShellCallItem$outboundSchema, } from "./shellcallitem.js";
|
|
58
59
|
import { ShellCallOutputItem$outboundSchema, } from "./shellcalloutputitem.js";
|
|
60
|
+
import { ToolSearchCallItem$outboundSchema, } from "./toolsearchcallitem.js";
|
|
61
|
+
import { ToolSearchOutputItem$outboundSchema, } from "./toolsearchoutputitem.js";
|
|
59
62
|
export const InputsStatusInProgress2 = {
|
|
60
63
|
InProgress: "in_progress",
|
|
61
64
|
};
|
|
@@ -205,6 +208,7 @@ export function inputsMessageToJSON(inputsMessage) {
|
|
|
205
208
|
}
|
|
206
209
|
/** @internal */
|
|
207
210
|
export const InputsUnion1$outboundSchema = z.union([
|
|
211
|
+
OutputArmorBlockedItem$outboundSchema,
|
|
208
212
|
LocalShellCallItem$outboundSchema,
|
|
209
213
|
McpApprovalRequestItem$outboundSchema,
|
|
210
214
|
McpCallItem$outboundSchema,
|
|
@@ -216,6 +220,7 @@ export const InputsUnion1$outboundSchema = z.union([
|
|
|
216
220
|
McpListToolsItem$outboundSchema,
|
|
217
221
|
CustomToolCallItem$outboundSchema,
|
|
218
222
|
AgentMessageItem$outboundSchema,
|
|
223
|
+
ToolSearchOutputItem$outboundSchema,
|
|
219
224
|
ReasoningItem$outboundSchema,
|
|
220
225
|
FunctionCallOutputItem$outboundSchema,
|
|
221
226
|
ApplyPatchCallOutputItem$outboundSchema,
|
|
@@ -230,6 +235,7 @@ export const InputsUnion1$outboundSchema = z.union([
|
|
|
230
235
|
McpApprovalResponseItem$outboundSchema,
|
|
231
236
|
CustomToolCallOutputItem$outboundSchema,
|
|
232
237
|
AdditionalToolsItem$outboundSchema,
|
|
238
|
+
ToolSearchCallItem$outboundSchema,
|
|
233
239
|
OutputWebSearchServerToolItem$outboundSchema,
|
|
234
240
|
OutputCodeInterpreterServerToolItem$outboundSchema,
|
|
235
241
|
OutputFileSearchServerToolItem$outboundSchema,
|
|
@@ -262,6 +268,7 @@ export function inputsUnion1ToJSON(inputsUnion1) {
|
|
|
262
268
|
export const InputsUnion$outboundSchema = z.union([
|
|
263
269
|
z.string(),
|
|
264
270
|
z.array(z.union([
|
|
271
|
+
OutputArmorBlockedItem$outboundSchema,
|
|
265
272
|
LocalShellCallItem$outboundSchema,
|
|
266
273
|
McpApprovalRequestItem$outboundSchema,
|
|
267
274
|
McpCallItem$outboundSchema,
|
|
@@ -273,6 +280,7 @@ export const InputsUnion$outboundSchema = z.union([
|
|
|
273
280
|
McpListToolsItem$outboundSchema,
|
|
274
281
|
CustomToolCallItem$outboundSchema,
|
|
275
282
|
AgentMessageItem$outboundSchema,
|
|
283
|
+
ToolSearchOutputItem$outboundSchema,
|
|
276
284
|
ReasoningItem$outboundSchema,
|
|
277
285
|
FunctionCallOutputItem$outboundSchema,
|
|
278
286
|
ApplyPatchCallOutputItem$outboundSchema,
|
|
@@ -287,6 +295,7 @@ export const InputsUnion$outboundSchema = z.union([
|
|
|
287
295
|
McpApprovalResponseItem$outboundSchema,
|
|
288
296
|
CustomToolCallOutputItem$outboundSchema,
|
|
289
297
|
AdditionalToolsItem$outboundSchema,
|
|
298
|
+
ToolSearchCallItem$outboundSchema,
|
|
290
299
|
OutputWebSearchServerToolItem$outboundSchema,
|
|
291
300
|
OutputCodeInterpreterServerToolItem$outboundSchema,
|
|
292
301
|
OutputFileSearchServerToolItem$outboundSchema,
|
|
@@ -7,7 +7,7 @@ import { PromptCacheBreakpoint, PromptCacheBreakpoint$Outbound } from "./promptc
|
|
|
7
7
|
*/
|
|
8
8
|
export type InputText = {
|
|
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
|
promptCacheBreakpoint?: PromptCacheBreakpoint | null | undefined;
|
|
13
13
|
text: string;
|
package/esm/models/intern.d.ts
CHANGED
|
@@ -44,10 +44,18 @@ export type Intern = {
|
|
|
44
44
|
* Vault the intern borrows from another intern, or null when it borrows none.
|
|
45
45
|
*/
|
|
46
46
|
attachedVaultId: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* Whether this key may change the intern (update, provision, suspend, delete). Present on list and retrieve; false while lifecycle writes are closed for the account.
|
|
49
|
+
*/
|
|
50
|
+
canEdit?: boolean | undefined;
|
|
47
51
|
/**
|
|
48
52
|
* ISO 8601 creation time.
|
|
49
53
|
*/
|
|
50
54
|
createdAt: string;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the user behind the key created the intern. Present on list and retrieve; absent for organization keys, which act for no user.
|
|
57
|
+
*/
|
|
58
|
+
createdByYou?: boolean | undefined;
|
|
51
59
|
/**
|
|
52
60
|
* Free-form description.
|
|
53
61
|
*/
|
|
@@ -56,6 +64,10 @@ export type Intern = {
|
|
|
56
64
|
* Public hostname the intern is reachable at, or null until provisioning has assigned one.
|
|
57
65
|
*/
|
|
58
66
|
hostname: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* SHA-256 of the intern icon, or null when it has none. Present on list and retrieve; fetch the bytes from `GET /api/v1/interns/{intern_id}/icon`.
|
|
69
|
+
*/
|
|
70
|
+
iconSha256?: string | null | undefined;
|
|
59
71
|
/**
|
|
60
72
|
* Intern id.
|
|
61
73
|
*/
|
package/esm/models/intern.js
CHANGED
|
@@ -39,9 +39,12 @@ export const InternStatus$inboundSchema = openEnums.inboundSchema(InternStatus);
|
|
|
39
39
|
/** @internal */
|
|
40
40
|
export const Intern$inboundSchema = z.object({
|
|
41
41
|
attached_vault_id: z.nullable(z.string()),
|
|
42
|
+
can_edit: z.boolean().optional(),
|
|
42
43
|
created_at: z.string(),
|
|
44
|
+
created_by_you: z.boolean().optional(),
|
|
43
45
|
description: z.nullable(z.string()),
|
|
44
46
|
hostname: z.nullable(z.string()),
|
|
47
|
+
icon_sha256: z.nullable(z.string()).optional(),
|
|
45
48
|
id: z.string(),
|
|
46
49
|
instructions: z.nullable(z.string()),
|
|
47
50
|
last_failure_message: z.nullable(z.string()),
|
|
@@ -55,7 +58,10 @@ export const Intern$inboundSchema = z.object({
|
|
|
55
58
|
}).transform((v) => {
|
|
56
59
|
return remap$(v, {
|
|
57
60
|
"attached_vault_id": "attachedVaultId",
|
|
61
|
+
"can_edit": "canEdit",
|
|
58
62
|
"created_at": "createdAt",
|
|
63
|
+
"created_by_you": "createdByYou",
|
|
64
|
+
"icon_sha256": "iconSha256",
|
|
59
65
|
"last_failure_message": "lastFailureMessage",
|
|
60
66
|
"updated_at": "updatedAt",
|
|
61
67
|
"vault_id": "vaultId",
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
/**
|
|
6
|
+
* `workspace` for a shared connection, `yours` for the key user's personal account, `shared` for a teammate's.
|
|
7
|
+
*/
|
|
8
|
+
export declare const InternConnectionScope: {
|
|
9
|
+
readonly Workspace: "workspace";
|
|
10
|
+
readonly Yours: "yours";
|
|
11
|
+
readonly Shared: "shared";
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* `workspace` for a shared connection, `yours` for the key user's personal account, `shared` for a teammate's.
|
|
15
|
+
*/
|
|
16
|
+
export type InternConnectionScope = OpenEnum<typeof InternConnectionScope>;
|
|
17
|
+
export type Account = {
|
|
18
|
+
/**
|
|
19
|
+
* Whose account it acts as, when known.
|
|
20
|
+
*/
|
|
21
|
+
actsAs: string | null;
|
|
22
|
+
isYourAccountLinked: boolean | null;
|
|
23
|
+
note: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* `workspace` for a shared connection, `yours` for the key user's personal account, `shared` for a teammate's.
|
|
26
|
+
*/
|
|
27
|
+
scope: InternConnectionScope;
|
|
28
|
+
};
|
|
29
|
+
export declare const Kind: {
|
|
30
|
+
readonly Slack: "slack";
|
|
31
|
+
readonly Github: "github";
|
|
32
|
+
readonly Google: "google";
|
|
33
|
+
readonly Mcp: "mcp";
|
|
34
|
+
};
|
|
35
|
+
export type Kind = OpenEnum<typeof Kind>;
|
|
36
|
+
/**
|
|
37
|
+
* `switched_off` for this intern, `disabled` for the whole workspace; null while on.
|
|
38
|
+
*/
|
|
39
|
+
export declare const OffReason: {
|
|
40
|
+
readonly SwitchedOff: "switched_off";
|
|
41
|
+
readonly Disabled: "disabled";
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* `switched_off` for this intern, `disabled` for the whole workspace; null while on.
|
|
45
|
+
*/
|
|
46
|
+
export type OffReason = OpenEnum<typeof OffReason>;
|
|
47
|
+
export type Server = {
|
|
48
|
+
host: string | null;
|
|
49
|
+
surface: string;
|
|
50
|
+
transport: string;
|
|
51
|
+
url: string | null;
|
|
52
|
+
};
|
|
53
|
+
export declare const StateEnum: {
|
|
54
|
+
readonly Connected: "connected";
|
|
55
|
+
readonly NeedsReconnect: "needs_reconnect";
|
|
56
|
+
readonly NotTested: "not_tested";
|
|
57
|
+
readonly Error: "error";
|
|
58
|
+
};
|
|
59
|
+
export type StateEnum = OpenEnum<typeof StateEnum>;
|
|
60
|
+
export type InternConnectionStatus = {
|
|
61
|
+
reason: string | null;
|
|
62
|
+
state: StateEnum;
|
|
63
|
+
};
|
|
64
|
+
export type InternConnection = {
|
|
65
|
+
account: Account;
|
|
66
|
+
/**
|
|
67
|
+
* Stable id: the credential id of an MCP server, else the kind (`slack`, `github`, `google`).
|
|
68
|
+
*/
|
|
69
|
+
id: string;
|
|
70
|
+
/**
|
|
71
|
+
* Whether the intern reaches it now.
|
|
72
|
+
*/
|
|
73
|
+
isEnabled: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Scoped to this intern rather than shared by the workspace.
|
|
76
|
+
*/
|
|
77
|
+
isInternOnly: boolean;
|
|
78
|
+
kind: Kind;
|
|
79
|
+
/**
|
|
80
|
+
* The name the intern's MCP config keys the server by; null when it is not an MCP server or is off.
|
|
81
|
+
*/
|
|
82
|
+
mcpServerName: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* Display name.
|
|
85
|
+
*/
|
|
86
|
+
name: string;
|
|
87
|
+
/**
|
|
88
|
+
* `switched_off` for this intern, `disabled` for the whole workspace; null while on.
|
|
89
|
+
*/
|
|
90
|
+
offReason: OffReason | null;
|
|
91
|
+
server: Server | null;
|
|
92
|
+
status: InternConnectionStatus;
|
|
93
|
+
/**
|
|
94
|
+
* Tools found by the last successful test.
|
|
95
|
+
*/
|
|
96
|
+
toolCount: number | null;
|
|
97
|
+
};
|
|
98
|
+
/** @internal */
|
|
99
|
+
export declare const InternConnectionScope$inboundSchema: z.ZodType<InternConnectionScope, unknown>;
|
|
100
|
+
/** @internal */
|
|
101
|
+
export declare const Account$inboundSchema: z.ZodType<Account, unknown>;
|
|
102
|
+
export declare function accountFromJSON(jsonString: string): SafeParseResult<Account, SDKValidationError>;
|
|
103
|
+
/** @internal */
|
|
104
|
+
export declare const Kind$inboundSchema: z.ZodType<Kind, unknown>;
|
|
105
|
+
/** @internal */
|
|
106
|
+
export declare const OffReason$inboundSchema: z.ZodType<OffReason, unknown>;
|
|
107
|
+
/** @internal */
|
|
108
|
+
export declare const Server$inboundSchema: z.ZodType<Server, unknown>;
|
|
109
|
+
export declare function serverFromJSON(jsonString: string): SafeParseResult<Server, SDKValidationError>;
|
|
110
|
+
/** @internal */
|
|
111
|
+
export declare const StateEnum$inboundSchema: z.ZodType<StateEnum, unknown>;
|
|
112
|
+
/** @internal */
|
|
113
|
+
export declare const InternConnectionStatus$inboundSchema: z.ZodType<InternConnectionStatus, unknown>;
|
|
114
|
+
export declare function internConnectionStatusFromJSON(jsonString: string): SafeParseResult<InternConnectionStatus, SDKValidationError>;
|
|
115
|
+
/** @internal */
|
|
116
|
+
export declare const InternConnection$inboundSchema: z.ZodType<InternConnection, unknown>;
|
|
117
|
+
export declare function internConnectionFromJSON(jsonString: string): SafeParseResult<InternConnection, SDKValidationError>;
|
|
118
|
+
//# sourceMappingURL=internconnection.d.ts.map
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: c1d0989d7937
|
|
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 * as openEnums from "../types/enums.js";
|
|
9
|
+
/**
|
|
10
|
+
* `workspace` for a shared connection, `yours` for the key user's personal account, `shared` for a teammate's.
|
|
11
|
+
*/
|
|
12
|
+
export const InternConnectionScope = {
|
|
13
|
+
Workspace: "workspace",
|
|
14
|
+
Yours: "yours",
|
|
15
|
+
Shared: "shared",
|
|
16
|
+
};
|
|
17
|
+
export const Kind = {
|
|
18
|
+
Slack: "slack",
|
|
19
|
+
Github: "github",
|
|
20
|
+
Google: "google",
|
|
21
|
+
Mcp: "mcp",
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* `switched_off` for this intern, `disabled` for the whole workspace; null while on.
|
|
25
|
+
*/
|
|
26
|
+
export const OffReason = {
|
|
27
|
+
SwitchedOff: "switched_off",
|
|
28
|
+
Disabled: "disabled",
|
|
29
|
+
};
|
|
30
|
+
export const StateEnum = {
|
|
31
|
+
Connected: "connected",
|
|
32
|
+
NeedsReconnect: "needs_reconnect",
|
|
33
|
+
NotTested: "not_tested",
|
|
34
|
+
Error: "error",
|
|
35
|
+
};
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const InternConnectionScope$inboundSchema = openEnums.inboundSchema(InternConnectionScope);
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const Account$inboundSchema = z.object({
|
|
40
|
+
acts_as: z.nullable(z.string()),
|
|
41
|
+
is_your_account_linked: z.nullable(z.boolean()),
|
|
42
|
+
note: z.nullable(z.string()),
|
|
43
|
+
scope: InternConnectionScope$inboundSchema,
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return remap$(v, {
|
|
46
|
+
"acts_as": "actsAs",
|
|
47
|
+
"is_your_account_linked": "isYourAccountLinked",
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
export function accountFromJSON(jsonString) {
|
|
51
|
+
return safeParse(jsonString, (x) => Account$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Account' from JSON`);
|
|
52
|
+
}
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const Kind$inboundSchema = openEnums
|
|
55
|
+
.inboundSchema(Kind);
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const OffReason$inboundSchema = openEnums
|
|
58
|
+
.inboundSchema(OffReason);
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const Server$inboundSchema = z.object({
|
|
61
|
+
host: z.nullable(z.string()),
|
|
62
|
+
surface: z.string(),
|
|
63
|
+
transport: z.string(),
|
|
64
|
+
url: z.nullable(z.string()),
|
|
65
|
+
});
|
|
66
|
+
export function serverFromJSON(jsonString) {
|
|
67
|
+
return safeParse(jsonString, (x) => Server$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Server' from JSON`);
|
|
68
|
+
}
|
|
69
|
+
/** @internal */
|
|
70
|
+
export const StateEnum$inboundSchema = openEnums
|
|
71
|
+
.inboundSchema(StateEnum);
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const InternConnectionStatus$inboundSchema = z.object({
|
|
74
|
+
reason: z.nullable(z.string()),
|
|
75
|
+
state: StateEnum$inboundSchema,
|
|
76
|
+
});
|
|
77
|
+
export function internConnectionStatusFromJSON(jsonString) {
|
|
78
|
+
return safeParse(jsonString, (x) => InternConnectionStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InternConnectionStatus' from JSON`);
|
|
79
|
+
}
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const InternConnection$inboundSchema = z.object({
|
|
82
|
+
account: z.lazy(() => Account$inboundSchema),
|
|
83
|
+
id: z.string(),
|
|
84
|
+
is_enabled: z.boolean(),
|
|
85
|
+
is_intern_only: z.boolean(),
|
|
86
|
+
kind: Kind$inboundSchema,
|
|
87
|
+
mcp_server_name: z.nullable(z.string()),
|
|
88
|
+
name: z.string(),
|
|
89
|
+
off_reason: z.nullable(OffReason$inboundSchema),
|
|
90
|
+
server: z.nullable(z.lazy(() => Server$inboundSchema)),
|
|
91
|
+
status: z.lazy(() => InternConnectionStatus$inboundSchema),
|
|
92
|
+
tool_count: z.nullable(z.int()),
|
|
93
|
+
}).transform((v) => {
|
|
94
|
+
return remap$(v, {
|
|
95
|
+
"is_enabled": "isEnabled",
|
|
96
|
+
"is_intern_only": "isInternOnly",
|
|
97
|
+
"mcp_server_name": "mcpServerName",
|
|
98
|
+
"off_reason": "offReason",
|
|
99
|
+
"tool_count": "toolCount",
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
export function internConnectionFromJSON(jsonString) {
|
|
103
|
+
return safeParse(jsonString, (x) => InternConnection$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InternConnection' from JSON`);
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=internconnection.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
import { InternConnection } from "./internconnection.js";
|
|
5
|
+
export type InternConnectionList = {
|
|
6
|
+
data: Array<InternConnection>;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const InternConnectionList$inboundSchema: z.ZodType<InternConnectionList, unknown>;
|
|
10
|
+
export declare function internConnectionListFromJSON(jsonString: string): SafeParseResult<InternConnectionList, SDKValidationError>;
|
|
11
|
+
//# sourceMappingURL=internconnectionlist.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e3ed2abef547
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { InternConnection$inboundSchema, } from "./internconnection.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const InternConnectionList$inboundSchema = z.object({
|
|
10
|
+
data: z.array(InternConnection$inboundSchema),
|
|
11
|
+
});
|
|
12
|
+
export function internConnectionListFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => InternConnectionList$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InternConnectionList' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=internconnectionlist.js.map
|
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
export type Viewer = {
|
|
5
|
+
/**
|
|
6
|
+
* The caller's Ori principals on this intern: `clerk:<user>`, and, when the grant carries `vault:read`, `slack:<team>:<user>` for each Slack account they linked to it. A session started by one of them in a one-to-one Slack DM is the caller's to see.
|
|
7
|
+
*/
|
|
8
|
+
principals: Array<string>;
|
|
9
|
+
};
|
|
4
10
|
/**
|
|
5
|
-
* The intern daemon's origin
|
|
11
|
+
* The intern daemon's origin, the bearer `ori tui --host` sends to it as `ORI_DAEMON_TOKEN`, and who the caller is on the intern.
|
|
6
12
|
*/
|
|
7
13
|
export type InternDaemonAccess = {
|
|
8
14
|
origin: string;
|
|
9
15
|
token: string;
|
|
16
|
+
viewer: Viewer;
|
|
10
17
|
};
|
|
11
18
|
/** @internal */
|
|
19
|
+
export declare const Viewer$inboundSchema: z.ZodType<Viewer, unknown>;
|
|
20
|
+
export declare function viewerFromJSON(jsonString: string): SafeParseResult<Viewer, SDKValidationError>;
|
|
21
|
+
/** @internal */
|
|
12
22
|
export declare const InternDaemonAccess$inboundSchema: z.ZodType<InternDaemonAccess, unknown>;
|
|
13
23
|
export declare function internDaemonAccessFromJSON(jsonString: string): SafeParseResult<InternDaemonAccess, SDKValidationError>;
|
|
14
24
|
//# sourceMappingURL=interndaemonaccess.d.ts.map
|
|
@@ -5,9 +5,17 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
7
|
/** @internal */
|
|
8
|
+
export const Viewer$inboundSchema = z.object({
|
|
9
|
+
principals: z.array(z.string()),
|
|
10
|
+
});
|
|
11
|
+
export function viewerFromJSON(jsonString) {
|
|
12
|
+
return safeParse(jsonString, (x) => Viewer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Viewer' from JSON`);
|
|
13
|
+
}
|
|
14
|
+
/** @internal */
|
|
8
15
|
export const InternDaemonAccess$inboundSchema = z.object({
|
|
9
16
|
origin: z.string(),
|
|
10
17
|
token: z.string(),
|
|
18
|
+
viewer: z.lazy(() => Viewer$inboundSchema),
|
|
11
19
|
});
|
|
12
20
|
export function internDaemonAccessFromJSON(jsonString) {
|
|
13
21
|
return safeParse(jsonString, (x) => InternDaemonAccess$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InternDaemonAccess' from JSON`);
|
|
@@ -4,6 +4,10 @@ export type JevRouterPlugin = {
|
|
|
4
4
|
* Alias of `models`, matching the auto-router field name. Entries from both fields are combined.
|
|
5
5
|
*/
|
|
6
6
|
allowedModels?: Array<string> | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Select low, medium, high, or a cost tier configured by the operator. Overrides the live-config tier and replaces the shared routing policy with that tier. Omit to use the live configuration. Model exclusions and the router kill switch still apply.
|
|
9
|
+
*/
|
|
10
|
+
costTier?: string | undefined;
|
|
7
11
|
/**
|
|
8
12
|
* Remove these models from the router. Each entry is a model slug or a wildcard pattern (e.g. "xiaomi/*"). A `~author/family-latest` alias matches every revision of that family. Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. Applied after `models`, so an excluded pattern always wins over an included one; when the lists leave no model the request can use, it fails with 404 rather than routing outside them.
|
|
9
13
|
*/
|
|
@@ -17,6 +21,7 @@ export type JevRouterPlugin = {
|
|
|
17
21
|
/** @internal */
|
|
18
22
|
export type JevRouterPlugin$Outbound = {
|
|
19
23
|
allowed_models?: Array<string> | undefined;
|
|
24
|
+
cost_tier?: string | undefined;
|
|
20
25
|
excluded_models?: Array<string> | undefined;
|
|
21
26
|
id: "jev-router";
|
|
22
27
|
models?: Array<string> | undefined;
|
|
@@ -7,12 +7,14 @@ import { remap as remap$ } from "../lib/primitives.js";
|
|
|
7
7
|
/** @internal */
|
|
8
8
|
export const JevRouterPlugin$outboundSchema = z.object({
|
|
9
9
|
allowedModels: z.array(z.string()).optional(),
|
|
10
|
+
costTier: z.string().optional(),
|
|
10
11
|
excludedModels: z.array(z.string()).optional(),
|
|
11
12
|
id: z.literal("jev-router"),
|
|
12
13
|
models: z.array(z.string()).optional(),
|
|
13
14
|
}).transform((v) => {
|
|
14
15
|
return remap$(v, {
|
|
15
16
|
allowedModels: "allowed_models",
|
|
17
|
+
costTier: "cost_tier",
|
|
16
18
|
excludedModels: "excluded_models",
|
|
17
19
|
});
|
|
18
20
|
});
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
/**
|
|
6
|
+
* UTC window the spend is counted over (weeks start Monday); null for a lifetime budget that never resets.
|
|
7
|
+
*/
|
|
8
|
+
export declare const KeyBudgetResetInterval: {
|
|
9
|
+
readonly Daily: "daily";
|
|
10
|
+
readonly Weekly: "weekly";
|
|
11
|
+
readonly Monthly: "monthly";
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* UTC window the spend is counted over (weeks start Monday); null for a lifetime budget that never resets.
|
|
15
|
+
*/
|
|
16
|
+
export type KeyBudgetResetInterval = OpenEnum<typeof KeyBudgetResetInterval>;
|
|
17
|
+
/**
|
|
18
|
+
* Which budget layer this is, in the order enforcement checks them: the workspace default guardrail against the member aggregate (`workspace_default_member`) and against this key (`workspace_default_key`), the member guardrail (`member`), the API key guardrail (`api_key`), a workspace budget (`workspace`), or the key's own limit (`key_limit`).
|
|
19
|
+
*/
|
|
20
|
+
export declare const KeyBudgetScope: {
|
|
21
|
+
readonly WorkspaceDefaultMember: "workspace_default_member";
|
|
22
|
+
readonly WorkspaceDefaultKey: "workspace_default_key";
|
|
23
|
+
readonly Member: "member";
|
|
24
|
+
readonly ApiKey: "api_key";
|
|
25
|
+
readonly Workspace: "workspace";
|
|
26
|
+
readonly KeyLimit: "key_limit";
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Which budget layer this is, in the order enforcement checks them: the workspace default guardrail against the member aggregate (`workspace_default_member`) and against this key (`workspace_default_key`), the member guardrail (`member`), the API key guardrail (`api_key`), a workspace budget (`workspace`), or the key's own limit (`key_limit`).
|
|
30
|
+
*/
|
|
31
|
+
export type KeyBudgetScope = OpenEnum<typeof KeyBudgetScope>;
|
|
32
|
+
/**
|
|
33
|
+
* One budget layer that applies to requests made with this key, with the spend enforcement compares against it.
|
|
34
|
+
*/
|
|
35
|
+
export type KeyBudget = {
|
|
36
|
+
/**
|
|
37
|
+
* ID of the workspace budget for the `workspace` scope; null for other scopes.
|
|
38
|
+
*/
|
|
39
|
+
budgetId: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* ID of the guardrail that carries this budget; null for other scopes.
|
|
42
|
+
*/
|
|
43
|
+
guardrailId: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Whether external BYOK inference spend counts toward this budget.
|
|
46
|
+
*/
|
|
47
|
+
includeByok: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Budget limit in USD for the current window.
|
|
50
|
+
*/
|
|
51
|
+
limitUsd: number;
|
|
52
|
+
/**
|
|
53
|
+
* `limit_usd - spend_usd`. Zero or negative means this layer rejects requests with a 403 until it resets.
|
|
54
|
+
*/
|
|
55
|
+
remainingUsd: number;
|
|
56
|
+
/**
|
|
57
|
+
* UTC window the spend is counted over (weeks start Monday); null for a lifetime budget that never resets.
|
|
58
|
+
*/
|
|
59
|
+
resetInterval: KeyBudgetResetInterval | null;
|
|
60
|
+
/**
|
|
61
|
+
* ISO 8601 UTC instant at which the window rolls over and spend returns to zero; null for a lifetime budget.
|
|
62
|
+
*/
|
|
63
|
+
resetsAt: Date | null;
|
|
64
|
+
/**
|
|
65
|
+
* Which budget layer this is, in the order enforcement checks them: the workspace default guardrail against the member aggregate (`workspace_default_member`) and against this key (`workspace_default_key`), the member guardrail (`member`), the API key guardrail (`api_key`), a workspace budget (`workspace`), or the key's own limit (`key_limit`).
|
|
66
|
+
*/
|
|
67
|
+
scope: KeyBudgetScope;
|
|
68
|
+
/**
|
|
69
|
+
* Spend in USD that enforcement counts against this limit in the current window: the member aggregate for member-scoped layers, otherwise this key or workspace.
|
|
70
|
+
*/
|
|
71
|
+
spendUsd: number;
|
|
72
|
+
};
|
|
73
|
+
/** @internal */
|
|
74
|
+
export declare const KeyBudgetResetInterval$inboundSchema: z.ZodType<KeyBudgetResetInterval, unknown>;
|
|
75
|
+
/** @internal */
|
|
76
|
+
export declare const KeyBudgetScope$inboundSchema: z.ZodType<KeyBudgetScope, unknown>;
|
|
77
|
+
/** @internal */
|
|
78
|
+
export declare const KeyBudget$inboundSchema: z.ZodType<KeyBudget, unknown>;
|
|
79
|
+
export declare function keyBudgetFromJSON(jsonString: string): SafeParseResult<KeyBudget, SDKValidationError>;
|
|
80
|
+
//# sourceMappingURL=keybudget.d.ts.map
|