@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
|
@@ -17,6 +17,7 @@ import { McpApprovalResponseItem, McpApprovalResponseItem$Outbound } from "./mcp
|
|
|
17
17
|
import { McpCallItem, McpCallItem$Outbound } from "./mcpcallitem.js";
|
|
18
18
|
import { McpListToolsItem, McpListToolsItem$Outbound } from "./mcplisttoolsitem.js";
|
|
19
19
|
import { OpenAIResponsesRefusalContent, OpenAIResponsesRefusalContent$Outbound } from "./openairesponsesrefusalcontent.js";
|
|
20
|
+
import { OutputAdvisorServerToolItem, OutputAdvisorServerToolItem$Outbound } from "./outputadvisorservertoolitem.js";
|
|
20
21
|
import { OutputApplyPatchServerToolItem, OutputApplyPatchServerToolItem$Outbound } from "./outputapplypatchservertoolitem.js";
|
|
21
22
|
import { OutputBashServerToolItem, OutputBashServerToolItem$Outbound } from "./outputbashservertoolitem.js";
|
|
22
23
|
import { OutputBrowserUseServerToolItem, OutputBrowserUseServerToolItem$Outbound } from "./outputbrowseruseservertoolitem.js";
|
|
@@ -28,11 +29,13 @@ import { OutputDatetimeItem, OutputDatetimeItem$Outbound } from "./outputdatetim
|
|
|
28
29
|
import { OutputFileSearchCallItem, OutputFileSearchCallItem$Outbound } from "./outputfilesearchcallitem.js";
|
|
29
30
|
import { OutputFileSearchServerToolItem, OutputFileSearchServerToolItem$Outbound } from "./outputfilesearchservertoolitem.js";
|
|
30
31
|
import { OutputFunctionCallItem, OutputFunctionCallItem$Outbound } from "./outputfunctioncallitem.js";
|
|
32
|
+
import { OutputFusionServerToolItem, OutputFusionServerToolItem$Outbound } from "./outputfusionservertoolitem.js";
|
|
31
33
|
import { OutputImageGenerationCallItem, OutputImageGenerationCallItem$Outbound } from "./outputimagegenerationcallitem.js";
|
|
32
34
|
import { OutputImageGenerationServerToolItem, OutputImageGenerationServerToolItem$Outbound } from "./outputimagegenerationservertoolitem.js";
|
|
33
35
|
import { OutputMcpServerToolItem, OutputMcpServerToolItem$Outbound } from "./outputmcpservertoolitem.js";
|
|
34
36
|
import { OutputMemoryServerToolItem, OutputMemoryServerToolItem$Outbound } from "./outputmemoryservertoolitem.js";
|
|
35
37
|
import { OutputSearchModelsServerToolItem, OutputSearchModelsServerToolItem$Outbound } from "./outputsearchmodelsservertoolitem.js";
|
|
38
|
+
import { OutputSubagentServerToolItem, OutputSubagentServerToolItem$Outbound } from "./outputsubagentservertoolitem.js";
|
|
36
39
|
import { OutputTextEditorServerToolItem, OutputTextEditorServerToolItem$Outbound } from "./outputtexteditorservertoolitem.js";
|
|
37
40
|
import { OutputToolSearchServerToolItem, OutputToolSearchServerToolItem$Outbound } from "./outputtoolsearchservertoolitem.js";
|
|
38
41
|
import { OutputWebFetchServerToolItem, OutputWebFetchServerToolItem$Outbound } from "./outputwebfetchservertoolitem.js";
|
|
@@ -127,11 +130,11 @@ export type InputsMessage = {
|
|
|
127
130
|
status?: InputsStatusCompleted1 | InputsStatusIncomplete1 | InputsStatusInProgress1 | undefined;
|
|
128
131
|
type: InputsTypeMessage;
|
|
129
132
|
};
|
|
130
|
-
export type InputsUnion1 = OutputCodeInterpreterCallItem | FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | InputsMessage | OutputFunctionCallItem | OutputCustomToolCallItem |
|
|
133
|
+
export type InputsUnion1 = OutputCodeInterpreterCallItem | FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | InputsMessage | OutputFunctionCallItem | OutputCustomToolCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | CompactionItem | ItemReferenceItem | EasyInputMessage | InputMessageItem;
|
|
131
134
|
/**
|
|
132
135
|
* Input for a response request - can be a string or array of items
|
|
133
136
|
*/
|
|
134
|
-
export type InputsUnion = string | Array<OutputCodeInterpreterCallItem | FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | InputsMessage | OutputFunctionCallItem | OutputCustomToolCallItem |
|
|
137
|
+
export type InputsUnion = string | Array<OutputCodeInterpreterCallItem | FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | InputsMessage | OutputFunctionCallItem | OutputCustomToolCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | CompactionItem | ItemReferenceItem | EasyInputMessage | InputMessageItem>;
|
|
135
138
|
/** @internal */
|
|
136
139
|
export declare const InputsStatusInProgress2$outboundSchema: z.ZodEnum<typeof InputsStatusInProgress2>;
|
|
137
140
|
/** @internal */
|
|
@@ -206,12 +209,12 @@ export type InputsMessage$Outbound = {
|
|
|
206
209
|
export declare const InputsMessage$outboundSchema: z.ZodType<InputsMessage$Outbound, InputsMessage>;
|
|
207
210
|
export declare function inputsMessageToJSON(inputsMessage: InputsMessage): string;
|
|
208
211
|
/** @internal */
|
|
209
|
-
export type InputsUnion1$Outbound = OutputCodeInterpreterCallItem$Outbound | FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | InputsMessage$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound |
|
|
212
|
+
export type InputsUnion1$Outbound = OutputCodeInterpreterCallItem$Outbound | FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | InputsMessage$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound;
|
|
210
213
|
/** @internal */
|
|
211
214
|
export declare const InputsUnion1$outboundSchema: z.ZodType<InputsUnion1$Outbound, InputsUnion1>;
|
|
212
215
|
export declare function inputsUnion1ToJSON(inputsUnion1: InputsUnion1): string;
|
|
213
216
|
/** @internal */
|
|
214
|
-
export type InputsUnion$Outbound = string | Array<OutputCodeInterpreterCallItem$Outbound | FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | InputsMessage$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound |
|
|
217
|
+
export type InputsUnion$Outbound = string | Array<OutputCodeInterpreterCallItem$Outbound | FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | InputsMessage$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound>;
|
|
215
218
|
/** @internal */
|
|
216
219
|
export declare const InputsUnion$outboundSchema: z.ZodType<InputsUnion$Outbound, InputsUnion>;
|
|
217
220
|
export declare function inputsUnionToJSON(inputsUnion: InputsUnion): string;
|
|
@@ -21,6 +21,7 @@ import { McpApprovalResponseItem$outboundSchema, } from "./mcpapprovalresponseit
|
|
|
21
21
|
import { McpCallItem$outboundSchema, } from "./mcpcallitem.js";
|
|
22
22
|
import { McpListToolsItem$outboundSchema, } from "./mcplisttoolsitem.js";
|
|
23
23
|
import { OpenAIResponsesRefusalContent$outboundSchema, } from "./openairesponsesrefusalcontent.js";
|
|
24
|
+
import { OutputAdvisorServerToolItem$outboundSchema, } from "./outputadvisorservertoolitem.js";
|
|
24
25
|
import { OutputApplyPatchServerToolItem$outboundSchema, } from "./outputapplypatchservertoolitem.js";
|
|
25
26
|
import { OutputBashServerToolItem$outboundSchema, } from "./outputbashservertoolitem.js";
|
|
26
27
|
import { OutputBrowserUseServerToolItem$outboundSchema, } from "./outputbrowseruseservertoolitem.js";
|
|
@@ -32,11 +33,13 @@ import { OutputDatetimeItem$outboundSchema, } from "./outputdatetimeitem.js";
|
|
|
32
33
|
import { OutputFileSearchCallItem$outboundSchema, } from "./outputfilesearchcallitem.js";
|
|
33
34
|
import { OutputFileSearchServerToolItem$outboundSchema, } from "./outputfilesearchservertoolitem.js";
|
|
34
35
|
import { OutputFunctionCallItem$outboundSchema, } from "./outputfunctioncallitem.js";
|
|
36
|
+
import { OutputFusionServerToolItem$outboundSchema, } from "./outputfusionservertoolitem.js";
|
|
35
37
|
import { OutputImageGenerationCallItem$outboundSchema, } from "./outputimagegenerationcallitem.js";
|
|
36
38
|
import { OutputImageGenerationServerToolItem$outboundSchema, } from "./outputimagegenerationservertoolitem.js";
|
|
37
39
|
import { OutputMcpServerToolItem$outboundSchema, } from "./outputmcpservertoolitem.js";
|
|
38
40
|
import { OutputMemoryServerToolItem$outboundSchema, } from "./outputmemoryservertoolitem.js";
|
|
39
41
|
import { OutputSearchModelsServerToolItem$outboundSchema, } from "./outputsearchmodelsservertoolitem.js";
|
|
42
|
+
import { OutputSubagentServerToolItem$outboundSchema, } from "./outputsubagentservertoolitem.js";
|
|
40
43
|
import { OutputTextEditorServerToolItem$outboundSchema, } from "./outputtexteditorservertoolitem.js";
|
|
41
44
|
import { OutputToolSearchServerToolItem$outboundSchema, } from "./outputtoolsearchservertoolitem.js";
|
|
42
45
|
import { OutputWebFetchServerToolItem$outboundSchema, } from "./outputwebfetchservertoolitem.js";
|
|
@@ -211,7 +214,6 @@ export const InputsUnion1$outboundSchema = z.union([
|
|
|
211
214
|
z.lazy(() => InputsMessage$outboundSchema),
|
|
212
215
|
OutputFunctionCallItem$outboundSchema,
|
|
213
216
|
OutputCustomToolCallItem$outboundSchema,
|
|
214
|
-
OutputWebSearchCallItem$outboundSchema,
|
|
215
217
|
OutputFileSearchCallItem$outboundSchema,
|
|
216
218
|
OutputComputerCallItem$outboundSchema,
|
|
217
219
|
OutputDatetimeItem$outboundSchema,
|
|
@@ -221,6 +223,7 @@ export const InputsUnion1$outboundSchema = z.union([
|
|
|
221
223
|
FunctionCallOutputItem$outboundSchema,
|
|
222
224
|
ApplyPatchCallOutputItem$outboundSchema,
|
|
223
225
|
z.lazy(() => InputsReasoning$outboundSchema),
|
|
226
|
+
OutputWebSearchCallItem$outboundSchema,
|
|
224
227
|
OutputImageGenerationCallItem$outboundSchema,
|
|
225
228
|
LocalShellCallOutputItem$outboundSchema,
|
|
226
229
|
ShellCallItem$outboundSchema,
|
|
@@ -240,6 +243,9 @@ export const InputsUnion1$outboundSchema = z.union([
|
|
|
240
243
|
OutputMemoryServerToolItem$outboundSchema,
|
|
241
244
|
OutputMcpServerToolItem$outboundSchema,
|
|
242
245
|
OutputSearchModelsServerToolItem$outboundSchema,
|
|
246
|
+
OutputFusionServerToolItem$outboundSchema,
|
|
247
|
+
OutputAdvisorServerToolItem$outboundSchema,
|
|
248
|
+
OutputSubagentServerToolItem$outboundSchema,
|
|
243
249
|
CompactionItem$outboundSchema,
|
|
244
250
|
ItemReferenceItem$outboundSchema,
|
|
245
251
|
EasyInputMessage$outboundSchema,
|
|
@@ -261,7 +267,6 @@ export const InputsUnion$outboundSchema = z.union([
|
|
|
261
267
|
z.lazy(() => InputsMessage$outboundSchema),
|
|
262
268
|
OutputFunctionCallItem$outboundSchema,
|
|
263
269
|
OutputCustomToolCallItem$outboundSchema,
|
|
264
|
-
OutputWebSearchCallItem$outboundSchema,
|
|
265
270
|
OutputFileSearchCallItem$outboundSchema,
|
|
266
271
|
OutputComputerCallItem$outboundSchema,
|
|
267
272
|
OutputDatetimeItem$outboundSchema,
|
|
@@ -271,6 +276,7 @@ export const InputsUnion$outboundSchema = z.union([
|
|
|
271
276
|
FunctionCallOutputItem$outboundSchema,
|
|
272
277
|
ApplyPatchCallOutputItem$outboundSchema,
|
|
273
278
|
z.lazy(() => InputsReasoning$outboundSchema),
|
|
279
|
+
OutputWebSearchCallItem$outboundSchema,
|
|
274
280
|
OutputImageGenerationCallItem$outboundSchema,
|
|
275
281
|
LocalShellCallOutputItem$outboundSchema,
|
|
276
282
|
ShellCallItem$outboundSchema,
|
|
@@ -290,6 +296,9 @@ export const InputsUnion$outboundSchema = z.union([
|
|
|
290
296
|
OutputMemoryServerToolItem$outboundSchema,
|
|
291
297
|
OutputMcpServerToolItem$outboundSchema,
|
|
292
298
|
OutputSearchModelsServerToolItem$outboundSchema,
|
|
299
|
+
OutputFusionServerToolItem$outboundSchema,
|
|
300
|
+
OutputAdvisorServerToolItem$outboundSchema,
|
|
301
|
+
OutputSubagentServerToolItem$outboundSchema,
|
|
293
302
|
CompactionItem$outboundSchema,
|
|
294
303
|
ItemReferenceItem$outboundSchema,
|
|
295
304
|
EasyInputMessage$outboundSchema,
|
|
@@ -10,12 +10,12 @@ import { WebSearchUserLocation, WebSearchUserLocation$Outbound } from "./websear
|
|
|
10
10
|
*/
|
|
11
11
|
export type LegacyWebSearchServerTool = {
|
|
12
12
|
/**
|
|
13
|
-
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API.
|
|
13
|
+
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
|
|
14
14
|
*/
|
|
15
15
|
engine?: WebSearchEngineEnum | undefined;
|
|
16
16
|
filters?: WebSearchDomainFilter | null | undefined;
|
|
17
17
|
/**
|
|
18
|
-
* Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, and
|
|
18
|
+
* Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped.
|
|
19
19
|
*/
|
|
20
20
|
maxResults?: number | undefined;
|
|
21
21
|
/**
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { Preset } from "./preset.js";
|
|
5
|
+
/**
|
|
6
|
+
* A paginated list of presets.
|
|
7
|
+
*/
|
|
8
|
+
export type ListPresetsResponse = {
|
|
9
|
+
data: Array<Preset>;
|
|
10
|
+
totalCount: number;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const ListPresetsResponse$inboundSchema: z.ZodType<ListPresetsResponse, unknown>;
|
|
14
|
+
export declare function listPresetsResponseFromJSON(jsonString: string): SafeParseResult<ListPresetsResponse, SDKValidationError>;
|
|
15
|
+
//# sourceMappingURL=listpresetsresponse.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: fa1eada5cc46
|
|
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 { Preset$inboundSchema } from "./preset.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const ListPresetsResponse$inboundSchema = z.object({
|
|
11
|
+
data: z.array(Preset$inboundSchema),
|
|
12
|
+
total_count: z.int(),
|
|
13
|
+
}).transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
"total_count": "totalCount",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function listPresetsResponseFromJSON(jsonString) {
|
|
19
|
+
return safeParse(jsonString, (x) => ListPresetsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPresetsResponse' from JSON`);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=listpresetsresponse.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { PresetDesignatedVersion } from "./presetdesignatedversion.js";
|
|
5
|
+
/**
|
|
6
|
+
* A paginated list of preset versions.
|
|
7
|
+
*/
|
|
8
|
+
export type ListPresetVersionsResponse = {
|
|
9
|
+
data: Array<PresetDesignatedVersion | null>;
|
|
10
|
+
totalCount: number;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const ListPresetVersionsResponse$inboundSchema: z.ZodType<ListPresetVersionsResponse, unknown>;
|
|
14
|
+
export declare function listPresetVersionsResponseFromJSON(jsonString: string): SafeParseResult<ListPresetVersionsResponse, SDKValidationError>;
|
|
15
|
+
//# sourceMappingURL=listpresetversionsresponse.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 071060ed138f
|
|
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 { PresetDesignatedVersion$inboundSchema, } from "./presetdesignatedversion.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const ListPresetVersionsResponse$inboundSchema = z.object({
|
|
11
|
+
data: z.array(z.nullable(PresetDesignatedVersion$inboundSchema)),
|
|
12
|
+
total_count: z.int(),
|
|
13
|
+
}).transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
"total_count": "totalCount",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function listPresetVersionsResponseFromJSON(jsonString) {
|
|
19
|
+
return safeParse(jsonString, (x) => ListPresetVersionsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPresetVersionsResponse' from JSON`);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=listpresetversionsresponse.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
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 ListWorkspaceBudgetsResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* List of budgets configured for the workspace
|
|
8
|
+
*/
|
|
9
|
+
data: Array<WorkspaceBudget>;
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const ListWorkspaceBudgetsResponse$inboundSchema: z.ZodType<ListWorkspaceBudgetsResponse, unknown>;
|
|
13
|
+
export declare function listWorkspaceBudgetsResponseFromJSON(jsonString: string): SafeParseResult<ListWorkspaceBudgetsResponse, SDKValidationError>;
|
|
14
|
+
//# sourceMappingURL=listworkspacebudgetsresponse.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 2573f31846b9
|
|
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 ListWorkspaceBudgetsResponse$inboundSchema = z.object({
|
|
10
|
+
data: z.array(WorkspaceBudget$inboundSchema),
|
|
11
|
+
});
|
|
12
|
+
export function listWorkspaceBudgetsResponseFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => ListWorkspaceBudgetsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListWorkspaceBudgetsResponse' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=listworkspacebudgetsresponse.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Fallback model to try when the primary model fails or refuses. Only the `model` field is supported; per-attempt overrides are rejected.
|
|
4
|
+
*/
|
|
5
|
+
export type MessagesFallbackParam = {
|
|
6
|
+
model: string;
|
|
7
|
+
additionalProperties?: {
|
|
8
|
+
[k: string]: any | null;
|
|
9
|
+
} | undefined;
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type MessagesFallbackParam$Outbound = {
|
|
13
|
+
model: string;
|
|
14
|
+
[additionalProperties: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const MessagesFallbackParam$outboundSchema: z.ZodType<MessagesFallbackParam$Outbound, MessagesFallbackParam>;
|
|
18
|
+
export declare function messagesFallbackParamToJSON(messagesFallbackParam: MessagesFallbackParam): string;
|
|
19
|
+
//# sourceMappingURL=messagesfallbackparam.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 990ce0f7bc03
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const MessagesFallbackParam$outboundSchema = z.object({
|
|
9
|
+
model: z.string(),
|
|
10
|
+
additionalProperties: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
11
|
+
}).transform((v) => {
|
|
12
|
+
return {
|
|
13
|
+
...v.additionalProperties,
|
|
14
|
+
...remap$(v, {
|
|
15
|
+
additionalProperties: null,
|
|
16
|
+
}),
|
|
17
|
+
};
|
|
18
|
+
});
|
|
19
|
+
export function messagesFallbackParamToJSON(messagesFallbackParam) {
|
|
20
|
+
return JSON.stringify(MessagesFallbackParam$outboundSchema.parse(messagesFallbackParam));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=messagesfallbackparam.js.map
|
|
@@ -12,12 +12,14 @@ import { AnthropicToolUsesKeep, AnthropicToolUsesKeep$Outbound } from "./anthrop
|
|
|
12
12
|
import { AnthropicToolUsesTrigger, AnthropicToolUsesTrigger$Outbound } from "./anthropictoolusestrigger.js";
|
|
13
13
|
import { AnthropicWebSearchToolUserLocation, AnthropicWebSearchToolUserLocation$Outbound } from "./anthropicwebsearchtooluserlocation.js";
|
|
14
14
|
import { AutoRouterPlugin, AutoRouterPlugin$Outbound } from "./autorouterplugin.js";
|
|
15
|
+
import { BashServerTool, BashServerTool$Outbound } from "./bashservertool.js";
|
|
15
16
|
import { ChatSearchModelsServerTool, ChatSearchModelsServerTool$Outbound } from "./chatsearchmodelsservertool.js";
|
|
16
17
|
import { ContextCompressionPlugin, ContextCompressionPlugin$Outbound } from "./contextcompressionplugin.js";
|
|
17
18
|
import { DatetimeServerTool, DatetimeServerTool$Outbound } from "./datetimeservertool.js";
|
|
18
19
|
import { FileParserPlugin, FileParserPlugin$Outbound } from "./fileparserplugin.js";
|
|
19
20
|
import { FusionPlugin, FusionPlugin$Outbound } from "./fusionplugin.js";
|
|
20
21
|
import { ImageGenerationServerToolOpenRouter, ImageGenerationServerToolOpenRouter$Outbound } from "./imagegenerationservertoolopenrouter.js";
|
|
22
|
+
import { MessagesFallbackParam, MessagesFallbackParam$Outbound } from "./messagesfallbackparam.js";
|
|
21
23
|
import { MessagesMessageParam, MessagesMessageParam$Outbound } from "./messagesmessageparam.js";
|
|
22
24
|
import { MessagesOutputConfig, MessagesOutputConfig$Outbound } from "./messagesoutputconfig.js";
|
|
23
25
|
import { ModerationPlugin, ModerationPlugin$Outbound } from "./moderationplugin.js";
|
|
@@ -74,7 +76,7 @@ export type Edit = EditClearToolUses20250919 | EditClearThinking20251015 | EditC
|
|
|
74
76
|
export type ContextManagement = {
|
|
75
77
|
edits?: Array<EditClearToolUses20250919 | EditClearThinking20251015 | EditCompact20260112> | undefined;
|
|
76
78
|
};
|
|
77
|
-
export type
|
|
79
|
+
export type MessagesRequestMetadata = {
|
|
78
80
|
userId?: string | null | undefined;
|
|
79
81
|
};
|
|
80
82
|
export type MessagesRequestPlugin = AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | WebSearchPlugin | WebFetchPlugin;
|
|
@@ -253,7 +255,7 @@ export type ToolCustom = {
|
|
|
253
255
|
name: string;
|
|
254
256
|
type?: ToolTypeCustom | undefined;
|
|
255
257
|
};
|
|
256
|
-
export type MessagesRequestToolUnion = ToolAdvisor20260301 | ToolCustom | ToolBash20250124 | ToolTextEditor20250124 | ToolWebSearch20250305 | ToolWebSearch20260209 | DatetimeServerTool | ImageGenerationServerToolOpenRouter | ChatSearchModelsServerTool | WebFetchServerTool | OpenRouterWebSearchServerTool | MessagesRequestTool;
|
|
258
|
+
export type MessagesRequestToolUnion = ToolAdvisor20260301 | ToolCustom | ToolBash20250124 | ToolTextEditor20250124 | ToolWebSearch20250305 | ToolWebSearch20260209 | BashServerTool | DatetimeServerTool | ImageGenerationServerToolOpenRouter | ChatSearchModelsServerTool | WebFetchServerTool | OpenRouterWebSearchServerTool | MessagesRequestTool;
|
|
257
259
|
/**
|
|
258
260
|
* Request schema for Anthropic Messages API endpoint
|
|
259
261
|
*/
|
|
@@ -263,9 +265,13 @@ export type MessagesRequest = {
|
|
|
263
265
|
*/
|
|
264
266
|
cacheControl?: AnthropicCacheControlDirective | undefined;
|
|
265
267
|
contextManagement?: ContextManagement | null | undefined;
|
|
268
|
+
/**
|
|
269
|
+
* Fallback models to try if the primary model fails or refuses, in order. Handled by OpenRouter multi-model routing rather than Anthropic server-side fallbacks; cannot be combined with `models`. Each entry accepts only `model`. Maximum of 3 entries.
|
|
270
|
+
*/
|
|
271
|
+
fallbacks?: Array<MessagesFallbackParam> | null | undefined;
|
|
266
272
|
maxTokens?: number | undefined;
|
|
267
273
|
messages: Array<MessagesMessageParam> | null;
|
|
268
|
-
metadata?:
|
|
274
|
+
metadata?: MessagesRequestMetadata | undefined;
|
|
269
275
|
model: string;
|
|
270
276
|
models?: Array<string> | undefined;
|
|
271
277
|
/**
|
|
@@ -296,7 +302,7 @@ export type MessagesRequest = {
|
|
|
296
302
|
temperature?: number | undefined;
|
|
297
303
|
thinking?: ThinkingEnabled | ThinkingDisabled | ThinkingAdaptive | undefined;
|
|
298
304
|
toolChoice?: ToolChoiceAuto | ToolChoiceAny | ToolChoiceNone | ToolChoiceTool | undefined;
|
|
299
|
-
tools?: Array<ToolAdvisor20260301 | ToolCustom | ToolBash20250124 | ToolTextEditor20250124 | ToolWebSearch20250305 | ToolWebSearch20260209 | DatetimeServerTool | ImageGenerationServerToolOpenRouter | ChatSearchModelsServerTool | WebFetchServerTool | OpenRouterWebSearchServerTool | MessagesRequestTool> | undefined;
|
|
305
|
+
tools?: Array<ToolAdvisor20260301 | ToolCustom | ToolBash20250124 | ToolTextEditor20250124 | ToolWebSearch20250305 | ToolWebSearch20260209 | BashServerTool | DatetimeServerTool | ImageGenerationServerToolOpenRouter | ChatSearchModelsServerTool | WebFetchServerTool | OpenRouterWebSearchServerTool | MessagesRequestTool> | undefined;
|
|
300
306
|
topK?: number | undefined;
|
|
301
307
|
topP?: number | undefined;
|
|
302
308
|
/**
|
|
@@ -387,12 +393,12 @@ export type ContextManagement$Outbound = {
|
|
|
387
393
|
export declare const ContextManagement$outboundSchema: z.ZodType<ContextManagement$Outbound, ContextManagement>;
|
|
388
394
|
export declare function contextManagementToJSON(contextManagement: ContextManagement): string;
|
|
389
395
|
/** @internal */
|
|
390
|
-
export type
|
|
396
|
+
export type MessagesRequestMetadata$Outbound = {
|
|
391
397
|
user_id?: string | null | undefined;
|
|
392
398
|
};
|
|
393
399
|
/** @internal */
|
|
394
|
-
export declare const
|
|
395
|
-
export declare function
|
|
400
|
+
export declare const MessagesRequestMetadata$outboundSchema: z.ZodType<MessagesRequestMetadata$Outbound, MessagesRequestMetadata>;
|
|
401
|
+
export declare function messagesRequestMetadataToJSON(messagesRequestMetadata: MessagesRequestMetadata): string;
|
|
396
402
|
/** @internal */
|
|
397
403
|
export type MessagesRequestPlugin$Outbound = AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound;
|
|
398
404
|
/** @internal */
|
|
@@ -592,7 +598,7 @@ export type ToolCustom$Outbound = {
|
|
|
592
598
|
export declare const ToolCustom$outboundSchema: z.ZodType<ToolCustom$Outbound, ToolCustom>;
|
|
593
599
|
export declare function toolCustomToJSON(toolCustom: ToolCustom): string;
|
|
594
600
|
/** @internal */
|
|
595
|
-
export type MessagesRequestToolUnion$Outbound = ToolAdvisor20260301$Outbound | ToolCustom$Outbound | ToolBash20250124$Outbound | ToolTextEditor20250124$Outbound | ToolWebSearch20250305$Outbound | ToolWebSearch20260209$Outbound | DatetimeServerTool$Outbound | ImageGenerationServerToolOpenRouter$Outbound | ChatSearchModelsServerTool$Outbound | WebFetchServerTool$Outbound | OpenRouterWebSearchServerTool$Outbound | MessagesRequestTool$Outbound;
|
|
601
|
+
export type MessagesRequestToolUnion$Outbound = ToolAdvisor20260301$Outbound | ToolCustom$Outbound | ToolBash20250124$Outbound | ToolTextEditor20250124$Outbound | ToolWebSearch20250305$Outbound | ToolWebSearch20260209$Outbound | BashServerTool$Outbound | DatetimeServerTool$Outbound | ImageGenerationServerToolOpenRouter$Outbound | ChatSearchModelsServerTool$Outbound | WebFetchServerTool$Outbound | OpenRouterWebSearchServerTool$Outbound | MessagesRequestTool$Outbound;
|
|
596
602
|
/** @internal */
|
|
597
603
|
export declare const MessagesRequestToolUnion$outboundSchema: z.ZodType<MessagesRequestToolUnion$Outbound, MessagesRequestToolUnion>;
|
|
598
604
|
export declare function messagesRequestToolUnionToJSON(messagesRequestToolUnion: MessagesRequestToolUnion): string;
|
|
@@ -600,9 +606,10 @@ export declare function messagesRequestToolUnionToJSON(messagesRequestToolUnion:
|
|
|
600
606
|
export type MessagesRequest$Outbound = {
|
|
601
607
|
cache_control?: AnthropicCacheControlDirective$Outbound | undefined;
|
|
602
608
|
context_management?: ContextManagement$Outbound | null | undefined;
|
|
609
|
+
fallbacks?: Array<MessagesFallbackParam$Outbound> | null | undefined;
|
|
603
610
|
max_tokens?: number | undefined;
|
|
604
611
|
messages: Array<MessagesMessageParam$Outbound> | null;
|
|
605
|
-
metadata?:
|
|
612
|
+
metadata?: MessagesRequestMetadata$Outbound | undefined;
|
|
606
613
|
model: string;
|
|
607
614
|
models?: Array<string> | undefined;
|
|
608
615
|
output_config?: MessagesOutputConfig$Outbound | undefined;
|
|
@@ -618,7 +625,7 @@ export type MessagesRequest$Outbound = {
|
|
|
618
625
|
temperature?: number | undefined;
|
|
619
626
|
thinking?: ThinkingEnabled$Outbound | ThinkingDisabled$Outbound | ThinkingAdaptive$Outbound | undefined;
|
|
620
627
|
tool_choice?: ToolChoiceAuto$Outbound | ToolChoiceAny$Outbound | ToolChoiceNone$Outbound | ToolChoiceTool$Outbound | undefined;
|
|
621
|
-
tools?: Array<ToolAdvisor20260301$Outbound | ToolCustom$Outbound | ToolBash20250124$Outbound | ToolTextEditor20250124$Outbound | ToolWebSearch20250305$Outbound | ToolWebSearch20260209$Outbound | DatetimeServerTool$Outbound | ImageGenerationServerToolOpenRouter$Outbound | ChatSearchModelsServerTool$Outbound | WebFetchServerTool$Outbound | OpenRouterWebSearchServerTool$Outbound | MessagesRequestTool$Outbound> | undefined;
|
|
628
|
+
tools?: Array<ToolAdvisor20260301$Outbound | ToolCustom$Outbound | ToolBash20250124$Outbound | ToolTextEditor20250124$Outbound | ToolWebSearch20250305$Outbound | ToolWebSearch20260209$Outbound | BashServerTool$Outbound | DatetimeServerTool$Outbound | ImageGenerationServerToolOpenRouter$Outbound | ChatSearchModelsServerTool$Outbound | WebFetchServerTool$Outbound | OpenRouterWebSearchServerTool$Outbound | MessagesRequestTool$Outbound> | undefined;
|
|
622
629
|
top_k?: number | undefined;
|
|
623
630
|
top_p?: number | undefined;
|
|
624
631
|
trace?: TraceConfig$Outbound | undefined;
|
|
@@ -17,12 +17,14 @@ import { AnthropicToolUsesKeep$outboundSchema, } from "./anthropictooluseskeep.j
|
|
|
17
17
|
import { AnthropicToolUsesTrigger$outboundSchema, } from "./anthropictoolusestrigger.js";
|
|
18
18
|
import { AnthropicWebSearchToolUserLocation$outboundSchema, } from "./anthropicwebsearchtooluserlocation.js";
|
|
19
19
|
import { AutoRouterPlugin$outboundSchema, } from "./autorouterplugin.js";
|
|
20
|
+
import { BashServerTool$outboundSchema, } from "./bashservertool.js";
|
|
20
21
|
import { ChatSearchModelsServerTool$outboundSchema, } from "./chatsearchmodelsservertool.js";
|
|
21
22
|
import { ContextCompressionPlugin$outboundSchema, } from "./contextcompressionplugin.js";
|
|
22
23
|
import { DatetimeServerTool$outboundSchema, } from "./datetimeservertool.js";
|
|
23
24
|
import { FileParserPlugin$outboundSchema, } from "./fileparserplugin.js";
|
|
24
25
|
import { FusionPlugin$outboundSchema, } from "./fusionplugin.js";
|
|
25
26
|
import { ImageGenerationServerToolOpenRouter$outboundSchema, } from "./imagegenerationservertoolopenrouter.js";
|
|
27
|
+
import { MessagesFallbackParam$outboundSchema, } from "./messagesfallbackparam.js";
|
|
26
28
|
import { MessagesMessageParam$outboundSchema, } from "./messagesmessageparam.js";
|
|
27
29
|
import { MessagesOutputConfig$outboundSchema, } from "./messagesoutputconfig.js";
|
|
28
30
|
import { ModerationPlugin$outboundSchema, } from "./moderationplugin.js";
|
|
@@ -202,16 +204,15 @@ export function contextManagementToJSON(contextManagement) {
|
|
|
202
204
|
return JSON.stringify(ContextManagement$outboundSchema.parse(contextManagement));
|
|
203
205
|
}
|
|
204
206
|
/** @internal */
|
|
205
|
-
export const
|
|
206
|
-
.object({
|
|
207
|
+
export const MessagesRequestMetadata$outboundSchema = z.object({
|
|
207
208
|
userId: z.nullable(z.string()).optional(),
|
|
208
209
|
}).transform((v) => {
|
|
209
210
|
return remap$(v, {
|
|
210
211
|
userId: "user_id",
|
|
211
212
|
});
|
|
212
213
|
});
|
|
213
|
-
export function
|
|
214
|
-
return JSON.stringify(
|
|
214
|
+
export function messagesRequestMetadataToJSON(messagesRequestMetadata) {
|
|
215
|
+
return JSON.stringify(MessagesRequestMetadata$outboundSchema.parse(messagesRequestMetadata));
|
|
215
216
|
}
|
|
216
217
|
/** @internal */
|
|
217
218
|
export const MessagesRequestPlugin$outboundSchema = z.union([
|
|
@@ -514,6 +515,7 @@ export const MessagesRequestToolUnion$outboundSchema = z.union([
|
|
|
514
515
|
z.lazy(() => ToolTextEditor20250124$outboundSchema),
|
|
515
516
|
z.lazy(() => ToolWebSearch20250305$outboundSchema),
|
|
516
517
|
z.lazy(() => ToolWebSearch20260209$outboundSchema),
|
|
518
|
+
BashServerTool$outboundSchema,
|
|
517
519
|
DatetimeServerTool$outboundSchema,
|
|
518
520
|
ImageGenerationServerToolOpenRouter$outboundSchema,
|
|
519
521
|
ChatSearchModelsServerTool$outboundSchema,
|
|
@@ -529,9 +531,11 @@ export const MessagesRequest$outboundSchema = z.object({
|
|
|
529
531
|
cacheControl: AnthropicCacheControlDirective$outboundSchema.optional(),
|
|
530
532
|
contextManagement: z.nullable(z.lazy(() => ContextManagement$outboundSchema))
|
|
531
533
|
.optional(),
|
|
534
|
+
fallbacks: z.nullable(z.array(MessagesFallbackParam$outboundSchema))
|
|
535
|
+
.optional(),
|
|
532
536
|
maxTokens: z.int().optional(),
|
|
533
537
|
messages: z.nullable(z.array(MessagesMessageParam$outboundSchema)),
|
|
534
|
-
metadata: z.lazy(() =>
|
|
538
|
+
metadata: z.lazy(() => MessagesRequestMetadata$outboundSchema).optional(),
|
|
535
539
|
model: z.string(),
|
|
536
540
|
models: z.array(z.string()).optional(),
|
|
537
541
|
outputConfig: MessagesOutputConfig$outboundSchema.optional(),
|
|
@@ -575,6 +579,7 @@ export const MessagesRequest$outboundSchema = z.object({
|
|
|
575
579
|
z.lazy(() => ToolTextEditor20250124$outboundSchema),
|
|
576
580
|
z.lazy(() => ToolWebSearch20250305$outboundSchema),
|
|
577
581
|
z.lazy(() => ToolWebSearch20260209$outboundSchema),
|
|
582
|
+
BashServerTool$outboundSchema,
|
|
578
583
|
DatetimeServerTool$outboundSchema,
|
|
579
584
|
ImageGenerationServerToolOpenRouter$outboundSchema,
|
|
580
585
|
ChatSearchModelsServerTool$outboundSchema,
|
package/esm/models/model.d.ts
CHANGED
|
@@ -3,7 +3,9 @@ import { Result as SafeParseResult } from "../types/fp.js";
|
|
|
3
3
|
import { DefaultParameters } from "./defaultparameters.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
5
|
import { ModelArchitecture } from "./modelarchitecture.js";
|
|
6
|
+
import { ModelBenchmarks } from "./modelbenchmarks.js";
|
|
6
7
|
import { ModelLinks } from "./modellinks.js";
|
|
8
|
+
import { ModelReasoning } from "./modelreasoning.js";
|
|
7
9
|
import { Parameter } from "./parameter.js";
|
|
8
10
|
import { PerRequestLimits } from "./perrequestlimits.js";
|
|
9
11
|
import { PublicPricing } from "./publicpricing.js";
|
|
@@ -16,6 +18,10 @@ export type Model = {
|
|
|
16
18
|
* Model architecture information
|
|
17
19
|
*/
|
|
18
20
|
architecture: ModelArchitecture;
|
|
21
|
+
/**
|
|
22
|
+
* Third-party benchmark rankings for this model. Omitted when no benchmark data is available.
|
|
23
|
+
*/
|
|
24
|
+
benchmarks?: ModelBenchmarks | undefined;
|
|
19
25
|
/**
|
|
20
26
|
* Canonical slug for the model
|
|
21
27
|
*/
|
|
@@ -68,6 +74,10 @@ export type Model = {
|
|
|
68
74
|
* Pricing information for the model
|
|
69
75
|
*/
|
|
70
76
|
pricing: PublicPricing;
|
|
77
|
+
/**
|
|
78
|
+
* Reasoning effort configuration. Omitted for non-reasoning models and dynamic router models.
|
|
79
|
+
*/
|
|
80
|
+
reasoning?: ModelReasoning | undefined;
|
|
71
81
|
/**
|
|
72
82
|
* List of supported parameters for this model
|
|
73
83
|
*/
|
package/esm/models/model.js
CHANGED
|
@@ -7,7 +7,9 @@ import { remap as remap$ } from "../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
8
|
import { DefaultParameters$inboundSchema, } from "./defaultparameters.js";
|
|
9
9
|
import { ModelArchitecture$inboundSchema, } from "./modelarchitecture.js";
|
|
10
|
+
import { ModelBenchmarks$inboundSchema, } from "./modelbenchmarks.js";
|
|
10
11
|
import { ModelLinks$inboundSchema } from "./modellinks.js";
|
|
12
|
+
import { ModelReasoning$inboundSchema, } from "./modelreasoning.js";
|
|
11
13
|
import { Parameter$inboundSchema } from "./parameter.js";
|
|
12
14
|
import { PerRequestLimits$inboundSchema, } from "./perrequestlimits.js";
|
|
13
15
|
import { PublicPricing$inboundSchema } from "./publicpricing.js";
|
|
@@ -15,6 +17,7 @@ import { TopProviderInfo$inboundSchema, } from "./topproviderinfo.js";
|
|
|
15
17
|
/** @internal */
|
|
16
18
|
export const Model$inboundSchema = z.object({
|
|
17
19
|
architecture: ModelArchitecture$inboundSchema,
|
|
20
|
+
benchmarks: ModelBenchmarks$inboundSchema.optional(),
|
|
18
21
|
canonical_slug: z.string(),
|
|
19
22
|
context_length: z.nullable(z.int()),
|
|
20
23
|
created: z.int(),
|
|
@@ -28,6 +31,7 @@ export const Model$inboundSchema = z.object({
|
|
|
28
31
|
name: z.string(),
|
|
29
32
|
per_request_limits: z.nullable(PerRequestLimits$inboundSchema),
|
|
30
33
|
pricing: PublicPricing$inboundSchema,
|
|
34
|
+
reasoning: ModelReasoning$inboundSchema.optional(),
|
|
31
35
|
supported_parameters: z.array(Parameter$inboundSchema),
|
|
32
36
|
supported_voices: z.nullable(z.array(z.string())),
|
|
33
37
|
top_provider: TopProviderInfo$inboundSchema,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { AABenchmarkEntry } from "./aabenchmarkentry.js";
|
|
4
|
+
import { DABenchmarkEntry } from "./dabenchmarkentry.js";
|
|
5
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
6
|
+
/**
|
|
7
|
+
* Third-party benchmark rankings for this model. Omitted when no benchmark data is available.
|
|
8
|
+
*/
|
|
9
|
+
export type ModelBenchmarks = {
|
|
10
|
+
/**
|
|
11
|
+
* Artificial Analysis benchmark index scores.
|
|
12
|
+
*/
|
|
13
|
+
artificialAnalysis?: AABenchmarkEntry | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Design Arena ELO rankings across arena+category pairs.
|
|
16
|
+
*/
|
|
17
|
+
designArena: Array<DABenchmarkEntry>;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const ModelBenchmarks$inboundSchema: z.ZodType<ModelBenchmarks, unknown>;
|
|
21
|
+
export declare function modelBenchmarksFromJSON(jsonString: string): SafeParseResult<ModelBenchmarks, SDKValidationError>;
|
|
22
|
+
//# sourceMappingURL=modelbenchmarks.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: dc71ead66ff6
|
|
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 { AABenchmarkEntry$inboundSchema, } from "./aabenchmarkentry.js";
|
|
9
|
+
import { DABenchmarkEntry$inboundSchema, } from "./dabenchmarkentry.js";
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const ModelBenchmarks$inboundSchema = z.object({
|
|
12
|
+
artificial_analysis: AABenchmarkEntry$inboundSchema.optional(),
|
|
13
|
+
design_arena: z.array(DABenchmarkEntry$inboundSchema),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
"artificial_analysis": "artificialAnalysis",
|
|
17
|
+
"design_arena": "designArena",
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
export function modelBenchmarksFromJSON(jsonString) {
|
|
21
|
+
return safeParse(jsonString, (x) => ModelBenchmarks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelBenchmarks' from JSON`);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=modelbenchmarks.js.map
|