@openrouter/sdk 0.12.79 → 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/README.md +40 -0
- package/esm/funcs/betaAnalyticsGetAnalyticsMeta.d.ts +18 -0
- package/esm/funcs/betaAnalyticsGetAnalyticsMeta.js +96 -0
- package/esm/funcs/betaAnalyticsQueryAnalytics.d.ts +18 -0
- package/esm/funcs/betaAnalyticsQueryAnalytics.js +97 -0
- package/esm/funcs/betaResponsesSend.js +1 -1
- package/esm/funcs/chatSend.js +1 -1
- package/esm/funcs/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/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/modelsGet.d.ts +19 -0
- package/esm/funcs/modelsGet.js +107 -0
- package/esm/funcs/modelsList.js +12 -0
- package/esm/funcs/oAuthCreateAuthCode.d.ts +1 -1
- package/esm/funcs/oAuthCreateAuthCode.js +1 -1
- package/esm/funcs/presetsGet.d.ts +21 -0
- package/esm/funcs/presetsGet.js +105 -0
- package/esm/funcs/presetsGetVersion.d.ts +21 -0
- package/esm/funcs/presetsGetVersion.js +109 -0
- package/esm/funcs/presetsList.d.ts +23 -0
- package/esm/funcs/presetsList.js +136 -0
- package/esm/funcs/presetsListVersions.d.ts +23 -0
- package/esm/funcs/presetsListVersions.js +142 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/aabenchmarkentry.d.ts +24 -0
- package/esm/models/aabenchmarkentry.js +23 -0
- package/esm/models/advisornestedtool.d.ts +25 -0
- package/esm/models/advisornestedtool.js +23 -0
- package/esm/models/advisorreasoning.d.ts +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/apprankingsitem.d.ts +29 -0
- package/esm/models/apprankingsitem.js +26 -0
- package/esm/models/apprankingsresponse.d.ts +16 -0
- package/esm/models/apprankingsresponse.js +17 -0
- package/esm/models/bashservertool.d.ts +28 -0
- package/esm/models/bashservertool.js +20 -0
- package/esm/models/bashservertoolconfig.d.ts +30 -0
- package/esm/models/bashservertoolconfig.js +22 -0
- package/esm/models/bashservertoolengine.d.ts +17 -0
- package/esm/models/bashservertoolengine.js +16 -0
- package/esm/models/bashservertoolenvironment.d.ts +13 -0
- package/esm/models/bashservertoolenvironment.js +16 -0
- package/esm/models/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/byokproviderslug.d.ts +2 -1
- package/esm/models/byokproviderslug.js +2 -1
- package/esm/models/chatfunctiontool.d.ts +5 -2
- package/esm/models/chatfunctiontool.js +6 -0
- package/esm/models/chatrequest.d.ts +42 -0
- package/esm/models/chatrequest.js +24 -0
- package/esm/models/chatwebsearchshorthand.d.ts +10 -5
- package/esm/models/chatwebsearchshorthand.js +2 -0
- package/esm/models/containerautoenvironment.d.ts +15 -0
- package/esm/models/containerautoenvironment.js +13 -0
- package/esm/models/containerreferenceenvironment.d.ts +20 -0
- package/esm/models/containerreferenceenvironment.js +19 -0
- package/esm/models/contentfilterbuiltinentry.d.ts +5 -0
- package/esm/models/contentfilterbuiltinentry.js +7 -0
- package/esm/models/contentfilterbuiltinentryinput.d.ts +6 -0
- package/esm/models/contentfilterbuiltinentryinput.js +7 -0
- package/esm/models/contentpartaudio.d.ts +24 -0
- package/esm/models/contentpartaudio.js +27 -0
- package/esm/models/contentpartimage.d.ts +2 -9
- package/esm/models/contentpartimage.js +1 -6
- package/esm/models/contentpartvideo.d.ts +24 -0
- package/esm/models/contentpartvideo.js +27 -0
- package/esm/models/createobservabilitydestinationrequest.d.ts +1 -1
- package/esm/models/dabenchmarkentry.d.ts +32 -0
- package/esm/models/dabenchmarkentry.js +23 -0
- package/esm/models/filedeleteresponse.d.ts +21 -0
- package/esm/models/filedeleteresponse.js +20 -0
- package/esm/models/filelistresponse.d.ts +21 -0
- package/esm/models/filelistresponse.js +26 -0
- package/esm/models/filemetadata.d.ts +26 -0
- package/esm/models/filemetadata.js +33 -0
- package/esm/models/fusionanalysisresult.d.ts +88 -0
- package/esm/models/fusionanalysisresult.js +109 -0
- package/esm/models/fusioncallanalysiscompletedevent.d.ts +21 -0
- package/esm/models/fusioncallanalysiscompletedevent.js +26 -0
- package/esm/models/fusioncallanalysisinprogressevent.d.ts +17 -0
- package/esm/models/fusioncallanalysisinprogressevent.js +26 -0
- package/esm/models/fusioncallcompletedevent.d.ts +16 -0
- package/esm/models/fusioncallcompletedevent.js +24 -0
- package/esm/models/fusioncallinprogressevent.d.ts +16 -0
- package/esm/models/fusioncallinprogressevent.js +24 -0
- package/esm/models/fusioncallpaneladdedevent.d.ts +17 -0
- package/esm/models/fusioncallpaneladdedevent.js +25 -0
- package/esm/models/fusioncallpanelcompletedevent.d.ts +18 -0
- package/esm/models/fusioncallpanelcompletedevent.js +26 -0
- package/esm/models/fusioncallpaneldeltaevent.d.ts +18 -0
- package/esm/models/fusioncallpaneldeltaevent.js +26 -0
- package/esm/models/fusioncallpanelfailedevent.d.ts +19 -0
- package/esm/models/fusioncallpanelfailedevent.js +28 -0
- package/esm/models/fusioncallpanelreasoningdeltaevent.d.ts +18 -0
- package/esm/models/fusioncallpanelreasoningdeltaevent.js +26 -0
- package/esm/models/fusionplugin.d.ts +46 -0
- package/esm/models/fusionplugin.js +20 -0
- package/esm/models/fusionservertoolconfig.d.ts +27 -0
- package/esm/models/fusionservertoolconfig.js +10 -0
- package/esm/models/generationresponse.d.ts +22 -0
- package/esm/models/generationresponse.js +14 -0
- package/esm/models/getpresetresponse.d.ts +17 -0
- package/esm/models/getpresetresponse.js +15 -0
- package/esm/models/getpresetversionresponse.d.ts +17 -0
- package/esm/models/getpresetversionresponse.js +15 -0
- package/esm/models/index.d.ts +60 -0
- package/esm/models/index.js +60 -0
- package/esm/models/inputreference.d.ts +14 -0
- package/esm/models/inputreference.js +18 -0
- package/esm/models/inputsunion.d.ts +7 -4
- package/esm/models/inputsunion.js +11 -2
- package/esm/models/legacywebsearchservertool.d.ts +2 -2
- package/esm/models/listpresetsresponse.d.ts +15 -0
- package/esm/models/listpresetsresponse.js +21 -0
- package/esm/models/listpresetversionsresponse.d.ts +15 -0
- package/esm/models/listpresetversionsresponse.js +21 -0
- package/esm/models/messagesfallbackparam.d.ts +19 -0
- package/esm/models/messagesfallbackparam.js +22 -0
- package/esm/models/messagesrequest.d.ts +11 -4
- package/esm/models/messagesrequest.js +6 -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/observabilityarizedestination.d.ts +1 -1
- package/esm/models/observabilitybraintrustdestination.d.ts +1 -1
- package/esm/models/observabilityclickhousedestination.d.ts +1 -1
- package/esm/models/observabilitydatadogdestination.d.ts +1 -1
- package/esm/models/observabilitygrafanadestination.d.ts +1 -1
- package/esm/models/observabilitylangfusedestination.d.ts +1 -1
- package/esm/models/observabilitylangsmithdestination.d.ts +1 -1
- package/esm/models/observabilitynewrelicdestination.d.ts +1 -1
- package/esm/models/observabilityopikdestination.d.ts +1 -1
- package/esm/models/observabilityotelcollectordestination.d.ts +1 -1
- package/esm/models/observabilityposthogdestination.d.ts +1 -1
- package/esm/models/observabilityrampdestination.d.ts +1 -1
- package/esm/models/observabilitys3destination.d.ts +1 -1
- package/esm/models/observabilitysentrydestination.d.ts +1 -1
- package/esm/models/observabilitysnowflakedestination.d.ts +1 -1
- package/esm/models/observabilityweavedestination.d.ts +1 -1
- package/esm/models/observabilitywebhookdestination.d.ts +1 -1
- package/esm/models/operations/createauthkeyscode.d.ts +6 -1
- package/esm/models/operations/createauthkeyscode.js +2 -0
- package/esm/models/operations/creatererank.d.ts +44 -10
- package/esm/models/operations/creatererank.js +21 -6
- package/esm/models/operations/createresponses.d.ts +3 -3
- package/esm/models/operations/createresponses.js +2 -3
- package/esm/models/operations/deletefile.d.ts +60 -0
- package/esm/models/operations/deletefile.js +24 -0
- package/esm/models/operations/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/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/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/index.d.ts +15 -0
- package/esm/models/operations/index.js +15 -0
- package/esm/models/operations/listbyokkeys.d.ts +2 -1
- package/esm/models/operations/listbyokkeys.js +2 -1
- package/esm/models/operations/listfiles.d.ts +77 -0
- package/esm/models/operations/listfiles.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/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/outputfusionservertoolitem.d.ts +44 -43
- package/esm/models/outputfusionservertoolitem.js +49 -51
- package/esm/models/outputitems.d.ts +13 -3
- package/esm/models/outputitems.js +9 -1
- package/esm/models/outputshellcallitem.d.ts +29 -0
- package/esm/models/outputshellcallitem.js +38 -0
- package/esm/models/outputshellcalloutputitem.d.ts +48 -0
- package/esm/models/outputshellcalloutputitem.js +67 -0
- package/esm/models/outputsubagentservertoolitem.d.ts +59 -0
- package/esm/models/outputsubagentservertoolitem.js +54 -0
- package/esm/models/outputwebsearchcallitem.d.ts +2 -2
- package/esm/models/outputwebsearchcallitem.js +2 -2
- package/esm/models/preset.d.ts +27 -0
- package/esm/models/preset.js +35 -0
- package/esm/models/presetstatus.d.ts +17 -0
- package/esm/models/presetstatus.js +16 -0
- package/esm/models/presetwithdesignatedversion.d.ts +9 -14
- package/esm/models/presetwithdesignatedversion.js +4 -11
- package/esm/models/preview20250311websearchservertool.d.ts +2 -2
- package/esm/models/previewwebsearchservertool.d.ts +2 -2
- package/esm/models/promptinjectionscanscope.d.ts +18 -0
- package/esm/models/promptinjectionscanscope.js +17 -0
- package/esm/models/providername.d.ts +2 -1
- package/esm/models/providername.js +2 -1
- package/esm/models/provideroptions.d.ts +12 -0
- package/esm/models/provideroptions.js +2 -0
- package/esm/models/providerresponse.d.ts +3 -1
- package/esm/models/providerresponse.js +4 -2
- package/esm/models/rankingsdailymeta.d.ts +4 -4
- package/esm/models/rankingsdailymeta.js +3 -3
- package/esm/models/responsesrequest.d.ts +36 -8
- package/esm/models/responsesrequest.js +12 -0
- package/esm/models/searchqualitylevel.d.ts +2 -2
- package/esm/models/searchqualitylevel.js +1 -1
- package/esm/models/shellcallstatus.d.ts +17 -0
- package/esm/models/shellcallstatus.js +16 -0
- package/esm/models/shellservertoolconfig.d.ts +30 -0
- package/esm/models/shellservertoolconfig.js +22 -0
- package/esm/models/shellservertoolengine.d.ts +16 -0
- package/esm/models/shellservertoolengine.js +15 -0
- package/esm/models/shellservertoolenvironment.d.ts +13 -0
- package/esm/models/shellservertoolenvironment.js +16 -0
- package/esm/models/shellservertoolopenrouter.d.ts +21 -0
- package/esm/models/shellservertoolopenrouter.js +15 -0
- package/esm/models/streamevents.d.ts +10 -1
- package/esm/models/streamevents.js +18 -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/updateobservabilitydestinationrequest.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 +16 -4
- package/esm/models/videogenerationrequest.js +4 -2
- package/esm/models/websearchconfig.d.ts +10 -5
- package/esm/models/websearchconfig.js +2 -0
- package/esm/models/websearchengine.d.ts +1 -0
- package/esm/models/websearchengine.js +1 -0
- package/esm/models/websearchengineenum.d.ts +4 -3
- package/esm/models/websearchengineenum.js +3 -2
- package/esm/models/websearchservertool.d.ts +2 -2
- package/esm/models/websearchservertoolconfig.d.ts +10 -5
- package/esm/models/websearchservertoolconfig.js +2 -0
- package/esm/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/datasets.d.ts +46 -0
- package/esm/sdk/datasets.js +53 -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/presets.d.ts +33 -0
- package/esm/sdk/presets.js +41 -0
- package/esm/sdk/sdk.d.ts +5 -2
- package/esm/sdk/sdk.js +7 -3
- package/jsr.json +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { ContentFilterBuiltinAction } from "./contentfilterbuiltinaction.js";
|
|
3
3
|
import { ContentFilterBuiltinSlug } from "./contentfilterbuiltinslug.js";
|
|
4
|
+
import { PromptInjectionScanScope } from "./promptinjectionscanscope.js";
|
|
4
5
|
/**
|
|
5
6
|
* A builtin content filter entry for create/update requests. Labels are system-assigned and cannot be set by the caller.
|
|
6
7
|
*/
|
|
@@ -15,6 +16,10 @@ export type ContentFilterBuiltinEntryInput = {
|
|
|
15
16
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
16
17
|
*/
|
|
17
18
|
label?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Which message roles to scan for prompt injection. Only applies to the regex-prompt-injection builtin. Defaults to all_messages.
|
|
21
|
+
*/
|
|
22
|
+
scanScope?: PromptInjectionScanScope | undefined;
|
|
18
23
|
/**
|
|
19
24
|
* The builtin filter identifier
|
|
20
25
|
*/
|
|
@@ -24,6 +29,7 @@ export type ContentFilterBuiltinEntryInput = {
|
|
|
24
29
|
export type ContentFilterBuiltinEntryInput$Outbound = {
|
|
25
30
|
action: string;
|
|
26
31
|
label?: string | undefined;
|
|
32
|
+
scan_scope?: string | undefined;
|
|
27
33
|
slug: string;
|
|
28
34
|
};
|
|
29
35
|
/** @internal */
|
|
@@ -3,13 +3,20 @@
|
|
|
3
3
|
* @generated-id: edc82d9f5ab0
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
7
|
import { ContentFilterBuiltinAction$outboundSchema, } from "./contentfilterbuiltinaction.js";
|
|
7
8
|
import { ContentFilterBuiltinSlug$outboundSchema, } from "./contentfilterbuiltinslug.js";
|
|
9
|
+
import { PromptInjectionScanScope$outboundSchema, } from "./promptinjectionscanscope.js";
|
|
8
10
|
/** @internal */
|
|
9
11
|
export const ContentFilterBuiltinEntryInput$outboundSchema = z.object({
|
|
10
12
|
action: ContentFilterBuiltinAction$outboundSchema,
|
|
11
13
|
label: z.string().optional(),
|
|
14
|
+
scanScope: PromptInjectionScanScope$outboundSchema.optional(),
|
|
12
15
|
slug: ContentFilterBuiltinSlug$outboundSchema,
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
scanScope: "scan_scope",
|
|
19
|
+
});
|
|
13
20
|
});
|
|
14
21
|
export function contentFilterBuiltinEntryInputToJSON(contentFilterBuiltinEntryInput) {
|
|
15
22
|
return JSON.stringify(ContentFilterBuiltinEntryInput$outboundSchema.parse(contentFilterBuiltinEntryInput));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type AudioUrl = {
|
|
3
|
+
url: string;
|
|
4
|
+
};
|
|
5
|
+
export type ContentPartAudio = {
|
|
6
|
+
audioUrl: AudioUrl;
|
|
7
|
+
type: "audio_url";
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export type AudioUrl$Outbound = {
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const AudioUrl$outboundSchema: z.ZodType<AudioUrl$Outbound, AudioUrl>;
|
|
15
|
+
export declare function audioUrlToJSON(audioUrl: AudioUrl): string;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type ContentPartAudio$Outbound = {
|
|
18
|
+
audio_url: AudioUrl$Outbound;
|
|
19
|
+
type: "audio_url";
|
|
20
|
+
};
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const ContentPartAudio$outboundSchema: z.ZodType<ContentPartAudio$Outbound, ContentPartAudio>;
|
|
23
|
+
export declare function contentPartAudioToJSON(contentPartAudio: ContentPartAudio): string;
|
|
24
|
+
//# sourceMappingURL=contentpartaudio.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 04ae0dfceba1
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const AudioUrl$outboundSchema = z
|
|
9
|
+
.object({
|
|
10
|
+
url: z.string(),
|
|
11
|
+
});
|
|
12
|
+
export function audioUrlToJSON(audioUrl) {
|
|
13
|
+
return JSON.stringify(AudioUrl$outboundSchema.parse(audioUrl));
|
|
14
|
+
}
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const ContentPartAudio$outboundSchema = z.object({
|
|
17
|
+
audioUrl: z.lazy(() => AudioUrl$outboundSchema),
|
|
18
|
+
type: z.literal("audio_url"),
|
|
19
|
+
}).transform((v) => {
|
|
20
|
+
return remap$(v, {
|
|
21
|
+
audioUrl: "audio_url",
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
export function contentPartAudioToJSON(contentPartAudio) {
|
|
25
|
+
return JSON.stringify(ContentPartAudio$outboundSchema.parse(contentPartAudio));
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=contentpartaudio.js.map
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
3
2
|
export type ContentPartImageImageUrl = {
|
|
4
3
|
url: string;
|
|
5
4
|
};
|
|
6
|
-
export declare const ContentPartImageType: {
|
|
7
|
-
readonly ImageUrl: "image_url";
|
|
8
|
-
};
|
|
9
|
-
export type ContentPartImageType = ClosedEnum<typeof ContentPartImageType>;
|
|
10
5
|
export type ContentPartImage = {
|
|
11
6
|
imageUrl: ContentPartImageImageUrl;
|
|
12
|
-
type:
|
|
7
|
+
type: "image_url";
|
|
13
8
|
};
|
|
14
9
|
/** @internal */
|
|
15
10
|
export type ContentPartImageImageUrl$Outbound = {
|
|
@@ -19,11 +14,9 @@ export type ContentPartImageImageUrl$Outbound = {
|
|
|
19
14
|
export declare const ContentPartImageImageUrl$outboundSchema: z.ZodType<ContentPartImageImageUrl$Outbound, ContentPartImageImageUrl>;
|
|
20
15
|
export declare function contentPartImageImageUrlToJSON(contentPartImageImageUrl: ContentPartImageImageUrl): string;
|
|
21
16
|
/** @internal */
|
|
22
|
-
export declare const ContentPartImageType$outboundSchema: z.ZodEnum<typeof ContentPartImageType>;
|
|
23
|
-
/** @internal */
|
|
24
17
|
export type ContentPartImage$Outbound = {
|
|
25
18
|
image_url: ContentPartImageImageUrl$Outbound;
|
|
26
|
-
type:
|
|
19
|
+
type: "image_url";
|
|
27
20
|
};
|
|
28
21
|
/** @internal */
|
|
29
22
|
export declare const ContentPartImage$outboundSchema: z.ZodType<ContentPartImage$Outbound, ContentPartImage>;
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
-
export const ContentPartImageType = {
|
|
8
|
-
ImageUrl: "image_url",
|
|
9
|
-
};
|
|
10
7
|
/** @internal */
|
|
11
8
|
export const ContentPartImageImageUrl$outboundSchema = z.object({
|
|
12
9
|
url: z.string(),
|
|
@@ -15,11 +12,9 @@ export function contentPartImageImageUrlToJSON(contentPartImageImageUrl) {
|
|
|
15
12
|
return JSON.stringify(ContentPartImageImageUrl$outboundSchema.parse(contentPartImageImageUrl));
|
|
16
13
|
}
|
|
17
14
|
/** @internal */
|
|
18
|
-
export const ContentPartImageType$outboundSchema = z.enum(ContentPartImageType);
|
|
19
|
-
/** @internal */
|
|
20
15
|
export const ContentPartImage$outboundSchema = z.object({
|
|
21
16
|
imageUrl: z.lazy(() => ContentPartImageImageUrl$outboundSchema),
|
|
22
|
-
type:
|
|
17
|
+
type: z.literal("image_url"),
|
|
23
18
|
}).transform((v) => {
|
|
24
19
|
return remap$(v, {
|
|
25
20
|
imageUrl: "image_url",
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type VideoUrl = {
|
|
3
|
+
url: string;
|
|
4
|
+
};
|
|
5
|
+
export type ContentPartVideo = {
|
|
6
|
+
type: "video_url";
|
|
7
|
+
videoUrl: VideoUrl;
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export type VideoUrl$Outbound = {
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const VideoUrl$outboundSchema: z.ZodType<VideoUrl$Outbound, VideoUrl>;
|
|
15
|
+
export declare function videoUrlToJSON(videoUrl: VideoUrl): string;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type ContentPartVideo$Outbound = {
|
|
18
|
+
type: "video_url";
|
|
19
|
+
video_url: VideoUrl$Outbound;
|
|
20
|
+
};
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const ContentPartVideo$outboundSchema: z.ZodType<ContentPartVideo$Outbound, ContentPartVideo>;
|
|
23
|
+
export declare function contentPartVideoToJSON(contentPartVideo: ContentPartVideo): string;
|
|
24
|
+
//# sourceMappingURL=contentpartvideo.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5845b0ae6dcf
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const VideoUrl$outboundSchema = z
|
|
9
|
+
.object({
|
|
10
|
+
url: z.string(),
|
|
11
|
+
});
|
|
12
|
+
export function videoUrlToJSON(videoUrl) {
|
|
13
|
+
return JSON.stringify(VideoUrl$outboundSchema.parse(videoUrl));
|
|
14
|
+
}
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const ContentPartVideo$outboundSchema = z.object({
|
|
17
|
+
type: z.literal("video_url"),
|
|
18
|
+
videoUrl: z.lazy(() => VideoUrl$outboundSchema),
|
|
19
|
+
}).transform((v) => {
|
|
20
|
+
return remap$(v, {
|
|
21
|
+
videoUrl: "video_url",
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
export function contentPartVideoToJSON(contentPartVideo) {
|
|
25
|
+
return JSON.stringify(ContentPartVideo$outboundSchema.parse(contentPartVideo));
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=contentpartvideo.js.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* A single Design Arena benchmark entry for a specific arena+category
|
|
6
|
+
*/
|
|
7
|
+
export type DABenchmarkEntry = {
|
|
8
|
+
/**
|
|
9
|
+
* Arena type (e.g. models, builders, agents)
|
|
10
|
+
*/
|
|
11
|
+
arena: string;
|
|
12
|
+
/**
|
|
13
|
+
* Category within the arena (e.g. website, gamedev, uicomponent)
|
|
14
|
+
*/
|
|
15
|
+
category: string;
|
|
16
|
+
/**
|
|
17
|
+
* ELO rating from head-to-head arena battles
|
|
18
|
+
*/
|
|
19
|
+
elo: number;
|
|
20
|
+
/**
|
|
21
|
+
* Rank position within this arena+category among models available on OpenRouter (1 = highest ELO)
|
|
22
|
+
*/
|
|
23
|
+
rank: number;
|
|
24
|
+
/**
|
|
25
|
+
* Win rate percentage in arena battles
|
|
26
|
+
*/
|
|
27
|
+
winRate: number;
|
|
28
|
+
};
|
|
29
|
+
/** @internal */
|
|
30
|
+
export declare const DABenchmarkEntry$inboundSchema: z.ZodType<DABenchmarkEntry, unknown>;
|
|
31
|
+
export declare function daBenchmarkEntryFromJSON(jsonString: string): SafeParseResult<DABenchmarkEntry, SDKValidationError>;
|
|
32
|
+
//# sourceMappingURL=dabenchmarkentry.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 78bcd1ddec85
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const DABenchmarkEntry$inboundSchema = z.object({
|
|
10
|
+
arena: z.string(),
|
|
11
|
+
category: z.string(),
|
|
12
|
+
elo: z.number(),
|
|
13
|
+
rank: z.int(),
|
|
14
|
+
win_rate: z.number(),
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
"win_rate": "winRate",
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
export function daBenchmarkEntryFromJSON(jsonString) {
|
|
21
|
+
return safeParse(jsonString, (x) => DABenchmarkEntry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DABenchmarkEntry' from JSON`);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=dabenchmarkentry.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
export declare const FileDeleteResponseType: {
|
|
6
|
+
readonly FileDeleted: "file_deleted";
|
|
7
|
+
};
|
|
8
|
+
export type FileDeleteResponseType = ClosedEnum<typeof FileDeleteResponseType>;
|
|
9
|
+
/**
|
|
10
|
+
* Confirmation that a file was deleted.
|
|
11
|
+
*/
|
|
12
|
+
export type FileDeleteResponse = {
|
|
13
|
+
id: string;
|
|
14
|
+
type: FileDeleteResponseType;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const FileDeleteResponseType$inboundSchema: z.ZodEnum<typeof FileDeleteResponseType>;
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const FileDeleteResponse$inboundSchema: z.ZodType<FileDeleteResponse, unknown>;
|
|
20
|
+
export declare function fileDeleteResponseFromJSON(jsonString: string): SafeParseResult<FileDeleteResponse, SDKValidationError>;
|
|
21
|
+
//# sourceMappingURL=filedeleteresponse.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 2464f2b51ee5
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
export const FileDeleteResponseType = {
|
|
8
|
+
FileDeleted: "file_deleted",
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const FileDeleteResponseType$inboundSchema = z.enum(FileDeleteResponseType);
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const FileDeleteResponse$inboundSchema = z.object({
|
|
14
|
+
id: z.string(),
|
|
15
|
+
type: FileDeleteResponseType$inboundSchema,
|
|
16
|
+
});
|
|
17
|
+
export function fileDeleteResponseFromJSON(jsonString) {
|
|
18
|
+
return safeParse(jsonString, (x) => FileDeleteResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileDeleteResponse' from JSON`);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=filedeleteresponse.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
import { FileMetadata } from "./filemetadata.js";
|
|
5
|
+
/**
|
|
6
|
+
* A page of files belonging to the requesting workspace.
|
|
7
|
+
*/
|
|
8
|
+
export type FileListResponse = {
|
|
9
|
+
/**
|
|
10
|
+
* Opaque cursor for the next page; null when there are no more results.
|
|
11
|
+
*/
|
|
12
|
+
cursor: string | null;
|
|
13
|
+
data: Array<FileMetadata>;
|
|
14
|
+
firstId: string | null;
|
|
15
|
+
hasMore: boolean;
|
|
16
|
+
lastId: string | null;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const FileListResponse$inboundSchema: z.ZodType<FileListResponse, unknown>;
|
|
20
|
+
export declare function fileListResponseFromJSON(jsonString: string): SafeParseResult<FileListResponse, SDKValidationError>;
|
|
21
|
+
//# sourceMappingURL=filelistresponse.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e4978ed568c7
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { FileMetadata$inboundSchema } from "./filemetadata.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const FileListResponse$inboundSchema = z.object({
|
|
11
|
+
cursor: z.nullable(z.string()),
|
|
12
|
+
data: z.array(FileMetadata$inboundSchema),
|
|
13
|
+
first_id: z.nullable(z.string()),
|
|
14
|
+
has_more: z.boolean(),
|
|
15
|
+
last_id: z.nullable(z.string()),
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
"first_id": "firstId",
|
|
19
|
+
"has_more": "hasMore",
|
|
20
|
+
"last_id": "lastId",
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
export function fileListResponseFromJSON(jsonString) {
|
|
24
|
+
return safeParse(jsonString, (x) => FileListResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileListResponse' from JSON`);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=filelistresponse.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
export declare const FileMetadataType: {
|
|
6
|
+
readonly File: "file";
|
|
7
|
+
};
|
|
8
|
+
export type FileMetadataType = ClosedEnum<typeof FileMetadataType>;
|
|
9
|
+
/**
|
|
10
|
+
* Metadata describing a stored file.
|
|
11
|
+
*/
|
|
12
|
+
export type FileMetadata = {
|
|
13
|
+
createdAt: string;
|
|
14
|
+
downloadable: boolean;
|
|
15
|
+
filename: string;
|
|
16
|
+
id: string;
|
|
17
|
+
mimeType: string;
|
|
18
|
+
sizeBytes: number;
|
|
19
|
+
type: FileMetadataType;
|
|
20
|
+
};
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const FileMetadataType$inboundSchema: z.ZodEnum<typeof FileMetadataType>;
|
|
23
|
+
/** @internal */
|
|
24
|
+
export declare const FileMetadata$inboundSchema: z.ZodType<FileMetadata, unknown>;
|
|
25
|
+
export declare function fileMetadataFromJSON(jsonString: string): SafeParseResult<FileMetadata, SDKValidationError>;
|
|
26
|
+
//# sourceMappingURL=filemetadata.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 7a5c3a86d7a2
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
export const FileMetadataType = {
|
|
9
|
+
File: "file",
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export const FileMetadataType$inboundSchema = z.enum(FileMetadataType);
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const FileMetadata$inboundSchema = z
|
|
15
|
+
.object({
|
|
16
|
+
created_at: z.string(),
|
|
17
|
+
downloadable: z.boolean(),
|
|
18
|
+
filename: z.string(),
|
|
19
|
+
id: z.string(),
|
|
20
|
+
mime_type: z.string(),
|
|
21
|
+
size_bytes: z.int(),
|
|
22
|
+
type: FileMetadataType$inboundSchema,
|
|
23
|
+
}).transform((v) => {
|
|
24
|
+
return remap$(v, {
|
|
25
|
+
"created_at": "createdAt",
|
|
26
|
+
"mime_type": "mimeType",
|
|
27
|
+
"size_bytes": "sizeBytes",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
export function fileMetadataFromJSON(jsonString) {
|
|
31
|
+
return safeParse(jsonString, (x) => FileMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileMetadata' from JSON`);
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=filemetadata.js.map
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
export type Stance = {
|
|
5
|
+
model: string;
|
|
6
|
+
stance: string;
|
|
7
|
+
};
|
|
8
|
+
export type Contradiction = {
|
|
9
|
+
stances: Array<Stance>;
|
|
10
|
+
topic: string;
|
|
11
|
+
};
|
|
12
|
+
export type PartialCoverage = {
|
|
13
|
+
models: Array<string>;
|
|
14
|
+
point: string;
|
|
15
|
+
};
|
|
16
|
+
export type UniqueInsight = {
|
|
17
|
+
insight: string;
|
|
18
|
+
model: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Structured analysis produced by the fusion judge model.
|
|
22
|
+
*/
|
|
23
|
+
export type FusionAnalysisResult = {
|
|
24
|
+
blindSpots: Array<string>;
|
|
25
|
+
consensus: Array<string>;
|
|
26
|
+
contradictions: Array<Contradiction>;
|
|
27
|
+
partialCoverage: Array<PartialCoverage>;
|
|
28
|
+
uniqueInsights: Array<UniqueInsight>;
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const Stance$inboundSchema: z.ZodType<Stance, unknown>;
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type Stance$Outbound = {
|
|
34
|
+
model: string;
|
|
35
|
+
stance: string;
|
|
36
|
+
};
|
|
37
|
+
/** @internal */
|
|
38
|
+
export declare const Stance$outboundSchema: z.ZodType<Stance$Outbound, Stance>;
|
|
39
|
+
export declare function stanceToJSON(stance: Stance): string;
|
|
40
|
+
export declare function stanceFromJSON(jsonString: string): SafeParseResult<Stance, SDKValidationError>;
|
|
41
|
+
/** @internal */
|
|
42
|
+
export declare const Contradiction$inboundSchema: z.ZodType<Contradiction, unknown>;
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type Contradiction$Outbound = {
|
|
45
|
+
stances: Array<Stance$Outbound>;
|
|
46
|
+
topic: string;
|
|
47
|
+
};
|
|
48
|
+
/** @internal */
|
|
49
|
+
export declare const Contradiction$outboundSchema: z.ZodType<Contradiction$Outbound, Contradiction>;
|
|
50
|
+
export declare function contradictionToJSON(contradiction: Contradiction): string;
|
|
51
|
+
export declare function contradictionFromJSON(jsonString: string): SafeParseResult<Contradiction, SDKValidationError>;
|
|
52
|
+
/** @internal */
|
|
53
|
+
export declare const PartialCoverage$inboundSchema: z.ZodType<PartialCoverage, unknown>;
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type PartialCoverage$Outbound = {
|
|
56
|
+
models: Array<string>;
|
|
57
|
+
point: string;
|
|
58
|
+
};
|
|
59
|
+
/** @internal */
|
|
60
|
+
export declare const PartialCoverage$outboundSchema: z.ZodType<PartialCoverage$Outbound, PartialCoverage>;
|
|
61
|
+
export declare function partialCoverageToJSON(partialCoverage: PartialCoverage): string;
|
|
62
|
+
export declare function partialCoverageFromJSON(jsonString: string): SafeParseResult<PartialCoverage, SDKValidationError>;
|
|
63
|
+
/** @internal */
|
|
64
|
+
export declare const UniqueInsight$inboundSchema: z.ZodType<UniqueInsight, unknown>;
|
|
65
|
+
/** @internal */
|
|
66
|
+
export type UniqueInsight$Outbound = {
|
|
67
|
+
insight: string;
|
|
68
|
+
model: string;
|
|
69
|
+
};
|
|
70
|
+
/** @internal */
|
|
71
|
+
export declare const UniqueInsight$outboundSchema: z.ZodType<UniqueInsight$Outbound, UniqueInsight>;
|
|
72
|
+
export declare function uniqueInsightToJSON(uniqueInsight: UniqueInsight): string;
|
|
73
|
+
export declare function uniqueInsightFromJSON(jsonString: string): SafeParseResult<UniqueInsight, SDKValidationError>;
|
|
74
|
+
/** @internal */
|
|
75
|
+
export declare const FusionAnalysisResult$inboundSchema: z.ZodType<FusionAnalysisResult, unknown>;
|
|
76
|
+
/** @internal */
|
|
77
|
+
export type FusionAnalysisResult$Outbound = {
|
|
78
|
+
blind_spots: Array<string>;
|
|
79
|
+
consensus: Array<string>;
|
|
80
|
+
contradictions: Array<Contradiction$Outbound>;
|
|
81
|
+
partial_coverage: Array<PartialCoverage$Outbound>;
|
|
82
|
+
unique_insights: Array<UniqueInsight$Outbound>;
|
|
83
|
+
};
|
|
84
|
+
/** @internal */
|
|
85
|
+
export declare const FusionAnalysisResult$outboundSchema: z.ZodType<FusionAnalysisResult$Outbound, FusionAnalysisResult>;
|
|
86
|
+
export declare function fusionAnalysisResultToJSON(fusionAnalysisResult: FusionAnalysisResult): string;
|
|
87
|
+
export declare function fusionAnalysisResultFromJSON(jsonString: string): SafeParseResult<FusionAnalysisResult, SDKValidationError>;
|
|
88
|
+
//# sourceMappingURL=fusionanalysisresult.d.ts.map
|
|
@@ -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
|