@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,109 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: ffc6f5c74b6c
|
|
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 Stance$inboundSchema = z.object({
|
|
10
|
+
model: z.string(),
|
|
11
|
+
stance: z.string(),
|
|
12
|
+
});
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const Stance$outboundSchema = z
|
|
15
|
+
.object({
|
|
16
|
+
model: z.string(),
|
|
17
|
+
stance: z.string(),
|
|
18
|
+
});
|
|
19
|
+
export function stanceToJSON(stance) {
|
|
20
|
+
return JSON.stringify(Stance$outboundSchema.parse(stance));
|
|
21
|
+
}
|
|
22
|
+
export function stanceFromJSON(jsonString) {
|
|
23
|
+
return safeParse(jsonString, (x) => Stance$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Stance' from JSON`);
|
|
24
|
+
}
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const Contradiction$inboundSchema = z
|
|
27
|
+
.object({
|
|
28
|
+
stances: z.array(z.lazy(() => Stance$inboundSchema)),
|
|
29
|
+
topic: z.string(),
|
|
30
|
+
});
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const Contradiction$outboundSchema = z.object({
|
|
33
|
+
stances: z.array(z.lazy(() => Stance$outboundSchema)),
|
|
34
|
+
topic: z.string(),
|
|
35
|
+
});
|
|
36
|
+
export function contradictionToJSON(contradiction) {
|
|
37
|
+
return JSON.stringify(Contradiction$outboundSchema.parse(contradiction));
|
|
38
|
+
}
|
|
39
|
+
export function contradictionFromJSON(jsonString) {
|
|
40
|
+
return safeParse(jsonString, (x) => Contradiction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Contradiction' from JSON`);
|
|
41
|
+
}
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const PartialCoverage$inboundSchema = z.object({
|
|
44
|
+
models: z.array(z.string()),
|
|
45
|
+
point: z.string(),
|
|
46
|
+
});
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const PartialCoverage$outboundSchema = z.object({
|
|
49
|
+
models: z.array(z.string()),
|
|
50
|
+
point: z.string(),
|
|
51
|
+
});
|
|
52
|
+
export function partialCoverageToJSON(partialCoverage) {
|
|
53
|
+
return JSON.stringify(PartialCoverage$outboundSchema.parse(partialCoverage));
|
|
54
|
+
}
|
|
55
|
+
export function partialCoverageFromJSON(jsonString) {
|
|
56
|
+
return safeParse(jsonString, (x) => PartialCoverage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PartialCoverage' from JSON`);
|
|
57
|
+
}
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const UniqueInsight$inboundSchema = z
|
|
60
|
+
.object({
|
|
61
|
+
insight: z.string(),
|
|
62
|
+
model: z.string(),
|
|
63
|
+
});
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const UniqueInsight$outboundSchema = z.object({
|
|
66
|
+
insight: z.string(),
|
|
67
|
+
model: z.string(),
|
|
68
|
+
});
|
|
69
|
+
export function uniqueInsightToJSON(uniqueInsight) {
|
|
70
|
+
return JSON.stringify(UniqueInsight$outboundSchema.parse(uniqueInsight));
|
|
71
|
+
}
|
|
72
|
+
export function uniqueInsightFromJSON(jsonString) {
|
|
73
|
+
return safeParse(jsonString, (x) => UniqueInsight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UniqueInsight' from JSON`);
|
|
74
|
+
}
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const FusionAnalysisResult$inboundSchema = z.object({
|
|
77
|
+
blind_spots: z.array(z.string()),
|
|
78
|
+
consensus: z.array(z.string()),
|
|
79
|
+
contradictions: z.array(z.lazy(() => Contradiction$inboundSchema)),
|
|
80
|
+
partial_coverage: z.array(z.lazy(() => PartialCoverage$inboundSchema)),
|
|
81
|
+
unique_insights: z.array(z.lazy(() => UniqueInsight$inboundSchema)),
|
|
82
|
+
}).transform((v) => {
|
|
83
|
+
return remap$(v, {
|
|
84
|
+
"blind_spots": "blindSpots",
|
|
85
|
+
"partial_coverage": "partialCoverage",
|
|
86
|
+
"unique_insights": "uniqueInsights",
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const FusionAnalysisResult$outboundSchema = z.object({
|
|
91
|
+
blindSpots: z.array(z.string()),
|
|
92
|
+
consensus: z.array(z.string()),
|
|
93
|
+
contradictions: z.array(z.lazy(() => Contradiction$outboundSchema)),
|
|
94
|
+
partialCoverage: z.array(z.lazy(() => PartialCoverage$outboundSchema)),
|
|
95
|
+
uniqueInsights: z.array(z.lazy(() => UniqueInsight$outboundSchema)),
|
|
96
|
+
}).transform((v) => {
|
|
97
|
+
return remap$(v, {
|
|
98
|
+
blindSpots: "blind_spots",
|
|
99
|
+
partialCoverage: "partial_coverage",
|
|
100
|
+
uniqueInsights: "unique_insights",
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
export function fusionAnalysisResultToJSON(fusionAnalysisResult) {
|
|
104
|
+
return JSON.stringify(FusionAnalysisResult$outboundSchema.parse(fusionAnalysisResult));
|
|
105
|
+
}
|
|
106
|
+
export function fusionAnalysisResultFromJSON(jsonString) {
|
|
107
|
+
return safeParse(jsonString, (x) => FusionAnalysisResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FusionAnalysisResult' from JSON`);
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=fusionanalysisresult.js.map
|
|
@@ -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
|
+
import { FusionAnalysisResult } from "./fusionanalysisresult.js";
|
|
5
|
+
/**
|
|
6
|
+
* Emitted when the fusion judge completes with the structured analysis.
|
|
7
|
+
*/
|
|
8
|
+
export type FusionCallAnalysisCompletedEvent = {
|
|
9
|
+
/**
|
|
10
|
+
* Structured analysis produced by the fusion judge model.
|
|
11
|
+
*/
|
|
12
|
+
analysis: FusionAnalysisResult;
|
|
13
|
+
itemId: string;
|
|
14
|
+
outputIndex: number;
|
|
15
|
+
sequenceNumber: number;
|
|
16
|
+
type: "response.fusion_call.analysis.completed";
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const FusionCallAnalysisCompletedEvent$inboundSchema: z.ZodType<FusionCallAnalysisCompletedEvent, unknown>;
|
|
20
|
+
export declare function fusionCallAnalysisCompletedEventFromJSON(jsonString: string): SafeParseResult<FusionCallAnalysisCompletedEvent, SDKValidationError>;
|
|
21
|
+
//# sourceMappingURL=fusioncallanalysiscompletedevent.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 0df2084e1a56
|
|
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 { FusionAnalysisResult$inboundSchema, } from "./fusionanalysisresult.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const FusionCallAnalysisCompletedEvent$inboundSchema = z.object({
|
|
11
|
+
analysis: FusionAnalysisResult$inboundSchema,
|
|
12
|
+
item_id: z.string(),
|
|
13
|
+
output_index: z.int(),
|
|
14
|
+
sequence_number: z.int(),
|
|
15
|
+
type: z.literal("response.fusion_call.analysis.completed"),
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
"item_id": "itemId",
|
|
19
|
+
"output_index": "outputIndex",
|
|
20
|
+
"sequence_number": "sequenceNumber",
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
export function fusionCallAnalysisCompletedEventFromJSON(jsonString) {
|
|
24
|
+
return safeParse(jsonString, (x) => FusionCallAnalysisCompletedEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FusionCallAnalysisCompletedEvent' from JSON`);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=fusioncallanalysiscompletedevent.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
* Emitted when the fusion judge starts producing the structured analysis.
|
|
6
|
+
*/
|
|
7
|
+
export type FusionCallAnalysisInProgressEvent = {
|
|
8
|
+
itemId: string;
|
|
9
|
+
judgeModel: string;
|
|
10
|
+
outputIndex: number;
|
|
11
|
+
sequenceNumber: number;
|
|
12
|
+
type: "response.fusion_call.analysis.in_progress";
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const FusionCallAnalysisInProgressEvent$inboundSchema: z.ZodType<FusionCallAnalysisInProgressEvent, unknown>;
|
|
16
|
+
export declare function fusionCallAnalysisInProgressEventFromJSON(jsonString: string): SafeParseResult<FusionCallAnalysisInProgressEvent, SDKValidationError>;
|
|
17
|
+
//# sourceMappingURL=fusioncallanalysisinprogressevent.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 13da94fa473e
|
|
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 FusionCallAnalysisInProgressEvent$inboundSchema = z.object({
|
|
10
|
+
item_id: z.string(),
|
|
11
|
+
judge_model: z.string(),
|
|
12
|
+
output_index: z.int(),
|
|
13
|
+
sequence_number: z.int(),
|
|
14
|
+
type: z.literal("response.fusion_call.analysis.in_progress"),
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
"item_id": "itemId",
|
|
18
|
+
"judge_model": "judgeModel",
|
|
19
|
+
"output_index": "outputIndex",
|
|
20
|
+
"sequence_number": "sequenceNumber",
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
export function fusionCallAnalysisInProgressEventFromJSON(jsonString) {
|
|
24
|
+
return safeParse(jsonString, (x) => FusionCallAnalysisInProgressEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FusionCallAnalysisInProgressEvent' from JSON`);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=fusioncallanalysisinprogressevent.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
* Emitted when the openrouter:fusion tool call finishes.
|
|
6
|
+
*/
|
|
7
|
+
export type FusionCallCompletedEvent = {
|
|
8
|
+
itemId: string;
|
|
9
|
+
outputIndex: number;
|
|
10
|
+
sequenceNumber: number;
|
|
11
|
+
type: "response.fusion_call.completed";
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const FusionCallCompletedEvent$inboundSchema: z.ZodType<FusionCallCompletedEvent, unknown>;
|
|
15
|
+
export declare function fusionCallCompletedEventFromJSON(jsonString: string): SafeParseResult<FusionCallCompletedEvent, SDKValidationError>;
|
|
16
|
+
//# sourceMappingURL=fusioncallcompletedevent.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 54f2c88f75f7
|
|
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 FusionCallCompletedEvent$inboundSchema = z.object({
|
|
10
|
+
item_id: z.string(),
|
|
11
|
+
output_index: z.int(),
|
|
12
|
+
sequence_number: z.int(),
|
|
13
|
+
type: z.literal("response.fusion_call.completed"),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
"item_id": "itemId",
|
|
17
|
+
"output_index": "outputIndex",
|
|
18
|
+
"sequence_number": "sequenceNumber",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function fusionCallCompletedEventFromJSON(jsonString) {
|
|
22
|
+
return safeParse(jsonString, (x) => FusionCallCompletedEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FusionCallCompletedEvent' from JSON`);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=fusioncallcompletedevent.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
* Emitted when an openrouter:fusion tool call begins executing.
|
|
6
|
+
*/
|
|
7
|
+
export type FusionCallInProgressEvent = {
|
|
8
|
+
itemId: string;
|
|
9
|
+
outputIndex: number;
|
|
10
|
+
sequenceNumber: number;
|
|
11
|
+
type: "response.fusion_call.in_progress";
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const FusionCallInProgressEvent$inboundSchema: z.ZodType<FusionCallInProgressEvent, unknown>;
|
|
15
|
+
export declare function fusionCallInProgressEventFromJSON(jsonString: string): SafeParseResult<FusionCallInProgressEvent, SDKValidationError>;
|
|
16
|
+
//# sourceMappingURL=fusioncallinprogressevent.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 623b79a90448
|
|
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 FusionCallInProgressEvent$inboundSchema = z.object({
|
|
10
|
+
item_id: z.string(),
|
|
11
|
+
output_index: z.int(),
|
|
12
|
+
sequence_number: z.int(),
|
|
13
|
+
type: z.literal("response.fusion_call.in_progress"),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
"item_id": "itemId",
|
|
17
|
+
"output_index": "outputIndex",
|
|
18
|
+
"sequence_number": "sequenceNumber",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function fusionCallInProgressEventFromJSON(jsonString) {
|
|
22
|
+
return safeParse(jsonString, (x) => FusionCallInProgressEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FusionCallInProgressEvent' from JSON`);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=fusioncallinprogressevent.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
* Emitted when a fusion analysis-panel model starts.
|
|
6
|
+
*/
|
|
7
|
+
export type FusionCallPanelAddedEvent = {
|
|
8
|
+
itemId: string;
|
|
9
|
+
model: string;
|
|
10
|
+
outputIndex: number;
|
|
11
|
+
sequenceNumber: number;
|
|
12
|
+
type: "response.fusion_call.panel.added";
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const FusionCallPanelAddedEvent$inboundSchema: z.ZodType<FusionCallPanelAddedEvent, unknown>;
|
|
16
|
+
export declare function fusionCallPanelAddedEventFromJSON(jsonString: string): SafeParseResult<FusionCallPanelAddedEvent, SDKValidationError>;
|
|
17
|
+
//# sourceMappingURL=fusioncallpaneladdedevent.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 58f0673347e7
|
|
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 FusionCallPanelAddedEvent$inboundSchema = z.object({
|
|
10
|
+
item_id: z.string(),
|
|
11
|
+
model: z.string(),
|
|
12
|
+
output_index: z.int(),
|
|
13
|
+
sequence_number: z.int(),
|
|
14
|
+
type: z.literal("response.fusion_call.panel.added"),
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
"item_id": "itemId",
|
|
18
|
+
"output_index": "outputIndex",
|
|
19
|
+
"sequence_number": "sequenceNumber",
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
export function fusionCallPanelAddedEventFromJSON(jsonString) {
|
|
23
|
+
return safeParse(jsonString, (x) => FusionCallPanelAddedEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FusionCallPanelAddedEvent' from JSON`);
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=fusioncallpaneladdedevent.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
* Emitted when a fusion panel model finishes with its full content.
|
|
6
|
+
*/
|
|
7
|
+
export type FusionCallPanelCompletedEvent = {
|
|
8
|
+
content: string;
|
|
9
|
+
itemId: string;
|
|
10
|
+
model: string;
|
|
11
|
+
outputIndex: number;
|
|
12
|
+
sequenceNumber: number;
|
|
13
|
+
type: "response.fusion_call.panel.completed";
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const FusionCallPanelCompletedEvent$inboundSchema: z.ZodType<FusionCallPanelCompletedEvent, unknown>;
|
|
17
|
+
export declare function fusionCallPanelCompletedEventFromJSON(jsonString: string): SafeParseResult<FusionCallPanelCompletedEvent, SDKValidationError>;
|
|
18
|
+
//# sourceMappingURL=fusioncallpanelcompletedevent.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 3578a5986185
|
|
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 FusionCallPanelCompletedEvent$inboundSchema = z.object({
|
|
10
|
+
content: z.string(),
|
|
11
|
+
item_id: z.string(),
|
|
12
|
+
model: z.string(),
|
|
13
|
+
output_index: z.int(),
|
|
14
|
+
sequence_number: z.int(),
|
|
15
|
+
type: z.literal("response.fusion_call.panel.completed"),
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
"item_id": "itemId",
|
|
19
|
+
"output_index": "outputIndex",
|
|
20
|
+
"sequence_number": "sequenceNumber",
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
export function fusionCallPanelCompletedEventFromJSON(jsonString) {
|
|
24
|
+
return safeParse(jsonString, (x) => FusionCallPanelCompletedEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FusionCallPanelCompletedEvent' from JSON`);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=fusioncallpanelcompletedevent.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
* Incremental content token from a fusion panel model.
|
|
6
|
+
*/
|
|
7
|
+
export type FusionCallPanelDeltaEvent = {
|
|
8
|
+
delta: string;
|
|
9
|
+
itemId: string;
|
|
10
|
+
model: string;
|
|
11
|
+
outputIndex: number;
|
|
12
|
+
sequenceNumber: number;
|
|
13
|
+
type: "response.fusion_call.panel.delta";
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const FusionCallPanelDeltaEvent$inboundSchema: z.ZodType<FusionCallPanelDeltaEvent, unknown>;
|
|
17
|
+
export declare function fusionCallPanelDeltaEventFromJSON(jsonString: string): SafeParseResult<FusionCallPanelDeltaEvent, SDKValidationError>;
|
|
18
|
+
//# sourceMappingURL=fusioncallpaneldeltaevent.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 055e9ca60301
|
|
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 FusionCallPanelDeltaEvent$inboundSchema = z.object({
|
|
10
|
+
delta: z.string(),
|
|
11
|
+
item_id: z.string(),
|
|
12
|
+
model: z.string(),
|
|
13
|
+
output_index: z.int(),
|
|
14
|
+
sequence_number: z.int(),
|
|
15
|
+
type: z.literal("response.fusion_call.panel.delta"),
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
"item_id": "itemId",
|
|
19
|
+
"output_index": "outputIndex",
|
|
20
|
+
"sequence_number": "sequenceNumber",
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
export function fusionCallPanelDeltaEventFromJSON(jsonString) {
|
|
24
|
+
return safeParse(jsonString, (x) => FusionCallPanelDeltaEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FusionCallPanelDeltaEvent' from JSON`);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=fusioncallpaneldeltaevent.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
* Emitted when a fusion panel model fails.
|
|
6
|
+
*/
|
|
7
|
+
export type FusionCallPanelFailedEvent = {
|
|
8
|
+
error: string;
|
|
9
|
+
itemId: string;
|
|
10
|
+
model: string;
|
|
11
|
+
outputIndex: number;
|
|
12
|
+
sequenceNumber: number;
|
|
13
|
+
statusCode?: number | undefined;
|
|
14
|
+
type: "response.fusion_call.panel.failed";
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const FusionCallPanelFailedEvent$inboundSchema: z.ZodType<FusionCallPanelFailedEvent, unknown>;
|
|
18
|
+
export declare function fusionCallPanelFailedEventFromJSON(jsonString: string): SafeParseResult<FusionCallPanelFailedEvent, SDKValidationError>;
|
|
19
|
+
//# sourceMappingURL=fusioncallpanelfailedevent.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 44d86c32e741
|
|
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 FusionCallPanelFailedEvent$inboundSchema = z.object({
|
|
10
|
+
error: z.string(),
|
|
11
|
+
item_id: z.string(),
|
|
12
|
+
model: z.string(),
|
|
13
|
+
output_index: z.int(),
|
|
14
|
+
sequence_number: z.int(),
|
|
15
|
+
status_code: z.int().optional(),
|
|
16
|
+
type: z.literal("response.fusion_call.panel.failed"),
|
|
17
|
+
}).transform((v) => {
|
|
18
|
+
return remap$(v, {
|
|
19
|
+
"item_id": "itemId",
|
|
20
|
+
"output_index": "outputIndex",
|
|
21
|
+
"sequence_number": "sequenceNumber",
|
|
22
|
+
"status_code": "statusCode",
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
export function fusionCallPanelFailedEventFromJSON(jsonString) {
|
|
26
|
+
return safeParse(jsonString, (x) => FusionCallPanelFailedEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FusionCallPanelFailedEvent' from JSON`);
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=fusioncallpanelfailedevent.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
* Incremental reasoning token from a fusion panel model.
|
|
6
|
+
*/
|
|
7
|
+
export type FusionCallPanelReasoningDeltaEvent = {
|
|
8
|
+
delta: string;
|
|
9
|
+
itemId: string;
|
|
10
|
+
model: string;
|
|
11
|
+
outputIndex: number;
|
|
12
|
+
sequenceNumber: number;
|
|
13
|
+
type: "response.fusion_call.panel.reasoning.delta";
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const FusionCallPanelReasoningDeltaEvent$inboundSchema: z.ZodType<FusionCallPanelReasoningDeltaEvent, unknown>;
|
|
17
|
+
export declare function fusionCallPanelReasoningDeltaEventFromJSON(jsonString: string): SafeParseResult<FusionCallPanelReasoningDeltaEvent, SDKValidationError>;
|
|
18
|
+
//# sourceMappingURL=fusioncallpanelreasoningdeltaevent.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 9c7b9ba8a22c
|
|
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 FusionCallPanelReasoningDeltaEvent$inboundSchema = z.object({
|
|
10
|
+
delta: z.string(),
|
|
11
|
+
item_id: z.string(),
|
|
12
|
+
model: z.string(),
|
|
13
|
+
output_index: z.int(),
|
|
14
|
+
sequence_number: z.int(),
|
|
15
|
+
type: z.literal("response.fusion_call.panel.reasoning.delta"),
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
"item_id": "itemId",
|
|
19
|
+
"output_index": "outputIndex",
|
|
20
|
+
"sequence_number": "sequenceNumber",
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
export function fusionCallPanelReasoningDeltaEventFromJSON(jsonString) {
|
|
24
|
+
return safeParse(jsonString, (x) => FusionCallPanelReasoningDeltaEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FusionCallPanelReasoningDeltaEvent' from JSON`);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=fusioncallpanelreasoningdeltaevent.js.map
|
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* A curated OpenRouter fusion preset (slugs follow `<task>-<tier>`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PresetEnum: {
|
|
7
|
+
readonly GeneralHigh: "general-high";
|
|
8
|
+
readonly GeneralBudget: "general-budget";
|
|
9
|
+
readonly GeneralFast: "general-fast";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A curated OpenRouter fusion preset (slugs follow `<task>-<tier>`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence.
|
|
13
|
+
*/
|
|
14
|
+
export type PresetEnum = OpenEnum<typeof PresetEnum>;
|
|
15
|
+
export type FusionPluginTool = {
|
|
16
|
+
/**
|
|
17
|
+
* Optional configuration forwarded as the tool's `parameters` object.
|
|
18
|
+
*/
|
|
19
|
+
parameters?: {
|
|
20
|
+
[k: string]: any | null;
|
|
21
|
+
} | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Server tool type identifier (e.g. "openrouter:web_search", "openrouter:web_fetch").
|
|
24
|
+
*/
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
2
27
|
export type FusionPlugin = {
|
|
3
28
|
/**
|
|
4
29
|
* Slugs of models to run in parallel as the "expert panel" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest).
|
|
@@ -17,14 +42,36 @@ export type FusionPlugin = {
|
|
|
17
42
|
* Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset.
|
|
18
43
|
*/
|
|
19
44
|
model?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* A curated OpenRouter fusion preset (slugs follow `<task>-<tier>`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence.
|
|
47
|
+
*/
|
|
48
|
+
preset?: PresetEnum | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Server tools available to panelist and judge inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: "openrouter:web_search" }, { type: "openrouter:web_fetch" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only).
|
|
51
|
+
*/
|
|
52
|
+
tools?: Array<FusionPluginTool> | undefined;
|
|
20
53
|
};
|
|
21
54
|
/** @internal */
|
|
55
|
+
export declare const PresetEnum$outboundSchema: z.ZodType<string, PresetEnum>;
|
|
56
|
+
/** @internal */
|
|
57
|
+
export type FusionPluginTool$Outbound = {
|
|
58
|
+
parameters?: {
|
|
59
|
+
[k: string]: any | null;
|
|
60
|
+
} | undefined;
|
|
61
|
+
type: string;
|
|
62
|
+
};
|
|
63
|
+
/** @internal */
|
|
64
|
+
export declare const FusionPluginTool$outboundSchema: z.ZodType<FusionPluginTool$Outbound, FusionPluginTool>;
|
|
65
|
+
export declare function fusionPluginToolToJSON(fusionPluginTool: FusionPluginTool): string;
|
|
66
|
+
/** @internal */
|
|
22
67
|
export type FusionPlugin$Outbound = {
|
|
23
68
|
analysis_models?: Array<string> | undefined;
|
|
24
69
|
enabled?: boolean | undefined;
|
|
25
70
|
id: "fusion";
|
|
26
71
|
max_tool_calls?: number | undefined;
|
|
27
72
|
model?: string | undefined;
|
|
73
|
+
preset?: string | undefined;
|
|
74
|
+
tools?: Array<FusionPluginTool$Outbound> | undefined;
|
|
28
75
|
};
|
|
29
76
|
/** @internal */
|
|
30
77
|
export declare const FusionPlugin$outboundSchema: z.ZodType<FusionPlugin$Outbound, FusionPlugin>;
|
|
@@ -4,6 +4,25 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import * as openEnums from "../types/enums.js";
|
|
8
|
+
/**
|
|
9
|
+
* A curated OpenRouter fusion preset (slugs follow `<task>-<tier>`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and judge model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence.
|
|
10
|
+
*/
|
|
11
|
+
export const PresetEnum = {
|
|
12
|
+
GeneralHigh: "general-high",
|
|
13
|
+
GeneralBudget: "general-budget",
|
|
14
|
+
GeneralFast: "general-fast",
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const PresetEnum$outboundSchema = openEnums.outboundSchema(PresetEnum);
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const FusionPluginTool$outboundSchema = z.object({
|
|
20
|
+
parameters: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
21
|
+
type: z.string(),
|
|
22
|
+
});
|
|
23
|
+
export function fusionPluginToolToJSON(fusionPluginTool) {
|
|
24
|
+
return JSON.stringify(FusionPluginTool$outboundSchema.parse(fusionPluginTool));
|
|
25
|
+
}
|
|
7
26
|
/** @internal */
|
|
8
27
|
export const FusionPlugin$outboundSchema = z.object({
|
|
9
28
|
analysisModels: z.array(z.string()).optional(),
|
|
@@ -11,6 +30,8 @@ export const FusionPlugin$outboundSchema = z.object({
|
|
|
11
30
|
id: z.literal("fusion"),
|
|
12
31
|
maxToolCalls: z.int().optional(),
|
|
13
32
|
model: z.string().optional(),
|
|
33
|
+
preset: PresetEnum$outboundSchema.optional(),
|
|
34
|
+
tools: z.array(z.lazy(() => FusionPluginTool$outboundSchema)).optional(),
|
|
14
35
|
}).transform((v) => {
|
|
15
36
|
return remap$(v, {
|
|
16
37
|
analysisModels: "analysis_models",
|