@openrouter/sdk 1.4.24 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/funcs/apiKeysList.d.ts +1 -1
- package/esm/funcs/apiKeysList.js +3 -2
- package/esm/funcs/apiKeysUpdate.d.ts +4 -2
- package/esm/funcs/apiKeysUpdate.js +5 -3
- package/esm/funcs/chatSend.d.ts +4 -2
- package/esm/funcs/containersPromoteContainerFile.d.ts +1 -1
- package/esm/funcs/containersPromoteContainerFile.js +2 -2
- package/esm/funcs/embeddingsGenerate.d.ts +1 -1
- package/esm/funcs/embeddingsGenerate.js +2 -2
- package/esm/funcs/{endUsersCreate.d.ts → externalUsersCreate.d.ts} +3 -3
- package/esm/funcs/{endUsersCreate.js → externalUsersCreate.js} +11 -11
- package/esm/funcs/{endUsersDelete.d.ts → externalUsersDelete.d.ts} +3 -3
- package/esm/funcs/{endUsersDelete.js → externalUsersDelete.js} +8 -8
- package/esm/funcs/{endUsersGet.d.ts → externalUsersGet.d.ts} +3 -3
- package/esm/funcs/{endUsersGet.js → externalUsersGet.js} +10 -10
- package/esm/funcs/{endUsersList.d.ts → externalUsersList.d.ts} +3 -3
- package/esm/funcs/{endUsersList.js → externalUsersList.js} +10 -10
- package/esm/funcs/{endUsersUpdate.d.ts → externalUsersUpdate.d.ts} +3 -3
- package/esm/funcs/{endUsersUpdate.js → externalUsersUpdate.js} +11 -11
- package/esm/funcs/filesUpload.d.ts +1 -1
- package/esm/funcs/filesUpload.js +2 -2
- package/esm/funcs/guardrailsListKeyAssignments.d.ts +1 -1
- package/esm/funcs/guardrailsListKeyAssignments.js +2 -2
- package/esm/funcs/guardrailsListMemberAssignments.d.ts +1 -1
- package/esm/funcs/guardrailsListMemberAssignments.js +2 -2
- package/esm/funcs/imagesGenerate.d.ts +4 -2
- package/esm/funcs/internsGetInternConnections.d.ts +21 -0
- package/esm/funcs/internsGetInternConnections.js +105 -0
- package/esm/funcs/internsGetInternDaemon.d.ts +1 -1
- package/esm/funcs/internsGetInternDaemon.js +1 -1
- package/esm/funcs/internsGetInternIcon.d.ts +20 -0
- package/esm/funcs/internsGetInternIcon.js +109 -0
- package/esm/funcs/internsSignInternDaemonAccessRequest.d.ts +22 -0
- package/esm/funcs/internsSignInternDaemonAccessRequest.js +109 -0
- package/esm/funcs/internsSignInternDaemonRequest.d.ts +20 -0
- package/esm/funcs/internsSignInternDaemonRequest.js +109 -0
- package/esm/funcs/modelsListForUser.js +1 -0
- package/esm/funcs/privateEndpointsUpdatePricing.d.ts +1 -1
- package/esm/funcs/privateEndpointsUpdatePricing.js +1 -1
- package/esm/funcs/responsesSend.d.ts +4 -2
- package/esm/funcs/vaultDeleteInternVaultSecret.d.ts +1 -1
- package/esm/funcs/vaultDeleteInternVaultSecret.js +2 -2
- package/esm/funcs/vaultDeleteVaultSecret.d.ts +1 -1
- package/esm/funcs/vaultDeleteVaultSecret.js +2 -2
- package/esm/funcs/vaultListInternConnections.d.ts +20 -0
- package/esm/funcs/vaultListInternConnections.js +104 -0
- package/esm/funcs/vaultStoreVaultSecret.d.ts +1 -1
- package/esm/funcs/vaultStoreVaultSecret.js +2 -2
- package/esm/funcs/videoGenerationGenerate.d.ts +1 -1
- package/esm/funcs/videoGenerationGenerate.js +2 -2
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/encodings.d.ts +10 -9
- package/esm/lib/encodings.js +29 -13
- package/esm/lib/http.d.ts +1 -1
- package/esm/lib/http.js +1 -1
- package/esm/lib/security.d.ts +5 -4
- package/esm/lib/security.js +4 -5
- package/esm/models/additionaltoolsitem.d.ts +16 -1
- package/esm/models/additionaltoolsitem.js +10 -0
- package/esm/models/alignment.d.ts +1 -1
- package/esm/models/alignmentplugin.d.ts +9 -8
- package/esm/models/alignmentplugin.js +3 -2
- package/esm/models/alignmentrule.d.ts +31 -0
- package/esm/models/alignmentrule.js +25 -0
- package/esm/models/alignmentrulerecord.d.ts +7 -3
- package/esm/models/alignmentrulerecord.js +2 -1
- package/esm/models/armorautomode.d.ts +44 -0
- package/esm/models/armorautomode.js +49 -0
- package/esm/models/armorcontext.d.ts +22 -0
- package/esm/models/armorcontext.js +25 -0
- package/esm/models/armorenvironmententry.d.ts +14 -0
- package/esm/models/armorenvironmententry.js +14 -0
- package/esm/models/armorplugin.d.ts +92 -0
- package/esm/models/armorplugin.js +60 -0
- package/esm/models/armorrule.d.ts +30 -0
- package/esm/models/armorrule.js +16 -0
- package/esm/models/armorsafeguardresult.d.ts +69 -0
- package/esm/models/armorsafeguardresult.js +83 -0
- package/esm/models/batchlistitem.d.ts +8 -0
- package/esm/models/batchlistitem.js +3 -0
- package/esm/models/batchobject.d.ts +13 -0
- package/esm/models/batchobject.js +6 -0
- package/esm/models/batchsubmitbody.d.ts +5 -0
- package/esm/models/batchsubmitbody.js +2 -0
- package/esm/models/byokkey.d.ts +3 -3
- package/esm/models/byokkey.js +1 -1
- package/esm/models/byokproviderslug.d.ts +2 -0
- package/esm/models/byokproviderslug.js +2 -0
- package/esm/models/chatcontenttext.d.ts +1 -1
- package/esm/models/chatfunctiontool.d.ts +4 -0
- package/esm/models/chatfunctiontool.js +7 -0
- package/esm/models/chatrequest.d.ts +16 -9
- package/esm/models/chatrequest.js +9 -6
- package/esm/models/chatresult.d.ts +10 -0
- package/esm/models/chatresult.js +5 -0
- package/esm/models/chatstreamchunk.d.ts +7 -0
- package/esm/models/chatstreamchunk.js +5 -0
- package/esm/models/chatwebsearchshorthand.d.ts +1 -1
- package/esm/models/clientclosedrequestresponseerrordata.d.ts +17 -0
- package/esm/models/clientclosedrequestresponseerrordata.js +16 -0
- package/esm/models/computeruseservertool.d.ts +5 -5
- package/esm/models/computeruseservertool.js +5 -5
- package/esm/models/createbyokkeyrequest.d.ts +3 -3
- package/esm/models/createbyokkeyrequest.js +1 -1
- package/esm/models/createexternaluserrequest.d.ts +15 -0
- package/esm/models/createexternaluserrequest.js +13 -0
- package/esm/models/createguardrailrequest.d.ts +10 -0
- package/esm/models/createguardrailrequest.js +4 -0
- package/esm/models/createobservabilitydestinationrequest.d.ts +5 -0
- package/esm/models/createobservabilitydestinationrequest.js +2 -0
- package/esm/models/customtool.d.ts +2 -0
- package/esm/models/customtool.js +11 -0
- package/esm/models/decisionsboxanswer.d.ts +21 -0
- package/esm/models/decisionsboxanswer.js +26 -0
- package/esm/models/decisionsboxquestion.d.ts +34 -0
- package/esm/models/decisionsboxquestion.js +23 -0
- package/esm/models/decisionsrequest.d.ts +6 -5
- package/esm/models/decisionsrequest.js +3 -0
- package/esm/models/decisionsresponse.d.ts +4 -3
- package/esm/models/decisionsresponse.js +3 -0
- package/esm/models/deferredbm25search.d.ts +17 -0
- package/esm/models/deferredbm25search.js +19 -0
- package/esm/models/deferredcustomsearch.d.ts +21 -0
- package/esm/models/deferredcustomsearch.js +23 -0
- package/esm/models/deferredregexsearch.d.ts +17 -0
- package/esm/models/deferredregexsearch.js +19 -0
- package/esm/models/deferredtoolscontrol.d.ts +62 -0
- package/esm/models/deferredtoolscontrol.js +38 -0
- package/esm/models/deferredtoolssearchstrategy.d.ts +14 -0
- package/esm/models/deferredtoolssearchstrategy.js +18 -0
- package/esm/models/errors/batchpaymentrequiredresponseerror.d.ts +16 -0
- package/esm/models/errors/batchpaymentrequiredresponseerror.js +5 -0
- package/esm/models/errors/clientclosedrequestresponseerror.d.ts +39 -0
- package/esm/models/errors/clientclosedrequestresponseerror.js +47 -0
- package/esm/models/errors/index.d.ts +1 -0
- package/esm/models/errors/index.js +1 -0
- package/esm/models/{enduser.d.ts → externaluser.d.ts} +5 -5
- package/esm/models/{enduser.js → externaluser.js} +6 -5
- package/esm/models/externaluserresponse.d.ts +11 -0
- package/esm/models/externaluserresponse.js +15 -0
- package/esm/models/guardrail.d.ts +8 -0
- package/esm/models/guardrail.js +4 -0
- package/esm/models/imagegenerationproviderpreferences.d.ts +12 -0
- package/esm/models/imagegenerationproviderpreferences.js +3 -0
- package/esm/models/index.d.ts +34 -6
- package/esm/models/index.js +34 -6
- package/esm/models/inputsunion.d.ts +7 -4
- package/esm/models/inputsunion.js +9 -0
- package/esm/models/inputtext.d.ts +1 -1
- package/esm/models/intern.d.ts +12 -0
- package/esm/models/intern.js +6 -0
- package/esm/models/internconnection.d.ts +118 -0
- package/esm/models/internconnection.js +105 -0
- package/esm/models/internconnectionlist.d.ts +11 -0
- package/esm/models/internconnectionlist.js +15 -0
- package/esm/models/jevrouterplugin.d.ts +5 -0
- package/esm/models/jevrouterplugin.js +2 -0
- package/esm/models/keybudget.d.ts +80 -0
- package/esm/models/keybudget.js +58 -0
- package/esm/models/legacywebsearchservertool.d.ts +1 -1
- package/esm/models/listexternalusersresponse.d.ts +15 -0
- package/esm/models/listexternalusersresponse.js +21 -0
- package/esm/models/messagesmessageparam.d.ts +7 -6
- package/esm/models/messagesmessageparam.js +4 -0
- package/esm/models/messagesrequest.d.ts +11 -4
- package/esm/models/messagesrequest.js +6 -0
- package/esm/models/namespacefunctiontool.d.ts +5 -5
- package/esm/models/namespacefunctiontool.js +5 -5
- package/esm/models/observabilityarizedestination.d.ts +4 -0
- package/esm/models/observabilityarizedestination.js +2 -0
- package/esm/models/observabilitybraintrustdestination.d.ts +4 -0
- package/esm/models/observabilitybraintrustdestination.js +2 -0
- package/esm/models/observabilityclickhousedestination.d.ts +4 -0
- package/esm/models/observabilityclickhousedestination.js +2 -0
- package/esm/models/observabilitydatadogdestination.d.ts +4 -0
- package/esm/models/observabilitydatadogdestination.js +2 -0
- package/esm/models/observabilitygrafanadestination.d.ts +4 -0
- package/esm/models/observabilitygrafanadestination.js +2 -0
- package/esm/models/observabilitylangfusedestination.d.ts +4 -0
- package/esm/models/observabilitylangfusedestination.js +2 -0
- package/esm/models/observabilitylangsmithdestination.d.ts +4 -0
- package/esm/models/observabilitylangsmithdestination.js +2 -0
- package/esm/models/observabilitynewrelicdestination.d.ts +4 -0
- package/esm/models/observabilitynewrelicdestination.js +2 -0
- package/esm/models/observabilityopikdestination.d.ts +4 -0
- package/esm/models/observabilityopikdestination.js +2 -0
- package/esm/models/observabilityotelcollectordestination.d.ts +4 -0
- package/esm/models/observabilityotelcollectordestination.js +2 -0
- package/esm/models/observabilityposthogdestination.d.ts +4 -0
- package/esm/models/observabilityposthogdestination.js +2 -0
- package/esm/models/observabilityrampdestination.d.ts +4 -0
- package/esm/models/observabilityrampdestination.js +2 -0
- package/esm/models/observabilitys3destination.d.ts +4 -0
- package/esm/models/observabilitys3destination.js +2 -0
- package/esm/models/observabilitysentrydestination.d.ts +4 -0
- package/esm/models/observabilitysentrydestination.js +2 -0
- package/esm/models/observabilitysnowflakedestination.d.ts +4 -0
- package/esm/models/observabilitysnowflakedestination.js +2 -0
- package/esm/models/observabilityweavedestination.d.ts +4 -0
- package/esm/models/observabilityweavedestination.js +2 -0
- package/esm/models/observabilitywebhookdestination.d.ts +8 -4
- package/esm/models/observabilitywebhookdestination.js +5 -4
- package/esm/models/openresponseserrorfield.d.ts +1 -0
- package/esm/models/openresponseserrorfield.js +1 -0
- package/esm/models/openresponseserrormetadata.d.ts +1 -1
- package/esm/models/openresponsesresult.d.ts +19 -3
- package/esm/models/openresponsesresult.js +14 -0
- package/esm/models/operations/{createenduser.d.ts → createexternaluser.d.ts} +8 -8
- package/esm/models/operations/createexternaluser.js +23 -0
- package/esm/models/operations/createkeys.d.ts +4 -0
- package/esm/models/operations/createkeys.js +2 -0
- package/esm/models/operations/deleteexternaluser.d.ts +58 -0
- package/esm/models/operations/{deleteenduser.js → deleteexternaluser.js} +5 -5
- package/esm/models/operations/getcurrentkey.d.ts +5 -0
- package/esm/models/operations/getcurrentkey.js +4 -1
- package/esm/models/operations/{updateenduser.d.ts → getexternaluser.d.ts} +7 -10
- package/esm/models/operations/{getenduser.js → getexternaluser.js} +5 -5
- package/esm/models/operations/{deleteenduser.d.ts → getinternconnections.d.ts} +9 -9
- package/esm/models/operations/getinternconnections.js +21 -0
- package/esm/models/operations/{getenduser.d.ts → getinternicon.d.ts} +14 -9
- package/esm/models/operations/getinternicon.js +22 -0
- package/esm/models/operations/getkey.d.ts +4 -0
- package/esm/models/operations/getkey.js +2 -0
- package/esm/models/operations/index.d.ts +10 -5
- package/esm/models/operations/index.js +10 -5
- package/esm/models/operations/list.d.ts +9 -0
- package/esm/models/operations/list.js +4 -0
- package/esm/models/operations/listbatches.d.ts +4 -4
- package/esm/models/operations/listbatches.js +3 -3
- package/esm/models/operations/listbyokkeys.d.ts +2 -0
- package/esm/models/operations/listbyokkeys.js +2 -0
- package/esm/models/operations/{listendusers.d.ts → listexternalusers.d.ts} +11 -11
- package/esm/models/operations/listexternalusers.js +38 -0
- package/esm/models/operations/listinternconnections.d.ts +75 -0
- package/esm/models/operations/listinternconnections.js +36 -0
- package/esm/models/operations/listmodelsuser.d.ts +29 -0
- package/esm/models/operations/listmodelsuser.js +21 -0
- package/esm/models/operations/signinterndaemonaccessrequest.d.ts +72 -0
- package/esm/models/operations/signinterndaemonaccessrequest.js +38 -0
- package/esm/models/operations/signinterndaemonrequest.d.ts +72 -0
- package/esm/models/operations/signinterndaemonrequest.js +38 -0
- package/esm/models/operations/updateexternaluser.d.ts +61 -0
- package/esm/models/operations/updateexternaluser.js +24 -0
- package/esm/models/operations/updatekeys.d.ts +9 -0
- package/esm/models/operations/updatekeys.js +4 -0
- package/esm/models/oranthropiccontentblock.d.ts +2 -1
- package/esm/models/oranthropiccontentblock.js +2 -0
- package/esm/models/oranthropictoolsearchresult.d.ts +17 -0
- package/esm/models/oranthropictoolsearchresult.js +21 -0
- package/esm/models/oranthropictoolsearchresultparam.d.ts +23 -0
- package/esm/models/oranthropictoolsearchresultparam.js +20 -0
- package/esm/models/outputapplypatchservertoolitem.d.ts +7 -2
- package/esm/models/outputapplypatchservertoolitem.js +5 -3
- package/esm/models/outputarmorblockeditem.d.ts +71 -0
- package/esm/models/outputarmorblockeditem.js +60 -0
- package/esm/models/outputdatetimeitem.d.ts +7 -2
- package/esm/models/outputdatetimeitem.js +5 -3
- package/esm/models/outputimagegenerationservertoolitem.d.ts +7 -2
- package/esm/models/outputimagegenerationservertoolitem.js +5 -3
- package/esm/models/outputitems.d.ts +5 -1
- package/esm/models/outputitems.js +4 -0
- package/esm/models/outputsearchmodelsservertoolitem.d.ts +7 -2
- package/esm/models/outputsearchmodelsservertoolitem.js +5 -3
- package/esm/models/outputtoolsearchcallitem.d.ts +26 -0
- package/esm/models/outputtoolsearchcallitem.js +30 -0
- package/esm/models/outputtoolsearchservertoolitem.d.ts +30 -2
- package/esm/models/outputtoolsearchservertoolitem.js +36 -3
- package/esm/models/outputwebsearchservertoolitem.d.ts +7 -2
- package/esm/models/outputwebsearchservertoolitem.js +5 -3
- package/esm/models/preview20250311websearchservertool.d.ts +1 -1
- package/esm/models/previewwebsearchservertool.d.ts +1 -1
- package/esm/models/privateendpointpricing.d.ts +10 -0
- package/esm/models/privateendpointpricing.js +15 -0
- package/esm/models/promptcachebreakpoint.d.ts +3 -1
- package/esm/models/promptcachebreakpoint.js +2 -0
- package/esm/models/promptcacheoptions.d.ts +1 -1
- package/esm/models/providername.d.ts +2 -0
- package/esm/models/providername.js +2 -0
- package/esm/models/provideroptions.d.ts +12 -0
- package/esm/models/provideroptions.js +3 -0
- package/esm/models/providerresponse.d.ts +2 -0
- package/esm/models/providerresponse.js +2 -0
- package/esm/models/publicendpoint.d.ts +11 -2
- package/esm/models/publicendpoint.js +5 -0
- package/esm/models/publicservicetier.d.ts +17 -0
- package/esm/models/publicservicetier.js +16 -0
- package/esm/models/responsesrequest.d.ts +42 -6
- package/esm/models/responsesrequest.js +22 -0
- package/esm/models/signinterndaemonrequest.d.ts +54 -0
- package/esm/models/signinterndaemonrequest.js +30 -0
- package/esm/models/signinterndaemonresponse.d.ts +32 -0
- package/esm/models/signinterndaemonresponse.js +27 -0
- package/esm/models/speechinput.d.ts +12 -0
- package/esm/models/speechinput.js +12 -0
- package/esm/models/speechinputreferenceimage.d.ts +1 -1
- package/esm/models/speechrequest.d.ts +10 -4
- package/esm/models/speechrequest.js +3 -1
- package/esm/models/speechturn.d.ts +25 -0
- package/esm/models/speechturn.js +15 -0
- package/esm/models/switchyardrouterplugin.d.ts +1 -1
- package/esm/models/tokenexchangerequest.d.ts +7 -6
- package/esm/models/tokenexchangerequest.js +4 -2
- package/esm/models/tokenexchangeresponse.d.ts +3 -0
- package/esm/models/toolsearchcallitem.d.ts +47 -0
- package/esm/models/toolsearchcallitem.js +42 -0
- package/esm/models/toolsearchoutputitem.d.ts +150 -0
- package/esm/models/toolsearchoutputitem.js +181 -0
- package/esm/models/updatebyokkeyrequest.d.ts +3 -3
- package/esm/models/updatebyokkeyrequest.js +1 -1
- package/esm/models/updateexternaluserrequest.d.ts +15 -0
- package/esm/models/updateexternaluserrequest.js +18 -0
- package/esm/models/updateguardrailrequest.d.ts +10 -0
- package/esm/models/updateguardrailrequest.js +4 -0
- package/esm/models/updateobservabilitydestinationrequest.d.ts +5 -0
- package/esm/models/updateobservabilitydestinationrequest.js +2 -0
- package/esm/models/videogenerationrequest.d.ts +12 -0
- package/esm/models/videogenerationrequest.js +3 -0
- package/esm/models/videogenerationresponse.d.ts +11 -0
- package/esm/models/videogenerationresponse.js +3 -0
- package/esm/models/webfetchengineenum.d.ts +2 -2
- package/esm/models/webfetchengineenum.js +1 -1
- package/esm/models/webfetchservertoolconfig.d.ts +1 -1
- package/esm/models/websearchconfig.d.ts +1 -1
- package/esm/models/websearchengineenum.d.ts +2 -2
- package/esm/models/websearchengineenum.js +1 -1
- package/esm/models/websearchservertool.d.ts +1 -1
- package/esm/models/websearchservertoolconfig.d.ts +1 -1
- package/esm/models/workspacebudget.d.ts +4 -4
- package/esm/models/workspacebudget.js +3 -3
- package/esm/sdk/apikeys.d.ts +3 -1
- package/esm/sdk/apikeys.js +3 -1
- package/esm/sdk/betaresponses.d.ts +4 -2
- package/esm/sdk/chat.d.ts +4 -2
- package/esm/sdk/endusers.d.ts +10 -10
- package/esm/sdk/endusers.js +15 -15
- package/esm/sdk/externalusers.d.ts +44 -0
- package/esm/sdk/externalusers.js +60 -0
- package/esm/sdk/images.d.ts +3 -2
- package/esm/sdk/interns.d.ts +31 -1
- package/esm/sdk/interns.js +43 -1
- package/esm/sdk/privateendpoints.d.ts +1 -1
- package/esm/sdk/privateendpoints.js +1 -1
- package/esm/sdk/responses.d.ts +4 -2
- package/esm/sdk/sdk.d.ts +5 -2
- package/esm/sdk/sdk.js +7 -3
- package/esm/sdk/vault.d.ts +7 -0
- package/esm/sdk/vault.js +10 -0
- package/jsr.json +1 -1
- package/package.json +5 -5
- package/esm/models/batchlisttimestamp.d.ts +0 -12
- package/esm/models/batchlisttimestamp.js +0 -15
- package/esm/models/createenduserrequest.d.ts +0 -15
- package/esm/models/createenduserrequest.js +0 -13
- package/esm/models/enduserresponse.d.ts +0 -11
- package/esm/models/enduserresponse.js +0 -15
- package/esm/models/listendusersresponse.d.ts +0 -15
- package/esm/models/listendusersresponse.js +0 -21
- package/esm/models/operations/createenduser.js +0 -23
- package/esm/models/operations/listendusers.js +0 -38
- package/esm/models/operations/updateenduser.js +0 -24
- package/esm/models/updateenduserrequest.d.ts +0 -15
- package/esm/models/updateenduserrequest.js +0 -18
|
@@ -13,7 +13,7 @@ export type WebFetchServerToolConfig = {
|
|
|
13
13
|
*/
|
|
14
14
|
blockedDomains?: Array<string> | undefined;
|
|
15
15
|
/**
|
|
16
|
-
* Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in fetch. "exa" uses Exa Contents API. "openrouter" uses direct HTTP fetch. "firecrawl" uses Firecrawl scrape
|
|
16
|
+
* Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in fetch. "exa" uses Exa Contents API. "openrouter" uses direct HTTP fetch. "firecrawl" uses Firecrawl scrape. "parallel" uses the Parallel extract API.
|
|
17
17
|
*/
|
|
18
18
|
engine?: WebFetchEngineEnum | undefined;
|
|
19
19
|
/**
|
|
@@ -10,7 +10,7 @@ export type WebSearchConfig = {
|
|
|
10
10
|
*/
|
|
11
11
|
allowedDomains?: Array<string> | undefined;
|
|
12
12
|
/**
|
|
13
|
-
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl
|
|
13
|
+
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses the Firecrawl search API. "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
|
|
14
14
|
*/
|
|
15
15
|
engine?: WebSearchEngineEnum | undefined;
|
|
16
16
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { OpenEnum } from "../types/enums.js";
|
|
3
3
|
/**
|
|
4
|
-
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl
|
|
4
|
+
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses the Firecrawl search API. "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
|
|
5
5
|
*/
|
|
6
6
|
export declare const WebSearchEngineEnum: {
|
|
7
7
|
readonly Native: "native";
|
|
@@ -12,7 +12,7 @@ export declare const WebSearchEngineEnum: {
|
|
|
12
12
|
readonly Auto: "auto";
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
|
-
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl
|
|
15
|
+
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses the Firecrawl search API. "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
|
|
16
16
|
*/
|
|
17
17
|
export type WebSearchEngineEnum = OpenEnum<typeof WebSearchEngineEnum>;
|
|
18
18
|
/** @internal */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as openEnums from "../types/enums.js";
|
|
6
6
|
/**
|
|
7
|
-
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl
|
|
7
|
+
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses the Firecrawl search API. "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
|
|
8
8
|
*/
|
|
9
9
|
export const WebSearchEngineEnum = {
|
|
10
10
|
Native: "native",
|
|
@@ -17,7 +17,7 @@ export type WebSearchServerToolType = ClosedEnum<typeof WebSearchServerToolType>
|
|
|
17
17
|
*/
|
|
18
18
|
export type WebSearchServerTool = {
|
|
19
19
|
/**
|
|
20
|
-
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl
|
|
20
|
+
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses the Firecrawl search API. "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
|
|
21
21
|
*/
|
|
22
22
|
engine?: WebSearchEngineEnum | undefined;
|
|
23
23
|
filters?: WebSearchDomainFilter | null | undefined;
|
|
@@ -13,7 +13,7 @@ export type WebSearchServerToolConfig = {
|
|
|
13
13
|
*/
|
|
14
14
|
allowedDomains?: Array<string> | undefined;
|
|
15
15
|
/**
|
|
16
|
-
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl
|
|
16
|
+
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses the Firecrawl search API. "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
|
|
17
17
|
*/
|
|
18
18
|
engine?: WebSearchEngineEnum | undefined;
|
|
19
19
|
/**
|
|
@@ -5,7 +5,7 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* Interval at which spend resets. Null means a lifetime (one-time) budget.
|
|
7
7
|
*/
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const WorkspaceBudgetResetInterval: {
|
|
9
9
|
readonly Daily: "daily";
|
|
10
10
|
readonly Weekly: "weekly";
|
|
11
11
|
readonly Monthly: "monthly";
|
|
@@ -13,7 +13,7 @@ export declare const ResetInterval: {
|
|
|
13
13
|
/**
|
|
14
14
|
* Interval at which spend resets. Null means a lifetime (one-time) budget.
|
|
15
15
|
*/
|
|
16
|
-
export type
|
|
16
|
+
export type WorkspaceBudgetResetInterval = OpenEnum<typeof WorkspaceBudgetResetInterval>;
|
|
17
17
|
export type WorkspaceBudget = {
|
|
18
18
|
/**
|
|
19
19
|
* ISO 8601 timestamp of when the budget was created
|
|
@@ -30,7 +30,7 @@ export type WorkspaceBudget = {
|
|
|
30
30
|
/**
|
|
31
31
|
* Interval at which spend resets. Null means a lifetime (one-time) budget.
|
|
32
32
|
*/
|
|
33
|
-
resetInterval:
|
|
33
|
+
resetInterval: WorkspaceBudgetResetInterval | null;
|
|
34
34
|
/**
|
|
35
35
|
* ISO 8601 timestamp of when the budget was last updated
|
|
36
36
|
*/
|
|
@@ -41,7 +41,7 @@ export type WorkspaceBudget = {
|
|
|
41
41
|
workspaceId: string;
|
|
42
42
|
};
|
|
43
43
|
/** @internal */
|
|
44
|
-
export declare const
|
|
44
|
+
export declare const WorkspaceBudgetResetInterval$inboundSchema: z.ZodType<WorkspaceBudgetResetInterval, unknown>;
|
|
45
45
|
/** @internal */
|
|
46
46
|
export declare const WorkspaceBudget$inboundSchema: z.ZodType<WorkspaceBudget, unknown>;
|
|
47
47
|
export declare function workspaceBudgetFromJSON(jsonString: string): SafeParseResult<WorkspaceBudget, SDKValidationError>;
|
|
@@ -9,19 +9,19 @@ import * as openEnums from "../types/enums.js";
|
|
|
9
9
|
/**
|
|
10
10
|
* Interval at which spend resets. Null means a lifetime (one-time) budget.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const WorkspaceBudgetResetInterval = {
|
|
13
13
|
Daily: "daily",
|
|
14
14
|
Weekly: "weekly",
|
|
15
15
|
Monthly: "monthly",
|
|
16
16
|
};
|
|
17
17
|
/** @internal */
|
|
18
|
-
export const
|
|
18
|
+
export const WorkspaceBudgetResetInterval$inboundSchema = openEnums.inboundSchema(WorkspaceBudgetResetInterval);
|
|
19
19
|
/** @internal */
|
|
20
20
|
export const WorkspaceBudget$inboundSchema = z.object({
|
|
21
21
|
created_at: z.string(),
|
|
22
22
|
id: z.string(),
|
|
23
23
|
limit_usd: z.number(),
|
|
24
|
-
reset_interval: z.nullable(
|
|
24
|
+
reset_interval: z.nullable(WorkspaceBudgetResetInterval$inboundSchema),
|
|
25
25
|
updated_at: z.string(),
|
|
26
26
|
workspace_id: z.string(),
|
|
27
27
|
}).transform((v) => {
|
package/esm/sdk/apikeys.d.ts
CHANGED
|
@@ -42,8 +42,10 @@ export declare class APIKeys extends ClientSDK {
|
|
|
42
42
|
* @remarks
|
|
43
43
|
* Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).
|
|
44
44
|
*
|
|
45
|
+
* Set `workspace_id` to move the key to another workspace.
|
|
46
|
+
*
|
|
45
47
|
* <Warning>
|
|
46
|
-
*
|
|
48
|
+
* The request body accepts only the fields listed below, and unrecognized fields are ignored. If the body contains none of the accepted fields, the request fails with `400` and the message `No update fields provided`.
|
|
47
49
|
* </Warning>
|
|
48
50
|
*/
|
|
49
51
|
update(request: operations.UpdateKeysRequest, options?: RequestOptions): Promise<operations.UpdateKeysResponse>;
|
package/esm/sdk/apikeys.js
CHANGED
|
@@ -62,8 +62,10 @@ export class APIKeys extends ClientSDK {
|
|
|
62
62
|
* @remarks
|
|
63
63
|
* Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).
|
|
64
64
|
*
|
|
65
|
+
* Set `workspace_id` to move the key to another workspace.
|
|
66
|
+
*
|
|
65
67
|
* <Warning>
|
|
66
|
-
*
|
|
68
|
+
* The request body accepts only the fields listed below, and unrecognized fields are ignored. If the body contains none of the accepted fields, the request fails with `400` and the message `No update fields provided`.
|
|
67
69
|
* </Warning>
|
|
68
70
|
*/
|
|
69
71
|
async update(request, options) {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { EventStream } from "../lib/event-streams.js";
|
|
1
2
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as models from "../models/index.js";
|
|
2
4
|
import * as operations from "../models/operations/index.js";
|
|
3
5
|
export declare class BetaResponses extends ClientSDK {
|
|
4
6
|
/**
|
|
@@ -11,12 +13,12 @@ export declare class BetaResponses extends ClientSDK {
|
|
|
11
13
|
responsesRequest: {
|
|
12
14
|
stream?: false | undefined;
|
|
13
15
|
};
|
|
14
|
-
}, options?: RequestOptions): Promise<
|
|
16
|
+
}, options?: RequestOptions): Promise<models.OpenResponsesResult>;
|
|
15
17
|
send(request: operations.CreateResponsesRequest & {
|
|
16
18
|
responsesRequest: {
|
|
17
19
|
stream: true;
|
|
18
20
|
};
|
|
19
|
-
}, options?: RequestOptions): Promise<
|
|
21
|
+
}, options?: RequestOptions): Promise<EventStream<models.StreamEvents>>;
|
|
20
22
|
send(request: operations.CreateResponsesRequest, options?: RequestOptions): Promise<operations.CreateResponsesResponse>;
|
|
21
23
|
}
|
|
22
24
|
//# sourceMappingURL=betaresponses.d.ts.map
|
package/esm/sdk/chat.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { EventStream } from "../lib/event-streams.js";
|
|
1
2
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as models from "../models/index.js";
|
|
2
4
|
import * as operations from "../models/operations/index.js";
|
|
3
5
|
export declare class Chat extends ClientSDK {
|
|
4
6
|
/**
|
|
@@ -11,12 +13,12 @@ export declare class Chat extends ClientSDK {
|
|
|
11
13
|
chatRequest: {
|
|
12
14
|
stream?: false | undefined;
|
|
13
15
|
};
|
|
14
|
-
}, options?: RequestOptions): Promise<
|
|
16
|
+
}, options?: RequestOptions): Promise<models.ChatResult>;
|
|
15
17
|
send(request: operations.SendChatCompletionRequestRequest & {
|
|
16
18
|
chatRequest: {
|
|
17
19
|
stream: true;
|
|
18
20
|
};
|
|
19
|
-
}, options?: RequestOptions): Promise<
|
|
21
|
+
}, options?: RequestOptions): Promise<EventStream<models.ChatStreamChunk>>;
|
|
20
22
|
send(request: operations.SendChatCompletionRequestRequest, options?: RequestOptions): Promise<operations.SendChatCompletionRequestResponse>;
|
|
21
23
|
}
|
|
22
24
|
//# sourceMappingURL=chat.d.ts.map
|
package/esm/sdk/endusers.d.ts
CHANGED
|
@@ -4,41 +4,41 @@ import * as operations from "../models/operations/index.js";
|
|
|
4
4
|
import { PageIterator } from "../types/operations.js";
|
|
5
5
|
export declare class EndUsers extends ClientSDK {
|
|
6
6
|
/**
|
|
7
|
-
* List registered
|
|
7
|
+
* List registered external users
|
|
8
8
|
*
|
|
9
9
|
* @remarks
|
|
10
10
|
* List registrations belonging to the authenticated organization. Inactive registrations are excluded by default. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
11
11
|
*/
|
|
12
|
-
list(request?: operations.
|
|
12
|
+
list(request?: operations.ListExternalUsersRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListExternalUsersResponse, {
|
|
13
13
|
offset: number;
|
|
14
14
|
}>>;
|
|
15
15
|
/**
|
|
16
|
-
* Register an
|
|
16
|
+
* Register an external user
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
19
|
* Register a caller-supplied tracking ID under the authenticated organization. No login account, policy, or credentials are created. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
20
|
*/
|
|
21
|
-
create(request: operations.
|
|
21
|
+
create(request: operations.CreateExternalUserRequest, options?: RequestOptions): Promise<models.ExternalUserResponse>;
|
|
22
22
|
/**
|
|
23
|
-
* Deactivate a registered
|
|
23
|
+
* Deactivate a registered external user
|
|
24
24
|
*
|
|
25
25
|
* @remarks
|
|
26
26
|
* Soft-deactivate a registration while retaining its tracking ID. Repeat deactivation succeeds. This does not block inference; reactivate through PATCH. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
27
27
|
*/
|
|
28
|
-
delete(request: operations.
|
|
28
|
+
delete(request: operations.DeleteExternalUserRequest, options?: RequestOptions): Promise<void>;
|
|
29
29
|
/**
|
|
30
|
-
* Get a registered
|
|
30
|
+
* Get a registered external user
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Retrieve an active or inactive registration by its URL-encoded, caller-supplied tracking ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
34
34
|
*/
|
|
35
|
-
get(request: operations.
|
|
35
|
+
get(request: operations.GetExternalUserRequest, options?: RequestOptions): Promise<models.ExternalUserResponse>;
|
|
36
36
|
/**
|
|
37
|
-
* Update a registered
|
|
37
|
+
* Update a registered external user
|
|
38
38
|
*
|
|
39
39
|
* @remarks
|
|
40
40
|
* Update registration state without changing identity. State changes do not enforce inference access. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
41
41
|
*/
|
|
42
|
-
update(request: operations.
|
|
42
|
+
update(request: operations.UpdateExternalUserRequest, options?: RequestOptions): Promise<models.ExternalUserResponse>;
|
|
43
43
|
}
|
|
44
44
|
//# sourceMappingURL=endusers.d.ts.map
|
package/esm/sdk/endusers.js
CHANGED
|
@@ -2,59 +2,59 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
* @generated-id: 8e12697ee658
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { externalUsersCreate } from "../funcs/externalUsersCreate.js";
|
|
6
|
+
import { externalUsersDelete } from "../funcs/externalUsersDelete.js";
|
|
7
|
+
import { externalUsersGet } from "../funcs/externalUsersGet.js";
|
|
8
|
+
import { externalUsersList } from "../funcs/externalUsersList.js";
|
|
9
|
+
import { externalUsersUpdate } from "../funcs/externalUsersUpdate.js";
|
|
10
10
|
import { ClientSDK } from "../lib/sdks.js";
|
|
11
11
|
import { unwrapAsync } from "../types/fp.js";
|
|
12
12
|
import { unwrapResultIterator } from "../types/operations.js";
|
|
13
13
|
export class EndUsers extends ClientSDK {
|
|
14
14
|
/**
|
|
15
|
-
* List registered
|
|
15
|
+
* List registered external users
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
18
|
* List registrations belonging to the authenticated organization. Inactive registrations are excluded by default. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
19
19
|
*/
|
|
20
20
|
async list(request, options) {
|
|
21
|
-
return unwrapResultIterator(
|
|
21
|
+
return unwrapResultIterator(externalUsersList(this, request, options));
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Register an
|
|
24
|
+
* Register an external user
|
|
25
25
|
*
|
|
26
26
|
* @remarks
|
|
27
27
|
* Register a caller-supplied tracking ID under the authenticated organization. No login account, policy, or credentials are created. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
28
28
|
*/
|
|
29
29
|
async create(request, options) {
|
|
30
|
-
return unwrapAsync(
|
|
30
|
+
return unwrapAsync(externalUsersCreate(this, request, options));
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
* Deactivate a registered
|
|
33
|
+
* Deactivate a registered external user
|
|
34
34
|
*
|
|
35
35
|
* @remarks
|
|
36
36
|
* Soft-deactivate a registration while retaining its tracking ID. Repeat deactivation succeeds. This does not block inference; reactivate through PATCH. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
37
37
|
*/
|
|
38
38
|
async delete(request, options) {
|
|
39
|
-
return unwrapAsync(
|
|
39
|
+
return unwrapAsync(externalUsersDelete(this, request, options));
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
|
-
* Get a registered
|
|
42
|
+
* Get a registered external user
|
|
43
43
|
*
|
|
44
44
|
* @remarks
|
|
45
45
|
* Retrieve an active or inactive registration by its URL-encoded, caller-supplied tracking ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
46
46
|
*/
|
|
47
47
|
async get(request, options) {
|
|
48
|
-
return unwrapAsync(
|
|
48
|
+
return unwrapAsync(externalUsersGet(this, request, options));
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
* Update a registered
|
|
51
|
+
* Update a registered external user
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
54
|
* Update registration state without changing identity. State changes do not enforce inference access. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
55
55
|
*/
|
|
56
56
|
async update(request, options) {
|
|
57
|
-
return unwrapAsync(
|
|
57
|
+
return unwrapAsync(externalUsersUpdate(this, request, options));
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
//# sourceMappingURL=endusers.js.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
import * as models from "../models/index.js";
|
|
3
|
+
import * as operations from "../models/operations/index.js";
|
|
4
|
+
import { PageIterator } from "../types/operations.js";
|
|
5
|
+
export declare class ExternalUsers extends ClientSDK {
|
|
6
|
+
/**
|
|
7
|
+
* List registered external users
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* List registrations belonging to the authenticated organization. Inactive registrations are excluded by default. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
11
|
+
*/
|
|
12
|
+
list(request?: operations.ListExternalUsersRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListExternalUsersResponse, {
|
|
13
|
+
offset: number;
|
|
14
|
+
}>>;
|
|
15
|
+
/**
|
|
16
|
+
* Register an external user
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Register a caller-supplied tracking ID under the authenticated organization. No login account, policy, or credentials are created. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
|
+
*/
|
|
21
|
+
create(request: operations.CreateExternalUserRequest, options?: RequestOptions): Promise<models.ExternalUserResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Deactivate a registered external user
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* Soft-deactivate a registration while retaining its tracking ID. Repeat deactivation succeeds. This does not block inference; reactivate through PATCH. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
27
|
+
*/
|
|
28
|
+
delete(request: operations.DeleteExternalUserRequest, options?: RequestOptions): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Get a registered external user
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Retrieve an active or inactive registration by its URL-encoded, caller-supplied tracking ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
34
|
+
*/
|
|
35
|
+
get(request: operations.GetExternalUserRequest, options?: RequestOptions): Promise<models.ExternalUserResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Update a registered external user
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* Update registration state without changing identity. State changes do not enforce inference access. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
41
|
+
*/
|
|
42
|
+
update(request: operations.UpdateExternalUserRequest, options?: RequestOptions): Promise<models.ExternalUserResponse>;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=externalusers.d.ts.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 8b2b4b6306c5
|
|
4
|
+
*/
|
|
5
|
+
import { externalUsersCreate } from "../funcs/externalUsersCreate.js";
|
|
6
|
+
import { externalUsersDelete } from "../funcs/externalUsersDelete.js";
|
|
7
|
+
import { externalUsersGet } from "../funcs/externalUsersGet.js";
|
|
8
|
+
import { externalUsersList } from "../funcs/externalUsersList.js";
|
|
9
|
+
import { externalUsersUpdate } from "../funcs/externalUsersUpdate.js";
|
|
10
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
11
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
12
|
+
import { unwrapResultIterator } from "../types/operations.js";
|
|
13
|
+
export class ExternalUsers extends ClientSDK {
|
|
14
|
+
/**
|
|
15
|
+
* List registered external users
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* List registrations belonging to the authenticated organization. Inactive registrations are excluded by default. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
19
|
+
*/
|
|
20
|
+
async list(request, options) {
|
|
21
|
+
return unwrapResultIterator(externalUsersList(this, request, options));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Register an external user
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Register a caller-supplied tracking ID under the authenticated organization. No login account, policy, or credentials are created. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
28
|
+
*/
|
|
29
|
+
async create(request, options) {
|
|
30
|
+
return unwrapAsync(externalUsersCreate(this, request, options));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Deactivate a registered external user
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Soft-deactivate a registration while retaining its tracking ID. Repeat deactivation succeeds. This does not block inference; reactivate through PATCH. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
37
|
+
*/
|
|
38
|
+
async delete(request, options) {
|
|
39
|
+
return unwrapAsync(externalUsersDelete(this, request, options));
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Get a registered external user
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* Retrieve an active or inactive registration by its URL-encoded, caller-supplied tracking ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
46
|
+
*/
|
|
47
|
+
async get(request, options) {
|
|
48
|
+
return unwrapAsync(externalUsersGet(this, request, options));
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Update a registered external user
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Update registration state without changing identity. State changes do not enforce inference access. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
55
|
+
*/
|
|
56
|
+
async update(request, options) {
|
|
57
|
+
return unwrapAsync(externalUsersUpdate(this, request, options));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=externalusers.js.map
|
package/esm/sdk/images.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EventStream } from "../lib/event-streams.js";
|
|
1
2
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
3
|
import * as models from "../models/index.js";
|
|
3
4
|
import * as operations from "../models/operations/index.js";
|
|
@@ -12,12 +13,12 @@ export declare class Images extends ClientSDK {
|
|
|
12
13
|
imageGenerationRequest: {
|
|
13
14
|
stream?: false | undefined;
|
|
14
15
|
};
|
|
15
|
-
}, options?: RequestOptions): Promise<
|
|
16
|
+
}, options?: RequestOptions): Promise<models.ImageGenerationResponse>;
|
|
16
17
|
generate(request: operations.CreateImagesRequest & {
|
|
17
18
|
imageGenerationRequest: {
|
|
18
19
|
stream: true;
|
|
19
20
|
};
|
|
20
|
-
}, options?: RequestOptions): Promise<
|
|
21
|
+
}, options?: RequestOptions): Promise<EventStream<models.ImageStreamingResponseData>>;
|
|
21
22
|
generate(request: operations.CreateImagesRequest, options?: RequestOptions): Promise<operations.CreateImagesResponse>;
|
|
22
23
|
/**
|
|
23
24
|
* List image generation models
|
package/esm/sdk/interns.d.ts
CHANGED
|
@@ -37,11 +37,18 @@ export declare class Interns extends ClientSDK {
|
|
|
37
37
|
* Changes the intern name, description, instructions or model. Omitted fields stay unchanged. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
38
38
|
*/
|
|
39
39
|
updateIntern(request: operations.UpdateInternRequest, options?: RequestOptions): Promise<models.Intern>;
|
|
40
|
+
/**
|
|
41
|
+
* List an intern's connections
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
* Returns the Slack, GitHub, Google Workspace and MCP connections one visible intern can reach, and the shared ones switched off for it or disabled for the workspace. An OAuth grant needs `vault:read`, because the list names members' personal accounts; without it the route answers 403 `insufficient_scope`. The response is sent with `Cache-Control: no-store`. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
45
|
+
*/
|
|
46
|
+
getInternConnections(request: operations.GetInternConnectionsRequest, options?: RequestOptions): Promise<models.InternConnectionList>;
|
|
40
47
|
/**
|
|
41
48
|
* Get an intern's daemon access
|
|
42
49
|
*
|
|
43
50
|
* @remarks
|
|
44
|
-
* Returns the origin and daemon token that attach `ori tui --host` to one visible, running intern. The token is a credential: the response is sent with `Cache-Control: no-store`, and each reveal is logged by caller and intern. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
51
|
+
* Returns the origin and daemon token that attach `ori tui --host` to one visible, running intern. The token is a credential: only an OAuth-token caller (`ori login --oidc`) may read it, the response is sent with `Cache-Control: no-store`, and each reveal is logged by caller and intern. API keys get 403 `personal_identity_required`. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
45
52
|
*/
|
|
46
53
|
getInternDaemon(request: operations.GetInternDaemonRequest, options?: RequestOptions): Promise<models.InternDaemonAccess>;
|
|
47
54
|
/**
|
|
@@ -53,6 +60,29 @@ export declare class Interns extends ClientSDK {
|
|
|
53
60
|
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
54
61
|
*/
|
|
55
62
|
getInternDaemonAccess(request: operations.GetInternDaemonAccessRequest, options?: RequestOptions): Promise<models.InternDaemonAccess>;
|
|
63
|
+
/**
|
|
64
|
+
* Sign a daemon request with the caller's identity (deprecated alias)
|
|
65
|
+
*
|
|
66
|
+
* @remarks
|
|
67
|
+
* Deprecated alias of `POST /interns/{internId}/daemon/sign` with the same request, response, and errors. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
68
|
+
*
|
|
69
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
70
|
+
*/
|
|
71
|
+
signInternDaemonAccessRequest(request: operations.SignInternDaemonAccessRequestRequest, options?: RequestOptions): Promise<operations.SignInternDaemonAccessRequestResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* Sign a daemon request with the caller's identity
|
|
74
|
+
*
|
|
75
|
+
* @remarks
|
|
76
|
+
* Signs the SHA-256 digest of one request the CLI is about to send to the intern daemon, binding it to the intern and to the signed-in member so personal connections resolve. Only an OAuth session from `ori login --oidc` whose grant carries `vault:read` can sign: an API key is refused with 403 because it names no person, and an `interns`-only grant is refused with 403 because a proof releases that user's personal connections. The route is behind the same gate as chat and counts against the chat turn limiter. The response is sent with `Cache-Control: no-store`. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
77
|
+
*/
|
|
78
|
+
signInternDaemonRequest(request: operations.SignInternDaemonRequestRequest, options?: RequestOptions): Promise<operations.SignInternDaemonRequestResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* Get an intern's icon
|
|
81
|
+
*
|
|
82
|
+
* @remarks
|
|
83
|
+
* Returns the icon image of one visible intern. Pass the intern's `icon_sha256` as `v` to receive a response that can be cached indefinitely. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
84
|
+
*/
|
|
85
|
+
getInternIcon(request: operations.GetInternIconRequest, options?: RequestOptions): Promise<ReadableStream<Uint8Array>>;
|
|
56
86
|
/**
|
|
57
87
|
* Provision an intern
|
|
58
88
|
*
|
package/esm/sdk/interns.js
CHANGED
|
@@ -6,11 +6,15 @@ import { internsChat } from "../funcs/internsChat.js";
|
|
|
6
6
|
import { internsCreateIntern } from "../funcs/internsCreateIntern.js";
|
|
7
7
|
import { internsDeleteIntern } from "../funcs/internsDeleteIntern.js";
|
|
8
8
|
import { internsGetIntern } from "../funcs/internsGetIntern.js";
|
|
9
|
+
import { internsGetInternConnections } from "../funcs/internsGetInternConnections.js";
|
|
9
10
|
import { internsGetInternDaemon } from "../funcs/internsGetInternDaemon.js";
|
|
10
11
|
import { internsGetInternDaemonAccess } from "../funcs/internsGetInternDaemonAccess.js";
|
|
12
|
+
import { internsGetInternIcon } from "../funcs/internsGetInternIcon.js";
|
|
11
13
|
import { internsInvoke } from "../funcs/internsInvoke.js";
|
|
12
14
|
import { internsListInterns } from "../funcs/internsListInterns.js";
|
|
13
15
|
import { internsProvisionIntern } from "../funcs/internsProvisionIntern.js";
|
|
16
|
+
import { internsSignInternDaemonAccessRequest } from "../funcs/internsSignInternDaemonAccessRequest.js";
|
|
17
|
+
import { internsSignInternDaemonRequest } from "../funcs/internsSignInternDaemonRequest.js";
|
|
14
18
|
import { internsSuspendIntern } from "../funcs/internsSuspendIntern.js";
|
|
15
19
|
import { internsUpdateIntern } from "../funcs/internsUpdateIntern.js";
|
|
16
20
|
import { ClientSDK } from "../lib/sdks.js";
|
|
@@ -61,11 +65,20 @@ export class Interns extends ClientSDK {
|
|
|
61
65
|
async updateIntern(request, options) {
|
|
62
66
|
return unwrapAsync(internsUpdateIntern(this, request, options));
|
|
63
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* List an intern's connections
|
|
70
|
+
*
|
|
71
|
+
* @remarks
|
|
72
|
+
* Returns the Slack, GitHub, Google Workspace and MCP connections one visible intern can reach, and the shared ones switched off for it or disabled for the workspace. An OAuth grant needs `vault:read`, because the list names members' personal accounts; without it the route answers 403 `insufficient_scope`. The response is sent with `Cache-Control: no-store`. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
73
|
+
*/
|
|
74
|
+
async getInternConnections(request, options) {
|
|
75
|
+
return unwrapAsync(internsGetInternConnections(this, request, options));
|
|
76
|
+
}
|
|
64
77
|
/**
|
|
65
78
|
* Get an intern's daemon access
|
|
66
79
|
*
|
|
67
80
|
* @remarks
|
|
68
|
-
* Returns the origin and daemon token that attach `ori tui --host` to one visible, running intern. The token is a credential: the response is sent with `Cache-Control: no-store`, and each reveal is logged by caller and intern. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
81
|
+
* Returns the origin and daemon token that attach `ori tui --host` to one visible, running intern. The token is a credential: only an OAuth-token caller (`ori login --oidc`) may read it, the response is sent with `Cache-Control: no-store`, and each reveal is logged by caller and intern. API keys get 403 `personal_identity_required`. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
69
82
|
*/
|
|
70
83
|
async getInternDaemon(request, options) {
|
|
71
84
|
return unwrapAsync(internsGetInternDaemon(this, request, options));
|
|
@@ -81,6 +94,35 @@ export class Interns extends ClientSDK {
|
|
|
81
94
|
async getInternDaemonAccess(request, options) {
|
|
82
95
|
return unwrapAsync(internsGetInternDaemonAccess(this, request, options));
|
|
83
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* Sign a daemon request with the caller's identity (deprecated alias)
|
|
99
|
+
*
|
|
100
|
+
* @remarks
|
|
101
|
+
* Deprecated alias of `POST /interns/{internId}/daemon/sign` with the same request, response, and errors. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
102
|
+
*
|
|
103
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
104
|
+
*/
|
|
105
|
+
async signInternDaemonAccessRequest(request, options) {
|
|
106
|
+
return unwrapAsync(internsSignInternDaemonAccessRequest(this, request, options));
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Sign a daemon request with the caller's identity
|
|
110
|
+
*
|
|
111
|
+
* @remarks
|
|
112
|
+
* Signs the SHA-256 digest of one request the CLI is about to send to the intern daemon, binding it to the intern and to the signed-in member so personal connections resolve. Only an OAuth session from `ori login --oidc` whose grant carries `vault:read` can sign: an API key is refused with 403 because it names no person, and an `interns`-only grant is refused with 403 because a proof releases that user's personal connections. The route is behind the same gate as chat and counts against the chat turn limiter. The response is sent with `Cache-Control: no-store`. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
113
|
+
*/
|
|
114
|
+
async signInternDaemonRequest(request, options) {
|
|
115
|
+
return unwrapAsync(internsSignInternDaemonRequest(this, request, options));
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Get an intern's icon
|
|
119
|
+
*
|
|
120
|
+
* @remarks
|
|
121
|
+
* Returns the icon image of one visible intern. Pass the intern's `icon_sha256` as `v` to receive a response that can be cached indefinitely. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
122
|
+
*/
|
|
123
|
+
async getInternIcon(request, options) {
|
|
124
|
+
return unwrapAsync(internsGetInternIcon(this, request, options));
|
|
125
|
+
}
|
|
84
126
|
/**
|
|
85
127
|
* Provision an intern
|
|
86
128
|
*
|
|
@@ -62,7 +62,7 @@ export declare class PrivateEndpoints extends ClientSDK {
|
|
|
62
62
|
* Set private endpoint pricing
|
|
63
63
|
*
|
|
64
64
|
* @remarks
|
|
65
|
-
* Set the negotiated per-token rates reported for requests routed to this endpoint. Applies to drafts and active endpoints; new rates take effect for subsequent requests. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
65
|
+
* Set the negotiated per-token rates reported for requests routed to this endpoint. Applies to drafts and active endpoints; new rates take effect for subsequent requests. The body replaces the whole pricing object: omitting `cache_read` or `cache_write` reverts that rate to the provider pricing strategy's default, even if it was set before. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
66
66
|
*/
|
|
67
67
|
updatePricing(request: operations.UpdatePrivateEndpointPricingRequest, options?: RequestOptions): Promise<models.PrivateEndpointResponse>;
|
|
68
68
|
/**
|
|
@@ -91,7 +91,7 @@ export class PrivateEndpoints extends ClientSDK {
|
|
|
91
91
|
* Set private endpoint pricing
|
|
92
92
|
*
|
|
93
93
|
* @remarks
|
|
94
|
-
* Set the negotiated per-token rates reported for requests routed to this endpoint. Applies to drafts and active endpoints; new rates take effect for subsequent requests. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
94
|
+
* Set the negotiated per-token rates reported for requests routed to this endpoint. Applies to drafts and active endpoints; new rates take effect for subsequent requests. The body replaces the whole pricing object: omitting `cache_read` or `cache_write` reverts that rate to the provider pricing strategy's default, even if it was set before. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
95
95
|
*/
|
|
96
96
|
async updatePricing(request, options) {
|
|
97
97
|
return unwrapAsync(privateEndpointsUpdatePricing(this, request, options));
|