@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
|
@@ -3,13 +3,20 @@
|
|
|
3
3
|
* @generated-id: edc82d9f5ab0
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
7
|
import { ContentFilterBuiltinAction$outboundSchema, } from "./contentfilterbuiltinaction.js";
|
|
7
8
|
import { ContentFilterBuiltinSlug$outboundSchema, } from "./contentfilterbuiltinslug.js";
|
|
9
|
+
import { PromptInjectionScanScope$outboundSchema, } from "./promptinjectionscanscope.js";
|
|
8
10
|
/** @internal */
|
|
9
11
|
export const ContentFilterBuiltinEntryInput$outboundSchema = z.object({
|
|
10
12
|
action: ContentFilterBuiltinAction$outboundSchema,
|
|
11
13
|
label: z.string().optional(),
|
|
14
|
+
scanScope: PromptInjectionScanScope$outboundSchema.optional(),
|
|
12
15
|
slug: ContentFilterBuiltinSlug$outboundSchema,
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
scanScope: "scan_scope",
|
|
19
|
+
});
|
|
13
20
|
});
|
|
14
21
|
export function contentFilterBuiltinEntryInputToJSON(contentFilterBuiltinEntryInput) {
|
|
15
22
|
return JSON.stringify(ContentFilterBuiltinEntryInput$outboundSchema.parse(contentFilterBuiltinEntryInput));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type AudioUrl = {
|
|
3
|
+
url: string;
|
|
4
|
+
};
|
|
5
|
+
export type ContentPartAudio = {
|
|
6
|
+
audioUrl: AudioUrl;
|
|
7
|
+
type: "audio_url";
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export type AudioUrl$Outbound = {
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const AudioUrl$outboundSchema: z.ZodType<AudioUrl$Outbound, AudioUrl>;
|
|
15
|
+
export declare function audioUrlToJSON(audioUrl: AudioUrl): string;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type ContentPartAudio$Outbound = {
|
|
18
|
+
audio_url: AudioUrl$Outbound;
|
|
19
|
+
type: "audio_url";
|
|
20
|
+
};
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const ContentPartAudio$outboundSchema: z.ZodType<ContentPartAudio$Outbound, ContentPartAudio>;
|
|
23
|
+
export declare function contentPartAudioToJSON(contentPartAudio: ContentPartAudio): string;
|
|
24
|
+
//# sourceMappingURL=contentpartaudio.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 04ae0dfceba1
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const AudioUrl$outboundSchema = z
|
|
9
|
+
.object({
|
|
10
|
+
url: z.string(),
|
|
11
|
+
});
|
|
12
|
+
export function audioUrlToJSON(audioUrl) {
|
|
13
|
+
return JSON.stringify(AudioUrl$outboundSchema.parse(audioUrl));
|
|
14
|
+
}
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const ContentPartAudio$outboundSchema = z.object({
|
|
17
|
+
audioUrl: z.lazy(() => AudioUrl$outboundSchema),
|
|
18
|
+
type: z.literal("audio_url"),
|
|
19
|
+
}).transform((v) => {
|
|
20
|
+
return remap$(v, {
|
|
21
|
+
audioUrl: "audio_url",
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
export function contentPartAudioToJSON(contentPartAudio) {
|
|
25
|
+
return JSON.stringify(ContentPartAudio$outboundSchema.parse(contentPartAudio));
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=contentpartaudio.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type VideoUrl = {
|
|
3
|
+
url: string;
|
|
4
|
+
};
|
|
5
|
+
export type ContentPartVideo = {
|
|
6
|
+
type: "video_url";
|
|
7
|
+
videoUrl: VideoUrl;
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export type VideoUrl$Outbound = {
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const VideoUrl$outboundSchema: z.ZodType<VideoUrl$Outbound, VideoUrl>;
|
|
15
|
+
export declare function videoUrlToJSON(videoUrl: VideoUrl): string;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type ContentPartVideo$Outbound = {
|
|
18
|
+
type: "video_url";
|
|
19
|
+
video_url: VideoUrl$Outbound;
|
|
20
|
+
};
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const ContentPartVideo$outboundSchema: z.ZodType<ContentPartVideo$Outbound, ContentPartVideo>;
|
|
23
|
+
export declare function contentPartVideoToJSON(contentPartVideo: ContentPartVideo): string;
|
|
24
|
+
//# sourceMappingURL=contentpartvideo.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5845b0ae6dcf
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const VideoUrl$outboundSchema = z
|
|
9
|
+
.object({
|
|
10
|
+
url: z.string(),
|
|
11
|
+
});
|
|
12
|
+
export function videoUrlToJSON(videoUrl) {
|
|
13
|
+
return JSON.stringify(VideoUrl$outboundSchema.parse(videoUrl));
|
|
14
|
+
}
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const ContentPartVideo$outboundSchema = z.object({
|
|
17
|
+
type: z.literal("video_url"),
|
|
18
|
+
videoUrl: z.lazy(() => VideoUrl$outboundSchema),
|
|
19
|
+
}).transform((v) => {
|
|
20
|
+
return remap$(v, {
|
|
21
|
+
videoUrl: "video_url",
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
export function contentPartVideoToJSON(contentPartVideo) {
|
|
25
|
+
return JSON.stringify(ContentPartVideo$outboundSchema.parse(contentPartVideo));
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=contentpartvideo.js.map
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* A single Design Arena benchmark entry for a specific arena+category
|
|
6
|
+
*/
|
|
7
|
+
export type DABenchmarkEntry = {
|
|
8
|
+
/**
|
|
9
|
+
* Arena type (e.g. models, builders, agents)
|
|
10
|
+
*/
|
|
11
|
+
arena: string;
|
|
12
|
+
/**
|
|
13
|
+
* Category within the arena (e.g. website, gamedev, uicomponent)
|
|
14
|
+
*/
|
|
15
|
+
category: string;
|
|
16
|
+
/**
|
|
17
|
+
* ELO rating from head-to-head arena battles
|
|
18
|
+
*/
|
|
19
|
+
elo: number;
|
|
20
|
+
/**
|
|
21
|
+
* Rank position within this arena+category among models available on OpenRouter (1 = highest ELO)
|
|
22
|
+
*/
|
|
23
|
+
rank: number;
|
|
24
|
+
/**
|
|
25
|
+
* Win rate percentage in arena battles
|
|
26
|
+
*/
|
|
27
|
+
winRate: number;
|
|
28
|
+
};
|
|
29
|
+
/** @internal */
|
|
30
|
+
export declare const DABenchmarkEntry$inboundSchema: z.ZodType<DABenchmarkEntry, unknown>;
|
|
31
|
+
export declare function daBenchmarkEntryFromJSON(jsonString: string): SafeParseResult<DABenchmarkEntry, SDKValidationError>;
|
|
32
|
+
//# sourceMappingURL=dabenchmarkentry.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 78bcd1ddec85
|
|
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 DABenchmarkEntry$inboundSchema = z.object({
|
|
10
|
+
arena: z.string(),
|
|
11
|
+
category: z.string(),
|
|
12
|
+
elo: z.number(),
|
|
13
|
+
rank: z.int(),
|
|
14
|
+
win_rate: z.number(),
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
"win_rate": "winRate",
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
export function daBenchmarkEntryFromJSON(jsonString) {
|
|
21
|
+
return safeParse(jsonString, (x) => DABenchmarkEntry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DABenchmarkEntry' from JSON`);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=dabenchmarkentry.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
export declare const Event: {
|
|
6
|
+
readonly AdapterRequest: "adapter_request";
|
|
7
|
+
readonly UpstreamHeadersReceived: "upstream_headers_received";
|
|
8
|
+
readonly FirstTokenReceived: "first_token_received";
|
|
9
|
+
readonly UpstreamBodyEnded: "upstream_body_ended";
|
|
10
|
+
};
|
|
11
|
+
export type Event = OpenEnum<typeof Event>;
|
|
12
|
+
export type Timings = {
|
|
13
|
+
epochMs: number;
|
|
14
|
+
event: Event;
|
|
15
|
+
startMs: number;
|
|
16
|
+
};
|
|
17
|
+
export type Debug = {
|
|
18
|
+
echoUpstreamBody?: {
|
|
19
|
+
[k: string]: any | null;
|
|
20
|
+
} | undefined;
|
|
21
|
+
timings?: Timings | undefined;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Debug event emitted when debug.echo_upstream_body is true. Contains the transformed upstream request body or timing milestones.
|
|
25
|
+
*/
|
|
26
|
+
export type DebugEvent = {
|
|
27
|
+
debug: Debug;
|
|
28
|
+
sequenceNumber: number;
|
|
29
|
+
type: "response.debug";
|
|
30
|
+
};
|
|
31
|
+
/** @internal */
|
|
32
|
+
export declare const Event$inboundSchema: z.ZodType<Event, unknown>;
|
|
33
|
+
/** @internal */
|
|
34
|
+
export declare const Timings$inboundSchema: z.ZodType<Timings, unknown>;
|
|
35
|
+
export declare function timingsFromJSON(jsonString: string): SafeParseResult<Timings, SDKValidationError>;
|
|
36
|
+
/** @internal */
|
|
37
|
+
export declare const Debug$inboundSchema: z.ZodType<Debug, unknown>;
|
|
38
|
+
export declare function debugFromJSON(jsonString: string): SafeParseResult<Debug, SDKValidationError>;
|
|
39
|
+
/** @internal */
|
|
40
|
+
export declare const DebugEvent$inboundSchema: z.ZodType<DebugEvent, unknown>;
|
|
41
|
+
export declare function debugEventFromJSON(jsonString: string): SafeParseResult<DebugEvent, SDKValidationError>;
|
|
42
|
+
//# sourceMappingURL=debugevent.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 8afa2111f54c
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../types/enums.js";
|
|
9
|
+
export const Event = {
|
|
10
|
+
AdapterRequest: "adapter_request",
|
|
11
|
+
UpstreamHeadersReceived: "upstream_headers_received",
|
|
12
|
+
FirstTokenReceived: "first_token_received",
|
|
13
|
+
UpstreamBodyEnded: "upstream_body_ended",
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const Event$inboundSchema = openEnums
|
|
17
|
+
.inboundSchema(Event);
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const Timings$inboundSchema = z.object({
|
|
20
|
+
epoch_ms: z.int(),
|
|
21
|
+
event: Event$inboundSchema,
|
|
22
|
+
start_ms: z.int(),
|
|
23
|
+
}).transform((v) => {
|
|
24
|
+
return remap$(v, {
|
|
25
|
+
"epoch_ms": "epochMs",
|
|
26
|
+
"start_ms": "startMs",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
export function timingsFromJSON(jsonString) {
|
|
30
|
+
return safeParse(jsonString, (x) => Timings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Timings' from JSON`);
|
|
31
|
+
}
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const Debug$inboundSchema = z.object({
|
|
34
|
+
echo_upstream_body: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
35
|
+
timings: z.lazy(() => Timings$inboundSchema).optional(),
|
|
36
|
+
}).transform((v) => {
|
|
37
|
+
return remap$(v, {
|
|
38
|
+
"echo_upstream_body": "echoUpstreamBody",
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
export function debugFromJSON(jsonString) {
|
|
42
|
+
return safeParse(jsonString, (x) => Debug$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Debug' from JSON`);
|
|
43
|
+
}
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const DebugEvent$inboundSchema = z
|
|
46
|
+
.object({
|
|
47
|
+
debug: z.lazy(() => Debug$inboundSchema),
|
|
48
|
+
sequence_number: z.int(),
|
|
49
|
+
type: z.literal("response.debug"),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return remap$(v, {
|
|
52
|
+
"sequence_number": "sequenceNumber",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
export function debugEventFromJSON(jsonString) {
|
|
56
|
+
return safeParse(jsonString, (x) => DebugEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DebugEvent' from JSON`);
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=debugevent.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
export type DeleteWorkspaceBudgetResponse = {
|
|
5
|
+
/**
|
|
6
|
+
* Confirmation that the budget was deleted (or did not exist)
|
|
7
|
+
*/
|
|
8
|
+
deleted: true;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const DeleteWorkspaceBudgetResponse$inboundSchema: z.ZodType<DeleteWorkspaceBudgetResponse, unknown>;
|
|
12
|
+
export declare function deleteWorkspaceBudgetResponseFromJSON(jsonString: string): SafeParseResult<DeleteWorkspaceBudgetResponse, SDKValidationError>;
|
|
13
|
+
//# sourceMappingURL=deleteworkspacebudgetresponse.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: abfb4f8daac9
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const DeleteWorkspaceBudgetResponse$inboundSchema = z.object({
|
|
9
|
+
deleted: z.literal(true),
|
|
10
|
+
});
|
|
11
|
+
export function deleteWorkspaceBudgetResponseFromJSON(jsonString) {
|
|
12
|
+
return safeParse(jsonString, (x) => DeleteWorkspaceBudgetResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteWorkspaceBudgetResponse' from JSON`);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=deleteworkspacebudgetresponse.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
|
+
/**
|
|
5
|
+
* A parameter that accepts one of a discrete set of string values.
|
|
6
|
+
*/
|
|
7
|
+
export type EnumCapability = {
|
|
8
|
+
type: "enum";
|
|
9
|
+
values: Array<string>;
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const EnumCapability$inboundSchema: z.ZodType<EnumCapability, unknown>;
|
|
13
|
+
export declare function enumCapabilityFromJSON(jsonString: string): SafeParseResult<EnumCapability, SDKValidationError>;
|
|
14
|
+
//# sourceMappingURL=enumcapability.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5ad7989f6f99
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const EnumCapability$inboundSchema = z.object({
|
|
9
|
+
type: z.literal("enum"),
|
|
10
|
+
values: z.array(z.string()),
|
|
11
|
+
});
|
|
12
|
+
export function enumCapabilityFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => EnumCapability$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EnumCapability' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=enumcapability.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
export declare const FileDeleteResponseType: {
|
|
6
|
+
readonly FileDeleted: "file_deleted";
|
|
7
|
+
};
|
|
8
|
+
export type FileDeleteResponseType = ClosedEnum<typeof FileDeleteResponseType>;
|
|
9
|
+
/**
|
|
10
|
+
* Confirmation that a file was deleted.
|
|
11
|
+
*/
|
|
12
|
+
export type FileDeleteResponse = {
|
|
13
|
+
id: string;
|
|
14
|
+
type: FileDeleteResponseType;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const FileDeleteResponseType$inboundSchema: z.ZodEnum<typeof FileDeleteResponseType>;
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const FileDeleteResponse$inboundSchema: z.ZodType<FileDeleteResponse, unknown>;
|
|
20
|
+
export declare function fileDeleteResponseFromJSON(jsonString: string): SafeParseResult<FileDeleteResponse, SDKValidationError>;
|
|
21
|
+
//# sourceMappingURL=filedeleteresponse.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 2464f2b51ee5
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
export const FileDeleteResponseType = {
|
|
8
|
+
FileDeleted: "file_deleted",
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const FileDeleteResponseType$inboundSchema = z.enum(FileDeleteResponseType);
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const FileDeleteResponse$inboundSchema = z.object({
|
|
14
|
+
id: z.string(),
|
|
15
|
+
type: FileDeleteResponseType$inboundSchema,
|
|
16
|
+
});
|
|
17
|
+
export function fileDeleteResponseFromJSON(jsonString) {
|
|
18
|
+
return safeParse(jsonString, (x) => FileDeleteResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileDeleteResponse' from JSON`);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=filedeleteresponse.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 { FileMetadata } from "./filemetadata.js";
|
|
5
|
+
/**
|
|
6
|
+
* A page of files belonging to the requesting workspace.
|
|
7
|
+
*/
|
|
8
|
+
export type FileListResponse = {
|
|
9
|
+
/**
|
|
10
|
+
* Opaque cursor for the next page; null when there are no more results.
|
|
11
|
+
*/
|
|
12
|
+
cursor: string | null;
|
|
13
|
+
data: Array<FileMetadata>;
|
|
14
|
+
firstId: string | null;
|
|
15
|
+
hasMore: boolean;
|
|
16
|
+
lastId: string | null;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const FileListResponse$inboundSchema: z.ZodType<FileListResponse, unknown>;
|
|
20
|
+
export declare function fileListResponseFromJSON(jsonString: string): SafeParseResult<FileListResponse, SDKValidationError>;
|
|
21
|
+
//# sourceMappingURL=filelistresponse.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e4978ed568c7
|
|
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 { FileMetadata$inboundSchema } from "./filemetadata.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const FileListResponse$inboundSchema = z.object({
|
|
11
|
+
cursor: z.nullable(z.string()),
|
|
12
|
+
data: z.array(FileMetadata$inboundSchema),
|
|
13
|
+
first_id: z.nullable(z.string()),
|
|
14
|
+
has_more: z.boolean(),
|
|
15
|
+
last_id: z.nullable(z.string()),
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
"first_id": "firstId",
|
|
19
|
+
"has_more": "hasMore",
|
|
20
|
+
"last_id": "lastId",
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
export function fileListResponseFromJSON(jsonString) {
|
|
24
|
+
return safeParse(jsonString, (x) => FileListResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileListResponse' from JSON`);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=filelistresponse.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
export declare const FileMetadataType: {
|
|
6
|
+
readonly File: "file";
|
|
7
|
+
};
|
|
8
|
+
export type FileMetadataType = ClosedEnum<typeof FileMetadataType>;
|
|
9
|
+
/**
|
|
10
|
+
* Metadata describing a stored file.
|
|
11
|
+
*/
|
|
12
|
+
export type FileMetadata = {
|
|
13
|
+
createdAt: string;
|
|
14
|
+
downloadable: boolean;
|
|
15
|
+
filename: string;
|
|
16
|
+
id: string;
|
|
17
|
+
mimeType: string;
|
|
18
|
+
sizeBytes: number;
|
|
19
|
+
type: FileMetadataType;
|
|
20
|
+
};
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const FileMetadataType$inboundSchema: z.ZodEnum<typeof FileMetadataType>;
|
|
23
|
+
/** @internal */
|
|
24
|
+
export declare const FileMetadata$inboundSchema: z.ZodType<FileMetadata, unknown>;
|
|
25
|
+
export declare function fileMetadataFromJSON(jsonString: string): SafeParseResult<FileMetadata, SDKValidationError>;
|
|
26
|
+
//# sourceMappingURL=filemetadata.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 7a5c3a86d7a2
|
|
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
|
+
export const FileMetadataType = {
|
|
9
|
+
File: "file",
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export const FileMetadataType$inboundSchema = z.enum(FileMetadataType);
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const FileMetadata$inboundSchema = z
|
|
15
|
+
.object({
|
|
16
|
+
created_at: z.string(),
|
|
17
|
+
downloadable: z.boolean(),
|
|
18
|
+
filename: z.string(),
|
|
19
|
+
id: z.string(),
|
|
20
|
+
mime_type: z.string(),
|
|
21
|
+
size_bytes: z.int(),
|
|
22
|
+
type: FileMetadataType$inboundSchema,
|
|
23
|
+
}).transform((v) => {
|
|
24
|
+
return remap$(v, {
|
|
25
|
+
"created_at": "createdAt",
|
|
26
|
+
"mime_type": "mimeType",
|
|
27
|
+
"size_bytes": "sizeBytes",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
export function fileMetadataFromJSON(jsonString) {
|
|
31
|
+
return safeParse(jsonString, (x) => FileMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileMetadata' from JSON`);
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=filemetadata.js.map
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
export type Stance = {
|
|
5
|
+
model: string;
|
|
6
|
+
stance: string;
|
|
7
|
+
};
|
|
8
|
+
export type Contradiction = {
|
|
9
|
+
stances: Array<Stance>;
|
|
10
|
+
topic: string;
|
|
11
|
+
};
|
|
12
|
+
export type PartialCoverage = {
|
|
13
|
+
models: Array<string>;
|
|
14
|
+
point: string;
|
|
15
|
+
};
|
|
16
|
+
export type UniqueInsight = {
|
|
17
|
+
insight: string;
|
|
18
|
+
model: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Structured analysis produced by the fusion judge model.
|
|
22
|
+
*/
|
|
23
|
+
export type FusionAnalysisResult = {
|
|
24
|
+
blindSpots: Array<string>;
|
|
25
|
+
consensus: Array<string>;
|
|
26
|
+
contradictions: Array<Contradiction>;
|
|
27
|
+
partialCoverage: Array<PartialCoverage>;
|
|
28
|
+
uniqueInsights: Array<UniqueInsight>;
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const Stance$inboundSchema: z.ZodType<Stance, unknown>;
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type Stance$Outbound = {
|
|
34
|
+
model: string;
|
|
35
|
+
stance: string;
|
|
36
|
+
};
|
|
37
|
+
/** @internal */
|
|
38
|
+
export declare const Stance$outboundSchema: z.ZodType<Stance$Outbound, Stance>;
|
|
39
|
+
export declare function stanceToJSON(stance: Stance): string;
|
|
40
|
+
export declare function stanceFromJSON(jsonString: string): SafeParseResult<Stance, SDKValidationError>;
|
|
41
|
+
/** @internal */
|
|
42
|
+
export declare const Contradiction$inboundSchema: z.ZodType<Contradiction, unknown>;
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type Contradiction$Outbound = {
|
|
45
|
+
stances: Array<Stance$Outbound>;
|
|
46
|
+
topic: string;
|
|
47
|
+
};
|
|
48
|
+
/** @internal */
|
|
49
|
+
export declare const Contradiction$outboundSchema: z.ZodType<Contradiction$Outbound, Contradiction>;
|
|
50
|
+
export declare function contradictionToJSON(contradiction: Contradiction): string;
|
|
51
|
+
export declare function contradictionFromJSON(jsonString: string): SafeParseResult<Contradiction, SDKValidationError>;
|
|
52
|
+
/** @internal */
|
|
53
|
+
export declare const PartialCoverage$inboundSchema: z.ZodType<PartialCoverage, unknown>;
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type PartialCoverage$Outbound = {
|
|
56
|
+
models: Array<string>;
|
|
57
|
+
point: string;
|
|
58
|
+
};
|
|
59
|
+
/** @internal */
|
|
60
|
+
export declare const PartialCoverage$outboundSchema: z.ZodType<PartialCoverage$Outbound, PartialCoverage>;
|
|
61
|
+
export declare function partialCoverageToJSON(partialCoverage: PartialCoverage): string;
|
|
62
|
+
export declare function partialCoverageFromJSON(jsonString: string): SafeParseResult<PartialCoverage, SDKValidationError>;
|
|
63
|
+
/** @internal */
|
|
64
|
+
export declare const UniqueInsight$inboundSchema: z.ZodType<UniqueInsight, unknown>;
|
|
65
|
+
/** @internal */
|
|
66
|
+
export type UniqueInsight$Outbound = {
|
|
67
|
+
insight: string;
|
|
68
|
+
model: string;
|
|
69
|
+
};
|
|
70
|
+
/** @internal */
|
|
71
|
+
export declare const UniqueInsight$outboundSchema: z.ZodType<UniqueInsight$Outbound, UniqueInsight>;
|
|
72
|
+
export declare function uniqueInsightToJSON(uniqueInsight: UniqueInsight): string;
|
|
73
|
+
export declare function uniqueInsightFromJSON(jsonString: string): SafeParseResult<UniqueInsight, SDKValidationError>;
|
|
74
|
+
/** @internal */
|
|
75
|
+
export declare const FusionAnalysisResult$inboundSchema: z.ZodType<FusionAnalysisResult, unknown>;
|
|
76
|
+
/** @internal */
|
|
77
|
+
export type FusionAnalysisResult$Outbound = {
|
|
78
|
+
blind_spots: Array<string>;
|
|
79
|
+
consensus: Array<string>;
|
|
80
|
+
contradictions: Array<Contradiction$Outbound>;
|
|
81
|
+
partial_coverage: Array<PartialCoverage$Outbound>;
|
|
82
|
+
unique_insights: Array<UniqueInsight$Outbound>;
|
|
83
|
+
};
|
|
84
|
+
/** @internal */
|
|
85
|
+
export declare const FusionAnalysisResult$outboundSchema: z.ZodType<FusionAnalysisResult$Outbound, FusionAnalysisResult>;
|
|
86
|
+
export declare function fusionAnalysisResultToJSON(fusionAnalysisResult: FusionAnalysisResult): string;
|
|
87
|
+
export declare function fusionAnalysisResultFromJSON(jsonString: string): SafeParseResult<FusionAnalysisResult, SDKValidationError>;
|
|
88
|
+
//# sourceMappingURL=fusionanalysisresult.d.ts.map
|