@openrouter/sdk 0.12.35 → 0.12.79
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/FUNCTIONS.md +2 -2
- package/README.md +1 -1
- package/esm/funcs/analyticsGetUserActivity.js +2 -1
- package/esm/funcs/apiKeysCreate.js +2 -1
- package/esm/funcs/apiKeysDelete.js +2 -1
- package/esm/funcs/apiKeysGet.js +2 -1
- package/esm/funcs/apiKeysGetCurrentKeyMetadata.js +2 -1
- package/esm/funcs/apiKeysList.js +2 -1
- package/esm/funcs/apiKeysUpdate.js +2 -1
- package/esm/funcs/betaResponsesSend.d.ts +3 -3
- package/esm/funcs/betaResponsesSend.js +3 -18
- package/esm/funcs/byokCreate.d.ts +19 -0
- package/esm/funcs/byokCreate.js +100 -0
- package/esm/funcs/byokDelete.d.ts +19 -0
- package/esm/funcs/byokDelete.js +103 -0
- package/esm/funcs/byokGet.d.ts +19 -0
- package/esm/funcs/byokGet.js +103 -0
- package/esm/funcs/byokList.d.ts +21 -0
- package/esm/funcs/byokList.js +136 -0
- package/esm/funcs/byokUpdate.d.ts +19 -0
- package/esm/funcs/byokUpdate.js +106 -0
- package/esm/funcs/chatSend.js +2 -18
- package/esm/funcs/creditsGetCredits.js +2 -1
- package/esm/funcs/datasetsGetRankingsDaily.d.ts +37 -0
- package/esm/funcs/datasetsGetRankingsDaily.js +120 -0
- package/esm/funcs/embeddingsGenerate.js +2 -14
- package/esm/funcs/embeddingsListModels.js +2 -1
- package/esm/funcs/endpointsList.js +2 -1
- package/esm/funcs/endpointsListZdrEndpoints.js +2 -1
- package/esm/funcs/generationsGetGeneration.js +2 -12
- package/esm/funcs/generationsListGenerationContent.js +2 -12
- package/esm/funcs/guardrailsBulkAssignKeys.js +2 -1
- package/esm/funcs/guardrailsBulkAssignMembers.js +2 -1
- package/esm/funcs/guardrailsBulkUnassignKeys.js +2 -1
- package/esm/funcs/guardrailsBulkUnassignMembers.js +2 -1
- package/esm/funcs/guardrailsCreate.js +2 -1
- package/esm/funcs/guardrailsDelete.js +2 -1
- package/esm/funcs/guardrailsGet.js +2 -1
- package/esm/funcs/guardrailsList.js +2 -1
- package/esm/funcs/guardrailsListGuardrailKeyAssignments.js +2 -1
- package/esm/funcs/guardrailsListGuardrailMemberAssignments.js +2 -1
- package/esm/funcs/guardrailsListKeyAssignments.js +2 -1
- package/esm/funcs/guardrailsListMemberAssignments.js +2 -1
- package/esm/funcs/guardrailsUpdate.js +2 -1
- package/esm/funcs/modelsCount.js +2 -1
- package/esm/funcs/modelsList.js +2 -1
- package/esm/funcs/modelsListForUser.js +2 -1
- package/esm/funcs/oAuthCreateAuthCode.js +2 -1
- package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.js +2 -1
- package/esm/funcs/observabilityCreate.d.ts +19 -0
- package/esm/funcs/observabilityCreate.js +98 -0
- package/esm/funcs/observabilityDelete.d.ts +19 -0
- package/esm/funcs/observabilityDelete.js +103 -0
- package/esm/funcs/observabilityGet.d.ts +19 -0
- package/esm/funcs/observabilityGet.js +103 -0
- package/esm/funcs/observabilityList.d.ts +21 -0
- package/esm/funcs/observabilityList.js +134 -0
- package/esm/funcs/observabilityUpdate.d.ts +19 -0
- package/esm/funcs/observabilityUpdate.js +104 -0
- package/esm/funcs/organizationListMembers.js +2 -1
- package/esm/funcs/presetsCreatePresetsChatCompletions.d.ts +21 -0
- package/esm/funcs/presetsCreatePresetsChatCompletions.js +106 -0
- package/esm/funcs/presetsCreatePresetsMessages.d.ts +21 -0
- package/esm/funcs/presetsCreatePresetsMessages.js +106 -0
- package/esm/funcs/presetsCreatePresetsResponses.d.ts +21 -0
- package/esm/funcs/presetsCreatePresetsResponses.js +106 -0
- package/esm/funcs/providersList.js +2 -1
- package/esm/funcs/rerankRerank.js +2 -14
- package/esm/funcs/sttCreateTranscription.js +2 -14
- package/esm/funcs/ttsCreateSpeech.js +2 -14
- package/esm/funcs/videoGenerationGenerate.js +2 -1
- package/esm/funcs/videoGenerationGetGeneration.js +2 -1
- package/esm/funcs/videoGenerationGetVideoContent.js +2 -1
- package/esm/funcs/videoGenerationListVideosModels.js +2 -1
- package/esm/funcs/workspacesBulkAddMembers.js +2 -1
- package/esm/funcs/workspacesBulkRemoveMembers.js +2 -1
- package/esm/funcs/workspacesCreate.js +2 -1
- package/esm/funcs/workspacesDelete.js +2 -1
- package/esm/funcs/workspacesGet.js +2 -1
- package/esm/funcs/workspacesList.js +2 -1
- package/esm/funcs/workspacesUpdate.js +2 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/encodings.d.ts +1 -0
- package/esm/lib/encodings.js +6 -0
- package/esm/lib/sdks.d.ts +1 -1
- package/esm/lib/sdks.js +3 -5
- package/esm/models/anthropicallowedcallers.d.ts +11 -0
- package/esm/models/anthropicallowedcallers.js +13 -0
- package/esm/models/anthropicbase64imagesource.d.ts +17 -0
- package/esm/models/anthropicbase64imagesource.js +21 -0
- package/esm/models/anthropicbase64pdfsource.d.ts +23 -0
- package/esm/models/anthropicbase64pdfsource.js +25 -0
- package/esm/models/anthropiccachecontroldirective.d.ts +1 -1
- package/esm/models/anthropiccitationcharlocationparam.d.ts +22 -0
- package/esm/models/anthropiccitationcharlocationparam.js +27 -0
- package/esm/models/anthropiccitationcontentblocklocationparam.d.ts +22 -0
- package/esm/models/anthropiccitationcontentblocklocationparam.js +27 -0
- package/esm/models/anthropiccitationpagelocationparam.d.ts +22 -0
- package/esm/models/anthropiccitationpagelocationparam.js +27 -0
- package/esm/models/anthropiccitationsearchresultlocation.d.ts +24 -0
- package/esm/models/anthropiccitationsearchresultlocation.js +27 -0
- package/esm/models/anthropiccitationwebsearchresultlocation.d.ts +20 -0
- package/esm/models/anthropiccitationwebsearchresultlocation.js +23 -0
- package/esm/models/anthropicdocumentblockparam.d.ts +71 -0
- package/esm/models/anthropicdocumentblockparam.js +84 -0
- package/esm/models/anthropicimageblockparam.d.ts +28 -0
- package/esm/models/anthropicimageblockparam.js +34 -0
- package/esm/models/anthropicimagemimetype.d.ts +12 -0
- package/esm/models/anthropicimagemimetype.js +14 -0
- package/esm/models/anthropicinputtokensclearatleast.d.ts +21 -0
- package/esm/models/anthropicinputtokensclearatleast.js +19 -0
- package/esm/models/anthropicinputtokenstrigger.d.ts +14 -0
- package/esm/models/anthropicinputtokenstrigger.js +14 -0
- package/esm/models/anthropicplaintextsource.d.ts +23 -0
- package/esm/models/anthropicplaintextsource.js +25 -0
- package/esm/models/anthropicsearchresultblockparam.d.ts +37 -0
- package/esm/models/anthropicsearchresultblockparam.js +32 -0
- package/esm/models/anthropictextblockparam.d.ts +33 -0
- package/esm/models/anthropictextblockparam.js +45 -0
- package/esm/models/anthropicthinkingdisplay.d.ts +10 -0
- package/esm/models/anthropicthinkingdisplay.js +12 -0
- package/esm/models/anthropicthinkingturns.d.ts +21 -0
- package/esm/models/anthropicthinkingturns.js +19 -0
- package/esm/models/anthropictooluseskeep.d.ts +21 -0
- package/esm/models/anthropictooluseskeep.js +19 -0
- package/esm/models/anthropictoolusestrigger.d.ts +14 -0
- package/esm/models/anthropictoolusestrigger.js +14 -0
- package/esm/models/anthropicurlimagesource.d.ts +14 -0
- package/esm/models/anthropicurlimagesource.js +14 -0
- package/esm/models/anthropicurlpdfsource.d.ts +14 -0
- package/esm/models/anthropicurlpdfsource.js +14 -0
- package/esm/models/anthropicwebsearchresultblockparam.d.ts +27 -0
- package/esm/models/anthropicwebsearchresultblockparam.js +28 -0
- package/esm/models/anthropicwebsearchtooluserlocation.d.ts +27 -0
- package/esm/models/anthropicwebsearchtooluserlocation.js +22 -0
- package/esm/models/applypatchcallitem.d.ts +45 -0
- package/esm/models/applypatchcallitem.js +47 -0
- package/esm/models/applypatchcalloperation.d.ts +20 -0
- package/esm/models/applypatchcalloperation.js +29 -0
- package/esm/models/applypatchcalloperationdiffdeltaevent.d.ts +17 -0
- package/esm/models/applypatchcalloperationdiffdeltaevent.js +25 -0
- package/esm/models/applypatchcalloperationdiffdoneevent.d.ts +17 -0
- package/esm/models/applypatchcalloperationdiffdoneevent.js +25 -0
- package/esm/models/applypatchcalloutputitem.d.ts +46 -0
- package/esm/models/applypatchcalloutputitem.js +54 -0
- package/esm/models/applypatchcallstatus.d.ts +18 -0
- package/esm/models/applypatchcallstatus.js +17 -0
- package/esm/models/applypatchcreatefileoperation.d.ts +24 -0
- package/esm/models/applypatchcreatefileoperation.js +25 -0
- package/esm/models/applypatchdeletefileoperation.d.ts +22 -0
- package/esm/models/applypatchdeletefileoperation.js +23 -0
- package/esm/models/applypatchengineenum.d.ts +17 -0
- package/esm/models/applypatchengineenum.js +16 -0
- package/esm/models/applypatchservertoolconfig.d.ts +19 -0
- package/esm/models/applypatchservertoolconfig.js +14 -0
- package/esm/models/applypatchservertoolopenrouter.d.ts +21 -0
- package/esm/models/applypatchservertoolopenrouter.js +15 -0
- package/esm/models/applypatchupdatefileoperation.d.ts +24 -0
- package/esm/models/applypatchupdatefileoperation.js +25 -0
- package/esm/models/autorouterplugin.d.ts +5 -0
- package/esm/models/autorouterplugin.js +2 -0
- package/esm/models/baseinputsunion.d.ts +6 -2
- package/esm/models/baseinputsunion.js +12 -0
- package/esm/models/byokkey.d.ts +58 -0
- package/esm/models/byokkey.js +37 -0
- package/esm/models/byokproviderslug.d.ts +98 -0
- package/esm/models/byokproviderslug.js +97 -0
- package/esm/models/chatrequest.d.ts +26 -15
- package/esm/models/chatrequest.js +17 -8
- package/esm/models/chatservertoolchoice.d.ts +18 -0
- package/esm/models/chatservertoolchoice.js +13 -0
- package/esm/models/chattoolchoice.d.ts +3 -2
- package/esm/models/chattoolchoice.js +2 -0
- package/esm/models/chatwebsearchshorthand.d.ts +2 -2
- package/esm/models/compactionitem.d.ts +26 -0
- package/esm/models/compactionitem.js +25 -0
- package/esm/models/contentfilterbuiltinentry.d.ts +1 -10
- package/esm/models/contentfilterbuiltinentry.js +2 -11
- package/esm/models/contentfilterbuiltinentryinput.d.ts +32 -0
- package/esm/models/contentfilterbuiltinentryinput.js +17 -0
- package/esm/models/contentpartinputaudio.d.ts +15 -0
- package/esm/models/contentpartinputaudio.js +20 -0
- package/esm/models/contentpartinputfile.d.ts +15 -0
- package/esm/models/contentpartinputfile.js +20 -0
- package/esm/models/contentpartinputvideo.d.ts +15 -0
- package/esm/models/contentpartinputvideo.js +20 -0
- package/esm/models/createbyokkeyrequest.d.ts +51 -0
- package/esm/models/createbyokkeyrequest.js +29 -0
- package/esm/models/createbyokkeyresponse.d.ts +11 -0
- package/esm/models/createbyokkeyresponse.js +15 -0
- package/esm/models/createguardrailrequest.d.ts +27 -5
- package/esm/models/createguardrailrequest.js +10 -2
- package/esm/models/createobservabilitydestinationrequest.d.ts +89 -0
- package/esm/models/createobservabilitydestinationrequest.js +58 -0
- package/esm/models/createobservabilitydestinationresponse.d.ts +11 -0
- package/esm/models/createobservabilitydestinationresponse.js +15 -0
- package/esm/models/createpresetfrominferenceresponse.d.ts +17 -0
- package/esm/models/createpresetfrominferenceresponse.js +15 -0
- package/esm/models/createworkspacerequest.d.ts +1 -1
- package/esm/models/customtoolcallinputdeltaevent.d.ts +17 -0
- package/esm/models/customtoolcallinputdeltaevent.js +25 -0
- package/esm/models/customtoolcallinputdoneevent.d.ts +17 -0
- package/esm/models/customtoolcallinputdoneevent.js +25 -0
- package/esm/models/customtoolcallitem.d.ts +35 -0
- package/esm/models/customtoolcallitem.js +28 -0
- package/esm/models/customtoolcalloutputitem.d.ts +68 -0
- package/esm/models/customtoolcalloutputitem.js +78 -0
- package/esm/models/deletebyokkeyresponse.d.ts +13 -0
- package/esm/models/deletebyokkeyresponse.js +14 -0
- package/esm/models/deleteobservabilitydestinationresponse.d.ts +13 -0
- package/esm/models/deleteobservabilitydestinationresponse.js +14 -0
- package/esm/models/easyinputmessage.d.ts +1 -0
- package/esm/models/easyinputmessage.js +1 -0
- package/esm/models/filesearchservertool.d.ts +12 -12
- package/esm/models/filesearchservertool.js +12 -17
- package/esm/models/functioncalloutputitem.d.ts +11 -10
- package/esm/models/functioncalloutputitem.js +7 -6
- package/esm/models/fusionplugin.d.ts +32 -0
- package/esm/models/fusionplugin.js +23 -0
- package/esm/models/fusionservertoolconfig.d.ts +82 -0
- package/esm/models/fusionservertoolconfig.js +52 -0
- package/esm/models/fusionservertoolopenrouter.d.ts +21 -0
- package/esm/models/fusionservertoolopenrouter.js +15 -0
- package/esm/models/generationresponse.d.ts +4 -0
- package/esm/models/generationresponse.js +2 -0
- package/esm/models/getbyokkeyresponse.d.ts +11 -0
- package/esm/models/getbyokkeyresponse.js +15 -0
- package/esm/models/getobservabilitydestinationresponse.d.ts +11 -0
- package/esm/models/getobservabilitydestinationresponse.js +15 -0
- package/esm/models/guardrail.d.ts +19 -1
- package/esm/models/guardrail.js +8 -0
- package/esm/models/index.d.ts +116 -0
- package/esm/models/index.js +116 -0
- package/esm/models/inputimage.d.ts +1 -0
- package/esm/models/inputimage.js +1 -0
- package/esm/models/inputmessageitem.d.ts +1 -0
- package/esm/models/inputmessageitem.js +1 -0
- package/esm/models/inputsunion.d.ts +19 -4
- package/esm/models/inputsunion.js +45 -0
- package/esm/models/itemreferenceitem.d.ts +24 -0
- package/esm/models/itemreferenceitem.js +19 -0
- package/esm/models/listbyokkeysresponse.d.ts +18 -0
- package/esm/models/listbyokkeysresponse.js +21 -0
- package/esm/models/listobservabilitydestinationsresponse.d.ts +18 -0
- package/esm/models/listobservabilitydestinationsresponse.js +21 -0
- package/esm/models/localshellcallitem.d.ts +61 -0
- package/esm/models/localshellcallitem.js +50 -0
- package/esm/models/localshellcalloutputitem.d.ts +36 -0
- package/esm/models/localshellcalloutputitem.js +29 -0
- package/esm/models/mcpapprovalrequestitem.d.ts +30 -0
- package/esm/models/mcpapprovalrequestitem.js +27 -0
- package/esm/models/mcpapprovalresponseitem.d.ts +30 -0
- package/esm/models/mcpapprovalresponseitem.js +27 -0
- package/esm/models/mcpcallitem.d.ts +34 -0
- package/esm/models/mcpcallitem.js +29 -0
- package/esm/models/mcplisttoolsitem.d.ts +50 -0
- package/esm/models/mcplisttoolsitem.js +41 -0
- package/esm/models/messagesadvisortoolresultblock.d.ts +23 -0
- package/esm/models/messagesadvisortoolresultblock.js +20 -0
- package/esm/models/messagesmessageparam.d.ts +228 -0
- package/esm/models/messagesmessageparam.js +261 -0
- package/esm/models/messagesoutputconfig.d.ts +93 -0
- package/esm/models/messagesoutputconfig.js +61 -0
- package/esm/models/messagesrequest.d.ts +630 -0
- package/esm/models/messagesrequest.js +607 -0
- package/esm/models/multimodalmedia.d.ts +14 -0
- package/esm/models/multimodalmedia.js +14 -0
- package/esm/models/observabilityarizedestination.d.ts +67 -0
- package/esm/models/observabilityarizedestination.js +48 -0
- package/esm/models/observabilitybraintrustdestination.d.ts +66 -0
- package/esm/models/observabilitybraintrustdestination.js +47 -0
- package/esm/models/observabilityclickhousedestination.d.ts +71 -0
- package/esm/models/observabilityclickhousedestination.js +49 -0
- package/esm/models/observabilitydatadogdestination.d.ts +75 -0
- package/esm/models/observabilitydatadogdestination.js +47 -0
- package/esm/models/observabilitydestination.d.ts +26 -0
- package/esm/models/observabilitydestination.js +47 -0
- package/esm/models/observabilityfilterrulesconfig.d.ts +112 -0
- package/esm/models/observabilityfilterrulesconfig.js +119 -0
- package/esm/models/observabilitygrafanadestination.d.ts +66 -0
- package/esm/models/observabilitygrafanadestination.js +47 -0
- package/esm/models/observabilitylangfusedestination.d.ts +66 -0
- package/esm/models/observabilitylangfusedestination.js +47 -0
- package/esm/models/observabilitylangsmithdestination.d.ts +73 -0
- package/esm/models/observabilitylangsmithdestination.js +48 -0
- package/esm/models/observabilitynewrelicdestination.d.ts +73 -0
- package/esm/models/observabilitynewrelicdestination.js +54 -0
- package/esm/models/observabilityopikdestination.d.ts +66 -0
- package/esm/models/observabilityopikdestination.js +47 -0
- package/esm/models/observabilityotelcollectordestination.d.ts +64 -0
- package/esm/models/observabilityotelcollectordestination.js +45 -0
- package/esm/models/observabilityposthogdestination.d.ts +65 -0
- package/esm/models/observabilityposthogdestination.js +46 -0
- package/esm/models/observabilityrampdestination.d.ts +68 -0
- package/esm/models/observabilityrampdestination.js +46 -0
- package/esm/models/observabilitys3destination.d.ts +77 -0
- package/esm/models/observabilitys3destination.js +52 -0
- package/esm/models/observabilitysentrydestination.d.ts +65 -0
- package/esm/models/observabilitysentrydestination.js +46 -0
- package/esm/models/observabilitysnowflakedestination.d.ts +69 -0
- package/esm/models/observabilitysnowflakedestination.js +50 -0
- package/esm/models/observabilityweavedestination.d.ts +67 -0
- package/esm/models/observabilityweavedestination.js +48 -0
- package/esm/models/observabilitywebhookdestination.d.ts +70 -0
- package/esm/models/observabilitywebhookdestination.js +54 -0
- package/esm/models/openairesponsecustomtoolcall.d.ts +25 -0
- package/esm/models/openairesponsecustomtoolcall.js +29 -0
- package/esm/models/openairesponsecustomtoolcalloutput.d.ts +38 -0
- package/esm/models/openairesponsecustomtoolcalloutput.js +59 -0
- package/esm/models/openairesponsestoolchoiceunion.d.ts +44 -2
- package/esm/models/openairesponsestoolchoiceunion.js +46 -0
- package/esm/models/operations/createbyokkey.d.ts +56 -0
- package/esm/models/operations/createbyokkey.js +23 -0
- package/esm/models/operations/createembeddings.d.ts +8 -4
- package/esm/models/operations/createembeddings.js +8 -0
- package/esm/models/operations/createobservabilitydestination.d.ts +56 -0
- package/esm/models/operations/createobservabilitydestination.js +23 -0
- package/esm/models/operations/createpresetschatcompletions.d.ts +61 -0
- package/esm/models/operations/createpresetschatcompletions.js +24 -0
- package/esm/models/operations/createpresetsmessages.d.ts +61 -0
- package/esm/models/operations/createpresetsmessages.js +24 -0
- package/esm/models/operations/createpresetsresponses.d.ts +61 -0
- package/esm/models/operations/createpresetsresponses.js +24 -0
- package/esm/models/operations/deletebyokkey.d.ts +58 -0
- package/esm/models/operations/deletebyokkey.js +21 -0
- package/esm/models/operations/deleteobservabilitydestination.d.ts +58 -0
- package/esm/models/operations/deleteobservabilitydestination.js +21 -0
- package/esm/models/operations/getbyokkey.d.ts +58 -0
- package/esm/models/operations/getbyokkey.js +21 -0
- package/esm/models/operations/getobservabilitydestination.d.ts +58 -0
- package/esm/models/operations/getobservabilitydestination.js +21 -0
- package/esm/models/operations/getrankingsdaily.d.ts +63 -0
- package/esm/models/operations/getrankingsdaily.js +24 -0
- package/esm/models/operations/index.d.ts +14 -0
- package/esm/models/operations/index.js +14 -0
- package/esm/models/operations/listbyokkeys.d.ts +176 -0
- package/esm/models/operations/listbyokkeys.js +129 -0
- package/esm/models/operations/listobservabilitydestinations.d.ts +77 -0
- package/esm/models/operations/listobservabilitydestinations.js +37 -0
- package/esm/models/operations/updatebyokkey.d.ts +61 -0
- package/esm/models/operations/updatebyokkey.js +24 -0
- package/esm/models/operations/updateobservabilitydestination.d.ts +61 -0
- package/esm/models/operations/updateobservabilitydestination.js +24 -0
- package/esm/models/outputapplypatchcallitem.d.ts +25 -0
- package/esm/models/outputapplypatchcallitem.js +25 -0
- package/esm/models/outputapplypatchservertoolitem.d.ts +9 -5
- package/esm/models/outputapplypatchservertoolitem.js +14 -4
- package/esm/models/outputcustomtoolcallitem.d.ts +42 -0
- package/esm/models/outputcustomtoolcallitem.js +47 -0
- package/esm/models/outputfusionservertoolitem.d.ts +100 -0
- package/esm/models/outputfusionservertoolitem.js +100 -0
- package/esm/models/outputitems.d.ts +7 -2
- package/esm/models/outputitems.js +6 -0
- package/esm/models/outputwebsearchservertoolitem.d.ts +8 -8
- package/esm/models/outputwebsearchservertoolitem.js +8 -9
- package/esm/models/pipelinestage.d.ts +1 -0
- package/esm/models/pipelinestage.js +1 -0
- package/esm/models/presetdesignatedversion.d.ts +22 -0
- package/esm/models/presetdesignatedversion.js +30 -0
- package/esm/models/presetwithdesignatedversion.d.ts +37 -0
- package/esm/models/presetwithdesignatedversion.js +45 -0
- package/esm/models/providername.d.ts +3 -0
- package/esm/models/providername.js +3 -0
- package/esm/models/provideroptions.d.ts +18 -0
- package/esm/models/provideroptions.js +3 -0
- package/esm/models/providerresponse.d.ts +3 -0
- package/esm/models/providerresponse.js +3 -0
- package/esm/models/rankingsdailyitem.d.ts +21 -0
- package/esm/models/rankingsdailyitem.js +22 -0
- package/esm/models/rankingsdailymeta.d.ts +38 -0
- package/esm/models/rankingsdailymeta.js +32 -0
- package/esm/models/rankingsdailyresponse.d.ts +16 -0
- package/esm/models/rankingsdailyresponse.js +17 -0
- package/esm/models/responsesrequest.d.ts +29 -13
- package/esm/models/responsesrequest.js +19 -0
- package/esm/models/routingstrategy.d.ts +1 -0
- package/esm/models/routingstrategy.js +1 -0
- package/esm/models/searchqualitylevel.d.ts +2 -2
- package/esm/models/searchqualitylevel.js +1 -1
- package/esm/models/shellcallitem.d.ts +54 -0
- package/esm/models/shellcallitem.js +50 -0
- package/esm/models/shellcalloutputitem.d.ts +58 -0
- package/esm/models/shellcalloutputitem.js +55 -0
- package/esm/models/stopservertoolswhencondition.d.ts +16 -0
- package/esm/models/stopservertoolswhencondition.js +22 -0
- package/esm/models/stopservertoolswhenfinishreasonis.d.ts +17 -0
- package/esm/models/stopservertoolswhenfinishreasonis.js +14 -0
- package/esm/models/stopservertoolswhenhastoolcall.d.ts +17 -0
- package/esm/models/stopservertoolswhenhastoolcall.js +19 -0
- package/esm/models/stopservertoolswhenmaxcost.d.ts +17 -0
- package/esm/models/stopservertoolswhenmaxcost.js +19 -0
- package/esm/models/stopservertoolswhenmaxtokensused.d.ts +17 -0
- package/esm/models/stopservertoolswhenmaxtokensused.js +19 -0
- package/esm/models/stopservertoolswhenstepcountis.d.ts +17 -0
- package/esm/models/stopservertoolswhenstepcountis.js +19 -0
- package/esm/models/streamevents.d.ts +5 -1
- package/esm/models/streamevents.js +8 -0
- package/esm/models/updatebyokkeyrequest.d.ts +40 -0
- package/esm/models/updatebyokkeyrequest.js +25 -0
- package/esm/models/updatebyokkeyresponse.d.ts +11 -0
- package/esm/models/updatebyokkeyresponse.js +15 -0
- package/esm/models/updateguardrailrequest.d.ts +27 -5
- package/esm/models/updateguardrailrequest.js +10 -2
- package/esm/models/updateobservabilitydestinationrequest.d.ts +47 -0
- package/esm/models/updateobservabilitydestinationrequest.js +29 -0
- package/esm/models/updateobservabilitydestinationresponse.d.ts +11 -0
- package/esm/models/updateobservabilitydestinationresponse.js +15 -0
- package/esm/models/updateworkspacerequest.d.ts +1 -1
- package/esm/models/videogenerationrequest.d.ts +20 -0
- package/esm/models/videogenerationrequest.js +5 -0
- package/esm/models/videomodel.d.ts +10 -0
- package/esm/models/videomodel.js +10 -0
- package/esm/models/webfetchengineenum.d.ts +4 -3
- package/esm/models/webfetchengineenum.js +3 -2
- package/esm/models/webfetchplugin.d.ts +32 -0
- package/esm/models/webfetchplugin.js +25 -0
- package/esm/models/webfetchservertoolconfig.d.ts +1 -1
- package/esm/models/websearchconfig.d.ts +2 -2
- package/esm/models/websearchengineenum.d.ts +1 -1
- package/esm/models/websearchengineenum.js +1 -1
- package/esm/models/websearchservertoolconfig.d.ts +2 -2
- package/esm/sdk/byok.d.ts +44 -0
- package/esm/sdk/byok.js +60 -0
- package/esm/sdk/datasets.d.ts +31 -0
- package/esm/sdk/datasets.js +37 -0
- package/esm/sdk/observability.d.ts +44 -0
- package/esm/sdk/observability.js +60 -0
- package/esm/sdk/presets.d.ts +27 -0
- package/esm/sdk/presets.js +39 -0
- package/esm/sdk/sdk.d.ts +12 -0
- package/esm/sdk/sdk.js +16 -0
- package/jsr.json +1 -1
- package/package.json +10 -6
- package/tsconfig.json +0 -2
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type GetBYOKKeyGlobals = {
|
|
3
|
+
/**
|
|
4
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* This is used to track API usage per application.
|
|
8
|
+
*/
|
|
9
|
+
httpReferer?: string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
*/
|
|
15
|
+
appTitle?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
*/
|
|
21
|
+
appCategories?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
export type GetBYOKKeyRequest = {
|
|
24
|
+
/**
|
|
25
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* This is used to track API usage per application.
|
|
29
|
+
*/
|
|
30
|
+
httpReferer?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
*/
|
|
36
|
+
appTitle?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
*/
|
|
42
|
+
appCategories?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The BYOK credential ID (UUID).
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
};
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type GetBYOKKeyRequest$Outbound = {
|
|
50
|
+
"HTTP-Referer"?: string | undefined;
|
|
51
|
+
appTitle?: string | undefined;
|
|
52
|
+
appCategories?: string | undefined;
|
|
53
|
+
id: string;
|
|
54
|
+
};
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare const GetBYOKKeyRequest$outboundSchema: z.ZodType<GetBYOKKeyRequest$Outbound, GetBYOKKeyRequest>;
|
|
57
|
+
export declare function getBYOKKeyRequestToJSON(getBYOKKeyRequest: GetBYOKKeyRequest): string;
|
|
58
|
+
//# sourceMappingURL=getbyokkey.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 883c19bd90fb
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const GetBYOKKeyRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
appTitle: z.string().optional(),
|
|
11
|
+
appCategories: z.string().optional(),
|
|
12
|
+
id: z.string(),
|
|
13
|
+
}).transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
httpReferer: "HTTP-Referer",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function getBYOKKeyRequestToJSON(getBYOKKeyRequest) {
|
|
19
|
+
return JSON.stringify(GetBYOKKeyRequest$outboundSchema.parse(getBYOKKeyRequest));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=getbyokkey.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type GetObservabilityDestinationGlobals = {
|
|
3
|
+
/**
|
|
4
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* This is used to track API usage per application.
|
|
8
|
+
*/
|
|
9
|
+
httpReferer?: string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
*/
|
|
15
|
+
appTitle?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
*/
|
|
21
|
+
appCategories?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
export type GetObservabilityDestinationRequest = {
|
|
24
|
+
/**
|
|
25
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* This is used to track API usage per application.
|
|
29
|
+
*/
|
|
30
|
+
httpReferer?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
*/
|
|
36
|
+
appTitle?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
*/
|
|
42
|
+
appCategories?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The destination ID (UUID).
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
};
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type GetObservabilityDestinationRequest$Outbound = {
|
|
50
|
+
"HTTP-Referer"?: string | undefined;
|
|
51
|
+
appTitle?: string | undefined;
|
|
52
|
+
appCategories?: string | undefined;
|
|
53
|
+
id: string;
|
|
54
|
+
};
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare const GetObservabilityDestinationRequest$outboundSchema: z.ZodType<GetObservabilityDestinationRequest$Outbound, GetObservabilityDestinationRequest>;
|
|
57
|
+
export declare function getObservabilityDestinationRequestToJSON(getObservabilityDestinationRequest: GetObservabilityDestinationRequest): string;
|
|
58
|
+
//# sourceMappingURL=getobservabilitydestination.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 4d97e48a6b92
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const GetObservabilityDestinationRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
appTitle: z.string().optional(),
|
|
11
|
+
appCategories: z.string().optional(),
|
|
12
|
+
id: z.string(),
|
|
13
|
+
}).transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
httpReferer: "HTTP-Referer",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function getObservabilityDestinationRequestToJSON(getObservabilityDestinationRequest) {
|
|
19
|
+
return JSON.stringify(GetObservabilityDestinationRequest$outboundSchema.parse(getObservabilityDestinationRequest));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=getobservabilitydestination.js.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type GetRankingsDailyGlobals = {
|
|
3
|
+
/**
|
|
4
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* This is used to track API usage per application.
|
|
8
|
+
*/
|
|
9
|
+
httpReferer?: string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
*/
|
|
15
|
+
appTitle?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
*/
|
|
21
|
+
appCategories?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
export type GetRankingsDailyRequest = {
|
|
24
|
+
/**
|
|
25
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* This is used to track API usage per application.
|
|
29
|
+
*/
|
|
30
|
+
httpReferer?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
*/
|
|
36
|
+
appTitle?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
*/
|
|
42
|
+
appCategories?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Start of the date window in YYYY-MM-DD (UTC), inclusive. Defaults to 30 days before `end_date`. The dataset begins at 2025-01-01; earlier values are clamped forward to that floor and the resolved value is echoed in `meta.start_date`.
|
|
45
|
+
*/
|
|
46
|
+
startDate?: string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* End of the date window in YYYY-MM-DD (UTC), inclusive. Defaults to the most recent completed UTC day. Must be on or after 2025-01-01; earlier values are rejected with a 400.
|
|
49
|
+
*/
|
|
50
|
+
endDate?: string | undefined;
|
|
51
|
+
};
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type GetRankingsDailyRequest$Outbound = {
|
|
54
|
+
"HTTP-Referer"?: string | undefined;
|
|
55
|
+
appTitle?: string | undefined;
|
|
56
|
+
appCategories?: string | undefined;
|
|
57
|
+
start_date?: string | undefined;
|
|
58
|
+
end_date?: string | undefined;
|
|
59
|
+
};
|
|
60
|
+
/** @internal */
|
|
61
|
+
export declare const GetRankingsDailyRequest$outboundSchema: z.ZodType<GetRankingsDailyRequest$Outbound, GetRankingsDailyRequest>;
|
|
62
|
+
export declare function getRankingsDailyRequestToJSON(getRankingsDailyRequest: GetRankingsDailyRequest): string;
|
|
63
|
+
//# sourceMappingURL=getrankingsdaily.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b165b39aba3b
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const GetRankingsDailyRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
appTitle: z.string().optional(),
|
|
11
|
+
appCategories: z.string().optional(),
|
|
12
|
+
startDate: z.string().optional(),
|
|
13
|
+
endDate: z.string().optional(),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
httpReferer: "HTTP-Referer",
|
|
17
|
+
startDate: "start_date",
|
|
18
|
+
endDate: "end_date",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function getRankingsDailyRequestToJSON(getRankingsDailyRequest) {
|
|
22
|
+
return JSON.stringify(GetRankingsDailyRequest$outboundSchema.parse(getRankingsDailyRequest));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=getrankingsdaily.js.map
|
|
@@ -7,27 +7,38 @@ export * from "./bulkunassignmembersfromguardrail.js";
|
|
|
7
7
|
export * from "./createaudiospeech.js";
|
|
8
8
|
export * from "./createaudiotranscriptions.js";
|
|
9
9
|
export * from "./createauthkeyscode.js";
|
|
10
|
+
export * from "./createbyokkey.js";
|
|
10
11
|
export * from "./createembeddings.js";
|
|
11
12
|
export * from "./createguardrail.js";
|
|
12
13
|
export * from "./createkeys.js";
|
|
14
|
+
export * from "./createobservabilitydestination.js";
|
|
15
|
+
export * from "./createpresetschatcompletions.js";
|
|
16
|
+
export * from "./createpresetsmessages.js";
|
|
17
|
+
export * from "./createpresetsresponses.js";
|
|
13
18
|
export * from "./creatererank.js";
|
|
14
19
|
export * from "./createresponses.js";
|
|
15
20
|
export * from "./createvideos.js";
|
|
16
21
|
export * from "./createworkspace.js";
|
|
22
|
+
export * from "./deletebyokkey.js";
|
|
17
23
|
export * from "./deleteguardrail.js";
|
|
18
24
|
export * from "./deletekeys.js";
|
|
25
|
+
export * from "./deleteobservabilitydestination.js";
|
|
19
26
|
export * from "./deleteworkspace.js";
|
|
20
27
|
export * from "./exchangeauthcodeforapikey.js";
|
|
28
|
+
export * from "./getbyokkey.js";
|
|
21
29
|
export * from "./getcredits.js";
|
|
22
30
|
export * from "./getcurrentkey.js";
|
|
23
31
|
export * from "./getgeneration.js";
|
|
24
32
|
export * from "./getguardrail.js";
|
|
25
33
|
export * from "./getkey.js";
|
|
26
34
|
export * from "./getmodels.js";
|
|
35
|
+
export * from "./getobservabilitydestination.js";
|
|
36
|
+
export * from "./getrankingsdaily.js";
|
|
27
37
|
export * from "./getuseractivity.js";
|
|
28
38
|
export * from "./getvideos.js";
|
|
29
39
|
export * from "./getworkspace.js";
|
|
30
40
|
export * from "./list.js";
|
|
41
|
+
export * from "./listbyokkeys.js";
|
|
31
42
|
export * from "./listembeddingsmodels.js";
|
|
32
43
|
export * from "./listendpoints.js";
|
|
33
44
|
export * from "./listendpointszdr.js";
|
|
@@ -39,13 +50,16 @@ export * from "./listkeyassignments.js";
|
|
|
39
50
|
export * from "./listmemberassignments.js";
|
|
40
51
|
export * from "./listmodelscount.js";
|
|
41
52
|
export * from "./listmodelsuser.js";
|
|
53
|
+
export * from "./listobservabilitydestinations.js";
|
|
42
54
|
export * from "./listorganizationmembers.js";
|
|
43
55
|
export * from "./listproviders.js";
|
|
44
56
|
export * from "./listvideoscontent.js";
|
|
45
57
|
export * from "./listvideosmodels.js";
|
|
46
58
|
export * from "./listworkspaces.js";
|
|
47
59
|
export * from "./sendchatcompletionrequest.js";
|
|
60
|
+
export * from "./updatebyokkey.js";
|
|
48
61
|
export * from "./updateguardrail.js";
|
|
49
62
|
export * from "./updatekeys.js";
|
|
63
|
+
export * from "./updateobservabilitydestination.js";
|
|
50
64
|
export * from "./updateworkspace.js";
|
|
51
65
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,27 +11,38 @@ export * from "./bulkunassignmembersfromguardrail.js";
|
|
|
11
11
|
export * from "./createaudiospeech.js";
|
|
12
12
|
export * from "./createaudiotranscriptions.js";
|
|
13
13
|
export * from "./createauthkeyscode.js";
|
|
14
|
+
export * from "./createbyokkey.js";
|
|
14
15
|
export * from "./createembeddings.js";
|
|
15
16
|
export * from "./createguardrail.js";
|
|
16
17
|
export * from "./createkeys.js";
|
|
18
|
+
export * from "./createobservabilitydestination.js";
|
|
19
|
+
export * from "./createpresetschatcompletions.js";
|
|
20
|
+
export * from "./createpresetsmessages.js";
|
|
21
|
+
export * from "./createpresetsresponses.js";
|
|
17
22
|
export * from "./creatererank.js";
|
|
18
23
|
export * from "./createresponses.js";
|
|
19
24
|
export * from "./createvideos.js";
|
|
20
25
|
export * from "./createworkspace.js";
|
|
26
|
+
export * from "./deletebyokkey.js";
|
|
21
27
|
export * from "./deleteguardrail.js";
|
|
22
28
|
export * from "./deletekeys.js";
|
|
29
|
+
export * from "./deleteobservabilitydestination.js";
|
|
23
30
|
export * from "./deleteworkspace.js";
|
|
24
31
|
export * from "./exchangeauthcodeforapikey.js";
|
|
32
|
+
export * from "./getbyokkey.js";
|
|
25
33
|
export * from "./getcredits.js";
|
|
26
34
|
export * from "./getcurrentkey.js";
|
|
27
35
|
export * from "./getgeneration.js";
|
|
28
36
|
export * from "./getguardrail.js";
|
|
29
37
|
export * from "./getkey.js";
|
|
30
38
|
export * from "./getmodels.js";
|
|
39
|
+
export * from "./getobservabilitydestination.js";
|
|
40
|
+
export * from "./getrankingsdaily.js";
|
|
31
41
|
export * from "./getuseractivity.js";
|
|
32
42
|
export * from "./getvideos.js";
|
|
33
43
|
export * from "./getworkspace.js";
|
|
34
44
|
export * from "./list.js";
|
|
45
|
+
export * from "./listbyokkeys.js";
|
|
35
46
|
export * from "./listembeddingsmodels.js";
|
|
36
47
|
export * from "./listendpoints.js";
|
|
37
48
|
export * from "./listendpointszdr.js";
|
|
@@ -43,13 +54,16 @@ export * from "./listkeyassignments.js";
|
|
|
43
54
|
export * from "./listmemberassignments.js";
|
|
44
55
|
export * from "./listmodelscount.js";
|
|
45
56
|
export * from "./listmodelsuser.js";
|
|
57
|
+
export * from "./listobservabilitydestinations.js";
|
|
46
58
|
export * from "./listorganizationmembers.js";
|
|
47
59
|
export * from "./listproviders.js";
|
|
48
60
|
export * from "./listvideoscontent.js";
|
|
49
61
|
export * from "./listvideosmodels.js";
|
|
50
62
|
export * from "./listworkspaces.js";
|
|
51
63
|
export * from "./sendchatcompletionrequest.js";
|
|
64
|
+
export * from "./updatebyokkey.js";
|
|
52
65
|
export * from "./updateguardrail.js";
|
|
53
66
|
export * from "./updatekeys.js";
|
|
67
|
+
export * from "./updateobservabilitydestination.js";
|
|
54
68
|
export * from "./updateworkspace.js";
|
|
55
69
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
import * as models from "../index.js";
|
|
6
|
+
export type ListBYOKKeysGlobals = {
|
|
7
|
+
/**
|
|
8
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* This is used to track API usage per application.
|
|
12
|
+
*/
|
|
13
|
+
httpReferer?: string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
*/
|
|
19
|
+
appTitle?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
*/
|
|
25
|
+
appCategories?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Optional provider slug to filter by (e.g. `openai`, `anthropic`, `amazon-bedrock`).
|
|
29
|
+
*/
|
|
30
|
+
export declare const Provider: {
|
|
31
|
+
readonly Ai21: "ai21";
|
|
32
|
+
readonly AionLabs: "aion-labs";
|
|
33
|
+
readonly Akashml: "akashml";
|
|
34
|
+
readonly Alibaba: "alibaba";
|
|
35
|
+
readonly AmazonBedrock: "amazon-bedrock";
|
|
36
|
+
readonly AmazonNova: "amazon-nova";
|
|
37
|
+
readonly Ambient: "ambient";
|
|
38
|
+
readonly Anthropic: "anthropic";
|
|
39
|
+
readonly ArceeAi: "arcee-ai";
|
|
40
|
+
readonly AtlasCloud: "atlas-cloud";
|
|
41
|
+
readonly Avian: "avian";
|
|
42
|
+
readonly Azure: "azure";
|
|
43
|
+
readonly Baidu: "baidu";
|
|
44
|
+
readonly Baseten: "baseten";
|
|
45
|
+
readonly BlackForestLabs: "black-forest-labs";
|
|
46
|
+
readonly Byteplus: "byteplus";
|
|
47
|
+
readonly Cerebras: "cerebras";
|
|
48
|
+
readonly Chutes: "chutes";
|
|
49
|
+
readonly Cirrascale: "cirrascale";
|
|
50
|
+
readonly Clarifai: "clarifai";
|
|
51
|
+
readonly Cloudflare: "cloudflare";
|
|
52
|
+
readonly Cohere: "cohere";
|
|
53
|
+
readonly Crusoe: "crusoe";
|
|
54
|
+
readonly Darkbloom: "darkbloom";
|
|
55
|
+
readonly Deepinfra: "deepinfra";
|
|
56
|
+
readonly Deepseek: "deepseek";
|
|
57
|
+
readonly Dekallm: "dekallm";
|
|
58
|
+
readonly Digitalocean: "digitalocean";
|
|
59
|
+
readonly Featherless: "featherless";
|
|
60
|
+
readonly Fireworks: "fireworks";
|
|
61
|
+
readonly Friendli: "friendli";
|
|
62
|
+
readonly Gmicloud: "gmicloud";
|
|
63
|
+
readonly GoogleAiStudio: "google-ai-studio";
|
|
64
|
+
readonly GoogleVertex: "google-vertex";
|
|
65
|
+
readonly Groq: "groq";
|
|
66
|
+
readonly Hyperbolic: "hyperbolic";
|
|
67
|
+
readonly Inception: "inception";
|
|
68
|
+
readonly Inceptron: "inceptron";
|
|
69
|
+
readonly InferenceNet: "inference-net";
|
|
70
|
+
readonly Infermatic: "infermatic";
|
|
71
|
+
readonly Inflection: "inflection";
|
|
72
|
+
readonly IoNet: "io-net";
|
|
73
|
+
readonly Ionstream: "ionstream";
|
|
74
|
+
readonly Liquid: "liquid";
|
|
75
|
+
readonly Mancer: "mancer";
|
|
76
|
+
readonly Mara: "mara";
|
|
77
|
+
readonly Minimax: "minimax";
|
|
78
|
+
readonly Mistral: "mistral";
|
|
79
|
+
readonly Modelrun: "modelrun";
|
|
80
|
+
readonly Modular: "modular";
|
|
81
|
+
readonly Moonshotai: "moonshotai";
|
|
82
|
+
readonly Morph: "morph";
|
|
83
|
+
readonly Ncompass: "ncompass";
|
|
84
|
+
readonly Nebius: "nebius";
|
|
85
|
+
readonly NexAgi: "nex-agi";
|
|
86
|
+
readonly Nextbit: "nextbit";
|
|
87
|
+
readonly Novita: "novita";
|
|
88
|
+
readonly Nvidia: "nvidia";
|
|
89
|
+
readonly OpenInference: "open-inference";
|
|
90
|
+
readonly Openai: "openai";
|
|
91
|
+
readonly Parasail: "parasail";
|
|
92
|
+
readonly Perceptron: "perceptron";
|
|
93
|
+
readonly Perplexity: "perplexity";
|
|
94
|
+
readonly Phala: "phala";
|
|
95
|
+
readonly Poolside: "poolside";
|
|
96
|
+
readonly Recraft: "recraft";
|
|
97
|
+
readonly Reka: "reka";
|
|
98
|
+
readonly Relace: "relace";
|
|
99
|
+
readonly Sambanova: "sambanova";
|
|
100
|
+
readonly Seed: "seed";
|
|
101
|
+
readonly Siliconflow: "siliconflow";
|
|
102
|
+
readonly Sourceful: "sourceful";
|
|
103
|
+
readonly Stepfun: "stepfun";
|
|
104
|
+
readonly Streamlake: "streamlake";
|
|
105
|
+
readonly Switchpoint: "switchpoint";
|
|
106
|
+
readonly Together: "together";
|
|
107
|
+
readonly Upstage: "upstage";
|
|
108
|
+
readonly Venice: "venice";
|
|
109
|
+
readonly Wandb: "wandb";
|
|
110
|
+
readonly Xai: "xai";
|
|
111
|
+
readonly Xiaomi: "xiaomi";
|
|
112
|
+
readonly ZAi: "z-ai";
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Optional provider slug to filter by (e.g. `openai`, `anthropic`, `amazon-bedrock`).
|
|
116
|
+
*/
|
|
117
|
+
export type Provider = OpenEnum<typeof Provider>;
|
|
118
|
+
export type ListBYOKKeysRequest = {
|
|
119
|
+
/**
|
|
120
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
121
|
+
*
|
|
122
|
+
* @remarks
|
|
123
|
+
* This is used to track API usage per application.
|
|
124
|
+
*/
|
|
125
|
+
httpReferer?: string | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
128
|
+
*
|
|
129
|
+
* @remarks
|
|
130
|
+
*/
|
|
131
|
+
appTitle?: string | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
134
|
+
*
|
|
135
|
+
* @remarks
|
|
136
|
+
*/
|
|
137
|
+
appCategories?: string | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* Number of records to skip for pagination
|
|
140
|
+
*/
|
|
141
|
+
offset?: number | null | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* Maximum number of records to return (max 100)
|
|
144
|
+
*/
|
|
145
|
+
limit?: number | undefined;
|
|
146
|
+
/**
|
|
147
|
+
* Optional workspace ID to filter by. Defaults to the authenticated entity's default workspace.
|
|
148
|
+
*/
|
|
149
|
+
workspaceId?: string | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* Optional provider slug to filter by (e.g. `openai`, `anthropic`, `amazon-bedrock`).
|
|
152
|
+
*/
|
|
153
|
+
provider?: Provider | undefined;
|
|
154
|
+
};
|
|
155
|
+
export type ListBYOKKeysResponse = {
|
|
156
|
+
result: models.ListBYOKKeysResponse;
|
|
157
|
+
};
|
|
158
|
+
/** @internal */
|
|
159
|
+
export declare const Provider$outboundSchema: z.ZodType<string, Provider>;
|
|
160
|
+
/** @internal */
|
|
161
|
+
export type ListBYOKKeysRequest$Outbound = {
|
|
162
|
+
"HTTP-Referer"?: string | undefined;
|
|
163
|
+
appTitle?: string | undefined;
|
|
164
|
+
appCategories?: string | undefined;
|
|
165
|
+
offset?: number | null | undefined;
|
|
166
|
+
limit?: number | undefined;
|
|
167
|
+
workspace_id?: string | undefined;
|
|
168
|
+
provider?: string | undefined;
|
|
169
|
+
};
|
|
170
|
+
/** @internal */
|
|
171
|
+
export declare const ListBYOKKeysRequest$outboundSchema: z.ZodType<ListBYOKKeysRequest$Outbound, ListBYOKKeysRequest>;
|
|
172
|
+
export declare function listBYOKKeysRequestToJSON(listBYOKKeysRequest: ListBYOKKeysRequest): string;
|
|
173
|
+
/** @internal */
|
|
174
|
+
export declare const ListBYOKKeysResponse$inboundSchema: z.ZodType<ListBYOKKeysResponse, unknown>;
|
|
175
|
+
export declare function listBYOKKeysResponseFromJSON(jsonString: string): SafeParseResult<ListBYOKKeysResponse, SDKValidationError>;
|
|
176
|
+
//# sourceMappingURL=listbyokkeys.d.ts.map
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 953de50b8d0e
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import * as models from "../index.js";
|
|
10
|
+
/**
|
|
11
|
+
* Optional provider slug to filter by (e.g. `openai`, `anthropic`, `amazon-bedrock`).
|
|
12
|
+
*/
|
|
13
|
+
export const Provider = {
|
|
14
|
+
Ai21: "ai21",
|
|
15
|
+
AionLabs: "aion-labs",
|
|
16
|
+
Akashml: "akashml",
|
|
17
|
+
Alibaba: "alibaba",
|
|
18
|
+
AmazonBedrock: "amazon-bedrock",
|
|
19
|
+
AmazonNova: "amazon-nova",
|
|
20
|
+
Ambient: "ambient",
|
|
21
|
+
Anthropic: "anthropic",
|
|
22
|
+
ArceeAi: "arcee-ai",
|
|
23
|
+
AtlasCloud: "atlas-cloud",
|
|
24
|
+
Avian: "avian",
|
|
25
|
+
Azure: "azure",
|
|
26
|
+
Baidu: "baidu",
|
|
27
|
+
Baseten: "baseten",
|
|
28
|
+
BlackForestLabs: "black-forest-labs",
|
|
29
|
+
Byteplus: "byteplus",
|
|
30
|
+
Cerebras: "cerebras",
|
|
31
|
+
Chutes: "chutes",
|
|
32
|
+
Cirrascale: "cirrascale",
|
|
33
|
+
Clarifai: "clarifai",
|
|
34
|
+
Cloudflare: "cloudflare",
|
|
35
|
+
Cohere: "cohere",
|
|
36
|
+
Crusoe: "crusoe",
|
|
37
|
+
Darkbloom: "darkbloom",
|
|
38
|
+
Deepinfra: "deepinfra",
|
|
39
|
+
Deepseek: "deepseek",
|
|
40
|
+
Dekallm: "dekallm",
|
|
41
|
+
Digitalocean: "digitalocean",
|
|
42
|
+
Featherless: "featherless",
|
|
43
|
+
Fireworks: "fireworks",
|
|
44
|
+
Friendli: "friendli",
|
|
45
|
+
Gmicloud: "gmicloud",
|
|
46
|
+
GoogleAiStudio: "google-ai-studio",
|
|
47
|
+
GoogleVertex: "google-vertex",
|
|
48
|
+
Groq: "groq",
|
|
49
|
+
Hyperbolic: "hyperbolic",
|
|
50
|
+
Inception: "inception",
|
|
51
|
+
Inceptron: "inceptron",
|
|
52
|
+
InferenceNet: "inference-net",
|
|
53
|
+
Infermatic: "infermatic",
|
|
54
|
+
Inflection: "inflection",
|
|
55
|
+
IoNet: "io-net",
|
|
56
|
+
Ionstream: "ionstream",
|
|
57
|
+
Liquid: "liquid",
|
|
58
|
+
Mancer: "mancer",
|
|
59
|
+
Mara: "mara",
|
|
60
|
+
Minimax: "minimax",
|
|
61
|
+
Mistral: "mistral",
|
|
62
|
+
Modelrun: "modelrun",
|
|
63
|
+
Modular: "modular",
|
|
64
|
+
Moonshotai: "moonshotai",
|
|
65
|
+
Morph: "morph",
|
|
66
|
+
Ncompass: "ncompass",
|
|
67
|
+
Nebius: "nebius",
|
|
68
|
+
NexAgi: "nex-agi",
|
|
69
|
+
Nextbit: "nextbit",
|
|
70
|
+
Novita: "novita",
|
|
71
|
+
Nvidia: "nvidia",
|
|
72
|
+
OpenInference: "open-inference",
|
|
73
|
+
Openai: "openai",
|
|
74
|
+
Parasail: "parasail",
|
|
75
|
+
Perceptron: "perceptron",
|
|
76
|
+
Perplexity: "perplexity",
|
|
77
|
+
Phala: "phala",
|
|
78
|
+
Poolside: "poolside",
|
|
79
|
+
Recraft: "recraft",
|
|
80
|
+
Reka: "reka",
|
|
81
|
+
Relace: "relace",
|
|
82
|
+
Sambanova: "sambanova",
|
|
83
|
+
Seed: "seed",
|
|
84
|
+
Siliconflow: "siliconflow",
|
|
85
|
+
Sourceful: "sourceful",
|
|
86
|
+
Stepfun: "stepfun",
|
|
87
|
+
Streamlake: "streamlake",
|
|
88
|
+
Switchpoint: "switchpoint",
|
|
89
|
+
Together: "together",
|
|
90
|
+
Upstage: "upstage",
|
|
91
|
+
Venice: "venice",
|
|
92
|
+
Wandb: "wandb",
|
|
93
|
+
Xai: "xai",
|
|
94
|
+
Xiaomi: "xiaomi",
|
|
95
|
+
ZAi: "z-ai",
|
|
96
|
+
};
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const Provider$outboundSchema = openEnums
|
|
99
|
+
.outboundSchema(Provider);
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const ListBYOKKeysRequest$outboundSchema = z.object({
|
|
102
|
+
httpReferer: z.string().optional(),
|
|
103
|
+
appTitle: z.string().optional(),
|
|
104
|
+
appCategories: z.string().optional(),
|
|
105
|
+
offset: z.nullable(z.int()).optional(),
|
|
106
|
+
limit: z.int().optional(),
|
|
107
|
+
workspaceId: z.string().optional(),
|
|
108
|
+
provider: Provider$outboundSchema.optional(),
|
|
109
|
+
}).transform((v) => {
|
|
110
|
+
return remap$(v, {
|
|
111
|
+
httpReferer: "HTTP-Referer",
|
|
112
|
+
workspaceId: "workspace_id",
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
export function listBYOKKeysRequestToJSON(listBYOKKeysRequest) {
|
|
116
|
+
return JSON.stringify(ListBYOKKeysRequest$outboundSchema.parse(listBYOKKeysRequest));
|
|
117
|
+
}
|
|
118
|
+
/** @internal */
|
|
119
|
+
export const ListBYOKKeysResponse$inboundSchema = z.object({
|
|
120
|
+
Result: models.ListBYOKKeysResponse$inboundSchema,
|
|
121
|
+
}).transform((v) => {
|
|
122
|
+
return remap$(v, {
|
|
123
|
+
"Result": "result",
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
export function listBYOKKeysResponseFromJSON(jsonString) {
|
|
127
|
+
return safeParse(jsonString, (x) => ListBYOKKeysResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListBYOKKeysResponse' from JSON`);
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=listbyokkeys.js.map
|