@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
|
@@ -17,17 +17,28 @@ export const ApiType = {
|
|
|
17
17
|
Tts: "tts",
|
|
18
18
|
Stt: "stt",
|
|
19
19
|
Video: "video",
|
|
20
|
+
Image: "image",
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The data region this generation was routed through. 'europe' for EU-routed requests, 'global' otherwise.
|
|
24
|
+
*/
|
|
25
|
+
export const DataRegion = {
|
|
26
|
+
Global: "global",
|
|
27
|
+
Europe: "europe",
|
|
20
28
|
};
|
|
21
29
|
/** @internal */
|
|
22
30
|
export const ApiType$inboundSchema = openEnums
|
|
23
31
|
.inboundSchema(ApiType);
|
|
24
32
|
/** @internal */
|
|
33
|
+
export const DataRegion$inboundSchema = openEnums.inboundSchema(DataRegion);
|
|
34
|
+
/** @internal */
|
|
25
35
|
export const GenerationResponseData$inboundSchema = z.object({
|
|
26
36
|
api_type: z.nullable(ApiType$inboundSchema),
|
|
27
37
|
app_id: z.nullable(z.int()),
|
|
28
38
|
cache_discount: z.nullable(z.number()),
|
|
29
39
|
cancelled: z.nullable(z.boolean()),
|
|
30
40
|
created_at: z.string(),
|
|
41
|
+
data_region: DataRegion$inboundSchema,
|
|
31
42
|
external_user: z.nullable(z.string()),
|
|
32
43
|
finish_reason: z.nullable(z.string()),
|
|
33
44
|
generation_time: z.nullable(z.number()),
|
|
@@ -49,6 +60,7 @@ export const GenerationResponseData$inboundSchema = z.object({
|
|
|
49
60
|
num_media_prompt: z.nullable(z.int()),
|
|
50
61
|
num_search_results: z.nullable(z.int()),
|
|
51
62
|
origin: z.string(),
|
|
63
|
+
preset_id: z.nullable(z.string()),
|
|
52
64
|
provider_name: z.nullable(z.string()),
|
|
53
65
|
provider_responses: z.nullable(z.array(ProviderResponse$inboundSchema)),
|
|
54
66
|
request_id: z.nullable(z.string()).optional(),
|
|
@@ -71,6 +83,7 @@ export const GenerationResponseData$inboundSchema = z.object({
|
|
|
71
83
|
"app_id": "appId",
|
|
72
84
|
"cache_discount": "cacheDiscount",
|
|
73
85
|
"created_at": "createdAt",
|
|
86
|
+
"data_region": "dataRegion",
|
|
74
87
|
"external_user": "externalUser",
|
|
75
88
|
"finish_reason": "finishReason",
|
|
76
89
|
"generation_time": "generationTime",
|
|
@@ -88,6 +101,7 @@ export const GenerationResponseData$inboundSchema = z.object({
|
|
|
88
101
|
"num_media_completion": "numMediaCompletion",
|
|
89
102
|
"num_media_prompt": "numMediaPrompt",
|
|
90
103
|
"num_search_results": "numSearchResults",
|
|
104
|
+
"preset_id": "presetId",
|
|
91
105
|
"provider_name": "providerName",
|
|
92
106
|
"provider_responses": "providerResponses",
|
|
93
107
|
"request_id": "requestId",
|
|
@@ -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
|
+
import { PresetWithDesignatedVersion } from "./presetwithdesignatedversion.js";
|
|
5
|
+
/**
|
|
6
|
+
* A preset with its currently designated version.
|
|
7
|
+
*/
|
|
8
|
+
export type GetPresetResponse = {
|
|
9
|
+
/**
|
|
10
|
+
* A preset with its currently designated version.
|
|
11
|
+
*/
|
|
12
|
+
data: PresetWithDesignatedVersion;
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const GetPresetResponse$inboundSchema: z.ZodType<GetPresetResponse, unknown>;
|
|
16
|
+
export declare function getPresetResponseFromJSON(jsonString: string): SafeParseResult<GetPresetResponse, SDKValidationError>;
|
|
17
|
+
//# sourceMappingURL=getpresetresponse.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f3c5ddbd4b26
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { PresetWithDesignatedVersion$inboundSchema, } from "./presetwithdesignatedversion.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const GetPresetResponse$inboundSchema = z.object({
|
|
10
|
+
data: PresetWithDesignatedVersion$inboundSchema,
|
|
11
|
+
});
|
|
12
|
+
export function getPresetResponseFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => GetPresetResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPresetResponse' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=getpresetresponse.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
|
+
import { PresetDesignatedVersion } from "./presetdesignatedversion.js";
|
|
5
|
+
/**
|
|
6
|
+
* A single version of a preset.
|
|
7
|
+
*/
|
|
8
|
+
export type GetPresetVersionResponse = {
|
|
9
|
+
/**
|
|
10
|
+
* A specific version of a preset, containing config and optional system prompt.
|
|
11
|
+
*/
|
|
12
|
+
data: PresetDesignatedVersion | null;
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const GetPresetVersionResponse$inboundSchema: z.ZodType<GetPresetVersionResponse, unknown>;
|
|
16
|
+
export declare function getPresetVersionResponseFromJSON(jsonString: string): SafeParseResult<GetPresetVersionResponse, SDKValidationError>;
|
|
17
|
+
//# sourceMappingURL=getpresetversionresponse.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 28f0dd1227c4
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { PresetDesignatedVersion$inboundSchema, } from "./presetdesignatedversion.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const GetPresetVersionResponse$inboundSchema = z.object({
|
|
10
|
+
data: z.nullable(PresetDesignatedVersion$inboundSchema),
|
|
11
|
+
});
|
|
12
|
+
export function getPresetVersionResponseFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => GetPresetVersionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPresetVersionResponse' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=getpresetversionresponse.js.map
|
package/esm/models/index.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
export * from "./aabenchmarkentry.js";
|
|
1
2
|
export * from "./activityitem.js";
|
|
2
3
|
export * from "./activityresponse.js";
|
|
4
|
+
export * from "./advisornestedtool.js";
|
|
5
|
+
export * from "./advisorreasoning.js";
|
|
6
|
+
export * from "./advisorservertoolconfig.js";
|
|
7
|
+
export * from "./advisorservertoolopenrouter.js";
|
|
3
8
|
export * from "./annotationaddedevent.js";
|
|
4
9
|
export * from "./anthropicallowedcallers.js";
|
|
5
10
|
export * from "./anthropicbase64imagesource.js";
|
|
@@ -40,11 +45,24 @@ export * from "./applypatchservertool.js";
|
|
|
40
45
|
export * from "./applypatchservertoolconfig.js";
|
|
41
46
|
export * from "./applypatchservertoolopenrouter.js";
|
|
42
47
|
export * from "./applypatchupdatefileoperation.js";
|
|
48
|
+
export * from "./apprankingsitem.js";
|
|
49
|
+
export * from "./apprankingsresponse.js";
|
|
43
50
|
export * from "./autorouterplugin.js";
|
|
44
51
|
export * from "./badgatewayresponseerrordata.js";
|
|
45
52
|
export * from "./badrequestresponseerrordata.js";
|
|
46
53
|
export * from "./baseinputsunion.js";
|
|
47
54
|
export * from "./basereasoningconfig.js";
|
|
55
|
+
export * from "./bashservertool.js";
|
|
56
|
+
export * from "./bashservertoolconfig.js";
|
|
57
|
+
export * from "./bashservertoolengine.js";
|
|
58
|
+
export * from "./bashservertoolenvironment.js";
|
|
59
|
+
export * from "./benchmarkpricing.js";
|
|
60
|
+
export * from "./benchmarksaaitem.js";
|
|
61
|
+
export * from "./benchmarksaameta.js";
|
|
62
|
+
export * from "./benchmarksaaresponse.js";
|
|
63
|
+
export * from "./benchmarksdaitem.js";
|
|
64
|
+
export * from "./benchmarksdameta.js";
|
|
65
|
+
export * from "./benchmarksdaresponse.js";
|
|
48
66
|
export * from "./bulkaddworkspacemembersrequest.js";
|
|
49
67
|
export * from "./bulkaddworkspacemembersresponse.js";
|
|
50
68
|
export * from "./bulkassignkeysrequest.js";
|
|
@@ -108,6 +126,8 @@ export * from "./compactionitem.js";
|
|
|
108
126
|
export * from "./compoundfilter.js";
|
|
109
127
|
export * from "./computeruseservertool.js";
|
|
110
128
|
export * from "./conflictresponseerrordata.js";
|
|
129
|
+
export * from "./containerautoenvironment.js";
|
|
130
|
+
export * from "./containerreferenceenvironment.js";
|
|
111
131
|
export * from "./contentfilteraction.js";
|
|
112
132
|
export * from "./contentfilterbuiltinaction.js";
|
|
113
133
|
export * from "./contentfilterbuiltinentry.js";
|
|
@@ -115,11 +135,13 @@ export * from "./contentfilterbuiltinentryinput.js";
|
|
|
115
135
|
export * from "./contentfilterbuiltinslug.js";
|
|
116
136
|
export * from "./contentfilterentry.js";
|
|
117
137
|
export * from "./contentpartaddedevent.js";
|
|
138
|
+
export * from "./contentpartaudio.js";
|
|
118
139
|
export * from "./contentpartdoneevent.js";
|
|
119
140
|
export * from "./contentpartimage.js";
|
|
120
141
|
export * from "./contentpartinputaudio.js";
|
|
121
142
|
export * from "./contentpartinputfile.js";
|
|
122
143
|
export * from "./contentpartinputvideo.js";
|
|
144
|
+
export * from "./contentpartvideo.js";
|
|
123
145
|
export * from "./contextcompressionengine.js";
|
|
124
146
|
export * from "./contextcompressionplugin.js";
|
|
125
147
|
export * from "./costdetails.js";
|
|
@@ -137,6 +159,7 @@ export * from "./customtoolcallinputdeltaevent.js";
|
|
|
137
159
|
export * from "./customtoolcallinputdoneevent.js";
|
|
138
160
|
export * from "./customtoolcallitem.js";
|
|
139
161
|
export * from "./customtoolcalloutputitem.js";
|
|
162
|
+
export * from "./dabenchmarkentry.js";
|
|
140
163
|
export * from "./datetimeservertool.js";
|
|
141
164
|
export * from "./datetimeservertoolconfig.js";
|
|
142
165
|
export * from "./defaultparameters.js";
|
|
@@ -151,6 +174,9 @@ export * from "./endpointsmetadata.js";
|
|
|
151
174
|
export * from "./endpointstatus.js";
|
|
152
175
|
export * from "./errorevent.js";
|
|
153
176
|
export * from "./filecitation.js";
|
|
177
|
+
export * from "./filedeleteresponse.js";
|
|
178
|
+
export * from "./filelistresponse.js";
|
|
179
|
+
export * from "./filemetadata.js";
|
|
154
180
|
export * from "./fileparserplugin.js";
|
|
155
181
|
export * from "./filepath.js";
|
|
156
182
|
export * from "./filesearchservertool.js";
|
|
@@ -164,6 +190,16 @@ export * from "./functioncallargsdeltaevent.js";
|
|
|
164
190
|
export * from "./functioncallargsdoneevent.js";
|
|
165
191
|
export * from "./functioncallitem.js";
|
|
166
192
|
export * from "./functioncalloutputitem.js";
|
|
193
|
+
export * from "./fusionanalysisresult.js";
|
|
194
|
+
export * from "./fusioncallanalysiscompletedevent.js";
|
|
195
|
+
export * from "./fusioncallanalysisinprogressevent.js";
|
|
196
|
+
export * from "./fusioncallcompletedevent.js";
|
|
197
|
+
export * from "./fusioncallinprogressevent.js";
|
|
198
|
+
export * from "./fusioncallpaneladdedevent.js";
|
|
199
|
+
export * from "./fusioncallpanelcompletedevent.js";
|
|
200
|
+
export * from "./fusioncallpaneldeltaevent.js";
|
|
201
|
+
export * from "./fusioncallpanelfailedevent.js";
|
|
202
|
+
export * from "./fusioncallpanelreasoningdeltaevent.js";
|
|
167
203
|
export * from "./fusionplugin.js";
|
|
168
204
|
export * from "./fusionservertoolconfig.js";
|
|
169
205
|
export * from "./fusionservertoolopenrouter.js";
|
|
@@ -173,6 +209,8 @@ export * from "./generationresponse.js";
|
|
|
173
209
|
export * from "./getbyokkeyresponse.js";
|
|
174
210
|
export * from "./getguardrailresponse.js";
|
|
175
211
|
export * from "./getobservabilitydestinationresponse.js";
|
|
212
|
+
export * from "./getpresetresponse.js";
|
|
213
|
+
export * from "./getpresetversionresponse.js";
|
|
176
214
|
export * from "./getworkspaceresponse.js";
|
|
177
215
|
export * from "./guardrail.js";
|
|
178
216
|
export * from "./guardrailinterval.js";
|
|
@@ -192,6 +230,7 @@ export * from "./inputfile.js";
|
|
|
192
230
|
export * from "./inputimage.js";
|
|
193
231
|
export * from "./inputmessageitem.js";
|
|
194
232
|
export * from "./inputmodality.js";
|
|
233
|
+
export * from "./inputreference.js";
|
|
195
234
|
export * from "./inputsunion.js";
|
|
196
235
|
export * from "./inputtext.js";
|
|
197
236
|
export * from "./inputvideo.js";
|
|
@@ -207,6 +246,8 @@ export * from "./listguardrailsresponse.js";
|
|
|
207
246
|
export * from "./listkeyassignmentsresponse.js";
|
|
208
247
|
export * from "./listmemberassignmentsresponse.js";
|
|
209
248
|
export * from "./listobservabilitydestinationsresponse.js";
|
|
249
|
+
export * from "./listpresetsresponse.js";
|
|
250
|
+
export * from "./listpresetversionsresponse.js";
|
|
210
251
|
export * from "./listworkspacesresponse.js";
|
|
211
252
|
export * from "./localshellcallitem.js";
|
|
212
253
|
export * from "./localshellcalloutputitem.js";
|
|
@@ -217,14 +258,17 @@ export * from "./mcplisttoolsitem.js";
|
|
|
217
258
|
export * from "./mcpservertool.js";
|
|
218
259
|
export * from "./memberassignment.js";
|
|
219
260
|
export * from "./messagesadvisortoolresultblock.js";
|
|
261
|
+
export * from "./messagesfallbackparam.js";
|
|
220
262
|
export * from "./messagesmessageparam.js";
|
|
221
263
|
export * from "./messagesoutputconfig.js";
|
|
222
264
|
export * from "./messagesrequest.js";
|
|
223
265
|
export * from "./metadatalevel.js";
|
|
224
266
|
export * from "./model.js";
|
|
225
267
|
export * from "./modelarchitecture.js";
|
|
268
|
+
export * from "./modelbenchmarks.js";
|
|
226
269
|
export * from "./modelgroup.js";
|
|
227
270
|
export * from "./modellinks.js";
|
|
271
|
+
export * from "./modelresponse.js";
|
|
228
272
|
export * from "./modelscountresponse.js";
|
|
229
273
|
export * from "./modelslistresponse.js";
|
|
230
274
|
export * from "./moderationplugin.js";
|
|
@@ -264,6 +308,7 @@ export * from "./openresponsesinprogressevent.js";
|
|
|
264
308
|
export * from "./openresponsesresult.js";
|
|
265
309
|
export * from "./openroutermetadata.js";
|
|
266
310
|
export * from "./openrouterwebsearchservertool.js";
|
|
311
|
+
export * from "./outputadvisorservertoolitem.js";
|
|
267
312
|
export * from "./outputapplypatchcallitem.js";
|
|
268
313
|
export * from "./outputapplypatchservertoolitem.js";
|
|
269
314
|
export * from "./outputbashservertoolitem.js";
|
|
@@ -289,6 +334,9 @@ export * from "./outputmodality.js";
|
|
|
289
334
|
export * from "./outputmodalityenum.js";
|
|
290
335
|
export * from "./outputreasoningitem.js";
|
|
291
336
|
export * from "./outputsearchmodelsservertoolitem.js";
|
|
337
|
+
export * from "./outputshellcallitem.js";
|
|
338
|
+
export * from "./outputshellcalloutputitem.js";
|
|
339
|
+
export * from "./outputsubagentservertoolitem.js";
|
|
292
340
|
export * from "./outputtexteditorservertoolitem.js";
|
|
293
341
|
export * from "./outputtoolsearchservertoolitem.js";
|
|
294
342
|
export * from "./outputwebfetchservertoolitem.js";
|
|
@@ -308,11 +356,14 @@ export * from "./pipelinestage.js";
|
|
|
308
356
|
export * from "./pipelinestagetype.js";
|
|
309
357
|
export * from "./preferredmaxlatency.js";
|
|
310
358
|
export * from "./preferredminthroughput.js";
|
|
359
|
+
export * from "./preset.js";
|
|
311
360
|
export * from "./presetdesignatedversion.js";
|
|
361
|
+
export * from "./presetstatus.js";
|
|
312
362
|
export * from "./presetwithdesignatedversion.js";
|
|
313
363
|
export * from "./preview20250311websearchservertool.js";
|
|
314
364
|
export * from "./previewwebsearchservertool.js";
|
|
315
365
|
export * from "./previewwebsearchuserlocation.js";
|
|
366
|
+
export * from "./promptinjectionscanscope.js";
|
|
316
367
|
export * from "./providername.js";
|
|
317
368
|
export * from "./provideroptions.js";
|
|
318
369
|
export * from "./provideroverloadedresponseerrordata.js";
|
|
@@ -362,7 +413,12 @@ export * from "./security.js";
|
|
|
362
413
|
export * from "./serviceunavailableresponseerrordata.js";
|
|
363
414
|
export * from "./shellcallitem.js";
|
|
364
415
|
export * from "./shellcalloutputitem.js";
|
|
416
|
+
export * from "./shellcallstatus.js";
|
|
365
417
|
export * from "./shellservertool.js";
|
|
418
|
+
export * from "./shellservertoolconfig.js";
|
|
419
|
+
export * from "./shellservertoolengine.js";
|
|
420
|
+
export * from "./shellservertoolenvironment.js";
|
|
421
|
+
export * from "./shellservertoolopenrouter.js";
|
|
366
422
|
export * from "./speechrequest.js";
|
|
367
423
|
export * from "./stopservertoolswhencondition.js";
|
|
368
424
|
export * from "./stopservertoolswhenfinishreasonis.js";
|
|
@@ -383,6 +439,10 @@ export * from "./sttinputaudio.js";
|
|
|
383
439
|
export * from "./sttrequest.js";
|
|
384
440
|
export * from "./sttresponse.js";
|
|
385
441
|
export * from "./sttusage.js";
|
|
442
|
+
export * from "./subagentnestedtool.js";
|
|
443
|
+
export * from "./subagentreasoning.js";
|
|
444
|
+
export * from "./subagentservertoolconfig.js";
|
|
445
|
+
export * from "./subagentservertoolopenrouter.js";
|
|
386
446
|
export * from "./textdeltaevent.js";
|
|
387
447
|
export * from "./textdoneevent.js";
|
|
388
448
|
export * from "./textextendedconfig.js";
|
package/esm/models/index.js
CHANGED
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
* @generated-id: f93644b0f37e
|
|
4
4
|
*/
|
|
5
|
+
export * from "./aabenchmarkentry.js";
|
|
5
6
|
export * from "./activityitem.js";
|
|
6
7
|
export * from "./activityresponse.js";
|
|
8
|
+
export * from "./advisornestedtool.js";
|
|
9
|
+
export * from "./advisorreasoning.js";
|
|
10
|
+
export * from "./advisorservertoolconfig.js";
|
|
11
|
+
export * from "./advisorservertoolopenrouter.js";
|
|
7
12
|
export * from "./annotationaddedevent.js";
|
|
8
13
|
export * from "./anthropicallowedcallers.js";
|
|
9
14
|
export * from "./anthropicbase64imagesource.js";
|
|
@@ -44,11 +49,24 @@ export * from "./applypatchservertool.js";
|
|
|
44
49
|
export * from "./applypatchservertoolconfig.js";
|
|
45
50
|
export * from "./applypatchservertoolopenrouter.js";
|
|
46
51
|
export * from "./applypatchupdatefileoperation.js";
|
|
52
|
+
export * from "./apprankingsitem.js";
|
|
53
|
+
export * from "./apprankingsresponse.js";
|
|
47
54
|
export * from "./autorouterplugin.js";
|
|
48
55
|
export * from "./badgatewayresponseerrordata.js";
|
|
49
56
|
export * from "./badrequestresponseerrordata.js";
|
|
50
57
|
export * from "./baseinputsunion.js";
|
|
51
58
|
export * from "./basereasoningconfig.js";
|
|
59
|
+
export * from "./bashservertool.js";
|
|
60
|
+
export * from "./bashservertoolconfig.js";
|
|
61
|
+
export * from "./bashservertoolengine.js";
|
|
62
|
+
export * from "./bashservertoolenvironment.js";
|
|
63
|
+
export * from "./benchmarkpricing.js";
|
|
64
|
+
export * from "./benchmarksaaitem.js";
|
|
65
|
+
export * from "./benchmarksaameta.js";
|
|
66
|
+
export * from "./benchmarksaaresponse.js";
|
|
67
|
+
export * from "./benchmarksdaitem.js";
|
|
68
|
+
export * from "./benchmarksdameta.js";
|
|
69
|
+
export * from "./benchmarksdaresponse.js";
|
|
52
70
|
export * from "./bulkaddworkspacemembersrequest.js";
|
|
53
71
|
export * from "./bulkaddworkspacemembersresponse.js";
|
|
54
72
|
export * from "./bulkassignkeysrequest.js";
|
|
@@ -112,6 +130,8 @@ export * from "./compactionitem.js";
|
|
|
112
130
|
export * from "./compoundfilter.js";
|
|
113
131
|
export * from "./computeruseservertool.js";
|
|
114
132
|
export * from "./conflictresponseerrordata.js";
|
|
133
|
+
export * from "./containerautoenvironment.js";
|
|
134
|
+
export * from "./containerreferenceenvironment.js";
|
|
115
135
|
export * from "./contentfilteraction.js";
|
|
116
136
|
export * from "./contentfilterbuiltinaction.js";
|
|
117
137
|
export * from "./contentfilterbuiltinentry.js";
|
|
@@ -119,11 +139,13 @@ export * from "./contentfilterbuiltinentryinput.js";
|
|
|
119
139
|
export * from "./contentfilterbuiltinslug.js";
|
|
120
140
|
export * from "./contentfilterentry.js";
|
|
121
141
|
export * from "./contentpartaddedevent.js";
|
|
142
|
+
export * from "./contentpartaudio.js";
|
|
122
143
|
export * from "./contentpartdoneevent.js";
|
|
123
144
|
export * from "./contentpartimage.js";
|
|
124
145
|
export * from "./contentpartinputaudio.js";
|
|
125
146
|
export * from "./contentpartinputfile.js";
|
|
126
147
|
export * from "./contentpartinputvideo.js";
|
|
148
|
+
export * from "./contentpartvideo.js";
|
|
127
149
|
export * from "./contextcompressionengine.js";
|
|
128
150
|
export * from "./contextcompressionplugin.js";
|
|
129
151
|
export * from "./costdetails.js";
|
|
@@ -141,6 +163,7 @@ export * from "./customtoolcallinputdeltaevent.js";
|
|
|
141
163
|
export * from "./customtoolcallinputdoneevent.js";
|
|
142
164
|
export * from "./customtoolcallitem.js";
|
|
143
165
|
export * from "./customtoolcalloutputitem.js";
|
|
166
|
+
export * from "./dabenchmarkentry.js";
|
|
144
167
|
export * from "./datetimeservertool.js";
|
|
145
168
|
export * from "./datetimeservertoolconfig.js";
|
|
146
169
|
export * from "./defaultparameters.js";
|
|
@@ -155,6 +178,9 @@ export * from "./endpointsmetadata.js";
|
|
|
155
178
|
export * from "./endpointstatus.js";
|
|
156
179
|
export * from "./errorevent.js";
|
|
157
180
|
export * from "./filecitation.js";
|
|
181
|
+
export * from "./filedeleteresponse.js";
|
|
182
|
+
export * from "./filelistresponse.js";
|
|
183
|
+
export * from "./filemetadata.js";
|
|
158
184
|
export * from "./fileparserplugin.js";
|
|
159
185
|
export * from "./filepath.js";
|
|
160
186
|
export * from "./filesearchservertool.js";
|
|
@@ -168,6 +194,16 @@ export * from "./functioncallargsdeltaevent.js";
|
|
|
168
194
|
export * from "./functioncallargsdoneevent.js";
|
|
169
195
|
export * from "./functioncallitem.js";
|
|
170
196
|
export * from "./functioncalloutputitem.js";
|
|
197
|
+
export * from "./fusionanalysisresult.js";
|
|
198
|
+
export * from "./fusioncallanalysiscompletedevent.js";
|
|
199
|
+
export * from "./fusioncallanalysisinprogressevent.js";
|
|
200
|
+
export * from "./fusioncallcompletedevent.js";
|
|
201
|
+
export * from "./fusioncallinprogressevent.js";
|
|
202
|
+
export * from "./fusioncallpaneladdedevent.js";
|
|
203
|
+
export * from "./fusioncallpanelcompletedevent.js";
|
|
204
|
+
export * from "./fusioncallpaneldeltaevent.js";
|
|
205
|
+
export * from "./fusioncallpanelfailedevent.js";
|
|
206
|
+
export * from "./fusioncallpanelreasoningdeltaevent.js";
|
|
171
207
|
export * from "./fusionplugin.js";
|
|
172
208
|
export * from "./fusionservertoolconfig.js";
|
|
173
209
|
export * from "./fusionservertoolopenrouter.js";
|
|
@@ -177,6 +213,8 @@ export * from "./generationresponse.js";
|
|
|
177
213
|
export * from "./getbyokkeyresponse.js";
|
|
178
214
|
export * from "./getguardrailresponse.js";
|
|
179
215
|
export * from "./getobservabilitydestinationresponse.js";
|
|
216
|
+
export * from "./getpresetresponse.js";
|
|
217
|
+
export * from "./getpresetversionresponse.js";
|
|
180
218
|
export * from "./getworkspaceresponse.js";
|
|
181
219
|
export * from "./guardrail.js";
|
|
182
220
|
export * from "./guardrailinterval.js";
|
|
@@ -196,6 +234,7 @@ export * from "./inputfile.js";
|
|
|
196
234
|
export * from "./inputimage.js";
|
|
197
235
|
export * from "./inputmessageitem.js";
|
|
198
236
|
export * from "./inputmodality.js";
|
|
237
|
+
export * from "./inputreference.js";
|
|
199
238
|
export * from "./inputsunion.js";
|
|
200
239
|
export * from "./inputtext.js";
|
|
201
240
|
export * from "./inputvideo.js";
|
|
@@ -211,6 +250,8 @@ export * from "./listguardrailsresponse.js";
|
|
|
211
250
|
export * from "./listkeyassignmentsresponse.js";
|
|
212
251
|
export * from "./listmemberassignmentsresponse.js";
|
|
213
252
|
export * from "./listobservabilitydestinationsresponse.js";
|
|
253
|
+
export * from "./listpresetsresponse.js";
|
|
254
|
+
export * from "./listpresetversionsresponse.js";
|
|
214
255
|
export * from "./listworkspacesresponse.js";
|
|
215
256
|
export * from "./localshellcallitem.js";
|
|
216
257
|
export * from "./localshellcalloutputitem.js";
|
|
@@ -221,14 +262,17 @@ export * from "./mcplisttoolsitem.js";
|
|
|
221
262
|
export * from "./mcpservertool.js";
|
|
222
263
|
export * from "./memberassignment.js";
|
|
223
264
|
export * from "./messagesadvisortoolresultblock.js";
|
|
265
|
+
export * from "./messagesfallbackparam.js";
|
|
224
266
|
export * from "./messagesmessageparam.js";
|
|
225
267
|
export * from "./messagesoutputconfig.js";
|
|
226
268
|
export * from "./messagesrequest.js";
|
|
227
269
|
export * from "./metadatalevel.js";
|
|
228
270
|
export * from "./model.js";
|
|
229
271
|
export * from "./modelarchitecture.js";
|
|
272
|
+
export * from "./modelbenchmarks.js";
|
|
230
273
|
export * from "./modelgroup.js";
|
|
231
274
|
export * from "./modellinks.js";
|
|
275
|
+
export * from "./modelresponse.js";
|
|
232
276
|
export * from "./modelscountresponse.js";
|
|
233
277
|
export * from "./modelslistresponse.js";
|
|
234
278
|
export * from "./moderationplugin.js";
|
|
@@ -268,6 +312,7 @@ export * from "./openresponsesinprogressevent.js";
|
|
|
268
312
|
export * from "./openresponsesresult.js";
|
|
269
313
|
export * from "./openroutermetadata.js";
|
|
270
314
|
export * from "./openrouterwebsearchservertool.js";
|
|
315
|
+
export * from "./outputadvisorservertoolitem.js";
|
|
271
316
|
export * from "./outputapplypatchcallitem.js";
|
|
272
317
|
export * from "./outputapplypatchservertoolitem.js";
|
|
273
318
|
export * from "./outputbashservertoolitem.js";
|
|
@@ -293,6 +338,9 @@ export * from "./outputmodality.js";
|
|
|
293
338
|
export * from "./outputmodalityenum.js";
|
|
294
339
|
export * from "./outputreasoningitem.js";
|
|
295
340
|
export * from "./outputsearchmodelsservertoolitem.js";
|
|
341
|
+
export * from "./outputshellcallitem.js";
|
|
342
|
+
export * from "./outputshellcalloutputitem.js";
|
|
343
|
+
export * from "./outputsubagentservertoolitem.js";
|
|
296
344
|
export * from "./outputtexteditorservertoolitem.js";
|
|
297
345
|
export * from "./outputtoolsearchservertoolitem.js";
|
|
298
346
|
export * from "./outputwebfetchservertoolitem.js";
|
|
@@ -312,11 +360,14 @@ export * from "./pipelinestage.js";
|
|
|
312
360
|
export * from "./pipelinestagetype.js";
|
|
313
361
|
export * from "./preferredmaxlatency.js";
|
|
314
362
|
export * from "./preferredminthroughput.js";
|
|
363
|
+
export * from "./preset.js";
|
|
315
364
|
export * from "./presetdesignatedversion.js";
|
|
365
|
+
export * from "./presetstatus.js";
|
|
316
366
|
export * from "./presetwithdesignatedversion.js";
|
|
317
367
|
export * from "./preview20250311websearchservertool.js";
|
|
318
368
|
export * from "./previewwebsearchservertool.js";
|
|
319
369
|
export * from "./previewwebsearchuserlocation.js";
|
|
370
|
+
export * from "./promptinjectionscanscope.js";
|
|
320
371
|
export * from "./providername.js";
|
|
321
372
|
export * from "./provideroptions.js";
|
|
322
373
|
export * from "./provideroverloadedresponseerrordata.js";
|
|
@@ -366,7 +417,12 @@ export * from "./security.js";
|
|
|
366
417
|
export * from "./serviceunavailableresponseerrordata.js";
|
|
367
418
|
export * from "./shellcallitem.js";
|
|
368
419
|
export * from "./shellcalloutputitem.js";
|
|
420
|
+
export * from "./shellcallstatus.js";
|
|
369
421
|
export * from "./shellservertool.js";
|
|
422
|
+
export * from "./shellservertoolconfig.js";
|
|
423
|
+
export * from "./shellservertoolengine.js";
|
|
424
|
+
export * from "./shellservertoolenvironment.js";
|
|
425
|
+
export * from "./shellservertoolopenrouter.js";
|
|
370
426
|
export * from "./speechrequest.js";
|
|
371
427
|
export * from "./stopservertoolswhencondition.js";
|
|
372
428
|
export * from "./stopservertoolswhenfinishreasonis.js";
|
|
@@ -387,6 +443,10 @@ export * from "./sttinputaudio.js";
|
|
|
387
443
|
export * from "./sttrequest.js";
|
|
388
444
|
export * from "./sttresponse.js";
|
|
389
445
|
export * from "./sttusage.js";
|
|
446
|
+
export * from "./subagentnestedtool.js";
|
|
447
|
+
export * from "./subagentreasoning.js";
|
|
448
|
+
export * from "./subagentservertoolconfig.js";
|
|
449
|
+
export * from "./subagentservertoolopenrouter.js";
|
|
390
450
|
export * from "./textdeltaevent.js";
|
|
391
451
|
export * from "./textdoneevent.js";
|
|
392
452
|
export * from "./textextendedconfig.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ContentPartAudio, ContentPartAudio$Outbound } from "./contentpartaudio.js";
|
|
3
|
+
import { ContentPartImage, ContentPartImage$Outbound } from "./contentpartimage.js";
|
|
4
|
+
import { ContentPartVideo, ContentPartVideo$Outbound } from "./contentpartvideo.js";
|
|
5
|
+
/**
|
|
6
|
+
* A reference asset used to guide video generation. Image references are supported by all providers; audio and video references are only honored by providers that support them (currently BytePlus Seedance 2.0).
|
|
7
|
+
*/
|
|
8
|
+
export type InputReference = ContentPartAudio | ContentPartImage | ContentPartVideo;
|
|
9
|
+
/** @internal */
|
|
10
|
+
export type InputReference$Outbound = ContentPartAudio$Outbound | ContentPartImage$Outbound | ContentPartVideo$Outbound;
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const InputReference$outboundSchema: z.ZodType<InputReference$Outbound, InputReference>;
|
|
13
|
+
export declare function inputReferenceToJSON(inputReference: InputReference): string;
|
|
14
|
+
//# sourceMappingURL=inputreference.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 0e74e81647ab
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { ContentPartAudio$outboundSchema, } from "./contentpartaudio.js";
|
|
7
|
+
import { ContentPartImage$outboundSchema, } from "./contentpartimage.js";
|
|
8
|
+
import { ContentPartVideo$outboundSchema, } from "./contentpartvideo.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const InputReference$outboundSchema = z.union([
|
|
11
|
+
ContentPartAudio$outboundSchema,
|
|
12
|
+
ContentPartImage$outboundSchema,
|
|
13
|
+
ContentPartVideo$outboundSchema,
|
|
14
|
+
]);
|
|
15
|
+
export function inputReferenceToJSON(inputReference) {
|
|
16
|
+
return JSON.stringify(InputReference$outboundSchema.parse(inputReference));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=inputreference.js.map
|
|
@@ -17,6 +17,7 @@ import { McpApprovalResponseItem, McpApprovalResponseItem$Outbound } from "./mcp
|
|
|
17
17
|
import { McpCallItem, McpCallItem$Outbound } from "./mcpcallitem.js";
|
|
18
18
|
import { McpListToolsItem, McpListToolsItem$Outbound } from "./mcplisttoolsitem.js";
|
|
19
19
|
import { OpenAIResponsesRefusalContent, OpenAIResponsesRefusalContent$Outbound } from "./openairesponsesrefusalcontent.js";
|
|
20
|
+
import { OutputAdvisorServerToolItem, OutputAdvisorServerToolItem$Outbound } from "./outputadvisorservertoolitem.js";
|
|
20
21
|
import { OutputApplyPatchServerToolItem, OutputApplyPatchServerToolItem$Outbound } from "./outputapplypatchservertoolitem.js";
|
|
21
22
|
import { OutputBashServerToolItem, OutputBashServerToolItem$Outbound } from "./outputbashservertoolitem.js";
|
|
22
23
|
import { OutputBrowserUseServerToolItem, OutputBrowserUseServerToolItem$Outbound } from "./outputbrowseruseservertoolitem.js";
|
|
@@ -28,11 +29,13 @@ import { OutputDatetimeItem, OutputDatetimeItem$Outbound } from "./outputdatetim
|
|
|
28
29
|
import { OutputFileSearchCallItem, OutputFileSearchCallItem$Outbound } from "./outputfilesearchcallitem.js";
|
|
29
30
|
import { OutputFileSearchServerToolItem, OutputFileSearchServerToolItem$Outbound } from "./outputfilesearchservertoolitem.js";
|
|
30
31
|
import { OutputFunctionCallItem, OutputFunctionCallItem$Outbound } from "./outputfunctioncallitem.js";
|
|
32
|
+
import { OutputFusionServerToolItem, OutputFusionServerToolItem$Outbound } from "./outputfusionservertoolitem.js";
|
|
31
33
|
import { OutputImageGenerationCallItem, OutputImageGenerationCallItem$Outbound } from "./outputimagegenerationcallitem.js";
|
|
32
34
|
import { OutputImageGenerationServerToolItem, OutputImageGenerationServerToolItem$Outbound } from "./outputimagegenerationservertoolitem.js";
|
|
33
35
|
import { OutputMcpServerToolItem, OutputMcpServerToolItem$Outbound } from "./outputmcpservertoolitem.js";
|
|
34
36
|
import { OutputMemoryServerToolItem, OutputMemoryServerToolItem$Outbound } from "./outputmemoryservertoolitem.js";
|
|
35
37
|
import { OutputSearchModelsServerToolItem, OutputSearchModelsServerToolItem$Outbound } from "./outputsearchmodelsservertoolitem.js";
|
|
38
|
+
import { OutputSubagentServerToolItem, OutputSubagentServerToolItem$Outbound } from "./outputsubagentservertoolitem.js";
|
|
36
39
|
import { OutputTextEditorServerToolItem, OutputTextEditorServerToolItem$Outbound } from "./outputtexteditorservertoolitem.js";
|
|
37
40
|
import { OutputToolSearchServerToolItem, OutputToolSearchServerToolItem$Outbound } from "./outputtoolsearchservertoolitem.js";
|
|
38
41
|
import { OutputWebFetchServerToolItem, OutputWebFetchServerToolItem$Outbound } from "./outputwebfetchservertoolitem.js";
|
|
@@ -127,11 +130,11 @@ export type InputsMessage = {
|
|
|
127
130
|
status?: InputsStatusCompleted1 | InputsStatusIncomplete1 | InputsStatusInProgress1 | undefined;
|
|
128
131
|
type: InputsTypeMessage;
|
|
129
132
|
};
|
|
130
|
-
export type InputsUnion1 = OutputCodeInterpreterCallItem | FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | InputsMessage | OutputFunctionCallItem | OutputCustomToolCallItem |
|
|
133
|
+
export type InputsUnion1 = OutputCodeInterpreterCallItem | FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | InputsMessage | OutputFunctionCallItem | OutputCustomToolCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | CompactionItem | ItemReferenceItem | EasyInputMessage | InputMessageItem;
|
|
131
134
|
/**
|
|
132
135
|
* Input for a response request - can be a string or array of items
|
|
133
136
|
*/
|
|
134
|
-
export type InputsUnion = string | Array<OutputCodeInterpreterCallItem | FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | InputsMessage | OutputFunctionCallItem | OutputCustomToolCallItem |
|
|
137
|
+
export type InputsUnion = string | Array<OutputCodeInterpreterCallItem | FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | InputsMessage | OutputFunctionCallItem | OutputCustomToolCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | CompactionItem | ItemReferenceItem | EasyInputMessage | InputMessageItem>;
|
|
135
138
|
/** @internal */
|
|
136
139
|
export declare const InputsStatusInProgress2$outboundSchema: z.ZodEnum<typeof InputsStatusInProgress2>;
|
|
137
140
|
/** @internal */
|
|
@@ -206,12 +209,12 @@ export type InputsMessage$Outbound = {
|
|
|
206
209
|
export declare const InputsMessage$outboundSchema: z.ZodType<InputsMessage$Outbound, InputsMessage>;
|
|
207
210
|
export declare function inputsMessageToJSON(inputsMessage: InputsMessage): string;
|
|
208
211
|
/** @internal */
|
|
209
|
-
export type InputsUnion1$Outbound = OutputCodeInterpreterCallItem$Outbound | FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | InputsMessage$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound |
|
|
212
|
+
export type InputsUnion1$Outbound = OutputCodeInterpreterCallItem$Outbound | FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | InputsMessage$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound;
|
|
210
213
|
/** @internal */
|
|
211
214
|
export declare const InputsUnion1$outboundSchema: z.ZodType<InputsUnion1$Outbound, InputsUnion1>;
|
|
212
215
|
export declare function inputsUnion1ToJSON(inputsUnion1: InputsUnion1): string;
|
|
213
216
|
/** @internal */
|
|
214
|
-
export type InputsUnion$Outbound = string | Array<OutputCodeInterpreterCallItem$Outbound | FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | InputsMessage$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound |
|
|
217
|
+
export type InputsUnion$Outbound = string | Array<OutputCodeInterpreterCallItem$Outbound | FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | InputsMessage$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound>;
|
|
215
218
|
/** @internal */
|
|
216
219
|
export declare const InputsUnion$outboundSchema: z.ZodType<InputsUnion$Outbound, InputsUnion>;
|
|
217
220
|
export declare function inputsUnionToJSON(inputsUnion: InputsUnion): string;
|