@openrouter/sdk 0.12.35 → 0.13.7
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/FUNCTIONS.md +2 -2
- package/README.md +41 -1
- package/esm/funcs/analyticsGetUserActivity.js +2 -1
- package/esm/funcs/apiKeysCreate.js +2 -1
- package/esm/funcs/apiKeysDelete.js +2 -1
- package/esm/funcs/apiKeysGet.js +2 -1
- package/esm/funcs/apiKeysGetCurrentKeyMetadata.js +2 -1
- package/esm/funcs/apiKeysList.js +2 -1
- package/esm/funcs/apiKeysUpdate.js +2 -1
- 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.d.ts +3 -3
- package/esm/funcs/betaResponsesSend.js +4 -19
- package/esm/funcs/byokCreate.d.ts +19 -0
- package/esm/funcs/byokCreate.js +100 -0
- package/esm/funcs/byokDelete.d.ts +19 -0
- package/esm/funcs/byokDelete.js +103 -0
- package/esm/funcs/byokGet.d.ts +19 -0
- package/esm/funcs/byokGet.js +103 -0
- package/esm/funcs/byokList.d.ts +21 -0
- package/esm/funcs/byokList.js +136 -0
- package/esm/funcs/byokUpdate.d.ts +19 -0
- package/esm/funcs/byokUpdate.js +106 -0
- package/esm/funcs/chatSend.js +3 -19
- package/esm/funcs/creditsGetCredits.js +2 -1
- package/esm/funcs/datasetsGetAppRankings.d.ts +43 -0
- package/esm/funcs/datasetsGetAppRankings.js +161 -0
- package/esm/funcs/datasetsGetBenchmarksArtificialAnalysis.d.ts +19 -0
- package/esm/funcs/datasetsGetBenchmarksArtificialAnalysis.js +102 -0
- package/esm/funcs/datasetsGetBenchmarksDesignArena.d.ts +19 -0
- package/esm/funcs/datasetsGetBenchmarksDesignArena.js +104 -0
- package/esm/funcs/datasetsGetRankingsDaily.d.ts +37 -0
- package/esm/funcs/datasetsGetRankingsDaily.js +120 -0
- package/esm/funcs/embeddingsGenerate.js +2 -14
- package/esm/funcs/embeddingsListModels.js +2 -1
- package/esm/funcs/endpointsList.js +2 -1
- package/esm/funcs/endpointsListZdrEndpoints.js +2 -1
- 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/generationsGetGeneration.js +2 -12
- package/esm/funcs/generationsListGenerationContent.js +2 -12
- package/esm/funcs/guardrailsBulkAssignKeys.js +2 -1
- package/esm/funcs/guardrailsBulkAssignMembers.js +2 -1
- package/esm/funcs/guardrailsBulkUnassignKeys.js +2 -1
- package/esm/funcs/guardrailsBulkUnassignMembers.js +2 -1
- package/esm/funcs/guardrailsCreate.js +2 -1
- package/esm/funcs/guardrailsDelete.js +2 -1
- package/esm/funcs/guardrailsGet.js +2 -1
- package/esm/funcs/guardrailsList.js +2 -1
- package/esm/funcs/guardrailsListGuardrailKeyAssignments.js +2 -1
- package/esm/funcs/guardrailsListGuardrailMemberAssignments.js +2 -1
- package/esm/funcs/guardrailsListKeyAssignments.js +2 -1
- package/esm/funcs/guardrailsListMemberAssignments.js +2 -1
- package/esm/funcs/guardrailsUpdate.js +2 -1
- package/esm/funcs/modelsCount.js +2 -1
- package/esm/funcs/modelsGet.d.ts +19 -0
- package/esm/funcs/modelsGet.js +107 -0
- package/esm/funcs/modelsList.js +14 -1
- package/esm/funcs/modelsListForUser.js +2 -1
- package/esm/funcs/oAuthCreateAuthCode.d.ts +1 -1
- package/esm/funcs/oAuthCreateAuthCode.js +3 -2
- package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.js +2 -1
- package/esm/funcs/observabilityCreate.d.ts +19 -0
- package/esm/funcs/observabilityCreate.js +98 -0
- package/esm/funcs/observabilityDelete.d.ts +19 -0
- package/esm/funcs/observabilityDelete.js +103 -0
- package/esm/funcs/observabilityGet.d.ts +19 -0
- package/esm/funcs/observabilityGet.js +103 -0
- package/esm/funcs/observabilityList.d.ts +21 -0
- package/esm/funcs/observabilityList.js +134 -0
- package/esm/funcs/observabilityUpdate.d.ts +19 -0
- package/esm/funcs/observabilityUpdate.js +104 -0
- package/esm/funcs/organizationListMembers.js +2 -1
- package/esm/funcs/presetsCreatePresetsChatCompletions.d.ts +21 -0
- package/esm/funcs/presetsCreatePresetsChatCompletions.js +106 -0
- package/esm/funcs/presetsCreatePresetsMessages.d.ts +21 -0
- package/esm/funcs/presetsCreatePresetsMessages.js +106 -0
- package/esm/funcs/presetsCreatePresetsResponses.d.ts +21 -0
- package/esm/funcs/presetsCreatePresetsResponses.js +106 -0
- 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/providersList.js +2 -1
- package/esm/funcs/rerankRerank.js +2 -14
- package/esm/funcs/sttCreateTranscription.js +2 -14
- package/esm/funcs/ttsCreateSpeech.js +2 -14
- package/esm/funcs/videoGenerationGenerate.js +2 -1
- package/esm/funcs/videoGenerationGetGeneration.js +2 -1
- package/esm/funcs/videoGenerationGetVideoContent.js +2 -1
- package/esm/funcs/videoGenerationListVideosModels.js +2 -1
- package/esm/funcs/workspacesBulkAddMembers.js +2 -1
- package/esm/funcs/workspacesBulkRemoveMembers.js +2 -1
- package/esm/funcs/workspacesCreate.js +2 -1
- package/esm/funcs/workspacesDelete.js +2 -1
- package/esm/funcs/workspacesGet.js +2 -1
- package/esm/funcs/workspacesList.js +2 -1
- package/esm/funcs/workspacesUpdate.js +2 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/encodings.d.ts +1 -0
- package/esm/lib/encodings.js +6 -0
- package/esm/lib/sdks.d.ts +1 -1
- package/esm/lib/sdks.js +3 -5
- 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 +41 -0
- package/esm/models/advisorreasoning.js +33 -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/anthropicallowedcallers.d.ts +11 -0
- package/esm/models/anthropicallowedcallers.js +13 -0
- package/esm/models/anthropicbase64imagesource.d.ts +17 -0
- package/esm/models/anthropicbase64imagesource.js +21 -0
- package/esm/models/anthropicbase64pdfsource.d.ts +23 -0
- package/esm/models/anthropicbase64pdfsource.js +25 -0
- package/esm/models/anthropiccachecontroldirective.d.ts +1 -1
- package/esm/models/anthropiccitationcharlocationparam.d.ts +22 -0
- package/esm/models/anthropiccitationcharlocationparam.js +27 -0
- package/esm/models/anthropiccitationcontentblocklocationparam.d.ts +22 -0
- package/esm/models/anthropiccitationcontentblocklocationparam.js +27 -0
- package/esm/models/anthropiccitationpagelocationparam.d.ts +22 -0
- package/esm/models/anthropiccitationpagelocationparam.js +27 -0
- package/esm/models/anthropiccitationsearchresultlocation.d.ts +24 -0
- package/esm/models/anthropiccitationsearchresultlocation.js +27 -0
- package/esm/models/anthropiccitationwebsearchresultlocation.d.ts +20 -0
- package/esm/models/anthropiccitationwebsearchresultlocation.js +23 -0
- package/esm/models/anthropicdocumentblockparam.d.ts +71 -0
- package/esm/models/anthropicdocumentblockparam.js +84 -0
- package/esm/models/anthropicimageblockparam.d.ts +28 -0
- package/esm/models/anthropicimageblockparam.js +34 -0
- package/esm/models/anthropicimagemimetype.d.ts +12 -0
- package/esm/models/anthropicimagemimetype.js +14 -0
- package/esm/models/anthropicinputtokensclearatleast.d.ts +21 -0
- package/esm/models/anthropicinputtokensclearatleast.js +19 -0
- package/esm/models/anthropicinputtokenstrigger.d.ts +14 -0
- package/esm/models/anthropicinputtokenstrigger.js +14 -0
- package/esm/models/anthropicplaintextsource.d.ts +23 -0
- package/esm/models/anthropicplaintextsource.js +25 -0
- package/esm/models/anthropicsearchresultblockparam.d.ts +37 -0
- package/esm/models/anthropicsearchresultblockparam.js +32 -0
- package/esm/models/anthropictextblockparam.d.ts +33 -0
- package/esm/models/anthropictextblockparam.js +45 -0
- package/esm/models/anthropicthinkingdisplay.d.ts +10 -0
- package/esm/models/anthropicthinkingdisplay.js +12 -0
- package/esm/models/anthropicthinkingturns.d.ts +21 -0
- package/esm/models/anthropicthinkingturns.js +19 -0
- package/esm/models/anthropictooluseskeep.d.ts +21 -0
- package/esm/models/anthropictooluseskeep.js +19 -0
- package/esm/models/anthropictoolusestrigger.d.ts +14 -0
- package/esm/models/anthropictoolusestrigger.js +14 -0
- package/esm/models/anthropicurlimagesource.d.ts +14 -0
- package/esm/models/anthropicurlimagesource.js +14 -0
- package/esm/models/anthropicurlpdfsource.d.ts +14 -0
- package/esm/models/anthropicurlpdfsource.js +14 -0
- package/esm/models/anthropicwebsearchresultblockparam.d.ts +27 -0
- package/esm/models/anthropicwebsearchresultblockparam.js +28 -0
- package/esm/models/anthropicwebsearchtooluserlocation.d.ts +27 -0
- package/esm/models/anthropicwebsearchtooluserlocation.js +22 -0
- package/esm/models/applypatchcallitem.d.ts +45 -0
- package/esm/models/applypatchcallitem.js +47 -0
- package/esm/models/applypatchcalloperation.d.ts +20 -0
- package/esm/models/applypatchcalloperation.js +29 -0
- package/esm/models/applypatchcalloperationdiffdeltaevent.d.ts +17 -0
- package/esm/models/applypatchcalloperationdiffdeltaevent.js +25 -0
- package/esm/models/applypatchcalloperationdiffdoneevent.d.ts +17 -0
- package/esm/models/applypatchcalloperationdiffdoneevent.js +25 -0
- package/esm/models/applypatchcalloutputitem.d.ts +46 -0
- package/esm/models/applypatchcalloutputitem.js +54 -0
- package/esm/models/applypatchcallstatus.d.ts +18 -0
- package/esm/models/applypatchcallstatus.js +17 -0
- package/esm/models/applypatchcreatefileoperation.d.ts +24 -0
- package/esm/models/applypatchcreatefileoperation.js +25 -0
- package/esm/models/applypatchdeletefileoperation.d.ts +22 -0
- package/esm/models/applypatchdeletefileoperation.js +23 -0
- package/esm/models/applypatchengineenum.d.ts +17 -0
- package/esm/models/applypatchengineenum.js +16 -0
- package/esm/models/applypatchservertoolconfig.d.ts +19 -0
- package/esm/models/applypatchservertoolconfig.js +14 -0
- package/esm/models/applypatchservertoolopenrouter.d.ts +21 -0
- package/esm/models/applypatchservertoolopenrouter.js +15 -0
- package/esm/models/applypatchupdatefileoperation.d.ts +24 -0
- package/esm/models/applypatchupdatefileoperation.js +25 -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/autorouterplugin.d.ts +5 -0
- package/esm/models/autorouterplugin.js +2 -0
- package/esm/models/baseinputsunion.d.ts +6 -2
- package/esm/models/baseinputsunion.js +12 -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/benchmarkpricing.d.ts +20 -0
- package/esm/models/benchmarkpricing.js +15 -0
- package/esm/models/benchmarksaaitem.d.ts +34 -0
- package/esm/models/benchmarksaaitem.js +29 -0
- package/esm/models/benchmarksaameta.d.ts +70 -0
- package/esm/models/benchmarksaameta.js +50 -0
- package/esm/models/benchmarksaaresponse.d.ts +13 -0
- package/esm/models/benchmarksaaresponse.js +17 -0
- package/esm/models/benchmarksdaitem.d.ts +59 -0
- package/esm/models/benchmarksdaitem.js +50 -0
- package/esm/models/benchmarksdameta.d.ts +98 -0
- package/esm/models/benchmarksdameta.js +62 -0
- package/esm/models/benchmarksdaresponse.d.ts +13 -0
- package/esm/models/benchmarksdaresponse.js +17 -0
- package/esm/models/byokkey.d.ts +58 -0
- package/esm/models/byokkey.js +37 -0
- package/esm/models/byokproviderslug.d.ts +99 -0
- package/esm/models/byokproviderslug.js +98 -0
- package/esm/models/chatfunctiontool.d.ts +5 -2
- package/esm/models/chatfunctiontool.js +6 -0
- package/esm/models/chatrequest.d.ts +68 -15
- package/esm/models/chatrequest.js +41 -8
- package/esm/models/chatservertoolchoice.d.ts +18 -0
- package/esm/models/chatservertoolchoice.js +13 -0
- package/esm/models/chattoolchoice.d.ts +3 -2
- package/esm/models/chattoolchoice.js +2 -0
- package/esm/models/chatwebsearchshorthand.d.ts +11 -6
- package/esm/models/chatwebsearchshorthand.js +2 -0
- package/esm/models/compactionitem.d.ts +26 -0
- package/esm/models/compactionitem.js +25 -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 +6 -10
- package/esm/models/contentfilterbuiltinentry.js +9 -11
- package/esm/models/contentfilterbuiltinentryinput.d.ts +38 -0
- package/esm/models/contentfilterbuiltinentryinput.js +24 -0
- package/esm/models/contentpartaudio.d.ts +24 -0
- package/esm/models/contentpartaudio.js +27 -0
- package/esm/models/contentpartimage.d.ts +2 -9
- package/esm/models/contentpartimage.js +1 -6
- package/esm/models/contentpartinputaudio.d.ts +15 -0
- package/esm/models/contentpartinputaudio.js +20 -0
- package/esm/models/contentpartinputfile.d.ts +15 -0
- package/esm/models/contentpartinputfile.js +20 -0
- package/esm/models/contentpartinputvideo.d.ts +15 -0
- package/esm/models/contentpartinputvideo.js +20 -0
- package/esm/models/contentpartvideo.d.ts +24 -0
- package/esm/models/contentpartvideo.js +27 -0
- package/esm/models/createbyokkeyrequest.d.ts +51 -0
- package/esm/models/createbyokkeyrequest.js +29 -0
- package/esm/models/createbyokkeyresponse.d.ts +11 -0
- package/esm/models/createbyokkeyresponse.js +15 -0
- package/esm/models/createguardrailrequest.d.ts +27 -5
- package/esm/models/createguardrailrequest.js +10 -2
- package/esm/models/createobservabilitydestinationrequest.d.ts +89 -0
- package/esm/models/createobservabilitydestinationrequest.js +58 -0
- package/esm/models/createobservabilitydestinationresponse.d.ts +11 -0
- package/esm/models/createobservabilitydestinationresponse.js +15 -0
- package/esm/models/createpresetfrominferenceresponse.d.ts +17 -0
- package/esm/models/createpresetfrominferenceresponse.js +15 -0
- package/esm/models/createworkspacerequest.d.ts +1 -1
- package/esm/models/customtoolcallinputdeltaevent.d.ts +17 -0
- package/esm/models/customtoolcallinputdeltaevent.js +25 -0
- package/esm/models/customtoolcallinputdoneevent.d.ts +17 -0
- package/esm/models/customtoolcallinputdoneevent.js +25 -0
- package/esm/models/customtoolcallitem.d.ts +35 -0
- package/esm/models/customtoolcallitem.js +28 -0
- package/esm/models/customtoolcalloutputitem.d.ts +68 -0
- package/esm/models/customtoolcalloutputitem.js +78 -0
- package/esm/models/dabenchmarkentry.d.ts +32 -0
- package/esm/models/dabenchmarkentry.js +23 -0
- package/esm/models/deletebyokkeyresponse.d.ts +13 -0
- package/esm/models/deletebyokkeyresponse.js +14 -0
- package/esm/models/deleteobservabilitydestinationresponse.d.ts +13 -0
- package/esm/models/deleteobservabilitydestinationresponse.js +14 -0
- package/esm/models/easyinputmessage.d.ts +1 -0
- package/esm/models/easyinputmessage.js +1 -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/filesearchservertool.d.ts +12 -12
- package/esm/models/filesearchservertool.js +12 -17
- package/esm/models/functioncalloutputitem.d.ts +11 -10
- package/esm/models/functioncalloutputitem.js +7 -6
- 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 +78 -0
- package/esm/models/fusionplugin.js +43 -0
- package/esm/models/fusionservertoolconfig.d.ts +109 -0
- package/esm/models/fusionservertoolconfig.js +62 -0
- package/esm/models/fusionservertoolopenrouter.d.ts +21 -0
- package/esm/models/fusionservertoolopenrouter.js +15 -0
- package/esm/models/generationresponse.d.ts +26 -0
- package/esm/models/generationresponse.js +16 -0
- package/esm/models/getbyokkeyresponse.d.ts +11 -0
- package/esm/models/getbyokkeyresponse.js +15 -0
- package/esm/models/getobservabilitydestinationresponse.d.ts +11 -0
- package/esm/models/getobservabilitydestinationresponse.js +15 -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/guardrail.d.ts +19 -1
- package/esm/models/guardrail.js +8 -0
- package/esm/models/index.d.ts +176 -0
- package/esm/models/index.js +176 -0
- package/esm/models/inputimage.d.ts +1 -0
- package/esm/models/inputimage.js +1 -0
- package/esm/models/inputmessageitem.d.ts +1 -0
- package/esm/models/inputmessageitem.js +1 -0
- package/esm/models/inputreference.d.ts +14 -0
- package/esm/models/inputreference.js +18 -0
- package/esm/models/inputsunion.d.ts +22 -4
- package/esm/models/inputsunion.js +56 -2
- package/esm/models/itemreferenceitem.d.ts +24 -0
- package/esm/models/itemreferenceitem.js +19 -0
- package/esm/models/legacywebsearchservertool.d.ts +2 -2
- package/esm/models/listbyokkeysresponse.d.ts +18 -0
- package/esm/models/listbyokkeysresponse.js +21 -0
- package/esm/models/listobservabilitydestinationsresponse.d.ts +18 -0
- package/esm/models/listobservabilitydestinationsresponse.js +21 -0
- 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/localshellcallitem.d.ts +61 -0
- package/esm/models/localshellcallitem.js +50 -0
- package/esm/models/localshellcalloutputitem.d.ts +36 -0
- package/esm/models/localshellcalloutputitem.js +29 -0
- package/esm/models/mcpapprovalrequestitem.d.ts +30 -0
- package/esm/models/mcpapprovalrequestitem.js +27 -0
- package/esm/models/mcpapprovalresponseitem.d.ts +30 -0
- package/esm/models/mcpapprovalresponseitem.js +27 -0
- package/esm/models/mcpcallitem.d.ts +34 -0
- package/esm/models/mcpcallitem.js +29 -0
- package/esm/models/mcplisttoolsitem.d.ts +50 -0
- package/esm/models/mcplisttoolsitem.js +41 -0
- package/esm/models/messagesadvisortoolresultblock.d.ts +23 -0
- package/esm/models/messagesadvisortoolresultblock.js +20 -0
- package/esm/models/messagesfallbackparam.d.ts +19 -0
- package/esm/models/messagesfallbackparam.js +22 -0
- package/esm/models/messagesmessageparam.d.ts +228 -0
- package/esm/models/messagesmessageparam.js +261 -0
- package/esm/models/messagesoutputconfig.d.ts +93 -0
- package/esm/models/messagesoutputconfig.js +61 -0
- package/esm/models/messagesrequest.d.ts +637 -0
- package/esm/models/messagesrequest.js +613 -0
- package/esm/models/model.d.ts +5 -0
- package/esm/models/model.js +2 -0
- package/esm/models/modelbenchmarks.d.ts +22 -0
- package/esm/models/modelbenchmarks.js +23 -0
- package/esm/models/modelresponse.d.ts +17 -0
- package/esm/models/modelresponse.js +16 -0
- package/esm/models/multimodalmedia.d.ts +14 -0
- package/esm/models/multimodalmedia.js +14 -0
- package/esm/models/observabilityarizedestination.d.ts +67 -0
- package/esm/models/observabilityarizedestination.js +48 -0
- package/esm/models/observabilitybraintrustdestination.d.ts +66 -0
- package/esm/models/observabilitybraintrustdestination.js +47 -0
- package/esm/models/observabilityclickhousedestination.d.ts +71 -0
- package/esm/models/observabilityclickhousedestination.js +49 -0
- package/esm/models/observabilitydatadogdestination.d.ts +75 -0
- package/esm/models/observabilitydatadogdestination.js +47 -0
- package/esm/models/observabilitydestination.d.ts +26 -0
- package/esm/models/observabilitydestination.js +47 -0
- package/esm/models/observabilityfilterrulesconfig.d.ts +112 -0
- package/esm/models/observabilityfilterrulesconfig.js +119 -0
- package/esm/models/observabilitygrafanadestination.d.ts +66 -0
- package/esm/models/observabilitygrafanadestination.js +47 -0
- package/esm/models/observabilitylangfusedestination.d.ts +66 -0
- package/esm/models/observabilitylangfusedestination.js +47 -0
- package/esm/models/observabilitylangsmithdestination.d.ts +73 -0
- package/esm/models/observabilitylangsmithdestination.js +48 -0
- package/esm/models/observabilitynewrelicdestination.d.ts +73 -0
- package/esm/models/observabilitynewrelicdestination.js +54 -0
- package/esm/models/observabilityopikdestination.d.ts +66 -0
- package/esm/models/observabilityopikdestination.js +47 -0
- package/esm/models/observabilityotelcollectordestination.d.ts +64 -0
- package/esm/models/observabilityotelcollectordestination.js +45 -0
- package/esm/models/observabilityposthogdestination.d.ts +65 -0
- package/esm/models/observabilityposthogdestination.js +46 -0
- package/esm/models/observabilityrampdestination.d.ts +68 -0
- package/esm/models/observabilityrampdestination.js +46 -0
- package/esm/models/observabilitys3destination.d.ts +77 -0
- package/esm/models/observabilitys3destination.js +52 -0
- package/esm/models/observabilitysentrydestination.d.ts +65 -0
- package/esm/models/observabilitysentrydestination.js +46 -0
- package/esm/models/observabilitysnowflakedestination.d.ts +69 -0
- package/esm/models/observabilitysnowflakedestination.js +50 -0
- package/esm/models/observabilityweavedestination.d.ts +67 -0
- package/esm/models/observabilityweavedestination.js +48 -0
- package/esm/models/observabilitywebhookdestination.d.ts +70 -0
- package/esm/models/observabilitywebhookdestination.js +54 -0
- package/esm/models/openairesponsecustomtoolcall.d.ts +25 -0
- package/esm/models/openairesponsecustomtoolcall.js +29 -0
- package/esm/models/openairesponsecustomtoolcalloutput.d.ts +38 -0
- package/esm/models/openairesponsecustomtoolcalloutput.js +59 -0
- package/esm/models/openairesponsestoolchoiceunion.d.ts +44 -2
- package/esm/models/openairesponsestoolchoiceunion.js +46 -0
- package/esm/models/operations/createauthkeyscode.d.ts +6 -1
- package/esm/models/operations/createauthkeyscode.js +2 -0
- package/esm/models/operations/createbyokkey.d.ts +56 -0
- package/esm/models/operations/createbyokkey.js +23 -0
- package/esm/models/operations/createembeddings.d.ts +8 -4
- package/esm/models/operations/createembeddings.js +8 -0
- package/esm/models/operations/createobservabilitydestination.d.ts +56 -0
- package/esm/models/operations/createobservabilitydestination.js +23 -0
- package/esm/models/operations/createpresetschatcompletions.d.ts +61 -0
- package/esm/models/operations/createpresetschatcompletions.js +24 -0
- package/esm/models/operations/createpresetsmessages.d.ts +61 -0
- package/esm/models/operations/createpresetsmessages.js +24 -0
- package/esm/models/operations/createpresetsresponses.d.ts +61 -0
- package/esm/models/operations/createpresetsresponses.js +24 -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/deletebyokkey.d.ts +58 -0
- package/esm/models/operations/deletebyokkey.js +21 -0
- package/esm/models/operations/deletefile.d.ts +60 -0
- package/esm/models/operations/deletefile.js +24 -0
- package/esm/models/operations/deleteobservabilitydestination.d.ts +58 -0
- package/esm/models/operations/deleteobservabilitydestination.js +21 -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/getbenchmarksartificialanalysis.d.ts +58 -0
- package/esm/models/operations/getbenchmarksartificialanalysis.js +22 -0
- package/esm/models/operations/getbenchmarksdesignarena.d.ts +83 -0
- package/esm/models/operations/getbenchmarksdesignarena.js +36 -0
- package/esm/models/operations/getbyokkey.d.ts +58 -0
- package/esm/models/operations/getbyokkey.js +21 -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 +121 -5
- package/esm/models/operations/getmodels.js +59 -4
- package/esm/models/operations/getobservabilitydestination.d.ts +58 -0
- package/esm/models/operations/getobservabilitydestination.js +21 -0
- 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/getrankingsdaily.d.ts +63 -0
- package/esm/models/operations/getrankingsdaily.js +24 -0
- package/esm/models/operations/index.d.ts +29 -0
- package/esm/models/operations/index.js +29 -0
- package/esm/models/operations/listbyokkeys.d.ts +177 -0
- package/esm/models/operations/listbyokkeys.js +130 -0
- package/esm/models/operations/listfiles.d.ts +77 -0
- package/esm/models/operations/listfiles.js +37 -0
- package/esm/models/operations/listobservabilitydestinations.d.ts +77 -0
- package/esm/models/operations/listobservabilitydestinations.js +37 -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/queryanalytics.d.ts +195 -0
- package/esm/models/operations/queryanalytics.js +129 -0
- package/esm/models/operations/sendchatcompletionrequest.d.ts +3 -3
- package/esm/models/operations/sendchatcompletionrequest.js +2 -3
- package/esm/models/operations/updatebyokkey.d.ts +61 -0
- package/esm/models/operations/updatebyokkey.js +24 -0
- package/esm/models/operations/updateobservabilitydestination.d.ts +61 -0
- package/esm/models/operations/updateobservabilitydestination.js +24 -0
- package/esm/models/operations/uploadfile.d.ts +82 -0
- package/esm/models/operations/uploadfile.js +45 -0
- package/esm/models/outputadvisorservertoolitem.d.ts +59 -0
- package/esm/models/outputadvisorservertoolitem.js +52 -0
- package/esm/models/outputapplypatchcallitem.d.ts +25 -0
- package/esm/models/outputapplypatchcallitem.js +25 -0
- package/esm/models/outputapplypatchservertoolitem.d.ts +9 -5
- package/esm/models/outputapplypatchservertoolitem.js +14 -4
- package/esm/models/outputcustomtoolcallitem.d.ts +42 -0
- package/esm/models/outputcustomtoolcallitem.js +47 -0
- package/esm/models/outputfusionservertoolitem.d.ts +101 -0
- package/esm/models/outputfusionservertoolitem.js +98 -0
- package/esm/models/outputitems.d.ts +18 -3
- package/esm/models/outputitems.js +14 -0
- 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/outputwebsearchservertoolitem.d.ts +8 -8
- package/esm/models/outputwebsearchservertoolitem.js +8 -9
- package/esm/models/pipelinestage.d.ts +1 -0
- package/esm/models/pipelinestage.js +1 -0
- package/esm/models/preset.d.ts +27 -0
- package/esm/models/preset.js +35 -0
- package/esm/models/presetdesignatedversion.d.ts +22 -0
- package/esm/models/presetdesignatedversion.js +30 -0
- package/esm/models/presetstatus.d.ts +17 -0
- package/esm/models/presetstatus.js +16 -0
- package/esm/models/presetwithdesignatedversion.d.ts +32 -0
- package/esm/models/presetwithdesignatedversion.js +38 -0
- 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 +30 -0
- package/esm/models/provideroptions.js +5 -0
- package/esm/models/providerresponse.d.ts +6 -1
- package/esm/models/providerresponse.js +7 -2
- package/esm/models/rankingsdailyitem.d.ts +21 -0
- package/esm/models/rankingsdailyitem.js +22 -0
- package/esm/models/rankingsdailymeta.d.ts +38 -0
- package/esm/models/rankingsdailymeta.js +32 -0
- package/esm/models/rankingsdailyresponse.d.ts +16 -0
- package/esm/models/rankingsdailyresponse.js +17 -0
- package/esm/models/responsesrequest.d.ts +61 -17
- package/esm/models/responsesrequest.js +31 -0
- package/esm/models/routingstrategy.d.ts +1 -0
- package/esm/models/routingstrategy.js +1 -0
- package/esm/models/searchqualitylevel.d.ts +2 -2
- package/esm/models/searchqualitylevel.js +1 -1
- package/esm/models/shellcallitem.d.ts +54 -0
- package/esm/models/shellcallitem.js +50 -0
- package/esm/models/shellcalloutputitem.d.ts +58 -0
- package/esm/models/shellcalloutputitem.js +55 -0
- 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/stopservertoolswhencondition.d.ts +16 -0
- package/esm/models/stopservertoolswhencondition.js +22 -0
- package/esm/models/stopservertoolswhenfinishreasonis.d.ts +17 -0
- package/esm/models/stopservertoolswhenfinishreasonis.js +14 -0
- package/esm/models/stopservertoolswhenhastoolcall.d.ts +17 -0
- package/esm/models/stopservertoolswhenhastoolcall.js +19 -0
- package/esm/models/stopservertoolswhenmaxcost.d.ts +17 -0
- package/esm/models/stopservertoolswhenmaxcost.js +19 -0
- package/esm/models/stopservertoolswhenmaxtokensused.d.ts +17 -0
- package/esm/models/stopservertoolswhenmaxtokensused.js +19 -0
- package/esm/models/stopservertoolswhenstepcountis.d.ts +17 -0
- package/esm/models/stopservertoolswhenstepcountis.js +19 -0
- package/esm/models/streamevents.d.ts +14 -1
- package/esm/models/streamevents.js +26 -0
- package/esm/models/subagentnestedtool.d.ts +25 -0
- package/esm/models/subagentnestedtool.js +23 -0
- package/esm/models/subagentreasoning.d.ts +41 -0
- package/esm/models/subagentreasoning.js +33 -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/updatebyokkeyrequest.d.ts +40 -0
- package/esm/models/updatebyokkeyrequest.js +25 -0
- package/esm/models/updatebyokkeyresponse.d.ts +11 -0
- package/esm/models/updatebyokkeyresponse.js +15 -0
- package/esm/models/updateguardrailrequest.d.ts +27 -5
- package/esm/models/updateguardrailrequest.js +10 -2
- package/esm/models/updateobservabilitydestinationrequest.d.ts +47 -0
- package/esm/models/updateobservabilitydestinationrequest.js +29 -0
- package/esm/models/updateobservabilitydestinationresponse.d.ts +11 -0
- package/esm/models/updateobservabilitydestinationresponse.js +15 -0
- package/esm/models/updateworkspacerequest.d.ts +1 -1
- package/esm/models/urlcitation.d.ts +2 -0
- package/esm/models/urlcitation.js +2 -0
- package/esm/models/videogenerationrequest.d.ts +36 -4
- package/esm/models/videogenerationrequest.js +9 -2
- package/esm/models/videomodel.d.ts +10 -0
- package/esm/models/videomodel.js +10 -0
- package/esm/models/webfetchengineenum.d.ts +4 -3
- package/esm/models/webfetchengineenum.js +3 -2
- package/esm/models/webfetchplugin.d.ts +32 -0
- package/esm/models/webfetchplugin.js +25 -0
- package/esm/models/webfetchservertoolconfig.d.ts +1 -1
- package/esm/models/websearchconfig.d.ts +11 -6
- 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 +5 -4
- package/esm/models/websearchengineenum.js +4 -3
- package/esm/models/websearchservertool.d.ts +2 -2
- package/esm/models/websearchservertoolconfig.d.ts +11 -6
- package/esm/models/websearchservertoolconfig.js +2 -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/byok.d.ts +44 -0
- package/esm/sdk/byok.js +60 -0
- package/esm/sdk/datasets.d.ts +77 -0
- package/esm/sdk/datasets.js +90 -0
- package/esm/sdk/files.d.ts +44 -0
- package/esm/sdk/files.js +60 -0
- package/esm/sdk/models.d.ts +7 -0
- package/esm/sdk/models.js +10 -0
- package/esm/sdk/observability.d.ts +44 -0
- package/esm/sdk/observability.js +60 -0
- package/esm/sdk/presets.d.ts +60 -0
- package/esm/sdk/presets.js +80 -0
- package/esm/sdk/sdk.d.ts +17 -2
- package/esm/sdk/sdk.js +23 -3
- package/jsr.json +1 -1
- package/package.json +11 -7
- package/tsconfig.json +0 -2
|
@@ -5,16 +5,20 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
7
|
import { discriminatedUnion } from "../types/discriminatedUnion.js";
|
|
8
|
+
import { OutputAdvisorServerToolItem$inboundSchema, } from "./outputadvisorservertoolitem.js";
|
|
9
|
+
import { OutputApplyPatchCallItem$inboundSchema, } from "./outputapplypatchcallitem.js";
|
|
8
10
|
import { OutputApplyPatchServerToolItem$inboundSchema, } from "./outputapplypatchservertoolitem.js";
|
|
9
11
|
import { OutputBashServerToolItem$inboundSchema, } from "./outputbashservertoolitem.js";
|
|
10
12
|
import { OutputBrowserUseServerToolItem$inboundSchema, } from "./outputbrowseruseservertoolitem.js";
|
|
11
13
|
import { OutputCodeInterpreterCallItem$inboundSchema, } from "./outputcodeinterpretercallitem.js";
|
|
12
14
|
import { OutputCodeInterpreterServerToolItem$inboundSchema, } from "./outputcodeinterpreterservertoolitem.js";
|
|
13
15
|
import { OutputComputerCallItem$inboundSchema, } from "./outputcomputercallitem.js";
|
|
16
|
+
import { OutputCustomToolCallItem$inboundSchema, } from "./outputcustomtoolcallitem.js";
|
|
14
17
|
import { OutputDatetimeItem$inboundSchema, } from "./outputdatetimeitem.js";
|
|
15
18
|
import { OutputFileSearchCallItem$inboundSchema, } from "./outputfilesearchcallitem.js";
|
|
16
19
|
import { OutputFileSearchServerToolItem$inboundSchema, } from "./outputfilesearchservertoolitem.js";
|
|
17
20
|
import { OutputFunctionCallItem$inboundSchema, } from "./outputfunctioncallitem.js";
|
|
21
|
+
import { OutputFusionServerToolItem$inboundSchema, } from "./outputfusionservertoolitem.js";
|
|
18
22
|
import { OutputImageGenerationCallItem$inboundSchema, } from "./outputimagegenerationcallitem.js";
|
|
19
23
|
import { OutputImageGenerationServerToolItem$inboundSchema, } from "./outputimagegenerationservertoolitem.js";
|
|
20
24
|
import { OutputMcpServerToolItem$inboundSchema, } from "./outputmcpservertoolitem.js";
|
|
@@ -22,6 +26,9 @@ import { OutputMemoryServerToolItem$inboundSchema, } from "./outputmemoryservert
|
|
|
22
26
|
import { OutputMessageItem$inboundSchema, } from "./outputmessageitem.js";
|
|
23
27
|
import { OutputReasoningItem$inboundSchema, } from "./outputreasoningitem.js";
|
|
24
28
|
import { OutputSearchModelsServerToolItem$inboundSchema, } from "./outputsearchmodelsservertoolitem.js";
|
|
29
|
+
import { OutputShellCallItem$inboundSchema, } from "./outputshellcallitem.js";
|
|
30
|
+
import { OutputShellCallOutputItem$inboundSchema, } from "./outputshellcalloutputitem.js";
|
|
31
|
+
import { OutputSubagentServerToolItem$inboundSchema, } from "./outputsubagentservertoolitem.js";
|
|
25
32
|
import { OutputTextEditorServerToolItem$inboundSchema, } from "./outputtexteditorservertoolitem.js";
|
|
26
33
|
import { OutputToolSearchServerToolItem$inboundSchema, } from "./outputtoolsearchservertoolitem.js";
|
|
27
34
|
import { OutputWebFetchServerToolItem$inboundSchema, } from "./outputwebfetchservertoolitem.js";
|
|
@@ -29,12 +36,15 @@ import { OutputWebSearchCallItem$inboundSchema, } from "./outputwebsearchcallite
|
|
|
29
36
|
import { OutputWebSearchServerToolItem$inboundSchema, } from "./outputwebsearchservertoolitem.js";
|
|
30
37
|
/** @internal */
|
|
31
38
|
export const OutputItems$inboundSchema = discriminatedUnion("type", {
|
|
39
|
+
apply_patch_call: OutputApplyPatchCallItem$inboundSchema,
|
|
32
40
|
code_interpreter_call: OutputCodeInterpreterCallItem$inboundSchema.and(z.object({ type: z.literal("code_interpreter_call") })),
|
|
33
41
|
computer_call: OutputComputerCallItem$inboundSchema.and(z.object({ type: z.literal("computer_call") })),
|
|
42
|
+
custom_tool_call: OutputCustomToolCallItem$inboundSchema.and(z.object({ type: z.literal("custom_tool_call") })),
|
|
34
43
|
file_search_call: OutputFileSearchCallItem$inboundSchema.and(z.object({ type: z.literal("file_search_call") })),
|
|
35
44
|
function_call: OutputFunctionCallItem$inboundSchema.and(z.object({ type: z.literal("function_call") })),
|
|
36
45
|
image_generation_call: OutputImageGenerationCallItem$inboundSchema.and(z.object({ type: z.literal("image_generation_call") })),
|
|
37
46
|
message: OutputMessageItem$inboundSchema,
|
|
47
|
+
["openrouter:advisor"]: OutputAdvisorServerToolItem$inboundSchema.and(z.object({ type: z.literal("openrouter:advisor") })),
|
|
38
48
|
["openrouter:apply_patch"]: OutputApplyPatchServerToolItem$inboundSchema
|
|
39
49
|
.and(z.object({ type: z.literal("openrouter:apply_patch") })),
|
|
40
50
|
["openrouter:bash"]: OutputBashServerToolItem$inboundSchema.and(z.object({ type: z.literal("openrouter:bash") })),
|
|
@@ -45,9 +55,11 @@ export const OutputItems$inboundSchema = discriminatedUnion("type", {
|
|
|
45
55
|
["openrouter:experimental__search_models"]: OutputSearchModelsServerToolItem$inboundSchema.and(z.object({ type: z.literal("openrouter:experimental__search_models") })),
|
|
46
56
|
["openrouter:file_search"]: OutputFileSearchServerToolItem$inboundSchema
|
|
47
57
|
.and(z.object({ type: z.literal("openrouter:file_search") })),
|
|
58
|
+
["openrouter:fusion"]: OutputFusionServerToolItem$inboundSchema.and(z.object({ type: z.literal("openrouter:fusion") })),
|
|
48
59
|
["openrouter:image_generation"]: OutputImageGenerationServerToolItem$inboundSchema.and(z.object({ type: z.literal("openrouter:image_generation") })),
|
|
49
60
|
["openrouter:mcp"]: OutputMcpServerToolItem$inboundSchema.and(z.object({ type: z.literal("openrouter:mcp") })),
|
|
50
61
|
["openrouter:memory"]: OutputMemoryServerToolItem$inboundSchema.and(z.object({ type: z.literal("openrouter:memory") })),
|
|
62
|
+
["openrouter:subagent"]: OutputSubagentServerToolItem$inboundSchema.and(z.object({ type: z.literal("openrouter:subagent") })),
|
|
51
63
|
["openrouter:text_editor"]: OutputTextEditorServerToolItem$inboundSchema
|
|
52
64
|
.and(z.object({ type: z.literal("openrouter:text_editor") })),
|
|
53
65
|
["openrouter:tool_search"]: OutputToolSearchServerToolItem$inboundSchema
|
|
@@ -55,6 +67,8 @@ export const OutputItems$inboundSchema = discriminatedUnion("type", {
|
|
|
55
67
|
["openrouter:web_fetch"]: OutputWebFetchServerToolItem$inboundSchema.and(z.object({ type: z.literal("openrouter:web_fetch") })),
|
|
56
68
|
["openrouter:web_search"]: OutputWebSearchServerToolItem$inboundSchema.and(z.object({ type: z.literal("openrouter:web_search") })),
|
|
57
69
|
reasoning: OutputReasoningItem$inboundSchema,
|
|
70
|
+
shell_call: OutputShellCallItem$inboundSchema,
|
|
71
|
+
shell_call_output: OutputShellCallOutputItem$inboundSchema,
|
|
58
72
|
web_search_call: OutputWebSearchCallItem$inboundSchema.and(z.object({ type: z.literal("web_search_call") })),
|
|
59
73
|
});
|
|
60
74
|
export function outputItemsFromJSON(jsonString) {
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { ShellCallStatus } from "./shellcallstatus.js";
|
|
5
|
+
export type OutputShellCallItemAction = {
|
|
6
|
+
commands: Array<string>;
|
|
7
|
+
maxOutputLength: number | null;
|
|
8
|
+
timeoutMs: number | null;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A native `shell_call` output item matching OpenAI's Responses API shape. Emitted for the sandbox-backed `shell` tool.
|
|
12
|
+
*/
|
|
13
|
+
export type OutputShellCallItem = {
|
|
14
|
+
action?: OutputShellCallItemAction | undefined;
|
|
15
|
+
callId: string;
|
|
16
|
+
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* Status of a shell call or its output.
|
|
19
|
+
*/
|
|
20
|
+
status: ShellCallStatus;
|
|
21
|
+
type: "shell_call";
|
|
22
|
+
};
|
|
23
|
+
/** @internal */
|
|
24
|
+
export declare const OutputShellCallItemAction$inboundSchema: z.ZodType<OutputShellCallItemAction, unknown>;
|
|
25
|
+
export declare function outputShellCallItemActionFromJSON(jsonString: string): SafeParseResult<OutputShellCallItemAction, SDKValidationError>;
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const OutputShellCallItem$inboundSchema: z.ZodType<OutputShellCallItem, unknown>;
|
|
28
|
+
export declare function outputShellCallItemFromJSON(jsonString: string): SafeParseResult<OutputShellCallItem, SDKValidationError>;
|
|
29
|
+
//# sourceMappingURL=outputshellcallitem.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d8b35b2daab6
|
|
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 { ShellCallStatus$inboundSchema, } from "./shellcallstatus.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const OutputShellCallItemAction$inboundSchema = z.object({
|
|
11
|
+
commands: z.array(z.string()),
|
|
12
|
+
max_output_length: z.nullable(z.int()),
|
|
13
|
+
timeout_ms: z.nullable(z.int()),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
"max_output_length": "maxOutputLength",
|
|
17
|
+
"timeout_ms": "timeoutMs",
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
export function outputShellCallItemActionFromJSON(jsonString) {
|
|
21
|
+
return safeParse(jsonString, (x) => OutputShellCallItemAction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputShellCallItemAction' from JSON`);
|
|
22
|
+
}
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const OutputShellCallItem$inboundSchema = z.object({
|
|
25
|
+
action: z.lazy(() => OutputShellCallItemAction$inboundSchema).optional(),
|
|
26
|
+
call_id: z.string(),
|
|
27
|
+
id: z.string(),
|
|
28
|
+
status: ShellCallStatus$inboundSchema,
|
|
29
|
+
type: z.literal("shell_call"),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"call_id": "callId",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
export function outputShellCallItemFromJSON(jsonString) {
|
|
36
|
+
return safeParse(jsonString, (x) => OutputShellCallItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputShellCallItem' from JSON`);
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=outputshellcallitem.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import * as discriminatedUnionTypes from "../types/discriminatedUnion.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
import { ShellCallStatus } from "./shellcallstatus.js";
|
|
6
|
+
export type OutcomeTimeout = {
|
|
7
|
+
type: "timeout";
|
|
8
|
+
};
|
|
9
|
+
export type OutcomeExit = {
|
|
10
|
+
exitCode: number;
|
|
11
|
+
type: "exit";
|
|
12
|
+
};
|
|
13
|
+
export type Outcome = OutcomeExit | OutcomeTimeout | discriminatedUnionTypes.Unknown<"type">;
|
|
14
|
+
export type OutputShellCallOutputItemOutput = {
|
|
15
|
+
outcome: OutcomeExit | OutcomeTimeout | discriminatedUnionTypes.Unknown<"type">;
|
|
16
|
+
stderr: string;
|
|
17
|
+
stdout: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* A native `shell_call_output` item matching OpenAI's Responses API shape. Carries per-command stdout, stderr, and the exit/timeout outcome.
|
|
21
|
+
*/
|
|
22
|
+
export type OutputShellCallOutputItem = {
|
|
23
|
+
callId: string;
|
|
24
|
+
id: string;
|
|
25
|
+
maxOutputLength?: number | null | undefined;
|
|
26
|
+
output: Array<OutputShellCallOutputItemOutput>;
|
|
27
|
+
/**
|
|
28
|
+
* Status of a shell call or its output.
|
|
29
|
+
*/
|
|
30
|
+
status: ShellCallStatus;
|
|
31
|
+
type: "shell_call_output";
|
|
32
|
+
};
|
|
33
|
+
/** @internal */
|
|
34
|
+
export declare const OutcomeTimeout$inboundSchema: z.ZodType<OutcomeTimeout, unknown>;
|
|
35
|
+
export declare function outcomeTimeoutFromJSON(jsonString: string): SafeParseResult<OutcomeTimeout, SDKValidationError>;
|
|
36
|
+
/** @internal */
|
|
37
|
+
export declare const OutcomeExit$inboundSchema: z.ZodType<OutcomeExit, unknown>;
|
|
38
|
+
export declare function outcomeExitFromJSON(jsonString: string): SafeParseResult<OutcomeExit, SDKValidationError>;
|
|
39
|
+
/** @internal */
|
|
40
|
+
export declare const Outcome$inboundSchema: z.ZodType<Outcome, unknown>;
|
|
41
|
+
export declare function outcomeFromJSON(jsonString: string): SafeParseResult<Outcome, SDKValidationError>;
|
|
42
|
+
/** @internal */
|
|
43
|
+
export declare const OutputShellCallOutputItemOutput$inboundSchema: z.ZodType<OutputShellCallOutputItemOutput, unknown>;
|
|
44
|
+
export declare function outputShellCallOutputItemOutputFromJSON(jsonString: string): SafeParseResult<OutputShellCallOutputItemOutput, SDKValidationError>;
|
|
45
|
+
/** @internal */
|
|
46
|
+
export declare const OutputShellCallOutputItem$inboundSchema: z.ZodType<OutputShellCallOutputItem, unknown>;
|
|
47
|
+
export declare function outputShellCallOutputItemFromJSON(jsonString: string): SafeParseResult<OutputShellCallOutputItem, SDKValidationError>;
|
|
48
|
+
//# sourceMappingURL=outputshellcalloutputitem.d.ts.map
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: a933ffbb5346
|
|
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 { discriminatedUnion } from "../types/discriminatedUnion.js";
|
|
9
|
+
import { ShellCallStatus$inboundSchema, } from "./shellcallstatus.js";
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const OutcomeTimeout$inboundSchema = z.object({
|
|
12
|
+
type: z.literal("timeout"),
|
|
13
|
+
});
|
|
14
|
+
export function outcomeTimeoutFromJSON(jsonString) {
|
|
15
|
+
return safeParse(jsonString, (x) => OutcomeTimeout$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutcomeTimeout' from JSON`);
|
|
16
|
+
}
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const OutcomeExit$inboundSchema = z
|
|
19
|
+
.object({
|
|
20
|
+
exit_code: z.int(),
|
|
21
|
+
type: z.literal("exit"),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"exit_code": "exitCode",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
export function outcomeExitFromJSON(jsonString) {
|
|
28
|
+
return safeParse(jsonString, (x) => OutcomeExit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutcomeExit' from JSON`);
|
|
29
|
+
}
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const Outcome$inboundSchema = discriminatedUnion("type", {
|
|
32
|
+
exit: z.lazy(() => OutcomeExit$inboundSchema),
|
|
33
|
+
timeout: z.lazy(() => OutcomeTimeout$inboundSchema),
|
|
34
|
+
});
|
|
35
|
+
export function outcomeFromJSON(jsonString) {
|
|
36
|
+
return safeParse(jsonString, (x) => Outcome$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Outcome' from JSON`);
|
|
37
|
+
}
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const OutputShellCallOutputItemOutput$inboundSchema = z.object({
|
|
40
|
+
outcome: discriminatedUnion("type", {
|
|
41
|
+
exit: z.lazy(() => OutcomeExit$inboundSchema),
|
|
42
|
+
timeout: z.lazy(() => OutcomeTimeout$inboundSchema),
|
|
43
|
+
}),
|
|
44
|
+
stderr: z.string(),
|
|
45
|
+
stdout: z.string(),
|
|
46
|
+
});
|
|
47
|
+
export function outputShellCallOutputItemOutputFromJSON(jsonString) {
|
|
48
|
+
return safeParse(jsonString, (x) => OutputShellCallOutputItemOutput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputShellCallOutputItemOutput' from JSON`);
|
|
49
|
+
}
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const OutputShellCallOutputItem$inboundSchema = z.object({
|
|
52
|
+
call_id: z.string(),
|
|
53
|
+
id: z.string(),
|
|
54
|
+
max_output_length: z.nullable(z.int()).optional(),
|
|
55
|
+
output: z.array(z.lazy(() => OutputShellCallOutputItemOutput$inboundSchema)),
|
|
56
|
+
status: ShellCallStatus$inboundSchema,
|
|
57
|
+
type: z.literal("shell_call_output"),
|
|
58
|
+
}).transform((v) => {
|
|
59
|
+
return remap$(v, {
|
|
60
|
+
"call_id": "callId",
|
|
61
|
+
"max_output_length": "maxOutputLength",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
export function outputShellCallOutputItemFromJSON(jsonString) {
|
|
65
|
+
return safeParse(jsonString, (x) => OutputShellCallOutputItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputShellCallOutputItem' from JSON`);
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=outputshellcalloutputitem.js.map
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
import { ToolCallStatus } from "./toolcallstatus.js";
|
|
6
|
+
export declare const OutputSubagentServerToolItemType: {
|
|
7
|
+
readonly OpenrouterSubagent: "openrouter:subagent";
|
|
8
|
+
};
|
|
9
|
+
export type OutputSubagentServerToolItemType = ClosedEnum<typeof OutputSubagentServerToolItemType>;
|
|
10
|
+
/**
|
|
11
|
+
* An openrouter:subagent server tool output item
|
|
12
|
+
*/
|
|
13
|
+
export type OutputSubagentServerToolItem = {
|
|
14
|
+
/**
|
|
15
|
+
* Error message when the subagent task did not produce an outcome.
|
|
16
|
+
*/
|
|
17
|
+
error?: string | undefined;
|
|
18
|
+
id?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Slug of the worker model that executed the task.
|
|
21
|
+
*/
|
|
22
|
+
model?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* The worker model's result (the outcome text returned to the delegating model).
|
|
25
|
+
*/
|
|
26
|
+
outcome?: string | undefined;
|
|
27
|
+
status: ToolCallStatus;
|
|
28
|
+
/**
|
|
29
|
+
* The task description the delegating model sent to the worker.
|
|
30
|
+
*/
|
|
31
|
+
taskDescription?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The short task identifier the delegating model supplied.
|
|
34
|
+
*/
|
|
35
|
+
taskName?: string | undefined;
|
|
36
|
+
type: OutputSubagentServerToolItemType;
|
|
37
|
+
};
|
|
38
|
+
/** @internal */
|
|
39
|
+
export declare const OutputSubagentServerToolItemType$inboundSchema: z.ZodEnum<typeof OutputSubagentServerToolItemType>;
|
|
40
|
+
/** @internal */
|
|
41
|
+
export declare const OutputSubagentServerToolItemType$outboundSchema: z.ZodEnum<typeof OutputSubagentServerToolItemType>;
|
|
42
|
+
/** @internal */
|
|
43
|
+
export declare const OutputSubagentServerToolItem$inboundSchema: z.ZodType<OutputSubagentServerToolItem, unknown>;
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type OutputSubagentServerToolItem$Outbound = {
|
|
46
|
+
error?: string | undefined;
|
|
47
|
+
id?: string | undefined;
|
|
48
|
+
model?: string | undefined;
|
|
49
|
+
outcome?: string | undefined;
|
|
50
|
+
status: string;
|
|
51
|
+
task_description?: string | undefined;
|
|
52
|
+
task_name?: string | undefined;
|
|
53
|
+
type: string;
|
|
54
|
+
};
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare const OutputSubagentServerToolItem$outboundSchema: z.ZodType<OutputSubagentServerToolItem$Outbound, OutputSubagentServerToolItem>;
|
|
57
|
+
export declare function outputSubagentServerToolItemToJSON(outputSubagentServerToolItem: OutputSubagentServerToolItem): string;
|
|
58
|
+
export declare function outputSubagentServerToolItemFromJSON(jsonString: string): SafeParseResult<OutputSubagentServerToolItem, SDKValidationError>;
|
|
59
|
+
//# sourceMappingURL=outputsubagentservertoolitem.d.ts.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 9161bc044a98
|
|
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 { ToolCallStatus$inboundSchema, ToolCallStatus$outboundSchema, } from "./toolcallstatus.js";
|
|
9
|
+
export const OutputSubagentServerToolItemType = {
|
|
10
|
+
OpenrouterSubagent: "openrouter:subagent",
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const OutputSubagentServerToolItemType$inboundSchema = z.enum(OutputSubagentServerToolItemType);
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const OutputSubagentServerToolItemType$outboundSchema = OutputSubagentServerToolItemType$inboundSchema;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const OutputSubagentServerToolItem$inboundSchema = z.object({
|
|
18
|
+
error: z.string().optional(),
|
|
19
|
+
id: z.string().optional(),
|
|
20
|
+
model: z.string().optional(),
|
|
21
|
+
outcome: z.string().optional(),
|
|
22
|
+
status: ToolCallStatus$inboundSchema,
|
|
23
|
+
task_description: z.string().optional(),
|
|
24
|
+
task_name: z.string().optional(),
|
|
25
|
+
type: OutputSubagentServerToolItemType$inboundSchema,
|
|
26
|
+
}).transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
"task_description": "taskDescription",
|
|
29
|
+
"task_name": "taskName",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const OutputSubagentServerToolItem$outboundSchema = z.object({
|
|
34
|
+
error: z.string().optional(),
|
|
35
|
+
id: z.string().optional(),
|
|
36
|
+
model: z.string().optional(),
|
|
37
|
+
outcome: z.string().optional(),
|
|
38
|
+
status: ToolCallStatus$outboundSchema,
|
|
39
|
+
taskDescription: z.string().optional(),
|
|
40
|
+
taskName: z.string().optional(),
|
|
41
|
+
type: OutputSubagentServerToolItemType$outboundSchema,
|
|
42
|
+
}).transform((v) => {
|
|
43
|
+
return remap$(v, {
|
|
44
|
+
taskDescription: "task_description",
|
|
45
|
+
taskName: "task_name",
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
export function outputSubagentServerToolItemToJSON(outputSubagentServerToolItem) {
|
|
49
|
+
return JSON.stringify(OutputSubagentServerToolItem$outboundSchema.parse(outputSubagentServerToolItem));
|
|
50
|
+
}
|
|
51
|
+
export function outputSubagentServerToolItemFromJSON(jsonString) {
|
|
52
|
+
return safeParse(jsonString, (x) => OutputSubagentServerToolItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputSubagentServerToolItem' from JSON`);
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=outputsubagentservertoolitem.js.map
|
|
@@ -26,7 +26,7 @@ export declare const TypeWebSearchCall: {
|
|
|
26
26
|
};
|
|
27
27
|
export type TypeWebSearchCall = ClosedEnum<typeof TypeWebSearchCall>;
|
|
28
28
|
export type OutputWebSearchCallItem = {
|
|
29
|
-
action
|
|
29
|
+
action?: OutputWebSearchCallItemActionSearch | ActionOpenPage | ActionFindInPage | discriminatedUnionTypes.Unknown<"type"> | undefined;
|
|
30
30
|
id: string;
|
|
31
31
|
status: WebSearchStatus;
|
|
32
32
|
type: TypeWebSearchCall;
|
|
@@ -83,7 +83,7 @@ export declare const TypeWebSearchCall$outboundSchema: z.ZodEnum<typeof TypeWebS
|
|
|
83
83
|
export declare const OutputWebSearchCallItem$inboundSchema: z.ZodType<OutputWebSearchCallItem, unknown>;
|
|
84
84
|
/** @internal */
|
|
85
85
|
export type OutputWebSearchCallItem$Outbound = {
|
|
86
|
-
action
|
|
86
|
+
action?: OutputWebSearchCallItemActionSearch$Outbound | ActionOpenPage$Outbound | ActionFindInPage$Outbound | undefined;
|
|
87
87
|
id: string;
|
|
88
88
|
status: string;
|
|
89
89
|
type: string;
|
|
@@ -93,7 +93,7 @@ export const OutputWebSearchCallItem$inboundSchema = z.object({
|
|
|
93
93
|
search: z.lazy(() => OutputWebSearchCallItemActionSearch$inboundSchema),
|
|
94
94
|
open_page: z.lazy(() => ActionOpenPage$inboundSchema),
|
|
95
95
|
find_in_page: z.lazy(() => ActionFindInPage$inboundSchema),
|
|
96
|
-
}),
|
|
96
|
+
}).optional(),
|
|
97
97
|
id: z.string(),
|
|
98
98
|
status: WebSearchStatus$inboundSchema,
|
|
99
99
|
type: TypeWebSearchCall$inboundSchema,
|
|
@@ -104,7 +104,7 @@ export const OutputWebSearchCallItem$outboundSchema = z.object({
|
|
|
104
104
|
z.lazy(() => OutputWebSearchCallItemActionSearch$outboundSchema),
|
|
105
105
|
z.lazy(() => ActionOpenPage$outboundSchema),
|
|
106
106
|
z.lazy(() => ActionFindInPage$outboundSchema),
|
|
107
|
-
]),
|
|
107
|
+
]).optional(),
|
|
108
108
|
id: z.string(),
|
|
109
109
|
status: WebSearchStatus$outboundSchema,
|
|
110
110
|
type: TypeWebSearchCall$outboundSchema,
|
|
@@ -7,7 +7,7 @@ export declare const OutputWebSearchServerToolItemTypeURL: {
|
|
|
7
7
|
readonly Url: "url";
|
|
8
8
|
};
|
|
9
9
|
export type OutputWebSearchServerToolItemTypeURL = ClosedEnum<typeof OutputWebSearchServerToolItemTypeURL>;
|
|
10
|
-
export type
|
|
10
|
+
export type OutputWebSearchServerToolItemSource = {
|
|
11
11
|
type: OutputWebSearchServerToolItemTypeURL;
|
|
12
12
|
url: string;
|
|
13
13
|
};
|
|
@@ -20,7 +20,7 @@ export type OutputWebSearchServerToolItemTypeSearch = ClosedEnum<typeof OutputWe
|
|
|
20
20
|
*/
|
|
21
21
|
export type OutputWebSearchServerToolItemAction = {
|
|
22
22
|
query: string;
|
|
23
|
-
sources?: Array<
|
|
23
|
+
sources?: Array<OutputWebSearchServerToolItemSource> | undefined;
|
|
24
24
|
type: OutputWebSearchServerToolItemTypeSearch;
|
|
25
25
|
};
|
|
26
26
|
export declare const OutputWebSearchServerToolItemTypeOpenrouterWebSearch: {
|
|
@@ -44,16 +44,16 @@ export declare const OutputWebSearchServerToolItemTypeURL$inboundSchema: z.ZodEn
|
|
|
44
44
|
/** @internal */
|
|
45
45
|
export declare const OutputWebSearchServerToolItemTypeURL$outboundSchema: z.ZodEnum<typeof OutputWebSearchServerToolItemTypeURL>;
|
|
46
46
|
/** @internal */
|
|
47
|
-
export declare const
|
|
47
|
+
export declare const OutputWebSearchServerToolItemSource$inboundSchema: z.ZodType<OutputWebSearchServerToolItemSource, unknown>;
|
|
48
48
|
/** @internal */
|
|
49
|
-
export type
|
|
49
|
+
export type OutputWebSearchServerToolItemSource$Outbound = {
|
|
50
50
|
type: string;
|
|
51
51
|
url: string;
|
|
52
52
|
};
|
|
53
53
|
/** @internal */
|
|
54
|
-
export declare const
|
|
55
|
-
export declare function
|
|
56
|
-
export declare function
|
|
54
|
+
export declare const OutputWebSearchServerToolItemSource$outboundSchema: z.ZodType<OutputWebSearchServerToolItemSource$Outbound, OutputWebSearchServerToolItemSource>;
|
|
55
|
+
export declare function outputWebSearchServerToolItemSourceToJSON(outputWebSearchServerToolItemSource: OutputWebSearchServerToolItemSource): string;
|
|
56
|
+
export declare function outputWebSearchServerToolItemSourceFromJSON(jsonString: string): SafeParseResult<OutputWebSearchServerToolItemSource, SDKValidationError>;
|
|
57
57
|
/** @internal */
|
|
58
58
|
export declare const OutputWebSearchServerToolItemTypeSearch$inboundSchema: z.ZodEnum<typeof OutputWebSearchServerToolItemTypeSearch>;
|
|
59
59
|
/** @internal */
|
|
@@ -63,7 +63,7 @@ export declare const OutputWebSearchServerToolItemAction$inboundSchema: z.ZodTyp
|
|
|
63
63
|
/** @internal */
|
|
64
64
|
export type OutputWebSearchServerToolItemAction$Outbound = {
|
|
65
65
|
query: string;
|
|
66
|
-
sources?: Array<
|
|
66
|
+
sources?: Array<OutputWebSearchServerToolItemSource$Outbound> | undefined;
|
|
67
67
|
type: string;
|
|
68
68
|
};
|
|
69
69
|
/** @internal */
|
|
@@ -19,21 +19,20 @@ export const OutputWebSearchServerToolItemTypeURL$inboundSchema = z.enum(OutputW
|
|
|
19
19
|
/** @internal */
|
|
20
20
|
export const OutputWebSearchServerToolItemTypeURL$outboundSchema = OutputWebSearchServerToolItemTypeURL$inboundSchema;
|
|
21
21
|
/** @internal */
|
|
22
|
-
export const
|
|
22
|
+
export const OutputWebSearchServerToolItemSource$inboundSchema = z.object({
|
|
23
23
|
type: OutputWebSearchServerToolItemTypeURL$inboundSchema,
|
|
24
24
|
url: z.string(),
|
|
25
25
|
});
|
|
26
26
|
/** @internal */
|
|
27
|
-
export const
|
|
28
|
-
.object({
|
|
27
|
+
export const OutputWebSearchServerToolItemSource$outboundSchema = z.object({
|
|
29
28
|
type: OutputWebSearchServerToolItemTypeURL$outboundSchema,
|
|
30
29
|
url: z.string(),
|
|
31
30
|
});
|
|
32
|
-
export function
|
|
33
|
-
return JSON.stringify(
|
|
31
|
+
export function outputWebSearchServerToolItemSourceToJSON(outputWebSearchServerToolItemSource) {
|
|
32
|
+
return JSON.stringify(OutputWebSearchServerToolItemSource$outboundSchema.parse(outputWebSearchServerToolItemSource));
|
|
34
33
|
}
|
|
35
|
-
export function
|
|
36
|
-
return safeParse(jsonString, (x) =>
|
|
34
|
+
export function outputWebSearchServerToolItemSourceFromJSON(jsonString) {
|
|
35
|
+
return safeParse(jsonString, (x) => OutputWebSearchServerToolItemSource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputWebSearchServerToolItemSource' from JSON`);
|
|
37
36
|
}
|
|
38
37
|
/** @internal */
|
|
39
38
|
export const OutputWebSearchServerToolItemTypeSearch$inboundSchema = z.enum(OutputWebSearchServerToolItemTypeSearch);
|
|
@@ -42,13 +41,13 @@ export const OutputWebSearchServerToolItemTypeSearch$outboundSchema = OutputWebS
|
|
|
42
41
|
/** @internal */
|
|
43
42
|
export const OutputWebSearchServerToolItemAction$inboundSchema = z.object({
|
|
44
43
|
query: z.string(),
|
|
45
|
-
sources: z.array(z.lazy(() =>
|
|
44
|
+
sources: z.array(z.lazy(() => OutputWebSearchServerToolItemSource$inboundSchema)).optional(),
|
|
46
45
|
type: OutputWebSearchServerToolItemTypeSearch$inboundSchema,
|
|
47
46
|
});
|
|
48
47
|
/** @internal */
|
|
49
48
|
export const OutputWebSearchServerToolItemAction$outboundSchema = z.object({
|
|
50
49
|
query: z.string(),
|
|
51
|
-
sources: z.array(z.lazy(() =>
|
|
50
|
+
sources: z.array(z.lazy(() => OutputWebSearchServerToolItemSource$outboundSchema)).optional(),
|
|
52
51
|
type: OutputWebSearchServerToolItemTypeSearch$outboundSchema,
|
|
53
52
|
});
|
|
54
53
|
export function outputWebSearchServerToolItemActionToJSON(outputWebSearchServerToolItemAction) {
|
|
@@ -10,6 +10,7 @@ export type PipelineStage = {
|
|
|
10
10
|
guardrailId?: string | undefined;
|
|
11
11
|
guardrailScope?: string | undefined;
|
|
12
12
|
name: string;
|
|
13
|
+
summary?: string | undefined;
|
|
13
14
|
/**
|
|
14
15
|
* Categorical kind of a pipeline stage. Multiple plugins can share a type (e.g. all guardrail-level plugins emit `guardrail`); the `name` field disambiguates which plugin emitted it.
|
|
15
16
|
*/
|
|
@@ -14,6 +14,7 @@ export const PipelineStage$inboundSchema = z
|
|
|
14
14
|
guardrail_id: z.string().optional(),
|
|
15
15
|
guardrail_scope: z.string().optional(),
|
|
16
16
|
name: z.string(),
|
|
17
|
+
summary: z.string().optional(),
|
|
17
18
|
type: PipelineStageType$inboundSchema,
|
|
18
19
|
}).transform((v) => {
|
|
19
20
|
return remap$(v, {
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { PresetStatus } from "./presetstatus.js";
|
|
5
|
+
/**
|
|
6
|
+
* A preset without version details.
|
|
7
|
+
*/
|
|
8
|
+
export type Preset = {
|
|
9
|
+
createdAt: string;
|
|
10
|
+
creatorUserId: string | null;
|
|
11
|
+
description: string | null;
|
|
12
|
+
designatedVersionId: string | null;
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
slug: string;
|
|
16
|
+
/**
|
|
17
|
+
* The status of a preset.
|
|
18
|
+
*/
|
|
19
|
+
status: PresetStatus;
|
|
20
|
+
statusUpdatedAt: string | null;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
workspaceId: string | null;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const Preset$inboundSchema: z.ZodType<Preset, unknown>;
|
|
26
|
+
export declare function presetFromJSON(jsonString: string): SafeParseResult<Preset, SDKValidationError>;
|
|
27
|
+
//# sourceMappingURL=preset.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f9cbbbd64494
|
|
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 { PresetStatus$inboundSchema } from "./presetstatus.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const Preset$inboundSchema = z.object({
|
|
11
|
+
created_at: z.string(),
|
|
12
|
+
creator_user_id: z.nullable(z.string()),
|
|
13
|
+
description: z.nullable(z.string()),
|
|
14
|
+
designated_version_id: z.nullable(z.string()),
|
|
15
|
+
id: z.string(),
|
|
16
|
+
name: z.string(),
|
|
17
|
+
slug: z.string(),
|
|
18
|
+
status: PresetStatus$inboundSchema,
|
|
19
|
+
status_updated_at: z.nullable(z.string()),
|
|
20
|
+
updated_at: z.string(),
|
|
21
|
+
workspace_id: z.nullable(z.string()),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"created_at": "createdAt",
|
|
25
|
+
"creator_user_id": "creatorUserId",
|
|
26
|
+
"designated_version_id": "designatedVersionId",
|
|
27
|
+
"status_updated_at": "statusUpdatedAt",
|
|
28
|
+
"updated_at": "updatedAt",
|
|
29
|
+
"workspace_id": "workspaceId",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
export function presetFromJSON(jsonString) {
|
|
33
|
+
return safeParse(jsonString, (x) => Preset$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Preset' from JSON`);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=preset.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
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 specific version of a preset, containing config and optional system prompt.
|
|
6
|
+
*/
|
|
7
|
+
export type PresetDesignatedVersion = {
|
|
8
|
+
config: {
|
|
9
|
+
[k: string]: any | null;
|
|
10
|
+
};
|
|
11
|
+
createdAt: string;
|
|
12
|
+
creatorId: string;
|
|
13
|
+
id: string;
|
|
14
|
+
presetId: string;
|
|
15
|
+
systemPrompt: string | null;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
version: number;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const PresetDesignatedVersion$inboundSchema: z.ZodType<PresetDesignatedVersion, unknown>;
|
|
21
|
+
export declare function presetDesignatedVersionFromJSON(jsonString: string): SafeParseResult<PresetDesignatedVersion, SDKValidationError>;
|
|
22
|
+
//# sourceMappingURL=presetdesignatedversion.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 259a18622bbe
|
|
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 PresetDesignatedVersion$inboundSchema = z.object({
|
|
10
|
+
config: z.record(z.string(), z.nullable(z.any())),
|
|
11
|
+
created_at: z.string(),
|
|
12
|
+
creator_id: z.string(),
|
|
13
|
+
id: z.string(),
|
|
14
|
+
preset_id: z.string(),
|
|
15
|
+
system_prompt: z.nullable(z.string()),
|
|
16
|
+
updated_at: z.string(),
|
|
17
|
+
version: z.int(),
|
|
18
|
+
}).transform((v) => {
|
|
19
|
+
return remap$(v, {
|
|
20
|
+
"created_at": "createdAt",
|
|
21
|
+
"creator_id": "creatorId",
|
|
22
|
+
"preset_id": "presetId",
|
|
23
|
+
"system_prompt": "systemPrompt",
|
|
24
|
+
"updated_at": "updatedAt",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
export function presetDesignatedVersionFromJSON(jsonString) {
|
|
28
|
+
return safeParse(jsonString, (x) => PresetDesignatedVersion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PresetDesignatedVersion' from JSON`);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=presetdesignatedversion.js.map
|