@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
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b86a8732f4cd
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const ListInternConnectionsRequest$outboundSchema = z.object({
|
|
10
|
+
httpReferer: z.string().optional(),
|
|
11
|
+
appTitle: z.string().optional(),
|
|
12
|
+
appCategories: z.string().optional(),
|
|
13
|
+
internId: z.string(),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
httpReferer: "HTTP-Referer",
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
export function listInternConnectionsRequestToJSON(listInternConnectionsRequest) {
|
|
20
|
+
return JSON.stringify(ListInternConnectionsRequest$outboundSchema.parse(listInternConnectionsRequest));
|
|
21
|
+
}
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const ListInternConnectionsData$inboundSchema = z.object({
|
|
24
|
+
key: z.string(),
|
|
25
|
+
});
|
|
26
|
+
export function listInternConnectionsDataFromJSON(jsonString) {
|
|
27
|
+
return safeParse(jsonString, (x) => ListInternConnectionsData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListInternConnectionsData' from JSON`);
|
|
28
|
+
}
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const ListInternConnectionsResponse$inboundSchema = z.object({
|
|
31
|
+
data: z.array(z.lazy(() => ListInternConnectionsData$inboundSchema)),
|
|
32
|
+
});
|
|
33
|
+
export function listInternConnectionsResponseFromJSON(jsonString) {
|
|
34
|
+
return safeParse(jsonString, (x) => ListInternConnectionsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListInternConnectionsResponse' from JSON`);
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=listinternconnections.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
5
|
import * as models from "../index.js";
|
|
@@ -26,6 +27,27 @@ export type ListModelsUserGlobals = {
|
|
|
26
27
|
export type ListModelsUserSecurity = {
|
|
27
28
|
bearer: string;
|
|
28
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.
|
|
32
|
+
*/
|
|
33
|
+
export declare const ListModelsUserSort: {
|
|
34
|
+
readonly MostPopular: "most-popular";
|
|
35
|
+
readonly Newest: "newest";
|
|
36
|
+
readonly TopWeekly: "top-weekly";
|
|
37
|
+
readonly PricingLowToHigh: "pricing-low-to-high";
|
|
38
|
+
readonly PricingHighToLow: "pricing-high-to-low";
|
|
39
|
+
readonly ContextHighToLow: "context-high-to-low";
|
|
40
|
+
readonly ThroughputHighToLow: "throughput-high-to-low";
|
|
41
|
+
readonly LatencyLowToHigh: "latency-low-to-high";
|
|
42
|
+
readonly IntelligenceHighToLow: "intelligence-high-to-low";
|
|
43
|
+
readonly CodingHighToLow: "coding-high-to-low";
|
|
44
|
+
readonly AgenticHighToLow: "agentic-high-to-low";
|
|
45
|
+
readonly DesignArenaEloHighToLow: "design-arena-elo-high-to-low";
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.
|
|
49
|
+
*/
|
|
50
|
+
export type ListModelsUserSort = OpenEnum<typeof ListModelsUserSort>;
|
|
29
51
|
export type ListModelsUserRequest = {
|
|
30
52
|
/**
|
|
31
53
|
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
@@ -58,6 +80,10 @@ export type ListModelsUserRequest = {
|
|
|
58
80
|
* Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or "all" to include all models. Defaults to "text".
|
|
59
81
|
*/
|
|
60
82
|
outputModalities?: string | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.
|
|
85
|
+
*/
|
|
86
|
+
sort?: ListModelsUserSort | undefined;
|
|
61
87
|
};
|
|
62
88
|
export type ListModelsUserResponse = {
|
|
63
89
|
result: models.ModelsListResponse;
|
|
@@ -70,6 +96,8 @@ export type ListModelsUserSecurity$Outbound = {
|
|
|
70
96
|
export declare const ListModelsUserSecurity$outboundSchema: z.ZodType<ListModelsUserSecurity$Outbound, ListModelsUserSecurity>;
|
|
71
97
|
export declare function listModelsUserSecurityToJSON(listModelsUserSecurity: ListModelsUserSecurity): string;
|
|
72
98
|
/** @internal */
|
|
99
|
+
export declare const ListModelsUserSort$outboundSchema: z.ZodType<string, ListModelsUserSort>;
|
|
100
|
+
/** @internal */
|
|
73
101
|
export type ListModelsUserRequest$Outbound = {
|
|
74
102
|
"HTTP-Referer"?: string | undefined;
|
|
75
103
|
appTitle?: string | undefined;
|
|
@@ -77,6 +105,7 @@ export type ListModelsUserRequest$Outbound = {
|
|
|
77
105
|
offset: number | null;
|
|
78
106
|
limit: number;
|
|
79
107
|
output_modalities?: string | undefined;
|
|
108
|
+
sort?: string | undefined;
|
|
80
109
|
};
|
|
81
110
|
/** @internal */
|
|
82
111
|
export declare const ListModelsUserRequest$outboundSchema: z.ZodType<ListModelsUserRequest$Outbound, ListModelsUserRequest>;
|
|
@@ -5,7 +5,25 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
9
|
import { ModelsListResponse$inboundSchema as models_ModelsListResponse$inboundSchema } from "../modelslistresponse.js";
|
|
10
|
+
/**
|
|
11
|
+
* Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.
|
|
12
|
+
*/
|
|
13
|
+
export const ListModelsUserSort = {
|
|
14
|
+
MostPopular: "most-popular",
|
|
15
|
+
Newest: "newest",
|
|
16
|
+
TopWeekly: "top-weekly",
|
|
17
|
+
PricingLowToHigh: "pricing-low-to-high",
|
|
18
|
+
PricingHighToLow: "pricing-high-to-low",
|
|
19
|
+
ContextHighToLow: "context-high-to-low",
|
|
20
|
+
ThroughputHighToLow: "throughput-high-to-low",
|
|
21
|
+
LatencyLowToHigh: "latency-low-to-high",
|
|
22
|
+
IntelligenceHighToLow: "intelligence-high-to-low",
|
|
23
|
+
CodingHighToLow: "coding-high-to-low",
|
|
24
|
+
AgenticHighToLow: "agentic-high-to-low",
|
|
25
|
+
DesignArenaEloHighToLow: "design-arena-elo-high-to-low",
|
|
26
|
+
};
|
|
9
27
|
/** @internal */
|
|
10
28
|
export const ListModelsUserSecurity$outboundSchema = z.object({
|
|
11
29
|
bearer: z.string(),
|
|
@@ -14,6 +32,8 @@ export function listModelsUserSecurityToJSON(listModelsUserSecurity) {
|
|
|
14
32
|
return JSON.stringify(ListModelsUserSecurity$outboundSchema.parse(listModelsUserSecurity));
|
|
15
33
|
}
|
|
16
34
|
/** @internal */
|
|
35
|
+
export const ListModelsUserSort$outboundSchema = openEnums.outboundSchema(ListModelsUserSort);
|
|
36
|
+
/** @internal */
|
|
17
37
|
export const ListModelsUserRequest$outboundSchema = z.object({
|
|
18
38
|
httpReferer: z.string().optional(),
|
|
19
39
|
appTitle: z.string().optional(),
|
|
@@ -21,6 +41,7 @@ export const ListModelsUserRequest$outboundSchema = z.object({
|
|
|
21
41
|
offset: z.nullable(z.int().default(0)),
|
|
22
42
|
limit: z.int().default(500),
|
|
23
43
|
outputModalities: z.string().optional(),
|
|
44
|
+
sort: ListModelsUserSort$outboundSchema.optional(),
|
|
24
45
|
}).transform((v) => {
|
|
25
46
|
return remap$(v, {
|
|
26
47
|
httpReferer: "HTTP-Referer",
|
|
@@ -0,0 +1,72 @@
|
|
|
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 * as models from "../index.js";
|
|
5
|
+
export type SignInternDaemonAccessRequestGlobals = {
|
|
6
|
+
/**
|
|
7
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* This is used to track API usage per application.
|
|
11
|
+
*/
|
|
12
|
+
httpReferer?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
*/
|
|
18
|
+
appTitle?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
*/
|
|
24
|
+
appCategories?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
export type SignInternDaemonAccessRequestRequest = {
|
|
27
|
+
/**
|
|
28
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* This is used to track API usage per application.
|
|
32
|
+
*/
|
|
33
|
+
httpReferer?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
*/
|
|
39
|
+
appTitle?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
*/
|
|
45
|
+
appCategories?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* ID of an intern visible to the authenticated API key.
|
|
48
|
+
*/
|
|
49
|
+
internId: string;
|
|
50
|
+
signInternDaemonRequest: models.SignInternDaemonRequest;
|
|
51
|
+
};
|
|
52
|
+
export type SignInternDaemonAccessRequestResponse = {
|
|
53
|
+
headers: {
|
|
54
|
+
[k: string]: Array<string>;
|
|
55
|
+
};
|
|
56
|
+
result: models.SignInternDaemonResponse;
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type SignInternDaemonAccessRequestRequest$Outbound = {
|
|
60
|
+
"HTTP-Referer"?: string | undefined;
|
|
61
|
+
appTitle?: string | undefined;
|
|
62
|
+
appCategories?: string | undefined;
|
|
63
|
+
internId: string;
|
|
64
|
+
SignInternDaemonRequest: models.SignInternDaemonRequest$Outbound;
|
|
65
|
+
};
|
|
66
|
+
/** @internal */
|
|
67
|
+
export declare const SignInternDaemonAccessRequestRequest$outboundSchema: z.ZodType<SignInternDaemonAccessRequestRequest$Outbound, SignInternDaemonAccessRequestRequest>;
|
|
68
|
+
export declare function signInternDaemonAccessRequestRequestToJSON(signInternDaemonAccessRequestRequest: SignInternDaemonAccessRequestRequest): string;
|
|
69
|
+
/** @internal */
|
|
70
|
+
export declare const SignInternDaemonAccessRequestResponse$inboundSchema: z.ZodType<SignInternDaemonAccessRequestResponse, unknown>;
|
|
71
|
+
export declare function signInternDaemonAccessRequestResponseFromJSON(jsonString: string): SafeParseResult<SignInternDaemonAccessRequestResponse, SDKValidationError>;
|
|
72
|
+
//# sourceMappingURL=signinterndaemonaccessrequest.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5b44549b1bcd
|
|
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 { SignInternDaemonRequest$outboundSchema as models_SignInternDaemonRequest$outboundSchema } from "../signinterndaemonrequest.js"; import { SignInternDaemonResponse$inboundSchema as models_SignInternDaemonResponse$inboundSchema } from "../signinterndaemonresponse.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const SignInternDaemonAccessRequestRequest$outboundSchema = z.object({
|
|
11
|
+
httpReferer: z.string().optional(),
|
|
12
|
+
appTitle: z.string().optional(),
|
|
13
|
+
appCategories: z.string().optional(),
|
|
14
|
+
internId: z.string(),
|
|
15
|
+
signInternDaemonRequest: models_SignInternDaemonRequest$outboundSchema,
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
httpReferer: "HTTP-Referer",
|
|
19
|
+
signInternDaemonRequest: "SignInternDaemonRequest",
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
export function signInternDaemonAccessRequestRequestToJSON(signInternDaemonAccessRequestRequest) {
|
|
23
|
+
return JSON.stringify(SignInternDaemonAccessRequestRequest$outboundSchema.parse(signInternDaemonAccessRequestRequest));
|
|
24
|
+
}
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const SignInternDaemonAccessRequestResponse$inboundSchema = z.object({
|
|
27
|
+
Headers: z.record(z.string(), z.array(z.string())).default({}),
|
|
28
|
+
Result: models_SignInternDaemonResponse$inboundSchema,
|
|
29
|
+
}).transform((v) => {
|
|
30
|
+
return remap$(v, {
|
|
31
|
+
"Headers": "headers",
|
|
32
|
+
"Result": "result",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
export function signInternDaemonAccessRequestResponseFromJSON(jsonString) {
|
|
36
|
+
return safeParse(jsonString, (x) => SignInternDaemonAccessRequestResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignInternDaemonAccessRequestResponse' from JSON`);
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=signinterndaemonaccessrequest.js.map
|
|
@@ -0,0 +1,72 @@
|
|
|
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 * as models from "../index.js";
|
|
5
|
+
export type SignInternDaemonRequestGlobals = {
|
|
6
|
+
/**
|
|
7
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* This is used to track API usage per application.
|
|
11
|
+
*/
|
|
12
|
+
httpReferer?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
*/
|
|
18
|
+
appTitle?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
*/
|
|
24
|
+
appCategories?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
export type SignInternDaemonRequestRequest = {
|
|
27
|
+
/**
|
|
28
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* This is used to track API usage per application.
|
|
32
|
+
*/
|
|
33
|
+
httpReferer?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
*/
|
|
39
|
+
appTitle?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
*/
|
|
45
|
+
appCategories?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* ID of an intern visible to the authenticated API key.
|
|
48
|
+
*/
|
|
49
|
+
internId: string;
|
|
50
|
+
signInternDaemonRequest: models.SignInternDaemonRequest;
|
|
51
|
+
};
|
|
52
|
+
export type SignInternDaemonRequestResponse = {
|
|
53
|
+
headers: {
|
|
54
|
+
[k: string]: Array<string>;
|
|
55
|
+
};
|
|
56
|
+
result: models.SignInternDaemonResponse;
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type SignInternDaemonRequestRequest$Outbound = {
|
|
60
|
+
"HTTP-Referer"?: string | undefined;
|
|
61
|
+
appTitle?: string | undefined;
|
|
62
|
+
appCategories?: string | undefined;
|
|
63
|
+
internId: string;
|
|
64
|
+
SignInternDaemonRequest: models.SignInternDaemonRequest$Outbound;
|
|
65
|
+
};
|
|
66
|
+
/** @internal */
|
|
67
|
+
export declare const SignInternDaemonRequestRequest$outboundSchema: z.ZodType<SignInternDaemonRequestRequest$Outbound, SignInternDaemonRequestRequest>;
|
|
68
|
+
export declare function signInternDaemonRequestRequestToJSON(signInternDaemonRequestRequest: SignInternDaemonRequestRequest): string;
|
|
69
|
+
/** @internal */
|
|
70
|
+
export declare const SignInternDaemonRequestResponse$inboundSchema: z.ZodType<SignInternDaemonRequestResponse, unknown>;
|
|
71
|
+
export declare function signInternDaemonRequestResponseFromJSON(jsonString: string): SafeParseResult<SignInternDaemonRequestResponse, SDKValidationError>;
|
|
72
|
+
//# sourceMappingURL=signinterndaemonrequest.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: fa6bfb2ce12b
|
|
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 { SignInternDaemonRequest$outboundSchema as models_SignInternDaemonRequest$outboundSchema } from "../signinterndaemonrequest.js"; import { SignInternDaemonResponse$inboundSchema as models_SignInternDaemonResponse$inboundSchema } from "../signinterndaemonresponse.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const SignInternDaemonRequestRequest$outboundSchema = z.object({
|
|
11
|
+
httpReferer: z.string().optional(),
|
|
12
|
+
appTitle: z.string().optional(),
|
|
13
|
+
appCategories: z.string().optional(),
|
|
14
|
+
internId: z.string(),
|
|
15
|
+
signInternDaemonRequest: models_SignInternDaemonRequest$outboundSchema,
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
httpReferer: "HTTP-Referer",
|
|
19
|
+
signInternDaemonRequest: "SignInternDaemonRequest",
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
export function signInternDaemonRequestRequestToJSON(signInternDaemonRequestRequest) {
|
|
23
|
+
return JSON.stringify(SignInternDaemonRequestRequest$outboundSchema.parse(signInternDaemonRequestRequest));
|
|
24
|
+
}
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const SignInternDaemonRequestResponse$inboundSchema = z.object({
|
|
27
|
+
Headers: z.record(z.string(), z.array(z.string())).default({}),
|
|
28
|
+
Result: models_SignInternDaemonResponse$inboundSchema,
|
|
29
|
+
}).transform((v) => {
|
|
30
|
+
return remap$(v, {
|
|
31
|
+
"Headers": "headers",
|
|
32
|
+
"Result": "result",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
export function signInternDaemonRequestResponseFromJSON(jsonString) {
|
|
36
|
+
return safeParse(jsonString, (x) => SignInternDaemonRequestResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignInternDaemonRequestResponse' from JSON`);
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=signinterndaemonrequest.js.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import * as models from "../index.js";
|
|
3
|
+
export type UpdateExternalUserGlobals = {
|
|
4
|
+
/**
|
|
5
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* This is used to track API usage per application.
|
|
9
|
+
*/
|
|
10
|
+
httpReferer?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
*/
|
|
16
|
+
appTitle?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
*/
|
|
22
|
+
appCategories?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
export type UpdateExternalUserRequest = {
|
|
25
|
+
/**
|
|
26
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* This is used to track API usage per application.
|
|
30
|
+
*/
|
|
31
|
+
httpReferer?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
*/
|
|
37
|
+
appTitle?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
*/
|
|
43
|
+
appCategories?: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Immutable case-sensitive tracking string supplied as user on inference requests or as external.user on API keys: 1 to 512 characters, well-formed Unicode, no NUL, no surrounding whitespace. URL-encode it in resource paths; an ID of `.` or `..` cannot be addressed by path, so look it up with the list filter.
|
|
46
|
+
*/
|
|
47
|
+
user: string;
|
|
48
|
+
updateExternalUserRequest: models.UpdateExternalUserRequest;
|
|
49
|
+
};
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type UpdateExternalUserRequest$Outbound = {
|
|
52
|
+
"HTTP-Referer"?: string | undefined;
|
|
53
|
+
appTitle?: string | undefined;
|
|
54
|
+
appCategories?: string | undefined;
|
|
55
|
+
user: string;
|
|
56
|
+
UpdateExternalUserRequest: models.UpdateExternalUserRequest$Outbound;
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
export declare const UpdateExternalUserRequest$outboundSchema: z.ZodType<UpdateExternalUserRequest$Outbound, UpdateExternalUserRequest>;
|
|
60
|
+
export declare function updateExternalUserRequestToJSON(updateExternalUserRequest: UpdateExternalUserRequest): string;
|
|
61
|
+
//# sourceMappingURL=updateexternaluser.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 89e743bb6fb7
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { UpdateExternalUserRequest$outboundSchema as models_UpdateExternalUserRequest$outboundSchema } from "../updateexternaluserrequest.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const UpdateExternalUserRequest$outboundSchema = z.object({
|
|
10
|
+
httpReferer: z.string().optional(),
|
|
11
|
+
appTitle: z.string().optional(),
|
|
12
|
+
appCategories: z.string().optional(),
|
|
13
|
+
user: z.string(),
|
|
14
|
+
updateExternalUserRequest: models_UpdateExternalUserRequest$outboundSchema,
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
httpReferer: "HTTP-Referer",
|
|
18
|
+
updateExternalUserRequest: "UpdateExternalUserRequest",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function updateExternalUserRequestToJSON(updateExternalUserRequest) {
|
|
22
|
+
return JSON.stringify(UpdateExternalUserRequest$outboundSchema.parse(updateExternalUserRequest));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=updateexternaluser.js.map
|
|
@@ -56,6 +56,10 @@ export type UpdateKeysRequestBody = {
|
|
|
56
56
|
* New name for the API key
|
|
57
57
|
*/
|
|
58
58
|
name?: string | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Move the API key to this workspace. The key keeps its value; guardrail selections move with it, while other workspace-scoped settings (presets, BYOK keys, broadcast destinations, routing rules) do not. Sending the key's current workspace is a no-op.
|
|
61
|
+
*/
|
|
62
|
+
workspaceId?: string | undefined;
|
|
59
63
|
};
|
|
60
64
|
export type UpdateKeysRequest = {
|
|
61
65
|
/**
|
|
@@ -198,6 +202,7 @@ export type UpdateKeysRequestBody$Outbound = {
|
|
|
198
202
|
limit?: number | null | undefined;
|
|
199
203
|
limit_reset?: string | null | undefined;
|
|
200
204
|
name?: string | undefined;
|
|
205
|
+
workspace_id?: string | undefined;
|
|
201
206
|
};
|
|
202
207
|
/** @internal */
|
|
203
208
|
export declare const UpdateKeysRequestBody$outboundSchema: z.ZodType<UpdateKeysRequestBody$Outbound, UpdateKeysRequestBody>;
|
|
@@ -23,10 +23,12 @@ export const UpdateKeysRequestBody$outboundSchema = z.object({
|
|
|
23
23
|
limit: z.nullable(z.number()).optional(),
|
|
24
24
|
limitReset: z.nullable(UpdateKeysLimitReset$outboundSchema).optional(),
|
|
25
25
|
name: z.string().optional(),
|
|
26
|
+
workspaceId: z.string().optional(),
|
|
26
27
|
}).transform((v) => {
|
|
27
28
|
return remap$(v, {
|
|
28
29
|
includeByokInLimit: "include_byok_in_limit",
|
|
29
30
|
limitReset: "limit_reset",
|
|
31
|
+
workspaceId: "workspace_id",
|
|
30
32
|
});
|
|
31
33
|
});
|
|
32
34
|
export function updateKeysRequestBodyToJSON(updateKeysRequestBody) {
|
|
@@ -18,7 +18,8 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
|
18
18
|
import { ORAnthropicBashToolResult } from "./oranthropicbashtoolresult.js";
|
|
19
19
|
import { ORAnthropicServerToolUseBlock } from "./oranthropicservertooluseblock.js";
|
|
20
20
|
import { ORAnthropicShellToolResult } from "./oranthropicshelltoolresult.js";
|
|
21
|
-
|
|
21
|
+
import { ORAnthropicToolSearchResult } from "./oranthropictoolsearchresult.js";
|
|
22
|
+
export type ORAnthropicContentBlock = AnthropicAdvisorToolResult | AnthropicBashCodeExecutionToolResult | AnthropicCodeExecutionToolResult | AnthropicCompactionBlock | AnthropicContainerUpload | ORAnthropicBashToolResult | ORAnthropicShellToolResult | ORAnthropicToolSearchResult | AnthropicRedactedThinkingBlock | ORAnthropicServerToolUseBlock | AnthropicTextBlock | AnthropicTextEditorCodeExecutionToolResult | AnthropicThinkingBlock | AnthropicToolSearchToolResult | AnthropicToolUseBlock | AnthropicWebFetchToolResult | AnthropicWebSearchToolResult | discriminatedUnionTypes.Unknown<"type">;
|
|
22
23
|
/** @internal */
|
|
23
24
|
export declare const ORAnthropicContentBlock$inboundSchema: z.ZodType<ORAnthropicContentBlock, unknown>;
|
|
24
25
|
export declare function orAnthropicContentBlockFromJSON(jsonString: string): SafeParseResult<ORAnthropicContentBlock, SDKValidationError>;
|
|
@@ -20,6 +20,7 @@ import { AnthropicWebSearchToolResult$inboundSchema, } from "./anthropicwebsearc
|
|
|
20
20
|
import { ORAnthropicBashToolResult$inboundSchema, } from "./oranthropicbashtoolresult.js";
|
|
21
21
|
import { ORAnthropicServerToolUseBlock$inboundSchema, } from "./oranthropicservertooluseblock.js";
|
|
22
22
|
import { ORAnthropicShellToolResult$inboundSchema, } from "./oranthropicshelltoolresult.js";
|
|
23
|
+
import { ORAnthropicToolSearchResult$inboundSchema, } from "./oranthropictoolsearchresult.js";
|
|
23
24
|
/** @internal */
|
|
24
25
|
export const ORAnthropicContentBlock$inboundSchema = discriminatedUnion("type", {
|
|
25
26
|
advisor_tool_result: AnthropicAdvisorToolResult$inboundSchema,
|
|
@@ -29,6 +30,7 @@ export const ORAnthropicContentBlock$inboundSchema = discriminatedUnion("type",
|
|
|
29
30
|
container_upload: AnthropicContainerUpload$inboundSchema,
|
|
30
31
|
openrouter_bash_tool_result: ORAnthropicBashToolResult$inboundSchema,
|
|
31
32
|
openrouter_shell_tool_result: ORAnthropicShellToolResult$inboundSchema,
|
|
33
|
+
openrouter_tool_search_result: ORAnthropicToolSearchResult$inboundSchema,
|
|
32
34
|
redacted_thinking: AnthropicRedactedThinkingBlock$inboundSchema,
|
|
33
35
|
server_tool_use: ORAnthropicServerToolUseBlock$inboundSchema,
|
|
34
36
|
text: AnthropicTextBlock$inboundSchema,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Router-owned deferred discovery result containing original selected tool definitions.
|
|
6
|
+
*/
|
|
7
|
+
export type ORAnthropicToolSearchResult = {
|
|
8
|
+
content: {
|
|
9
|
+
[k: string]: any;
|
|
10
|
+
};
|
|
11
|
+
toolUseId: string;
|
|
12
|
+
type: "openrouter_tool_search_result";
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const ORAnthropicToolSearchResult$inboundSchema: z.ZodType<ORAnthropicToolSearchResult, unknown>;
|
|
16
|
+
export declare function orAnthropicToolSearchResultFromJSON(jsonString: string): SafeParseResult<ORAnthropicToolSearchResult, SDKValidationError>;
|
|
17
|
+
//# sourceMappingURL=oranthropictoolsearchresult.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 7754e7b9c2d1
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const ORAnthropicToolSearchResult$inboundSchema = z.object({
|
|
10
|
+
content: z.record(z.string(), z.any()),
|
|
11
|
+
tool_use_id: z.string(),
|
|
12
|
+
type: z.literal("openrouter_tool_search_result"),
|
|
13
|
+
}).transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
"tool_use_id": "toolUseId",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function orAnthropicToolSearchResultFromJSON(jsonString) {
|
|
19
|
+
return safeParse(jsonString, (x) => ORAnthropicToolSearchResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ORAnthropicToolSearchResult' from JSON`);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=oranthropictoolsearchresult.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Router-owned deferred discovery result for continuation.
|
|
4
|
+
*/
|
|
5
|
+
export type ORAnthropicToolSearchResultParam = {
|
|
6
|
+
content: {
|
|
7
|
+
[k: string]: any;
|
|
8
|
+
};
|
|
9
|
+
toolUseId: string;
|
|
10
|
+
type: "openrouter_tool_search_result";
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type ORAnthropicToolSearchResultParam$Outbound = {
|
|
14
|
+
content: {
|
|
15
|
+
[k: string]: any;
|
|
16
|
+
};
|
|
17
|
+
tool_use_id: string;
|
|
18
|
+
type: "openrouter_tool_search_result";
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const ORAnthropicToolSearchResultParam$outboundSchema: z.ZodType<ORAnthropicToolSearchResultParam$Outbound, ORAnthropicToolSearchResultParam>;
|
|
22
|
+
export declare function orAnthropicToolSearchResultParamToJSON(orAnthropicToolSearchResultParam: ORAnthropicToolSearchResultParam): string;
|
|
23
|
+
//# sourceMappingURL=oranthropictoolsearchresultparam.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e122900306e5
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const ORAnthropicToolSearchResultParam$outboundSchema = z.object({
|
|
9
|
+
content: z.record(z.string(), z.any()),
|
|
10
|
+
toolUseId: z.string(),
|
|
11
|
+
type: z.literal("openrouter_tool_search_result"),
|
|
12
|
+
}).transform((v) => {
|
|
13
|
+
return remap$(v, {
|
|
14
|
+
toolUseId: "tool_use_id",
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
export function orAnthropicToolSearchResultParamToJSON(orAnthropicToolSearchResultParam) {
|
|
18
|
+
return JSON.stringify(ORAnthropicToolSearchResultParam$outboundSchema.parse(orAnthropicToolSearchResultParam));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=oranthropictoolsearchresultparam.js.map
|
|
@@ -3,7 +3,7 @@ import { ClosedEnum } from "../types/enums.js";
|
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { ApplyPatchCallOperation, ApplyPatchCallOperation$Outbound } from "./applypatchcalloperation.js";
|
|
5
5
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
6
|
-
import {
|
|
6
|
+
import { FailableToolCallStatus } from "./failabletoolcallstatus.js";
|
|
7
7
|
export declare const OutputApplyPatchServerToolItemType: {
|
|
8
8
|
readonly OpenrouterApplyPatch: "openrouter:apply_patch";
|
|
9
9
|
};
|
|
@@ -13,12 +13,16 @@ export type OutputApplyPatchServerToolItemType = ClosedEnum<typeof OutputApplyPa
|
|
|
13
13
|
*/
|
|
14
14
|
export type OutputApplyPatchServerToolItem = {
|
|
15
15
|
callId?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The error message when the tool call failed before producing a result. Set together with `status: 'failed'`; absent on a successful call.
|
|
18
|
+
*/
|
|
19
|
+
error?: string | undefined;
|
|
16
20
|
id?: string | undefined;
|
|
17
21
|
/**
|
|
18
22
|
* The patch operation requested by an `apply_patch_call`. `create_file` and `update_file` carry a V4A diff; `delete_file` omits it.
|
|
19
23
|
*/
|
|
20
24
|
operation?: ApplyPatchCallOperation | undefined;
|
|
21
|
-
status:
|
|
25
|
+
status: FailableToolCallStatus;
|
|
22
26
|
type: OutputApplyPatchServerToolItemType;
|
|
23
27
|
};
|
|
24
28
|
/** @internal */
|
|
@@ -30,6 +34,7 @@ export declare const OutputApplyPatchServerToolItem$inboundSchema: z.ZodType<Out
|
|
|
30
34
|
/** @internal */
|
|
31
35
|
export type OutputApplyPatchServerToolItem$Outbound = {
|
|
32
36
|
call_id?: string | undefined;
|
|
37
|
+
error?: string | undefined;
|
|
33
38
|
id?: string | undefined;
|
|
34
39
|
operation?: ApplyPatchCallOperation$Outbound | undefined;
|
|
35
40
|
status: string;
|