@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
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
export declare const FileDeleteResponseType: {
|
|
6
|
+
readonly FileDeleted: "file_deleted";
|
|
7
|
+
};
|
|
8
|
+
export type FileDeleteResponseType = ClosedEnum<typeof FileDeleteResponseType>;
|
|
9
|
+
/**
|
|
10
|
+
* Confirmation that a file was deleted.
|
|
11
|
+
*/
|
|
12
|
+
export type FileDeleteResponse = {
|
|
13
|
+
id: string;
|
|
14
|
+
type: FileDeleteResponseType;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const FileDeleteResponseType$inboundSchema: z.ZodEnum<typeof FileDeleteResponseType>;
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const FileDeleteResponse$inboundSchema: z.ZodType<FileDeleteResponse, unknown>;
|
|
20
|
+
export declare function fileDeleteResponseFromJSON(jsonString: string): SafeParseResult<FileDeleteResponse, SDKValidationError>;
|
|
21
|
+
//# sourceMappingURL=filedeleteresponse.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 2464f2b51ee5
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
export const FileDeleteResponseType = {
|
|
8
|
+
FileDeleted: "file_deleted",
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const FileDeleteResponseType$inboundSchema = z.enum(FileDeleteResponseType);
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const FileDeleteResponse$inboundSchema = z.object({
|
|
14
|
+
id: z.string(),
|
|
15
|
+
type: FileDeleteResponseType$inboundSchema,
|
|
16
|
+
});
|
|
17
|
+
export function fileDeleteResponseFromJSON(jsonString) {
|
|
18
|
+
return safeParse(jsonString, (x) => FileDeleteResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileDeleteResponse' from JSON`);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=filedeleteresponse.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
import { FileMetadata } from "./filemetadata.js";
|
|
5
|
+
/**
|
|
6
|
+
* A page of files belonging to the requesting workspace.
|
|
7
|
+
*/
|
|
8
|
+
export type FileListResponse = {
|
|
9
|
+
/**
|
|
10
|
+
* Opaque cursor for the next page; null when there are no more results.
|
|
11
|
+
*/
|
|
12
|
+
cursor: string | null;
|
|
13
|
+
data: Array<FileMetadata>;
|
|
14
|
+
firstId: string | null;
|
|
15
|
+
hasMore: boolean;
|
|
16
|
+
lastId: string | null;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const FileListResponse$inboundSchema: z.ZodType<FileListResponse, unknown>;
|
|
20
|
+
export declare function fileListResponseFromJSON(jsonString: string): SafeParseResult<FileListResponse, SDKValidationError>;
|
|
21
|
+
//# sourceMappingURL=filelistresponse.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e4978ed568c7
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { FileMetadata$inboundSchema } from "./filemetadata.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const FileListResponse$inboundSchema = z.object({
|
|
11
|
+
cursor: z.nullable(z.string()),
|
|
12
|
+
data: z.array(FileMetadata$inboundSchema),
|
|
13
|
+
first_id: z.nullable(z.string()),
|
|
14
|
+
has_more: z.boolean(),
|
|
15
|
+
last_id: z.nullable(z.string()),
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
"first_id": "firstId",
|
|
19
|
+
"has_more": "hasMore",
|
|
20
|
+
"last_id": "lastId",
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
export function fileListResponseFromJSON(jsonString) {
|
|
24
|
+
return safeParse(jsonString, (x) => FileListResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileListResponse' from JSON`);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=filelistresponse.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
export declare const FileMetadataType: {
|
|
6
|
+
readonly File: "file";
|
|
7
|
+
};
|
|
8
|
+
export type FileMetadataType = ClosedEnum<typeof FileMetadataType>;
|
|
9
|
+
/**
|
|
10
|
+
* Metadata describing a stored file.
|
|
11
|
+
*/
|
|
12
|
+
export type FileMetadata = {
|
|
13
|
+
createdAt: string;
|
|
14
|
+
downloadable: boolean;
|
|
15
|
+
filename: string;
|
|
16
|
+
id: string;
|
|
17
|
+
mimeType: string;
|
|
18
|
+
sizeBytes: number;
|
|
19
|
+
type: FileMetadataType;
|
|
20
|
+
};
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const FileMetadataType$inboundSchema: z.ZodEnum<typeof FileMetadataType>;
|
|
23
|
+
/** @internal */
|
|
24
|
+
export declare const FileMetadata$inboundSchema: z.ZodType<FileMetadata, unknown>;
|
|
25
|
+
export declare function fileMetadataFromJSON(jsonString: string): SafeParseResult<FileMetadata, SDKValidationError>;
|
|
26
|
+
//# sourceMappingURL=filemetadata.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 7a5c3a86d7a2
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
export const FileMetadataType = {
|
|
9
|
+
File: "file",
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export const FileMetadataType$inboundSchema = z.enum(FileMetadataType);
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const FileMetadata$inboundSchema = z
|
|
15
|
+
.object({
|
|
16
|
+
created_at: z.string(),
|
|
17
|
+
downloadable: z.boolean(),
|
|
18
|
+
filename: z.string(),
|
|
19
|
+
id: z.string(),
|
|
20
|
+
mime_type: z.string(),
|
|
21
|
+
size_bytes: z.int(),
|
|
22
|
+
type: FileMetadataType$inboundSchema,
|
|
23
|
+
}).transform((v) => {
|
|
24
|
+
return remap$(v, {
|
|
25
|
+
"created_at": "createdAt",
|
|
26
|
+
"mime_type": "mimeType",
|
|
27
|
+
"size_bytes": "sizeBytes",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
export function fileMetadataFromJSON(jsonString) {
|
|
31
|
+
return safeParse(jsonString, (x) => FileMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileMetadata' from JSON`);
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=filemetadata.js.map
|
|
@@ -12,8 +12,8 @@ export declare const FiltersType: {
|
|
|
12
12
|
readonly Lte: "lte";
|
|
13
13
|
};
|
|
14
14
|
export type FiltersType = OpenEnum<typeof FiltersType>;
|
|
15
|
-
export type
|
|
16
|
-
export type
|
|
15
|
+
export type FileSearchServerToolValue1 = string | number;
|
|
16
|
+
export type FileSearchServerToolValue2 = string | number | boolean | Array<string | number>;
|
|
17
17
|
export type Filters = {
|
|
18
18
|
key: string;
|
|
19
19
|
type: FiltersType;
|
|
@@ -44,21 +44,21 @@ export declare const FiltersType$inboundSchema: z.ZodType<FiltersType, unknown>;
|
|
|
44
44
|
/** @internal */
|
|
45
45
|
export declare const FiltersType$outboundSchema: z.ZodType<string, FiltersType>;
|
|
46
46
|
/** @internal */
|
|
47
|
-
export declare const
|
|
47
|
+
export declare const FileSearchServerToolValue1$inboundSchema: z.ZodType<FileSearchServerToolValue1, unknown>;
|
|
48
48
|
/** @internal */
|
|
49
|
-
export type
|
|
49
|
+
export type FileSearchServerToolValue1$Outbound = string | number;
|
|
50
50
|
/** @internal */
|
|
51
|
-
export declare const
|
|
52
|
-
export declare function
|
|
53
|
-
export declare function
|
|
51
|
+
export declare const FileSearchServerToolValue1$outboundSchema: z.ZodType<FileSearchServerToolValue1$Outbound, FileSearchServerToolValue1>;
|
|
52
|
+
export declare function fileSearchServerToolValue1ToJSON(fileSearchServerToolValue1: FileSearchServerToolValue1): string;
|
|
53
|
+
export declare function fileSearchServerToolValue1FromJSON(jsonString: string): SafeParseResult<FileSearchServerToolValue1, SDKValidationError>;
|
|
54
54
|
/** @internal */
|
|
55
|
-
export declare const
|
|
55
|
+
export declare const FileSearchServerToolValue2$inboundSchema: z.ZodType<FileSearchServerToolValue2, unknown>;
|
|
56
56
|
/** @internal */
|
|
57
|
-
export type
|
|
57
|
+
export type FileSearchServerToolValue2$Outbound = string | number | boolean | Array<string | number>;
|
|
58
58
|
/** @internal */
|
|
59
|
-
export declare const
|
|
60
|
-
export declare function
|
|
61
|
-
export declare function
|
|
59
|
+
export declare const FileSearchServerToolValue2$outboundSchema: z.ZodType<FileSearchServerToolValue2$Outbound, FileSearchServerToolValue2>;
|
|
60
|
+
export declare function fileSearchServerToolValue2ToJSON(fileSearchServerToolValue2: FileSearchServerToolValue2): string;
|
|
61
|
+
export declare function fileSearchServerToolValue2FromJSON(jsonString: string): SafeParseResult<FileSearchServerToolValue2, SDKValidationError>;
|
|
62
62
|
/** @internal */
|
|
63
63
|
export declare const Filters$inboundSchema: z.ZodType<Filters, unknown>;
|
|
64
64
|
/** @internal */
|
|
@@ -24,39 +24,34 @@ export const FiltersType$inboundSchema = openEnums.inboundSchema(FiltersType);
|
|
|
24
24
|
/** @internal */
|
|
25
25
|
export const FiltersType$outboundSchema = openEnums.outboundSchema(FiltersType);
|
|
26
26
|
/** @internal */
|
|
27
|
-
export const
|
|
28
|
-
z.string(),
|
|
29
|
-
z.number(),
|
|
30
|
-
]);
|
|
27
|
+
export const FileSearchServerToolValue1$inboundSchema = z.union([z.string(), z.number()]);
|
|
31
28
|
/** @internal */
|
|
32
|
-
export const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return JSON.stringify(Value1$outboundSchema.parse(value1));
|
|
29
|
+
export const FileSearchServerToolValue1$outboundSchema = z.union([z.string(), z.number()]);
|
|
30
|
+
export function fileSearchServerToolValue1ToJSON(fileSearchServerToolValue1) {
|
|
31
|
+
return JSON.stringify(FileSearchServerToolValue1$outboundSchema.parse(fileSearchServerToolValue1));
|
|
36
32
|
}
|
|
37
|
-
export function
|
|
38
|
-
return safeParse(jsonString, (x) =>
|
|
33
|
+
export function fileSearchServerToolValue1FromJSON(jsonString) {
|
|
34
|
+
return safeParse(jsonString, (x) => FileSearchServerToolValue1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileSearchServerToolValue1' from JSON`);
|
|
39
35
|
}
|
|
40
36
|
/** @internal */
|
|
41
|
-
export const
|
|
37
|
+
export const FileSearchServerToolValue2$inboundSchema = z.union([
|
|
42
38
|
z.string(),
|
|
43
39
|
z.number(),
|
|
44
40
|
z.boolean(),
|
|
45
41
|
z.array(z.union([z.string(), z.number()])),
|
|
46
42
|
]);
|
|
47
43
|
/** @internal */
|
|
48
|
-
export const
|
|
49
|
-
.union([
|
|
44
|
+
export const FileSearchServerToolValue2$outboundSchema = z.union([
|
|
50
45
|
z.string(),
|
|
51
46
|
z.number(),
|
|
52
47
|
z.boolean(),
|
|
53
48
|
z.array(z.union([z.string(), z.number()])),
|
|
54
49
|
]);
|
|
55
|
-
export function
|
|
56
|
-
return JSON.stringify(
|
|
50
|
+
export function fileSearchServerToolValue2ToJSON(fileSearchServerToolValue2) {
|
|
51
|
+
return JSON.stringify(FileSearchServerToolValue2$outboundSchema.parse(fileSearchServerToolValue2));
|
|
57
52
|
}
|
|
58
|
-
export function
|
|
59
|
-
return safeParse(jsonString, (x) =>
|
|
53
|
+
export function fileSearchServerToolValue2FromJSON(jsonString) {
|
|
54
|
+
return safeParse(jsonString, (x) => FileSearchServerToolValue2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileSearchServerToolValue2' from JSON`);
|
|
60
55
|
}
|
|
61
56
|
/** @internal */
|
|
62
57
|
export const Filters$inboundSchema = z.object({
|
|
@@ -6,18 +6,19 @@ export declare const FunctionCallOutputItemDetail: {
|
|
|
6
6
|
readonly Auto: "auto";
|
|
7
7
|
readonly High: "high";
|
|
8
8
|
readonly Low: "low";
|
|
9
|
+
readonly Original: "original";
|
|
9
10
|
};
|
|
10
11
|
export type FunctionCallOutputItemDetail = OpenEnum<typeof FunctionCallOutputItemDetail>;
|
|
11
12
|
/**
|
|
12
13
|
* Image input content item
|
|
13
14
|
*/
|
|
14
|
-
export type
|
|
15
|
+
export type FunctionCallOutputItemOutputInputImage = {
|
|
15
16
|
detail: FunctionCallOutputItemDetail;
|
|
16
17
|
imageUrl?: string | null | undefined;
|
|
17
18
|
type: "input_image";
|
|
18
19
|
};
|
|
19
|
-
export type FunctionCallOutputItemOutputUnion1 = InputText |
|
|
20
|
-
export type FunctionCallOutputItemOutputUnion2 = string | Array<InputText |
|
|
20
|
+
export type FunctionCallOutputItemOutputUnion1 = InputText | FunctionCallOutputItemOutputInputImage | InputFile;
|
|
21
|
+
export type FunctionCallOutputItemOutputUnion2 = string | Array<InputText | FunctionCallOutputItemOutputInputImage | InputFile>;
|
|
21
22
|
export declare const FunctionCallOutputItemStatus: {
|
|
22
23
|
readonly InProgress: "in_progress";
|
|
23
24
|
readonly Completed: "completed";
|
|
@@ -34,28 +35,28 @@ export type FunctionCallOutputItemTypeFunctionCallOutput = ClosedEnum<typeof Fun
|
|
|
34
35
|
export type FunctionCallOutputItem = {
|
|
35
36
|
callId: string;
|
|
36
37
|
id?: string | null | undefined;
|
|
37
|
-
output: string | Array<InputText |
|
|
38
|
+
output: string | Array<InputText | FunctionCallOutputItemOutputInputImage | InputFile>;
|
|
38
39
|
status?: FunctionCallOutputItemStatus | null | undefined;
|
|
39
40
|
type: FunctionCallOutputItemTypeFunctionCallOutput;
|
|
40
41
|
};
|
|
41
42
|
/** @internal */
|
|
42
43
|
export declare const FunctionCallOutputItemDetail$outboundSchema: z.ZodType<string, FunctionCallOutputItemDetail>;
|
|
43
44
|
/** @internal */
|
|
44
|
-
export type
|
|
45
|
+
export type FunctionCallOutputItemOutputInputImage$Outbound = {
|
|
45
46
|
detail: string;
|
|
46
47
|
image_url?: string | null | undefined;
|
|
47
48
|
type: "input_image";
|
|
48
49
|
};
|
|
49
50
|
/** @internal */
|
|
50
|
-
export declare const
|
|
51
|
-
export declare function
|
|
51
|
+
export declare const FunctionCallOutputItemOutputInputImage$outboundSchema: z.ZodType<FunctionCallOutputItemOutputInputImage$Outbound, FunctionCallOutputItemOutputInputImage>;
|
|
52
|
+
export declare function functionCallOutputItemOutputInputImageToJSON(functionCallOutputItemOutputInputImage: FunctionCallOutputItemOutputInputImage): string;
|
|
52
53
|
/** @internal */
|
|
53
|
-
export type FunctionCallOutputItemOutputUnion1$Outbound = InputText$Outbound |
|
|
54
|
+
export type FunctionCallOutputItemOutputUnion1$Outbound = InputText$Outbound | FunctionCallOutputItemOutputInputImage$Outbound | InputFile$Outbound;
|
|
54
55
|
/** @internal */
|
|
55
56
|
export declare const FunctionCallOutputItemOutputUnion1$outboundSchema: z.ZodType<FunctionCallOutputItemOutputUnion1$Outbound, FunctionCallOutputItemOutputUnion1>;
|
|
56
57
|
export declare function functionCallOutputItemOutputUnion1ToJSON(functionCallOutputItemOutputUnion1: FunctionCallOutputItemOutputUnion1): string;
|
|
57
58
|
/** @internal */
|
|
58
|
-
export type FunctionCallOutputItemOutputUnion2$Outbound = string | Array<InputText$Outbound |
|
|
59
|
+
export type FunctionCallOutputItemOutputUnion2$Outbound = string | Array<InputText$Outbound | FunctionCallOutputItemOutputInputImage$Outbound | InputFile$Outbound>;
|
|
59
60
|
/** @internal */
|
|
60
61
|
export declare const FunctionCallOutputItemOutputUnion2$outboundSchema: z.ZodType<FunctionCallOutputItemOutputUnion2$Outbound, FunctionCallOutputItemOutputUnion2>;
|
|
61
62
|
export declare function functionCallOutputItemOutputUnion2ToJSON(functionCallOutputItemOutputUnion2: FunctionCallOutputItemOutputUnion2): string;
|
|
@@ -67,7 +68,7 @@ export declare const FunctionCallOutputItemTypeFunctionCallOutput$outboundSchema
|
|
|
67
68
|
export type FunctionCallOutputItem$Outbound = {
|
|
68
69
|
call_id: string;
|
|
69
70
|
id?: string | null | undefined;
|
|
70
|
-
output: string | Array<InputText$Outbound |
|
|
71
|
+
output: string | Array<InputText$Outbound | FunctionCallOutputItemOutputInputImage$Outbound | InputFile$Outbound>;
|
|
71
72
|
status?: string | null | undefined;
|
|
72
73
|
type: string;
|
|
73
74
|
};
|
|
@@ -11,6 +11,7 @@ export const FunctionCallOutputItemDetail = {
|
|
|
11
11
|
Auto: "auto",
|
|
12
12
|
High: "high",
|
|
13
13
|
Low: "low",
|
|
14
|
+
Original: "original",
|
|
14
15
|
};
|
|
15
16
|
export const FunctionCallOutputItemStatus = {
|
|
16
17
|
InProgress: "in_progress",
|
|
@@ -23,7 +24,7 @@ export const FunctionCallOutputItemTypeFunctionCallOutput = {
|
|
|
23
24
|
/** @internal */
|
|
24
25
|
export const FunctionCallOutputItemDetail$outboundSchema = openEnums.outboundSchema(FunctionCallOutputItemDetail);
|
|
25
26
|
/** @internal */
|
|
26
|
-
export const
|
|
27
|
+
export const FunctionCallOutputItemOutputInputImage$outboundSchema = z.object({
|
|
27
28
|
detail: FunctionCallOutputItemDetail$outboundSchema,
|
|
28
29
|
imageUrl: z.nullable(z.string()).optional(),
|
|
29
30
|
type: z.literal("input_image"),
|
|
@@ -32,13 +33,13 @@ export const OutputInputImage$outboundSchema = z.object({
|
|
|
32
33
|
imageUrl: "image_url",
|
|
33
34
|
});
|
|
34
35
|
});
|
|
35
|
-
export function
|
|
36
|
-
return JSON.stringify(
|
|
36
|
+
export function functionCallOutputItemOutputInputImageToJSON(functionCallOutputItemOutputInputImage) {
|
|
37
|
+
return JSON.stringify(FunctionCallOutputItemOutputInputImage$outboundSchema.parse(functionCallOutputItemOutputInputImage));
|
|
37
38
|
}
|
|
38
39
|
/** @internal */
|
|
39
40
|
export const FunctionCallOutputItemOutputUnion1$outboundSchema = z.union([
|
|
40
41
|
InputText$outboundSchema,
|
|
41
|
-
z.lazy(() =>
|
|
42
|
+
z.lazy(() => FunctionCallOutputItemOutputInputImage$outboundSchema),
|
|
42
43
|
InputFile$outboundSchema,
|
|
43
44
|
]);
|
|
44
45
|
export function functionCallOutputItemOutputUnion1ToJSON(functionCallOutputItemOutputUnion1) {
|
|
@@ -49,7 +50,7 @@ export const FunctionCallOutputItemOutputUnion2$outboundSchema = z.union([
|
|
|
49
50
|
z.string(),
|
|
50
51
|
z.array(z.union([
|
|
51
52
|
InputText$outboundSchema,
|
|
52
|
-
z.lazy(() =>
|
|
53
|
+
z.lazy(() => FunctionCallOutputItemOutputInputImage$outboundSchema),
|
|
53
54
|
InputFile$outboundSchema,
|
|
54
55
|
])),
|
|
55
56
|
]);
|
|
@@ -68,7 +69,7 @@ export const FunctionCallOutputItem$outboundSchema = z.object({
|
|
|
68
69
|
z.string(),
|
|
69
70
|
z.array(z.union([
|
|
70
71
|
InputText$outboundSchema,
|
|
71
|
-
z.lazy(() =>
|
|
72
|
+
z.lazy(() => FunctionCallOutputItemOutputInputImage$outboundSchema),
|
|
72
73
|
InputFile$outboundSchema,
|
|
73
74
|
])),
|
|
74
75
|
]),
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
export type Stance = {
|
|
5
|
+
model: string;
|
|
6
|
+
stance: string;
|
|
7
|
+
};
|
|
8
|
+
export type Contradiction = {
|
|
9
|
+
stances: Array<Stance>;
|
|
10
|
+
topic: string;
|
|
11
|
+
};
|
|
12
|
+
export type PartialCoverage = {
|
|
13
|
+
models: Array<string>;
|
|
14
|
+
point: string;
|
|
15
|
+
};
|
|
16
|
+
export type UniqueInsight = {
|
|
17
|
+
insight: string;
|
|
18
|
+
model: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Structured analysis produced by the fusion judge model.
|
|
22
|
+
*/
|
|
23
|
+
export type FusionAnalysisResult = {
|
|
24
|
+
blindSpots: Array<string>;
|
|
25
|
+
consensus: Array<string>;
|
|
26
|
+
contradictions: Array<Contradiction>;
|
|
27
|
+
partialCoverage: Array<PartialCoverage>;
|
|
28
|
+
uniqueInsights: Array<UniqueInsight>;
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const Stance$inboundSchema: z.ZodType<Stance, unknown>;
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type Stance$Outbound = {
|
|
34
|
+
model: string;
|
|
35
|
+
stance: string;
|
|
36
|
+
};
|
|
37
|
+
/** @internal */
|
|
38
|
+
export declare const Stance$outboundSchema: z.ZodType<Stance$Outbound, Stance>;
|
|
39
|
+
export declare function stanceToJSON(stance: Stance): string;
|
|
40
|
+
export declare function stanceFromJSON(jsonString: string): SafeParseResult<Stance, SDKValidationError>;
|
|
41
|
+
/** @internal */
|
|
42
|
+
export declare const Contradiction$inboundSchema: z.ZodType<Contradiction, unknown>;
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type Contradiction$Outbound = {
|
|
45
|
+
stances: Array<Stance$Outbound>;
|
|
46
|
+
topic: string;
|
|
47
|
+
};
|
|
48
|
+
/** @internal */
|
|
49
|
+
export declare const Contradiction$outboundSchema: z.ZodType<Contradiction$Outbound, Contradiction>;
|
|
50
|
+
export declare function contradictionToJSON(contradiction: Contradiction): string;
|
|
51
|
+
export declare function contradictionFromJSON(jsonString: string): SafeParseResult<Contradiction, SDKValidationError>;
|
|
52
|
+
/** @internal */
|
|
53
|
+
export declare const PartialCoverage$inboundSchema: z.ZodType<PartialCoverage, unknown>;
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type PartialCoverage$Outbound = {
|
|
56
|
+
models: Array<string>;
|
|
57
|
+
point: string;
|
|
58
|
+
};
|
|
59
|
+
/** @internal */
|
|
60
|
+
export declare const PartialCoverage$outboundSchema: z.ZodType<PartialCoverage$Outbound, PartialCoverage>;
|
|
61
|
+
export declare function partialCoverageToJSON(partialCoverage: PartialCoverage): string;
|
|
62
|
+
export declare function partialCoverageFromJSON(jsonString: string): SafeParseResult<PartialCoverage, SDKValidationError>;
|
|
63
|
+
/** @internal */
|
|
64
|
+
export declare const UniqueInsight$inboundSchema: z.ZodType<UniqueInsight, unknown>;
|
|
65
|
+
/** @internal */
|
|
66
|
+
export type UniqueInsight$Outbound = {
|
|
67
|
+
insight: string;
|
|
68
|
+
model: string;
|
|
69
|
+
};
|
|
70
|
+
/** @internal */
|
|
71
|
+
export declare const UniqueInsight$outboundSchema: z.ZodType<UniqueInsight$Outbound, UniqueInsight>;
|
|
72
|
+
export declare function uniqueInsightToJSON(uniqueInsight: UniqueInsight): string;
|
|
73
|
+
export declare function uniqueInsightFromJSON(jsonString: string): SafeParseResult<UniqueInsight, SDKValidationError>;
|
|
74
|
+
/** @internal */
|
|
75
|
+
export declare const FusionAnalysisResult$inboundSchema: z.ZodType<FusionAnalysisResult, unknown>;
|
|
76
|
+
/** @internal */
|
|
77
|
+
export type FusionAnalysisResult$Outbound = {
|
|
78
|
+
blind_spots: Array<string>;
|
|
79
|
+
consensus: Array<string>;
|
|
80
|
+
contradictions: Array<Contradiction$Outbound>;
|
|
81
|
+
partial_coverage: Array<PartialCoverage$Outbound>;
|
|
82
|
+
unique_insights: Array<UniqueInsight$Outbound>;
|
|
83
|
+
};
|
|
84
|
+
/** @internal */
|
|
85
|
+
export declare const FusionAnalysisResult$outboundSchema: z.ZodType<FusionAnalysisResult$Outbound, FusionAnalysisResult>;
|
|
86
|
+
export declare function fusionAnalysisResultToJSON(fusionAnalysisResult: FusionAnalysisResult): string;
|
|
87
|
+
export declare function fusionAnalysisResultFromJSON(jsonString: string): SafeParseResult<FusionAnalysisResult, SDKValidationError>;
|
|
88
|
+
//# sourceMappingURL=fusionanalysisresult.d.ts.map
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: ffc6f5c74b6c
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const Stance$inboundSchema = z.object({
|
|
10
|
+
model: z.string(),
|
|
11
|
+
stance: z.string(),
|
|
12
|
+
});
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const Stance$outboundSchema = z
|
|
15
|
+
.object({
|
|
16
|
+
model: z.string(),
|
|
17
|
+
stance: z.string(),
|
|
18
|
+
});
|
|
19
|
+
export function stanceToJSON(stance) {
|
|
20
|
+
return JSON.stringify(Stance$outboundSchema.parse(stance));
|
|
21
|
+
}
|
|
22
|
+
export function stanceFromJSON(jsonString) {
|
|
23
|
+
return safeParse(jsonString, (x) => Stance$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Stance' from JSON`);
|
|
24
|
+
}
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const Contradiction$inboundSchema = z
|
|
27
|
+
.object({
|
|
28
|
+
stances: z.array(z.lazy(() => Stance$inboundSchema)),
|
|
29
|
+
topic: z.string(),
|
|
30
|
+
});
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const Contradiction$outboundSchema = z.object({
|
|
33
|
+
stances: z.array(z.lazy(() => Stance$outboundSchema)),
|
|
34
|
+
topic: z.string(),
|
|
35
|
+
});
|
|
36
|
+
export function contradictionToJSON(contradiction) {
|
|
37
|
+
return JSON.stringify(Contradiction$outboundSchema.parse(contradiction));
|
|
38
|
+
}
|
|
39
|
+
export function contradictionFromJSON(jsonString) {
|
|
40
|
+
return safeParse(jsonString, (x) => Contradiction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Contradiction' from JSON`);
|
|
41
|
+
}
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const PartialCoverage$inboundSchema = z.object({
|
|
44
|
+
models: z.array(z.string()),
|
|
45
|
+
point: z.string(),
|
|
46
|
+
});
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const PartialCoverage$outboundSchema = z.object({
|
|
49
|
+
models: z.array(z.string()),
|
|
50
|
+
point: z.string(),
|
|
51
|
+
});
|
|
52
|
+
export function partialCoverageToJSON(partialCoverage) {
|
|
53
|
+
return JSON.stringify(PartialCoverage$outboundSchema.parse(partialCoverage));
|
|
54
|
+
}
|
|
55
|
+
export function partialCoverageFromJSON(jsonString) {
|
|
56
|
+
return safeParse(jsonString, (x) => PartialCoverage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PartialCoverage' from JSON`);
|
|
57
|
+
}
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const UniqueInsight$inboundSchema = z
|
|
60
|
+
.object({
|
|
61
|
+
insight: z.string(),
|
|
62
|
+
model: z.string(),
|
|
63
|
+
});
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const UniqueInsight$outboundSchema = z.object({
|
|
66
|
+
insight: z.string(),
|
|
67
|
+
model: z.string(),
|
|
68
|
+
});
|
|
69
|
+
export function uniqueInsightToJSON(uniqueInsight) {
|
|
70
|
+
return JSON.stringify(UniqueInsight$outboundSchema.parse(uniqueInsight));
|
|
71
|
+
}
|
|
72
|
+
export function uniqueInsightFromJSON(jsonString) {
|
|
73
|
+
return safeParse(jsonString, (x) => UniqueInsight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UniqueInsight' from JSON`);
|
|
74
|
+
}
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const FusionAnalysisResult$inboundSchema = z.object({
|
|
77
|
+
blind_spots: z.array(z.string()),
|
|
78
|
+
consensus: z.array(z.string()),
|
|
79
|
+
contradictions: z.array(z.lazy(() => Contradiction$inboundSchema)),
|
|
80
|
+
partial_coverage: z.array(z.lazy(() => PartialCoverage$inboundSchema)),
|
|
81
|
+
unique_insights: z.array(z.lazy(() => UniqueInsight$inboundSchema)),
|
|
82
|
+
}).transform((v) => {
|
|
83
|
+
return remap$(v, {
|
|
84
|
+
"blind_spots": "blindSpots",
|
|
85
|
+
"partial_coverage": "partialCoverage",
|
|
86
|
+
"unique_insights": "uniqueInsights",
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const FusionAnalysisResult$outboundSchema = z.object({
|
|
91
|
+
blindSpots: z.array(z.string()),
|
|
92
|
+
consensus: z.array(z.string()),
|
|
93
|
+
contradictions: z.array(z.lazy(() => Contradiction$outboundSchema)),
|
|
94
|
+
partialCoverage: z.array(z.lazy(() => PartialCoverage$outboundSchema)),
|
|
95
|
+
uniqueInsights: z.array(z.lazy(() => UniqueInsight$outboundSchema)),
|
|
96
|
+
}).transform((v) => {
|
|
97
|
+
return remap$(v, {
|
|
98
|
+
blindSpots: "blind_spots",
|
|
99
|
+
partialCoverage: "partial_coverage",
|
|
100
|
+
uniqueInsights: "unique_insights",
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
export function fusionAnalysisResultToJSON(fusionAnalysisResult) {
|
|
104
|
+
return JSON.stringify(FusionAnalysisResult$outboundSchema.parse(fusionAnalysisResult));
|
|
105
|
+
}
|
|
106
|
+
export function fusionAnalysisResultFromJSON(jsonString) {
|
|
107
|
+
return safeParse(jsonString, (x) => FusionAnalysisResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FusionAnalysisResult' from JSON`);
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=fusionanalysisresult.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
import { FusionAnalysisResult } from "./fusionanalysisresult.js";
|
|
5
|
+
/**
|
|
6
|
+
* Emitted when the fusion judge completes with the structured analysis.
|
|
7
|
+
*/
|
|
8
|
+
export type FusionCallAnalysisCompletedEvent = {
|
|
9
|
+
/**
|
|
10
|
+
* Structured analysis produced by the fusion judge model.
|
|
11
|
+
*/
|
|
12
|
+
analysis: FusionAnalysisResult;
|
|
13
|
+
itemId: string;
|
|
14
|
+
outputIndex: number;
|
|
15
|
+
sequenceNumber: number;
|
|
16
|
+
type: "response.fusion_call.analysis.completed";
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const FusionCallAnalysisCompletedEvent$inboundSchema: z.ZodType<FusionCallAnalysisCompletedEvent, unknown>;
|
|
20
|
+
export declare function fusionCallAnalysisCompletedEventFromJSON(jsonString: string): SafeParseResult<FusionCallAnalysisCompletedEvent, SDKValidationError>;
|
|
21
|
+
//# sourceMappingURL=fusioncallanalysiscompletedevent.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 0df2084e1a56
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { FusionAnalysisResult$inboundSchema, } from "./fusionanalysisresult.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const FusionCallAnalysisCompletedEvent$inboundSchema = z.object({
|
|
11
|
+
analysis: FusionAnalysisResult$inboundSchema,
|
|
12
|
+
item_id: z.string(),
|
|
13
|
+
output_index: z.int(),
|
|
14
|
+
sequence_number: z.int(),
|
|
15
|
+
type: z.literal("response.fusion_call.analysis.completed"),
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
"item_id": "itemId",
|
|
19
|
+
"output_index": "outputIndex",
|
|
20
|
+
"sequence_number": "sequenceNumber",
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
export function fusionCallAnalysisCompletedEventFromJSON(jsonString) {
|
|
24
|
+
return safeParse(jsonString, (x) => FusionCallAnalysisCompletedEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FusionCallAnalysisCompletedEvent' from JSON`);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=fusioncallanalysiscompletedevent.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Emitted when the fusion judge starts producing the structured analysis.
|
|
6
|
+
*/
|
|
7
|
+
export type FusionCallAnalysisInProgressEvent = {
|
|
8
|
+
itemId: string;
|
|
9
|
+
judgeModel: string;
|
|
10
|
+
outputIndex: number;
|
|
11
|
+
sequenceNumber: number;
|
|
12
|
+
type: "response.fusion_call.analysis.in_progress";
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const FusionCallAnalysisInProgressEvent$inboundSchema: z.ZodType<FusionCallAnalysisInProgressEvent, unknown>;
|
|
16
|
+
export declare function fusionCallAnalysisInProgressEventFromJSON(jsonString: string): SafeParseResult<FusionCallAnalysisInProgressEvent, SDKValidationError>;
|
|
17
|
+
//# sourceMappingURL=fusioncallanalysisinprogressevent.d.ts.map
|