@openrouter/sdk 0.12.79 → 0.13.13
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/README.md +43 -9
- package/esm/funcs/benchmarksGetBenchmarks.d.ts +19 -0
- package/esm/funcs/benchmarksGetBenchmarks.js +105 -0
- package/esm/funcs/betaAnalyticsGetAnalyticsMeta.d.ts +18 -0
- package/esm/funcs/betaAnalyticsGetAnalyticsMeta.js +96 -0
- package/esm/funcs/betaAnalyticsQueryAnalytics.d.ts +18 -0
- package/esm/funcs/betaAnalyticsQueryAnalytics.js +97 -0
- package/esm/funcs/betaResponsesSend.js +1 -1
- package/esm/funcs/chatSend.js +1 -1
- package/esm/funcs/classificationsGetTaskClassifications.d.ts +37 -0
- package/esm/funcs/classificationsGetTaskClassifications.js +119 -0
- package/esm/funcs/datasetsGetAppRankings.d.ts +43 -0
- package/esm/funcs/datasetsGetAppRankings.js +161 -0
- package/esm/funcs/filesDelete.d.ts +19 -0
- package/esm/funcs/filesDelete.js +107 -0
- package/esm/funcs/filesDownload.d.ts +18 -0
- package/esm/funcs/filesDownload.js +107 -0
- package/esm/funcs/filesList.d.ts +21 -0
- package/esm/funcs/filesList.js +131 -0
- package/esm/funcs/filesRetrieve.d.ts +19 -0
- package/esm/funcs/filesRetrieve.js +107 -0
- package/esm/funcs/filesUpload.d.ts +19 -0
- package/esm/funcs/filesUpload.js +121 -0
- package/esm/funcs/imagesGenerate.d.ts +30 -0
- package/esm/funcs/imagesGenerate.js +95 -0
- package/esm/funcs/imagesListModelEndpoints.d.ts +19 -0
- package/esm/funcs/imagesListModelEndpoints.js +107 -0
- package/esm/funcs/imagesListModels.d.ts +19 -0
- package/esm/funcs/imagesListModels.js +97 -0
- package/esm/funcs/modelsGet.d.ts +19 -0
- package/esm/funcs/modelsGet.js +107 -0
- package/esm/funcs/modelsList.js +12 -0
- package/esm/funcs/oAuthCreateAuthCode.d.ts +1 -1
- package/esm/funcs/oAuthCreateAuthCode.js +1 -1
- package/esm/funcs/presetsGet.d.ts +21 -0
- package/esm/funcs/presetsGet.js +105 -0
- package/esm/funcs/presetsGetVersion.d.ts +21 -0
- package/esm/funcs/presetsGetVersion.js +109 -0
- package/esm/funcs/presetsList.d.ts +23 -0
- package/esm/funcs/presetsList.js +136 -0
- package/esm/funcs/presetsListVersions.d.ts +23 -0
- package/esm/funcs/presetsListVersions.js +142 -0
- package/esm/funcs/workspacesDeleteBudget.d.ts +19 -0
- package/esm/funcs/workspacesDeleteBudget.js +107 -0
- package/esm/funcs/workspacesListBudgets.d.ts +19 -0
- package/esm/funcs/workspacesListBudgets.js +103 -0
- package/esm/funcs/workspacesSetBudget.d.ts +19 -0
- package/esm/funcs/workspacesSetBudget.js +110 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/aabenchmarkentry.d.ts +24 -0
- package/esm/models/aabenchmarkentry.js +23 -0
- package/esm/models/advisornestedtool.d.ts +25 -0
- package/esm/models/advisornestedtool.js +23 -0
- package/esm/models/advisorreasoning.d.ts +42 -0
- package/esm/models/advisorreasoning.js +34 -0
- package/esm/models/advisorservertoolconfig.d.ts +65 -0
- package/esm/models/advisorservertoolconfig.js +31 -0
- package/esm/models/advisorservertoolopenrouter.d.ts +28 -0
- package/esm/models/advisorservertoolopenrouter.js +20 -0
- package/esm/models/anthropicadvisormessageusageiteration.d.ts +24 -0
- package/esm/models/anthropicadvisormessageusageiteration.js +36 -0
- package/esm/models/anthropiccompactionusageiteration.d.ts +23 -0
- package/esm/models/anthropiccompactionusageiteration.js +35 -0
- package/esm/models/anthropicdocumentblockparam.d.ts +5 -4
- package/esm/models/anthropicdocumentblockparam.js +3 -0
- package/esm/models/anthropicfiledocumentsource.d.ts +14 -0
- package/esm/models/anthropicfiledocumentsource.js +19 -0
- package/esm/models/anthropiciterationcachecreation.d.ts +11 -0
- package/esm/models/anthropiciterationcachecreation.js +21 -0
- package/esm/models/anthropicmessageusageiteration.d.ts +24 -0
- package/esm/models/anthropicmessageusageiteration.js +36 -0
- package/esm/models/anthropicspeed.d.ts +10 -0
- package/esm/models/anthropicspeed.js +12 -0
- package/esm/models/anthropicunknownusageiteration.d.ts +16 -0
- package/esm/models/anthropicunknownusageiteration.js +30 -0
- package/esm/models/anthropicusageiteration.d.ts +12 -0
- package/esm/models/anthropicusageiteration.js +21 -0
- package/esm/models/apierrortype.d.ts +41 -0
- package/esm/models/apierrortype.js +40 -0
- package/esm/models/apprankingsitem.d.ts +29 -0
- package/esm/models/apprankingsitem.js +26 -0
- package/esm/models/apprankingsresponse.d.ts +16 -0
- package/esm/models/apprankingsresponse.js +17 -0
- package/esm/models/bashservertool.d.ts +28 -0
- package/esm/models/bashservertool.js +20 -0
- package/esm/models/bashservertoolconfig.d.ts +30 -0
- package/esm/models/bashservertoolconfig.js +22 -0
- package/esm/models/bashservertoolengine.d.ts +17 -0
- package/esm/models/bashservertoolengine.js +16 -0
- package/esm/models/bashservertoolenvironment.d.ts +13 -0
- package/esm/models/bashservertoolenvironment.js +16 -0
- package/esm/models/booleancapability.d.ts +13 -0
- package/esm/models/booleancapability.js +14 -0
- package/esm/models/byokproviderslug.d.ts +5 -1
- package/esm/models/byokproviderslug.js +5 -1
- package/esm/models/capabilitydescriptor.d.ts +15 -0
- package/esm/models/capabilitydescriptor.js +19 -0
- package/esm/models/chatfunctiontool.d.ts +5 -2
- package/esm/models/chatfunctiontool.js +6 -0
- package/esm/models/chatrequest.d.ts +44 -0
- package/esm/models/chatrequest.js +26 -0
- package/esm/models/chatstreamchunk.d.ts +25 -4
- package/esm/models/chatstreamchunk.js +19 -4
- package/esm/models/chatusage.d.ts +32 -8
- package/esm/models/chatusage.js +25 -8
- package/esm/models/chatwebsearchshorthand.d.ts +10 -5
- package/esm/models/chatwebsearchshorthand.js +2 -0
- package/esm/models/containerautoenvironment.d.ts +15 -0
- package/esm/models/containerautoenvironment.js +13 -0
- package/esm/models/containerreferenceenvironment.d.ts +20 -0
- package/esm/models/containerreferenceenvironment.js +19 -0
- package/esm/models/contentfilterbuiltinentry.d.ts +5 -0
- package/esm/models/contentfilterbuiltinentry.js +7 -0
- package/esm/models/contentfilterbuiltinentryinput.d.ts +6 -0
- package/esm/models/contentfilterbuiltinentryinput.js +7 -0
- package/esm/models/contentpartaudio.d.ts +24 -0
- package/esm/models/contentpartaudio.js +27 -0
- package/esm/models/contentpartvideo.d.ts +24 -0
- package/esm/models/contentpartvideo.js +27 -0
- package/esm/models/createobservabilitydestinationrequest.d.ts +1 -1
- package/esm/models/dabenchmarkentry.d.ts +32 -0
- package/esm/models/dabenchmarkentry.js +23 -0
- package/esm/models/debugevent.d.ts +42 -0
- package/esm/models/debugevent.js +58 -0
- package/esm/models/deleteworkspacebudgetresponse.d.ts +13 -0
- package/esm/models/deleteworkspacebudgetresponse.js +14 -0
- package/esm/models/enumcapability.d.ts +14 -0
- package/esm/models/enumcapability.js +15 -0
- package/esm/models/filedeleteresponse.d.ts +21 -0
- package/esm/models/filedeleteresponse.js +20 -0
- package/esm/models/filelistresponse.d.ts +21 -0
- package/esm/models/filelistresponse.js +26 -0
- package/esm/models/filemetadata.d.ts +26 -0
- package/esm/models/filemetadata.js +33 -0
- package/esm/models/fusionanalysisresult.d.ts +88 -0
- package/esm/models/fusionanalysisresult.js +109 -0
- package/esm/models/fusioncallanalysiscompletedevent.d.ts +21 -0
- package/esm/models/fusioncallanalysiscompletedevent.js +26 -0
- package/esm/models/fusioncallanalysisinprogressevent.d.ts +17 -0
- package/esm/models/fusioncallanalysisinprogressevent.js +26 -0
- package/esm/models/fusioncallcompletedevent.d.ts +16 -0
- package/esm/models/fusioncallcompletedevent.js +24 -0
- package/esm/models/fusioncallinprogressevent.d.ts +16 -0
- package/esm/models/fusioncallinprogressevent.js +24 -0
- package/esm/models/fusioncallpaneladdedevent.d.ts +17 -0
- package/esm/models/fusioncallpaneladdedevent.js +25 -0
- package/esm/models/fusioncallpanelcompletedevent.d.ts +18 -0
- package/esm/models/fusioncallpanelcompletedevent.js +26 -0
- package/esm/models/fusioncallpaneldeltaevent.d.ts +18 -0
- package/esm/models/fusioncallpaneldeltaevent.js +26 -0
- package/esm/models/fusioncallpanelfailedevent.d.ts +19 -0
- package/esm/models/fusioncallpanelfailedevent.js +28 -0
- package/esm/models/fusioncallpanelreasoningdeltaevent.d.ts +18 -0
- package/esm/models/fusioncallpanelreasoningdeltaevent.js +26 -0
- package/esm/models/fusionplugin.d.ts +47 -0
- package/esm/models/fusionplugin.js +21 -0
- package/esm/models/fusionservertoolconfig.d.ts +35 -1
- package/esm/models/fusionservertoolconfig.js +14 -0
- package/esm/models/generationresponse.d.ts +22 -0
- package/esm/models/generationresponse.js +14 -0
- package/esm/models/getpresetresponse.d.ts +17 -0
- package/esm/models/getpresetresponse.js +15 -0
- package/esm/models/getpresetversionresponse.d.ts +17 -0
- package/esm/models/getpresetversionresponse.js +15 -0
- package/esm/models/imageendpoint.d.ts +41 -0
- package/esm/models/imageendpoint.js +33 -0
- package/esm/models/imagegencompletedevent.d.ts +29 -0
- package/esm/models/imagegencompletedevent.js +23 -0
- package/esm/models/imagegenerationrequest.d.ts +908 -0
- package/esm/models/imagegenerationrequest.js +266 -0
- package/esm/models/imagegenerationresponse.d.ts +34 -0
- package/esm/models/imagegenerationresponse.js +29 -0
- package/esm/models/imagegenerationservertool.d.ts +15 -15
- package/esm/models/imagegenerationservertool.js +15 -17
- package/esm/models/imagegenerationusage.d.ts +119 -0
- package/esm/models/imagegenerationusage.js +93 -0
- package/esm/models/imagegenpartialimageevent.d.ts +24 -0
- package/esm/models/imagegenpartialimageevent.js +22 -0
- package/esm/models/imagegenstreamerrorevent.d.ts +44 -0
- package/esm/models/imagegenstreamerrorevent.js +25 -0
- package/esm/models/imagemodelarchitecture.d.ts +19 -0
- package/esm/models/imagemodelarchitecture.js +23 -0
- package/esm/models/imagemodelendpointsresponse.d.ts +18 -0
- package/esm/models/imagemodelendpointsresponse.js +16 -0
- package/esm/models/imagemodellistitem.d.ts +42 -0
- package/esm/models/imagemodellistitem.js +29 -0
- package/esm/models/imagemodelslistresponse.d.ts +14 -0
- package/esm/models/imagemodelslistresponse.js +15 -0
- package/esm/models/imageoutputmodality.d.ts +16 -0
- package/esm/models/imageoutputmodality.js +18 -0
- package/esm/models/imagepricingentry.d.ts +35 -0
- package/esm/models/imagepricingentry.js +41 -0
- package/esm/models/imagestreamingresponse.d.ts +18 -0
- package/esm/models/imagestreamingresponse.js +43 -0
- package/esm/models/index.d.ts +97 -0
- package/esm/models/index.js +97 -0
- package/esm/models/inputreference.d.ts +18 -0
- package/esm/models/inputreference.js +18 -0
- package/esm/models/inputsunion.d.ts +7 -4
- package/esm/models/inputsunion.js +11 -2
- package/esm/models/legacywebsearchservertool.d.ts +2 -2
- package/esm/models/listpresetsresponse.d.ts +15 -0
- package/esm/models/listpresetsresponse.js +21 -0
- package/esm/models/listpresetversionsresponse.d.ts +15 -0
- package/esm/models/listpresetversionsresponse.js +21 -0
- package/esm/models/listworkspacebudgetsresponse.d.ts +14 -0
- package/esm/models/listworkspacebudgetsresponse.js +15 -0
- package/esm/models/messagesfallbackparam.d.ts +19 -0
- package/esm/models/messagesfallbackparam.js +22 -0
- package/esm/models/messagesrequest.d.ts +17 -10
- package/esm/models/messagesrequest.js +10 -5
- package/esm/models/model.d.ts +10 -0
- package/esm/models/model.js +4 -0
- package/esm/models/modelbenchmarks.d.ts +22 -0
- package/esm/models/modelbenchmarks.js +23 -0
- package/esm/models/modelreasoning.d.ts +49 -0
- package/esm/models/modelreasoning.js +42 -0
- package/esm/models/modelresponse.d.ts +17 -0
- package/esm/models/modelresponse.js +16 -0
- package/esm/models/observabilityarizedestination.d.ts +4 -1
- package/esm/models/observabilitybraintrustdestination.d.ts +1 -1
- package/esm/models/observabilityclickhousedestination.d.ts +1 -1
- package/esm/models/observabilitydatadogdestination.d.ts +1 -1
- package/esm/models/observabilitygrafanadestination.d.ts +1 -1
- package/esm/models/observabilitylangfusedestination.d.ts +1 -1
- package/esm/models/observabilitylangsmithdestination.d.ts +1 -1
- package/esm/models/observabilitynewrelicdestination.d.ts +1 -1
- package/esm/models/observabilityopikdestination.d.ts +1 -1
- package/esm/models/observabilityotelcollectordestination.d.ts +1 -1
- package/esm/models/observabilityposthogdestination.d.ts +1 -1
- package/esm/models/observabilityrampdestination.d.ts +1 -1
- package/esm/models/observabilitys3destination.d.ts +1 -1
- package/esm/models/observabilitysentrydestination.d.ts +1 -1
- package/esm/models/observabilitysnowflakedestination.d.ts +1 -1
- package/esm/models/observabilityweavedestination.d.ts +1 -1
- package/esm/models/observabilitywebhookdestination.d.ts +1 -1
- package/esm/models/openresponsesresult.d.ts +5 -0
- package/esm/models/openresponsesresult.js +3 -0
- package/esm/models/operations/createauthkeyscode.d.ts +6 -1
- package/esm/models/operations/createauthkeyscode.js +2 -0
- package/esm/models/operations/createembeddings.d.ts +19 -0
- package/esm/models/operations/createembeddings.js +20 -0
- package/esm/models/operations/createimages.d.ts +63 -0
- package/esm/models/operations/createimages.js +44 -0
- package/esm/models/operations/creatererank.d.ts +44 -10
- package/esm/models/operations/creatererank.js +21 -6
- package/esm/models/operations/createresponses.d.ts +3 -3
- package/esm/models/operations/createresponses.js +2 -3
- package/esm/models/operations/deletefile.d.ts +60 -0
- package/esm/models/operations/deletefile.js +24 -0
- package/esm/models/operations/deleteworkspacebudget.d.ts +64 -0
- package/esm/models/operations/deleteworkspacebudget.js +23 -0
- package/esm/models/operations/downloadfilecontent.d.ts +60 -0
- package/esm/models/operations/downloadfilecontent.js +24 -0
- package/esm/models/operations/getanalyticsmeta.d.ts +198 -0
- package/esm/models/operations/getanalyticsmeta.js +141 -0
- package/esm/models/operations/getapprankings.d.ts +152 -0
- package/esm/models/operations/getapprankings.js +85 -0
- package/esm/models/operations/getbenchmarks.d.ts +120 -0
- package/esm/models/operations/getbenchmarks.js +60 -0
- package/esm/models/operations/getfilemetadata.d.ts +60 -0
- package/esm/models/operations/getfilemetadata.js +24 -0
- package/esm/models/operations/getmodel.d.ts +63 -0
- package/esm/models/operations/getmodel.js +22 -0
- package/esm/models/operations/getmodels.d.ts +123 -5
- package/esm/models/operations/getmodels.js +61 -4
- package/esm/models/operations/getpreset.d.ts +58 -0
- package/esm/models/operations/getpreset.js +21 -0
- package/esm/models/operations/getpresetversion.d.ts +63 -0
- package/esm/models/operations/getpresetversion.js +22 -0
- package/esm/models/operations/gettaskclassifications.d.ts +71 -0
- package/esm/models/operations/gettaskclassifications.js +29 -0
- package/esm/models/operations/index.d.ts +21 -0
- package/esm/models/operations/index.js +21 -0
- package/esm/models/operations/listbyokkeys.d.ts +5 -1
- package/esm/models/operations/listbyokkeys.js +5 -1
- package/esm/models/operations/listfiles.d.ts +77 -0
- package/esm/models/operations/listfiles.js +37 -0
- package/esm/models/operations/listimagemodelendpoints.d.ts +63 -0
- package/esm/models/operations/listimagemodelendpoints.js +22 -0
- package/esm/models/operations/listimagemodels.d.ts +53 -0
- package/esm/models/operations/listimagemodels.js +20 -0
- package/esm/models/operations/listpresets.d.ts +72 -0
- package/esm/models/operations/listpresets.js +35 -0
- package/esm/models/operations/listpresetversions.d.ts +77 -0
- package/esm/models/operations/listpresetversions.js +36 -0
- package/esm/models/operations/listworkspacebudgets.d.ts +58 -0
- package/esm/models/operations/listworkspacebudgets.js +21 -0
- package/esm/models/operations/queryanalytics.d.ts +199 -0
- package/esm/models/operations/queryanalytics.js +130 -0
- package/esm/models/operations/sendchatcompletionrequest.d.ts +3 -3
- package/esm/models/operations/sendchatcompletionrequest.js +2 -3
- package/esm/models/operations/uploadfile.d.ts +82 -0
- package/esm/models/operations/uploadfile.js +45 -0
- package/esm/models/operations/upsertworkspacebudget.d.ts +66 -0
- package/esm/models/operations/upsertworkspacebudget.js +25 -0
- package/esm/models/outputadvisorservertoolitem.d.ts +59 -0
- package/esm/models/outputadvisorservertoolitem.js +52 -0
- package/esm/models/outputfusionservertoolitem.d.ts +44 -43
- package/esm/models/outputfusionservertoolitem.js +49 -51
- package/esm/models/outputitems.d.ts +13 -3
- package/esm/models/outputitems.js +9 -1
- package/esm/models/outputshellcallitem.d.ts +29 -0
- package/esm/models/outputshellcallitem.js +38 -0
- package/esm/models/outputshellcalloutputitem.d.ts +48 -0
- package/esm/models/outputshellcalloutputitem.js +67 -0
- package/esm/models/outputsubagentservertoolitem.d.ts +59 -0
- package/esm/models/outputsubagentservertoolitem.js +54 -0
- package/esm/models/outputwebsearchcallitem.d.ts +2 -2
- package/esm/models/outputwebsearchcallitem.js +2 -2
- package/esm/models/preset.d.ts +27 -0
- package/esm/models/preset.js +35 -0
- package/esm/models/presetstatus.d.ts +17 -0
- package/esm/models/presetstatus.js +16 -0
- package/esm/models/presetwithdesignatedversion.d.ts +9 -14
- package/esm/models/presetwithdesignatedversion.js +4 -11
- package/esm/models/preview20250311websearchservertool.d.ts +2 -2
- package/esm/models/previewwebsearchservertool.d.ts +2 -2
- package/esm/models/promptinjectionscanscope.d.ts +18 -0
- package/esm/models/promptinjectionscanscope.js +17 -0
- package/esm/models/providername.d.ts +5 -1
- package/esm/models/providername.js +5 -1
- package/esm/models/provideroptions.d.ts +31 -1
- package/esm/models/provideroptions.js +7 -0
- package/esm/models/providerresponse.d.ts +6 -1
- package/esm/models/providerresponse.js +7 -2
- package/esm/models/rangecapability.d.ts +15 -0
- package/esm/models/rangecapability.js +16 -0
- package/esm/models/rankingsdailymeta.d.ts +4 -4
- package/esm/models/rankingsdailymeta.js +3 -3
- package/esm/models/reasoningeffort.d.ts +1 -0
- package/esm/models/reasoningeffort.js +1 -0
- package/esm/models/responsesrequest.d.ts +42 -8
- package/esm/models/responsesrequest.js +14 -0
- package/esm/models/searchqualitylevel.d.ts +2 -2
- package/esm/models/searchqualitylevel.js +1 -1
- package/esm/models/shellcallstatus.d.ts +17 -0
- package/esm/models/shellcallstatus.js +16 -0
- package/esm/models/shellservertoolconfig.d.ts +30 -0
- package/esm/models/shellservertoolconfig.js +22 -0
- package/esm/models/shellservertoolengine.d.ts +16 -0
- package/esm/models/shellservertoolengine.js +15 -0
- package/esm/models/shellservertoolenvironment.d.ts +13 -0
- package/esm/models/shellservertoolenvironment.js +16 -0
- package/esm/models/shellservertoolopenrouter.d.ts +21 -0
- package/esm/models/shellservertoolopenrouter.js +15 -0
- package/esm/models/speechrequest.d.ts +1 -1
- package/esm/models/streamevents.d.ts +11 -1
- package/esm/models/streamevents.js +20 -0
- package/esm/models/sttrequest.d.ts +1 -1
- package/esm/models/subagentnestedtool.d.ts +25 -0
- package/esm/models/subagentnestedtool.js +23 -0
- package/esm/models/subagentreasoning.d.ts +42 -0
- package/esm/models/subagentreasoning.js +34 -0
- package/esm/models/subagentservertoolconfig.d.ts +50 -0
- package/esm/models/subagentservertoolconfig.js +27 -0
- package/esm/models/subagentservertoolopenrouter.d.ts +28 -0
- package/esm/models/subagentservertoolopenrouter.js +20 -0
- package/esm/models/taskclassificationitem.d.ts +42 -0
- package/esm/models/taskclassificationitem.js +32 -0
- package/esm/models/taskclassificationmacrocategory.d.ts +25 -0
- package/esm/models/taskclassificationmacrocategory.js +23 -0
- package/esm/models/taskclassificationmodel.d.ts +21 -0
- package/esm/models/taskclassificationmodel.js +22 -0
- package/esm/models/taskclassificationresponse.d.ts +33 -0
- package/esm/models/taskclassificationresponse.js +33 -0
- package/esm/models/unifiedbenchmarkpricing.d.ts +20 -0
- package/esm/models/unifiedbenchmarkpricing.js +15 -0
- package/esm/models/unifiedbenchmarksaaitem.d.ts +38 -0
- package/esm/models/unifiedbenchmarksaaitem.js +30 -0
- package/esm/models/unifiedbenchmarksdaitem.d.ts +63 -0
- package/esm/models/unifiedbenchmarksdaitem.js +51 -0
- package/esm/models/unifiedbenchmarksmeta.d.ts +63 -0
- package/esm/models/unifiedbenchmarksmeta.js +46 -0
- package/esm/models/unifiedbenchmarksresponse.d.ts +19 -0
- package/esm/models/unifiedbenchmarksresponse.js +30 -0
- package/esm/models/updateobservabilitydestinationrequest.d.ts +1 -1
- package/esm/models/upsertworkspacebudgetrequest.d.ts +15 -0
- package/esm/models/upsertworkspacebudgetrequest.js +18 -0
- package/esm/models/upsertworkspacebudgetresponse.d.ts +11 -0
- package/esm/models/upsertworkspacebudgetresponse.js +15 -0
- package/esm/models/urlcitation.d.ts +2 -0
- package/esm/models/urlcitation.js +2 -0
- package/esm/models/videogenerationrequest.d.ts +49 -19
- package/esm/models/videogenerationrequest.js +20 -13
- package/esm/models/websearchconfig.d.ts +10 -5
- package/esm/models/websearchconfig.js +2 -0
- package/esm/models/websearchengine.d.ts +1 -0
- package/esm/models/websearchengine.js +1 -0
- package/esm/models/websearchengineenum.d.ts +4 -3
- package/esm/models/websearchengineenum.js +3 -2
- package/esm/models/websearchservertool.d.ts +2 -2
- package/esm/models/websearchservertoolconfig.d.ts +10 -5
- package/esm/models/websearchservertoolconfig.js +2 -0
- package/esm/models/workspacebudget.d.ts +48 -0
- package/esm/models/workspacebudget.js +39 -0
- package/esm/models/workspacebudgetinterval.d.ts +18 -0
- package/esm/models/workspacebudgetinterval.js +17 -0
- package/esm/sdk/benchmarks.d.ts +13 -0
- package/esm/sdk/benchmarks.js +19 -0
- package/esm/sdk/beta.d.ts +3 -0
- package/esm/sdk/beta.js +4 -0
- package/esm/sdk/betaanalytics.d.ts +19 -0
- package/esm/sdk/betaanalytics.js +29 -0
- package/esm/sdk/classifications.d.ts +31 -0
- package/esm/sdk/classifications.js +37 -0
- package/esm/sdk/datasets.d.ts +32 -0
- package/esm/sdk/datasets.js +33 -0
- package/esm/sdk/files.d.ts +44 -0
- package/esm/sdk/files.js +60 -0
- package/esm/sdk/images.d.ts +38 -0
- package/esm/sdk/images.js +33 -0
- package/esm/sdk/models.d.ts +7 -0
- package/esm/sdk/models.js +10 -0
- package/esm/sdk/presets.d.ts +33 -0
- package/esm/sdk/presets.js +41 -0
- package/esm/sdk/sdk.d.ts +14 -2
- package/esm/sdk/sdk.js +19 -3
- package/esm/sdk/workspaces.d.ts +21 -0
- package/esm/sdk/workspaces.js +30 -0
- package/jsr.json +1 -1
- package/package.json +6 -6
package/esm/sdk/sdk.d.ts
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { ClientSDK } from "../lib/sdks.js";
|
|
2
2
|
import { Analytics } from "./analytics.js";
|
|
3
3
|
import { APIKeys } from "./apikeys.js";
|
|
4
|
+
import { Benchmarks } from "./benchmarks.js";
|
|
4
5
|
import { Beta } from "./beta.js";
|
|
5
6
|
import { Byok } from "./byok.js";
|
|
6
7
|
import { Chat } from "./chat.js";
|
|
8
|
+
import { Classifications } from "./classifications.js";
|
|
7
9
|
import { Credits } from "./credits.js";
|
|
8
10
|
import { Datasets } from "./datasets.js";
|
|
9
11
|
import { Embeddings } from "./embeddings.js";
|
|
10
12
|
import { Endpoints } from "./endpoints.js";
|
|
13
|
+
import { Files } from "./files.js";
|
|
11
14
|
import { Generations } from "./generations.js";
|
|
12
15
|
import { Guardrails } from "./guardrails.js";
|
|
16
|
+
import { Images } from "./images.js";
|
|
13
17
|
import { Models } from "./models.js";
|
|
14
18
|
import { OAuth } from "./oauth.js";
|
|
15
19
|
import { Observability } from "./observability.js";
|
|
@@ -30,16 +34,22 @@ export { ToolType };
|
|
|
30
34
|
export declare class OpenRouter extends ClientSDK {
|
|
31
35
|
private _analytics?;
|
|
32
36
|
get analytics(): Analytics;
|
|
37
|
+
private _beta?;
|
|
38
|
+
get beta(): Beta;
|
|
33
39
|
private _tts?;
|
|
34
40
|
get tts(): Tts;
|
|
35
41
|
private _stt?;
|
|
36
42
|
get stt(): Stt;
|
|
37
43
|
private _oAuth?;
|
|
38
44
|
get oAuth(): OAuth;
|
|
45
|
+
private _benchmarks?;
|
|
46
|
+
get benchmarks(): Benchmarks;
|
|
39
47
|
private _byok?;
|
|
40
48
|
get byok(): Byok;
|
|
41
49
|
private _chat?;
|
|
42
50
|
get chat(): Chat;
|
|
51
|
+
private _classifications?;
|
|
52
|
+
get classifications(): Classifications;
|
|
43
53
|
private _credits?;
|
|
44
54
|
get credits(): Credits;
|
|
45
55
|
private _datasets?;
|
|
@@ -48,10 +58,14 @@ export declare class OpenRouter extends ClientSDK {
|
|
|
48
58
|
get embeddings(): Embeddings;
|
|
49
59
|
private _endpoints?;
|
|
50
60
|
get endpoints(): Endpoints;
|
|
61
|
+
private _files?;
|
|
62
|
+
get files(): Files;
|
|
51
63
|
private _generations?;
|
|
52
64
|
get generations(): Generations;
|
|
53
65
|
private _guardrails?;
|
|
54
66
|
get guardrails(): Guardrails;
|
|
67
|
+
private _images?;
|
|
68
|
+
get images(): Images;
|
|
55
69
|
private _apiKeys?;
|
|
56
70
|
get apiKeys(): APIKeys;
|
|
57
71
|
private _models?;
|
|
@@ -66,8 +80,6 @@ export declare class OpenRouter extends ClientSDK {
|
|
|
66
80
|
get providers(): Providers;
|
|
67
81
|
private _rerank?;
|
|
68
82
|
get rerank(): Rerank;
|
|
69
|
-
private _beta?;
|
|
70
|
-
get beta(): Beta;
|
|
71
83
|
private _videoGeneration?;
|
|
72
84
|
get videoGeneration(): VideoGeneration;
|
|
73
85
|
private _workspaces?;
|
package/esm/sdk/sdk.js
CHANGED
|
@@ -5,15 +5,19 @@
|
|
|
5
5
|
import { ClientSDK } from "../lib/sdks.js";
|
|
6
6
|
import { Analytics } from "./analytics.js";
|
|
7
7
|
import { APIKeys } from "./apikeys.js";
|
|
8
|
+
import { Benchmarks } from "./benchmarks.js";
|
|
8
9
|
import { Beta } from "./beta.js";
|
|
9
10
|
import { Byok } from "./byok.js";
|
|
10
11
|
import { Chat } from "./chat.js";
|
|
12
|
+
import { Classifications } from "./classifications.js";
|
|
11
13
|
import { Credits } from "./credits.js";
|
|
12
14
|
import { Datasets } from "./datasets.js";
|
|
13
15
|
import { Embeddings } from "./embeddings.js";
|
|
14
16
|
import { Endpoints } from "./endpoints.js";
|
|
17
|
+
import { Files } from "./files.js";
|
|
15
18
|
import { Generations } from "./generations.js";
|
|
16
19
|
import { Guardrails } from "./guardrails.js";
|
|
20
|
+
import { Images } from "./images.js";
|
|
17
21
|
import { Models } from "./models.js";
|
|
18
22
|
import { OAuth } from "./oauth.js";
|
|
19
23
|
import { Observability } from "./observability.js";
|
|
@@ -33,6 +37,9 @@ export class OpenRouter extends ClientSDK {
|
|
|
33
37
|
get analytics() {
|
|
34
38
|
return (this._analytics ?? (this._analytics = new Analytics(this._options)));
|
|
35
39
|
}
|
|
40
|
+
get beta() {
|
|
41
|
+
return (this._beta ?? (this._beta = new Beta(this._options)));
|
|
42
|
+
}
|
|
36
43
|
get tts() {
|
|
37
44
|
return (this._tts ?? (this._tts = new Tts(this._options)));
|
|
38
45
|
}
|
|
@@ -42,12 +49,18 @@ export class OpenRouter extends ClientSDK {
|
|
|
42
49
|
get oAuth() {
|
|
43
50
|
return (this._oAuth ?? (this._oAuth = new OAuth(this._options)));
|
|
44
51
|
}
|
|
52
|
+
get benchmarks() {
|
|
53
|
+
return (this._benchmarks ?? (this._benchmarks = new Benchmarks(this._options)));
|
|
54
|
+
}
|
|
45
55
|
get byok() {
|
|
46
56
|
return (this._byok ?? (this._byok = new Byok(this._options)));
|
|
47
57
|
}
|
|
48
58
|
get chat() {
|
|
49
59
|
return (this._chat ?? (this._chat = new Chat(this._options)));
|
|
50
60
|
}
|
|
61
|
+
get classifications() {
|
|
62
|
+
return (this._classifications ?? (this._classifications = new Classifications(this._options)));
|
|
63
|
+
}
|
|
51
64
|
get credits() {
|
|
52
65
|
return (this._credits ?? (this._credits = new Credits(this._options)));
|
|
53
66
|
}
|
|
@@ -60,12 +73,18 @@ export class OpenRouter extends ClientSDK {
|
|
|
60
73
|
get endpoints() {
|
|
61
74
|
return (this._endpoints ?? (this._endpoints = new Endpoints(this._options)));
|
|
62
75
|
}
|
|
76
|
+
get files() {
|
|
77
|
+
return (this._files ?? (this._files = new Files(this._options)));
|
|
78
|
+
}
|
|
63
79
|
get generations() {
|
|
64
80
|
return (this._generations ?? (this._generations = new Generations(this._options)));
|
|
65
81
|
}
|
|
66
82
|
get guardrails() {
|
|
67
83
|
return (this._guardrails ?? (this._guardrails = new Guardrails(this._options)));
|
|
68
84
|
}
|
|
85
|
+
get images() {
|
|
86
|
+
return (this._images ?? (this._images = new Images(this._options)));
|
|
87
|
+
}
|
|
69
88
|
get apiKeys() {
|
|
70
89
|
return (this._apiKeys ?? (this._apiKeys = new APIKeys(this._options)));
|
|
71
90
|
}
|
|
@@ -87,9 +106,6 @@ export class OpenRouter extends ClientSDK {
|
|
|
87
106
|
get rerank() {
|
|
88
107
|
return (this._rerank ?? (this._rerank = new Rerank(this._options)));
|
|
89
108
|
}
|
|
90
|
-
get beta() {
|
|
91
|
-
return (this._beta ?? (this._beta = new Beta(this._options)));
|
|
92
|
-
}
|
|
93
109
|
get videoGeneration() {
|
|
94
110
|
return (this._videoGeneration ?? (this._videoGeneration = new VideoGeneration(this._options)));
|
|
95
111
|
}
|
package/esm/sdk/workspaces.d.ts
CHANGED
|
@@ -40,6 +40,27 @@ export declare class Workspaces extends ClientSDK {
|
|
|
40
40
|
* Update an existing workspace by ID or slug. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
41
41
|
*/
|
|
42
42
|
update(request: operations.UpdateWorkspaceRequest, options?: RequestOptions): Promise<models.UpdateWorkspaceResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* List workspace budgets
|
|
45
|
+
*
|
|
46
|
+
* @remarks
|
|
47
|
+
* List all budgets configured for a workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
48
|
+
*/
|
|
49
|
+
listBudgets(request: operations.ListWorkspaceBudgetsRequest, options?: RequestOptions): Promise<models.ListWorkspaceBudgetsResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Delete a workspace budget
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Remove the budget for a given interval. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
55
|
+
*/
|
|
56
|
+
deleteBudget(request: operations.DeleteWorkspaceBudgetRequest, options?: RequestOptions): Promise<models.DeleteWorkspaceBudgetResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* Create or update a workspace budget
|
|
59
|
+
*
|
|
60
|
+
* @remarks
|
|
61
|
+
* Create or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime > monthly > weekly > daily). [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
62
|
+
*/
|
|
63
|
+
setBudget(request: operations.UpsertWorkspaceBudgetRequest, options?: RequestOptions): Promise<models.UpsertWorkspaceBudgetResponse>;
|
|
43
64
|
/**
|
|
44
65
|
* Bulk add members to a workspace
|
|
45
66
|
*
|
package/esm/sdk/workspaces.js
CHANGED
|
@@ -6,8 +6,11 @@ import { workspacesBulkAddMembers } from "../funcs/workspacesBulkAddMembers.js";
|
|
|
6
6
|
import { workspacesBulkRemoveMembers } from "../funcs/workspacesBulkRemoveMembers.js";
|
|
7
7
|
import { workspacesCreate } from "../funcs/workspacesCreate.js";
|
|
8
8
|
import { workspacesDelete } from "../funcs/workspacesDelete.js";
|
|
9
|
+
import { workspacesDeleteBudget } from "../funcs/workspacesDeleteBudget.js";
|
|
9
10
|
import { workspacesGet } from "../funcs/workspacesGet.js";
|
|
10
11
|
import { workspacesList } from "../funcs/workspacesList.js";
|
|
12
|
+
import { workspacesListBudgets } from "../funcs/workspacesListBudgets.js";
|
|
13
|
+
import { workspacesSetBudget } from "../funcs/workspacesSetBudget.js";
|
|
11
14
|
import { workspacesUpdate } from "../funcs/workspacesUpdate.js";
|
|
12
15
|
import { ClientSDK } from "../lib/sdks.js";
|
|
13
16
|
import { unwrapAsync } from "../types/fp.js";
|
|
@@ -58,6 +61,33 @@ export class Workspaces extends ClientSDK {
|
|
|
58
61
|
async update(request, options) {
|
|
59
62
|
return unwrapAsync(workspacesUpdate(this, request, options));
|
|
60
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* List workspace budgets
|
|
66
|
+
*
|
|
67
|
+
* @remarks
|
|
68
|
+
* List all budgets configured for a workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
69
|
+
*/
|
|
70
|
+
async listBudgets(request, options) {
|
|
71
|
+
return unwrapAsync(workspacesListBudgets(this, request, options));
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Delete a workspace budget
|
|
75
|
+
*
|
|
76
|
+
* @remarks
|
|
77
|
+
* Remove the budget for a given interval. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
78
|
+
*/
|
|
79
|
+
async deleteBudget(request, options) {
|
|
80
|
+
return unwrapAsync(workspacesDeleteBudget(this, request, options));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Create or update a workspace budget
|
|
84
|
+
*
|
|
85
|
+
* @remarks
|
|
86
|
+
* Create or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime > monthly > weekly > daily). [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
87
|
+
*/
|
|
88
|
+
async setBudget(request, options) {
|
|
89
|
+
return unwrapAsync(workspacesSetBudget(this, request, options));
|
|
90
|
+
}
|
|
61
91
|
/**
|
|
62
92
|
* Bulk add members to a workspace
|
|
63
93
|
*
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.13",
|
|
4
4
|
"author": "OpenRouter",
|
|
5
|
-
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to
|
|
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": [
|
|
7
7
|
"openrouter",
|
|
8
8
|
"sdk",
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
74
74
|
"build": "tsc",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
+
"typecheck": "tsc --noEmit",
|
|
77
|
+
"test:transit": "exit 0",
|
|
76
78
|
"test:watch": "vitest --watch --project unit",
|
|
77
79
|
"typecheck:transit": "exit 0",
|
|
78
80
|
"compile": "tsc",
|
|
79
81
|
"postinstall": "node scripts/check-types.js || true",
|
|
80
|
-
"test": "vitest --run --project unit",
|
|
81
|
-
"test:e2e": "vitest --run --project e2e",
|
|
82
|
-
"typecheck": "tsc --noEmit",
|
|
83
82
|
"prepare": "npm run build",
|
|
84
|
-
"test
|
|
83
|
+
"test": "vitest --run --project unit",
|
|
84
|
+
"test:e2e": "vitest --run --project e2e"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|