@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,42 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Reasoning effort level for the advisor call.
|
|
5
|
+
*/
|
|
6
|
+
export declare const AdvisorReasoningEffort: {
|
|
7
|
+
readonly Max: "max";
|
|
8
|
+
readonly Xhigh: "xhigh";
|
|
9
|
+
readonly High: "high";
|
|
10
|
+
readonly Medium: "medium";
|
|
11
|
+
readonly Low: "low";
|
|
12
|
+
readonly Minimal: "minimal";
|
|
13
|
+
readonly None: "none";
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Reasoning effort level for the advisor call.
|
|
17
|
+
*/
|
|
18
|
+
export type AdvisorReasoningEffort = OpenEnum<typeof AdvisorReasoningEffort>;
|
|
19
|
+
/**
|
|
20
|
+
* Reasoning configuration forwarded to the advisor call. Use this to control reasoning effort and token budget for models that support extended thinking.
|
|
21
|
+
*/
|
|
22
|
+
export type AdvisorReasoning = {
|
|
23
|
+
/**
|
|
24
|
+
* Reasoning effort level for the advisor call.
|
|
25
|
+
*/
|
|
26
|
+
effort?: AdvisorReasoningEffort | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Maximum number of reasoning tokens the advisor may use.
|
|
29
|
+
*/
|
|
30
|
+
maxTokens?: number | undefined;
|
|
31
|
+
};
|
|
32
|
+
/** @internal */
|
|
33
|
+
export declare const AdvisorReasoningEffort$outboundSchema: z.ZodType<string, AdvisorReasoningEffort>;
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type AdvisorReasoning$Outbound = {
|
|
36
|
+
effort?: string | undefined;
|
|
37
|
+
max_tokens?: number | undefined;
|
|
38
|
+
};
|
|
39
|
+
/** @internal */
|
|
40
|
+
export declare const AdvisorReasoning$outboundSchema: z.ZodType<AdvisorReasoning$Outbound, AdvisorReasoning>;
|
|
41
|
+
export declare function advisorReasoningToJSON(advisorReasoning: AdvisorReasoning): string;
|
|
42
|
+
//# sourceMappingURL=advisorreasoning.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 4c86be6688b0
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import * as openEnums from "../types/enums.js";
|
|
8
|
+
/**
|
|
9
|
+
* Reasoning effort level for the advisor call.
|
|
10
|
+
*/
|
|
11
|
+
export const AdvisorReasoningEffort = {
|
|
12
|
+
Max: "max",
|
|
13
|
+
Xhigh: "xhigh",
|
|
14
|
+
High: "high",
|
|
15
|
+
Medium: "medium",
|
|
16
|
+
Low: "low",
|
|
17
|
+
Minimal: "minimal",
|
|
18
|
+
None: "none",
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const AdvisorReasoningEffort$outboundSchema = openEnums.outboundSchema(AdvisorReasoningEffort);
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const AdvisorReasoning$outboundSchema = z.object({
|
|
24
|
+
effort: AdvisorReasoningEffort$outboundSchema.optional(),
|
|
25
|
+
maxTokens: z.int().optional(),
|
|
26
|
+
}).transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
maxTokens: "max_tokens",
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
export function advisorReasoningToJSON(advisorReasoning) {
|
|
32
|
+
return JSON.stringify(AdvisorReasoning$outboundSchema.parse(advisorReasoning));
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=advisorreasoning.js.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { AdvisorNestedTool, AdvisorNestedTool$Outbound } from "./advisornestedtool.js";
|
|
3
|
+
import { AdvisorReasoning, AdvisorReasoning$Outbound } from "./advisorreasoning.js";
|
|
4
|
+
/**
|
|
5
|
+
* Configuration for one openrouter:advisor server tool entry.
|
|
6
|
+
*/
|
|
7
|
+
export type AdvisorServerToolConfig = {
|
|
8
|
+
/**
|
|
9
|
+
* When true, the full parent conversation is forwarded to the advisor so it sees the same context the executor does (and the tool-call `prompt`, if given, is appended as a final user turn). When false or omitted, the advisor receives only the `prompt` the executor passes in the tool call.
|
|
10
|
+
*/
|
|
11
|
+
forwardTranscript?: boolean | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* System instructions for the advisor sub-agent. When omitted, the advisor responds with no system prompt of its own.
|
|
14
|
+
*/
|
|
15
|
+
instructions?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Maximum number of output tokens (including reasoning) the advisor may produce. When omitted, the provider's default applies.
|
|
18
|
+
*/
|
|
19
|
+
maxCompletionTokens?: number | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Maximum number of tool-calling steps the advisor sub-agent may take during its agentic loop. Capped at 25. Only relevant when the advisor is given tools.
|
|
22
|
+
*/
|
|
23
|
+
maxToolCalls?: number | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Slug of the advisor model to consult (any OpenRouter model). When omitted, the executor can choose it via the tool call's `model` argument; if neither is set, the model from the outer API request is used. The advisor tool itself cannot be the advisor model.
|
|
26
|
+
*/
|
|
27
|
+
model?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Optional name for this advisor. The model sees one tool per named advisor (and one default for an unnamed entry). Names must be unique across advisor entries. Letters, digits, spaces, underscores, and dashes; trimmed; 1–64 chars.
|
|
30
|
+
*/
|
|
31
|
+
name?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Reasoning configuration forwarded to the advisor call. Use this to control reasoning effort and token budget for models that support extended thinking.
|
|
34
|
+
*/
|
|
35
|
+
reasoning?: AdvisorReasoning | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* When true, the advisor's advice streams incrementally as it is produced. In the Responses API this emits `response.output_text.delta` events targeting the advisor output item; the final `advice` field is still set on the completed item. Has no effect on the Chat Completions API (where the advice arrives only as the final tool result). When false or omitted, the advice arrives only as the final result.
|
|
38
|
+
*/
|
|
39
|
+
stream?: boolean | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Sampling temperature forwarded to the advisor call. When omitted, the provider's default applies.
|
|
42
|
+
*/
|
|
43
|
+
temperature?: number | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Tools the advisor sub-agent may use while forming its advice. The advisor runs as an agentic sub-agent over these tools, then returns its text. Only OpenRouter server tools are supported — function tools are rejected — and the list must not include the advisor tool itself.
|
|
46
|
+
*/
|
|
47
|
+
tools?: Array<AdvisorNestedTool> | undefined;
|
|
48
|
+
};
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type AdvisorServerToolConfig$Outbound = {
|
|
51
|
+
forward_transcript?: boolean | undefined;
|
|
52
|
+
instructions?: string | undefined;
|
|
53
|
+
max_completion_tokens?: number | undefined;
|
|
54
|
+
max_tool_calls?: number | undefined;
|
|
55
|
+
model?: string | undefined;
|
|
56
|
+
name?: string | undefined;
|
|
57
|
+
reasoning?: AdvisorReasoning$Outbound | undefined;
|
|
58
|
+
stream?: boolean | undefined;
|
|
59
|
+
temperature?: number | undefined;
|
|
60
|
+
tools?: Array<AdvisorNestedTool$Outbound> | undefined;
|
|
61
|
+
};
|
|
62
|
+
/** @internal */
|
|
63
|
+
export declare const AdvisorServerToolConfig$outboundSchema: z.ZodType<AdvisorServerToolConfig$Outbound, AdvisorServerToolConfig>;
|
|
64
|
+
export declare function advisorServerToolConfigToJSON(advisorServerToolConfig: AdvisorServerToolConfig): string;
|
|
65
|
+
//# sourceMappingURL=advisorservertoolconfig.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 4c2b85fa1b08
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { AdvisorNestedTool$outboundSchema, } from "./advisornestedtool.js";
|
|
8
|
+
import { AdvisorReasoning$outboundSchema, } from "./advisorreasoning.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const AdvisorServerToolConfig$outboundSchema = z.object({
|
|
11
|
+
forwardTranscript: z.boolean().optional(),
|
|
12
|
+
instructions: z.string().optional(),
|
|
13
|
+
maxCompletionTokens: z.int().optional(),
|
|
14
|
+
maxToolCalls: z.int().optional(),
|
|
15
|
+
model: z.string().optional(),
|
|
16
|
+
name: z.string().optional(),
|
|
17
|
+
reasoning: AdvisorReasoning$outboundSchema.optional(),
|
|
18
|
+
stream: z.boolean().optional(),
|
|
19
|
+
temperature: z.number().optional(),
|
|
20
|
+
tools: z.array(AdvisorNestedTool$outboundSchema).optional(),
|
|
21
|
+
}).transform((v) => {
|
|
22
|
+
return remap$(v, {
|
|
23
|
+
forwardTranscript: "forward_transcript",
|
|
24
|
+
maxCompletionTokens: "max_completion_tokens",
|
|
25
|
+
maxToolCalls: "max_tool_calls",
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
export function advisorServerToolConfigToJSON(advisorServerToolConfig) {
|
|
29
|
+
return JSON.stringify(AdvisorServerToolConfig$outboundSchema.parse(advisorServerToolConfig));
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=advisorservertoolconfig.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
import { AdvisorServerToolConfig, AdvisorServerToolConfig$Outbound } from "./advisorservertoolconfig.js";
|
|
4
|
+
export declare const AdvisorServerToolOpenRouterType: {
|
|
5
|
+
readonly OpenrouterAdvisor: "openrouter:advisor";
|
|
6
|
+
};
|
|
7
|
+
export type AdvisorServerToolOpenRouterType = ClosedEnum<typeof AdvisorServerToolOpenRouterType>;
|
|
8
|
+
/**
|
|
9
|
+
* OpenRouter built-in server tool: consults a higher-intelligence advisor model (any OpenRouter model) for guidance mid-generation and returns its response. The advisor may run as a sub-agent with its own tools. Include multiple entries to offer several named advisors; at most one entry may omit `name` to act as the default advisor.
|
|
10
|
+
*/
|
|
11
|
+
export type AdvisorServerToolOpenRouter = {
|
|
12
|
+
/**
|
|
13
|
+
* Configuration for one openrouter:advisor server tool entry.
|
|
14
|
+
*/
|
|
15
|
+
parameters?: AdvisorServerToolConfig | undefined;
|
|
16
|
+
type: AdvisorServerToolOpenRouterType;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const AdvisorServerToolOpenRouterType$outboundSchema: z.ZodEnum<typeof AdvisorServerToolOpenRouterType>;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type AdvisorServerToolOpenRouter$Outbound = {
|
|
22
|
+
parameters?: AdvisorServerToolConfig$Outbound | undefined;
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
/** @internal */
|
|
26
|
+
export declare const AdvisorServerToolOpenRouter$outboundSchema: z.ZodType<AdvisorServerToolOpenRouter$Outbound, AdvisorServerToolOpenRouter>;
|
|
27
|
+
export declare function advisorServerToolOpenRouterToJSON(advisorServerToolOpenRouter: AdvisorServerToolOpenRouter): string;
|
|
28
|
+
//# sourceMappingURL=advisorservertoolopenrouter.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 980c275cec65
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { AdvisorServerToolConfig$outboundSchema, } from "./advisorservertoolconfig.js";
|
|
7
|
+
export const AdvisorServerToolOpenRouterType = {
|
|
8
|
+
OpenrouterAdvisor: "openrouter:advisor",
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const AdvisorServerToolOpenRouterType$outboundSchema = z.enum(AdvisorServerToolOpenRouterType);
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const AdvisorServerToolOpenRouter$outboundSchema = z.object({
|
|
14
|
+
parameters: AdvisorServerToolConfig$outboundSchema.optional(),
|
|
15
|
+
type: AdvisorServerToolOpenRouterType$outboundSchema,
|
|
16
|
+
});
|
|
17
|
+
export function advisorServerToolOpenRouterToJSON(advisorServerToolOpenRouter) {
|
|
18
|
+
return JSON.stringify(AdvisorServerToolOpenRouter$outboundSchema.parse(advisorServerToolOpenRouter));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=advisorservertoolopenrouter.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { AnthropicIterationCacheCreation } from "./anthropiciterationcachecreation.js";
|
|
5
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
6
|
+
export declare const AnthropicAdvisorMessageUsageIterationType: {
|
|
7
|
+
readonly AdvisorMessage: "advisor_message";
|
|
8
|
+
};
|
|
9
|
+
export type AnthropicAdvisorMessageUsageIterationType = ClosedEnum<typeof AnthropicAdvisorMessageUsageIterationType>;
|
|
10
|
+
export type AnthropicAdvisorMessageUsageIteration = {
|
|
11
|
+
cacheCreation?: AnthropicIterationCacheCreation | null | undefined;
|
|
12
|
+
cacheCreationInputTokens?: number | undefined;
|
|
13
|
+
cacheReadInputTokens?: number | undefined;
|
|
14
|
+
inputTokens?: number | undefined;
|
|
15
|
+
outputTokens?: number | undefined;
|
|
16
|
+
model: string;
|
|
17
|
+
type: AnthropicAdvisorMessageUsageIterationType;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const AnthropicAdvisorMessageUsageIterationType$inboundSchema: z.ZodEnum<typeof AnthropicAdvisorMessageUsageIterationType>;
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const AnthropicAdvisorMessageUsageIteration$inboundSchema: z.ZodType<AnthropicAdvisorMessageUsageIteration, unknown>;
|
|
23
|
+
export declare function anthropicAdvisorMessageUsageIterationFromJSON(jsonString: string): SafeParseResult<AnthropicAdvisorMessageUsageIteration, SDKValidationError>;
|
|
24
|
+
//# sourceMappingURL=anthropicadvisormessageusageiteration.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: ff2ce164571e
|
|
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 { AnthropicIterationCacheCreation$inboundSchema, } from "./anthropiciterationcachecreation.js";
|
|
9
|
+
export const AnthropicAdvisorMessageUsageIterationType = {
|
|
10
|
+
AdvisorMessage: "advisor_message",
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const AnthropicAdvisorMessageUsageIterationType$inboundSchema = z.enum(AnthropicAdvisorMessageUsageIterationType);
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const AnthropicAdvisorMessageUsageIteration$inboundSchema = z.object({
|
|
16
|
+
cache_creation: z.nullable(AnthropicIterationCacheCreation$inboundSchema)
|
|
17
|
+
.optional(),
|
|
18
|
+
cache_creation_input_tokens: z.int().optional(),
|
|
19
|
+
cache_read_input_tokens: z.int().optional(),
|
|
20
|
+
input_tokens: z.int().optional(),
|
|
21
|
+
output_tokens: z.int().optional(),
|
|
22
|
+
model: z.string(),
|
|
23
|
+
type: AnthropicAdvisorMessageUsageIterationType$inboundSchema,
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"cache_creation": "cacheCreation",
|
|
27
|
+
"cache_creation_input_tokens": "cacheCreationInputTokens",
|
|
28
|
+
"cache_read_input_tokens": "cacheReadInputTokens",
|
|
29
|
+
"input_tokens": "inputTokens",
|
|
30
|
+
"output_tokens": "outputTokens",
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
export function anthropicAdvisorMessageUsageIterationFromJSON(jsonString) {
|
|
34
|
+
return safeParse(jsonString, (x) => AnthropicAdvisorMessageUsageIteration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicAdvisorMessageUsageIteration' from JSON`);
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=anthropicadvisormessageusageiteration.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { AnthropicIterationCacheCreation } from "./anthropiciterationcachecreation.js";
|
|
5
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
6
|
+
export declare const AnthropicCompactionUsageIterationType: {
|
|
7
|
+
readonly Compaction: "compaction";
|
|
8
|
+
};
|
|
9
|
+
export type AnthropicCompactionUsageIterationType = ClosedEnum<typeof AnthropicCompactionUsageIterationType>;
|
|
10
|
+
export type AnthropicCompactionUsageIteration = {
|
|
11
|
+
cacheCreation?: AnthropicIterationCacheCreation | null | undefined;
|
|
12
|
+
cacheCreationInputTokens?: number | undefined;
|
|
13
|
+
cacheReadInputTokens?: number | undefined;
|
|
14
|
+
inputTokens?: number | undefined;
|
|
15
|
+
outputTokens?: number | undefined;
|
|
16
|
+
type: AnthropicCompactionUsageIterationType;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const AnthropicCompactionUsageIterationType$inboundSchema: z.ZodEnum<typeof AnthropicCompactionUsageIterationType>;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const AnthropicCompactionUsageIteration$inboundSchema: z.ZodType<AnthropicCompactionUsageIteration, unknown>;
|
|
22
|
+
export declare function anthropicCompactionUsageIterationFromJSON(jsonString: string): SafeParseResult<AnthropicCompactionUsageIteration, SDKValidationError>;
|
|
23
|
+
//# sourceMappingURL=anthropiccompactionusageiteration.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5982ebca6c31
|
|
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 { AnthropicIterationCacheCreation$inboundSchema, } from "./anthropiciterationcachecreation.js";
|
|
9
|
+
export const AnthropicCompactionUsageIterationType = {
|
|
10
|
+
Compaction: "compaction",
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const AnthropicCompactionUsageIterationType$inboundSchema = z.enum(AnthropicCompactionUsageIterationType);
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const AnthropicCompactionUsageIteration$inboundSchema = z.object({
|
|
16
|
+
cache_creation: z.nullable(AnthropicIterationCacheCreation$inboundSchema)
|
|
17
|
+
.optional(),
|
|
18
|
+
cache_creation_input_tokens: z.int().optional(),
|
|
19
|
+
cache_read_input_tokens: z.int().optional(),
|
|
20
|
+
input_tokens: z.int().optional(),
|
|
21
|
+
output_tokens: z.int().optional(),
|
|
22
|
+
type: AnthropicCompactionUsageIterationType$inboundSchema,
|
|
23
|
+
}).transform((v) => {
|
|
24
|
+
return remap$(v, {
|
|
25
|
+
"cache_creation": "cacheCreation",
|
|
26
|
+
"cache_creation_input_tokens": "cacheCreationInputTokens",
|
|
27
|
+
"cache_read_input_tokens": "cacheReadInputTokens",
|
|
28
|
+
"input_tokens": "inputTokens",
|
|
29
|
+
"output_tokens": "outputTokens",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
export function anthropicCompactionUsageIterationFromJSON(jsonString) {
|
|
33
|
+
return safeParse(jsonString, (x) => AnthropicCompactionUsageIteration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicCompactionUsageIteration' from JSON`);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=anthropiccompactionusageiteration.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { AnthropicBase64PdfSource, AnthropicBase64PdfSource$Outbound } from "./anthropicbase64pdfsource.js";
|
|
3
3
|
import { AnthropicCacheControlDirective, AnthropicCacheControlDirective$Outbound } from "./anthropiccachecontroldirective.js";
|
|
4
|
+
import { AnthropicFileDocumentSource, AnthropicFileDocumentSource$Outbound } from "./anthropicfiledocumentsource.js";
|
|
4
5
|
import { AnthropicImageBlockParam, AnthropicImageBlockParam$Outbound } from "./anthropicimageblockparam.js";
|
|
5
6
|
import { AnthropicPlainTextSource, AnthropicPlainTextSource$Outbound } from "./anthropicplaintextsource.js";
|
|
6
7
|
import { AnthropicTextBlockParam, AnthropicTextBlockParam$Outbound } from "./anthropictextblockparam.js";
|
|
@@ -14,7 +15,7 @@ export type SourceContent = {
|
|
|
14
15
|
content: string | Array<AnthropicImageBlockParam | AnthropicTextBlockParam>;
|
|
15
16
|
type: "content";
|
|
16
17
|
};
|
|
17
|
-
export type AnthropicDocumentBlockParamSourceUnion = AnthropicBase64PdfSource | AnthropicPlainTextSource | SourceContent | AnthropicUrlPdfSource;
|
|
18
|
+
export type AnthropicDocumentBlockParamSourceUnion = AnthropicBase64PdfSource | AnthropicPlainTextSource | SourceContent | AnthropicUrlPdfSource | AnthropicFileDocumentSource;
|
|
18
19
|
export type AnthropicDocumentBlockParam = {
|
|
19
20
|
/**
|
|
20
21
|
* Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models.
|
|
@@ -22,7 +23,7 @@ export type AnthropicDocumentBlockParam = {
|
|
|
22
23
|
cacheControl?: AnthropicCacheControlDirective | undefined;
|
|
23
24
|
citations?: AnthropicDocumentBlockParamCitations | null | undefined;
|
|
24
25
|
context?: string | null | undefined;
|
|
25
|
-
source: AnthropicBase64PdfSource | AnthropicPlainTextSource | SourceContent | AnthropicUrlPdfSource;
|
|
26
|
+
source: AnthropicBase64PdfSource | AnthropicPlainTextSource | SourceContent | AnthropicUrlPdfSource | AnthropicFileDocumentSource;
|
|
26
27
|
title?: string | null | undefined;
|
|
27
28
|
type: "document";
|
|
28
29
|
};
|
|
@@ -52,7 +53,7 @@ export type SourceContent$Outbound = {
|
|
|
52
53
|
export declare const SourceContent$outboundSchema: z.ZodType<SourceContent$Outbound, SourceContent>;
|
|
53
54
|
export declare function sourceContentToJSON(sourceContent: SourceContent): string;
|
|
54
55
|
/** @internal */
|
|
55
|
-
export type AnthropicDocumentBlockParamSourceUnion$Outbound = AnthropicBase64PdfSource$Outbound | AnthropicPlainTextSource$Outbound | SourceContent$Outbound | AnthropicUrlPdfSource$Outbound;
|
|
56
|
+
export type AnthropicDocumentBlockParamSourceUnion$Outbound = AnthropicBase64PdfSource$Outbound | AnthropicPlainTextSource$Outbound | SourceContent$Outbound | AnthropicUrlPdfSource$Outbound | AnthropicFileDocumentSource$Outbound;
|
|
56
57
|
/** @internal */
|
|
57
58
|
export declare const AnthropicDocumentBlockParamSourceUnion$outboundSchema: z.ZodType<AnthropicDocumentBlockParamSourceUnion$Outbound, AnthropicDocumentBlockParamSourceUnion>;
|
|
58
59
|
export declare function anthropicDocumentBlockParamSourceUnionToJSON(anthropicDocumentBlockParamSourceUnion: AnthropicDocumentBlockParamSourceUnion): string;
|
|
@@ -61,7 +62,7 @@ export type AnthropicDocumentBlockParam$Outbound = {
|
|
|
61
62
|
cache_control?: AnthropicCacheControlDirective$Outbound | undefined;
|
|
62
63
|
citations?: AnthropicDocumentBlockParamCitations$Outbound | null | undefined;
|
|
63
64
|
context?: string | null | undefined;
|
|
64
|
-
source: AnthropicBase64PdfSource$Outbound | AnthropicPlainTextSource$Outbound | SourceContent$Outbound | AnthropicUrlPdfSource$Outbound;
|
|
65
|
+
source: AnthropicBase64PdfSource$Outbound | AnthropicPlainTextSource$Outbound | SourceContent$Outbound | AnthropicUrlPdfSource$Outbound | AnthropicFileDocumentSource$Outbound;
|
|
65
66
|
title?: string | null | undefined;
|
|
66
67
|
type: "document";
|
|
67
68
|
};
|
|
@@ -6,6 +6,7 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import { AnthropicBase64PdfSource$outboundSchema, } from "./anthropicbase64pdfsource.js";
|
|
8
8
|
import { AnthropicCacheControlDirective$outboundSchema, } from "./anthropiccachecontroldirective.js";
|
|
9
|
+
import { AnthropicFileDocumentSource$outboundSchema, } from "./anthropicfiledocumentsource.js";
|
|
9
10
|
import { AnthropicImageBlockParam$outboundSchema, } from "./anthropicimageblockparam.js";
|
|
10
11
|
import { AnthropicPlainTextSource$outboundSchema, } from "./anthropicplaintextsource.js";
|
|
11
12
|
import { AnthropicTextBlockParam$outboundSchema, } from "./anthropictextblockparam.js";
|
|
@@ -56,6 +57,7 @@ export const AnthropicDocumentBlockParamSourceUnion$outboundSchema = z.union([
|
|
|
56
57
|
AnthropicPlainTextSource$outboundSchema,
|
|
57
58
|
z.lazy(() => SourceContent$outboundSchema),
|
|
58
59
|
AnthropicUrlPdfSource$outboundSchema,
|
|
60
|
+
AnthropicFileDocumentSource$outboundSchema,
|
|
59
61
|
]);
|
|
60
62
|
export function anthropicDocumentBlockParamSourceUnionToJSON(anthropicDocumentBlockParamSourceUnion) {
|
|
61
63
|
return JSON.stringify(AnthropicDocumentBlockParamSourceUnion$outboundSchema.parse(anthropicDocumentBlockParamSourceUnion));
|
|
@@ -70,6 +72,7 @@ export const AnthropicDocumentBlockParam$outboundSchema = z.object({
|
|
|
70
72
|
AnthropicPlainTextSource$outboundSchema,
|
|
71
73
|
z.lazy(() => SourceContent$outboundSchema),
|
|
72
74
|
AnthropicUrlPdfSource$outboundSchema,
|
|
75
|
+
AnthropicFileDocumentSource$outboundSchema,
|
|
73
76
|
]),
|
|
74
77
|
title: z.nullable(z.string()).optional(),
|
|
75
78
|
type: z.literal("document"),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type AnthropicFileDocumentSource = {
|
|
3
|
+
fileId: string;
|
|
4
|
+
type: "file";
|
|
5
|
+
};
|
|
6
|
+
/** @internal */
|
|
7
|
+
export type AnthropicFileDocumentSource$Outbound = {
|
|
8
|
+
file_id: string;
|
|
9
|
+
type: "file";
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const AnthropicFileDocumentSource$outboundSchema: z.ZodType<AnthropicFileDocumentSource$Outbound, AnthropicFileDocumentSource>;
|
|
13
|
+
export declare function anthropicFileDocumentSourceToJSON(anthropicFileDocumentSource: AnthropicFileDocumentSource): string;
|
|
14
|
+
//# sourceMappingURL=anthropicfiledocumentsource.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 8ad816e4eb64
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const AnthropicFileDocumentSource$outboundSchema = z.object({
|
|
9
|
+
fileId: z.string(),
|
|
10
|
+
type: z.literal("file"),
|
|
11
|
+
}).transform((v) => {
|
|
12
|
+
return remap$(v, {
|
|
13
|
+
fileId: "file_id",
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
export function anthropicFileDocumentSourceToJSON(anthropicFileDocumentSource) {
|
|
17
|
+
return JSON.stringify(AnthropicFileDocumentSource$outboundSchema.parse(anthropicFileDocumentSource));
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=anthropicfiledocumentsource.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
export type AnthropicIterationCacheCreation = {
|
|
5
|
+
ephemeral1hInputTokens?: number | undefined;
|
|
6
|
+
ephemeral5mInputTokens?: number | undefined;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const AnthropicIterationCacheCreation$inboundSchema: z.ZodType<AnthropicIterationCacheCreation, unknown>;
|
|
10
|
+
export declare function anthropicIterationCacheCreationFromJSON(jsonString: string): SafeParseResult<AnthropicIterationCacheCreation, SDKValidationError>;
|
|
11
|
+
//# sourceMappingURL=anthropiciterationcachecreation.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: eafcf72fb51c
|
|
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 AnthropicIterationCacheCreation$inboundSchema = z.object({
|
|
10
|
+
ephemeral_1h_input_tokens: z.int().optional(),
|
|
11
|
+
ephemeral_5m_input_tokens: z.int().optional(),
|
|
12
|
+
}).transform((v) => {
|
|
13
|
+
return remap$(v, {
|
|
14
|
+
"ephemeral_1h_input_tokens": "ephemeral1hInputTokens",
|
|
15
|
+
"ephemeral_5m_input_tokens": "ephemeral5mInputTokens",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function anthropicIterationCacheCreationFromJSON(jsonString) {
|
|
19
|
+
return safeParse(jsonString, (x) => AnthropicIterationCacheCreation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicIterationCacheCreation' from JSON`);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=anthropiciterationcachecreation.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { AnthropicIterationCacheCreation } from "./anthropiciterationcachecreation.js";
|
|
5
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
6
|
+
export declare const AnthropicMessageUsageIterationType: {
|
|
7
|
+
readonly Message: "message";
|
|
8
|
+
};
|
|
9
|
+
export type AnthropicMessageUsageIterationType = ClosedEnum<typeof AnthropicMessageUsageIterationType>;
|
|
10
|
+
export type AnthropicMessageUsageIteration = {
|
|
11
|
+
cacheCreation?: AnthropicIterationCacheCreation | null | undefined;
|
|
12
|
+
cacheCreationInputTokens?: number | undefined;
|
|
13
|
+
cacheReadInputTokens?: number | undefined;
|
|
14
|
+
inputTokens?: number | undefined;
|
|
15
|
+
outputTokens?: number | undefined;
|
|
16
|
+
model?: string | undefined;
|
|
17
|
+
type: AnthropicMessageUsageIterationType;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const AnthropicMessageUsageIterationType$inboundSchema: z.ZodEnum<typeof AnthropicMessageUsageIterationType>;
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const AnthropicMessageUsageIteration$inboundSchema: z.ZodType<AnthropicMessageUsageIteration, unknown>;
|
|
23
|
+
export declare function anthropicMessageUsageIterationFromJSON(jsonString: string): SafeParseResult<AnthropicMessageUsageIteration, SDKValidationError>;
|
|
24
|
+
//# sourceMappingURL=anthropicmessageusageiteration.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: fabb23153447
|
|
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 { AnthropicIterationCacheCreation$inboundSchema, } from "./anthropiciterationcachecreation.js";
|
|
9
|
+
export const AnthropicMessageUsageIterationType = {
|
|
10
|
+
Message: "message",
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const AnthropicMessageUsageIterationType$inboundSchema = z.enum(AnthropicMessageUsageIterationType);
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const AnthropicMessageUsageIteration$inboundSchema = z.object({
|
|
16
|
+
cache_creation: z.nullable(AnthropicIterationCacheCreation$inboundSchema)
|
|
17
|
+
.optional(),
|
|
18
|
+
cache_creation_input_tokens: z.int().optional(),
|
|
19
|
+
cache_read_input_tokens: z.int().optional(),
|
|
20
|
+
input_tokens: z.int().optional(),
|
|
21
|
+
output_tokens: z.int().optional(),
|
|
22
|
+
model: z.string().optional(),
|
|
23
|
+
type: AnthropicMessageUsageIterationType$inboundSchema,
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"cache_creation": "cacheCreation",
|
|
27
|
+
"cache_creation_input_tokens": "cacheCreationInputTokens",
|
|
28
|
+
"cache_read_input_tokens": "cacheReadInputTokens",
|
|
29
|
+
"input_tokens": "inputTokens",
|
|
30
|
+
"output_tokens": "outputTokens",
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
export function anthropicMessageUsageIterationFromJSON(jsonString) {
|
|
34
|
+
return safeParse(jsonString, (x) => AnthropicMessageUsageIteration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicMessageUsageIteration' from JSON`);
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=anthropicmessageusageiteration.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
export declare const AnthropicSpeed: {
|
|
4
|
+
readonly Fast: "fast";
|
|
5
|
+
readonly Standard: "standard";
|
|
6
|
+
};
|
|
7
|
+
export type AnthropicSpeed = OpenEnum<typeof AnthropicSpeed>;
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const AnthropicSpeed$inboundSchema: z.ZodType<AnthropicSpeed, unknown>;
|
|
10
|
+
//# sourceMappingURL=anthropicspeed.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 8c545705b9ae
|
|
4
|
+
*/
|
|
5
|
+
import * as openEnums from "../types/enums.js";
|
|
6
|
+
export const AnthropicSpeed = {
|
|
7
|
+
Fast: "fast",
|
|
8
|
+
Standard: "standard",
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const AnthropicSpeed$inboundSchema = openEnums.inboundSchema(AnthropicSpeed);
|
|
12
|
+
//# sourceMappingURL=anthropicspeed.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { AnthropicIterationCacheCreation } from "./anthropiciterationcachecreation.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
export type AnthropicUnknownUsageIteration = {
|
|
6
|
+
cacheCreation?: AnthropicIterationCacheCreation | null | undefined;
|
|
7
|
+
cacheCreationInputTokens?: number | undefined;
|
|
8
|
+
cacheReadInputTokens?: number | undefined;
|
|
9
|
+
inputTokens?: number | undefined;
|
|
10
|
+
outputTokens?: number | undefined;
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const AnthropicUnknownUsageIteration$inboundSchema: z.ZodType<AnthropicUnknownUsageIteration, unknown>;
|
|
15
|
+
export declare function anthropicUnknownUsageIterationFromJSON(jsonString: string): SafeParseResult<AnthropicUnknownUsageIteration, SDKValidationError>;
|
|
16
|
+
//# sourceMappingURL=anthropicunknownusageiteration.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 4c070ad010b0
|
|
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 { AnthropicIterationCacheCreation$inboundSchema, } from "./anthropiciterationcachecreation.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const AnthropicUnknownUsageIteration$inboundSchema = z.object({
|
|
11
|
+
cache_creation: z.nullable(AnthropicIterationCacheCreation$inboundSchema)
|
|
12
|
+
.optional(),
|
|
13
|
+
cache_creation_input_tokens: z.int().optional(),
|
|
14
|
+
cache_read_input_tokens: z.int().optional(),
|
|
15
|
+
input_tokens: z.int().optional(),
|
|
16
|
+
output_tokens: z.int().optional(),
|
|
17
|
+
type: z.string(),
|
|
18
|
+
}).transform((v) => {
|
|
19
|
+
return remap$(v, {
|
|
20
|
+
"cache_creation": "cacheCreation",
|
|
21
|
+
"cache_creation_input_tokens": "cacheCreationInputTokens",
|
|
22
|
+
"cache_read_input_tokens": "cacheReadInputTokens",
|
|
23
|
+
"input_tokens": "inputTokens",
|
|
24
|
+
"output_tokens": "outputTokens",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
export function anthropicUnknownUsageIterationFromJSON(jsonString) {
|
|
28
|
+
return safeParse(jsonString, (x) => AnthropicUnknownUsageIteration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicUnknownUsageIteration' from JSON`);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=anthropicunknownusageiteration.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { AnthropicAdvisorMessageUsageIteration } from "./anthropicadvisormessageusageiteration.js";
|
|
4
|
+
import { AnthropicCompactionUsageIteration } from "./anthropiccompactionusageiteration.js";
|
|
5
|
+
import { AnthropicMessageUsageIteration } from "./anthropicmessageusageiteration.js";
|
|
6
|
+
import { AnthropicUnknownUsageIteration } from "./anthropicunknownusageiteration.js";
|
|
7
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
8
|
+
export type AnthropicUsageIteration = AnthropicAdvisorMessageUsageIteration | AnthropicCompactionUsageIteration | AnthropicMessageUsageIteration | AnthropicUnknownUsageIteration;
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const AnthropicUsageIteration$inboundSchema: z.ZodType<AnthropicUsageIteration, unknown>;
|
|
11
|
+
export declare function anthropicUsageIterationFromJSON(jsonString: string): SafeParseResult<AnthropicUsageIteration, SDKValidationError>;
|
|
12
|
+
//# sourceMappingURL=anthropicusageiteration.d.ts.map
|