@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
package/esm/sdk/responses.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 Responses extends ClientSDK {
|
|
4
6
|
/**
|
|
@@ -11,12 +13,12 @@ export declare class Responses 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=responses.d.ts.map
|
package/esm/sdk/sdk.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { Datasets } from "./datasets.js";
|
|
|
14
14
|
import { Embeddings } from "./embeddings.js";
|
|
15
15
|
import { Endpoints } from "./endpoints.js";
|
|
16
16
|
import { EndUsers } from "./endusers.js";
|
|
17
|
+
import { ExternalUsers } from "./externalusers.js";
|
|
17
18
|
import { Files } from "./files.js";
|
|
18
19
|
import { Generations } from "./generations.js";
|
|
19
20
|
import { Guardrails } from "./guardrails.js";
|
|
@@ -71,10 +72,12 @@ export declare class OpenRouter extends ClientSDK {
|
|
|
71
72
|
get datasets(): Datasets;
|
|
72
73
|
private _embeddings?;
|
|
73
74
|
get embeddings(): Embeddings;
|
|
74
|
-
private _endUsers?;
|
|
75
|
-
get endUsers(): EndUsers;
|
|
76
75
|
private _endpoints?;
|
|
77
76
|
get endpoints(): Endpoints;
|
|
77
|
+
private _externalUsers?;
|
|
78
|
+
get externalUsers(): ExternalUsers;
|
|
79
|
+
private _endUsers?;
|
|
80
|
+
get endUsers(): EndUsers;
|
|
78
81
|
private _files?;
|
|
79
82
|
get files(): Files;
|
|
80
83
|
private _generations?;
|
package/esm/sdk/sdk.js
CHANGED
|
@@ -18,6 +18,7 @@ import { Datasets } from "./datasets.js";
|
|
|
18
18
|
import { Embeddings } from "./embeddings.js";
|
|
19
19
|
import { Endpoints } from "./endpoints.js";
|
|
20
20
|
import { EndUsers } from "./endusers.js";
|
|
21
|
+
import { ExternalUsers } from "./externalusers.js";
|
|
21
22
|
import { Files } from "./files.js";
|
|
22
23
|
import { Generations } from "./generations.js";
|
|
23
24
|
import { Guardrails } from "./guardrails.js";
|
|
@@ -87,12 +88,15 @@ export class OpenRouter extends ClientSDK {
|
|
|
87
88
|
get embeddings() {
|
|
88
89
|
return (this._embeddings ?? (this._embeddings = new Embeddings(this._options)));
|
|
89
90
|
}
|
|
90
|
-
get endUsers() {
|
|
91
|
-
return (this._endUsers ?? (this._endUsers = new EndUsers(this._options)));
|
|
92
|
-
}
|
|
93
91
|
get endpoints() {
|
|
94
92
|
return (this._endpoints ?? (this._endpoints = new Endpoints(this._options)));
|
|
95
93
|
}
|
|
94
|
+
get externalUsers() {
|
|
95
|
+
return (this._externalUsers ?? (this._externalUsers = new ExternalUsers(this._options)));
|
|
96
|
+
}
|
|
97
|
+
get endUsers() {
|
|
98
|
+
return (this._endUsers ?? (this._endUsers = new EndUsers(this._options)));
|
|
99
|
+
}
|
|
96
100
|
get files() {
|
|
97
101
|
return (this._files ?? (this._files = new Files(this._options)));
|
|
98
102
|
}
|
package/esm/sdk/vault.d.ts
CHANGED
|
@@ -2,6 +2,13 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
|
2
2
|
import * as models from "../models/index.js";
|
|
3
3
|
import * as operations from "../models/operations/index.js";
|
|
4
4
|
export declare class Vault extends ClientSDK {
|
|
5
|
+
/**
|
|
6
|
+
* List the connections an intern can use
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* Lists the connections in scope for the intern, by the key of their card on the dashboard's Connections tab: `github`, `slack`, `google`, a catalog MCP server such as `linear` or `notion`, or `mcp:<host>` for a custom MCP server. A connection is listed when it is stored, enabled, and not turned off or hidden for this intern, as the Connections tab lists it; whether its last test passed is not part of the rule. `ori features add` checks a feature's `ori.requires.connections` against this list. Keys only, never credentials. Returns 404 for an intern the key cannot see. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern's own API key is confined to that intern: it can always read the intern's secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
10
|
+
*/
|
|
11
|
+
listInternConnections(request: operations.ListInternConnectionsRequest, options?: RequestOptions): Promise<operations.ListInternConnectionsResponse>;
|
|
5
12
|
/**
|
|
6
13
|
* List the secrets an intern receives
|
|
7
14
|
*
|
package/esm/sdk/vault.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { vaultCopyVaultSecretsToIntern } from "../funcs/vaultCopyVaultSecretsToIntern.js";
|
|
6
6
|
import { vaultDeleteInternVaultSecret } from "../funcs/vaultDeleteInternVaultSecret.js";
|
|
7
7
|
import { vaultDeleteVaultSecret } from "../funcs/vaultDeleteVaultSecret.js";
|
|
8
|
+
import { vaultListInternConnections } from "../funcs/vaultListInternConnections.js";
|
|
8
9
|
import { vaultListInternEffectiveVaultSecrets } from "../funcs/vaultListInternEffectiveVaultSecrets.js";
|
|
9
10
|
import { vaultListInternVaultSecrets } from "../funcs/vaultListInternVaultSecrets.js";
|
|
10
11
|
import { vaultListVaultSecrets } from "../funcs/vaultListVaultSecrets.js";
|
|
@@ -13,6 +14,15 @@ import { vaultStoreVaultSecret } from "../funcs/vaultStoreVaultSecret.js";
|
|
|
13
14
|
import { ClientSDK } from "../lib/sdks.js";
|
|
14
15
|
import { unwrapAsync } from "../types/fp.js";
|
|
15
16
|
export class Vault extends ClientSDK {
|
|
17
|
+
/**
|
|
18
|
+
* List the connections an intern can use
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* Lists the connections in scope for the intern, by the key of their card on the dashboard's Connections tab: `github`, `slack`, `google`, a catalog MCP server such as `linear` or `notion`, or `mcp:<host>` for a custom MCP server. A connection is listed when it is stored, enabled, and not turned off or hidden for this intern, as the Connections tab lists it; whether its last test passed is not part of the rule. `ori features add` checks a feature's `ori.requires.connections` against this list. Keys only, never credentials. Returns 404 for an intern the key cannot see. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern's own API key is confined to that intern: it can always read the intern's secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
22
|
+
*/
|
|
23
|
+
async listInternConnections(request, options) {
|
|
24
|
+
return unwrapAsync(vaultListInternConnections(this, request, options));
|
|
25
|
+
}
|
|
16
26
|
/**
|
|
17
27
|
* List the secrets an intern receives
|
|
18
28
|
*
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"author": "OpenRouter",
|
|
5
5
|
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
|
|
6
6
|
"keywords": [
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
74
74
|
"build": "tsc && node scripts/unbarrel-imports.js",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
+
"typecheck": "tsc --noEmit",
|
|
76
77
|
"typecheck:transit": "exit 0",
|
|
77
|
-
"
|
|
78
|
-
"postinstall": "node scripts/check-types.js || true",
|
|
78
|
+
"prepare": "npm run build",
|
|
79
79
|
"test": "vitest --run --project unit",
|
|
80
80
|
"test:e2e": "vitest --run --project e2e",
|
|
81
81
|
"test:transit": "exit 0",
|
|
82
|
-
"prepare": "npm run build",
|
|
83
82
|
"test:watch": "vitest --watch --project unit",
|
|
84
|
-
"
|
|
83
|
+
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
84
|
+
"postinstall": "node scripts/check-types.js || true"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { RFCDate } from "../types/rfcdate.js";
|
|
3
|
-
/**
|
|
4
|
-
* Only include batches created strictly after this timestamp.
|
|
5
|
-
*/
|
|
6
|
-
export type BatchListTimestamp = string | RFCDate;
|
|
7
|
-
/** @internal */
|
|
8
|
-
export type BatchListTimestamp$Outbound = string | string;
|
|
9
|
-
/** @internal */
|
|
10
|
-
export declare const BatchListTimestamp$outboundSchema: z.ZodType<BatchListTimestamp$Outbound, BatchListTimestamp>;
|
|
11
|
-
export declare function batchListTimestampToJSON(batchListTimestamp: BatchListTimestamp): string;
|
|
12
|
-
//# sourceMappingURL=batchlisttimestamp.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 55ff60a4c180
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { RFCDate } from "../types/rfcdate.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const BatchListTimestamp$outboundSchema = z.union([
|
|
9
|
-
z.string(),
|
|
10
|
-
z.custom(x => x instanceof RFCDate).transform(v => v.toString()),
|
|
11
|
-
]);
|
|
12
|
-
export function batchListTimestampToJSON(batchListTimestamp) {
|
|
13
|
-
return JSON.stringify(BatchListTimestamp$outboundSchema.parse(batchListTimestamp));
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=batchlisttimestamp.js.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
export type CreateEndUserRequest = {
|
|
3
|
-
/**
|
|
4
|
-
* Immutable case-sensitive tracking string supplied as user on inference requests. URL-encode it in resource paths.
|
|
5
|
-
*/
|
|
6
|
-
user: string;
|
|
7
|
-
};
|
|
8
|
-
/** @internal */
|
|
9
|
-
export type CreateEndUserRequest$Outbound = {
|
|
10
|
-
user: string;
|
|
11
|
-
};
|
|
12
|
-
/** @internal */
|
|
13
|
-
export declare const CreateEndUserRequest$outboundSchema: z.ZodType<CreateEndUserRequest$Outbound, CreateEndUserRequest>;
|
|
14
|
-
export declare function createEndUserRequestToJSON(createEndUserRequest: CreateEndUserRequest): string;
|
|
15
|
-
//# sourceMappingURL=createenduserrequest.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: ff82d51467ad
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
/** @internal */
|
|
7
|
-
export const CreateEndUserRequest$outboundSchema = z.object({
|
|
8
|
-
user: z.string(),
|
|
9
|
-
});
|
|
10
|
-
export function createEndUserRequestToJSON(createEndUserRequest) {
|
|
11
|
-
return JSON.stringify(CreateEndUserRequest$outboundSchema.parse(createEndUserRequest));
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=createenduserrequest.js.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
-
import { EndUser } from "./enduser.js";
|
|
4
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
-
export type EndUserResponse = {
|
|
6
|
-
data: EndUser;
|
|
7
|
-
};
|
|
8
|
-
/** @internal */
|
|
9
|
-
export declare const EndUserResponse$inboundSchema: z.ZodType<EndUserResponse, unknown>;
|
|
10
|
-
export declare function endUserResponseFromJSON(jsonString: string): SafeParseResult<EndUserResponse, SDKValidationError>;
|
|
11
|
-
//# sourceMappingURL=enduserresponse.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 8e60bf584de3
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import { EndUser$inboundSchema } from "./enduser.js";
|
|
8
|
-
/** @internal */
|
|
9
|
-
export const EndUserResponse$inboundSchema = z.object({
|
|
10
|
-
data: EndUser$inboundSchema,
|
|
11
|
-
});
|
|
12
|
-
export function endUserResponseFromJSON(jsonString) {
|
|
13
|
-
return safeParse(jsonString, (x) => EndUserResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EndUserResponse' from JSON`);
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=enduserresponse.js.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
-
import { EndUser } from "./enduser.js";
|
|
4
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
-
export type ListEndUsersResponse = {
|
|
6
|
-
data: Array<EndUser>;
|
|
7
|
-
/**
|
|
8
|
-
* Number of registrations matching the filters before pagination.
|
|
9
|
-
*/
|
|
10
|
-
totalCount: number;
|
|
11
|
-
};
|
|
12
|
-
/** @internal */
|
|
13
|
-
export declare const ListEndUsersResponse$inboundSchema: z.ZodType<ListEndUsersResponse, unknown>;
|
|
14
|
-
export declare function listEndUsersResponseFromJSON(jsonString: string): SafeParseResult<ListEndUsersResponse, SDKValidationError>;
|
|
15
|
-
//# sourceMappingURL=listendusersresponse.d.ts.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: dc07ec7c7cd3
|
|
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 { EndUser$inboundSchema } from "./enduser.js";
|
|
9
|
-
/** @internal */
|
|
10
|
-
export const ListEndUsersResponse$inboundSchema = z.object({
|
|
11
|
-
data: z.array(EndUser$inboundSchema),
|
|
12
|
-
total_count: z.int(),
|
|
13
|
-
}).transform((v) => {
|
|
14
|
-
return remap$(v, {
|
|
15
|
-
"total_count": "totalCount",
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
export function listEndUsersResponseFromJSON(jsonString) {
|
|
19
|
-
return safeParse(jsonString, (x) => ListEndUsersResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListEndUsersResponse' from JSON`);
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=listendusersresponse.js.map
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 0f247a9b55fb
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { CreateEndUserRequest$outboundSchema as models_CreateEndUserRequest$outboundSchema } from "../createenduserrequest.js";
|
|
8
|
-
/** @internal */
|
|
9
|
-
export const CreateEndUserRequest$outboundSchema = z.object({
|
|
10
|
-
httpReferer: z.string().optional(),
|
|
11
|
-
appTitle: z.string().optional(),
|
|
12
|
-
appCategories: z.string().optional(),
|
|
13
|
-
createEndUserRequest: models_CreateEndUserRequest$outboundSchema,
|
|
14
|
-
}).transform((v) => {
|
|
15
|
-
return remap$(v, {
|
|
16
|
-
httpReferer: "HTTP-Referer",
|
|
17
|
-
createEndUserRequest: "CreateEndUserRequest",
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
export function createEndUserRequestToJSON(createEndUserRequest) {
|
|
21
|
-
return JSON.stringify(CreateEndUserRequest$outboundSchema.parse(createEndUserRequest));
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=createenduser.js.map
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: a9ea0c370613
|
|
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 { ListEndUsersResponse$inboundSchema as models_ListEndUsersResponse$inboundSchema } from "../listendusersresponse.js";
|
|
9
|
-
/** @internal */
|
|
10
|
-
export const ListEndUsersRequest$outboundSchema = z.object({
|
|
11
|
-
httpReferer: z.string().optional(),
|
|
12
|
-
appTitle: z.string().optional(),
|
|
13
|
-
appCategories: z.string().optional(),
|
|
14
|
-
offset: z.nullable(z.int().default(0)),
|
|
15
|
-
limit: z.int().default(50),
|
|
16
|
-
user: z.string().optional(),
|
|
17
|
-
includeInactive: z.boolean().default(false),
|
|
18
|
-
}).transform((v) => {
|
|
19
|
-
return remap$(v, {
|
|
20
|
-
httpReferer: "HTTP-Referer",
|
|
21
|
-
includeInactive: "include_inactive",
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
export function listEndUsersRequestToJSON(listEndUsersRequest) {
|
|
25
|
-
return JSON.stringify(ListEndUsersRequest$outboundSchema.parse(listEndUsersRequest));
|
|
26
|
-
}
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const ListEndUsersResponse$inboundSchema = z.object({
|
|
29
|
-
Result: models_ListEndUsersResponse$inboundSchema,
|
|
30
|
-
}).transform((v) => {
|
|
31
|
-
return remap$(v, {
|
|
32
|
-
"Result": "result",
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
export function listEndUsersResponseFromJSON(jsonString) {
|
|
36
|
-
return safeParse(jsonString, (x) => ListEndUsersResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListEndUsersResponse' from JSON`);
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=listendusers.js.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 15ed3e7fa116
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { UpdateEndUserRequest$outboundSchema as models_UpdateEndUserRequest$outboundSchema } from "../updateenduserrequest.js";
|
|
8
|
-
/** @internal */
|
|
9
|
-
export const UpdateEndUserRequest$outboundSchema = z.object({
|
|
10
|
-
httpReferer: z.string().optional(),
|
|
11
|
-
appTitle: z.string().optional(),
|
|
12
|
-
appCategories: z.string().optional(),
|
|
13
|
-
user: z.string(),
|
|
14
|
-
updateEndUserRequest: models_UpdateEndUserRequest$outboundSchema,
|
|
15
|
-
}).transform((v) => {
|
|
16
|
-
return remap$(v, {
|
|
17
|
-
httpReferer: "HTTP-Referer",
|
|
18
|
-
updateEndUserRequest: "UpdateEndUserRequest",
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
export function updateEndUserRequestToJSON(updateEndUserRequest) {
|
|
22
|
-
return JSON.stringify(UpdateEndUserRequest$outboundSchema.parse(updateEndUserRequest));
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=updateenduser.js.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
export type UpdateEndUserRequest = {
|
|
3
|
-
/**
|
|
4
|
-
* Registration state only; does not enforce inference access.
|
|
5
|
-
*/
|
|
6
|
-
isActive: boolean;
|
|
7
|
-
};
|
|
8
|
-
/** @internal */
|
|
9
|
-
export type UpdateEndUserRequest$Outbound = {
|
|
10
|
-
is_active: boolean;
|
|
11
|
-
};
|
|
12
|
-
/** @internal */
|
|
13
|
-
export declare const UpdateEndUserRequest$outboundSchema: z.ZodType<UpdateEndUserRequest$Outbound, UpdateEndUserRequest>;
|
|
14
|
-
export declare function updateEndUserRequestToJSON(updateEndUserRequest: UpdateEndUserRequest): string;
|
|
15
|
-
//# sourceMappingURL=updateenduserrequest.d.ts.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 74fcb924ddd3
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const UpdateEndUserRequest$outboundSchema = z.object({
|
|
9
|
-
isActive: z.boolean(),
|
|
10
|
-
}).transform((v) => {
|
|
11
|
-
return remap$(v, {
|
|
12
|
-
isActive: "is_active",
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
export function updateEndUserRequestToJSON(updateEndUserRequest) {
|
|
16
|
-
return JSON.stringify(UpdateEndUserRequest$outboundSchema.parse(updateEndUserRequest));
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=updateenduserrequest.js.map
|