@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
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
export type TaskClassificationModel = {
|
|
5
|
+
/**
|
|
6
|
+
* Model identifier (permaslug).
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* Fraction of this classification's sampled token volume attributed to this model (0–1). Sums to ≤1 across the returned models (only top-N are included and unattributed requests are excluded).
|
|
11
|
+
*/
|
|
12
|
+
tagTokenShare: number;
|
|
13
|
+
/**
|
|
14
|
+
* Fraction of this classification's sampled requests attributed to this model (0–1). Sums to ≤1 across the returned models (only top-N are included and unattributed requests are excluded).
|
|
15
|
+
*/
|
|
16
|
+
tagUsageShare: number;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const TaskClassificationModel$inboundSchema: z.ZodType<TaskClassificationModel, unknown>;
|
|
20
|
+
export declare function taskClassificationModelFromJSON(jsonString: string): SafeParseResult<TaskClassificationModel, SDKValidationError>;
|
|
21
|
+
//# sourceMappingURL=taskclassificationmodel.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5cf061d8d849
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const TaskClassificationModel$inboundSchema = z.object({
|
|
10
|
+
id: z.string(),
|
|
11
|
+
tag_token_share: z.number(),
|
|
12
|
+
tag_usage_share: z.number(),
|
|
13
|
+
}).transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
"tag_token_share": "tagTokenShare",
|
|
16
|
+
"tag_usage_share": "tagUsageShare",
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
export function taskClassificationModelFromJSON(jsonString) {
|
|
20
|
+
return safeParse(jsonString, (x) => TaskClassificationModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TaskClassificationModel' from JSON`);
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=taskclassificationmodel.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
import { TaskClassificationItem } from "./taskclassificationitem.js";
|
|
5
|
+
import { TaskClassificationMacroCategory } from "./taskclassificationmacrocategory.js";
|
|
6
|
+
export type TaskClassificationResponseData = {
|
|
7
|
+
/**
|
|
8
|
+
* UTC date (YYYY-MM-DD) of the window upper bound (yesterday). Data is exclusive of the current incomplete UTC day. This is the expected latest date in the snapshot; it does not confirm data presence for that date.
|
|
9
|
+
*/
|
|
10
|
+
asOf: string;
|
|
11
|
+
/**
|
|
12
|
+
* Per-task classification market-share data, sorted by usage_share descending.
|
|
13
|
+
*/
|
|
14
|
+
classifications: Array<TaskClassificationItem>;
|
|
15
|
+
/**
|
|
16
|
+
* Aggregate market-share data per macro-category (code, data, agent, general).
|
|
17
|
+
*/
|
|
18
|
+
macroCategories: Array<TaskClassificationMacroCategory>;
|
|
19
|
+
/**
|
|
20
|
+
* Number of trailing days covered by this snapshot.
|
|
21
|
+
*/
|
|
22
|
+
windowDays: number;
|
|
23
|
+
};
|
|
24
|
+
export type TaskClassificationResponse = {
|
|
25
|
+
data: TaskClassificationResponseData;
|
|
26
|
+
};
|
|
27
|
+
/** @internal */
|
|
28
|
+
export declare const TaskClassificationResponseData$inboundSchema: z.ZodType<TaskClassificationResponseData, unknown>;
|
|
29
|
+
export declare function taskClassificationResponseDataFromJSON(jsonString: string): SafeParseResult<TaskClassificationResponseData, SDKValidationError>;
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const TaskClassificationResponse$inboundSchema: z.ZodType<TaskClassificationResponse, unknown>;
|
|
32
|
+
export declare function taskClassificationResponseFromJSON(jsonString: string): SafeParseResult<TaskClassificationResponse, SDKValidationError>;
|
|
33
|
+
//# sourceMappingURL=taskclassificationresponse.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e618eb0802a7
|
|
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 { TaskClassificationItem$inboundSchema, } from "./taskclassificationitem.js";
|
|
9
|
+
import { TaskClassificationMacroCategory$inboundSchema, } from "./taskclassificationmacrocategory.js";
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const TaskClassificationResponseData$inboundSchema = z.object({
|
|
12
|
+
as_of: z.string(),
|
|
13
|
+
classifications: z.array(TaskClassificationItem$inboundSchema),
|
|
14
|
+
macro_categories: z.array(TaskClassificationMacroCategory$inboundSchema),
|
|
15
|
+
window_days: z.int(),
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
"as_of": "asOf",
|
|
19
|
+
"macro_categories": "macroCategories",
|
|
20
|
+
"window_days": "windowDays",
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
export function taskClassificationResponseDataFromJSON(jsonString) {
|
|
24
|
+
return safeParse(jsonString, (x) => TaskClassificationResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TaskClassificationResponseData' from JSON`);
|
|
25
|
+
}
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const TaskClassificationResponse$inboundSchema = z.object({
|
|
28
|
+
data: z.lazy(() => TaskClassificationResponseData$inboundSchema),
|
|
29
|
+
});
|
|
30
|
+
export function taskClassificationResponseFromJSON(jsonString) {
|
|
31
|
+
return safeParse(jsonString, (x) => TaskClassificationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TaskClassificationResponse' from JSON`);
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=taskclassificationresponse.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* OpenRouter pricing per token for this model. Null if pricing is unavailable.
|
|
6
|
+
*/
|
|
7
|
+
export type UnifiedBenchmarkPricing = {
|
|
8
|
+
/**
|
|
9
|
+
* Cost per output token (USD, decimal string).
|
|
10
|
+
*/
|
|
11
|
+
completion: string;
|
|
12
|
+
/**
|
|
13
|
+
* Cost per input token (USD, decimal string).
|
|
14
|
+
*/
|
|
15
|
+
prompt: string;
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const UnifiedBenchmarkPricing$inboundSchema: z.ZodType<UnifiedBenchmarkPricing, unknown>;
|
|
19
|
+
export declare function unifiedBenchmarkPricingFromJSON(jsonString: string): SafeParseResult<UnifiedBenchmarkPricing, SDKValidationError>;
|
|
20
|
+
//# sourceMappingURL=unifiedbenchmarkpricing.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: c6862b5223a1
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const UnifiedBenchmarkPricing$inboundSchema = z.object({
|
|
9
|
+
completion: z.string(),
|
|
10
|
+
prompt: z.string(),
|
|
11
|
+
});
|
|
12
|
+
export function unifiedBenchmarkPricingFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => UnifiedBenchmarkPricing$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnifiedBenchmarkPricing' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=unifiedbenchmarkpricing.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
import { UnifiedBenchmarkPricing } from "./unifiedbenchmarkpricing.js";
|
|
5
|
+
export type UnifiedBenchmarksAAItem = {
|
|
6
|
+
/**
|
|
7
|
+
* Artificial Analysis Agentic Index composite score. Higher is better.
|
|
8
|
+
*/
|
|
9
|
+
agenticIndex: number | null;
|
|
10
|
+
/**
|
|
11
|
+
* Artificial Analysis Coding Index composite score. Higher is better.
|
|
12
|
+
*/
|
|
13
|
+
codingIndex: number | null;
|
|
14
|
+
/**
|
|
15
|
+
* Model name as listed on Artificial Analysis.
|
|
16
|
+
*/
|
|
17
|
+
displayName: string;
|
|
18
|
+
/**
|
|
19
|
+
* Artificial Analysis Intelligence Index composite score. Higher is better.
|
|
20
|
+
*/
|
|
21
|
+
intelligenceIndex: number | null;
|
|
22
|
+
/**
|
|
23
|
+
* Stable OpenRouter model identifier.
|
|
24
|
+
*/
|
|
25
|
+
modelPermaslug: string;
|
|
26
|
+
/**
|
|
27
|
+
* OpenRouter pricing per token for this model. Null if pricing is unavailable.
|
|
28
|
+
*/
|
|
29
|
+
pricing: UnifiedBenchmarkPricing | null;
|
|
30
|
+
/**
|
|
31
|
+
* Benchmark source discriminator.
|
|
32
|
+
*/
|
|
33
|
+
source: "artificial-analysis";
|
|
34
|
+
};
|
|
35
|
+
/** @internal */
|
|
36
|
+
export declare const UnifiedBenchmarksAAItem$inboundSchema: z.ZodType<UnifiedBenchmarksAAItem, unknown>;
|
|
37
|
+
export declare function unifiedBenchmarksAAItemFromJSON(jsonString: string): SafeParseResult<UnifiedBenchmarksAAItem, SDKValidationError>;
|
|
38
|
+
//# sourceMappingURL=unifiedbenchmarksaaitem.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 436660899947
|
|
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 { UnifiedBenchmarkPricing$inboundSchema, } from "./unifiedbenchmarkpricing.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const UnifiedBenchmarksAAItem$inboundSchema = z.object({
|
|
11
|
+
agentic_index: z.nullable(z.number()),
|
|
12
|
+
coding_index: z.nullable(z.number()),
|
|
13
|
+
display_name: z.string(),
|
|
14
|
+
intelligence_index: z.nullable(z.number()),
|
|
15
|
+
model_permaslug: z.string(),
|
|
16
|
+
pricing: z.nullable(UnifiedBenchmarkPricing$inboundSchema),
|
|
17
|
+
source: z.literal("artificial-analysis"),
|
|
18
|
+
}).transform((v) => {
|
|
19
|
+
return remap$(v, {
|
|
20
|
+
"agentic_index": "agenticIndex",
|
|
21
|
+
"coding_index": "codingIndex",
|
|
22
|
+
"display_name": "displayName",
|
|
23
|
+
"intelligence_index": "intelligenceIndex",
|
|
24
|
+
"model_permaslug": "modelPermaslug",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
export function unifiedBenchmarksAAItemFromJSON(jsonString) {
|
|
28
|
+
return safeParse(jsonString, (x) => UnifiedBenchmarksAAItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnifiedBenchmarksAAItem' from JSON`);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=unifiedbenchmarksaaitem.js.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
import { UnifiedBenchmarkPricing } from "./unifiedbenchmarkpricing.js";
|
|
5
|
+
/**
|
|
6
|
+
* Placement distribution from tournament matches.
|
|
7
|
+
*/
|
|
8
|
+
export type TournamentStats = {
|
|
9
|
+
firstPlace: number | null;
|
|
10
|
+
fourthPlace: number | null;
|
|
11
|
+
secondPlace: number | null;
|
|
12
|
+
thirdPlace: number | null;
|
|
13
|
+
total: number | null;
|
|
14
|
+
};
|
|
15
|
+
export type UnifiedBenchmarksDAItem = {
|
|
16
|
+
/**
|
|
17
|
+
* Arena this ranking belongs to.
|
|
18
|
+
*/
|
|
19
|
+
arena: string;
|
|
20
|
+
/**
|
|
21
|
+
* Average generation time in milliseconds.
|
|
22
|
+
*/
|
|
23
|
+
avgGenerationTimeMs: number | null;
|
|
24
|
+
/**
|
|
25
|
+
* Category within the arena.
|
|
26
|
+
*/
|
|
27
|
+
category: string;
|
|
28
|
+
/**
|
|
29
|
+
* Human-readable model name from Design Arena.
|
|
30
|
+
*/
|
|
31
|
+
displayName: string;
|
|
32
|
+
/**
|
|
33
|
+
* ELO rating from head-to-head arena battles.
|
|
34
|
+
*/
|
|
35
|
+
elo: number;
|
|
36
|
+
/**
|
|
37
|
+
* Stable OpenRouter model identifier when mapped; otherwise the upstream Design Arena model id.
|
|
38
|
+
*/
|
|
39
|
+
modelPermaslug: string;
|
|
40
|
+
/**
|
|
41
|
+
* OpenRouter pricing per token for this model. Null if pricing is unavailable.
|
|
42
|
+
*/
|
|
43
|
+
pricing: UnifiedBenchmarkPricing | null;
|
|
44
|
+
/**
|
|
45
|
+
* Benchmark source discriminator.
|
|
46
|
+
*/
|
|
47
|
+
source: "design-arena";
|
|
48
|
+
/**
|
|
49
|
+
* Placement distribution from tournament matches.
|
|
50
|
+
*/
|
|
51
|
+
tournamentStats: TournamentStats;
|
|
52
|
+
/**
|
|
53
|
+
* Win rate as a percentage (0–100).
|
|
54
|
+
*/
|
|
55
|
+
winRate: number;
|
|
56
|
+
};
|
|
57
|
+
/** @internal */
|
|
58
|
+
export declare const TournamentStats$inboundSchema: z.ZodType<TournamentStats, unknown>;
|
|
59
|
+
export declare function tournamentStatsFromJSON(jsonString: string): SafeParseResult<TournamentStats, SDKValidationError>;
|
|
60
|
+
/** @internal */
|
|
61
|
+
export declare const UnifiedBenchmarksDAItem$inboundSchema: z.ZodType<UnifiedBenchmarksDAItem, unknown>;
|
|
62
|
+
export declare function unifiedBenchmarksDAItemFromJSON(jsonString: string): SafeParseResult<UnifiedBenchmarksDAItem, SDKValidationError>;
|
|
63
|
+
//# sourceMappingURL=unifiedbenchmarksdaitem.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f911314affb3
|
|
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 { UnifiedBenchmarkPricing$inboundSchema, } from "./unifiedbenchmarkpricing.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const TournamentStats$inboundSchema = z.object({
|
|
11
|
+
first_place: z.nullable(z.int()),
|
|
12
|
+
fourth_place: z.nullable(z.int()),
|
|
13
|
+
second_place: z.nullable(z.int()),
|
|
14
|
+
third_place: z.nullable(z.int()),
|
|
15
|
+
total: z.nullable(z.int()),
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
"first_place": "firstPlace",
|
|
19
|
+
"fourth_place": "fourthPlace",
|
|
20
|
+
"second_place": "secondPlace",
|
|
21
|
+
"third_place": "thirdPlace",
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
export function tournamentStatsFromJSON(jsonString) {
|
|
25
|
+
return safeParse(jsonString, (x) => TournamentStats$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TournamentStats' from JSON`);
|
|
26
|
+
}
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const UnifiedBenchmarksDAItem$inboundSchema = z.object({
|
|
29
|
+
arena: z.string(),
|
|
30
|
+
avg_generation_time_ms: z.nullable(z.number()),
|
|
31
|
+
category: z.string(),
|
|
32
|
+
display_name: z.string(),
|
|
33
|
+
elo: z.number(),
|
|
34
|
+
model_permaslug: z.string(),
|
|
35
|
+
pricing: z.nullable(UnifiedBenchmarkPricing$inboundSchema),
|
|
36
|
+
source: z.literal("design-arena"),
|
|
37
|
+
tournament_stats: z.lazy(() => TournamentStats$inboundSchema),
|
|
38
|
+
win_rate: z.number(),
|
|
39
|
+
}).transform((v) => {
|
|
40
|
+
return remap$(v, {
|
|
41
|
+
"avg_generation_time_ms": "avgGenerationTimeMs",
|
|
42
|
+
"display_name": "displayName",
|
|
43
|
+
"model_permaslug": "modelPermaslug",
|
|
44
|
+
"tournament_stats": "tournamentStats",
|
|
45
|
+
"win_rate": "winRate",
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
export function unifiedBenchmarksDAItemFromJSON(jsonString) {
|
|
49
|
+
return safeParse(jsonString, (x) => UnifiedBenchmarksDAItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnifiedBenchmarksDAItem' from JSON`);
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=unifiedbenchmarksdaitem.js.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum, OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
/**
|
|
6
|
+
* The source filter applied, or null when all sources are returned.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SourceEnum: {
|
|
9
|
+
readonly ArtificialAnalysis: "artificial-analysis";
|
|
10
|
+
readonly DesignArena: "design-arena";
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The source filter applied, or null when all sources are returned.
|
|
14
|
+
*/
|
|
15
|
+
export type SourceEnum = OpenEnum<typeof SourceEnum>;
|
|
16
|
+
/**
|
|
17
|
+
* Dataset version.
|
|
18
|
+
*/
|
|
19
|
+
export declare const UnifiedBenchmarksMetaVersion: {
|
|
20
|
+
readonly V1: "v1";
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Dataset version.
|
|
24
|
+
*/
|
|
25
|
+
export type UnifiedBenchmarksMetaVersion = ClosedEnum<typeof UnifiedBenchmarksMetaVersion>;
|
|
26
|
+
export type UnifiedBenchmarksMeta = {
|
|
27
|
+
/**
|
|
28
|
+
* ISO-8601 timestamp of when this data was last updated.
|
|
29
|
+
*/
|
|
30
|
+
asOf: string;
|
|
31
|
+
/**
|
|
32
|
+
* Required attribution when republishing this data, or null when results span multiple sources (attribute each item individually by its `source` discriminator).
|
|
33
|
+
*/
|
|
34
|
+
citation: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* Number of unique models in the response.
|
|
37
|
+
*/
|
|
38
|
+
modelCount: number;
|
|
39
|
+
/**
|
|
40
|
+
* The source filter applied, or null when all sources are returned.
|
|
41
|
+
*/
|
|
42
|
+
source: SourceEnum | null;
|
|
43
|
+
/**
|
|
44
|
+
* URL of the upstream data source, or null when results span multiple sources.
|
|
45
|
+
*/
|
|
46
|
+
sourceUrl: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* The task_type filter applied, or null if showing all.
|
|
49
|
+
*/
|
|
50
|
+
taskType: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Dataset version.
|
|
53
|
+
*/
|
|
54
|
+
version: UnifiedBenchmarksMetaVersion;
|
|
55
|
+
};
|
|
56
|
+
/** @internal */
|
|
57
|
+
export declare const SourceEnum$inboundSchema: z.ZodType<SourceEnum, unknown>;
|
|
58
|
+
/** @internal */
|
|
59
|
+
export declare const UnifiedBenchmarksMetaVersion$inboundSchema: z.ZodEnum<typeof UnifiedBenchmarksMetaVersion>;
|
|
60
|
+
/** @internal */
|
|
61
|
+
export declare const UnifiedBenchmarksMeta$inboundSchema: z.ZodType<UnifiedBenchmarksMeta, unknown>;
|
|
62
|
+
export declare function unifiedBenchmarksMetaFromJSON(jsonString: string): SafeParseResult<UnifiedBenchmarksMeta, SDKValidationError>;
|
|
63
|
+
//# sourceMappingURL=unifiedbenchmarksmeta.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d146ee8b8956
|
|
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
|
+
/**
|
|
10
|
+
* The source filter applied, or null when all sources are returned.
|
|
11
|
+
*/
|
|
12
|
+
export const SourceEnum = {
|
|
13
|
+
ArtificialAnalysis: "artificial-analysis",
|
|
14
|
+
DesignArena: "design-arena",
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Dataset version.
|
|
18
|
+
*/
|
|
19
|
+
export const UnifiedBenchmarksMetaVersion = {
|
|
20
|
+
V1: "v1",
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const SourceEnum$inboundSchema = openEnums.inboundSchema(SourceEnum);
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const UnifiedBenchmarksMetaVersion$inboundSchema = z.enum(UnifiedBenchmarksMetaVersion);
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const UnifiedBenchmarksMeta$inboundSchema = z.object({
|
|
28
|
+
as_of: z.string(),
|
|
29
|
+
citation: z.nullable(z.string()),
|
|
30
|
+
model_count: z.int(),
|
|
31
|
+
source: z.nullable(SourceEnum$inboundSchema),
|
|
32
|
+
source_url: z.nullable(z.string()),
|
|
33
|
+
task_type: z.nullable(z.string()),
|
|
34
|
+
version: UnifiedBenchmarksMetaVersion$inboundSchema,
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
"as_of": "asOf",
|
|
38
|
+
"model_count": "modelCount",
|
|
39
|
+
"source_url": "sourceUrl",
|
|
40
|
+
"task_type": "taskType",
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
export function unifiedBenchmarksMetaFromJSON(jsonString) {
|
|
44
|
+
return safeParse(jsonString, (x) => UnifiedBenchmarksMeta$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnifiedBenchmarksMeta' from JSON`);
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=unifiedbenchmarksmeta.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import * as discriminatedUnionTypes from "../types/discriminatedUnion.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
import { UnifiedBenchmarksAAItem } from "./unifiedbenchmarksaaitem.js";
|
|
6
|
+
import { UnifiedBenchmarksDAItem } from "./unifiedbenchmarksdaitem.js";
|
|
7
|
+
import { UnifiedBenchmarksMeta } from "./unifiedbenchmarksmeta.js";
|
|
8
|
+
export type UnifiedBenchmarksResponseData = UnifiedBenchmarksAAItem | UnifiedBenchmarksDAItem | discriminatedUnionTypes.Unknown<"source">;
|
|
9
|
+
export type UnifiedBenchmarksResponse = {
|
|
10
|
+
data: Array<UnifiedBenchmarksAAItem | UnifiedBenchmarksDAItem | discriminatedUnionTypes.Unknown<"source">>;
|
|
11
|
+
meta: UnifiedBenchmarksMeta;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const UnifiedBenchmarksResponseData$inboundSchema: z.ZodType<UnifiedBenchmarksResponseData, unknown>;
|
|
15
|
+
export declare function unifiedBenchmarksResponseDataFromJSON(jsonString: string): SafeParseResult<UnifiedBenchmarksResponseData, SDKValidationError>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const UnifiedBenchmarksResponse$inboundSchema: z.ZodType<UnifiedBenchmarksResponse, unknown>;
|
|
18
|
+
export declare function unifiedBenchmarksResponseFromJSON(jsonString: string): SafeParseResult<UnifiedBenchmarksResponse, SDKValidationError>;
|
|
19
|
+
//# sourceMappingURL=unifiedbenchmarksresponse.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b3f08556727b
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { discriminatedUnion } from "../types/discriminatedUnion.js";
|
|
8
|
+
import { UnifiedBenchmarksAAItem$inboundSchema, } from "./unifiedbenchmarksaaitem.js";
|
|
9
|
+
import { UnifiedBenchmarksDAItem$inboundSchema, } from "./unifiedbenchmarksdaitem.js";
|
|
10
|
+
import { UnifiedBenchmarksMeta$inboundSchema, } from "./unifiedbenchmarksmeta.js";
|
|
11
|
+
/** @internal */
|
|
12
|
+
export const UnifiedBenchmarksResponseData$inboundSchema = discriminatedUnion("source", {
|
|
13
|
+
["artificial-analysis"]: UnifiedBenchmarksAAItem$inboundSchema,
|
|
14
|
+
["design-arena"]: UnifiedBenchmarksDAItem$inboundSchema,
|
|
15
|
+
});
|
|
16
|
+
export function unifiedBenchmarksResponseDataFromJSON(jsonString) {
|
|
17
|
+
return safeParse(jsonString, (x) => UnifiedBenchmarksResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnifiedBenchmarksResponseData' from JSON`);
|
|
18
|
+
}
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const UnifiedBenchmarksResponse$inboundSchema = z.object({
|
|
21
|
+
data: z.array(discriminatedUnion("source", {
|
|
22
|
+
["artificial-analysis"]: UnifiedBenchmarksAAItem$inboundSchema,
|
|
23
|
+
["design-arena"]: UnifiedBenchmarksDAItem$inboundSchema,
|
|
24
|
+
})),
|
|
25
|
+
meta: UnifiedBenchmarksMeta$inboundSchema,
|
|
26
|
+
});
|
|
27
|
+
export function unifiedBenchmarksResponseFromJSON(jsonString) {
|
|
28
|
+
return safeParse(jsonString, (x) => UnifiedBenchmarksResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnifiedBenchmarksResponse' from JSON`);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=unifiedbenchmarksresponse.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type UpsertWorkspaceBudgetRequest = {
|
|
3
|
+
/**
|
|
4
|
+
* Spending limit in USD. Must be greater than 0.
|
|
5
|
+
*/
|
|
6
|
+
limitUsd: number;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export type UpsertWorkspaceBudgetRequest$Outbound = {
|
|
10
|
+
limit_usd: number;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const UpsertWorkspaceBudgetRequest$outboundSchema: z.ZodType<UpsertWorkspaceBudgetRequest$Outbound, UpsertWorkspaceBudgetRequest>;
|
|
14
|
+
export declare function upsertWorkspaceBudgetRequestToJSON(upsertWorkspaceBudgetRequest: UpsertWorkspaceBudgetRequest): string;
|
|
15
|
+
//# sourceMappingURL=upsertworkspacebudgetrequest.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: ff35250e4ab2
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const UpsertWorkspaceBudgetRequest$outboundSchema = z.object({
|
|
9
|
+
limitUsd: z.number(),
|
|
10
|
+
}).transform((v) => {
|
|
11
|
+
return remap$(v, {
|
|
12
|
+
limitUsd: "limit_usd",
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
export function upsertWorkspaceBudgetRequestToJSON(upsertWorkspaceBudgetRequest) {
|
|
16
|
+
return JSON.stringify(UpsertWorkspaceBudgetRequest$outboundSchema.parse(upsertWorkspaceBudgetRequest));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=upsertworkspacebudgetrequest.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
import { WorkspaceBudget } from "./workspacebudget.js";
|
|
5
|
+
export type UpsertWorkspaceBudgetResponse = {
|
|
6
|
+
data: WorkspaceBudget;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const UpsertWorkspaceBudgetResponse$inboundSchema: z.ZodType<UpsertWorkspaceBudgetResponse, unknown>;
|
|
10
|
+
export declare function upsertWorkspaceBudgetResponseFromJSON(jsonString: string): SafeParseResult<UpsertWorkspaceBudgetResponse, SDKValidationError>;
|
|
11
|
+
//# sourceMappingURL=upsertworkspacebudgetresponse.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: ad34c44c01ce
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { WorkspaceBudget$inboundSchema, } from "./workspacebudget.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const UpsertWorkspaceBudgetResponse$inboundSchema = z.object({
|
|
10
|
+
data: WorkspaceBudget$inboundSchema,
|
|
11
|
+
});
|
|
12
|
+
export function upsertWorkspaceBudgetResponseFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => UpsertWorkspaceBudgetResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpsertWorkspaceBudgetResponse' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=upsertworkspacebudgetresponse.js.map
|
|
@@ -2,6 +2,7 @@ import * as z from "zod/v4";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
4
|
export type URLCitation = {
|
|
5
|
+
content?: string | undefined;
|
|
5
6
|
endIndex: number;
|
|
6
7
|
startIndex: number;
|
|
7
8
|
title: string;
|
|
@@ -12,6 +13,7 @@ export type URLCitation = {
|
|
|
12
13
|
export declare const URLCitation$inboundSchema: z.ZodType<URLCitation, unknown>;
|
|
13
14
|
/** @internal */
|
|
14
15
|
export type URLCitation$Outbound = {
|
|
16
|
+
content?: string | undefined;
|
|
15
17
|
end_index: number;
|
|
16
18
|
start_index: number;
|
|
17
19
|
title: string;
|
|
@@ -8,6 +8,7 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const URLCitation$inboundSchema = z
|
|
10
10
|
.object({
|
|
11
|
+
content: z.string().optional(),
|
|
11
12
|
end_index: z.int(),
|
|
12
13
|
start_index: z.int(),
|
|
13
14
|
title: z.string(),
|
|
@@ -21,6 +22,7 @@ export const URLCitation$inboundSchema = z
|
|
|
21
22
|
});
|
|
22
23
|
/** @internal */
|
|
23
24
|
export const URLCitation$outboundSchema = z.object({
|
|
25
|
+
content: z.string().optional(),
|
|
24
26
|
endIndex: z.int(),
|
|
25
27
|
startIndex: z.int(),
|
|
26
28
|
title: z.string(),
|